diff --git a/.eslintrc.json b/.eslintrc.json index a1787bea..dd9ad685 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,9 +1,13 @@ { "root": true, - "parser": "@babel/eslint-parser", - "extends": ["pipedrive"], + "parser": "@typescript-eslint/parser", + "parserOptions": { + "project": "./tsconfig.test.json", + "sourceType": "module" + }, + "extends": ["pipedrive", "plugin:@typescript-eslint/recommended"], "env": { "node": true, "jest": true } -} +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 40754681..e0a32baf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,37 +1,5 @@ -# Logs -logs -*.log -npm-debug.log* - -# Runtime data -pids -*.pid -*.seed - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage - -# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (http://nodejs.org/api/addons.html) -build/Release - -# Dependency directory +wwwroot/*.js node_modules - -# Optional npm cache directory -.npm - -# Optional REPL history -.node_repl_history - -.openapi-generator -.idea +typings dist +.idea \ No newline at end of file diff --git a/.npmignore b/.npmignore index 3e4be464..999d88df 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1 @@ -node_modules -.gitignore -.DS_Store +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 2000c19e..7484ee59 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -21,4 +21,3 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md -package.json diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES new file mode 100644 index 00000000..b36a2b44 --- /dev/null +++ b/.openapi-generator/FILES @@ -0,0 +1,865 @@ +.gitignore +.npmignore +.openapi-generator-ignore +README.md +api.ts +api/activities-api.ts +api/activity-fields-api.ts +api/activity-types-api.ts +api/billing-api.ts +api/call-logs-api.ts +api/channels-api.ts +api/currencies-api.ts +api/deal-fields-api.ts +api/deals-api.ts +api/files-api.ts +api/filters-api.ts +api/goals-api.ts +api/item-search-api.ts +api/lead-labels-api.ts +api/lead-sources-api.ts +api/leads-api.ts +api/legacy-teams-api.ts +api/mailbox-api.ts +api/meetings-api.ts +api/note-fields-api.ts +api/notes-api.ts +api/organization-fields-api.ts +api/organization-relationships-api.ts +api/organizations-api.ts +api/permission-sets-api.ts +api/person-fields-api.ts +api/persons-api.ts +api/pipelines-api.ts +api/product-fields-api.ts +api/products-api.ts +api/project-templates-api.ts +api/projects-api.ts +api/recents-api.ts +api/roles-api.ts +api/stages-api.ts +api/subscriptions-api.ts +api/tasks-api.ts +api/user-connections-api.ts +api/user-settings-api.ts +api/users-api.ts +api/webhooks-api.ts +base.ts +common.ts +configuration.ts +git_push.sh +index.ts +models/activity-collection-response-object-all-of.ts +models/activity-collection-response-object.ts +models/activity-distribution-data-with-additional-data-all-of-activity-distribution-assignedtouserid.ts +models/activity-distribution-data-with-additional-data-all-of-activity-distribution-assignedtouseridactivities.ts +models/activity-distribution-data-with-additional-data-all-of-activity-distribution.ts +models/activity-distribution-data-with-additional-data-all-of.ts +models/activity-distribution-data-with-additional-data.ts +models/activity-response-object-all-of.ts +models/activity-response-object-all-of1.ts +models/activity-response-object.ts +models/add-activity-request-all-of.ts +models/add-activity-request.ts +models/add-activity-response-additional-data.ts +models/add-activity-response-related-objects-organization-organizationid.ts +models/add-activity-response-related-objects-organization-organizationidall-of.ts +models/add-activity-response-related-objects-organization.ts +models/add-activity-response-related-objects-person-personid.ts +models/add-activity-response-related-objects-person-personidall-of.ts +models/add-activity-response-related-objects-person.ts +models/add-activity-response-related-objects.ts +models/add-activity-response.ts +models/add-activity-type-request.ts +models/add-call-log-request.ts +models/add-channel-request.ts +models/add-channel200-response-data.ts +models/add-channel200-response.ts +models/add-channel400-response-additional-data.ts +models/add-channel400-response.ts +models/add-channel403-response-additional-data.ts +models/add-channel403-response.ts +models/add-deal-follower-request.ts +models/add-deal-follower-response-data.ts +models/add-deal-follower-response.ts +models/add-deal-participant-request.ts +models/add-deal-product-request-all-of.ts +models/add-deal-product-request-all-of1.ts +models/add-deal-product-request-all-of2.ts +models/add-deal-product-request.ts +models/add-deal-request.ts +models/add-file-response.ts +models/add-filter-request.ts +models/add-filters-response-all-of-data.ts +models/add-filters-response-all-of.ts +models/add-filters-response.ts +models/add-goal-request.ts +models/add-lead-label-request.ts +models/add-lead-request.ts +models/add-new-follower-response-data.ts +models/add-new-follower-response.ts +models/add-note-request-all-of.ts +models/add-note-request-all-of1.ts +models/add-note-request.ts +models/add-or-update-role-setting-request.ts +models/add-organization-follower-request.ts +models/add-organization-follower-response.ts +models/add-organization-relationship-request.ts +models/add-organization-relationship-response-all-of.ts +models/add-organization-relationship-response.ts +models/add-organization-request-all-of.ts +models/add-organization-request.ts +models/add-organization-response-all-of.ts +models/add-organization-response.ts +models/add-participants-response-data.ts +models/add-participants-response-related-objects.ts +models/add-participants-response.ts +models/add-person-follower-request.ts +models/add-person-follower-response-all-of-data.ts +models/add-person-follower-response-all-of.ts +models/add-person-follower-response.ts +models/add-person-picture-response-all-of.ts +models/add-person-picture-response.ts +models/add-person-request-all-of.ts +models/add-person-request.ts +models/add-person-response-all-of.ts +models/add-person-response.ts +models/add-pipeline-response-all-of-data.ts +models/add-pipeline-response-all-of.ts +models/add-pipeline-response.ts +models/add-product-follower-request.ts +models/add-product-request-all-of.ts +models/add-product-request-all-of1.ts +models/add-product-request.ts +models/add-project-request-all-of.ts +models/add-project-request.ts +models/add-project-response.ts +models/add-recurring-subscription-request.ts +models/add-remote-file-and-link-it-to-item-response.ts +models/add-role-assignment-request.ts +models/add-role-assignment-response-all-of-data.ts +models/add-role-assignment-response-all-of.ts +models/add-role-assignment-response.ts +models/add-role-request.ts +models/add-roles-response-all-of-data.ts +models/add-roles-response-all-of.ts +models/add-roles-response.ts +models/add-stage-request.ts +models/add-subscription-installment-request.ts +models/add-task-request.ts +models/add-task-response.ts +models/add-team-request.ts +models/add-team-request1.ts +models/add-team-user-request.ts +models/add-user-provider-link-request.ts +models/add-user-request-access-inner.ts +models/add-user-request.ts +models/add-webhook-request.ts +models/additional-base-organization-item-info.ts +models/additional-merge-person-info.ts +models/additional-person-info.ts +models/base-deal.ts +models/base-mail-thread-all-of.ts +models/base-mail-thread-all-of1-parties-to-inner.ts +models/base-mail-thread-all-of1-parties.ts +models/base-mail-thread-all-of1.ts +models/base-mail-thread.ts +models/base-mail-thread1.ts +models/base-organization-item-all-of-picture-id-all-of.ts +models/base-organization-item-all-of-picture-id.ts +models/base-organization-item-all-of.ts +models/base-organization-item-with-edit-name-flag-all-of.ts +models/base-organization-item-with-edit-name-flag.ts +models/base-organization-item.ts +models/base-pipeline-with-selected-flag-all-of.ts +models/base-pipeline-with-selected-flag.ts +models/base-response-all-of.ts +models/base-response.ts +models/base-response1.ts +models/base-role-request.ts +models/base-team-additional-properties.ts +models/base-team.ts +models/basic-deal-product-request-all-of.ts +models/basic-deal-product-request.ts +models/basic-deal.ts +models/basic-goal-request.ts +models/basic-organization.ts +models/basic-person-request-email-inner.ts +models/basic-person-request.ts +models/call-log-bad-request-response.ts +models/call-log-conflict-response.ts +models/call-log-forbidden-response.ts +models/call-log-gone-response.ts +models/call-log-internal-error-response.ts +models/call-log-not-found-response.ts +models/cancel-recurring-subscription-request.ts +models/comment-post-put-object.ts +models/create-field-request-all-of.ts +models/create-field-request-all-of1.ts +models/create-field-request.ts +models/deal-collection-response-object.ts +models/deal-count-and-activity-info-all-of.ts +models/deal-count-and-activity-info-all-of1.ts +models/deal-count-and-activity-info.ts +models/deal-non-strict-all-of-creator-user-id.ts +models/deal-non-strict-all-of.ts +models/deal-non-strict-with-details-all-of-age.ts +models/deal-non-strict-with-details-all-of-average-time-to-won.ts +models/deal-non-strict-with-details-all-of-stay-in-pipeline-stages.ts +models/deal-non-strict-with-details-all-of.ts +models/deal-non-strict-with-details.ts +models/deal-non-strict.ts +models/deal-organization-data-with-id-all-of.ts +models/deal-organization-data-with-id-all-of1.ts +models/deal-organization-data-with-id.ts +models/deal-person-data-with-id-all-of-email-inner.ts +models/deal-person-data-with-id-all-of-phone-inner.ts +models/deal-person-data-with-id-all-of.ts +models/deal-person-data-with-id-all-of1.ts +models/deal-person-data-with-id.ts +models/deal-product-request-body.ts +models/deal-product-request-body1.ts +models/deal-strict-all-of.ts +models/deal-strict.ts +models/deal-title-param.ts +models/deal-user-data-with-id-all-of.ts +models/deal-user-data-with-id-all-of1.ts +models/deal-user-data-with-id.ts +models/deals-count-and-activity-info.ts +models/delete-activities-response-data.ts +models/delete-activities-response.ts +models/delete-activity-response-data.ts +models/delete-activity-response.ts +models/delete-activity-types-response-all-of-data.ts +models/delete-activity-types-response-all-of.ts +models/delete-activity-types-response.ts +models/delete-channel200-response.ts +models/delete-comment-response.ts +models/delete-conversation403-response-additional-data.ts +models/delete-conversation403-response.ts +models/delete-conversation404-response-additional-data.ts +models/delete-conversation404-response.ts +models/delete-deal-follower-response-data.ts +models/delete-deal-follower-response.ts +models/delete-deal-participant-response-data.ts +models/delete-deal-participant-response.ts +models/delete-deal-product-response-data.ts +models/delete-deal-product-response.ts +models/delete-deal-response-data.ts +models/delete-deal-response.ts +models/delete-deals-response-data.ts +models/delete-deals-response.ts +models/delete-fields-response-all-of-data.ts +models/delete-fields-response-all-of.ts +models/delete-fields-response.ts +models/delete-file-response-data.ts +models/delete-file-response.ts +models/delete-filter-response-all-of-data.ts +models/delete-filter-response-all-of.ts +models/delete-filter-response.ts +models/delete-filters-response-all-of-data.ts +models/delete-filters-response-all-of.ts +models/delete-filters-response.ts +models/delete-goal-response.ts +models/delete-lead-id-response.ts +models/delete-mail-thread-response-all-of-data.ts +models/delete-mail-thread-response-all-of.ts +models/delete-mail-thread-response.ts +models/delete-note-response.ts +models/delete-organization-follower-response-data.ts +models/delete-organization-follower-response.ts +models/delete-organization-relationship-response-all-of-data.ts +models/delete-organization-relationship-response-all-of.ts +models/delete-organization-relationship-response.ts +models/delete-organization-response-data.ts +models/delete-organization-response.ts +models/delete-organizations-response-data.ts +models/delete-organizations-response.ts +models/delete-person-response-all-of-data.ts +models/delete-person-response-all-of.ts +models/delete-person-response.ts +models/delete-persons-response-all-of-data.ts +models/delete-persons-response-all-of.ts +models/delete-persons-response.ts +models/delete-pipeline-response-data.ts +models/delete-pipeline-response.ts +models/delete-product-field-response.ts +models/delete-product-fields-response-data.ts +models/delete-product-fields-response.ts +models/delete-product-follower-response.ts +models/delete-product-response-data.ts +models/delete-product-response.ts +models/delete-project-data.ts +models/delete-project-response.ts +models/delete-project.ts +models/delete-response-all-of-data.ts +models/delete-response-all-of.ts +models/delete-response.ts +models/delete-role-assignment-request.ts +models/delete-role-assignment-response.ts +models/delete-role-response.ts +models/delete-stage-response-data.ts +models/delete-stage-response.ts +models/delete-stages-response-data.ts +models/delete-stages-response.ts +models/delete-task-data.ts +models/delete-task-response.ts +models/delete-task.ts +models/delete-team-user-request.ts +models/delete-webhook403-response-all-of.ts +models/delete-webhook403-response.ts +models/fail-response.ts +models/full-project-object-all-of.ts +models/full-project-object-all-of1.ts +models/full-project-object-all-of2.ts +models/full-project-object.ts +models/full-role-all-of.ts +models/full-role.ts +models/get-activities-collection-response-additional-data.ts +models/get-activities-collection-response.ts +models/get-activities-response-additional-data-pagination.ts +models/get-activities-response-additional-data.ts +models/get-activities-response-related-objects-deal-dealid.ts +models/get-activities-response-related-objects-deal.ts +models/get-activities-response-related-objects-organization-organizationid.ts +models/get-activities-response-related-objects-organization-organizationidall-of.ts +models/get-activities-response-related-objects-organization-organizationidall-of1.ts +models/get-activities-response-related-objects-organization.ts +models/get-activities-response-related-objects-person-personid.ts +models/get-activities-response-related-objects-person-personidall-of-email-inner.ts +models/get-activities-response-related-objects-person-personidall-of-phone-inner.ts +models/get-activities-response-related-objects-person-personidall-of.ts +models/get-activities-response-related-objects-person.ts +models/get-activities-response-related-objects-user.ts +models/get-activities-response-related-objects.ts +models/get-activities-response.ts +models/get-activity-response.ts +models/get-activity-types-response-all-of-data-inner.ts +models/get-activity-types-response-all-of.ts +models/get-activity-types-response.ts +models/get-add-product-attachment-details-response-data-all-of-all-of-all-of.ts +models/get-add-product-attachment-details-response-data-all-of-all-of.ts +models/get-add-product-attachment-details-response-data-all-of-all-of1.ts +models/get-add-product-attachment-details-response-data-all-of.ts +models/get-add-product-attachment-details-response-data.ts +models/get-add-product-attachment-details-response.ts +models/get-added-deal-response.ts +models/get-associated-activities-response-all-of.ts +models/get-associated-activities-response.ts +models/get-associated-deals-response-all-of-related-objects-pipeline.ts +models/get-associated-deals-response-all-of-related-objects-stage.ts +models/get-associated-deals-response-all-of-related-objects.ts +models/get-associated-deals-response-all-of.ts +models/get-associated-deals-response.ts +models/get-associated-files-response-all-of-data-inner.ts +models/get-associated-files-response-all-of.ts +models/get-associated-files-response.ts +models/get-associated-followers-response-all-of-data-inner.ts +models/get-associated-followers-response-all-of.ts +models/get-associated-followers-response.ts +models/get-associated-followers-response1-data-inner-all-of.ts +models/get-associated-followers-response1-data-inner-all-of1.ts +models/get-associated-followers-response1-data-inner.ts +models/get-associated-followers-response1.ts +models/get-associated-mail-messages-response-all-of-data-inner.ts +models/get-associated-mail-messages-response-all-of.ts +models/get-associated-mail-messages-response.ts +models/get-associated-organization-updates-response-all-of-data-inner.ts +models/get-associated-organization-updates-response-all-of-related-objects.ts +models/get-associated-organization-updates-response-all-of.ts +models/get-associated-organization-updates-response.ts +models/get-associated-person-updates-response-all-of-data-inner.ts +models/get-associated-person-updates-response-all-of.ts +models/get-associated-person-updates-response.ts +models/get-associated-product-files-response-all-of-data-inner.ts +models/get-associated-product-files-response-all-of.ts +models/get-associated-product-files-response.ts +models/get-call-log-response.ts +models/get-call-logs-response-additional-data.ts +models/get-call-logs-response.ts +models/get-changelog-response-all-of-data-inner.ts +models/get-changelog-response-all-of.ts +models/get-changelog-response.ts +models/get-comments-response-data-inner.ts +models/get-comments-response.ts +models/get-currencies-response-data-inner.ts +models/get-currencies-response.ts +models/get-current-user-response-all-of-data-all-of-language.ts +models/get-current-user-response-all-of-data-all-of.ts +models/get-current-user-response-all-of-data.ts +models/get-current-user-response-all-of.ts +models/get-current-user-response.ts +models/get-deal-activities-response-all-of-related-objects.ts +models/get-deal-activities-response-all-of.ts +models/get-deal-activities-response.ts +models/get-deal-participants-response.ts +models/get-deal-response-additional-data.ts +models/get-deal-response-related-objects.ts +models/get-deal-response.ts +models/get-deal-search-response-all-of-data-items-inner-item-organization.ts +models/get-deal-search-response-all-of-data-items-inner-item-owner.ts +models/get-deal-search-response-all-of-data-items-inner-item-person.ts +models/get-deal-search-response-all-of-data-items-inner-item-stage.ts +models/get-deal-search-response-all-of-data-items-inner-item.ts +models/get-deal-search-response-all-of-data-items-inner.ts +models/get-deal-search-response-all-of-data.ts +models/get-deal-search-response-all-of.ts +models/get-deal-search-response.ts +models/get-deal-updates-response-all-of-data-inner.ts +models/get-deal-updates-response-all-of-related-objects.ts +models/get-deal-updates-response-all-of.ts +models/get-deal-updates-response.ts +models/get-deals-collection-response.ts +models/get-deals-response-related-objects.ts +models/get-deals-response.ts +models/get-deals-summary-response-data-values-total.ts +models/get-deals-summary-response-data-weighted-values-total.ts +models/get-deals-summary-response-data.ts +models/get-deals-summary-response.ts +models/get-deals-timeline-response-data-totals.ts +models/get-deals-timeline-response-data.ts +models/get-deals-timeline-response.ts +models/get-duplicated-deal-response.ts +models/get-field-response-all-of.ts +models/get-field-response.ts +models/get-fields-response-all-of-additional-data.ts +models/get-fields-response-all-of-data-inner-all-of.ts +models/get-fields-response-all-of-data-inner-all-of1.ts +models/get-fields-response-all-of-data-inner.ts +models/get-fields-response-all-of.ts +models/get-fields-response.ts +models/get-file-response.ts +models/get-files-response-additional-data.ts +models/get-files-response-data-inner.ts +models/get-files-response.ts +models/get-filters-response-all-of-data-inner.ts +models/get-filters-response-all-of.ts +models/get-filters-response.ts +models/get-filters-response1-all-of.ts +models/get-filters-response1.ts +models/get-goal-result-response-data.ts +models/get-goal-result-response.ts +models/get-goals-response-data.ts +models/get-goals-response.ts +models/get-item-search-field-response-all-of-data-inner.ts +models/get-item-search-field-response-all-of.ts +models/get-item-search-field-response.ts +models/get-item-search-response-all-of-data-items-inner.ts +models/get-item-search-response-all-of-data.ts +models/get-item-search-response-all-of.ts +models/get-item-search-response.ts +models/get-lead-id-response-data.ts +models/get-lead-id-response.ts +models/get-lead-labels-response-data-inner.ts +models/get-lead-labels-response.ts +models/get-lead-response.ts +models/get-lead-search-response-all-of-data-items-inner-item-organization.ts +models/get-lead-search-response-all-of-data-items-inner-item-owner.ts +models/get-lead-search-response-all-of-data-items-inner-item-person.ts +models/get-lead-search-response-all-of-data-items-inner-item.ts +models/get-lead-search-response-all-of-data-items-inner.ts +models/get-lead-search-response-all-of-data.ts +models/get-lead-search-response-all-of.ts +models/get-lead-search-response.ts +models/get-leads-response-data-inner-value.ts +models/get-leads-response-data-inner.ts +models/get-leads-response.ts +models/get-leads-source-response-data-inner.ts +models/get-leads-source-response.ts +models/get-link-remote-file-to-item-response.ts +models/get-mail-message-response-all-of.ts +models/get-mail-message-response-all-of1.ts +models/get-mail-message-response.ts +models/get-mail-thread-messages-response-all-of-data-inner-all-of.ts +models/get-mail-thread-messages-response-all-of-data-inner.ts +models/get-mail-thread-messages-response-all-of.ts +models/get-mail-thread-messages-response.ts +models/get-mail-thread-response-all-of.ts +models/get-mail-thread-response.ts +models/get-mail-thread-response1-all-of-data.ts +models/get-mail-thread-response1-all-of.ts +models/get-mail-thread-response1.ts +models/get-merged-deal-response-data-all-of.ts +models/get-merged-deal-response-data.ts +models/get-merged-deal-response.ts +models/get-note-fields-response-all-of-data-inner-all-of-options-inner.ts +models/get-note-fields-response-all-of-data-inner-all-of.ts +models/get-note-fields-response-all-of-data-inner.ts +models/get-note-fields-response-all-of.ts +models/get-note-fields-response.ts +models/get-notes-response-additional-data-pagination.ts +models/get-notes-response-additional-data.ts +models/get-notes-response-data-inner-deal.ts +models/get-notes-response-data-inner-organization.ts +models/get-notes-response-data-inner-person.ts +models/get-notes-response-data-inner-user.ts +models/get-notes-response-data-inner.ts +models/get-notes-response.ts +models/get-organization-item-all-of.ts +models/get-organization-item.ts +models/get-organization-relationship-response-all-of.ts +models/get-organization-relationship-response.ts +models/get-organization-relationships-response-all-of-related-objects.ts +models/get-organization-relationships-response-all-of.ts +models/get-organization-relationships-response.ts +models/get-organization-response-all-of-additional-data-followers-followeruserid.ts +models/get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of.ts +models/get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of1.ts +models/get-organization-response-all-of-additional-data-followers-followeruseridall-of.ts +models/get-organization-response-all-of-additional-data-followers.ts +models/get-organization-response-all-of-additional-data.ts +models/get-organization-response-all-of.ts +models/get-organization-response.ts +models/get-organization-search-response-all-of-data-items-inner-item.ts +models/get-organization-search-response-all-of-data-items-inner.ts +models/get-organization-search-response-all-of-data.ts +models/get-organization-search-response-all-of.ts +models/get-organization-search-response.ts +models/get-organizations-collection-response-object-all-of.ts +models/get-organizations-collection-response-object.ts +models/get-organizations-collection200-response.ts +models/get-organizations-response-all-of-related-objects-picture-pictureid.ts +models/get-organizations-response-all-of-related-objects-picture.ts +models/get-organizations-response-all-of-related-objects.ts +models/get-organizations-response-all-of.ts +models/get-organizations-response.ts +models/get-participants-changelog-response.ts +models/get-payments-response-all-of-data-inner.ts +models/get-payments-response-all-of.ts +models/get-payments-response.ts +models/get-permission-set-response-all-of.ts +models/get-permission-set-response.ts +models/get-permission-sets-response-all-of-data-inner.ts +models/get-permission-sets-response-all-of.ts +models/get-permission-sets-response.ts +models/get-permitted-users-response.ts +models/get-permitted-users-response1-all-of.ts +models/get-permitted-users-response1.ts +models/get-person-details-response-all-of-additional-data.ts +models/get-person-details-response-all-of.ts +models/get-person-details-response.ts +models/get-person-products-response-all-of-data-inner-dealid.ts +models/get-person-products-response-all-of-data-inner-dealiddeal.ts +models/get-person-products-response-all-of-data-inner-dealidproduct.ts +models/get-person-products-response-all-of-data-inner.ts +models/get-person-products-response-all-of.ts +models/get-person-products-response.ts +models/get-person-search-response-all-of-data-items-inner-item-organization.ts +models/get-person-search-response-all-of-data-items-inner-item-owner.ts +models/get-person-search-response-all-of-data-items-inner-item.ts +models/get-person-search-response-all-of-data-items-inner.ts +models/get-person-search-response-all-of-data.ts +models/get-person-search-response-all-of.ts +models/get-person-search-response.ts +models/get-persons-collection200-response.ts +models/get-persons-response-all-of-related-objects.ts +models/get-persons-response-all-of.ts +models/get-persons-response.ts +models/get-persons-response1-all-of.ts +models/get-persons-response1.ts +models/get-pipeline-deals-conversion-rates-in-response-all-of-data-stage-conversions-inner.ts +models/get-pipeline-deals-conversion-rates-in-response-all-of-data.ts +models/get-pipeline-deals-conversion-rates-in-response-all-of.ts +models/get-pipeline-deals-conversion-rates-in-response.ts +models/get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days-by-stages-inner.ts +models/get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days.ts +models/get-pipeline-deals-movements-statistics-response-all-of-data-movements-between-stages.ts +models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-formatted-values.ts +models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-values.ts +models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals.ts +models/get-pipeline-deals-movements-statistics-response-all-of-data.ts +models/get-pipeline-deals-movements-statistics-response-all-of.ts +models/get-pipeline-deals-movements-statistics-response.ts +models/get-pipeline-response-all-of.ts +models/get-pipeline-response.ts +models/get-pipelines-response-all-of.ts +models/get-pipelines-response.ts +models/get-product-attachment-details-response-data.ts +models/get-product-attachment-details-response.ts +models/get-product-field-response-data.ts +models/get-product-field-response.ts +models/get-product-fields-response-data-inner.ts +models/get-product-fields-response.ts +models/get-product-followers-response-all-of-data-inner.ts +models/get-product-followers-response-all-of.ts +models/get-product-followers-response.ts +models/get-product-response.ts +models/get-product-search-response-all-of-data-items-inner-item-owner.ts +models/get-product-search-response-all-of-data-items-inner-item.ts +models/get-product-search-response-all-of-data-items-inner.ts +models/get-product-search-response-all-of-data.ts +models/get-product-search-response-all-of.ts +models/get-product-search-response.ts +models/get-products-response-all-of-additional-data-all-of.ts +models/get-products-response-all-of-additional-data.ts +models/get-products-response-all-of-data-inner-product-all-of.ts +models/get-products-response-all-of-data-inner-product-all-of1.ts +models/get-products-response-all-of-data-inner-product.ts +models/get-products-response-all-of-data-inner.ts +models/get-products-response-all-of-related-objects.ts +models/get-products-response-all-of.ts +models/get-products-response.ts +models/get-products-response1-additional-data.ts +models/get-products-response1.ts +models/get-project-board-response.ts +models/get-project-boards-response-data-inner.ts +models/get-project-boards-response.ts +models/get-project-groups-response-data-inner.ts +models/get-project-groups-response.ts +models/get-project-phase-response.ts +models/get-project-phases-response-data-inner.ts +models/get-project-phases-response.ts +models/get-project-plan-response-data-inner.ts +models/get-project-plan-response.ts +models/get-project-response.ts +models/get-project-template-response.ts +models/get-project-templates-response.ts +models/get-projects-response.ts +models/get-recents-response-additional-data.ts +models/get-recents-response-data-inner-any-of.ts +models/get-recents-response-data-inner-any-of1.ts +models/get-recents-response-data-inner-any-of10.ts +models/get-recents-response-data-inner-any-of11-data-access-inner.ts +models/get-recents-response-data-inner-any-of11-data.ts +models/get-recents-response-data-inner-any-of11.ts +models/get-recents-response-data-inner-any-of2.ts +models/get-recents-response-data-inner-any-of3.ts +models/get-recents-response-data-inner-any-of4.ts +models/get-recents-response-data-inner-any-of5.ts +models/get-recents-response-data-inner-any-of6.ts +models/get-recents-response-data-inner-any-of7.ts +models/get-recents-response-data-inner-any-of8.ts +models/get-recents-response-data-inner-any-of9-data.ts +models/get-recents-response-data-inner-any-of9.ts +models/get-recents-response-data-inner.ts +models/get-recents-response.ts +models/get-role-assignments-response-all-of.ts +models/get-role-assignments-response.ts +models/get-role-pipelines-response-all-of-data.ts +models/get-role-pipelines-response-all-of.ts +models/get-role-pipelines-response.ts +models/get-role-response-all-of-additional-data-settings.ts +models/get-role-response-all-of-additional-data.ts +models/get-role-response-all-of.ts +models/get-role-response.ts +models/get-role-settings-response-all-of.ts +models/get-role-settings-response.ts +models/get-roles-response-all-of-additional-data-pagination.ts +models/get-roles-response-all-of-additional-data.ts +models/get-roles-response-all-of.ts +models/get-roles-response.ts +models/get-stage-deals-response.ts +models/get-stage-response-data.ts +models/get-stage-response.ts +models/get-stages-response-data-inner-all-of.ts +models/get-stages-response-data-inner.ts +models/get-stages-response.ts +models/get-subscription-addons-response-all-of.ts +models/get-subscription-addons-response.ts +models/get-subscriptions-id-response-all-of-data.ts +models/get-subscriptions-id-response-all-of.ts +models/get-subscriptions-id-response.ts +models/get-task-response.ts +models/get-tasks-response.ts +models/get-team-response-all-of.ts +models/get-team-response.ts +models/get-teams-response-all-of.ts +models/get-teams-response.ts +models/get-user-assignments-to-permission-set-response-all-of-data-inner.ts +models/get-user-assignments-to-permission-set-response-all-of.ts +models/get-user-assignments-to-permission-set-response.ts +models/get-user-connections-response-all-of-data.ts +models/get-user-connections-response-all-of.ts +models/get-user-connections-response.ts +models/get-user-permissions-response-all-of-data.ts +models/get-user-permissions-response-all-of.ts +models/get-user-permissions-response.ts +models/get-user-provider-link-success-response-data.ts +models/get-user-provider-link-success-response.ts +models/get-user-response-all-of.ts +models/get-user-response.ts +models/get-user-settings-response-all-of-data.ts +models/get-user-settings-response-all-of.ts +models/get-user-settings-response.ts +models/get-users-response-all-of.ts +models/get-users-response.ts +models/get-webhook-response-all-of.ts +models/get-webhook-response.ts +models/get-webhooks-response-all-of-data-inner.ts +models/get-webhooks-response-all-of.ts +models/get-webhooks-response.ts +models/index.ts +models/lead-not-found-response.ts +models/mail-message-item-for-list-all-of-from-inner.ts +models/mail-message-item-for-list-all-of.ts +models/mail-message-item-for-list-all-of1.ts +models/mail-message-item-for-list.ts +models/merge-deals-request.ts +models/merge-organizations-request.ts +models/merge-organizations-response-data.ts +models/merge-organizations-response.ts +models/merge-person-deal-related-info-all-of.ts +models/merge-person-deal-related-info.ts +models/merge-person-item.ts +models/merge-persons-request.ts +models/merge-persons-response-all-of.ts +models/merge-persons-response.ts +models/new-deal-parameters.ts +models/note-request-all-of.ts +models/note-request-all-of1.ts +models/note-request.ts +models/organization-count-and-address-info-all-of.ts +models/organization-count-and-address-info-all-of1.ts +models/organization-count-and-address-info.ts +models/organization-relationship-details-all-of.ts +models/organization-relationship-details.ts +models/organization-relationship-with-calculated-fields-all-of.ts +models/organization-relationship-with-calculated-fields-all-of1.ts +models/organization-relationship-with-calculated-fields.ts +models/organization-relationship.ts +models/owner-all-of.ts +models/owner.ts +models/pagination-details-all-of.ts +models/pagination-details.ts +models/participant-changelog-item-all-of.ts +models/participant-changelog-item.ts +models/person-count-and-email-info-all-of.ts +models/person-count-and-email-info-all-of1.ts +models/person-count-and-email-info.ts +models/person-count-email-deal-and-activity-info.ts +models/person-item-all-of-email-inner.ts +models/person-item-all-of-phone-inner.ts +models/person-item-all-of-picture-id-all-of.ts +models/person-item-all-of-picture-id-all-of1-pictures.ts +models/person-item-all-of-picture-id-all-of1.ts +models/person-item-all-of-picture-id.ts +models/person-item-all-of.ts +models/person-item.ts +models/person-name-count-and-email-info-with-ids-all-of.ts +models/person-name-count-and-email-info-with-ids.ts +models/person-name-count-and-email-info.ts +models/person-name-info-with-org-and-owner-id-all-of.ts +models/person-name-info-with-org-and-owner-id-all-of1.ts +models/person-name-info-with-org-and-owner-id.ts +models/persons-collection-response-object.ts +models/pipeline-details-all-of-deals-summary-per-currency-full-currencyid.ts +models/pipeline-details-all-of-deals-summary-per-currency-full.ts +models/pipeline-details-all-of-deals-summary-per-currency.ts +models/pipeline-details-all-of-deals-summary-per-stages-stageid.ts +models/pipeline-details-all-of-deals-summary-per-stages-stageidcurrencyid.ts +models/pipeline-details-all-of-deals-summary-per-stages.ts +models/pipeline-details-all-of-deals-summary.ts +models/pipeline-details-all-of.ts +models/pipeline-details.ts +models/pipeline-request.ts +models/pipeline-request1.ts +models/product-field-all-of.ts +models/product-field-all-of1.ts +models/product-field.ts +models/product-request.ts +models/project-put-plan-item-body-object.ts +models/project-response-object-all-of.ts +models/project-response-object.ts +models/put-role-pipelines-body.ts +models/receive-message-request-attachments-inner.ts +models/receive-message-request.ts +models/receive-message200-response.ts +models/receive-message400-response-additional-data.ts +models/receive-message400-response.ts +models/relationship-organization-info-item-all-of.ts +models/relationship-organization-info-item-with-active-flag.ts +models/relationship-organization-info-item.ts +models/requied-post-project-parameters.ts +models/required-post-project-parameters.ts +models/requred-title-parameter.ts +models/response-call-log-object-all-of.ts +models/response-call-log-object.ts +models/role-assignment-all-of.ts +models/role-assignment.ts +models/sub-role-all-of.ts +models/sub-role.ts +models/task-response-object-all-of.ts +models/task-response-object.ts +models/team-id.ts +models/template-response-object-all-of.ts +models/template-response-object.ts +models/unathorized-response.ts +models/update-activity-plan-item-response.ts +models/update-activity-request-all-of.ts +models/update-activity-request.ts +models/update-activity-response.ts +models/update-activity-type-request.ts +models/update-deal-parameters.ts +models/update-deal-product-request-all-of.ts +models/update-deal-product-request.ts +models/update-deal-request.ts +models/update-field-request.ts +models/update-file-response.ts +models/update-filter-request.ts +models/update-lead-label-request.ts +models/update-lead-request.ts +models/update-mail-thread-response-all-of.ts +models/update-mail-thread-response.ts +models/update-organization-relationship-response.ts +models/update-organization-request-all-of.ts +models/update-organization-request.ts +models/update-organization-response-all-of.ts +models/update-organization-response.ts +models/update-person-request-all-of.ts +models/update-person-request.ts +models/update-person-response.ts +models/update-pipeline-response-all-of-data.ts +models/update-pipeline-response-all-of.ts +models/update-pipeline-response.ts +models/update-product-field-response.ts +models/update-product-request-all-of.ts +models/update-product-request-all-of1.ts +models/update-product-request.ts +models/update-product-response.ts +models/update-project-request.ts +models/update-project-request1-all-of.ts +models/update-project-request1-all-of1.ts +models/update-project-request1-all-of2.ts +models/update-project-request1.ts +models/update-project-request2.ts +models/update-project-response.ts +models/update-recurring-subscription-request.ts +models/update-role-response.ts +models/update-stage-request-all-of.ts +models/update-stage-request-all-of1.ts +models/update-stage-request.ts +models/update-subscription-installment-request.ts +models/update-task-plan-item-response.ts +models/update-task-response.ts +models/update-team-request-all-of.ts +models/update-team-request.ts +models/update-team-with-additional-properties.ts +models/update-user-request.ts +models/upsert-activity-type-response-all-of.ts +models/upsert-activity-type-response.ts +models/upsert-comment-response.ts +models/upsert-goal-response-data-goal-assignee.ts +models/upsert-goal-response-data-goal-duration.ts +models/upsert-goal-response-data-goal-expected-outcome.ts +models/upsert-goal-response-data-goal-type-params.ts +models/upsert-goal-response-data-goal-type.ts +models/upsert-goal-response-data-goal.ts +models/upsert-goal-response-data.ts +models/upsert-goal-response.ts +models/upsert-lead-label-response.ts +models/upsert-note-response.ts +models/upsert-role-settings-response-all-of-data.ts +models/upsert-role-settings-response-all-of.ts +models/upsert-role-settings-response.ts +models/upsert-stage-response-data.ts +models/upsert-stage-response.ts +models/user-data-with-id-all-of.ts +models/user-data-with-id.ts +models/user-ids-all-of.ts +models/user-ids.ts +models/user-provider-link-error-response.ts +models/webhooks-bad-request-response-all-of.ts +models/webhooks-bad-request-response.ts +package.json +tsconfig.esm.json +tsconfig.json diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION new file mode 100644 index 00000000..0df17dd0 --- /dev/null +++ b/.openapi-generator/VERSION @@ -0,0 +1 @@ +6.2.1 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index b1e92fe8..70f06e55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ The file format of it is based on [Keep a Changelog](http://keepachangelog.com/e For public Changelog covering all changes done to Pipedrive’s API, webhooks and app extensions platforms, see [public Changelog](https://pipedrive.readme.io/docs/changelog) with discussion area in [Developers Community](https://devcommunity.pipedrive.com/c/documentation/changelog/19). ## [Unreleased] +### Added +- Introduced a new client-nodejs library with full TypeScript support +- Added compatibility for both API v1 and v2 endpoints. See migration guide for more details ## [23.4.3] - 2024-11-22 ### Added diff --git a/README.md b/README.md index e752c7d0..10774d6f 100644 --- a/README.md +++ b/README.md @@ -1,112 +1,90 @@ # Pipedrive client for NodeJS based apps -Pipedrive is a sales pipeline software that gets you organized. -It's a powerful sales CRM with effortless sales pipeline management. -See www.pipedrive.com for details. -This is the official Pipedrive API wrapper-client for NodeJS based apps, distributed by Pipedrive Inc freely under the MIT licence. -It provides convenient access to the Pipedrive API, allowing you to operate with objects such as Deals, Persons, Organizations, Products and much more. +Pipedrive is a sales pipeline software that gets you organized. It's a powerful sales CRM with effortless sales pipeline management. See www.pipedrive.com for details. -## Table of Contents -- [Installation](#installation) - -- [API Reference](#api-reference) - -- [How to use it](#how-to-use-it) - - - [With a pre-set API token](#with-a-pre-set-api-token) - - - [With OAuth2](#with-oauth2) - - - [Authorizing your client](#authorizing-your-client) - - - [Storing an access token for reuse](#storing-an-access-token-for-reuse) - - - [Complete example](#complete-example) - -- [Documentation for Authorization](#documentation-for-authorization) - -- [Documentation for API Endpoints](#documentation-for-api-endpoints) - -- [Documentation for Models](#documentation-for-models) +This is the official Pipedrive API wrapper-client for NodeJS based apps, distributed by Pipedrive Inc freely under the MIT license. It provides convenient access to the Pipedrive API, allowing you to operate with objects such as Deals, Persons, Organizations, Products and much more. ## Installation + ``` -npm install pipedrive +npm install pipedrive --save ``` ## API Reference + The Pipedrive RESTful API Reference can be found at https://developers.pipedrive.com/docs/api/v1. -Pipedrive API’s core concepts for its usage can be found in our [Developer documentation](https://pipedrive.readme.io/docs/core-api-concepts-about-pipedrive-api). +Pipedrive API’s core concepts for its usage can be found in our [Developer documentation](https://pipedrive.readme.io/docs/core-api-concepts-about-pipedrive-api) + +## API versions -## How to use it +This SDK supports two API versions, each with its own namespace: -> **Warning** -> -> The `pipedrive.ApiClient.instance` has been deprecated. -> -> Please, initialise a `new pipedrive.ApiClient()` instance separately for each request instead. +- **[API v1 endpoints](docs/v1.md)**: List of endpoints for API version 1. +- **[API v2 endpoints](docs/v2.md)**: List of endpoints for API version 2. + +**Note:** Each API version requires separate configuration specific to that version. Ensure you are using the correct namespace and setup for the version you intend to use. + +## How to use it? ### With a pre-set API token + You can retrieve the api_token from your existing Pipedrive account’s settings page. A step-by-step guide is available [here](https://pipedrive.readme.io/docs/how-to-find-the-api-token). -```JavaScript -const express = require('express'); +```typescript +import express from "express"; +import { Configuration, DealsApi } from "pipedrive/v1"; + const app = express(); -const pipedrive = require('pipedrive'); -const PORT = 1800; +const PORT = 3000; + +// Configure Client with API key authorization +const apiConfig = new Configuration({ + apiKey: "YOUR_API_TOKEN_HERE", +}); app.listen(PORT, () => { console.log(`Listening on port ${PORT}`); }); -app.get('/', async (req, res) => { - try { - const apiClient = new pipedrive.ApiClient(); - - // Configure API key authorization: apiToken - let apiToken = apiClient.authentications.api_key; - apiToken.apiKey = 'YOUR_API_TOKEN_HERE'; +app.get("/", async (req, res) => { + const dealsApi = new DealsApi(apiConfig); + const response = await dealsApi.getDeals(); + const { data: deals } = response; - const api = new pipedrive.DealsApi(apiClient); - const deals = await api.getDeals(); - - return res.send(deals); - } catch (error) { - console.error('Error:', error); - - res.status(500).json({ - error: error.message, - }); - } + res.send(deals); }); - - ``` -### With OAuth2 +### With OAuth 2 + If you would like to use an OAuth access token for making API calls, then make sure the API key described in the previous section is not set or is set to an empty string. If both API token and OAuth access token are set, then the API token takes precedence. To set up authentication in the API client, you need the following information. You can receive the necessary client tokens through a Sandbox account (get it [here](https://developers.pipedrive.com/start-here)) and generate the tokens (detailed steps [here](https://pipedrive.readme.io/docs/marketplace-manager#section-how-to-get-your-client-id-and-client-secret)). -| Parameter | Description | -|-----------|-------------| -| clientId | OAuth 2 Client ID | -| clientSecret | OAuth 2 Client Secret | -| redirectUri | OAuth 2 Redirection endpoint or Callback Uri | +| Parameter | Description | +| ------------ | -------------------------------------------- | +| clientId | OAuth 2 Client ID | +| clientSecret | OAuth 2 Client Secret | +| redirectUri | OAuth 2 Redirection endpoint or Callback Uri | Next, initialize the API client as follows: -```JavaScript -const pipedrive = require('pipedrive'); - -const apiClient = new pipedrive.ApiClient(); +```typescript +import { OAuth2Configuration, Configuration } from 'pipedrive/v1'; // Configuration parameters and credentials -let oauth2 = apiClient.authentications.oauth2; -oauth2.clientId = 'clientId'; // OAuth 2 Client ID -oauth2.clientSecret = 'clientSecret'; // OAuth 2 Client Secret -oauth2.redirectUri = 'redirectUri'; // OAuth 2 Redirection endpoint or Callback Uri +const oauth2 = new OAuth2Configuration({ + clientId: "clientId", // OAuth 2 Client ID + clientSecret: "clientSecret", // OAuth 2 Client Secret + redirectUri: 'redirectUri' // OAuth 2 Redirection endpoint or Callback Uri +}); + +const apiConfig = new Configuration({ + accessToken: oauth2.getAccessToken, + basePath: oauth2.basePath, +}); + ``` You must now authorize the client. @@ -117,11 +95,11 @@ Your application must obtain user authorization before it can execute an endpoin #### 1. Obtaining user consent -To obtain user's consent, you must redirect the user to the authorization page. The `buildAuthorizationUrl()` method creates the URL to the authorization page. +To obtain user's consent, you must redirect the user to the authorization page. The `authorizationUrl` returns the URL to the authorization page. -```JavaScript -const authUrl = apiClient.buildAuthorizationUrl(); +```typescript // open up the authUrl in the browser +const authUrl = oauth2.authorizationUrl; ``` #### 2. Handle the OAuth server response @@ -142,28 +120,20 @@ https://example.com/oauth/callback?error=access_denied #### 3. Authorize the client using the code -After the server receives the code, it can exchange this for an *access token*. -The access token is an object containing information for authorizing the client and refreshing the token itself. -In the API client all the access token fields are held separately in the `authentications.oauth2` object. -Additionally access token expiration time as an `authentications.oauth2.expiresAt` field is calculated. -It is measured in the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC. +After the server receives the code, it can exchange this for an _access token_. The access token is an object containing information for authorizing the client and refreshing the token itself. In the API client all the access token fields are held separately in the `OAuth2Configuration` class. Additionally access token expiration time as an `OAuth2Configuration.expiresAt` field is calculated. It is measured in the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC. -```JavaScript -const tokenPromise = apiClient.authorize(code); +```typescript +const token = await oauth2.authorize(code); ``` + The Node.js SDK supports only promises. So, the authorize call returns a promise. ### Refreshing token -Access tokens may expire after sometime. To extend its lifetime, you must refresh the token. +Access tokens may expire after sometime, if it necessary you can do it manually. -```JavaScript -const refreshPromise = apiClient.refreshToken(); -refreshPromise.then(() => { - // token has been refreshed -} , (exception) => { - // error occurred, exception will be of type src/exceptions/OAuthProviderException -}); +```typescript +const newToken = await oauth2.tokenRefresh(); ``` If the access token expires, the SDK will attempt to automatically refresh it before the next endpoint call which requires authentication. @@ -172,63 +142,42 @@ If the access token expires, the SDK will attempt to automatically refresh it be It is recommended that you store the access token for reuse. -This code snippet stores the access token in a session for an express application. -It uses the [cookie-parser](https://www.npmjs.com/package/cookie-parser) and [cookie-session](https://www.npmjs.com/package/cookie-session) npm packages for storing the access token. +This code snippet stores the access token in a session for an express application. It uses the [cookie-parser](https://www.npmjs.com/package/cookie-parser) and [cookie-session](https://www.npmjs.com/package/cookie-session) npm packages for storing the access token. -```JavaScript -const express = require('express'); -const cookieParser = require('cookie-parser'); -const cookieSession = require('cookie-session'); +```typescript +import express from "express"; +import cookieParse from "cookie-parser"; +import cookeSession from "cookie-session"; +import { Configuration, DealsApi, OAuth2Configuration } from "pipedrive/v1"; const app = express(); + app.use(cookieParser()); app.use(cookieSession({ - name: 'session', - keys: ['key1'] + name: "session", + keys: ["key1"] })); -const lib = require('pipedrive'); ... + // store access token in the session // note that this is only the access token field value not the whole token object -req.session.accessToken = apiClient.authentications.oauth2.accessToken; +req.session.accessToken = await oauth.getAccessToken(); ``` However, since the SDK will attempt to automatically refresh the access token when it expires, it is recommended that you register a **token update callback** to detect any change to the access token. -```JavaScript -apiClient.authentications.oauth2.tokenUpdateCallback = function(token) { - // getting the updated token - // here the token is an object, you can store the whole object or extract fields into separate values - req.session.token = token; -} +```typescript +oauth2.onTokenUpdate = function (token) { + // getting the updated token + // here the token is an object, you can store the whole object or extract fields into separate values + req.session.token = token; +}; ``` The token update callback will be fired upon authorization as well as token refresh. -To authorize a client from a stored access token, just set the access token in api client oauth2 authentication object along with the other configuration parameters before making endpoint calls: -> NB! This code only supports one client and should not be used as production code. Please store a separate access token for each client. - -```JavaScript -const express = require('express'); -const cookieParser = require('cookie-parser'); -const cookieSession = require('cookie-session'); - -const app = express(); -app.use(cookieParser()); -app.use(cookieSession({ - name: 'session', - keys: ['key1'] -})); - -const lib = require('pipedrive'); - -app.get('/', (req, res) => { - apiClient.authentications.oauth2.accessToken = req.session.accessToken; // the access token stored in the session -}); -``` - ### Complete example This example demonstrates an express application (which uses [cookie-parser](https://www.npmjs.com/package/cookie-parser) and [cookie-session](https://www.npmjs.com/package/cookie-session)) for handling session persistence. @@ -240,1221 +189,76 @@ However, if the token is not set in the session, then authorization URL is built The response comes back at the `'/callback'` endpoint, which uses the code to authorize the client and store the token in the session. It then redirects back to the base endpoint for calling endpoints from the SDK. -```JavaScript -const express = require('express'); +```typescript + +import express from "express"; +import { Configuration, DealsApi, OAuth2Configuration } from "pipedrive/v1"; +import cookieParser from "cookie-parser"; +import cookieSession from "cookie-session"; + const app = express(); -const cookieParser = require('cookie-parser'); -const cookieSession = require('cookie-session'); app.use(cookieParser()); -app.use( - cookieSession({ - name: 'session', - keys: ['key1'], - }), -); -const PORT = 1800; +app.use(cookieSession({ + name: "session", + keys: ["key1"] +})); + +const PORT = 3000; -const pipedrive = require('pipedrive'); + +const oauth2 = new OAuth2Configuration({ + clientId: "clientId", // OAuth 2 Client ID + clientSecret: "clientSecret", // OAuth 2 Client Secret + redirectUri: 'redirectUri' // OAuth 2 Redirection endpoint or Callback Uri +}); app.listen(PORT, () => { console.log(`Listening on port ${PORT}`); }); app.get('/', async (req, res) => { - const apiClient = new pipedrive.ApiClient(); + try { + // method will handle return null if token is not available in the session + const token = oauth2.updateToken(req.session?.accessToken); + + if (!token) { + const authUrl = oauth2.authorizationUrl; + return res.redirect(authUrl); + } - let oauth2 = apiClient.authentications.oauth2; - oauth2.clientId = 'clientId'; // OAuth 2 Client ID - oauth2.clientSecret = 'clientSecret'; // OAuth 2 Client Secret - oauth2.redirectUri = 'http://localhost:1800/callback'; // OAuth 2 Redirection endpoint or Callback Uri - if ( - req.session.accessToken !== null && - req.session.accessToken !== undefined - ) { + const apiConfig = new Configuration({ + accessToken: oauth2.getAccessToken, + basePath: oauth2.basePath, + }); + // token is already set in the session // now make API calls as required // client will automatically refresh the token when it expires and call the token update callback - const api = new pipedrive.DealsApi(apiClient); - const deals = await api.getDeals(); + const dealsApi = new DealsApi(apiConfig) - res.send(deals); - } else { - const authUrl = apiClient.buildAuthorizationUrl(); + const response = await dealsApi.getDeals(); + const { data: deals } = response; - res.redirect(authUrl); + return res.send(deals); + } catch (error){ + console.error(error) + return res.status(500).send(error) } }); -app.get('/callback', (req, res) => { - const authCode = req.query.code; - const promise = apiClient.authorize(authCode); - - promise.then( - () => { - req.session.accessToken = apiClient.authentications.oauth2.accessToken; - res.redirect('/'); - }, - (exception) => { - // error occurred, exception will be of type src/exceptions/OAuthProviderException - }, - ); +app.get('/callback', async (req, res) => { + try { + const authCode = req.query.code as string; + const newAccessToken = await oauth2.authorize(authCode); + + req.session.accessToken = newAccessToken; + return res.redirect("/"); + }catch (error) { + console.error(error) + return res.status(500).send(error) + } }); - - ``` - -## Documentation for Authorization - - - -### api_key - - -- **Type**: API key -- **API key parameter name**: api_token -- **Location**: URL query string - - - -### basic_authentication - -- **Type**: HTTP basic authentication - - - -### oauth2 - - -- **Type**: OAuth -- **Flow**: accessCode -- **Authorization URL**: https://oauth.pipedrive.com/oauth/authorize -- **Scopes**: - - base: Read settings of the authorized user and currencies in an account - - deals:read: Read most of the data about deals and related entities - deal fields, products, followers, participants; all notes, files, filters, pipelines, stages, and statistics. Does not include access to activities (except the last and next activity related to a deal) - - deals:full: Create, read, update and delete deals, its participants and followers; all files, notes, and filters. It also includes read access to deal fields, pipelines, stages, and statistics. Does not include access to activities (except the last and next activity related to a deal) - - mail:read: Read mail threads and messages - - mail:full: Read, update and delete mail threads. Also grants read access to mail messages - - activities:read: Read activities, its fields and types; all files and filters - - activities:full: Create, read, update and delete activities and all files and filters. Also includes read access to activity fields and types - - contacts:read: Read the data about persons and organizations, their related fields and followers; also all notes, files, filters - - contacts:full: Create, read, update and delete persons and organizations and their followers; all notes, files, filters. Also grants read access to contacts-related fields - - products:read: Read products, its fields, files, followers and products connected to a deal - - products:full: Create, read, update and delete products and its fields; add products to deals - - projects:read: Read projects and its fields, tasks and project templates - - projects:full: Create, read, update and delete projects and its fields; add projects templates and project related tasks - - users:read: Read data about users (people with access to a Pipedrive account), their permissions, roles and followers - - recents:read: Read all recent changes occurred in an account. Includes data about activities, activity types, deals, files, filters, notes, persons, organizations, pipelines, stages, products and users - - search:read: Search across the account for deals, persons, organizations, files and products, and see details about the returned results - - admin: Allows to do many things that an administrator can do in a Pipedrive company account - create, read, update and delete pipelines and its stages; deal, person and organization fields; activity types; users and permissions, etc. It also allows the app to create webhooks and fetch and delete webhooks that are created by the app - - leads:read: Read data about leads and lead labels - - leads:full: Create, read, update and delete leads and lead labels - - phone-integration: Enables advanced call integration features like logging call duration and other metadata, and play call recordings inside Pipedrive - - goals:read: Read data on all goals - - goals:full: Create, read, update and delete goals - - video-calls: Allows application to register as a video call integration provider and create conference links - - messengers-integration: Allows application to register as a messengers integration provider and allows them to deliver incoming messages and their statuses - - - -## Documentation for API Endpoints - -All URIs are relative to *https://api.pipedrive.com/v1* - -Code examples are available through the links in the list below or on the -[Pipedrive Developers Tutorials](https://pipedrive.readme.io/docs/tutorials) page - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*Pipedrive.ActivitiesApi* | [**addActivity**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivitiesApi.md#addActivity) | **POST** /activities | Add an activity -*Pipedrive.ActivitiesApi* | [**deleteActivities**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivitiesApi.md#deleteActivities) | **DELETE** /activities | Delete multiple activities in bulk -*Pipedrive.ActivitiesApi* | [**deleteActivity**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivitiesApi.md#deleteActivity) | **DELETE** /activities/{id} | Delete an activity -*Pipedrive.ActivitiesApi* | [**getActivities**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivitiesApi.md#getActivities) | **GET** /activities | Get all activities assigned to a particular user -*Pipedrive.ActivitiesApi* | [**getActivitiesCollection**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivitiesApi.md#getActivitiesCollection) | **GET** /activities/collection | Get all activities (BETA) -*Pipedrive.ActivitiesApi* | [**getActivity**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivitiesApi.md#getActivity) | **GET** /activities/{id} | Get details of an activity -*Pipedrive.ActivitiesApi* | [**updateActivity**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivitiesApi.md#updateActivity) | **PUT** /activities/{id} | Update an activity -*Pipedrive.ActivityFieldsApi* | [**getActivityFields**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityFieldsApi.md#getActivityFields) | **GET** /activityFields | Get all activity fields -*Pipedrive.ActivityTypesApi* | [**addActivityType**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypesApi.md#addActivityType) | **POST** /activityTypes | Add new activity type -*Pipedrive.ActivityTypesApi* | [**deleteActivityType**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypesApi.md#deleteActivityType) | **DELETE** /activityTypes/{id} | Delete an activity type -*Pipedrive.ActivityTypesApi* | [**deleteActivityTypes**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypesApi.md#deleteActivityTypes) | **DELETE** /activityTypes | Delete multiple activity types in bulk -*Pipedrive.ActivityTypesApi* | [**getActivityTypes**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypesApi.md#getActivityTypes) | **GET** /activityTypes | Get all activity types -*Pipedrive.ActivityTypesApi* | [**updateActivityType**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypesApi.md#updateActivityType) | **PUT** /activityTypes/{id} | Update an activity type -*Pipedrive.BillingApi* | [**getCompanyAddons**](https://github.com/pipedrive/client-nodejs/blob/master/docs/BillingApi.md#getCompanyAddons) | **GET** /billing/subscriptions/addons | Get all add-ons for a single company -*Pipedrive.CallLogsApi* | [**addCallLog**](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogsApi.md#addCallLog) | **POST** /callLogs | Add a call log -*Pipedrive.CallLogsApi* | [**addCallLogAudioFile**](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogsApi.md#addCallLogAudioFile) | **POST** /callLogs/{id}/recordings | Attach an audio file to the call log -*Pipedrive.CallLogsApi* | [**deleteCallLog**](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogsApi.md#deleteCallLog) | **DELETE** /callLogs/{id} | Delete a call log -*Pipedrive.CallLogsApi* | [**getCallLog**](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogsApi.md#getCallLog) | **GET** /callLogs/{id} | Get details of a call log -*Pipedrive.CallLogsApi* | [**getUserCallLogs**](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogsApi.md#getUserCallLogs) | **GET** /callLogs | Get all call logs assigned to a particular user -*Pipedrive.ChannelsApi* | [**addChannel**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChannelsApi.md#addChannel) | **POST** /channels | Add a channel -*Pipedrive.ChannelsApi* | [**deleteChannel**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChannelsApi.md#deleteChannel) | **DELETE** /channels/{id} | Delete a channel -*Pipedrive.ChannelsApi* | [**deleteConversation**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChannelsApi.md#deleteConversation) | **DELETE** /channels/{channel-id}/conversations/{conversation-id} | Delete a conversation -*Pipedrive.ChannelsApi* | [**receiveMessage**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChannelsApi.md#receiveMessage) | **POST** /channels/messages/receive | Receives an incoming message -*Pipedrive.CurrenciesApi* | [**getCurrencies**](https://github.com/pipedrive/client-nodejs/blob/master/docs/CurrenciesApi.md#getCurrencies) | **GET** /currencies | Get all supported currencies -*Pipedrive.DealFieldsApi* | [**addDealField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealFieldsApi.md#addDealField) | **POST** /dealFields | Add a new deal field -*Pipedrive.DealFieldsApi* | [**deleteDealField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealFieldsApi.md#deleteDealField) | **DELETE** /dealFields/{id} | Delete a deal field -*Pipedrive.DealFieldsApi* | [**deleteDealFields**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealFieldsApi.md#deleteDealFields) | **DELETE** /dealFields | Delete multiple deal fields in bulk -*Pipedrive.DealFieldsApi* | [**getDealField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealFieldsApi.md#getDealField) | **GET** /dealFields/{id} | Get one deal field -*Pipedrive.DealFieldsApi* | [**getDealFields**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealFieldsApi.md#getDealFields) | **GET** /dealFields | Get all deal fields -*Pipedrive.DealFieldsApi* | [**updateDealField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealFieldsApi.md#updateDealField) | **PUT** /dealFields/{id} | Update a deal field -*Pipedrive.DealsApi* | [**addDeal**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#addDeal) | **POST** /deals | Add a deal -*Pipedrive.DealsApi* | [**addDealFollower**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#addDealFollower) | **POST** /deals/{id}/followers | Add a follower to a deal -*Pipedrive.DealsApi* | [**addDealParticipant**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#addDealParticipant) | **POST** /deals/{id}/participants | Add a participant to a deal -*Pipedrive.DealsApi* | [**addDealProduct**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#addDealProduct) | **POST** /deals/{id}/products | Add a product to a deal -*Pipedrive.DealsApi* | [**deleteDeal**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#deleteDeal) | **DELETE** /deals/{id} | Delete a deal -*Pipedrive.DealsApi* | [**deleteDealFollower**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#deleteDealFollower) | **DELETE** /deals/{id}/followers/{follower_id} | Delete a follower from a deal -*Pipedrive.DealsApi* | [**deleteDealParticipant**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#deleteDealParticipant) | **DELETE** /deals/{id}/participants/{deal_participant_id} | Delete a participant from a deal -*Pipedrive.DealsApi* | [**deleteDealProduct**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#deleteDealProduct) | **DELETE** /deals/{id}/products/{product_attachment_id} | Delete an attached product from a deal -*Pipedrive.DealsApi* | [**deleteDeals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#deleteDeals) | **DELETE** /deals | Delete multiple deals in bulk -*Pipedrive.DealsApi* | [**duplicateDeal**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#duplicateDeal) | **POST** /deals/{id}/duplicate | Duplicate deal -*Pipedrive.DealsApi* | [**getDeal**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDeal) | **GET** /deals/{id} | Get details of a deal -*Pipedrive.DealsApi* | [**getDealActivities**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealActivities) | **GET** /deals/{id}/activities | List activities associated with a deal -*Pipedrive.DealsApi* | [**getDealChangelog**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealChangelog) | **GET** /deals/{id}/changelog | List updates about deal field values -*Pipedrive.DealsApi* | [**getDealFiles**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealFiles) | **GET** /deals/{id}/files | List files attached to a deal -*Pipedrive.DealsApi* | [**getDealFollowers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealFollowers) | **GET** /deals/{id}/followers | List followers of a deal -*Pipedrive.DealsApi* | [**getDealMailMessages**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealMailMessages) | **GET** /deals/{id}/mailMessages | List mail messages associated with a deal -*Pipedrive.DealsApi* | [**getDealParticipants**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealParticipants) | **GET** /deals/{id}/participants | List participants of a deal -*Pipedrive.DealsApi* | [**getDealParticipantsChangelog**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealParticipantsChangelog) | **GET** /deals/{id}/participantsChangelog | List updates about participants of a deal -*Pipedrive.DealsApi* | [**getDealPersons**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealPersons) | **GET** /deals/{id}/persons | List all persons associated with a deal -*Pipedrive.DealsApi* | [**getDealProducts**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealProducts) | **GET** /deals/{id}/products | List products attached to a deal -*Pipedrive.DealsApi* | [**getDealUpdates**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealUpdates) | **GET** /deals/{id}/flow | List updates about a deal -*Pipedrive.DealsApi* | [**getDealUsers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealUsers) | **GET** /deals/{id}/permittedUsers | List permitted users -*Pipedrive.DealsApi* | [**getDeals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDeals) | **GET** /deals | Get all deals -*Pipedrive.DealsApi* | [**getDealsCollection**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealsCollection) | **GET** /deals/collection | Get all deals (BETA) -*Pipedrive.DealsApi* | [**getDealsSummary**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealsSummary) | **GET** /deals/summary | Get deals summary -*Pipedrive.DealsApi* | [**getDealsTimeline**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#getDealsTimeline) | **GET** /deals/timeline | Get deals timeline -*Pipedrive.DealsApi* | [**mergeDeals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#mergeDeals) | **PUT** /deals/{id}/merge | Merge two deals -*Pipedrive.DealsApi* | [**searchDeals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#searchDeals) | **GET** /deals/search | Search deals -*Pipedrive.DealsApi* | [**updateDeal**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#updateDeal) | **PUT** /deals/{id} | Update a deal -*Pipedrive.DealsApi* | [**updateDealProduct**](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsApi.md#updateDealProduct) | **PUT** /deals/{id}/products/{product_attachment_id} | Update the product attached to a deal -*Pipedrive.FilesApi* | [**addFile**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FilesApi.md#addFile) | **POST** /files | Add file -*Pipedrive.FilesApi* | [**addFileAndLinkIt**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FilesApi.md#addFileAndLinkIt) | **POST** /files/remote | Create a remote file and link it to an item -*Pipedrive.FilesApi* | [**deleteFile**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FilesApi.md#deleteFile) | **DELETE** /files/{id} | Delete a file -*Pipedrive.FilesApi* | [**downloadFile**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FilesApi.md#downloadFile) | **GET** /files/{id}/download | Download one file -*Pipedrive.FilesApi* | [**getFile**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FilesApi.md#getFile) | **GET** /files/{id} | Get one file -*Pipedrive.FilesApi* | [**getFiles**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FilesApi.md#getFiles) | **GET** /files | Get all files -*Pipedrive.FilesApi* | [**linkFileToItem**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FilesApi.md#linkFileToItem) | **POST** /files/remoteLink | Link a remote file to an item -*Pipedrive.FilesApi* | [**updateFile**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FilesApi.md#updateFile) | **PUT** /files/{id} | Update file details -*Pipedrive.FiltersApi* | [**addFilter**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersApi.md#addFilter) | **POST** /filters | Add a new filter -*Pipedrive.FiltersApi* | [**deleteFilter**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersApi.md#deleteFilter) | **DELETE** /filters/{id} | Delete a filter -*Pipedrive.FiltersApi* | [**deleteFilters**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersApi.md#deleteFilters) | **DELETE** /filters | Delete multiple filters in bulk -*Pipedrive.FiltersApi* | [**getFilter**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersApi.md#getFilter) | **GET** /filters/{id} | Get one filter -*Pipedrive.FiltersApi* | [**getFilterHelpers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersApi.md#getFilterHelpers) | **GET** /filters/helpers | Get all filter helpers -*Pipedrive.FiltersApi* | [**getFilters**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersApi.md#getFilters) | **GET** /filters | Get all filters -*Pipedrive.FiltersApi* | [**updateFilter**](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersApi.md#updateFilter) | **PUT** /filters/{id} | Update filter -*Pipedrive.GoalsApi* | [**addGoal**](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalsApi.md#addGoal) | **POST** /goals | Add a new goal -*Pipedrive.GoalsApi* | [**deleteGoal**](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalsApi.md#deleteGoal) | **DELETE** /goals/{id} | Delete existing goal -*Pipedrive.GoalsApi* | [**getGoalResult**](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalsApi.md#getGoalResult) | **GET** /goals/{id}/results | Get result of a goal -*Pipedrive.GoalsApi* | [**getGoals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalsApi.md#getGoals) | **GET** /goals/find | Find goals -*Pipedrive.GoalsApi* | [**updateGoal**](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalsApi.md#updateGoal) | **PUT** /goals/{id} | Update existing goal -*Pipedrive.ItemSearchApi* | [**searchItem**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ItemSearchApi.md#searchItem) | **GET** /itemSearch | Perform a search from multiple item types -*Pipedrive.ItemSearchApi* | [**searchItemByField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ItemSearchApi.md#searchItemByField) | **GET** /itemSearch/field | Perform a search using a specific field from an item type -*Pipedrive.LeadLabelsApi* | [**addLeadLabel**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadLabelsApi.md#addLeadLabel) | **POST** /leadLabels | Add a lead label -*Pipedrive.LeadLabelsApi* | [**deleteLeadLabel**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadLabelsApi.md#deleteLeadLabel) | **DELETE** /leadLabels/{id} | Delete a lead label -*Pipedrive.LeadLabelsApi* | [**getLeadLabels**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadLabelsApi.md#getLeadLabels) | **GET** /leadLabels | Get all lead labels -*Pipedrive.LeadLabelsApi* | [**updateLeadLabel**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadLabelsApi.md#updateLeadLabel) | **PATCH** /leadLabels/{id} | Update a lead label -*Pipedrive.LeadSourcesApi* | [**getLeadSources**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadSourcesApi.md#getLeadSources) | **GET** /leadSources | Get all lead sources -*Pipedrive.LeadsApi* | [**addLead**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadsApi.md#addLead) | **POST** /leads | Add a lead -*Pipedrive.LeadsApi* | [**deleteLead**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadsApi.md#deleteLead) | **DELETE** /leads/{id} | Delete a lead -*Pipedrive.LeadsApi* | [**getLead**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadsApi.md#getLead) | **GET** /leads/{id} | Get one lead -*Pipedrive.LeadsApi* | [**getLeadUsers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadsApi.md#getLeadUsers) | **GET** /leads/{id}/permittedUsers | List permitted users -*Pipedrive.LeadsApi* | [**getLeads**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadsApi.md#getLeads) | **GET** /leads | Get all leads -*Pipedrive.LeadsApi* | [**searchLeads**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadsApi.md#searchLeads) | **GET** /leads/search | Search leads -*Pipedrive.LeadsApi* | [**updateLead**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadsApi.md#updateLead) | **PATCH** /leads/{id} | Update a lead -*Pipedrive.LegacyTeamsApi* | [**addTeam**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LegacyTeamsApi.md#addTeam) | **POST** /legacyTeams | Add a new team -*Pipedrive.LegacyTeamsApi* | [**addTeamUser**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LegacyTeamsApi.md#addTeamUser) | **POST** /legacyTeams/{id}/users | Add users to a team -*Pipedrive.LegacyTeamsApi* | [**deleteTeamUser**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LegacyTeamsApi.md#deleteTeamUser) | **DELETE** /legacyTeams/{id}/users | Delete users from a team -*Pipedrive.LegacyTeamsApi* | [**getTeam**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LegacyTeamsApi.md#getTeam) | **GET** /legacyTeams/{id} | Get a single team -*Pipedrive.LegacyTeamsApi* | [**getTeamUsers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LegacyTeamsApi.md#getTeamUsers) | **GET** /legacyTeams/{id}/users | Get all users in a team -*Pipedrive.LegacyTeamsApi* | [**getTeams**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LegacyTeamsApi.md#getTeams) | **GET** /legacyTeams | Get all teams -*Pipedrive.LegacyTeamsApi* | [**getUserTeams**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LegacyTeamsApi.md#getUserTeams) | **GET** /legacyTeams/user/{id} | Get all teams of a user -*Pipedrive.LegacyTeamsApi* | [**updateTeam**](https://github.com/pipedrive/client-nodejs/blob/master/docs/LegacyTeamsApi.md#updateTeam) | **PUT** /legacyTeams/{id} | Update a team -*Pipedrive.MailboxApi* | [**deleteMailThread**](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailboxApi.md#deleteMailThread) | **DELETE** /mailbox/mailThreads/{id} | Delete mail thread -*Pipedrive.MailboxApi* | [**getMailMessage**](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailboxApi.md#getMailMessage) | **GET** /mailbox/mailMessages/{id} | Get one mail message -*Pipedrive.MailboxApi* | [**getMailThread**](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailboxApi.md#getMailThread) | **GET** /mailbox/mailThreads/{id} | Get one mail thread -*Pipedrive.MailboxApi* | [**getMailThreadMessages**](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailboxApi.md#getMailThreadMessages) | **GET** /mailbox/mailThreads/{id}/mailMessages | Get all mail messages of mail thread -*Pipedrive.MailboxApi* | [**getMailThreads**](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailboxApi.md#getMailThreads) | **GET** /mailbox/mailThreads | Get mail threads -*Pipedrive.MailboxApi* | [**updateMailThreadDetails**](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailboxApi.md#updateMailThreadDetails) | **PUT** /mailbox/mailThreads/{id} | Update mail thread details -*Pipedrive.MeetingsApi* | [**deleteUserProviderLink**](https://github.com/pipedrive/client-nodejs/blob/master/docs/MeetingsApi.md#deleteUserProviderLink) | **DELETE** /meetings/userProviderLinks/{id} | Delete the link between a user and the installed video call integration -*Pipedrive.MeetingsApi* | [**saveUserProviderLink**](https://github.com/pipedrive/client-nodejs/blob/master/docs/MeetingsApi.md#saveUserProviderLink) | **POST** /meetings/userProviderLinks | Link a user with the installed video call integration -*Pipedrive.NoteFieldsApi* | [**getNoteFields**](https://github.com/pipedrive/client-nodejs/blob/master/docs/NoteFieldsApi.md#getNoteFields) | **GET** /noteFields | Get all note fields -*Pipedrive.NotesApi* | [**addNote**](https://github.com/pipedrive/client-nodejs/blob/master/docs/NotesApi.md#addNote) | **POST** /notes | Add a note -*Pipedrive.NotesApi* | [**addNoteComment**](https://github.com/pipedrive/client-nodejs/blob/master/docs/NotesApi.md#addNoteComment) | **POST** /notes/{id}/comments | Add a comment to a note -*Pipedrive.NotesApi* | [**deleteComment**](https://github.com/pipedrive/client-nodejs/blob/master/docs/NotesApi.md#deleteComment) | **DELETE** /notes/{id}/comments/{commentId} | Delete a comment related to a note -*Pipedrive.NotesApi* | [**deleteNote**](https://github.com/pipedrive/client-nodejs/blob/master/docs/NotesApi.md#deleteNote) | **DELETE** /notes/{id} | Delete a note -*Pipedrive.NotesApi* | [**getComment**](https://github.com/pipedrive/client-nodejs/blob/master/docs/NotesApi.md#getComment) | **GET** /notes/{id}/comments/{commentId} | Get one comment -*Pipedrive.NotesApi* | [**getNote**](https://github.com/pipedrive/client-nodejs/blob/master/docs/NotesApi.md#getNote) | **GET** /notes/{id} | Get one note -*Pipedrive.NotesApi* | [**getNoteComments**](https://github.com/pipedrive/client-nodejs/blob/master/docs/NotesApi.md#getNoteComments) | **GET** /notes/{id}/comments | Get all comments for a note -*Pipedrive.NotesApi* | [**getNotes**](https://github.com/pipedrive/client-nodejs/blob/master/docs/NotesApi.md#getNotes) | **GET** /notes | Get all notes -*Pipedrive.NotesApi* | [**updateCommentForNote**](https://github.com/pipedrive/client-nodejs/blob/master/docs/NotesApi.md#updateCommentForNote) | **PUT** /notes/{id}/comments/{commentId} | Update a comment related to a note -*Pipedrive.NotesApi* | [**updateNote**](https://github.com/pipedrive/client-nodejs/blob/master/docs/NotesApi.md#updateNote) | **PUT** /notes/{id} | Update a note -*Pipedrive.OrganizationFieldsApi* | [**addOrganizationField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFieldsApi.md#addOrganizationField) | **POST** /organizationFields | Add a new organization field -*Pipedrive.OrganizationFieldsApi* | [**deleteOrganizationField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFieldsApi.md#deleteOrganizationField) | **DELETE** /organizationFields/{id} | Delete an organization field -*Pipedrive.OrganizationFieldsApi* | [**deleteOrganizationFields**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFieldsApi.md#deleteOrganizationFields) | **DELETE** /organizationFields | Delete multiple organization fields in bulk -*Pipedrive.OrganizationFieldsApi* | [**getOrganizationField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFieldsApi.md#getOrganizationField) | **GET** /organizationFields/{id} | Get one organization field -*Pipedrive.OrganizationFieldsApi* | [**getOrganizationFields**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFieldsApi.md#getOrganizationFields) | **GET** /organizationFields | Get all organization fields -*Pipedrive.OrganizationFieldsApi* | [**updateOrganizationField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFieldsApi.md#updateOrganizationField) | **PUT** /organizationFields/{id} | Update an organization field -*Pipedrive.OrganizationRelationshipsApi* | [**addOrganizationRelationship**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipsApi.md#addOrganizationRelationship) | **POST** /organizationRelationships | Create an organization relationship -*Pipedrive.OrganizationRelationshipsApi* | [**deleteOrganizationRelationship**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipsApi.md#deleteOrganizationRelationship) | **DELETE** /organizationRelationships/{id} | Delete an organization relationship -*Pipedrive.OrganizationRelationshipsApi* | [**getOrganizationRelationship**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipsApi.md#getOrganizationRelationship) | **GET** /organizationRelationships/{id} | Get one organization relationship -*Pipedrive.OrganizationRelationshipsApi* | [**getOrganizationRelationships**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipsApi.md#getOrganizationRelationships) | **GET** /organizationRelationships | Get all relationships for organization -*Pipedrive.OrganizationRelationshipsApi* | [**updateOrganizationRelationship**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipsApi.md#updateOrganizationRelationship) | **PUT** /organizationRelationships/{id} | Update an organization relationship -*Pipedrive.OrganizationsApi* | [**addOrganization**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#addOrganization) | **POST** /organizations | Add an organization -*Pipedrive.OrganizationsApi* | [**addOrganizationFollower**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#addOrganizationFollower) | **POST** /organizations/{id}/followers | Add a follower to an organization -*Pipedrive.OrganizationsApi* | [**deleteOrganization**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#deleteOrganization) | **DELETE** /organizations/{id} | Delete an organization -*Pipedrive.OrganizationsApi* | [**deleteOrganizationFollower**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#deleteOrganizationFollower) | **DELETE** /organizations/{id}/followers/{follower_id} | Delete a follower from an organization -*Pipedrive.OrganizationsApi* | [**deleteOrganizations**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#deleteOrganizations) | **DELETE** /organizations | Delete multiple organizations in bulk -*Pipedrive.OrganizationsApi* | [**getOrganization**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganization) | **GET** /organizations/{id} | Get details of an organization -*Pipedrive.OrganizationsApi* | [**getOrganizationActivities**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationActivities) | **GET** /organizations/{id}/activities | List activities associated with an organization -*Pipedrive.OrganizationsApi* | [**getOrganizationChangelog**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationChangelog) | **GET** /organizations/{id}/changelog | List updates about organization field values -*Pipedrive.OrganizationsApi* | [**getOrganizationDeals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationDeals) | **GET** /organizations/{id}/deals | List deals associated with an organization -*Pipedrive.OrganizationsApi* | [**getOrganizationFiles**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationFiles) | **GET** /organizations/{id}/files | List files attached to an organization -*Pipedrive.OrganizationsApi* | [**getOrganizationFollowers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationFollowers) | **GET** /organizations/{id}/followers | List followers of an organization -*Pipedrive.OrganizationsApi* | [**getOrganizationMailMessages**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationMailMessages) | **GET** /organizations/{id}/mailMessages | List mail messages associated with an organization -*Pipedrive.OrganizationsApi* | [**getOrganizationPersons**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationPersons) | **GET** /organizations/{id}/persons | List persons of an organization -*Pipedrive.OrganizationsApi* | [**getOrganizationUpdates**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationUpdates) | **GET** /organizations/{id}/flow | List updates about an organization -*Pipedrive.OrganizationsApi* | [**getOrganizationUsers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationUsers) | **GET** /organizations/{id}/permittedUsers | List permitted users -*Pipedrive.OrganizationsApi* | [**getOrganizations**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizations) | **GET** /organizations | Get all organizations -*Pipedrive.OrganizationsApi* | [**getOrganizationsCollection**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#getOrganizationsCollection) | **GET** /organizations/collection | Get all organizations (BETA) -*Pipedrive.OrganizationsApi* | [**mergeOrganizations**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#mergeOrganizations) | **PUT** /organizations/{id}/merge | Merge two organizations -*Pipedrive.OrganizationsApi* | [**searchOrganization**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#searchOrganization) | **GET** /organizations/search | Search organizations -*Pipedrive.OrganizationsApi* | [**updateOrganization**](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsApi.md#updateOrganization) | **PUT** /organizations/{id} | Update an organization -*Pipedrive.PermissionSetsApi* | [**getPermissionSet**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PermissionSetsApi.md#getPermissionSet) | **GET** /permissionSets/{id} | Get one permission set -*Pipedrive.PermissionSetsApi* | [**getPermissionSetAssignments**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PermissionSetsApi.md#getPermissionSetAssignments) | **GET** /permissionSets/{id}/assignments | List permission set assignments -*Pipedrive.PermissionSetsApi* | [**getPermissionSets**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PermissionSetsApi.md#getPermissionSets) | **GET** /permissionSets | Get all permission sets -*Pipedrive.PersonFieldsApi* | [**addPersonField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonFieldsApi.md#addPersonField) | **POST** /personFields | Add a new person field -*Pipedrive.PersonFieldsApi* | [**deletePersonField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonFieldsApi.md#deletePersonField) | **DELETE** /personFields/{id} | Delete a person field -*Pipedrive.PersonFieldsApi* | [**deletePersonFields**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonFieldsApi.md#deletePersonFields) | **DELETE** /personFields | Delete multiple person fields in bulk -*Pipedrive.PersonFieldsApi* | [**getPersonField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonFieldsApi.md#getPersonField) | **GET** /personFields/{id} | Get one person field -*Pipedrive.PersonFieldsApi* | [**getPersonFields**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonFieldsApi.md#getPersonFields) | **GET** /personFields | Get all person fields -*Pipedrive.PersonFieldsApi* | [**updatePersonField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonFieldsApi.md#updatePersonField) | **PUT** /personFields/{id} | Update a person field -*Pipedrive.PersonsApi* | [**addPerson**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#addPerson) | **POST** /persons | Add a person -*Pipedrive.PersonsApi* | [**addPersonFollower**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#addPersonFollower) | **POST** /persons/{id}/followers | Add a follower to a person -*Pipedrive.PersonsApi* | [**addPersonPicture**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#addPersonPicture) | **POST** /persons/{id}/picture | Add person picture -*Pipedrive.PersonsApi* | [**deletePerson**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#deletePerson) | **DELETE** /persons/{id} | Delete a person -*Pipedrive.PersonsApi* | [**deletePersonFollower**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#deletePersonFollower) | **DELETE** /persons/{id}/followers/{follower_id} | Delete a follower from a person -*Pipedrive.PersonsApi* | [**deletePersonPicture**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#deletePersonPicture) | **DELETE** /persons/{id}/picture | Delete person picture -*Pipedrive.PersonsApi* | [**deletePersons**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#deletePersons) | **DELETE** /persons | Delete multiple persons in bulk -*Pipedrive.PersonsApi* | [**getPerson**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPerson) | **GET** /persons/{id} | Get details of a person -*Pipedrive.PersonsApi* | [**getPersonActivities**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonActivities) | **GET** /persons/{id}/activities | List activities associated with a person -*Pipedrive.PersonsApi* | [**getPersonChangelog**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonChangelog) | **GET** /persons/{id}/changelog | List updates about person field values -*Pipedrive.PersonsApi* | [**getPersonDeals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonDeals) | **GET** /persons/{id}/deals | List deals associated with a person -*Pipedrive.PersonsApi* | [**getPersonFiles**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonFiles) | **GET** /persons/{id}/files | List files attached to a person -*Pipedrive.PersonsApi* | [**getPersonFollowers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonFollowers) | **GET** /persons/{id}/followers | List followers of a person -*Pipedrive.PersonsApi* | [**getPersonMailMessages**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonMailMessages) | **GET** /persons/{id}/mailMessages | List mail messages associated with a person -*Pipedrive.PersonsApi* | [**getPersonProducts**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonProducts) | **GET** /persons/{id}/products | List products associated with a person -*Pipedrive.PersonsApi* | [**getPersonUpdates**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonUpdates) | **GET** /persons/{id}/flow | List updates about a person -*Pipedrive.PersonsApi* | [**getPersonUsers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonUsers) | **GET** /persons/{id}/permittedUsers | List permitted users -*Pipedrive.PersonsApi* | [**getPersons**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersons) | **GET** /persons | Get all persons -*Pipedrive.PersonsApi* | [**getPersonsCollection**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#getPersonsCollection) | **GET** /persons/collection | Get all persons (BETA) -*Pipedrive.PersonsApi* | [**mergePersons**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#mergePersons) | **PUT** /persons/{id}/merge | Merge two persons -*Pipedrive.PersonsApi* | [**searchPersons**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#searchPersons) | **GET** /persons/search | Search persons -*Pipedrive.PersonsApi* | [**updatePerson**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsApi.md#updatePerson) | **PUT** /persons/{id} | Update a person -*Pipedrive.PipelinesApi* | [**addPipeline**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PipelinesApi.md#addPipeline) | **POST** /pipelines | Add a new pipeline -*Pipedrive.PipelinesApi* | [**deletePipeline**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PipelinesApi.md#deletePipeline) | **DELETE** /pipelines/{id} | Delete a pipeline -*Pipedrive.PipelinesApi* | [**getPipeline**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PipelinesApi.md#getPipeline) | **GET** /pipelines/{id} | Get one pipeline -*Pipedrive.PipelinesApi* | [**getPipelineConversionStatistics**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PipelinesApi.md#getPipelineConversionStatistics) | **GET** /pipelines/{id}/conversion_statistics | Get deals conversion rates in pipeline -*Pipedrive.PipelinesApi* | [**getPipelineDeals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PipelinesApi.md#getPipelineDeals) | **GET** /pipelines/{id}/deals | Get deals in a pipeline -*Pipedrive.PipelinesApi* | [**getPipelineMovementStatistics**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PipelinesApi.md#getPipelineMovementStatistics) | **GET** /pipelines/{id}/movement_statistics | Get deals movements in pipeline -*Pipedrive.PipelinesApi* | [**getPipelines**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PipelinesApi.md#getPipelines) | **GET** /pipelines | Get all pipelines -*Pipedrive.PipelinesApi* | [**updatePipeline**](https://github.com/pipedrive/client-nodejs/blob/master/docs/PipelinesApi.md#updatePipeline) | **PUT** /pipelines/{id} | Update a pipeline -*Pipedrive.ProductFieldsApi* | [**addProductField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductFieldsApi.md#addProductField) | **POST** /productFields | Add a new product field -*Pipedrive.ProductFieldsApi* | [**deleteProductField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductFieldsApi.md#deleteProductField) | **DELETE** /productFields/{id} | Delete a product field -*Pipedrive.ProductFieldsApi* | [**deleteProductFields**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductFieldsApi.md#deleteProductFields) | **DELETE** /productFields | Delete multiple product fields in bulk -*Pipedrive.ProductFieldsApi* | [**getProductField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductFieldsApi.md#getProductField) | **GET** /productFields/{id} | Get one product field -*Pipedrive.ProductFieldsApi* | [**getProductFields**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductFieldsApi.md#getProductFields) | **GET** /productFields | Get all product fields -*Pipedrive.ProductFieldsApi* | [**updateProductField**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductFieldsApi.md#updateProductField) | **PUT** /productFields/{id} | Update a product field -*Pipedrive.ProductsApi* | [**addProduct**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#addProduct) | **POST** /products | Add a product -*Pipedrive.ProductsApi* | [**addProductFollower**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#addProductFollower) | **POST** /products/{id}/followers | Add a follower to a product -*Pipedrive.ProductsApi* | [**deleteProduct**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#deleteProduct) | **DELETE** /products/{id} | Delete a product -*Pipedrive.ProductsApi* | [**deleteProductFollower**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#deleteProductFollower) | **DELETE** /products/{id}/followers/{follower_id} | Delete a follower from a product -*Pipedrive.ProductsApi* | [**getProduct**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#getProduct) | **GET** /products/{id} | Get one product -*Pipedrive.ProductsApi* | [**getProductDeals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#getProductDeals) | **GET** /products/{id}/deals | Get deals where a product is attached to -*Pipedrive.ProductsApi* | [**getProductFiles**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#getProductFiles) | **GET** /products/{id}/files | List files attached to a product -*Pipedrive.ProductsApi* | [**getProductFollowers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#getProductFollowers) | **GET** /products/{id}/followers | List followers of a product -*Pipedrive.ProductsApi* | [**getProductUsers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#getProductUsers) | **GET** /products/{id}/permittedUsers | List permitted users -*Pipedrive.ProductsApi* | [**getProducts**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#getProducts) | **GET** /products | Get all products -*Pipedrive.ProductsApi* | [**searchProducts**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#searchProducts) | **GET** /products/search | Search products -*Pipedrive.ProductsApi* | [**updateProduct**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsApi.md#updateProduct) | **PUT** /products/{id} | Update a product -*Pipedrive.ProjectTemplatesApi* | [**getProjectTemplate**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectTemplate) | **GET** /projectTemplates/{id} | Get details of a template -*Pipedrive.ProjectTemplatesApi* | [**getProjectTemplates**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectTemplates) | **GET** /projectTemplates | Get all project templates -*Pipedrive.ProjectTemplatesApi* | [**getProjectsBoard**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectsBoard) | **GET** /projects/boards/{id} | Get details of a board -*Pipedrive.ProjectTemplatesApi* | [**getProjectsPhase**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectTemplatesApi.md#getProjectsPhase) | **GET** /projects/phases/{id} | Get details of a phase -*Pipedrive.ProjectsApi* | [**addProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#addProject) | **POST** /projects | Add a project -*Pipedrive.ProjectsApi* | [**archiveProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#archiveProject) | **POST** /projects/{id}/archive | Archive a project -*Pipedrive.ProjectsApi* | [**deleteProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#deleteProject) | **DELETE** /projects/{id} | Delete a project -*Pipedrive.ProjectsApi* | [**getProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProject) | **GET** /projects/{id} | Get details of a project -*Pipedrive.ProjectsApi* | [**getProjectActivities**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectActivities) | **GET** /projects/{id}/activities | Returns project activities -*Pipedrive.ProjectsApi* | [**getProjectGroups**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectGroups) | **GET** /projects/{id}/groups | Returns project groups -*Pipedrive.ProjectsApi* | [**getProjectPlan**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectPlan) | **GET** /projects/{id}/plan | Returns project plan -*Pipedrive.ProjectsApi* | [**getProjectTasks**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectTasks) | **GET** /projects/{id}/tasks | Returns project tasks -*Pipedrive.ProjectsApi* | [**getProjects**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjects) | **GET** /projects | Get all projects -*Pipedrive.ProjectsApi* | [**getProjectsBoards**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectsBoards) | **GET** /projects/boards | Get all project boards -*Pipedrive.ProjectsApi* | [**getProjectsPhases**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#getProjectsPhases) | **GET** /projects/phases | Get project phases -*Pipedrive.ProjectsApi* | [**putProjectPlanActivity**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#putProjectPlanActivity) | **PUT** /projects/{id}/plan/activities/{activityId} | Update activity in project plan -*Pipedrive.ProjectsApi* | [**putProjectPlanTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#putProjectPlanTask) | **PUT** /projects/{id}/plan/tasks/{taskId} | Update task in project plan -*Pipedrive.ProjectsApi* | [**updateProject**](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectsApi.md#updateProject) | **PUT** /projects/{id} | Update a project -*Pipedrive.RecentsApi* | [**getRecents**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsApi.md#getRecents) | **GET** /recents | Get recents -*Pipedrive.RolesApi* | [**addOrUpdateRoleSetting**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#addOrUpdateRoleSetting) | **POST** /roles/{id}/settings | Add or update role setting -*Pipedrive.RolesApi* | [**addRole**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#addRole) | **POST** /roles | Add a role -*Pipedrive.RolesApi* | [**addRoleAssignment**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#addRoleAssignment) | **POST** /roles/{id}/assignments | Add role assignment -*Pipedrive.RolesApi* | [**deleteRole**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#deleteRole) | **DELETE** /roles/{id} | Delete a role -*Pipedrive.RolesApi* | [**deleteRoleAssignment**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#deleteRoleAssignment) | **DELETE** /roles/{id}/assignments | Delete a role assignment -*Pipedrive.RolesApi* | [**getRole**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#getRole) | **GET** /roles/{id} | Get one role -*Pipedrive.RolesApi* | [**getRoleAssignments**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#getRoleAssignments) | **GET** /roles/{id}/assignments | List role assignments -*Pipedrive.RolesApi* | [**getRolePipelines**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#getRolePipelines) | **GET** /roles/{id}/pipelines | List pipeline visibility for a role -*Pipedrive.RolesApi* | [**getRoleSettings**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#getRoleSettings) | **GET** /roles/{id}/settings | List role settings -*Pipedrive.RolesApi* | [**getRoles**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#getRoles) | **GET** /roles | Get all roles -*Pipedrive.RolesApi* | [**updateRole**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#updateRole) | **PUT** /roles/{id} | Update role details -*Pipedrive.RolesApi* | [**updateRolePipelines**](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesApi.md#updateRolePipelines) | **PUT** /roles/{id}/pipelines | Update pipeline visibility for a role -*Pipedrive.StagesApi* | [**addStage**](https://github.com/pipedrive/client-nodejs/blob/master/docs/StagesApi.md#addStage) | **POST** /stages | Add a new stage -*Pipedrive.StagesApi* | [**deleteStage**](https://github.com/pipedrive/client-nodejs/blob/master/docs/StagesApi.md#deleteStage) | **DELETE** /stages/{id} | Delete a stage -*Pipedrive.StagesApi* | [**deleteStages**](https://github.com/pipedrive/client-nodejs/blob/master/docs/StagesApi.md#deleteStages) | **DELETE** /stages | Delete multiple stages in bulk -*Pipedrive.StagesApi* | [**getStage**](https://github.com/pipedrive/client-nodejs/blob/master/docs/StagesApi.md#getStage) | **GET** /stages/{id} | Get one stage -*Pipedrive.StagesApi* | [**getStageDeals**](https://github.com/pipedrive/client-nodejs/blob/master/docs/StagesApi.md#getStageDeals) | **GET** /stages/{id}/deals | Get deals in a stage -*Pipedrive.StagesApi* | [**getStages**](https://github.com/pipedrive/client-nodejs/blob/master/docs/StagesApi.md#getStages) | **GET** /stages | Get all stages -*Pipedrive.StagesApi* | [**updateStage**](https://github.com/pipedrive/client-nodejs/blob/master/docs/StagesApi.md#updateStage) | **PUT** /stages/{id} | Update stage details -*Pipedrive.SubscriptionsApi* | [**addRecurringSubscription**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#addRecurringSubscription) | **POST** /subscriptions/recurring | Add a recurring subscription -*Pipedrive.SubscriptionsApi* | [**addSubscriptionInstallment**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#addSubscriptionInstallment) | **POST** /subscriptions/installment | Add an installment subscription -*Pipedrive.SubscriptionsApi* | [**cancelRecurringSubscription**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#cancelRecurringSubscription) | **PUT** /subscriptions/recurring/{id}/cancel | Cancel a recurring subscription -*Pipedrive.SubscriptionsApi* | [**deleteSubscription**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#deleteSubscription) | **DELETE** /subscriptions/{id} | Delete a subscription -*Pipedrive.SubscriptionsApi* | [**findSubscriptionByDeal**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#findSubscriptionByDeal) | **GET** /subscriptions/find/{dealId} | Find subscription by deal -*Pipedrive.SubscriptionsApi* | [**getSubscription**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#getSubscription) | **GET** /subscriptions/{id} | Get details of a subscription -*Pipedrive.SubscriptionsApi* | [**getSubscriptionPayments**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#getSubscriptionPayments) | **GET** /subscriptions/{id}/payments | Get all payments of a subscription -*Pipedrive.SubscriptionsApi* | [**updateRecurringSubscription**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#updateRecurringSubscription) | **PUT** /subscriptions/recurring/{id} | Update a recurring subscription -*Pipedrive.SubscriptionsApi* | [**updateSubscriptionInstallment**](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsApi.md#updateSubscriptionInstallment) | **PUT** /subscriptions/installment/{id} | Update an installment subscription -*Pipedrive.TasksApi* | [**addTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#addTask) | **POST** /tasks | Add a task -*Pipedrive.TasksApi* | [**deleteTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#deleteTask) | **DELETE** /tasks/{id} | Delete a task -*Pipedrive.TasksApi* | [**getTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#getTask) | **GET** /tasks/{id} | Get details of a task -*Pipedrive.TasksApi* | [**getTasks**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#getTasks) | **GET** /tasks | Get all tasks -*Pipedrive.TasksApi* | [**updateTask**](https://github.com/pipedrive/client-nodejs/blob/master/docs/TasksApi.md#updateTask) | **PUT** /tasks/{id} | Update a task -*Pipedrive.UserConnectionsApi* | [**getUserConnections**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserConnectionsApi.md#getUserConnections) | **GET** /userConnections | Get all user connections -*Pipedrive.UserSettingsApi* | [**getUserSettings**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserSettingsApi.md#getUserSettings) | **GET** /userSettings | List settings of an authorized user -*Pipedrive.UsersApi* | [**addUser**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersApi.md#addUser) | **POST** /users | Add a new user -*Pipedrive.UsersApi* | [**findUsersByName**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersApi.md#findUsersByName) | **GET** /users/find | Find users by name -*Pipedrive.UsersApi* | [**getCurrentUser**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersApi.md#getCurrentUser) | **GET** /users/me | Get current user data -*Pipedrive.UsersApi* | [**getUser**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersApi.md#getUser) | **GET** /users/{id} | Get one user -*Pipedrive.UsersApi* | [**getUserFollowers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersApi.md#getUserFollowers) | **GET** /users/{id}/followers | List followers of a user -*Pipedrive.UsersApi* | [**getUserPermissions**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersApi.md#getUserPermissions) | **GET** /users/{id}/permissions | List user permissions -*Pipedrive.UsersApi* | [**getUserRoleAssignments**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersApi.md#getUserRoleAssignments) | **GET** /users/{id}/roleAssignments | List role assignments -*Pipedrive.UsersApi* | [**getUserRoleSettings**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersApi.md#getUserRoleSettings) | **GET** /users/{id}/roleSettings | List user role settings -*Pipedrive.UsersApi* | [**getUsers**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersApi.md#getUsers) | **GET** /users | Get all users -*Pipedrive.UsersApi* | [**updateUser**](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersApi.md#updateUser) | **PUT** /users/{id} | Update user details -*Pipedrive.WebhooksApi* | [**addWebhook**](https://github.com/pipedrive/client-nodejs/blob/master/docs/WebhooksApi.md#addWebhook) | **POST** /webhooks | Create a new Webhook -*Pipedrive.WebhooksApi* | [**deleteWebhook**](https://github.com/pipedrive/client-nodejs/blob/master/docs/WebhooksApi.md#deleteWebhook) | **DELETE** /webhooks/{id} | Delete existing Webhook -*Pipedrive.WebhooksApi* | [**getWebhooks**](https://github.com/pipedrive/client-nodejs/blob/master/docs/WebhooksApi.md#getWebhooks) | **GET** /webhooks | Get all Webhooks - - -## Documentation for Models - -- [Pipedrive.ActivityCollectionResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityCollectionResponseObject.md) -- [Pipedrive.ActivityCollectionResponseObjectAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityCollectionResponseObjectAllOf.md) -- [Pipedrive.ActivityDistributionData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityDistributionData.md) -- [Pipedrive.ActivityDistributionDataActivityDistribution](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityDistributionDataActivityDistribution.md) -- [Pipedrive.ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.md) -- [Pipedrive.ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.md) -- [Pipedrive.ActivityDistributionDataWithAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityDistributionDataWithAdditionalData.md) -- [Pipedrive.ActivityInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityInfo.md) -- [Pipedrive.ActivityObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityObjectFragment.md) -- [Pipedrive.ActivityPostObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityPostObject.md) -- [Pipedrive.ActivityPostObjectAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityPostObjectAllOf.md) -- [Pipedrive.ActivityPutObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityPutObject.md) -- [Pipedrive.ActivityPutObjectAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityPutObjectAllOf.md) -- [Pipedrive.ActivityRecordAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityRecordAdditionalData.md) -- [Pipedrive.ActivityResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityResponseObject.md) -- [Pipedrive.ActivityResponseObjectAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityResponseObjectAllOf.md) -- [Pipedrive.ActivityTypeBulkDeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypeBulkDeleteResponse.md) -- [Pipedrive.ActivityTypeBulkDeleteResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypeBulkDeleteResponseAllOf.md) -- [Pipedrive.ActivityTypeBulkDeleteResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypeBulkDeleteResponseAllOfData.md) -- [Pipedrive.ActivityTypeCreateRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypeCreateRequest.md) -- [Pipedrive.ActivityTypeCreateUpdateDeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypeCreateUpdateDeleteResponse.md) -- [Pipedrive.ActivityTypeCreateUpdateDeleteResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypeCreateUpdateDeleteResponseAllOf.md) -- [Pipedrive.ActivityTypeListResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypeListResponse.md) -- [Pipedrive.ActivityTypeListResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypeListResponseAllOf.md) -- [Pipedrive.ActivityTypeObjectResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypeObjectResponse.md) -- [Pipedrive.ActivityTypeUpdateRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/ActivityTypeUpdateRequest.md) -- [Pipedrive.AddActivityResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddActivityResponse.md) -- [Pipedrive.AddActivityResponseRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddActivityResponseRelatedObjects.md) -- [Pipedrive.AddDealFollowerRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddDealFollowerRequest.md) -- [Pipedrive.AddDealParticipantRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddDealParticipantRequest.md) -- [Pipedrive.AddFile](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddFile.md) -- [Pipedrive.AddFilterRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddFilterRequest.md) -- [Pipedrive.AddFollowerToPersonResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddFollowerToPersonResponse.md) -- [Pipedrive.AddFollowerToPersonResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddFollowerToPersonResponseAllOf.md) -- [Pipedrive.AddFollowerToPersonResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddFollowerToPersonResponseAllOfData.md) -- [Pipedrive.AddLeadLabelRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddLeadLabelRequest.md) -- [Pipedrive.AddLeadRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddLeadRequest.md) -- [Pipedrive.AddNewPipeline](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddNewPipeline.md) -- [Pipedrive.AddNewPipelineAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddNewPipelineAllOf.md) -- [Pipedrive.AddNoteRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddNoteRequest.md) -- [Pipedrive.AddNoteRequestAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddNoteRequestAllOf.md) -- [Pipedrive.AddOrUpdateRoleSettingRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddOrUpdateRoleSettingRequest.md) -- [Pipedrive.AddOrganizationFollowerRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddOrganizationFollowerRequest.md) -- [Pipedrive.AddOrganizationRelationshipRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddOrganizationRelationshipRequest.md) -- [Pipedrive.AddPersonFollowerRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddPersonFollowerRequest.md) -- [Pipedrive.AddPersonPictureResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddPersonPictureResponse.md) -- [Pipedrive.AddPersonPictureResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddPersonPictureResponseAllOf.md) -- [Pipedrive.AddPersonResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddPersonResponse.md) -- [Pipedrive.AddPersonResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddPersonResponseAllOf.md) -- [Pipedrive.AddProductAttachmentDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductAttachmentDetails.md) -- [Pipedrive.AddProductAttachmentDetailsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductAttachmentDetailsAllOf.md) -- [Pipedrive.AddProductFollowerRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductFollowerRequest.md) -- [Pipedrive.AddProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductRequestBody.md) -- [Pipedrive.AddProductRequestBodyAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProductRequestBodyAllOf.md) -- [Pipedrive.AddProjectResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddProjectResponse.md) -- [Pipedrive.AddRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddRole.md) -- [Pipedrive.AddRoleAssignmentRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddRoleAssignmentRequest.md) -- [Pipedrive.AddTaskResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddTaskResponse.md) -- [Pipedrive.AddTeamUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddTeamUserRequest.md) -- [Pipedrive.AddUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddUserRequest.md) -- [Pipedrive.AddWebhookRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddWebhookRequest.md) -- [Pipedrive.AddedDealFollower](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddedDealFollower.md) -- [Pipedrive.AddedDealFollowerData](https://github.com/pipedrive/client-nodejs/blob/master/docs/AddedDealFollowerData.md) -- [Pipedrive.AdditionalBaseOrganizationItemInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/AdditionalBaseOrganizationItemInfo.md) -- [Pipedrive.AdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/AdditionalData.md) -- [Pipedrive.AdditionalDataWithCursorPagination](https://github.com/pipedrive/client-nodejs/blob/master/docs/AdditionalDataWithCursorPagination.md) -- [Pipedrive.AdditionalDataWithOffsetPagination](https://github.com/pipedrive/client-nodejs/blob/master/docs/AdditionalDataWithOffsetPagination.md) -- [Pipedrive.AdditionalDataWithPaginationDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/AdditionalDataWithPaginationDetails.md) -- [Pipedrive.AdditionalMergePersonInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/AdditionalMergePersonInfo.md) -- [Pipedrive.AdditionalPersonInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/AdditionalPersonInfo.md) -- [Pipedrive.AllOrganizationRelationshipsGetResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/AllOrganizationRelationshipsGetResponse.md) -- [Pipedrive.AllOrganizationRelationshipsGetResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AllOrganizationRelationshipsGetResponseAllOf.md) -- [Pipedrive.AllOrganizationRelationshipsGetResponseAllOfRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.md) -- [Pipedrive.AllOrganizationsGetResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/AllOrganizationsGetResponse.md) -- [Pipedrive.AllOrganizationsGetResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/AllOrganizationsGetResponseAllOf.md) -- [Pipedrive.AllOrganizationsGetResponseAllOfRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/AllOrganizationsGetResponseAllOfRelatedObjects.md) -- [Pipedrive.ArrayPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ArrayPrices.md) -- [Pipedrive.Assignee](https://github.com/pipedrive/client-nodejs/blob/master/docs/Assignee.md) -- [Pipedrive.BaseComment](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseComment.md) -- [Pipedrive.BaseCurrency](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseCurrency.md) -- [Pipedrive.BaseDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseDeal.md) -- [Pipedrive.BaseFollowerItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseFollowerItem.md) -- [Pipedrive.BaseMailThread](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseMailThread.md) -- [Pipedrive.BaseMailThreadAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseMailThreadAllOf.md) -- [Pipedrive.BaseMailThreadAllOfParties](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseMailThreadAllOfParties.md) -- [Pipedrive.BaseMailThreadMessages](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseMailThreadMessages.md) -- [Pipedrive.BaseMailThreadMessagesAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseMailThreadMessagesAllOf.md) -- [Pipedrive.BaseNote](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseNote.md) -- [Pipedrive.BaseNoteDealTitle](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseNoteDealTitle.md) -- [Pipedrive.BaseNoteOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseNoteOrganization.md) -- [Pipedrive.BaseNotePerson](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseNotePerson.md) -- [Pipedrive.BaseOrganizationItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseOrganizationItem.md) -- [Pipedrive.BaseOrganizationItemFields](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseOrganizationItemFields.md) -- [Pipedrive.BaseOrganizationItemWithEditNameFlag](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseOrganizationItemWithEditNameFlag.md) -- [Pipedrive.BaseOrganizationItemWithEditNameFlagAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseOrganizationItemWithEditNameFlagAllOf.md) -- [Pipedrive.BaseOrganizationRelationshipItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseOrganizationRelationshipItem.md) -- [Pipedrive.BasePersonItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasePersonItem.md) -- [Pipedrive.BasePersonItemEmail](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasePersonItemEmail.md) -- [Pipedrive.BasePersonItemPhone](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasePersonItemPhone.md) -- [Pipedrive.BasePipeline](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasePipeline.md) -- [Pipedrive.BasePipelineWithSelectedFlag](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasePipelineWithSelectedFlag.md) -- [Pipedrive.BasePipelineWithSelectedFlagAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasePipelineWithSelectedFlagAllOf.md) -- [Pipedrive.BaseProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseProduct.md) -- [Pipedrive.BaseResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseResponse.md) -- [Pipedrive.BaseResponseWithStatus](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseResponseWithStatus.md) -- [Pipedrive.BaseResponseWithStatusAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseResponseWithStatusAllOf.md) -- [Pipedrive.BaseRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseRole.md) -- [Pipedrive.BaseStage](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseStage.md) -- [Pipedrive.BaseTeam](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseTeam.md) -- [Pipedrive.BaseTeamAdditionalProperties](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseTeamAdditionalProperties.md) -- [Pipedrive.BaseUser](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseUser.md) -- [Pipedrive.BaseUserMe](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseUserMe.md) -- [Pipedrive.BaseUserMeAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseUserMeAllOf.md) -- [Pipedrive.BaseUserMeAllOfLanguage](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseUserMeAllOfLanguage.md) -- [Pipedrive.BaseWebhook](https://github.com/pipedrive/client-nodejs/blob/master/docs/BaseWebhook.md) -- [Pipedrive.BasicDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicDeal.md) -- [Pipedrive.BasicDealProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicDealProduct.md) -- [Pipedrive.BasicDealProductAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicDealProductAllOf.md) -- [Pipedrive.BasicGoal](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicGoal.md) -- [Pipedrive.BasicOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicOrganization.md) -- [Pipedrive.BasicPerson](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicPerson.md) -- [Pipedrive.BasicPersonEmail](https://github.com/pipedrive/client-nodejs/blob/master/docs/BasicPersonEmail.md) -- [Pipedrive.BillingFrequency](https://github.com/pipedrive/client-nodejs/blob/master/docs/BillingFrequency.md) -- [Pipedrive.BillingFrequency1](https://github.com/pipedrive/client-nodejs/blob/master/docs/BillingFrequency1.md) -- [Pipedrive.BulkDeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/BulkDeleteResponse.md) -- [Pipedrive.BulkDeleteResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/BulkDeleteResponseAllOf.md) -- [Pipedrive.BulkDeleteResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/BulkDeleteResponseAllOfData.md) -- [Pipedrive.CalculatedFields](https://github.com/pipedrive/client-nodejs/blob/master/docs/CalculatedFields.md) -- [Pipedrive.CallLogBadRequestResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogBadRequestResponse.md) -- [Pipedrive.CallLogConflictResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogConflictResponse.md) -- [Pipedrive.CallLogForbiddenResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogForbiddenResponse.md) -- [Pipedrive.CallLogGoneResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogGoneResponse.md) -- [Pipedrive.CallLogInternalErrorResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogInternalErrorResponse.md) -- [Pipedrive.CallLogNotFoundResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogNotFoundResponse.md) -- [Pipedrive.CallLogObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogObject.md) -- [Pipedrive.CallLogResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogResponse200.md) -- [Pipedrive.CallLogsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogsResponse.md) -- [Pipedrive.CallLogsResponseAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/CallLogsResponseAdditionalData.md) -- [Pipedrive.ChangelogResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChangelogResponse.md) -- [Pipedrive.ChangelogResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChangelogResponseAllOf.md) -- [Pipedrive.ChangelogResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChangelogResponseAllOfData.md) -- [Pipedrive.ChannelObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChannelObject.md) -- [Pipedrive.ChannelObjectResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChannelObjectResponse.md) -- [Pipedrive.ChannelObjectResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ChannelObjectResponseData.md) -- [Pipedrive.CommentPostPutObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/CommentPostPutObject.md) -- [Pipedrive.CommonMailThread](https://github.com/pipedrive/client-nodejs/blob/master/docs/CommonMailThread.md) -- [Pipedrive.CreateRemoteFileAndLinkItToItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/CreateRemoteFileAndLinkItToItem.md) -- [Pipedrive.CreateTeam](https://github.com/pipedrive/client-nodejs/blob/master/docs/CreateTeam.md) -- [Pipedrive.Currencies](https://github.com/pipedrive/client-nodejs/blob/master/docs/Currencies.md) -- [Pipedrive.DealCollectionResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealCollectionResponseObject.md) -- [Pipedrive.DealCountAndActivityInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealCountAndActivityInfo.md) -- [Pipedrive.DealFlowResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealFlowResponse.md) -- [Pipedrive.DealFlowResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealFlowResponseAllOf.md) -- [Pipedrive.DealFlowResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealFlowResponseAllOfData.md) -- [Pipedrive.DealFlowResponseAllOfRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealFlowResponseAllOfRelatedObjects.md) -- [Pipedrive.DealListActivitiesResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealListActivitiesResponse.md) -- [Pipedrive.DealListActivitiesResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealListActivitiesResponseAllOf.md) -- [Pipedrive.DealListActivitiesResponseAllOfRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealListActivitiesResponseAllOfRelatedObjects.md) -- [Pipedrive.DealNonStrict](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealNonStrict.md) -- [Pipedrive.DealNonStrictModeFields](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealNonStrictModeFields.md) -- [Pipedrive.DealNonStrictModeFieldsCreatorUserId](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealNonStrictModeFieldsCreatorUserId.md) -- [Pipedrive.DealNonStrictWithDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealNonStrictWithDetails.md) -- [Pipedrive.DealNonStrictWithDetailsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealNonStrictWithDetailsAllOf.md) -- [Pipedrive.DealNonStrictWithDetailsAllOfAge](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealNonStrictWithDetailsAllOfAge.md) -- [Pipedrive.DealNonStrictWithDetailsAllOfAverageTimeToWon](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealNonStrictWithDetailsAllOfAverageTimeToWon.md) -- [Pipedrive.DealNonStrictWithDetailsAllOfStayInPipelineStages](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealNonStrictWithDetailsAllOfStayInPipelineStages.md) -- [Pipedrive.DealOrganizationData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealOrganizationData.md) -- [Pipedrive.DealOrganizationDataWithId](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealOrganizationDataWithId.md) -- [Pipedrive.DealOrganizationDataWithIdAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealOrganizationDataWithIdAllOf.md) -- [Pipedrive.DealParticipantCountInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealParticipantCountInfo.md) -- [Pipedrive.DealParticipants](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealParticipants.md) -- [Pipedrive.DealParticipantsChangelog](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealParticipantsChangelog.md) -- [Pipedrive.DealPersonData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonData.md) -- [Pipedrive.DealPersonDataEmail](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataEmail.md) -- [Pipedrive.DealPersonDataPhone](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataPhone.md) -- [Pipedrive.DealPersonDataWithId](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataWithId.md) -- [Pipedrive.DealPersonDataWithIdAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealPersonDataWithIdAllOf.md) -- [Pipedrive.DealProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealProductRequestBody.md) -- [Pipedrive.DealSearchItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItem.md) -- [Pipedrive.DealSearchItemItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItemItem.md) -- [Pipedrive.DealSearchItemItemOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItemItemOrganization.md) -- [Pipedrive.DealSearchItemItemOwner](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItemItemOwner.md) -- [Pipedrive.DealSearchItemItemPerson](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItemItemPerson.md) -- [Pipedrive.DealSearchItemItemStage](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchItemItemStage.md) -- [Pipedrive.DealSearchResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchResponse.md) -- [Pipedrive.DealSearchResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchResponseAllOf.md) -- [Pipedrive.DealSearchResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSearchResponseAllOfData.md) -- [Pipedrive.DealStrict](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealStrict.md) -- [Pipedrive.DealStrictModeFields](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealStrictModeFields.md) -- [Pipedrive.DealStrictWithMergeId](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealStrictWithMergeId.md) -- [Pipedrive.DealStrictWithMergeIdAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealStrictWithMergeIdAllOf.md) -- [Pipedrive.DealSummary](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSummary.md) -- [Pipedrive.DealSummaryPerCurrency](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSummaryPerCurrency.md) -- [Pipedrive.DealSummaryPerCurrencyFull](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSummaryPerCurrencyFull.md) -- [Pipedrive.DealSummaryPerCurrencyFullCURRENCYID](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSummaryPerCurrencyFullCURRENCYID.md) -- [Pipedrive.DealSummaryPerStages](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSummaryPerStages.md) -- [Pipedrive.DealSummaryPerStagesSTAGEID](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSummaryPerStagesSTAGEID.md) -- [Pipedrive.DealSummaryPerStagesSTAGEIDCURRENCYID](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealSummaryPerStagesSTAGEIDCURRENCYID.md) -- [Pipedrive.DealTitleParameter](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealTitleParameter.md) -- [Pipedrive.DealUserData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealUserData.md) -- [Pipedrive.DealUserDataWithId](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealUserDataWithId.md) -- [Pipedrive.DealUserDataWithIdAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealUserDataWithIdAllOf.md) -- [Pipedrive.DealsCountAndActivityInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsCountAndActivityInfo.md) -- [Pipedrive.DealsCountInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsCountInfo.md) -- [Pipedrive.DealsMovementsInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsMovementsInfo.md) -- [Pipedrive.DealsMovementsInfoFormattedValues](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsMovementsInfoFormattedValues.md) -- [Pipedrive.DealsMovementsInfoValues](https://github.com/pipedrive/client-nodejs/blob/master/docs/DealsMovementsInfoValues.md) -- [Pipedrive.DeleteActivitiesResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteActivitiesResponse.md) -- [Pipedrive.DeleteActivitiesResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteActivitiesResponseData.md) -- [Pipedrive.DeleteActivityResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteActivityResponse.md) -- [Pipedrive.DeleteActivityResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteActivityResponseData.md) -- [Pipedrive.DeleteChannelSuccess](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteChannelSuccess.md) -- [Pipedrive.DeleteComment](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteComment.md) -- [Pipedrive.DeleteConversationSuccess](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteConversationSuccess.md) -- [Pipedrive.DeleteDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteDeal.md) -- [Pipedrive.DeleteDealData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteDealData.md) -- [Pipedrive.DeleteDealFollower](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteDealFollower.md) -- [Pipedrive.DeleteDealFollowerData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteDealFollowerData.md) -- [Pipedrive.DeleteDealParticipant](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteDealParticipant.md) -- [Pipedrive.DeleteDealParticipantData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteDealParticipantData.md) -- [Pipedrive.DeleteDealProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteDealProduct.md) -- [Pipedrive.DeleteDealProductData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteDealProductData.md) -- [Pipedrive.DeleteFile](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteFile.md) -- [Pipedrive.DeleteFileData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteFileData.md) -- [Pipedrive.DeleteGoalResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteGoalResponse.md) -- [Pipedrive.DeleteLeadIdResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteLeadIdResponse.md) -- [Pipedrive.DeleteMultipleDeals](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteMultipleDeals.md) -- [Pipedrive.DeleteMultipleDealsData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteMultipleDealsData.md) -- [Pipedrive.DeleteMultipleProductFieldsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteMultipleProductFieldsResponse.md) -- [Pipedrive.DeleteMultipleProductFieldsResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteMultipleProductFieldsResponseData.md) -- [Pipedrive.DeleteNote](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteNote.md) -- [Pipedrive.DeletePersonResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeletePersonResponse.md) -- [Pipedrive.DeletePersonResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeletePersonResponseAllOf.md) -- [Pipedrive.DeletePersonResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeletePersonResponseAllOfData.md) -- [Pipedrive.DeletePersonsInBulkResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeletePersonsInBulkResponse.md) -- [Pipedrive.DeletePersonsInBulkResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeletePersonsInBulkResponseAllOf.md) -- [Pipedrive.DeletePersonsInBulkResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeletePersonsInBulkResponseAllOfData.md) -- [Pipedrive.DeletePipelineResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeletePipelineResponse.md) -- [Pipedrive.DeletePipelineResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeletePipelineResponseData.md) -- [Pipedrive.DeleteProductFieldResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductFieldResponse.md) -- [Pipedrive.DeleteProductFieldResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductFieldResponseData.md) -- [Pipedrive.DeleteProductFollowerResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductFollowerResponse.md) -- [Pipedrive.DeleteProductFollowerResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductFollowerResponseData.md) -- [Pipedrive.DeleteProductResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductResponse.md) -- [Pipedrive.DeleteProductResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProductResponseData.md) -- [Pipedrive.DeleteProject](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProject.md) -- [Pipedrive.DeleteProjectData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProjectData.md) -- [Pipedrive.DeleteProjectResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteProjectResponse.md) -- [Pipedrive.DeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteResponse.md) -- [Pipedrive.DeleteResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteResponseAllOf.md) -- [Pipedrive.DeleteResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteResponseAllOfData.md) -- [Pipedrive.DeleteRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteRole.md) -- [Pipedrive.DeleteRoleAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteRoleAllOf.md) -- [Pipedrive.DeleteRoleAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteRoleAllOfData.md) -- [Pipedrive.DeleteRoleAssignment](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteRoleAssignment.md) -- [Pipedrive.DeleteRoleAssignmentAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteRoleAssignmentAllOf.md) -- [Pipedrive.DeleteRoleAssignmentAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteRoleAssignmentAllOfData.md) -- [Pipedrive.DeleteRoleAssignmentRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteRoleAssignmentRequest.md) -- [Pipedrive.DeleteStageResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteStageResponse.md) -- [Pipedrive.DeleteStageResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteStageResponseData.md) -- [Pipedrive.DeleteStagesResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteStagesResponse.md) -- [Pipedrive.DeleteStagesResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteStagesResponseData.md) -- [Pipedrive.DeleteTask](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTask.md) -- [Pipedrive.DeleteTaskData](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTaskData.md) -- [Pipedrive.DeleteTaskResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTaskResponse.md) -- [Pipedrive.DeleteTeamUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/DeleteTeamUserRequest.md) -- [Pipedrive.Duration](https://github.com/pipedrive/client-nodejs/blob/master/docs/Duration.md) -- [Pipedrive.EditPipeline](https://github.com/pipedrive/client-nodejs/blob/master/docs/EditPipeline.md) -- [Pipedrive.EditPipelineAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/EditPipelineAllOf.md) -- [Pipedrive.EmailInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/EmailInfo.md) -- [Pipedrive.ExpectedOutcome](https://github.com/pipedrive/client-nodejs/blob/master/docs/ExpectedOutcome.md) -- [Pipedrive.FailResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/FailResponse.md) -- [Pipedrive.Field](https://github.com/pipedrive/client-nodejs/blob/master/docs/Field.md) -- [Pipedrive.FieldCreateRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/FieldCreateRequest.md) -- [Pipedrive.FieldCreateRequestAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FieldCreateRequestAllOf.md) -- [Pipedrive.FieldResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/FieldResponse.md) -- [Pipedrive.FieldResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FieldResponseAllOf.md) -- [Pipedrive.FieldType](https://github.com/pipedrive/client-nodejs/blob/master/docs/FieldType.md) -- [Pipedrive.FieldTypeAsString](https://github.com/pipedrive/client-nodejs/blob/master/docs/FieldTypeAsString.md) -- [Pipedrive.FieldUpdateRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/FieldUpdateRequest.md) -- [Pipedrive.FieldsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/FieldsResponse.md) -- [Pipedrive.FieldsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FieldsResponseAllOf.md) -- [Pipedrive.FileData](https://github.com/pipedrive/client-nodejs/blob/master/docs/FileData.md) -- [Pipedrive.FileItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/FileItem.md) -- [Pipedrive.FilterGetItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/FilterGetItem.md) -- [Pipedrive.FilterType](https://github.com/pipedrive/client-nodejs/blob/master/docs/FilterType.md) -- [Pipedrive.FiltersBulkDeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersBulkDeleteResponse.md) -- [Pipedrive.FiltersBulkDeleteResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersBulkDeleteResponseAllOf.md) -- [Pipedrive.FiltersBulkDeleteResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersBulkDeleteResponseAllOfData.md) -- [Pipedrive.FiltersBulkGetResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersBulkGetResponse.md) -- [Pipedrive.FiltersBulkGetResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersBulkGetResponseAllOf.md) -- [Pipedrive.FiltersDeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersDeleteResponse.md) -- [Pipedrive.FiltersDeleteResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersDeleteResponseAllOf.md) -- [Pipedrive.FiltersDeleteResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersDeleteResponseAllOfData.md) -- [Pipedrive.FiltersGetResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersGetResponse.md) -- [Pipedrive.FiltersGetResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersGetResponseAllOf.md) -- [Pipedrive.FiltersPostResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersPostResponse.md) -- [Pipedrive.FiltersPostResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersPostResponseAllOf.md) -- [Pipedrive.FiltersPostResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/FiltersPostResponseAllOfData.md) -- [Pipedrive.FindGoalResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/FindGoalResponse.md) -- [Pipedrive.FollowerData](https://github.com/pipedrive/client-nodejs/blob/master/docs/FollowerData.md) -- [Pipedrive.FollowerDataWithID](https://github.com/pipedrive/client-nodejs/blob/master/docs/FollowerDataWithID.md) -- [Pipedrive.FollowerDataWithIDAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FollowerDataWithIDAllOf.md) -- [Pipedrive.FullProjectObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullProjectObject.md) -- [Pipedrive.FullRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullRole.md) -- [Pipedrive.FullRoleAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullRoleAllOf.md) -- [Pipedrive.FullTaskObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/FullTaskObject.md) -- [Pipedrive.GetActivitiesCollectionResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetActivitiesCollectionResponse.md) -- [Pipedrive.GetActivitiesResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetActivitiesResponse.md) -- [Pipedrive.GetActivitiesResponseRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetActivitiesResponseRelatedObjects.md) -- [Pipedrive.GetActivityResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetActivityResponse.md) -- [Pipedrive.GetAddProductAttachmentDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetAddProductAttachmentDetails.md) -- [Pipedrive.GetAddUpdateStage](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetAddUpdateStage.md) -- [Pipedrive.GetAddedDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetAddedDeal.md) -- [Pipedrive.GetAllFiles](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetAllFiles.md) -- [Pipedrive.GetAllPersonsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetAllPersonsResponse.md) -- [Pipedrive.GetAllPersonsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetAllPersonsResponseAllOf.md) -- [Pipedrive.GetAllPipelines](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetAllPipelines.md) -- [Pipedrive.GetAllPipelinesAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetAllPipelinesAllOf.md) -- [Pipedrive.GetAllProductFieldsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetAllProductFieldsResponse.md) -- [Pipedrive.GetComments](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetComments.md) -- [Pipedrive.GetDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDeal.md) -- [Pipedrive.GetDealAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealAdditionalData.md) -- [Pipedrive.GetDealRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealRelatedObjects.md) -- [Pipedrive.GetDeals](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDeals.md) -- [Pipedrive.GetDealsCollection](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsCollection.md) -- [Pipedrive.GetDealsConversionRatesInPipeline](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsConversionRatesInPipeline.md) -- [Pipedrive.GetDealsConversionRatesInPipelineAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsConversionRatesInPipelineAllOf.md) -- [Pipedrive.GetDealsConversionRatesInPipelineAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsConversionRatesInPipelineAllOfData.md) -- [Pipedrive.GetDealsMovementsInPipeline](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsMovementsInPipeline.md) -- [Pipedrive.GetDealsMovementsInPipelineAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsMovementsInPipelineAllOf.md) -- [Pipedrive.GetDealsMovementsInPipelineAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsMovementsInPipelineAllOfData.md) -- [Pipedrive.GetDealsMovementsInPipelineAllOfDataAverageAgeInDays](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.md) -- [Pipedrive.GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.md) -- [Pipedrive.GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.md) -- [Pipedrive.GetDealsRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsRelatedObjects.md) -- [Pipedrive.GetDealsSummary](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsSummary.md) -- [Pipedrive.GetDealsSummaryData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsSummaryData.md) -- [Pipedrive.GetDealsSummaryDataValuesTotal](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsSummaryDataValuesTotal.md) -- [Pipedrive.GetDealsSummaryDataWeightedValuesTotal](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsSummaryDataWeightedValuesTotal.md) -- [Pipedrive.GetDealsTimeline](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsTimeline.md) -- [Pipedrive.GetDealsTimelineData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsTimelineData.md) -- [Pipedrive.GetDealsTimelineDataTotals](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDealsTimelineDataTotals.md) -- [Pipedrive.GetDuplicatedDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetDuplicatedDeal.md) -- [Pipedrive.GetField](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetField.md) -- [Pipedrive.GetFieldAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetFieldAllOf.md) -- [Pipedrive.GetGoalResultResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetGoalResultResponse.md) -- [Pipedrive.GetGoalsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetGoalsResponse.md) -- [Pipedrive.GetLeadIdResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetLeadIdResponse.md) -- [Pipedrive.GetLeadIdResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetLeadIdResponseData.md) -- [Pipedrive.GetLeadLabelsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetLeadLabelsResponse.md) -- [Pipedrive.GetLeadResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetLeadResponse.md) -- [Pipedrive.GetLeadsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetLeadsResponse.md) -- [Pipedrive.GetLeadsSourceResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetLeadsSourceResponse.md) -- [Pipedrive.GetLeadsSourceResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetLeadsSourceResponseData.md) -- [Pipedrive.GetMergedDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetMergedDeal.md) -- [Pipedrive.GetNoteField](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetNoteField.md) -- [Pipedrive.GetNotes](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetNotes.md) -- [Pipedrive.GetOneFile](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetOneFile.md) -- [Pipedrive.GetOnePipeline](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetOnePipeline.md) -- [Pipedrive.GetOnePipelineAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetOnePipelineAllOf.md) -- [Pipedrive.GetOneStage](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetOneStage.md) -- [Pipedrive.GetPersonDetailsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetPersonDetailsResponse.md) -- [Pipedrive.GetPersonDetailsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetPersonDetailsResponseAllOf.md) -- [Pipedrive.GetPersonDetailsResponseAllOfAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetPersonDetailsResponseAllOfAdditionalData.md) -- [Pipedrive.GetProductAttachmentDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProductAttachmentDetails.md) -- [Pipedrive.GetProductField](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProductField.md) -- [Pipedrive.GetProductFieldResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProductFieldResponse.md) -- [Pipedrive.GetProjectBoardResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectBoardResponse.md) -- [Pipedrive.GetProjectBoardsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectBoardsResponse.md) -- [Pipedrive.GetProjectGroupsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectGroupsResponse.md) -- [Pipedrive.GetProjectPhaseResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectPhaseResponse.md) -- [Pipedrive.GetProjectPhasesResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectPhasesResponse.md) -- [Pipedrive.GetProjectPlanResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectPlanResponse.md) -- [Pipedrive.GetProjectResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectResponse.md) -- [Pipedrive.GetProjectTemplateResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectTemplateResponse.md) -- [Pipedrive.GetProjectTemplatesResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectTemplatesResponse.md) -- [Pipedrive.GetProjectsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetProjectsResponse.md) -- [Pipedrive.GetRecents](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRecents.md) -- [Pipedrive.GetRecentsAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRecentsAdditionalData.md) -- [Pipedrive.GetRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRole.md) -- [Pipedrive.GetRoleAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRoleAllOf.md) -- [Pipedrive.GetRoleAllOfAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRoleAllOfAdditionalData.md) -- [Pipedrive.GetRoleAssignments](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRoleAssignments.md) -- [Pipedrive.GetRoleAssignmentsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRoleAssignmentsAllOf.md) -- [Pipedrive.GetRolePipelines](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRolePipelines.md) -- [Pipedrive.GetRolePipelinesAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRolePipelinesAllOf.md) -- [Pipedrive.GetRolePipelinesAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRolePipelinesAllOfData.md) -- [Pipedrive.GetRoleSettings](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRoleSettings.md) -- [Pipedrive.GetRoleSettingsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRoleSettingsAllOf.md) -- [Pipedrive.GetRoles](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRoles.md) -- [Pipedrive.GetRolesAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetRolesAllOf.md) -- [Pipedrive.GetStageDeals](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetStageDeals.md) -- [Pipedrive.GetStages](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetStages.md) -- [Pipedrive.GetTaskResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetTaskResponse.md) -- [Pipedrive.GetTasksResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/GetTasksResponse.md) -- [Pipedrive.GoalResults](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalResults.md) -- [Pipedrive.GoalType](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalType.md) -- [Pipedrive.GoalsResponseComponent](https://github.com/pipedrive/client-nodejs/blob/master/docs/GoalsResponseComponent.md) -- [Pipedrive.IconKey](https://github.com/pipedrive/client-nodejs/blob/master/docs/IconKey.md) -- [Pipedrive.InlineResponse200](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse200.md) -- [Pipedrive.InlineResponse2001](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse2001.md) -- [Pipedrive.InlineResponse2002](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse2002.md) -- [Pipedrive.InlineResponse400](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse400.md) -- [Pipedrive.InlineResponse4001](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse4001.md) -- [Pipedrive.InlineResponse4001AdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse4001AdditionalData.md) -- [Pipedrive.InlineResponse400AdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse400AdditionalData.md) -- [Pipedrive.InlineResponse403](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse403.md) -- [Pipedrive.InlineResponse4031](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse4031.md) -- [Pipedrive.InlineResponse4031AdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse4031AdditionalData.md) -- [Pipedrive.InlineResponse403AdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse403AdditionalData.md) -- [Pipedrive.InlineResponse404](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse404.md) -- [Pipedrive.InlineResponse404AdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/InlineResponse404AdditionalData.md) -- [Pipedrive.InternalFieldType](https://github.com/pipedrive/client-nodejs/blob/master/docs/InternalFieldType.md) -- [Pipedrive.ItemSearchAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ItemSearchAdditionalData.md) -- [Pipedrive.ItemSearchAdditionalDataPagination](https://github.com/pipedrive/client-nodejs/blob/master/docs/ItemSearchAdditionalDataPagination.md) -- [Pipedrive.ItemSearchFieldResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ItemSearchFieldResponse.md) -- [Pipedrive.ItemSearchFieldResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ItemSearchFieldResponseAllOf.md) -- [Pipedrive.ItemSearchFieldResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ItemSearchFieldResponseAllOfData.md) -- [Pipedrive.ItemSearchItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/ItemSearchItem.md) -- [Pipedrive.ItemSearchResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ItemSearchResponse.md) -- [Pipedrive.ItemSearchResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ItemSearchResponseAllOf.md) -- [Pipedrive.ItemSearchResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ItemSearchResponseAllOfData.md) -- [Pipedrive.LeadLabelColor](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadLabelColor.md) -- [Pipedrive.LeadLabelResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadLabelResponse.md) -- [Pipedrive.LeadNotFoundResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadNotFoundResponse.md) -- [Pipedrive.LeadResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadResponse.md) -- [Pipedrive.LeadSearchItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadSearchItem.md) -- [Pipedrive.LeadSearchItemItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadSearchItemItem.md) -- [Pipedrive.LeadSearchItemItemOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadSearchItemItemOrganization.md) -- [Pipedrive.LeadSearchItemItemOwner](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadSearchItemItemOwner.md) -- [Pipedrive.LeadSearchItemItemPerson](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadSearchItemItemPerson.md) -- [Pipedrive.LeadSearchResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadSearchResponse.md) -- [Pipedrive.LeadSearchResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadSearchResponseAllOf.md) -- [Pipedrive.LeadSearchResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadSearchResponseAllOfData.md) -- [Pipedrive.LeadValue](https://github.com/pipedrive/client-nodejs/blob/master/docs/LeadValue.md) -- [Pipedrive.LinkRemoteFileToItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/LinkRemoteFileToItem.md) -- [Pipedrive.ListActivitiesResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListActivitiesResponse.md) -- [Pipedrive.ListActivitiesResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListActivitiesResponseAllOf.md) -- [Pipedrive.ListDealsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListDealsResponse.md) -- [Pipedrive.ListDealsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListDealsResponseAllOf.md) -- [Pipedrive.ListDealsResponseAllOfRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListDealsResponseAllOfRelatedObjects.md) -- [Pipedrive.ListFilesResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListFilesResponse.md) -- [Pipedrive.ListFilesResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListFilesResponseAllOf.md) -- [Pipedrive.ListFollowersResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListFollowersResponse.md) -- [Pipedrive.ListFollowersResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListFollowersResponseAllOf.md) -- [Pipedrive.ListFollowersResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListFollowersResponseAllOfData.md) -- [Pipedrive.ListMailMessagesResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListMailMessagesResponse.md) -- [Pipedrive.ListMailMessagesResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListMailMessagesResponseAllOf.md) -- [Pipedrive.ListMailMessagesResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListMailMessagesResponseAllOfData.md) -- [Pipedrive.ListPermittedUsersResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPermittedUsersResponse.md) -- [Pipedrive.ListPermittedUsersResponse1](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPermittedUsersResponse1.md) -- [Pipedrive.ListPermittedUsersResponse1AllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPermittedUsersResponse1AllOf.md) -- [Pipedrive.ListPersonProductsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPersonProductsResponse.md) -- [Pipedrive.ListPersonProductsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPersonProductsResponseAllOf.md) -- [Pipedrive.ListPersonProductsResponseAllOfDEALID](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPersonProductsResponseAllOfDEALID.md) -- [Pipedrive.ListPersonProductsResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPersonProductsResponseAllOfData.md) -- [Pipedrive.ListPersonsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPersonsResponse.md) -- [Pipedrive.ListPersonsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPersonsResponseAllOf.md) -- [Pipedrive.ListPersonsResponseAllOfRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListPersonsResponseAllOfRelatedObjects.md) -- [Pipedrive.ListProductAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListProductAdditionalData.md) -- [Pipedrive.ListProductAdditionalDataAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListProductAdditionalDataAllOf.md) -- [Pipedrive.ListProductFilesResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListProductFilesResponse.md) -- [Pipedrive.ListProductFilesResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListProductFilesResponseAllOf.md) -- [Pipedrive.ListProductFollowersResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListProductFollowersResponse.md) -- [Pipedrive.ListProductFollowersResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListProductFollowersResponseAllOf.md) -- [Pipedrive.ListProductFollowersResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListProductFollowersResponseAllOfData.md) -- [Pipedrive.ListProductsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListProductsResponse.md) -- [Pipedrive.ListProductsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListProductsResponseAllOf.md) -- [Pipedrive.ListProductsResponseAllOfRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/ListProductsResponseAllOfRelatedObjects.md) -- [Pipedrive.MailMessage](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailMessage.md) -- [Pipedrive.MailMessageAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailMessageAllOf.md) -- [Pipedrive.MailMessageData](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailMessageData.md) -- [Pipedrive.MailMessageItemForList](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailMessageItemForList.md) -- [Pipedrive.MailMessageItemForListAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailMessageItemForListAllOf.md) -- [Pipedrive.MailParticipant](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailParticipant.md) -- [Pipedrive.MailServiceBaseResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailServiceBaseResponse.md) -- [Pipedrive.MailThread](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThread.md) -- [Pipedrive.MailThreadAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThreadAllOf.md) -- [Pipedrive.MailThreadDelete](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThreadDelete.md) -- [Pipedrive.MailThreadDeleteAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThreadDeleteAllOf.md) -- [Pipedrive.MailThreadDeleteAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThreadDeleteAllOfData.md) -- [Pipedrive.MailThreadMessages](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThreadMessages.md) -- [Pipedrive.MailThreadMessagesAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThreadMessagesAllOf.md) -- [Pipedrive.MailThreadOne](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThreadOne.md) -- [Pipedrive.MailThreadOneAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThreadOneAllOf.md) -- [Pipedrive.MailThreadParticipant](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThreadParticipant.md) -- [Pipedrive.MailThreadPut](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThreadPut.md) -- [Pipedrive.MailThreadPutAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/MailThreadPutAllOf.md) -- [Pipedrive.MarketingStatus](https://github.com/pipedrive/client-nodejs/blob/master/docs/MarketingStatus.md) -- [Pipedrive.MergeDealsRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/MergeDealsRequest.md) -- [Pipedrive.MergeOrganizationsRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/MergeOrganizationsRequest.md) -- [Pipedrive.MergePersonDealRelatedInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/MergePersonDealRelatedInfo.md) -- [Pipedrive.MergePersonItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/MergePersonItem.md) -- [Pipedrive.MergePersonsRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/MergePersonsRequest.md) -- [Pipedrive.MergePersonsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/MergePersonsResponse.md) -- [Pipedrive.MergePersonsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/MergePersonsResponseAllOf.md) -- [Pipedrive.MessageObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/MessageObject.md) -- [Pipedrive.MessageObjectAttachments](https://github.com/pipedrive/client-nodejs/blob/master/docs/MessageObjectAttachments.md) -- [Pipedrive.NameObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/NameObject.md) -- [Pipedrive.NewDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDeal.md) -- [Pipedrive.NewDealParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealParameters.md) -- [Pipedrive.NewDealProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProduct.md) -- [Pipedrive.NewDealProductAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProductAllOf.md) -- [Pipedrive.NewDealProductAllOf1](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProductAllOf1.md) -- [Pipedrive.NewDealProductAllOf2](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewDealProductAllOf2.md) -- [Pipedrive.NewFollowerResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewFollowerResponse.md) -- [Pipedrive.NewFollowerResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewFollowerResponseData.md) -- [Pipedrive.NewGoal](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewGoal.md) -- [Pipedrive.NewOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewOrganization.md) -- [Pipedrive.NewOrganizationAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewOrganizationAllOf.md) -- [Pipedrive.NewPerson](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewPerson.md) -- [Pipedrive.NewPersonAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewPersonAllOf.md) -- [Pipedrive.NewProductField](https://github.com/pipedrive/client-nodejs/blob/master/docs/NewProductField.md) -- [Pipedrive.Note](https://github.com/pipedrive/client-nodejs/blob/master/docs/Note.md) -- [Pipedrive.NoteAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/NoteAllOf.md) -- [Pipedrive.NoteConnectToParams](https://github.com/pipedrive/client-nodejs/blob/master/docs/NoteConnectToParams.md) -- [Pipedrive.NoteCreatorUser](https://github.com/pipedrive/client-nodejs/blob/master/docs/NoteCreatorUser.md) -- [Pipedrive.NoteField](https://github.com/pipedrive/client-nodejs/blob/master/docs/NoteField.md) -- [Pipedrive.NoteFieldOptions](https://github.com/pipedrive/client-nodejs/blob/master/docs/NoteFieldOptions.md) -- [Pipedrive.NoteFieldsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/NoteFieldsResponse.md) -- [Pipedrive.NoteFieldsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/NoteFieldsResponseAllOf.md) -- [Pipedrive.NoteParams](https://github.com/pipedrive/client-nodejs/blob/master/docs/NoteParams.md) -- [Pipedrive.NumberBoolean](https://github.com/pipedrive/client-nodejs/blob/master/docs/NumberBoolean.md) -- [Pipedrive.NumberBooleanDefault0](https://github.com/pipedrive/client-nodejs/blob/master/docs/NumberBooleanDefault0.md) -- [Pipedrive.NumberBooleanDefault1](https://github.com/pipedrive/client-nodejs/blob/master/docs/NumberBooleanDefault1.md) -- [Pipedrive.OrgAndOwnerId](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrgAndOwnerId.md) -- [Pipedrive.OrganizationAddressInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationAddressInfo.md) -- [Pipedrive.OrganizationCountAndAddressInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationCountAndAddressInfo.md) -- [Pipedrive.OrganizationCountInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationCountInfo.md) -- [Pipedrive.OrganizationData](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationData.md) -- [Pipedrive.OrganizationDataWithId](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationDataWithId.md) -- [Pipedrive.OrganizationDataWithIdAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationDataWithIdAllOf.md) -- [Pipedrive.OrganizationDataWithIdAndActiveFlag](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationDataWithIdAndActiveFlag.md) -- [Pipedrive.OrganizationDataWithIdAndActiveFlagAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationDataWithIdAndActiveFlagAllOf.md) -- [Pipedrive.OrganizationDeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationDeleteResponse.md) -- [Pipedrive.OrganizationDeleteResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationDeleteResponseData.md) -- [Pipedrive.OrganizationDetailsGetResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationDetailsGetResponse.md) -- [Pipedrive.OrganizationDetailsGetResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationDetailsGetResponseAllOf.md) -- [Pipedrive.OrganizationDetailsGetResponseAllOfAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationDetailsGetResponseAllOfAdditionalData.md) -- [Pipedrive.OrganizationFlowResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFlowResponse.md) -- [Pipedrive.OrganizationFlowResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFlowResponseAllOf.md) -- [Pipedrive.OrganizationFlowResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFlowResponseAllOfData.md) -- [Pipedrive.OrganizationFlowResponseAllOfRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFlowResponseAllOfRelatedObjects.md) -- [Pipedrive.OrganizationFollowerDeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFollowerDeleteResponse.md) -- [Pipedrive.OrganizationFollowerDeleteResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFollowerDeleteResponseData.md) -- [Pipedrive.OrganizationFollowerItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFollowerItem.md) -- [Pipedrive.OrganizationFollowerItemAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFollowerItemAllOf.md) -- [Pipedrive.OrganizationFollowerPostResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFollowerPostResponse.md) -- [Pipedrive.OrganizationFollowersListResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationFollowersListResponse.md) -- [Pipedrive.OrganizationItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationItem.md) -- [Pipedrive.OrganizationItemAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationItemAllOf.md) -- [Pipedrive.OrganizationPostResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationPostResponse.md) -- [Pipedrive.OrganizationPostResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationPostResponseAllOf.md) -- [Pipedrive.OrganizationRelationship](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationship.md) -- [Pipedrive.OrganizationRelationshipDeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipDeleteResponse.md) -- [Pipedrive.OrganizationRelationshipDeleteResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipDeleteResponseAllOf.md) -- [Pipedrive.OrganizationRelationshipDeleteResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipDeleteResponseAllOfData.md) -- [Pipedrive.OrganizationRelationshipDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipDetails.md) -- [Pipedrive.OrganizationRelationshipGetResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipGetResponse.md) -- [Pipedrive.OrganizationRelationshipGetResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipGetResponseAllOf.md) -- [Pipedrive.OrganizationRelationshipPostResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipPostResponse.md) -- [Pipedrive.OrganizationRelationshipPostResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipPostResponseAllOf.md) -- [Pipedrive.OrganizationRelationshipUpdateResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipUpdateResponse.md) -- [Pipedrive.OrganizationRelationshipWithCalculatedFields](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationRelationshipWithCalculatedFields.md) -- [Pipedrive.OrganizationSearchItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationSearchItem.md) -- [Pipedrive.OrganizationSearchItemItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationSearchItemItem.md) -- [Pipedrive.OrganizationSearchResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationSearchResponse.md) -- [Pipedrive.OrganizationSearchResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationSearchResponseAllOf.md) -- [Pipedrive.OrganizationSearchResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationSearchResponseAllOfData.md) -- [Pipedrive.OrganizationUpdateResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationUpdateResponse.md) -- [Pipedrive.OrganizationUpdateResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationUpdateResponseAllOf.md) -- [Pipedrive.OrganizationsCollectionResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsCollectionResponseObject.md) -- [Pipedrive.OrganizationsCollectionResponseObjectAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsCollectionResponseObjectAllOf.md) -- [Pipedrive.OrganizationsDeleteResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsDeleteResponse.md) -- [Pipedrive.OrganizationsDeleteResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsDeleteResponseData.md) -- [Pipedrive.OrganizationsMergeResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsMergeResponse.md) -- [Pipedrive.OrganizationsMergeResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/OrganizationsMergeResponseData.md) -- [Pipedrive.Owner](https://github.com/pipedrive/client-nodejs/blob/master/docs/Owner.md) -- [Pipedrive.OwnerAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/OwnerAllOf.md) -- [Pipedrive.PaginationDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/PaginationDetails.md) -- [Pipedrive.PaginationDetailsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PaginationDetailsAllOf.md) -- [Pipedrive.Params](https://github.com/pipedrive/client-nodejs/blob/master/docs/Params.md) -- [Pipedrive.ParticipantsChangelog](https://github.com/pipedrive/client-nodejs/blob/master/docs/ParticipantsChangelog.md) -- [Pipedrive.ParticipantsChangelogItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/ParticipantsChangelogItem.md) -- [Pipedrive.PaymentItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/PaymentItem.md) -- [Pipedrive.PaymentsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/PaymentsResponse.md) -- [Pipedrive.PaymentsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PaymentsResponseAllOf.md) -- [Pipedrive.PermissionSets](https://github.com/pipedrive/client-nodejs/blob/master/docs/PermissionSets.md) -- [Pipedrive.PermissionSetsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PermissionSetsAllOf.md) -- [Pipedrive.PermissionSetsItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/PermissionSetsItem.md) -- [Pipedrive.PersonCountAndEmailInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonCountAndEmailInfo.md) -- [Pipedrive.PersonCountEmailDealAndActivityInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonCountEmailDealAndActivityInfo.md) -- [Pipedrive.PersonCountInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonCountInfo.md) -- [Pipedrive.PersonData](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonData.md) -- [Pipedrive.PersonDataEmail](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonDataEmail.md) -- [Pipedrive.PersonDataPhone](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonDataPhone.md) -- [Pipedrive.PersonDataWithActiveFlag](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonDataWithActiveFlag.md) -- [Pipedrive.PersonDataWithActiveFlagAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonDataWithActiveFlagAllOf.md) -- [Pipedrive.PersonFlowResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonFlowResponse.md) -- [Pipedrive.PersonFlowResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonFlowResponseAllOf.md) -- [Pipedrive.PersonFlowResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonFlowResponseAllOfData.md) -- [Pipedrive.PersonItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonItem.md) -- [Pipedrive.PersonListProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonListProduct.md) -- [Pipedrive.PersonNameCountAndEmailInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonNameCountAndEmailInfo.md) -- [Pipedrive.PersonNameCountAndEmailInfoWithIds](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonNameCountAndEmailInfoWithIds.md) -- [Pipedrive.PersonNameCountAndEmailInfoWithIdsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonNameCountAndEmailInfoWithIdsAllOf.md) -- [Pipedrive.PersonNameInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonNameInfo.md) -- [Pipedrive.PersonNameInfoWithOrgAndOwnerId](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonNameInfoWithOrgAndOwnerId.md) -- [Pipedrive.PersonSearchItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonSearchItem.md) -- [Pipedrive.PersonSearchItemItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonSearchItemItem.md) -- [Pipedrive.PersonSearchItemItemOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonSearchItemItemOrganization.md) -- [Pipedrive.PersonSearchItemItemOwner](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonSearchItemItemOwner.md) -- [Pipedrive.PersonSearchResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonSearchResponse.md) -- [Pipedrive.PersonSearchResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonSearchResponseAllOf.md) -- [Pipedrive.PersonSearchResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonSearchResponseAllOfData.md) -- [Pipedrive.PersonsCollectionResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/PersonsCollectionResponseObject.md) -- [Pipedrive.PictureData](https://github.com/pipedrive/client-nodejs/blob/master/docs/PictureData.md) -- [Pipedrive.PictureDataPictures](https://github.com/pipedrive/client-nodejs/blob/master/docs/PictureDataPictures.md) -- [Pipedrive.PictureDataWithID](https://github.com/pipedrive/client-nodejs/blob/master/docs/PictureDataWithID.md) -- [Pipedrive.PictureDataWithIDAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PictureDataWithIDAllOf.md) -- [Pipedrive.PictureDataWithValue](https://github.com/pipedrive/client-nodejs/blob/master/docs/PictureDataWithValue.md) -- [Pipedrive.PictureDataWithValueAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PictureDataWithValueAllOf.md) -- [Pipedrive.Pipeline](https://github.com/pipedrive/client-nodejs/blob/master/docs/Pipeline.md) -- [Pipedrive.PipelineDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/PipelineDetails.md) -- [Pipedrive.PipelineDetailsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PipelineDetailsAllOf.md) -- [Pipedrive.PostComment](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostComment.md) -- [Pipedrive.PostDealParticipants](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostDealParticipants.md) -- [Pipedrive.PostDealParticipantsRelatedObjects](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostDealParticipantsRelatedObjects.md) -- [Pipedrive.PostGoalResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostGoalResponse.md) -- [Pipedrive.PostNote](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostNote.md) -- [Pipedrive.PostRoleAssignment](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostRoleAssignment.md) -- [Pipedrive.PostRoleAssignmentAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostRoleAssignmentAllOf.md) -- [Pipedrive.PostRoleAssignmentAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostRoleAssignmentAllOfData.md) -- [Pipedrive.PostRoleSettings](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostRoleSettings.md) -- [Pipedrive.PostRoleSettingsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostRoleSettingsAllOf.md) -- [Pipedrive.PostRoleSettingsAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostRoleSettingsAllOfData.md) -- [Pipedrive.PostRoles](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostRoles.md) -- [Pipedrive.PostRolesAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostRolesAllOf.md) -- [Pipedrive.PostRolesAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/PostRolesAllOfData.md) -- [Pipedrive.ProductAttachementFields](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductAttachementFields.md) -- [Pipedrive.ProductAttachmentDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductAttachmentDetails.md) -- [Pipedrive.ProductBaseDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductBaseDeal.md) -- [Pipedrive.ProductField](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductField.md) -- [Pipedrive.ProductFieldAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductFieldAllOf.md) -- [Pipedrive.ProductFileItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductFileItem.md) -- [Pipedrive.ProductListItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductListItem.md) -- [Pipedrive.ProductRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductRequest.md) -- [Pipedrive.ProductResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductResponse.md) -- [Pipedrive.ProductSearchItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductSearchItem.md) -- [Pipedrive.ProductSearchItemItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductSearchItemItem.md) -- [Pipedrive.ProductSearchItemItemOwner](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductSearchItemItemOwner.md) -- [Pipedrive.ProductSearchResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductSearchResponse.md) -- [Pipedrive.ProductSearchResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductSearchResponseAllOf.md) -- [Pipedrive.ProductSearchResponseAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductSearchResponseAllOfData.md) -- [Pipedrive.ProductWithArrayPrices](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductWithArrayPrices.md) -- [Pipedrive.ProductsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProductsResponse.md) -- [Pipedrive.ProjectBoardObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectBoardObject.md) -- [Pipedrive.ProjectGroupsObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectGroupsObject.md) -- [Pipedrive.ProjectId](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectId.md) -- [Pipedrive.ProjectMandatoryObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectMandatoryObjectFragment.md) -- [Pipedrive.ProjectNotChangeableObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectNotChangeableObjectFragment.md) -- [Pipedrive.ProjectObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectObjectFragment.md) -- [Pipedrive.ProjectPhaseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPhaseObject.md) -- [Pipedrive.ProjectPlanItemObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPlanItemObject.md) -- [Pipedrive.ProjectPostObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPostObject.md) -- [Pipedrive.ProjectPostObjectAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPostObjectAllOf.md) -- [Pipedrive.ProjectPutObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPutObject.md) -- [Pipedrive.ProjectPutPlanItemBodyObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectPutPlanItemBodyObject.md) -- [Pipedrive.ProjectResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ProjectResponseObject.md) -- [Pipedrive.PutRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/PutRole.md) -- [Pipedrive.PutRoleAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/PutRoleAllOf.md) -- [Pipedrive.PutRoleAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/PutRoleAllOfData.md) -- [Pipedrive.PutRolePipelinesBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/PutRolePipelinesBody.md) -- [Pipedrive.RecentDataProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentDataProduct.md) -- [Pipedrive.RecentsActivity](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsActivity.md) -- [Pipedrive.RecentsActivityType](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsActivityType.md) -- [Pipedrive.RecentsDeal](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsDeal.md) -- [Pipedrive.RecentsFile](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsFile.md) -- [Pipedrive.RecentsFilter](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsFilter.md) -- [Pipedrive.RecentsNote](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsNote.md) -- [Pipedrive.RecentsOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsOrganization.md) -- [Pipedrive.RecentsPerson](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsPerson.md) -- [Pipedrive.RecentsPipeline](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsPipeline.md) -- [Pipedrive.RecentsProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsProduct.md) -- [Pipedrive.RecentsStage](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsStage.md) -- [Pipedrive.RecentsUser](https://github.com/pipedrive/client-nodejs/blob/master/docs/RecentsUser.md) -- [Pipedrive.RelatedDealData](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelatedDealData.md) -- [Pipedrive.RelatedDealDataDEALID](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelatedDealDataDEALID.md) -- [Pipedrive.RelatedFollowerData](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelatedFollowerData.md) -- [Pipedrive.RelatedOrganizationData](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelatedOrganizationData.md) -- [Pipedrive.RelatedOrganizationDataWithActiveFlag](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelatedOrganizationDataWithActiveFlag.md) -- [Pipedrive.RelatedOrganizationName](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelatedOrganizationName.md) -- [Pipedrive.RelatedPersonData](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelatedPersonData.md) -- [Pipedrive.RelatedPersonDataWithActiveFlag](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelatedPersonDataWithActiveFlag.md) -- [Pipedrive.RelatedPictureData](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelatedPictureData.md) -- [Pipedrive.RelatedUserData](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelatedUserData.md) -- [Pipedrive.RelationshipOrganizationInfoItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItem.md) -- [Pipedrive.RelationshipOrganizationInfoItemAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItemAllOf.md) -- [Pipedrive.RelationshipOrganizationInfoItemWithActiveFlag](https://github.com/pipedrive/client-nodejs/blob/master/docs/RelationshipOrganizationInfoItemWithActiveFlag.md) -- [Pipedrive.RequiredPostProjectParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredPostProjectParameters.md) -- [Pipedrive.RequiredPostTaskParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequiredPostTaskParameters.md) -- [Pipedrive.RequredTitleParameter](https://github.com/pipedrive/client-nodejs/blob/master/docs/RequredTitleParameter.md) -- [Pipedrive.ResponseCallLogObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/ResponseCallLogObject.md) -- [Pipedrive.ResponseCallLogObjectAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/ResponseCallLogObjectAllOf.md) -- [Pipedrive.RoleAssignment](https://github.com/pipedrive/client-nodejs/blob/master/docs/RoleAssignment.md) -- [Pipedrive.RoleAssignmentAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/RoleAssignmentAllOf.md) -- [Pipedrive.RoleSettings](https://github.com/pipedrive/client-nodejs/blob/master/docs/RoleSettings.md) -- [Pipedrive.RolesAdditionalData](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesAdditionalData.md) -- [Pipedrive.RolesAdditionalDataPagination](https://github.com/pipedrive/client-nodejs/blob/master/docs/RolesAdditionalDataPagination.md) -- [Pipedrive.SinglePermissionSetsItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/SinglePermissionSetsItem.md) -- [Pipedrive.SinglePermissionSetsItemAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/SinglePermissionSetsItemAllOf.md) -- [Pipedrive.Stage](https://github.com/pipedrive/client-nodejs/blob/master/docs/Stage.md) -- [Pipedrive.StageConversions](https://github.com/pipedrive/client-nodejs/blob/master/docs/StageConversions.md) -- [Pipedrive.StageDetails](https://github.com/pipedrive/client-nodejs/blob/master/docs/StageDetails.md) -- [Pipedrive.StageWithPipelineInfo](https://github.com/pipedrive/client-nodejs/blob/master/docs/StageWithPipelineInfo.md) -- [Pipedrive.StageWithPipelineInfoAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/StageWithPipelineInfoAllOf.md) -- [Pipedrive.SubRole](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubRole.md) -- [Pipedrive.SubRoleAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubRoleAllOf.md) -- [Pipedrive.SubscriptionAddonsResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionAddonsResponse.md) -- [Pipedrive.SubscriptionAddonsResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionAddonsResponseAllOf.md) -- [Pipedrive.SubscriptionInstallmentCreateRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionInstallmentCreateRequest.md) -- [Pipedrive.SubscriptionInstallmentUpdateRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionInstallmentUpdateRequest.md) -- [Pipedrive.SubscriptionItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionItem.md) -- [Pipedrive.SubscriptionRecurringCancelRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionRecurringCancelRequest.md) -- [Pipedrive.SubscriptionRecurringCreateRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionRecurringCreateRequest.md) -- [Pipedrive.SubscriptionRecurringUpdateRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionRecurringUpdateRequest.md) -- [Pipedrive.SubscriptionsIdResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsIdResponse.md) -- [Pipedrive.SubscriptionsIdResponseAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/SubscriptionsIdResponseAllOf.md) -- [Pipedrive.TaskId](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskId.md) -- [Pipedrive.TaskMandatoryObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskMandatoryObjectFragment.md) -- [Pipedrive.TaskNotChangeableObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskNotChangeableObjectFragment.md) -- [Pipedrive.TaskObjectFragment](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskObjectFragment.md) -- [Pipedrive.TaskPostObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskPostObject.md) -- [Pipedrive.TaskPutObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskPutObject.md) -- [Pipedrive.TaskResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TaskResponseObject.md) -- [Pipedrive.Team](https://github.com/pipedrive/client-nodejs/blob/master/docs/Team.md) -- [Pipedrive.TeamAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/TeamAllOf.md) -- [Pipedrive.TeamId](https://github.com/pipedrive/client-nodejs/blob/master/docs/TeamId.md) -- [Pipedrive.Teams](https://github.com/pipedrive/client-nodejs/blob/master/docs/Teams.md) -- [Pipedrive.TeamsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/TeamsAllOf.md) -- [Pipedrive.TemplateObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TemplateObject.md) -- [Pipedrive.TemplateResponseObject](https://github.com/pipedrive/client-nodejs/blob/master/docs/TemplateResponseObject.md) -- [Pipedrive.Unauthorized](https://github.com/pipedrive/client-nodejs/blob/master/docs/Unauthorized.md) -- [Pipedrive.UpdateActivityPlanItemResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateActivityPlanItemResponse.md) -- [Pipedrive.UpdateActivityResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateActivityResponse.md) -- [Pipedrive.UpdateDealParameters](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateDealParameters.md) -- [Pipedrive.UpdateDealProduct](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateDealProduct.md) -- [Pipedrive.UpdateDealRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateDealRequest.md) -- [Pipedrive.UpdateFile](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateFile.md) -- [Pipedrive.UpdateFilterRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateFilterRequest.md) -- [Pipedrive.UpdateLeadLabelRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateLeadLabelRequest.md) -- [Pipedrive.UpdateLeadRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateLeadRequest.md) -- [Pipedrive.UpdateOrganization](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateOrganization.md) -- [Pipedrive.UpdateOrganizationAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateOrganizationAllOf.md) -- [Pipedrive.UpdatePerson](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdatePerson.md) -- [Pipedrive.UpdatePersonAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdatePersonAllOf.md) -- [Pipedrive.UpdatePersonResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdatePersonResponse.md) -- [Pipedrive.UpdateProductField](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProductField.md) -- [Pipedrive.UpdateProductRequestBody](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProductRequestBody.md) -- [Pipedrive.UpdateProductResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProductResponse.md) -- [Pipedrive.UpdateProjectResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateProjectResponse.md) -- [Pipedrive.UpdateStageRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateStageRequest.md) -- [Pipedrive.UpdateStageRequestAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateStageRequestAllOf.md) -- [Pipedrive.UpdateTaskPlanItemResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTaskPlanItemResponse.md) -- [Pipedrive.UpdateTaskResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTaskResponse.md) -- [Pipedrive.UpdateTeam](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTeam.md) -- [Pipedrive.UpdateTeamAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTeamAllOf.md) -- [Pipedrive.UpdateTeamWithAdditionalProperties](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateTeamWithAdditionalProperties.md) -- [Pipedrive.UpdateUserRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpdateUserRequest.md) -- [Pipedrive.UpsertGoalResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpsertGoalResponse.md) -- [Pipedrive.UpsertLeadLabelResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UpsertLeadLabelResponse.md) -- [Pipedrive.User](https://github.com/pipedrive/client-nodejs/blob/master/docs/User.md) -- [Pipedrive.UserAccess](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserAccess.md) -- [Pipedrive.UserAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserAllOf.md) -- [Pipedrive.UserAssignmentToPermissionSet](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserAssignmentToPermissionSet.md) -- [Pipedrive.UserAssignmentsToPermissionSet](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserAssignmentsToPermissionSet.md) -- [Pipedrive.UserAssignmentsToPermissionSetAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserAssignmentsToPermissionSetAllOf.md) -- [Pipedrive.UserConnections](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserConnections.md) -- [Pipedrive.UserConnectionsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserConnectionsAllOf.md) -- [Pipedrive.UserConnectionsAllOfData](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserConnectionsAllOfData.md) -- [Pipedrive.UserData](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserData.md) -- [Pipedrive.UserDataWithId](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserDataWithId.md) -- [Pipedrive.UserIDs](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserIDs.md) -- [Pipedrive.UserIDsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserIDsAllOf.md) -- [Pipedrive.UserMe](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserMe.md) -- [Pipedrive.UserMeAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserMeAllOf.md) -- [Pipedrive.UserPermissions](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserPermissions.md) -- [Pipedrive.UserPermissionsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserPermissionsAllOf.md) -- [Pipedrive.UserPermissionsItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserPermissionsItem.md) -- [Pipedrive.UserProviderLinkCreateRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserProviderLinkCreateRequest.md) -- [Pipedrive.UserProviderLinkErrorResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserProviderLinkErrorResponse.md) -- [Pipedrive.UserProviderLinkSuccessResponse](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserProviderLinkSuccessResponse.md) -- [Pipedrive.UserProviderLinkSuccessResponseData](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserProviderLinkSuccessResponseData.md) -- [Pipedrive.UserSettings](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserSettings.md) -- [Pipedrive.UserSettingsAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserSettingsAllOf.md) -- [Pipedrive.UserSettingsItem](https://github.com/pipedrive/client-nodejs/blob/master/docs/UserSettingsItem.md) -- [Pipedrive.Users](https://github.com/pipedrive/client-nodejs/blob/master/docs/Users.md) -- [Pipedrive.UsersAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/UsersAllOf.md) -- [Pipedrive.VisibleTo](https://github.com/pipedrive/client-nodejs/blob/master/docs/VisibleTo.md) -- [Pipedrive.Webhook](https://github.com/pipedrive/client-nodejs/blob/master/docs/Webhook.md) -- [Pipedrive.WebhookAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/WebhookAllOf.md) -- [Pipedrive.WebhookBadRequest](https://github.com/pipedrive/client-nodejs/blob/master/docs/WebhookBadRequest.md) -- [Pipedrive.WebhookBadRequestAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/WebhookBadRequestAllOf.md) -- [Pipedrive.Webhooks](https://github.com/pipedrive/client-nodejs/blob/master/docs/Webhooks.md) -- [Pipedrive.WebhooksAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/WebhooksAllOf.md) -- [Pipedrive.WebhooksDeleteForbiddenSchema](https://github.com/pipedrive/client-nodejs/blob/master/docs/WebhooksDeleteForbiddenSchema.md) -- [Pipedrive.WebhooksDeleteForbiddenSchemaAllOf](https://github.com/pipedrive/client-nodejs/blob/master/docs/WebhooksDeleteForbiddenSchemaAllOf.md) - - diff --git a/docs/ActivitiesApi.md b/docs/ActivitiesApi.md deleted file mode 100644 index 48f88efc..00000000 --- a/docs/ActivitiesApi.md +++ /dev/null @@ -1,424 +0,0 @@ -# Pipedrive.ActivitiesApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addActivity**](ActivitiesApi.md#addActivity) | **POST** /activities | Add an activity -[**deleteActivities**](ActivitiesApi.md#deleteActivities) | **DELETE** /activities | Delete multiple activities in bulk -[**deleteActivity**](ActivitiesApi.md#deleteActivity) | **DELETE** /activities/{id} | Delete an activity -[**getActivities**](ActivitiesApi.md#getActivities) | **GET** /activities | Get all activities assigned to a particular user -[**getActivitiesCollection**](ActivitiesApi.md#getActivitiesCollection) | **GET** /activities/collection | Get all activities (BETA) -[**getActivity**](ActivitiesApi.md#getActivity) | **GET** /activities/{id} | Get details of an activity -[**updateActivity**](ActivitiesApi.md#updateActivity) | **PUT** /activities/{id} | Update an activity - - - -## addActivity - -> AddActivityResponse addActivity(opts) - -Add an activity - -Adds a new activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-an-activity\" target=\"_blank\" rel=\"noopener noreferrer\">adding an activity</a>. <br /> <br /> ***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivitiesApi(apiClient); -let opts = Pipedrive.ActivityPostObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addActivity(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ActivityPostObject** | [**ActivityPostObject**](ActivityPostObject.md)| | [optional] - -### Return type - -[**AddActivityResponse**](AddActivityResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteActivities - -> DeleteActivitiesResponse deleteActivities(ids) - -Delete multiple activities in bulk - -Marks multiple activities as deleted. After 30 days, the activities will be permanently deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivitiesApi(apiClient); -let ids = "ids_example"; // String | The comma-separated IDs of activities that will be deleted -apiInstance.deleteActivities(ids).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ids** | **String**| The comma-separated IDs of activities that will be deleted | - -### Return type - -[**DeleteActivitiesResponse**](DeleteActivitiesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteActivity - -> DeleteActivityResponse deleteActivity(id) - -Delete an activity - -Marks an activity as deleted. After 30 days, the activity will be permanently deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivitiesApi(apiClient); -let id = 56; // Number | The ID of the activity -apiInstance.deleteActivity(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the activity | - -### Return type - -[**DeleteActivityResponse**](DeleteActivityResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getActivities - -> GetActivitiesResponse getActivities(opts) - -Get all activities assigned to a particular user - -Returns all activities assigned to a particular user. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivitiesApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'userId': 56, // Number | The ID of the user whose activities will be fetched. If omitted, the user associated with the API token will be used. If 0, activities for all company users will be fetched based on the permission sets. - 'filterId': 56, // Number | The ID of the filter to use (will narrow down results if used together with `user_id` parameter) - 'type': "type_example", // String | The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. - 'limit': 100, // Number | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - 'start': 0, // Number | For pagination, the position that represents the first result for the page - 'startDate': new Date("2013-10-20"), // Date | Use the activity due date where you wish to begin fetching activities from. Insert due date in YYYY-MM-DD format. - 'endDate': new Date("2013-10-20"), // Date | Use the activity due date where you wish to stop fetching activities from. Insert due date in YYYY-MM-DD format. - 'done': new Pipedrive.NumberBoolean() // NumberBoolean | Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both done and not done activities. -}; -apiInstance.getActivities(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user_id** | **Number**| The ID of the user whose activities will be fetched. If omitted, the user associated with the API token will be used. If 0, activities for all company users will be fetched based on the permission sets. | [optional] - **filter_id** | **Number**| The ID of the filter to use (will narrow down results if used together with `user_id` parameter) | [optional] - **type** | **String**| The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. | [optional] - **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. | [optional] - **start** | **Number**| For pagination, the position that represents the first result for the page | [optional] - **start_date** | **Date**| Use the activity due date where you wish to begin fetching activities from. Insert due date in YYYY-MM-DD format. | [optional] - **end_date** | **Date**| Use the activity due date where you wish to stop fetching activities from. Insert due date in YYYY-MM-DD format. | [optional] - **done** | [**NumberBoolean**](.md)| Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both done and not done activities. | [optional] - -### Return type - -[**GetActivitiesResponse**](GetActivitiesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getActivitiesCollection - -> GetActivitiesCollectionResponse getActivitiesCollection(opts) - -Get all activities (BETA) - -Returns all activities. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions <a href=\"https://support.pipedrive.com/en/article/global-user-management\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivitiesApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page - 'limit': 100, // Number | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - 'since': "since_example", // String | The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - 'until': "until_example", // String | The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - 'userId': 56, // Number | The ID of the user whose activities will be fetched. If omitted, all activities are returned. - 'done': true, // Boolean | Whether the activity is done or not. `false` = Not done, `true` = Done. If omitted, returns both done and not done activities. - 'type': "type_example" // String | The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. -}; -apiInstance.getActivitiesCollection(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] - **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. | [optional] - **since** | **String**| The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. | [optional] - **until** | **String**| The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. | [optional] - **user_id** | **Number**| The ID of the user whose activities will be fetched. If omitted, all activities are returned. | [optional] - **done** | **Boolean**| Whether the activity is done or not. `false` = Not done, `true` = Done. If omitted, returns both done and not done activities. | [optional] - **type** | **String**| The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. | [optional] - -### Return type - -[**GetActivitiesCollectionResponse**](GetActivitiesCollectionResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getActivity - -> GetActivityResponse getActivity(id) - -Get details of an activity - -Returns the details of a specific activity. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivitiesApi(apiClient); -let id = 56; // Number | The ID of the activity -apiInstance.getActivity(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the activity | - -### Return type - -[**GetActivityResponse**](GetActivityResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateActivity - -> UpdateActivityResponse updateActivity(id, opts) - -Update an activity - -Updates an activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). <br /> <br /> ***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivitiesApi(apiClient); -let id = 56; // Number | The ID of the activity -let opts = Pipedrive.ActivityPutObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateActivity(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the activity | - **ActivityPutObject** | [**ActivityPutObject**](ActivityPutObject.md)| | [optional] - -### Return type - -[**UpdateActivityResponse**](UpdateActivityResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/ActivityCollectionResponseObject.md b/docs/ActivityCollectionResponseObject.md deleted file mode 100644 index 32615c1d..00000000 --- a/docs/ActivityCollectionResponseObject.md +++ /dev/null @@ -1,44 +0,0 @@ -# Pipedrive.ActivityCollectionResponseObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**due_date** | **Date** | The due date of the activity. Format: YYYY-MM-DD | [optional] -**due_time** | **String** | The due time of the activity in UTC. Format: HH:MM | [optional] -**duration** | **String** | The duration of the activity. Format: HH:MM | [optional] -**deal_id** | **Number** | The ID of the deal this activity is associated with | [optional] -**lead_id** | **String** | The ID of the lead in the UUID format this activity is associated with | [optional] -**person_id** | **Number** | The ID of the person this activity is associated with | [optional] -**project_id** | **Number** | The ID of the project this activity is associated with | [optional] -**org_id** | **Number** | The ID of the organization this activity is associated with | [optional] -**location** | **String** | The address of the activity. | [optional] -**public_description** | **String** | Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. | [optional] -**id** | **Number** | The ID of the activity, generated when the activity was created | [optional] -**done** | **Boolean** | Whether the activity is done or not | [optional] -**subject** | **String** | The subject of the activity | [optional] -**type** | **String** | The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. | [optional] -**user_id** | **Number** | The ID of the user whom the activity is assigned to | [optional] -**busy_flag** | **Boolean** | Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. | [optional] -**company_id** | **Number** | The user's company ID | [optional] -**conference_meeting_client** | **String** | The ID of the Marketplace app, which is connected to this activity | [optional] -**conference_meeting_url** | **String** | The link to join the meeting which is associated with this activity | [optional] -**conference_meeting_id** | **String** | The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity | [optional] -**add_time** | **String** | The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**marked_as_done_time** | **String** | The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**active_flag** | **Boolean** | Whether the activity is active or not | [optional] -**update_time** | **String** | The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_user_id** | **Number** | The ID of the user who was the last to update this activity | [optional] -**source_timezone** | **String** | The timezone the activity was created in an external calendar | [optional] -**location_subpremise** | **String** | A subfield of the location field. Indicates apartment/suite number. | [optional] -**location_street_number** | **String** | A subfield of the location field. Indicates house number. | [optional] -**location_route** | **String** | A subfield of the location field. Indicates street name. | [optional] -**location_sublocality** | **String** | A subfield of the location field. Indicates district/sublocality. | [optional] -**location_locality** | **String** | A subfield of the location field. Indicates city/town/village/locality. | [optional] -**location_admin_area_level_1** | **String** | A subfield of the location field. Indicates state/county. | [optional] -**location_admin_area_level_2** | **String** | A subfield of the location field. Indicates region. | [optional] -**location_country** | **String** | A subfield of the location field. Indicates country. | [optional] -**location_postal_code** | **String** | A subfield of the location field. Indicates ZIP/postal code. | [optional] -**location_formatted_address** | **String** | A subfield of the location field. Indicates full/combined address. | [optional] - - diff --git a/docs/ActivityCollectionResponseObjectAllOf.md b/docs/ActivityCollectionResponseObjectAllOf.md deleted file mode 100644 index 91014448..00000000 --- a/docs/ActivityCollectionResponseObjectAllOf.md +++ /dev/null @@ -1,34 +0,0 @@ -# Pipedrive.ActivityCollectionResponseObjectAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the activity, generated when the activity was created | [optional] -**done** | **Boolean** | Whether the activity is done or not | [optional] -**subject** | **String** | The subject of the activity | [optional] -**type** | **String** | The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. | [optional] -**user_id** | **Number** | The ID of the user whom the activity is assigned to | [optional] -**busy_flag** | **Boolean** | Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. | [optional] -**company_id** | **Number** | The user's company ID | [optional] -**conference_meeting_client** | **String** | The ID of the Marketplace app, which is connected to this activity | [optional] -**conference_meeting_url** | **String** | The link to join the meeting which is associated with this activity | [optional] -**conference_meeting_id** | **String** | The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity | [optional] -**add_time** | **String** | The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**marked_as_done_time** | **String** | The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**active_flag** | **Boolean** | Whether the activity is active or not | [optional] -**update_time** | **String** | The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_user_id** | **Number** | The ID of the user who was the last to update this activity | [optional] -**source_timezone** | **String** | The timezone the activity was created in an external calendar | [optional] -**location_subpremise** | **String** | A subfield of the location field. Indicates apartment/suite number. | [optional] -**location_street_number** | **String** | A subfield of the location field. Indicates house number. | [optional] -**location_route** | **String** | A subfield of the location field. Indicates street name. | [optional] -**location_sublocality** | **String** | A subfield of the location field. Indicates district/sublocality. | [optional] -**location_locality** | **String** | A subfield of the location field. Indicates city/town/village/locality. | [optional] -**location_admin_area_level_1** | **String** | A subfield of the location field. Indicates state/county. | [optional] -**location_admin_area_level_2** | **String** | A subfield of the location field. Indicates region. | [optional] -**location_country** | **String** | A subfield of the location field. Indicates country. | [optional] -**location_postal_code** | **String** | A subfield of the location field. Indicates ZIP/postal code. | [optional] -**location_formatted_address** | **String** | A subfield of the location field. Indicates full/combined address. | [optional] - - diff --git a/docs/ActivityDistributionData.md b/docs/ActivityDistributionData.md deleted file mode 100644 index 4b16721c..00000000 --- a/docs/ActivityDistributionData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ActivityDistributionData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**activity_distribution** | [**ActivityDistributionDataActivityDistribution**](ActivityDistributionDataActivityDistribution.md) | | [optional] - - diff --git a/docs/ActivityDistributionDataActivityDistribution.md b/docs/ActivityDistributionDataActivityDistribution.md deleted file mode 100644 index a1122e12..00000000 --- a/docs/ActivityDistributionDataActivityDistribution.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ActivityDistributionDataActivityDistribution - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ASSIGNED_TO_USER_ID** | [**ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID**](ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.md) | | [optional] - - diff --git a/docs/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.md b/docs/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.md deleted file mode 100644 index 91eed2e2..00000000 --- a/docs/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**activities** | [**ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities**](ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.md) | | [optional] -**name** | **String** | The name of the user | [optional] -**activity_count** | **Number** | The overall count of activities for the user | [optional] -**share** | **Number** | The percentage of activities belongs to the user | [optional] - - diff --git a/docs/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.md b/docs/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.md deleted file mode 100644 index e45090e7..00000000 --- a/docs/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ACTIVITY_TYPE_NAME** | **Number** | The count of activities related to a specific type | [optional] - - diff --git a/docs/ActivityDistributionDataWithAdditionalData.md b/docs/ActivityDistributionDataWithAdditionalData.md deleted file mode 100644 index 8a1e904c..00000000 --- a/docs/ActivityDistributionDataWithAdditionalData.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ActivityDistributionDataWithAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**activity_distribution** | [**ActivityDistributionDataActivityDistribution**](ActivityDistributionDataActivityDistribution.md) | | [optional] -**start** | **Number** | Pagination start | [optional] -**limit** | **Number** | Items shown per page | [optional] -**more_items_in_collection** | **Boolean** | If there are more list items in the collection than displayed or not | [optional] - - diff --git a/docs/ActivityFieldsApi.md b/docs/ActivityFieldsApi.md deleted file mode 100644 index 7aafe51d..00000000 --- a/docs/ActivityFieldsApi.md +++ /dev/null @@ -1,58 +0,0 @@ -# Pipedrive.ActivityFieldsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getActivityFields**](ActivityFieldsApi.md#getActivityFields) | **GET** /activityFields | Get all activity fields - - - -## getActivityFields - -> FieldsResponse getActivityFields() - -Get all activity fields - -Returns all activity fields. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivityFieldsApi(apiClient); -apiInstance.getActivityFields().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**FieldsResponse**](FieldsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/ActivityInfo.md b/docs/ActivityInfo.md deleted file mode 100644 index e01db6b7..00000000 --- a/docs/ActivityInfo.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.ActivityInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] - - diff --git a/docs/ActivityObjectFragment.md b/docs/ActivityObjectFragment.md deleted file mode 100644 index b4de8f72..00000000 --- a/docs/ActivityObjectFragment.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.ActivityObjectFragment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**due_date** | **Date** | The due date of the activity. Format: YYYY-MM-DD | [optional] -**due_time** | **String** | The due time of the activity in UTC. Format: HH:MM | [optional] -**duration** | **String** | The duration of the activity. Format: HH:MM | [optional] -**deal_id** | **Number** | The ID of the deal this activity is associated with | [optional] -**lead_id** | **String** | The ID of the lead in the UUID format this activity is associated with | [optional] -**person_id** | **Number** | The ID of the person this activity is associated with | [optional] -**project_id** | **Number** | The ID of the project this activity is associated with | [optional] -**org_id** | **Number** | The ID of the organization this activity is associated with | [optional] -**location** | **String** | The address of the activity. | [optional] -**public_description** | **String** | Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. | [optional] - - diff --git a/docs/ActivityPostObject.md b/docs/ActivityPostObject.md deleted file mode 100644 index 8d6eba5d..00000000 --- a/docs/ActivityPostObject.md +++ /dev/null @@ -1,26 +0,0 @@ -# Pipedrive.ActivityPostObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**due_date** | **Date** | The due date of the activity. Format: YYYY-MM-DD | [optional] -**due_time** | **String** | The due time of the activity in UTC. Format: HH:MM | [optional] -**duration** | **String** | The duration of the activity. Format: HH:MM | [optional] -**deal_id** | **Number** | The ID of the deal this activity is associated with | [optional] -**lead_id** | **String** | The ID of the lead in the UUID format this activity is associated with | [optional] -**person_id** | **Number** | The ID of the person this activity is associated with | [optional] -**project_id** | **Number** | The ID of the project this activity is associated with | [optional] -**org_id** | **Number** | The ID of the organization this activity is associated with | [optional] -**location** | **String** | The address of the activity. | [optional] -**public_description** | **String** | Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. | [optional] -**note** | **String** | The note of the activity (HTML format) | [optional] -**subject** | **String** | The subject of the activity. When value for subject is not set, it will be given a default value `Call`. | [optional] -**type** | **String** | The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. When value for type is not set, it will be given a default value `Call`. | [optional] -**user_id** | **Number** | The ID of the user whom the activity is assigned to. If omitted, the activity is assigned to the authorized user. | [optional] -**participants** | **[Object]** | List of multiple persons (participants) this activity is associated with. If omitted, single participant from `person_id` field is used. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` | [optional] -**busy_flag** | **Boolean** | Set the activity as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. | [optional] -**attendees** | **[Object]** | The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` | [optional] -**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the activity is done or not. 0 = Not done, 1 = Done | [optional] - - diff --git a/docs/ActivityPostObjectAllOf.md b/docs/ActivityPostObjectAllOf.md deleted file mode 100644 index 22a96fc7..00000000 --- a/docs/ActivityPostObjectAllOf.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.ActivityPostObjectAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**note** | **String** | The note of the activity (HTML format) | [optional] -**subject** | **String** | The subject of the activity. When value for subject is not set, it will be given a default value `Call`. | [optional] -**type** | **String** | The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. When value for type is not set, it will be given a default value `Call`. | [optional] -**user_id** | **Number** | The ID of the user whom the activity is assigned to. If omitted, the activity is assigned to the authorized user. | [optional] -**participants** | **[Object]** | List of multiple persons (participants) this activity is associated with. If omitted, single participant from `person_id` field is used. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` | [optional] -**busy_flag** | **Boolean** | Set the activity as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. | [optional] -**attendees** | **[Object]** | The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` | [optional] -**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the activity is done or not. 0 = Not done, 1 = Done | [optional] - - diff --git a/docs/ActivityPutObject.md b/docs/ActivityPutObject.md deleted file mode 100644 index 0c2ff6bf..00000000 --- a/docs/ActivityPutObject.md +++ /dev/null @@ -1,26 +0,0 @@ -# Pipedrive.ActivityPutObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**due_date** | **Date** | The due date of the activity. Format: YYYY-MM-DD | [optional] -**due_time** | **String** | The due time of the activity in UTC. Format: HH:MM | [optional] -**duration** | **String** | The duration of the activity. Format: HH:MM | [optional] -**deal_id** | **Number** | The ID of the deal this activity is associated with | [optional] -**lead_id** | **String** | The ID of the lead in the UUID format this activity is associated with | [optional] -**person_id** | **Number** | The ID of the person this activity is associated with | [optional] -**project_id** | **Number** | The ID of the project this activity is associated with | [optional] -**org_id** | **Number** | The ID of the organization this activity is associated with | [optional] -**location** | **String** | The address of the activity. | [optional] -**public_description** | **String** | Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. | [optional] -**note** | **String** | The note of the activity (HTML format) | [optional] -**subject** | **String** | The subject of the activity | [optional] -**type** | **String** | The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. | [optional] -**user_id** | **Number** | The ID of the user whom the activity is assigned to | [optional] -**participants** | **[Object]** | List of multiple persons (participants) this activity is associated with. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` | [optional] -**busy_flag** | **Boolean** | Set the activity as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. | [optional] -**attendees** | **[Object]** | The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` | [optional] -**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the activity is done or not. 0 = Not done, 1 = Done | [optional] - - diff --git a/docs/ActivityPutObjectAllOf.md b/docs/ActivityPutObjectAllOf.md deleted file mode 100644 index d4e925a8..00000000 --- a/docs/ActivityPutObjectAllOf.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.ActivityPutObjectAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**note** | **String** | The note of the activity (HTML format) | [optional] -**subject** | **String** | The subject of the activity | [optional] -**type** | **String** | The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. | [optional] -**user_id** | **Number** | The ID of the user whom the activity is assigned to | [optional] -**participants** | **[Object]** | List of multiple persons (participants) this activity is associated with. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` | [optional] -**busy_flag** | **Boolean** | Set the activity as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. | [optional] -**attendees** | **[Object]** | The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` | [optional] -**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the activity is done or not. 0 = Not done, 1 = Done | [optional] - - diff --git a/docs/ActivityRecordAdditionalData.md b/docs/ActivityRecordAdditionalData.md deleted file mode 100644 index bae828cd..00000000 --- a/docs/ActivityRecordAdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ActivityRecordAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**updates_story_id** | **Number** | This field will be deprecated | [optional] - - diff --git a/docs/ActivityResponseObject.md b/docs/ActivityResponseObject.md deleted file mode 100644 index 9518c05e..00000000 --- a/docs/ActivityResponseObject.md +++ /dev/null @@ -1,69 +0,0 @@ -# Pipedrive.ActivityResponseObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**due_date** | **Date** | The due date of the activity. Format: YYYY-MM-DD | [optional] -**due_time** | **String** | The due time of the activity in UTC. Format: HH:MM | [optional] -**duration** | **String** | The duration of the activity. Format: HH:MM | [optional] -**deal_id** | **Number** | The ID of the deal this activity is associated with | [optional] -**lead_id** | **String** | The ID of the lead in the UUID format this activity is associated with | [optional] -**person_id** | **Number** | The ID of the person this activity is associated with | [optional] -**project_id** | **Number** | The ID of the project this activity is associated with | [optional] -**org_id** | **Number** | The ID of the organization this activity is associated with | [optional] -**location** | **String** | The address of the activity. | [optional] -**public_description** | **String** | Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. | [optional] -**id** | **Number** | The ID of the activity, generated when the activity was created | [optional] -**note** | **String** | The note of the activity (HTML format) | [optional] -**done** | **Boolean** | Whether the activity is done or not | [optional] -**subject** | **String** | The subject of the activity | [optional] -**type** | **String** | The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. | [optional] -**user_id** | **Number** | The ID of the user whom the activity is assigned to | [optional] -**participants** | **[Object]** | List of multiple persons (participants) this activity is associated with | [optional] -**busy_flag** | **Boolean** | Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. | [optional] -**attendees** | **[Object]** | The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. | [optional] -**company_id** | **Number** | The user's company ID | [optional] -**reference_type** | **String** | If the activity references some other object, it is indicated here. For example, value `Salesphone` refers to activities created with Caller. | [optional] -**reference_id** | **Number** | Together with the `reference_type`, gives the ID of the other object | [optional] -**conference_meeting_client** | **String** | The ID of the Marketplace app, which is connected to this activity | [optional] -**conference_meeting_url** | **String** | The link to join the meeting which is associated with this activity | [optional] -**conference_meeting_id** | **String** | The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity | [optional] -**add_time** | **String** | The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**marked_as_done_time** | **String** | The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**last_notification_time** | **String** | The date and time of latest notifications sent about this activity to the participants or the attendees of this activity | [optional] -**last_notification_user_id** | **Number** | The ID of the user who triggered the sending of the latest notifications about this activity to the participants or the attendees of this activity | [optional] -**notification_language_id** | **Number** | The ID of the language the notifications are sent in | [optional] -**active_flag** | **Boolean** | Whether the activity is active or not | [optional] -**update_time** | **String** | The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_user_id** | **Number** | The ID of the user who was the last to update this activity | [optional] -**gcal_event_id** | **String** | For the activity which syncs to Google calendar, this is the Google event ID. NB! This field is related to old Google calendar sync and will be deprecated soon. | [optional] -**google_calendar_id** | **String** | The Google calendar ID that this activity syncs to. NB! This field is related to old Google calendar sync and will be deprecated soon. | [optional] -**google_calendar_etag** | **String** | The Google calendar API etag (version) that is used for syncing this activity. NB! This field is related to old Google calendar sync and will be deprecated soon. | [optional] -**calendar_sync_include_context** | **String** | For activities that sync to an external calendar, this setting indicates if the activity syncs with context (what are the deals, persons, organizations this activity is related to) | [optional] -**source_timezone** | **String** | The timezone the activity was created in an external calendar | [optional] -**rec_rule** | **String** | The rule for the recurrence of the activity. Is important for activities synced into Pipedrive from an external calendar. Example: \"RRULE:FREQ=WEEKLY;BYDAY=WE\" | [optional] -**rec_rule_extension** | **String** | Additional rules for the recurrence of the activity, extend the `rec_rule`. Is important for activities synced into Pipedrive from an external calendar. | [optional] -**rec_master_activity_id** | **Number** | The ID of parent activity for a recurrent activity if the current activity is an exception to recurrence rules | [optional] -**series** | **[Object]** | The list of recurring activity instances. It is in a structure as follows: `[{due_date: \"2020-06-24\", due_time: \"10:00:00\"}]` | [optional] -**created_by_user_id** | **Number** | The ID of the user who created the activity | [optional] -**location_subpremise** | **String** | A subfield of the location field. Indicates apartment/suite number. | [optional] -**location_street_number** | **String** | A subfield of the location field. Indicates house number. | [optional] -**location_route** | **String** | A subfield of the location field. Indicates street name. | [optional] -**location_sublocality** | **String** | A subfield of the location field. Indicates district/sublocality. | [optional] -**location_locality** | **String** | A subfield of the location field. Indicates city/town/village/locality. | [optional] -**location_admin_area_level_1** | **String** | A subfield of the location field. Indicates state/county. | [optional] -**location_admin_area_level_2** | **String** | A subfield of the location field. Indicates region. | [optional] -**location_country** | **String** | A subfield of the location field. Indicates country. | [optional] -**location_postal_code** | **String** | A subfield of the location field. Indicates ZIP/postal code. | [optional] -**location_formatted_address** | **String** | A subfield of the location field. Indicates full/combined address. | [optional] -**org_name** | **String** | The name of the organization this activity is associated with | [optional] -**person_name** | **String** | The name of the person this activity is associated with | [optional] -**deal_title** | **String** | The name of the deal this activity is associated with | [optional] -**owner_name** | **String** | The name of the user this activity is owned by | [optional] -**person_dropbox_bcc** | **String** | The BCC email address of the person | [optional] -**deal_dropbox_bcc** | **String** | The BCC email address of the deal | [optional] -**assigned_to_user_id** | **Number** | The ID of the user to whom the activity is assigned to. Equal to `user_id`. | [optional] -**file** | **Object** | The file that is attached to this activity. For example, this can be a reference to an audio note file generated with Pipedrive mobile app. | [optional] - - diff --git a/docs/ActivityResponseObjectAllOf.md b/docs/ActivityResponseObjectAllOf.md deleted file mode 100644 index fb47476d..00000000 --- a/docs/ActivityResponseObjectAllOf.md +++ /dev/null @@ -1,59 +0,0 @@ -# Pipedrive.ActivityResponseObjectAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the activity, generated when the activity was created | [optional] -**note** | **String** | The note of the activity (HTML format) | [optional] -**done** | **Boolean** | Whether the activity is done or not | [optional] -**subject** | **String** | The subject of the activity | [optional] -**type** | **String** | The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. | [optional] -**user_id** | **Number** | The ID of the user whom the activity is assigned to | [optional] -**participants** | **[Object]** | List of multiple persons (participants) this activity is associated with | [optional] -**busy_flag** | **Boolean** | Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. | [optional] -**attendees** | **[Object]** | The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. | [optional] -**company_id** | **Number** | The user's company ID | [optional] -**reference_type** | **String** | If the activity references some other object, it is indicated here. For example, value `Salesphone` refers to activities created with Caller. | [optional] -**reference_id** | **Number** | Together with the `reference_type`, gives the ID of the other object | [optional] -**conference_meeting_client** | **String** | The ID of the Marketplace app, which is connected to this activity | [optional] -**conference_meeting_url** | **String** | The link to join the meeting which is associated with this activity | [optional] -**conference_meeting_id** | **String** | The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity | [optional] -**add_time** | **String** | The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**marked_as_done_time** | **String** | The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**last_notification_time** | **String** | The date and time of latest notifications sent about this activity to the participants or the attendees of this activity | [optional] -**last_notification_user_id** | **Number** | The ID of the user who triggered the sending of the latest notifications about this activity to the participants or the attendees of this activity | [optional] -**notification_language_id** | **Number** | The ID of the language the notifications are sent in | [optional] -**active_flag** | **Boolean** | Whether the activity is active or not | [optional] -**update_time** | **String** | The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_user_id** | **Number** | The ID of the user who was the last to update this activity | [optional] -**gcal_event_id** | **String** | For the activity which syncs to Google calendar, this is the Google event ID. NB! This field is related to old Google calendar sync and will be deprecated soon. | [optional] -**google_calendar_id** | **String** | The Google calendar ID that this activity syncs to. NB! This field is related to old Google calendar sync and will be deprecated soon. | [optional] -**google_calendar_etag** | **String** | The Google calendar API etag (version) that is used for syncing this activity. NB! This field is related to old Google calendar sync and will be deprecated soon. | [optional] -**calendar_sync_include_context** | **String** | For activities that sync to an external calendar, this setting indicates if the activity syncs with context (what are the deals, persons, organizations this activity is related to) | [optional] -**source_timezone** | **String** | The timezone the activity was created in an external calendar | [optional] -**rec_rule** | **String** | The rule for the recurrence of the activity. Is important for activities synced into Pipedrive from an external calendar. Example: \"RRULE:FREQ=WEEKLY;BYDAY=WE\" | [optional] -**rec_rule_extension** | **String** | Additional rules for the recurrence of the activity, extend the `rec_rule`. Is important for activities synced into Pipedrive from an external calendar. | [optional] -**rec_master_activity_id** | **Number** | The ID of parent activity for a recurrent activity if the current activity is an exception to recurrence rules | [optional] -**series** | **[Object]** | The list of recurring activity instances. It is in a structure as follows: `[{due_date: \"2020-06-24\", due_time: \"10:00:00\"}]` | [optional] -**created_by_user_id** | **Number** | The ID of the user who created the activity | [optional] -**location_subpremise** | **String** | A subfield of the location field. Indicates apartment/suite number. | [optional] -**location_street_number** | **String** | A subfield of the location field. Indicates house number. | [optional] -**location_route** | **String** | A subfield of the location field. Indicates street name. | [optional] -**location_sublocality** | **String** | A subfield of the location field. Indicates district/sublocality. | [optional] -**location_locality** | **String** | A subfield of the location field. Indicates city/town/village/locality. | [optional] -**location_admin_area_level_1** | **String** | A subfield of the location field. Indicates state/county. | [optional] -**location_admin_area_level_2** | **String** | A subfield of the location field. Indicates region. | [optional] -**location_country** | **String** | A subfield of the location field. Indicates country. | [optional] -**location_postal_code** | **String** | A subfield of the location field. Indicates ZIP/postal code. | [optional] -**location_formatted_address** | **String** | A subfield of the location field. Indicates full/combined address. | [optional] -**org_name** | **String** | The name of the organization this activity is associated with | [optional] -**person_name** | **String** | The name of the person this activity is associated with | [optional] -**deal_title** | **String** | The name of the deal this activity is associated with | [optional] -**owner_name** | **String** | The name of the user this activity is owned by | [optional] -**person_dropbox_bcc** | **String** | The BCC email address of the person | [optional] -**deal_dropbox_bcc** | **String** | The BCC email address of the deal | [optional] -**assigned_to_user_id** | **Number** | The ID of the user to whom the activity is assigned to. Equal to `user_id`. | [optional] -**file** | **Object** | The file that is attached to this activity. For example, this can be a reference to an audio note file generated with Pipedrive mobile app. | [optional] - - diff --git a/docs/ActivityTypeBulkDeleteResponse.md b/docs/ActivityTypeBulkDeleteResponse.md deleted file mode 100644 index d096e974..00000000 --- a/docs/ActivityTypeBulkDeleteResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ActivityTypeBulkDeleteResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**ActivityTypeBulkDeleteResponseAllOfData**](ActivityTypeBulkDeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/ActivityTypeBulkDeleteResponseAllOf.md b/docs/ActivityTypeBulkDeleteResponseAllOf.md deleted file mode 100644 index d6d49300..00000000 --- a/docs/ActivityTypeBulkDeleteResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ActivityTypeBulkDeleteResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ActivityTypeBulkDeleteResponseAllOfData**](ActivityTypeBulkDeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/ActivityTypeBulkDeleteResponseAllOfData.md b/docs/ActivityTypeBulkDeleteResponseAllOfData.md deleted file mode 100644 index 031e8d8c..00000000 --- a/docs/ActivityTypeBulkDeleteResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ActivityTypeBulkDeleteResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | The IDs of the deleted activity types | [optional] - - diff --git a/docs/ActivityTypeCreateRequest.md b/docs/ActivityTypeCreateRequest.md deleted file mode 100644 index 3701ea6c..00000000 --- a/docs/ActivityTypeCreateRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ActivityTypeCreateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the activity type | -**icon_key** | [**IconKey**](IconKey.md) | | -**color** | **String** | A designated color for the activity type in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black) | [optional] - - diff --git a/docs/ActivityTypeCreateUpdateDeleteResponse.md b/docs/ActivityTypeCreateUpdateDeleteResponse.md deleted file mode 100644 index 9dc0a44a..00000000 --- a/docs/ActivityTypeCreateUpdateDeleteResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ActivityTypeCreateUpdateDeleteResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**ActivityTypeObjectResponse**](ActivityTypeObjectResponse.md) | | [optional] - - diff --git a/docs/ActivityTypeCreateUpdateDeleteResponseAllOf.md b/docs/ActivityTypeCreateUpdateDeleteResponseAllOf.md deleted file mode 100644 index 37e4d9c0..00000000 --- a/docs/ActivityTypeCreateUpdateDeleteResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ActivityTypeCreateUpdateDeleteResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ActivityTypeObjectResponse**](ActivityTypeObjectResponse.md) | | [optional] - - diff --git a/docs/ActivityTypeListResponse.md b/docs/ActivityTypeListResponse.md deleted file mode 100644 index 5556c244..00000000 --- a/docs/ActivityTypeListResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ActivityTypeListResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ActivityTypeObjectResponse]**](ActivityTypeObjectResponse.md) | The array of activity types | [optional] - - diff --git a/docs/ActivityTypeListResponseAllOf.md b/docs/ActivityTypeListResponseAllOf.md deleted file mode 100644 index 3982c7b4..00000000 --- a/docs/ActivityTypeListResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ActivityTypeListResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ActivityTypeObjectResponse]**](ActivityTypeObjectResponse.md) | The array of activity types | [optional] - - diff --git a/docs/ActivityTypeObjectResponse.md b/docs/ActivityTypeObjectResponse.md deleted file mode 100644 index 2fccf92b..00000000 --- a/docs/ActivityTypeObjectResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.ActivityTypeObjectResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the activity type | [optional] -**name** | **String** | The name of the activity type | [optional] -**icon_key** | [**IconKey**](IconKey.md) | | [optional] -**color** | **String** | A designated color for the activity type in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black) | [optional] -**order_nr** | **Number** | An order number for the activity type. Order numbers should be used to order the types in the activity type selections. | [optional] -**key_string** | **String** | A string that is generated by the API based on the given name of the activity type upon creation | [optional] -**active_flag** | **Boolean** | The active flag of the activity type | [optional] -**is_custom_flag** | **Boolean** | Whether the activity type is a custom one or not | [optional] -**add_time** | **Date** | The creation time of the activity type | [optional] -**update_time** | **Date** | The update time of the activity type | [optional] - - diff --git a/docs/ActivityTypeUpdateRequest.md b/docs/ActivityTypeUpdateRequest.md deleted file mode 100644 index 469b10b5..00000000 --- a/docs/ActivityTypeUpdateRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ActivityTypeUpdateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the activity type | [optional] -**icon_key** | [**IconKey**](IconKey.md) | | [optional] -**color** | **String** | A designated color for the activity type in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black) | [optional] -**order_nr** | **Number** | An order number for this activity type. Order numbers should be used to order the types in the activity type selections. | [optional] - - diff --git a/docs/ActivityTypesApi.md b/docs/ActivityTypesApi.md deleted file mode 100644 index 15e16e7f..00000000 --- a/docs/ActivityTypesApi.md +++ /dev/null @@ -1,280 +0,0 @@ -# Pipedrive.ActivityTypesApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addActivityType**](ActivityTypesApi.md#addActivityType) | **POST** /activityTypes | Add new activity type -[**deleteActivityType**](ActivityTypesApi.md#deleteActivityType) | **DELETE** /activityTypes/{id} | Delete an activity type -[**deleteActivityTypes**](ActivityTypesApi.md#deleteActivityTypes) | **DELETE** /activityTypes | Delete multiple activity types in bulk -[**getActivityTypes**](ActivityTypesApi.md#getActivityTypes) | **GET** /activityTypes | Get all activity types -[**updateActivityType**](ActivityTypesApi.md#updateActivityType) | **PUT** /activityTypes/{id} | Update an activity type - - - -## addActivityType - -> ActivityTypeCreateUpdateDeleteResponse addActivityType(opts) - -Add new activity type - -Adds a new activity type. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivityTypesApi(apiClient); -let opts = Pipedrive.ActivityTypeCreateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addActivityType(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ActivityTypeCreateRequest** | [**ActivityTypeCreateRequest**](ActivityTypeCreateRequest.md)| | [optional] - -### Return type - -[**ActivityTypeCreateUpdateDeleteResponse**](ActivityTypeCreateUpdateDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteActivityType - -> ActivityTypeCreateUpdateDeleteResponse deleteActivityType(id) - -Delete an activity type - -Marks an activity type as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivityTypesApi(apiClient); -let id = 56; // Number | The ID of the activity type -apiInstance.deleteActivityType(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the activity type | - -### Return type - -[**ActivityTypeCreateUpdateDeleteResponse**](ActivityTypeCreateUpdateDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteActivityTypes - -> ActivityTypeBulkDeleteResponse deleteActivityTypes(ids) - -Delete multiple activity types in bulk - -Marks multiple activity types as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivityTypesApi(apiClient); -let ids = "ids_example"; // String | The comma-separated activity type IDs -apiInstance.deleteActivityTypes(ids).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ids** | **String**| The comma-separated activity type IDs | - -### Return type - -[**ActivityTypeBulkDeleteResponse**](ActivityTypeBulkDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getActivityTypes - -> ActivityTypeListResponse getActivityTypes() - -Get all activity types - -Returns all activity types. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivityTypesApi(apiClient); -apiInstance.getActivityTypes().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**ActivityTypeListResponse**](ActivityTypeListResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateActivityType - -> ActivityTypeCreateUpdateDeleteResponse updateActivityType(id, opts) - -Update an activity type - -Updates an activity type. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ActivityTypesApi(apiClient); -let id = 56; // Number | The ID of the activity type -let opts = Pipedrive.ActivityTypeUpdateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateActivityType(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the activity type | - **ActivityTypeUpdateRequest** | [**ActivityTypeUpdateRequest**](ActivityTypeUpdateRequest.md)| | [optional] - -### Return type - -[**ActivityTypeCreateUpdateDeleteResponse**](ActivityTypeCreateUpdateDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/AddActivityResponse.md b/docs/AddActivityResponse.md deleted file mode 100644 index c867169c..00000000 --- a/docs/AddActivityResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.AddActivityResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ActivityResponseObject**](ActivityResponseObject.md) | | [optional] -**additional_data** | [**ActivityRecordAdditionalData**](ActivityRecordAdditionalData.md) | | [optional] -**related_objects** | [**AddActivityResponseRelatedObjects**](AddActivityResponseRelatedObjects.md) | | [optional] - - diff --git a/docs/AddActivityResponse200.md b/docs/AddActivityResponse200.md deleted file mode 100644 index df8f03ca..00000000 --- a/docs/AddActivityResponse200.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.AddActivityResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ActivityResponseObject**](ActivityResponseObject.md) | | [optional] -**additional_data** | [**ActivityRecordAdditionalData**](ActivityRecordAdditionalData.md) | | [optional] -**related_objects** | [**AddActivityResponse200RelatedObjects**](AddActivityResponse200RelatedObjects.md) | | [optional] - - diff --git a/docs/AddActivityResponse200RelatedObjects.md b/docs/AddActivityResponse200RelatedObjects.md deleted file mode 100644 index 62bf61da..00000000 --- a/docs/AddActivityResponse200RelatedObjects.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.AddActivityResponse200RelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] -**deal** | [**RelatedDealData**](RelatedDealData.md) | | [optional] -**person** | [**RelatedPersonDataWithActiveFlag**](RelatedPersonDataWithActiveFlag.md) | | [optional] -**organization** | [**RelatedOrganizationDataWithActiveFlag**](RelatedOrganizationDataWithActiveFlag.md) | | [optional] - - diff --git a/docs/AddActivityResponseRelatedObjects.md b/docs/AddActivityResponseRelatedObjects.md deleted file mode 100644 index 634f1b25..00000000 --- a/docs/AddActivityResponseRelatedObjects.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.AddActivityResponseRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] -**deal** | [**RelatedDealData**](RelatedDealData.md) | | [optional] -**person** | [**RelatedPersonDataWithActiveFlag**](RelatedPersonDataWithActiveFlag.md) | | [optional] -**organization** | [**RelatedOrganizationDataWithActiveFlag**](RelatedOrganizationDataWithActiveFlag.md) | | [optional] - - diff --git a/docs/AddCallLogAudioFileRequest.md b/docs/AddCallLogAudioFileRequest.md deleted file mode 100644 index 2a1bdd8c..00000000 --- a/docs/AddCallLogAudioFileRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddCallLogAudioFileRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file** | **File** | Audio file supported by the HTML5 specification | - - diff --git a/docs/AddDealFollowerRequest.md b/docs/AddDealFollowerRequest.md deleted file mode 100644 index cc561804..00000000 --- a/docs/AddDealFollowerRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddDealFollowerRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user | - - diff --git a/docs/AddDealParticipantRequest.md b/docs/AddDealParticipantRequest.md deleted file mode 100644 index d9576c03..00000000 --- a/docs/AddDealParticipantRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddDealParticipantRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**person_id** | **Number** | The ID of the person | - - diff --git a/docs/AddFile.md b/docs/AddFile.md deleted file mode 100644 index 6ec0ca39..00000000 --- a/docs/AddFile.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.AddFile - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**FileData**](FileData.md) | | [optional] - - diff --git a/docs/AddFileAndLinkItRequest.md b/docs/AddFileAndLinkItRequest.md deleted file mode 100644 index a23fad93..00000000 --- a/docs/AddFileAndLinkItRequest.md +++ /dev/null @@ -1,52 +0,0 @@ -# Pipedrive.AddFileAndLinkItRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fileType** | **String** | The file type | -**title** | **String** | The title of the file | -**itemType** | **String** | The item type | -**itemId** | **Number** | ID of the item to associate the file with | -**remoteLocation** | **String** | The location type to send the file to. Only `googledrive` is supported at the moment. | - - - -## Enum: FileTypeEnum - - -* `gdoc` (value: `"gdoc"`) - -* `gslides` (value: `"gslides"`) - -* `gsheet` (value: `"gsheet"`) - -* `gform` (value: `"gform"`) - -* `gdraw` (value: `"gdraw"`) - - - - - -## Enum: ItemTypeEnum - - -* `deal` (value: `"deal"`) - -* `organization` (value: `"organization"`) - -* `person` (value: `"person"`) - - - - - -## Enum: RemoteLocationEnum - - -* `googledrive` (value: `"googledrive"`) - - - - diff --git a/docs/AddFileRequest.md b/docs/AddFileRequest.md deleted file mode 100644 index 864239f8..00000000 --- a/docs/AddFileRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.AddFileRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file** | **File** | A single file, supplied in the multipart/form-data encoding and contained within the given boundaries. | -**dealId** | **Number** | ID of the deal to associate file(s) with | [optional] -**personId** | **Number** | ID of the person to associate file(s) with | [optional] -**orgId** | **Number** | ID of the organization to associate file(s) with | [optional] -**productId** | **Number** | ID of the product to associate file(s) with | [optional] -**activityId** | **Number** | ID of the activity to associate file(s) with | [optional] - - diff --git a/docs/AddFilterRequest.md b/docs/AddFilterRequest.md deleted file mode 100644 index 850ab17b..00000000 --- a/docs/AddFilterRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.AddFilterRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the filter | -**conditions** | **Object** | The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter and `date` values must be supplied in the `YYYY-MM-DD` format. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application. | -**type** | [**FilterType**](FilterType.md) | The type of filter to create | - - diff --git a/docs/AddFollowerToPersonResponse.md b/docs/AddFollowerToPersonResponse.md deleted file mode 100644 index b1b7a90f..00000000 --- a/docs/AddFollowerToPersonResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.AddFollowerToPersonResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**AddFollowerToPersonResponseAllOfData**](AddFollowerToPersonResponseAllOfData.md) | | [optional] - - diff --git a/docs/AddFollowerToPersonResponseAllOf.md b/docs/AddFollowerToPersonResponseAllOf.md deleted file mode 100644 index 98fbfca8..00000000 --- a/docs/AddFollowerToPersonResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddFollowerToPersonResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**AddFollowerToPersonResponseAllOfData**](AddFollowerToPersonResponseAllOfData.md) | | [optional] - - diff --git a/docs/AddFollowerToPersonResponseAllOfData.md b/docs/AddFollowerToPersonResponseAllOfData.md deleted file mode 100644 index 76e1f7f8..00000000 --- a/docs/AddFollowerToPersonResponseAllOfData.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.AddFollowerToPersonResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user who was added as a follower to a person | [optional] -**id** | **Number** | The ID of the follower | [optional] -**person_id** | **Number** | The ID of the person to whom the follower was added | [optional] -**add_time** | **String** | The date and time when the follower was added to a person. Format: YYYY-MM-DD HH:MM:SS | [optional] - - diff --git a/docs/AddLeadLabelRequest.md b/docs/AddLeadLabelRequest.md deleted file mode 100644 index 094984ad..00000000 --- a/docs/AddLeadLabelRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.AddLeadLabelRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the lead label | -**color** | [**LeadLabelColor**](LeadLabelColor.md) | | - - diff --git a/docs/AddLeadRequest.md b/docs/AddLeadRequest.md deleted file mode 100644 index e52b07c1..00000000 --- a/docs/AddLeadRequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.AddLeadRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The name of the lead | -**owner_id** | **Number** | The ID of the user which will be the owner of the created lead. If not provided, the user making the request will be used. | [optional] -**label_ids** | **[String]** | The IDs of the lead labels which will be associated with the lead | [optional] -**person_id** | **Number** | The ID of a person which this lead will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `organization_id` is specified. | [optional] -**organization_id** | **Number** | The ID of an organization which this lead will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified. | [optional] -**value** | [**LeadValue**](LeadValue.md) | | [optional] -**expected_close_date** | **Date** | The date of when the deal which will be created from the lead is expected to be closed. In ISO 8601 format: YYYY-MM-DD. | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the lead. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] -**was_seen** | **Boolean** | A flag indicating whether the lead was seen by someone in the Pipedrive UI | [optional] -**origin_id** | **String** | The optional ID to further distinguish the origin of the lead - e.g. Which API integration created this lead. If omitted, `origin_id` will be set to null. | [optional] -**channel** | **Number** | The ID of Marketing channel this lead was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>. If omitted, channel will be set to null. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null. | [optional] - - diff --git a/docs/AddNewPipeline.md b/docs/AddNewPipeline.md deleted file mode 100644 index 2fc7d959..00000000 --- a/docs/AddNewPipeline.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.AddNewPipeline - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BasePipeline**](.md) | | [optional] - - diff --git a/docs/AddNewPipelineAllOf.md b/docs/AddNewPipelineAllOf.md deleted file mode 100644 index fd5c0933..00000000 --- a/docs/AddNewPipelineAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddNewPipelineAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BasePipeline**](.md) | | [optional] - - diff --git a/docs/AddNoteRequest.md b/docs/AddNoteRequest.md deleted file mode 100644 index 39bd99a8..00000000 --- a/docs/AddNoteRequest.md +++ /dev/null @@ -1,19 +0,0 @@ -# Pipedrive.AddNoteRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **String** | The content of the note in HTML format. Subject to sanitization on the back-end. | -**lead_id** | **String** | The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id`) is specified. | [optional] -**deal_id** | **Number** | The ID of the deal the note will be attached to. This property is required unless one of (`lead_id/person_id/org_id`) is specified. | [optional] -**person_id** | **Number** | The ID of the person this note will be attached to. This property is required unless one of (`deal_id/lead_id/org_id`) is specified. | [optional] -**org_id** | **Number** | The ID of the organization this note will be attached to. This property is required unless one of (`deal_id/lead_id/person_id`) is specified. | [optional] -**user_id** | **Number** | The ID of the user who will be marked as the author of the note. Only an admin can change the author. | [optional] -**add_time** | **String** | The optional creation date & time of the note in UTC. Can be set in the past or in the future. Format: YYYY-MM-DD HH:MM:SS | [optional] -**pinned_to_lead_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to lead pinning state (`lead_id` is also required) | [optional] -**pinned_to_deal_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to deal pinning state (`deal_id` is also required) | [optional] -**pinned_to_organization_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to organization pinning state (`org_id` is also required) | [optional] -**pinned_to_person_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to person pinning state (`person_id` is also required) | [optional] - - diff --git a/docs/AddNoteRequestAllOf.md b/docs/AddNoteRequestAllOf.md deleted file mode 100644 index e3f36a64..00000000 --- a/docs/AddNoteRequestAllOf.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.AddNoteRequestAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **String** | The content of the note in HTML format. Subject to sanitization on the back-end. | -**lead_id** | **String** | The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id`) is specified. | [optional] -**deal_id** | **Number** | The ID of the deal the note will be attached to. This property is required unless one of (`lead_id/person_id/org_id`) is specified. | [optional] -**person_id** | **Number** | The ID of the person this note will be attached to. This property is required unless one of (`deal_id/lead_id/org_id`) is specified. | [optional] -**org_id** | **Number** | The ID of the organization this note will be attached to. This property is required unless one of (`deal_id/lead_id/person_id`) is specified. | [optional] - - diff --git a/docs/AddOrUpdateGoalResponse200.md b/docs/AddOrUpdateGoalResponse200.md deleted file mode 100644 index ea198dee..00000000 --- a/docs/AddOrUpdateGoalResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.AddOrUpdateGoalResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**PostGoalResponse**](PostGoalResponse.md) | | [optional] - - diff --git a/docs/AddOrUpdateLeadLabelResponse200.md b/docs/AddOrUpdateLeadLabelResponse200.md deleted file mode 100644 index 37478218..00000000 --- a/docs/AddOrUpdateLeadLabelResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.AddOrUpdateLeadLabelResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**LeadLabelResponse**](LeadLabelResponse.md) | | [optional] - - diff --git a/docs/AddOrUpdateRoleSettingRequest.md b/docs/AddOrUpdateRoleSettingRequest.md deleted file mode 100644 index 08bbdf99..00000000 --- a/docs/AddOrUpdateRoleSettingRequest.md +++ /dev/null @@ -1,42 +0,0 @@ -# Pipedrive.AddOrUpdateRoleSettingRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**setting_key** | **String** | | -**value** | **Number** | Possible values for the `default_visibility` setting depending on the subscription plan:<br> <table class='role-setting'> <caption><b>Essential / Advanced plan</b></caption> <tr><th><b>Value</b></th><th><b>Description</b></th></tr> <tr><td>`1`</td><td>Owner & Followers</td></tr> <tr><td>`3`</td><td>Entire company</td></tr> </table> <br> <table class='role-setting'> <caption><b>Professional / Enterprise plan</b></caption> <tr><th><b>Value</b></th><th><b>Description</b></th></tr> <tr><td>`1`</td><td>Owner only</td></tr> <tr><td>`3`</td><td>Owner&#39;s visibility group</td></tr> <tr><td>`5`</td><td>Owner&#39;s visibility group and sub-groups</td></tr> <tr><td>`7`</td><td>Entire company</td></tr> </table> <br> Read more about visibility groups <a href='https://support.pipedrive.com/en/article/visibility-groups'>here</a>. | - - - -## Enum: SettingKeyEnum - - -* `deal_default_visibility` (value: `"deal_default_visibility"`) - -* `lead_default_visibility` (value: `"lead_default_visibility"`) - -* `org_default_visibility` (value: `"org_default_visibility"`) - -* `person_default_visibility` (value: `"person_default_visibility"`) - -* `product_default_visibility` (value: `"product_default_visibility"`) - - - - - -## Enum: ValueEnum - - -* `1` (value: `1`) - -* `3` (value: `3`) - -* `5` (value: `5`) - -* `7` (value: `7`) - - - - diff --git a/docs/AddOrganizationFollowerRequest.md b/docs/AddOrganizationFollowerRequest.md deleted file mode 100644 index 350d41e2..00000000 --- a/docs/AddOrganizationFollowerRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddOrganizationFollowerRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user | - - diff --git a/docs/AddOrganizationRelationshipRequest.md b/docs/AddOrganizationRelationshipRequest.md deleted file mode 100644 index 6dac3e34..00000000 --- a/docs/AddOrganizationRelationshipRequest.md +++ /dev/null @@ -1,23 +0,0 @@ -# Pipedrive.AddOrganizationRelationshipRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**org_id** | **Number** | The ID of the base organization for the returned calculated values | [optional] -**type** | **String** | The type of organization relationship | -**rel_owner_org_id** | **Number** | The owner of the relationship. If type is `parent`, then the owner is the parent and the linked organization is the daughter. | -**rel_linked_org_id** | **Number** | The linked organization in the relationship. If type is `parent`, then the linked organization is the daughter. | - - - -## Enum: TypeEnum - - -* `parent` (value: `"parent"`) - -* `related` (value: `"related"`) - - - - diff --git a/docs/AddPersonFollowerRequest.md b/docs/AddPersonFollowerRequest.md deleted file mode 100644 index 88070104..00000000 --- a/docs/AddPersonFollowerRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddPersonFollowerRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user | - - diff --git a/docs/AddPersonPictureRequest.md b/docs/AddPersonPictureRequest.md deleted file mode 100644 index 58ed85bb..00000000 --- a/docs/AddPersonPictureRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.AddPersonPictureRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file** | **File** | One image supplied in the multipart/form-data encoding. | -**cropX** | **Number** | X coordinate to where start cropping form (in pixels) | [optional] -**cropY** | **Number** | Y coordinate to where start cropping form (in pixels) | [optional] -**cropWidth** | **Number** | Width of cropping area (in pixels) | [optional] -**cropHeight** | **Number** | Height of cropping area (in pixels) | [optional] - - diff --git a/docs/AddPersonPictureResponse.md b/docs/AddPersonPictureResponse.md deleted file mode 100644 index 99945421..00000000 --- a/docs/AddPersonPictureResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.AddPersonPictureResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**RelatedPictureData**](RelatedPictureData.md) | | [optional] - - diff --git a/docs/AddPersonPictureResponseAllOf.md b/docs/AddPersonPictureResponseAllOf.md deleted file mode 100644 index 9ac4f00b..00000000 --- a/docs/AddPersonPictureResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddPersonPictureResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**RelatedPictureData**](RelatedPictureData.md) | | [optional] - - diff --git a/docs/AddPersonResponse.md b/docs/AddPersonResponse.md deleted file mode 100644 index fe0ddf50..00000000 --- a/docs/AddPersonResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.AddPersonResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**PersonItem**](PersonItem.md) | | [optional] -**related_objects** | [**ListProductsResponseAllOfRelatedObjects**](ListProductsResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/AddPersonResponseAllOf.md b/docs/AddPersonResponseAllOf.md deleted file mode 100644 index e9628ee0..00000000 --- a/docs/AddPersonResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.AddPersonResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PersonItem**](PersonItem.md) | | [optional] -**related_objects** | [**ListProductsResponseAllOfRelatedObjects**](ListProductsResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/AddPersonResponseAllOfRelatedObjects.md b/docs/AddPersonResponseAllOfRelatedObjects.md deleted file mode 100644 index dd156699..00000000 --- a/docs/AddPersonResponseAllOfRelatedObjects.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddPersonResponseAllOfRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] - - diff --git a/docs/AddProductAttachmentDetails.md b/docs/AddProductAttachmentDetails.md deleted file mode 100644 index b1789f8f..00000000 --- a/docs/AddProductAttachmentDetails.md +++ /dev/null @@ -1,55 +0,0 @@ -# Pipedrive.AddProductAttachmentDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_id** | **Number** | The ID of the product | [optional] -**item_price** | **Number** | The price at which this product will be added to the deal | [optional] -**quantity** | **Number** | Quantity – e.g. how many items of this product will be added to the deal | [optional] -**discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] -**discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] -**comments** | **String** | A textual comment associated with this product-deal attachment | [optional] -**tax** | **Number** | The product tax | [optional] -**tax_method** | **String** | The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal | [optional] -**enabled_flag** | **Boolean** | Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default | [optional] [default to true] -**billing_frequency** | [**BillingFrequency**](BillingFrequency.md) | | [optional] -**billing_frequency_cycles** | **Number** | Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 | [optional] -**billing_start_date** | **String** | Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future | [optional] -**id** | **Number** | The ID of the deal-product (the ID of the product attached to the deal) | [optional] -**company_id** | **Number** | The ID of the company | [optional] -**deal_id** | **Number** | The ID of the deal | [optional] -**sum** | **Number** | The sum of all the products attached to the deal | [optional] -**currency** | **String** | The currency associated with the deal product | [optional] -**add_time** | **String** | The date and time when the product was added to the deal | [optional] -**last_edit** | **String** | The date and time when the deal product was last edited | [optional] -**active_flag** | **Boolean** | Whether the product is active or not | [optional] -**name** | **String** | The product name | [optional] -**product_attachment_id** | **Number** | The ID of the deal-product (the ID of the product attached to the deal) | [optional] - - - -## Enum: DiscountTypeEnum - - -* `percentage` (value: `"percentage"`) - -* `amount` (value: `"amount"`) - - - - - -## Enum: TaxMethodEnum - - -* `exclusive` (value: `"exclusive"`) - -* `inclusive` (value: `"inclusive"`) - -* `none` (value: `"none"`) - - - - diff --git a/docs/AddProductAttachmentDetailsAllOf.md b/docs/AddProductAttachmentDetailsAllOf.md deleted file mode 100644 index 5e0b50d8..00000000 --- a/docs/AddProductAttachmentDetailsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddProductAttachmentDetailsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_attachment_id** | **Number** | The ID of the deal-product (the ID of the product attached to the deal) | [optional] - - diff --git a/docs/AddProductFollowerRequest.md b/docs/AddProductFollowerRequest.md deleted file mode 100644 index 907e362e..00000000 --- a/docs/AddProductFollowerRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddProductFollowerRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user | - - diff --git a/docs/AddProductRequestBody.md b/docs/AddProductRequestBody.md deleted file mode 100644 index 69353eec..00000000 --- a/docs/AddProductRequestBody.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.AddProductRequestBody - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the product | [optional] -**code** | **String** | The product code | [optional] -**description** | **String** | The product description | [optional] -**unit** | **String** | The unit in which this product is sold | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**active_flag** | **Boolean** | Whether this product will be made active or not | [optional] [default to true] -**selectable** | **Boolean** | Whether this product can be selected in deals or not | [optional] [default to true] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] -**owner_id** | **Number** | The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used | [optional] -**prices** | **[Object]** | An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned. | [optional] -**billing_frequency** | [**BillingFrequency1**](BillingFrequency1.md) | | [optional] -**billing_frequency_cycles** | **Number** | Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 | [optional] - - diff --git a/docs/AddProductRequestBodyAllOf.md b/docs/AddProductRequestBodyAllOf.md deleted file mode 100644 index 2ce33c97..00000000 --- a/docs/AddProductRequestBodyAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddProductRequestBodyAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**billing_frequency** | [**BillingFrequency1**](BillingFrequency1.md) | | [optional] - - diff --git a/docs/AddProjectResponse.md b/docs/AddProjectResponse.md deleted file mode 100644 index 80280d1c..00000000 --- a/docs/AddProjectResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.AddProjectResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectResponseObject**](ProjectResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/AddProjectResponse201.md b/docs/AddProjectResponse201.md deleted file mode 100644 index b7635905..00000000 --- a/docs/AddProjectResponse201.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.AddProjectResponse201 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectResponseObject**](ProjectResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/AddRole.md b/docs/AddRole.md deleted file mode 100644 index f47b7c12..00000000 --- a/docs/AddRole.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.AddRole - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the role | -**parent_role_id** | **Number** | The ID of the parent role | [optional] - - diff --git a/docs/AddRoleAssignmentRequest.md b/docs/AddRoleAssignmentRequest.md deleted file mode 100644 index 333fbc07..00000000 --- a/docs/AddRoleAssignmentRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddRoleAssignmentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user | - - diff --git a/docs/AddTaskResponse.md b/docs/AddTaskResponse.md deleted file mode 100644 index bdc87b4a..00000000 --- a/docs/AddTaskResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.AddTaskResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**TaskResponseObject**](TaskResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/AddTaskResponse201.md b/docs/AddTaskResponse201.md deleted file mode 100644 index 964666a0..00000000 --- a/docs/AddTaskResponse201.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.AddTaskResponse201 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**TaskResponseObject**](TaskResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/AddTeamUserRequest.md b/docs/AddTeamUserRequest.md deleted file mode 100644 index 59124270..00000000 --- a/docs/AddTeamUserRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddTeamUserRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**users** | **[Number]** | The list of user IDs | - - diff --git a/docs/AddUserBlacklistedEmailRequest.md b/docs/AddUserBlacklistedEmailRequest.md deleted file mode 100644 index 585960aa..00000000 --- a/docs/AddUserBlacklistedEmailRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddUserBlacklistedEmailRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **String** | Email address to blacklist (can contain \\\\* for wildcards, e.g. \\\\*@example.com, or john\\\\*@ex\\\\*.com) | - - diff --git a/docs/AddUserRequest.md b/docs/AddUserRequest.md deleted file mode 100644 index 5f4e46db..00000000 --- a/docs/AddUserRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.AddUserRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **String** | The email of the user | -**access** | [**[UserAccess]**](UserAccess.md) | The access given to the user. Each item in the array represents access to a specific app. Optionally may include either admin flag or permission set ID to specify which access to give within the app. If both are omitted, the default access for the corresponding app will be used. It requires structure as follows: `[{ app: 'sales', permission_set_id: '62cc4d7f-4038-4352-abf3-a8c1c822b631' }, { app: 'global', admin: true }, { app: 'account_settings' }]` | [optional] -**active_flag** | **Boolean** | Whether the user is active or not. `false` = Not activated, `true` = Activated | [optional] [default to true] - - diff --git a/docs/AddUserRoleAssignmentRequest.md b/docs/AddUserRoleAssignmentRequest.md deleted file mode 100644 index 0efa0296..00000000 --- a/docs/AddUserRoleAssignmentRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AddUserRoleAssignmentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**roleId** | **Number** | ID of the role | - - diff --git a/docs/AddWebhookRequest.md b/docs/AddWebhookRequest.md deleted file mode 100644 index 66f130f4..00000000 --- a/docs/AddWebhookRequest.md +++ /dev/null @@ -1,72 +0,0 @@ -# Pipedrive.AddWebhookRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subscription_url** | **String** | A full, valid, publicly accessible URL which determines where to send the notifications. Please note that you cannot use Pipedrive API endpoints as the `subscription_url` and the chosen URL must not redirect to another link. | -**event_action** | **String** | The type of action to receive notifications about. Wildcard will match all supported actions. | -**event_object** | **String** | The type of object to receive notifications about. Wildcard will match all supported objects. | -**user_id** | **Number** | The ID of the user that this webhook will be authorized with. You have the option to use a different user's `user_id`. If it is not set, the current user's `user_id` will be used. As each webhook event is checked against a user's permissions, the webhook will only be sent if the user has access to the specified object(s). If you want to receive notifications for all events, please use a top-level admin user’s `user_id`. | [optional] -**http_auth_user** | **String** | The HTTP basic auth username of the subscription URL endpoint (if required) | [optional] -**http_auth_password** | **String** | The HTTP basic auth password of the subscription URL endpoint (if required) | [optional] -**version** | **String** | The webhook's version | [optional] [default to '1.0'] - - - -## Enum: EventActionEnum - - -* `added` (value: `"added"`) - -* `updated` (value: `"updated"`) - -* `merged` (value: `"merged"`) - -* `deleted` (value: `"deleted"`) - -* `STAR` (value: `"*"`) - - - - - -## Enum: EventObjectEnum - - -* `activity` (value: `"activity"`) - -* `activityType` (value: `"activityType"`) - -* `deal` (value: `"deal"`) - -* `note` (value: `"note"`) - -* `organization` (value: `"organization"`) - -* `person` (value: `"person"`) - -* `pipeline` (value: `"pipeline"`) - -* `product` (value: `"product"`) - -* `stage` (value: `"stage"`) - -* `user` (value: `"user"`) - -* `STAR` (value: `"*"`) - - - - - -## Enum: VersionEnum - - -* `1.0` (value: `"1.0"`) - -* `2.0` (value: `"2.0"`) - - - - diff --git a/docs/AddedDealFollower.md b/docs/AddedDealFollower.md deleted file mode 100644 index 22f5df77..00000000 --- a/docs/AddedDealFollower.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.AddedDealFollower - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**AddedDealFollowerData**](AddedDealFollowerData.md) | | [optional] - - diff --git a/docs/AddedDealFollowerData.md b/docs/AddedDealFollowerData.md deleted file mode 100644 index 64c9b8d6..00000000 --- a/docs/AddedDealFollowerData.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.AddedDealFollowerData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The user ID who added the follower | [optional] -**id** | **Number** | The follower ID | [optional] -**deal_id** | **Number** | The ID of the deal which the follower was added to | [optional] -**add_time** | **String** | The date and time when the deal follower was added | [optional] - - diff --git a/docs/AdditionalBaseOrganizationItemInfo.md b/docs/AdditionalBaseOrganizationItemInfo.md deleted file mode 100644 index eb7df2da..00000000 --- a/docs/AdditionalBaseOrganizationItemInfo.md +++ /dev/null @@ -1,40 +0,0 @@ -# Pipedrive.AdditionalBaseOrganizationItemInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_messages_count** | **Number** | The count of email messages related to the organization | [optional] -**people_count** | **Number** | The count of persons related to the organization | [optional] -**activities_count** | **Number** | The count of activities related to the organization | [optional] -**done_activities_count** | **Number** | The count of done activities related to the organization | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the organization | [optional] -**files_count** | **Number** | The count of files related to the organization | [optional] -**notes_count** | **Number** | The count of notes related to the organization | [optional] -**followers_count** | **Number** | The count of followers related to the organization | [optional] -**address** | **String** | The full address of the organization | [optional] -**address_subpremise** | **String** | The sub-premise of the organization location | [optional] -**address_street_number** | **String** | The street number of the organization location | [optional] -**address_route** | **String** | The route of the organization location | [optional] -**address_sublocality** | **String** | The sub-locality of the organization location | [optional] -**address_locality** | **String** | The locality of the organization location | [optional] -**address_admin_area_level_1** | **String** | The level 1 admin area of the organization location | [optional] -**address_admin_area_level_2** | **String** | The level 2 admin area of the organization location | [optional] -**address_country** | **String** | The country of the organization location | [optional] -**address_postal_code** | **String** | The postal code of the organization location | [optional] -**address_formatted_address** | **String** | The formatted organization location | [optional] -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] - - diff --git a/docs/AdditionalData.md b/docs/AdditionalData.md deleted file mode 100644 index c593abf9..00000000 --- a/docs/AdditionalData.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.AdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start** | **Number** | Pagination start | [optional] -**limit** | **Number** | Items shown per page | [optional] -**more_items_in_collection** | **Boolean** | If there are more list items in the collection than displayed or not | [optional] - - diff --git a/docs/AdditionalDataWithCursorPagination.md b/docs/AdditionalDataWithCursorPagination.md deleted file mode 100644 index 7d32fa08..00000000 --- a/docs/AdditionalDataWithCursorPagination.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AdditionalDataWithCursorPagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_cursor** | **String** | The first item on the next page. The value of the `next_cursor` field will be `null` if you have reached the end of the dataset and there’s no more pages to be returned. | [optional] - - diff --git a/docs/AdditionalDataWithOffsetPagination.md b/docs/AdditionalDataWithOffsetPagination.md deleted file mode 100644 index ac842242..00000000 --- a/docs/AdditionalDataWithOffsetPagination.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AdditionalDataWithOffsetPagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**AdditionalData**](AdditionalData.md) | The pagination details of the list | [optional] - - diff --git a/docs/AdditionalDataWithPagination.md b/docs/AdditionalDataWithPagination.md deleted file mode 100644 index 36c2c2a0..00000000 --- a/docs/AdditionalDataWithPagination.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AdditionalDataWithPagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**AdditionalData**](AdditionalData.md) | The pagination details of the list | [optional] - - diff --git a/docs/AdditionalDataWithPaginationDetails.md b/docs/AdditionalDataWithPaginationDetails.md deleted file mode 100644 index 2a6c7d78..00000000 --- a/docs/AdditionalDataWithPaginationDetails.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AdditionalDataWithPaginationDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**PaginationDetails**](PaginationDetails.md) | | [optional] - - diff --git a/docs/AdditionalMergePersonInfo.md b/docs/AdditionalMergePersonInfo.md deleted file mode 100644 index cd950feb..00000000 --- a/docs/AdditionalMergePersonInfo.md +++ /dev/null @@ -1,38 +0,0 @@ -# Pipedrive.AdditionalMergePersonInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**owner_id** | **Number** | The ID of the owner related to the person | [optional] -**org_id** | **Number** | The ID of the organization related to the person | [optional] -**merge_what_id** | **Number** | The ID of the person with what the main person was merged | [optional] -**name** | **String** | The name of the person | [optional] -**first_name** | **String** | The first name of the person | [optional] -**last_name** | **String** | The last name of the person | [optional] -**email_messages_count** | **Number** | The count of email messages related to the person | [optional] -**activities_count** | **Number** | The count of activities related to the person | [optional] -**done_activities_count** | **Number** | The count of done activities related to the person | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the person | [optional] -**files_count** | **Number** | The count of files related to the person | [optional] -**notes_count** | **Number** | The count of notes related to the person | [optional] -**followers_count** | **Number** | The count of followers related to the person | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the person | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the person | [optional] -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] -**participant_open_deals_count** | **Number** | The count of open participant deals related with the item | [optional] -**participant_closed_deals_count** | **Number** | The count of closed participant deals related with the item | [optional] - - diff --git a/docs/AdditionalPersonInfo.md b/docs/AdditionalPersonInfo.md deleted file mode 100644 index 03402a1b..00000000 --- a/docs/AdditionalPersonInfo.md +++ /dev/null @@ -1,35 +0,0 @@ -# Pipedrive.AdditionalPersonInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**owner_id** | [**Owner**](Owner.md) | | [optional] -**org_id** | [**RelationshipOrganizationInfoItemWithActiveFlag**](RelationshipOrganizationInfoItemWithActiveFlag.md) | | [optional] -**name** | **String** | The name of the person | [optional] -**first_name** | **String** | The first name of the person | [optional] -**last_name** | **String** | The last name of the person | [optional] -**email_messages_count** | **Number** | The count of email messages related to the person | [optional] -**activities_count** | **Number** | The count of activities related to the person | [optional] -**done_activities_count** | **Number** | The count of done activities related to the person | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the person | [optional] -**files_count** | **Number** | The count of files related to the person | [optional] -**notes_count** | **Number** | The count of notes related to the person | [optional] -**followers_count** | **Number** | The count of followers related to the person | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the person | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the person | [optional] -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] - - diff --git a/docs/AllOrganizationRelationshipsGetResponse.md b/docs/AllOrganizationRelationshipsGetResponse.md deleted file mode 100644 index b0555123..00000000 --- a/docs/AllOrganizationRelationshipsGetResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.AllOrganizationRelationshipsGetResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[OrganizationRelationshipDetails]**](OrganizationRelationshipDetails.md) | The array of organization relationships | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**AllOrganizationRelationshipsGetResponseAllOfRelatedObjects**](AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/AllOrganizationRelationshipsGetResponseAllOf.md b/docs/AllOrganizationRelationshipsGetResponseAllOf.md deleted file mode 100644 index f49607cc..00000000 --- a/docs/AllOrganizationRelationshipsGetResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.AllOrganizationRelationshipsGetResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[OrganizationRelationshipDetails]**](OrganizationRelationshipDetails.md) | The array of organization relationships | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**AllOrganizationRelationshipsGetResponseAllOfRelatedObjects**](AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.md b/docs/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.md deleted file mode 100644 index d8116d2c..00000000 --- a/docs/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.AllOrganizationRelationshipsGetResponseAllOfRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization** | [**RelatedOrganizationData**](RelatedOrganizationData.md) | | [optional] - - diff --git a/docs/AllOrganizationsGetResponse.md b/docs/AllOrganizationsGetResponse.md deleted file mode 100644 index 018dc415..00000000 --- a/docs/AllOrganizationsGetResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.AllOrganizationsGetResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[BaseOrganizationItem]**](BaseOrganizationItem.md) | The array of organizations | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/AllOrganizationsGetResponseAllOf.md b/docs/AllOrganizationsGetResponseAllOf.md deleted file mode 100644 index 7a0d96ab..00000000 --- a/docs/AllOrganizationsGetResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.AllOrganizationsGetResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[BaseOrganizationItem]**](BaseOrganizationItem.md) | The array of organizations | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/AllOrganizationsGetResponseAllOfRelatedObjects.md b/docs/AllOrganizationsGetResponseAllOfRelatedObjects.md deleted file mode 100644 index 56ebb934..00000000 --- a/docs/AllOrganizationsGetResponseAllOfRelatedObjects.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.AllOrganizationsGetResponseAllOfRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization** | [**RelatedOrganizationData**](RelatedOrganizationData.md) | | [optional] -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] -**picture** | [**RelatedPictureData**](RelatedPictureData.md) | | [optional] - - diff --git a/docs/ArrayPrices.md b/docs/ArrayPrices.md deleted file mode 100644 index 1bbe3d59..00000000 --- a/docs/ArrayPrices.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ArrayPrices - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**prices** | **[Object]** | Array of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) | [optional] - - diff --git a/docs/Assignee.md b/docs/Assignee.md deleted file mode 100644 index 5cd3d829..00000000 --- a/docs/Assignee.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.Assignee - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the goal assignee | [optional] -**type** | **String** | The type of the assignee | [optional] - - diff --git a/docs/BaseComment.md b/docs/BaseComment.md deleted file mode 100644 index 1ed0470d..00000000 --- a/docs/BaseComment.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.BaseComment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uuid** | **String** | The ID of the note | [optional] -**active_flag** | **Boolean** | Whether the note is active or deleted | [optional] -**add_time** | **String** | The creation date and time of the note | [optional] -**update_time** | **String** | The creation date and time of the note | [optional] -**content** | **String** | The content of the note in HTML format. Subject to sanitization on the back-end. | [optional] -**object_id** | **String** | The ID of the object that the comment is attached to, will be the id of the note | [optional] -**object_type** | **String** | The type of object that the comment is attached to, will be \"note\" | [optional] -**user_id** | **Number** | The ID of the user who created the comment | [optional] -**updater_id** | **Number** | The ID of the user who last updated the comment | [optional] -**company_id** | **Number** | The ID of the company | [optional] - - diff --git a/docs/BaseCurrency.md b/docs/BaseCurrency.md deleted file mode 100644 index 39cac780..00000000 --- a/docs/BaseCurrency.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.BaseCurrency - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the currency | [optional] -**code** | **String** | The code of the currency | [optional] -**name** | **String** | The name of the currency | [optional] -**decimal_points** | **Number** | The amount of decimal points of the currency | [optional] -**symbol** | **String** | The symbol of the currency | [optional] -**active_flag** | **Boolean** | Whether the currency is active or not | [optional] -**is_custom_flag** | **Boolean** | Whether the currency is a custom one or not | [optional] - - diff --git a/docs/BaseDeal.md b/docs/BaseDeal.md deleted file mode 100644 index 990f5648..00000000 --- a/docs/BaseDeal.md +++ /dev/null @@ -1,70 +0,0 @@ -# Pipedrive.BaseDeal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stage_id** | **Number** | The ID of the deal stage | [optional] -**title** | **String** | The title of the deal | [optional] -**value** | **Number** | The value of the deal | [optional] -**currency** | **String** | The currency associated with the deal | [optional] -**add_time** | **String** | The creation date and time of the deal | [optional] -**update_time** | **String** | The last updated date and time of the deal | [optional] -**stage_change_time** | **String** | The last updated date and time of the deal stage | [optional] -**active** | **Boolean** | Whether the deal is active or not | [optional] -**deleted** | **Boolean** | Whether the deal is deleted or not | [optional] -**status** | **String** | The status of the deal | [optional] -**probability** | **Number** | The success probability percentage of the deal | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] -**lost_reason** | **String** | The reason for losing the deal | [optional] -**visible_to** | **String** | The visibility of the deal | [optional] -**close_time** | **String** | The date and time of closing the deal | [optional] -**pipeline_id** | **Number** | The ID of the pipeline associated with the deal | [optional] -**won_time** | **String** | The date and time of changing the deal status as won | [optional] -**first_won_time** | **String** | The date and time of the first time changing the deal status as won | [optional] -**lost_time** | **String** | The date and time of changing the deal status as lost | [optional] -**products_count** | **Number** | The number of products associated with the deal | [optional] -**files_count** | **Number** | The number of files associated with the deal | [optional] -**notes_count** | **Number** | The number of notes associated with the deal | [optional] -**followers_count** | **Number** | The number of followers associated with the deal | [optional] -**email_messages_count** | **Number** | The number of emails associated with the deal | [optional] -**activities_count** | **Number** | The number of activities associated with the deal | [optional] -**done_activities_count** | **Number** | The number of completed activities associated with the deal | [optional] -**undone_activities_count** | **Number** | The number of incomplete activities associated with the deal | [optional] -**participants_count** | **Number** | The number of participants associated with the deal | [optional] -**expected_close_date** | **Date** | The expected close date of the deal | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the deal | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the deal | [optional] -**label** | **String** | The label or multiple labels assigned to the deal | [optional] -**stage_order_nr** | **Number** | The order number of the deal stage associated with the deal | [optional] -**person_name** | **String** | The name of the person associated with the deal | [optional] -**org_name** | **String** | The name of the organization associated with the deal | [optional] -**next_activity_subject** | **String** | The subject of the next activity associated with the deal | [optional] -**next_activity_type** | **String** | The type of the next activity associated with the deal | [optional] -**next_activity_duration** | **String** | The duration of the next activity associated with the deal | [optional] -**next_activity_note** | **String** | The note of the next activity associated with the deal | [optional] -**formatted_value** | **String** | The deal value formatted with selected currency. E.g. US$500 | [optional] -**weighted_value** | **Number** | Probability times deal value. Probability can either be deal probability or if not set, then stage probability. | [optional] -**formatted_weighted_value** | **String** | The weighted_value formatted with selected currency. E.g. US$500 | [optional] -**weighted_value_currency** | **String** | The currency associated with the deal | [optional] -**rotten_time** | **String** | The date and time of changing the deal status as rotten | [optional] -**owner_name** | **String** | The name of the deal owner | [optional] -**cc_email** | **String** | The BCC email of the deal | [optional] -**org_hidden** | **Boolean** | If the organization that is associated with the deal is hidden or not | [optional] -**person_hidden** | **Boolean** | If the person that is associated with the deal is hidden or not | [optional] -**origin** | **String** | The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. | [optional] -**origin_id** | **String** | The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. | [optional] -**channel** | **Number** | The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. | [optional] -**arr** | **Number** | Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal | [optional] -**mrr** | **Number** | Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal | [optional] -**acv** | **Number** | Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal | [optional] -**arr_currency** | **String** | Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null | [optional] -**mrr_currency** | **String** | Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null | [optional] -**acv_currency** | **String** | Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null | [optional] - - diff --git a/docs/BaseFollowerItem.md b/docs/BaseFollowerItem.md deleted file mode 100644 index 56d9e4f2..00000000 --- a/docs/BaseFollowerItem.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.BaseFollowerItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The user ID of the follower related to the item | [optional] -**id** | **Number** | The ID of the follower | [optional] -**add_time** | **Date** | The date and time of adding the follower to the item | [optional] - - diff --git a/docs/BaseMailThread.md b/docs/BaseMailThread.md deleted file mode 100644 index 4d6749ea..00000000 --- a/docs/BaseMailThread.md +++ /dev/null @@ -1,45 +0,0 @@ -# Pipedrive.BaseMailThread - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | ID of the mail thread | [optional] -**account_id** | **String** | The connection account ID | [optional] -**user_id** | **Number** | ID of the user whom mail message will be assigned to | [optional] -**subject** | **String** | The subject | [optional] -**snippet** | **String** | A snippet | [optional] -**read_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is read | [optional] -**mail_tracking_status** | **String** | Mail tracking status | [optional] -**has_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has an attachment | [optional] -**has_inline_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has inline attachments | [optional] -**has_real_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has real attachments (which are not inline) | [optional] -**deleted_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is deleted | [optional] -**synced_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is synced | [optional] -**smart_bcc_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether one of the parties of the mail thread is Bcc | [optional] -**mail_link_tracking_enabled_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the link tracking of the mail thread is enabled | [optional] -**parties** | [**BaseMailThreadAllOfParties**](BaseMailThreadAllOfParties.md) | | [optional] -**drafts_parties** | **[Object]** | Parties of the drafted mail thread | [optional] -**folders** | **[String]** | Folders in which messages from thread are being stored | [optional] -**version** | **Number** | Version | [optional] -**snippet_draft** | **String** | A snippet from a draft | [optional] -**snippet_sent** | **String** | A snippet from a message sent | [optional] -**message_count** | **Number** | An amount of messages | [optional] -**has_draft_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has any drafts | [optional] -**has_sent_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has messages sent | [optional] -**archived_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is archived | [optional] -**shared_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is shared | [optional] -**external_deleted_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has been deleted externally | [optional] -**first_message_to_me_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread was initialized by others | [optional] -**last_message_timestamp** | **Date** | Last message timestamp | [optional] -**first_message_timestamp** | **Date** | The time when the mail thread has had the first message received or created | [optional] -**last_message_sent_timestamp** | **Date** | The last time when the mail thread has had a message sent | [optional] -**last_message_received_timestamp** | **Date** | The last time when the mail thread has had a message received | [optional] -**add_time** | **Date** | The time when the mail thread was inserted to database | [optional] -**update_time** | **Date** | The time when the mail thread was updated in database received | [optional] -**deal_id** | **Number** | The ID of the deal | [optional] -**deal_status** | **String** | Status of the deal | [optional] -**lead_id** | **String** | The ID of the lead | [optional] -**all_messages_sent_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether all the mail thread messages have been sent | [optional] - - diff --git a/docs/BaseMailThreadAllOf.md b/docs/BaseMailThreadAllOf.md deleted file mode 100644 index 99cf984e..00000000 --- a/docs/BaseMailThreadAllOf.md +++ /dev/null @@ -1,31 +0,0 @@ -# Pipedrive.BaseMailThreadAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**parties** | [**BaseMailThreadAllOfParties**](BaseMailThreadAllOfParties.md) | | [optional] -**drafts_parties** | **[Object]** | Parties of the drafted mail thread | [optional] -**folders** | **[String]** | Folders in which messages from thread are being stored | [optional] -**version** | **Number** | Version | [optional] -**snippet_draft** | **String** | A snippet from a draft | [optional] -**snippet_sent** | **String** | A snippet from a message sent | [optional] -**message_count** | **Number** | An amount of messages | [optional] -**has_draft_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has any drafts | [optional] -**has_sent_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has messages sent | [optional] -**archived_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is archived | [optional] -**shared_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is shared | [optional] -**external_deleted_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has been deleted externally | [optional] -**first_message_to_me_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread was initialized by others | [optional] -**last_message_timestamp** | **Date** | Last message timestamp | [optional] -**first_message_timestamp** | **Date** | The time when the mail thread has had the first message received or created | [optional] -**last_message_sent_timestamp** | **Date** | The last time when the mail thread has had a message sent | [optional] -**last_message_received_timestamp** | **Date** | The last time when the mail thread has had a message received | [optional] -**add_time** | **Date** | The time when the mail thread was inserted to database | [optional] -**update_time** | **Date** | The time when the mail thread was updated in database received | [optional] -**deal_id** | **Number** | The ID of the deal | [optional] -**deal_status** | **String** | Status of the deal | [optional] -**lead_id** | **String** | The ID of the lead | [optional] -**all_messages_sent_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether all the mail thread messages have been sent | [optional] - - diff --git a/docs/BaseMailThreadAllOfParties.md b/docs/BaseMailThreadAllOfParties.md deleted file mode 100644 index 92e65e86..00000000 --- a/docs/BaseMailThreadAllOfParties.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.BaseMailThreadAllOfParties - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**to** | [**[MailThreadParticipant]**](MailThreadParticipant.md) | Recipients of the mail thread | [optional] -**from** | [**[MailThreadParticipant]**](MailThreadParticipant.md) | Senders of the mail thread | [optional] - - diff --git a/docs/BaseMailThreadMessages.md b/docs/BaseMailThreadMessages.md deleted file mode 100644 index 21593c98..00000000 --- a/docs/BaseMailThreadMessages.md +++ /dev/null @@ -1,35 +0,0 @@ -# Pipedrive.BaseMailThreadMessages - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | ID of the mail thread | [optional] -**account_id** | **String** | The connection account ID | [optional] -**user_id** | **Number** | ID of the user whom mail message will be assigned to | [optional] -**subject** | **String** | The subject | [optional] -**snippet** | **String** | A snippet | [optional] -**read_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is read | [optional] -**mail_tracking_status** | **String** | Mail tracking status | [optional] -**has_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has an attachment | [optional] -**has_inline_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has inline attachments | [optional] -**has_real_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has real attachments (which are not inline) | [optional] -**deleted_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is deleted | [optional] -**synced_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is synced | [optional] -**smart_bcc_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether one of the parties of the mail thread is Bcc | [optional] -**mail_link_tracking_enabled_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the link tracking of the mail thread is enabled | [optional] -**from** | [**[MailThreadParticipant]**](MailThreadParticipant.md) | Senders of the mail thread | [optional] -**to** | [**[MailThreadParticipant]**](MailThreadParticipant.md) | Recipients of the mail thread | [optional] -**cc** | [**[MailThreadParticipant]**](MailThreadParticipant.md) | Participants of the Cc | [optional] -**bcc** | [**[MailThreadParticipant]**](MailThreadParticipant.md) | Participants of the Bcc | [optional] -**body_url** | **String** | A link to the mail thread message | [optional] -**mail_thread_id** | **Number** | ID of the mail thread | [optional] -**draft** | **String** | If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. | [optional] -**has_body_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread message has a body | [optional] -**sent_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread message is sent | [optional] -**sent_from_pipedrive_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread message is sent from Pipedrive | [optional] -**message_time** | **Date** | The time when the mail message was received or created | [optional] -**add_time** | **Date** | The time when the mail message was inserted to database | [optional] -**update_time** | **Date** | The time when the mail message was updated in database received | [optional] - - diff --git a/docs/BaseMailThreadMessagesAllOf.md b/docs/BaseMailThreadMessagesAllOf.md deleted file mode 100644 index c86b2c24..00000000 --- a/docs/BaseMailThreadMessagesAllOf.md +++ /dev/null @@ -1,21 +0,0 @@ -# Pipedrive.BaseMailThreadMessagesAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**from** | [**[MailThreadParticipant]**](MailThreadParticipant.md) | Senders of the mail thread | [optional] -**to** | [**[MailThreadParticipant]**](MailThreadParticipant.md) | Recipients of the mail thread | [optional] -**cc** | [**[MailThreadParticipant]**](MailThreadParticipant.md) | Participants of the Cc | [optional] -**bcc** | [**[MailThreadParticipant]**](MailThreadParticipant.md) | Participants of the Bcc | [optional] -**body_url** | **String** | A link to the mail thread message | [optional] -**mail_thread_id** | **Number** | ID of the mail thread | [optional] -**draft** | **String** | If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. | [optional] -**has_body_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread message has a body | [optional] -**sent_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread message is sent | [optional] -**sent_from_pipedrive_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread message is sent from Pipedrive | [optional] -**message_time** | **Date** | The time when the mail message was received or created | [optional] -**add_time** | **Date** | The time when the mail message was inserted to database | [optional] -**update_time** | **Date** | The time when the mail message was updated in database received | [optional] - - diff --git a/docs/BaseNote.md b/docs/BaseNote.md deleted file mode 100644 index 21de4c63..00000000 --- a/docs/BaseNote.md +++ /dev/null @@ -1,26 +0,0 @@ -# Pipedrive.BaseNote - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the note | [optional] -**active_flag** | **Boolean** | Whether the note is active or deleted | [optional] -**add_time** | **String** | The creation date and time of the note | [optional] -**content** | **String** | The content of the note in HTML format. Subject to sanitization on the back-end. | [optional] -**deal** | [**BaseNoteDealTitle**](BaseNoteDealTitle.md) | | [optional] -**lead_id** | **String** | The ID of the lead the note is attached to | [optional] -**deal_id** | **Number** | The ID of the deal the note is attached to | [optional] -**last_update_user_id** | **Number** | The ID of the user who last updated the note | [optional] -**org_id** | **Number** | The ID of the organization the note is attached to | [optional] -**organization** | [**BaseNoteOrganization**](BaseNoteOrganization.md) | | [optional] -**person** | [**BaseNotePerson**](BaseNotePerson.md) | | [optional] -**person_id** | **Number** | The ID of the person the note is attached to | [optional] -**pinned_to_deal_flag** | **Boolean** | If true, the results are filtered by note to deal pinning state | [optional] -**pinned_to_organization_flag** | **Boolean** | If true, the results are filtered by note to organization pinning state | [optional] -**pinned_to_person_flag** | **Boolean** | If true, the results are filtered by note to person pinning state | [optional] -**update_time** | **String** | The last updated date and time of the note | [optional] -**user** | [**NoteCreatorUser**](NoteCreatorUser.md) | | [optional] -**user_id** | **Number** | The ID of the note creator | [optional] - - diff --git a/docs/BaseNoteDealTitle.md b/docs/BaseNoteDealTitle.md deleted file mode 100644 index 5ba08b2e..00000000 --- a/docs/BaseNoteDealTitle.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.BaseNoteDealTitle - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the deal this note is attached to | [optional] - - diff --git a/docs/BaseNoteOrganization.md b/docs/BaseNoteOrganization.md deleted file mode 100644 index 448d6463..00000000 --- a/docs/BaseNoteOrganization.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.BaseNoteOrganization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the organization the note is attached to | [optional] - - diff --git a/docs/BaseNotePerson.md b/docs/BaseNotePerson.md deleted file mode 100644 index c011e947..00000000 --- a/docs/BaseNotePerson.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.BaseNotePerson - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the person the note is attached to | [optional] - - diff --git a/docs/BaseOrganizationItem.md b/docs/BaseOrganizationItem.md deleted file mode 100644 index 15d6e2e9..00000000 --- a/docs/BaseOrganizationItem.md +++ /dev/null @@ -1,55 +0,0 @@ -# Pipedrive.BaseOrganizationItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization | [optional] -**company_id** | **Number** | The ID of the company related to the organization | [optional] -**owner_id** | [**Owner**](Owner.md) | | [optional] -**name** | **String** | The name of the organization | [optional] -**active_flag** | **Boolean** | Whether the organization is active or not | [optional] -**picture_id** | [**PictureDataWithValue**](PictureDataWithValue.md) | | [optional] -**country_code** | **String** | The country code of the organization | [optional] -**first_char** | **String** | The first character of the organization name | [optional] -**add_time** | **String** | The creation date and time of the organization | [optional] -**update_time** | **String** | The last updated date and time of the organization | [optional] -**visible_to** | **String** | The visibility group ID of who can see the organization | [optional] -**label** | **Number** | The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**owner_name** | **String** | The name of the organization owner | [optional] -**cc_email** | **String** | The BCC email associated with the organization | [optional] -**email_messages_count** | **Number** | The count of email messages related to the organization | [optional] -**people_count** | **Number** | The count of persons related to the organization | [optional] -**activities_count** | **Number** | The count of activities related to the organization | [optional] -**done_activities_count** | **Number** | The count of done activities related to the organization | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the organization | [optional] -**files_count** | **Number** | The count of files related to the organization | [optional] -**notes_count** | **Number** | The count of notes related to the organization | [optional] -**followers_count** | **Number** | The count of followers related to the organization | [optional] -**address** | **String** | The full address of the organization | [optional] -**address_subpremise** | **String** | The sub-premise of the organization location | [optional] -**address_street_number** | **String** | The street number of the organization location | [optional] -**address_route** | **String** | The route of the organization location | [optional] -**address_sublocality** | **String** | The sub-locality of the organization location | [optional] -**address_locality** | **String** | The locality of the organization location | [optional] -**address_admin_area_level_1** | **String** | The level 1 admin area of the organization location | [optional] -**address_admin_area_level_2** | **String** | The level 2 admin area of the organization location | [optional] -**address_country** | **String** | The country of the organization location | [optional] -**address_postal_code** | **String** | The postal code of the organization location | [optional] -**address_formatted_address** | **String** | The formatted organization location | [optional] -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] - - diff --git a/docs/BaseOrganizationItemFields.md b/docs/BaseOrganizationItemFields.md deleted file mode 100644 index 31fe4a0e..00000000 --- a/docs/BaseOrganizationItemFields.md +++ /dev/null @@ -1,23 +0,0 @@ -# Pipedrive.BaseOrganizationItemFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization | [optional] -**company_id** | **Number** | The ID of the company related to the organization | [optional] -**owner_id** | [**Owner**](Owner.md) | | [optional] -**name** | **String** | The name of the organization | [optional] -**active_flag** | **Boolean** | Whether the organization is active or not | [optional] -**picture_id** | [**PictureDataWithValue**](PictureDataWithValue.md) | | [optional] -**country_code** | **String** | The country code of the organization | [optional] -**first_char** | **String** | The first character of the organization name | [optional] -**add_time** | **String** | The creation date and time of the organization | [optional] -**update_time** | **String** | The last updated date and time of the organization | [optional] -**visible_to** | **String** | The visibility group ID of who can see the organization | [optional] -**label** | **Number** | The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**owner_name** | **String** | The name of the organization owner | [optional] -**cc_email** | **String** | The BCC email associated with the organization | [optional] - - diff --git a/docs/BaseOrganizationItemWithEditNameFlag.md b/docs/BaseOrganizationItemWithEditNameFlag.md deleted file mode 100644 index 34a967e4..00000000 --- a/docs/BaseOrganizationItemWithEditNameFlag.md +++ /dev/null @@ -1,56 +0,0 @@ -# Pipedrive.BaseOrganizationItemWithEditNameFlag - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization | [optional] -**company_id** | **Number** | The ID of the company related to the organization | [optional] -**owner_id** | [**Owner**](Owner.md) | | [optional] -**name** | **String** | The name of the organization | [optional] -**active_flag** | **Boolean** | Whether the organization is active or not | [optional] -**picture_id** | [**PictureDataWithValue**](PictureDataWithValue.md) | | [optional] -**country_code** | **String** | The country code of the organization | [optional] -**first_char** | **String** | The first character of the organization name | [optional] -**add_time** | **String** | The creation date and time of the organization | [optional] -**update_time** | **String** | The last updated date and time of the organization | [optional] -**visible_to** | **String** | The visibility group ID of who can see the organization | [optional] -**label** | **Number** | The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**owner_name** | **String** | The name of the organization owner | [optional] -**cc_email** | **String** | The BCC email associated with the organization | [optional] -**email_messages_count** | **Number** | The count of email messages related to the organization | [optional] -**people_count** | **Number** | The count of persons related to the organization | [optional] -**activities_count** | **Number** | The count of activities related to the organization | [optional] -**done_activities_count** | **Number** | The count of done activities related to the organization | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the organization | [optional] -**files_count** | **Number** | The count of files related to the organization | [optional] -**notes_count** | **Number** | The count of notes related to the organization | [optional] -**followers_count** | **Number** | The count of followers related to the organization | [optional] -**address** | **String** | The full address of the organization | [optional] -**address_subpremise** | **String** | The sub-premise of the organization location | [optional] -**address_street_number** | **String** | The street number of the organization location | [optional] -**address_route** | **String** | The route of the organization location | [optional] -**address_sublocality** | **String** | The sub-locality of the organization location | [optional] -**address_locality** | **String** | The locality of the organization location | [optional] -**address_admin_area_level_1** | **String** | The level 1 admin area of the organization location | [optional] -**address_admin_area_level_2** | **String** | The level 2 admin area of the organization location | [optional] -**address_country** | **String** | The country of the organization location | [optional] -**address_postal_code** | **String** | The postal code of the organization location | [optional] -**address_formatted_address** | **String** | The formatted organization location | [optional] -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] -**edit_name** | **Boolean** | If the company ID of the organization and company ID of the request is same or not | [optional] - - diff --git a/docs/BaseOrganizationItemWithEditNameFlagAllOf.md b/docs/BaseOrganizationItemWithEditNameFlagAllOf.md deleted file mode 100644 index 302dbe72..00000000 --- a/docs/BaseOrganizationItemWithEditNameFlagAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.BaseOrganizationItemWithEditNameFlagAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**edit_name** | **Boolean** | If the company ID of the organization and company ID of the request is same or not | [optional] - - diff --git a/docs/BaseOrganizationRelationshipItem.md b/docs/BaseOrganizationRelationshipItem.md deleted file mode 100644 index 1868bb4c..00000000 --- a/docs/BaseOrganizationRelationshipItem.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.BaseOrganizationRelationshipItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization relationship | [optional] -**type** | **String** | The type of the relationship | [optional] -**rel_owner_org_id** | [**RelationshipOrganizationInfoItem**](RelationshipOrganizationInfoItem.md) | | [optional] -**rel_linked_org_id** | [**RelationshipOrganizationInfoItem**](RelationshipOrganizationInfoItem.md) | | [optional] -**add_time** | **String** | The creation date and time of the relationship | [optional] -**update_time** | **String** | The last updated date and time of the relationship | [optional] -**active_flag** | **String** | Whether the relationship is active or not | [optional] - - diff --git a/docs/BasePersonItem.md b/docs/BasePersonItem.md deleted file mode 100644 index 8cb1eac8..00000000 --- a/docs/BasePersonItem.md +++ /dev/null @@ -1,23 +0,0 @@ -# Pipedrive.BasePersonItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the person | [optional] -**company_id** | **Number** | The ID of the company related to the person | [optional] -**active_flag** | **Boolean** | Whether the person is active or not | [optional] -**phone** | [**[BasePersonItemPhone]**](BasePersonItemPhone.md) | A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. | [optional] -**email** | [**[BasePersonItemEmail]**](BasePersonItemEmail.md) | An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" } ]`. Please note that only `value` is required. | [optional] -**first_char** | **String** | The first letter of the name of the person | [optional] -**add_time** | **String** | The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS | [optional] -**update_time** | **String** | The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS | [optional] -**visible_to** | **String** | The visibility group ID of who can see the person | [optional] -**picture_id** | [**PictureDataWithID**](PictureDataWithID.md) | | [optional] -**label** | **Number** | The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**org_name** | **String** | The name of the organization associated with the person | [optional] -**owner_name** | **String** | The name of the owner associated with the person | [optional] -**cc_email** | **String** | The BCC email associated with the person | [optional] - - diff --git a/docs/BasePersonItemEmail.md b/docs/BasePersonItemEmail.md deleted file mode 100644 index 9e78bf66..00000000 --- a/docs/BasePersonItemEmail.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.BasePersonItemEmail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **String** | Email | [optional] -**primary** | **Boolean** | Boolean that indicates if email is primary for the person or not | [optional] -**label** | **String** | The label that indicates the type of the email. (Possible values - work, home or other) | [optional] - - diff --git a/docs/BasePersonItemPhone.md b/docs/BasePersonItemPhone.md deleted file mode 100644 index a46e94fc..00000000 --- a/docs/BasePersonItemPhone.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.BasePersonItemPhone - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **String** | The phone number | [optional] -**primary** | **Boolean** | Boolean that indicates if phone number is primary for the person or not | [optional] -**label** | **String** | The label that indicates the type of the phone number. (Possible values - work, home, mobile or other) | [optional] - - diff --git a/docs/BasePipeline.md b/docs/BasePipeline.md deleted file mode 100644 index 9b01cdd0..00000000 --- a/docs/BasePipeline.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.BasePipeline - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the pipeline | [optional] -**name** | **String** | The name of the pipeline | [optional] -**url_title** | **String** | The pipeline title displayed in the URL | [optional] -**order_nr** | **Number** | Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. | [optional] -**active** | **Boolean** | Whether this pipeline will be made inactive (hidden) or active | [optional] -**deal_probability** | **Boolean** | Whether deal probability is disabled or enabled for this pipeline | [optional] -**add_time** | **String** | The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The pipeline update time. Format: YYYY-MM-DD HH:MM:SS. | [optional] - - diff --git a/docs/BasePipelineWithSelectedFlag.md b/docs/BasePipelineWithSelectedFlag.md deleted file mode 100644 index 6838a479..00000000 --- a/docs/BasePipelineWithSelectedFlag.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.BasePipelineWithSelectedFlag - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the pipeline | [optional] -**name** | **String** | The name of the pipeline | [optional] -**url_title** | **String** | The pipeline title displayed in the URL | [optional] -**order_nr** | **Number** | Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. | [optional] -**active** | **Boolean** | Whether this pipeline will be made inactive (hidden) or active | [optional] -**deal_probability** | **Boolean** | Whether deal probability is disabled or enabled for this pipeline | [optional] -**add_time** | **String** | The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The pipeline update time. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**selected** | **Boolean** | A boolean that shows if the pipeline is selected from a filter or not | [optional] - - diff --git a/docs/BasePipelineWithSelectedFlagAllOf.md b/docs/BasePipelineWithSelectedFlagAllOf.md deleted file mode 100644 index 3b61bb1e..00000000 --- a/docs/BasePipelineWithSelectedFlagAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.BasePipelineWithSelectedFlagAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**selected** | **Boolean** | A boolean that shows if the pipeline is selected from a filter or not | [optional] - - diff --git a/docs/BaseProduct.md b/docs/BaseProduct.md deleted file mode 100644 index 3a26abb2..00000000 --- a/docs/BaseProduct.md +++ /dev/null @@ -1,38 +0,0 @@ -# Pipedrive.BaseProduct - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the product | [optional] -**name** | **String** | The name of the product | [optional] -**code** | **String** | The product code | [optional] -**unit** | **String** | The unit in which this product is sold | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**active_flag** | **Boolean** | Whether this product is active or not | [optional] [default to true] -**selectable** | **Boolean** | Whether this product is selected in deals or not | [optional] [default to true] -**visible_to** | [**VisibleTo**](VisibleTo.md) | Visibility of the product | [optional] -**owner_id** | **Object** | Information about the Pipedrive user who owns the product | [optional] -**billing_frequency** | **String** | Only available in Advanced and above plans How often a customer is billed for access to a service or product | [optional] [default to 'one-time'] -**billing_frequency_cycles** | **Number** | Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field is always `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 | [optional] - - - -## Enum: BillingFrequencyEnum - - -* `one-time` (value: `"one-time"`) - -* `annually` (value: `"annually"`) - -* `semi-annually` (value: `"semi-annually"`) - -* `quarterly` (value: `"quarterly"`) - -* `monthly` (value: `"monthly"`) - -* `weekly` (value: `"weekly"`) - - - - diff --git a/docs/BaseResponse.md b/docs/BaseResponse.md deleted file mode 100644 index 601e9fbb..00000000 --- a/docs/BaseResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.BaseResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] - - diff --git a/docs/BaseResponseWithStatus.md b/docs/BaseResponseWithStatus.md deleted file mode 100644 index 3076f9fe..00000000 --- a/docs/BaseResponseWithStatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.BaseResponseWithStatus - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**status** | **String** | The status of the response | [optional] - - diff --git a/docs/BaseResponseWithStatusAllOf.md b/docs/BaseResponseWithStatusAllOf.md deleted file mode 100644 index c3ac2d90..00000000 --- a/docs/BaseResponseWithStatusAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.BaseResponseWithStatusAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | **String** | The status of the response | [optional] - - diff --git a/docs/BaseRole.md b/docs/BaseRole.md deleted file mode 100644 index 9367343e..00000000 --- a/docs/BaseRole.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.BaseRole - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**parent_role_id** | **Number** | The ID of the parent role | [optional] -**name** | **String** | The name of the role | [optional] - - diff --git a/docs/BaseStage.md b/docs/BaseStage.md deleted file mode 100644 index c1f309cc..00000000 --- a/docs/BaseStage.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.BaseStage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the stage | [optional] -**order_nr** | **Number** | Defines the order of the stage | [optional] -**name** | **String** | The name of the stage | [optional] -**active_flag** | **Boolean** | Whether the stage is active or deleted | [optional] -**deal_probability** | **Number** | The success probability percentage of the deal. Used/shown when the deal weighted values are used. | [optional] -**pipeline_id** | **Number** | The ID of the pipeline to add the stage to | [optional] -**rotten_flag** | **Boolean** | Whether deals in this stage can become rotten | [optional] -**rotten_days** | **Number** | The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. | [optional] -**add_time** | **String** | The stage creation time. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The stage update time. Format: YYYY-MM-DD HH:MM:SS. | [optional] - - diff --git a/docs/BaseTeam.md b/docs/BaseTeam.md deleted file mode 100644 index d2ab9e38..00000000 --- a/docs/BaseTeam.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.BaseTeam - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The team ID | [optional] -**name** | **String** | The team name | [optional] -**description** | **String** | The team description | [optional] -**manager_id** | **Number** | The team manager ID | [optional] -**users** | **[Number]** | The list of user IDs | [optional] -**active_flag** | [**NumberBoolean**](NumberBoolean.md) | Flag that indicates whether the team is active | [optional] -**deleted_flag** | [**NumberBoolean**](NumberBoolean.md) | Flag that indicates whether the team is deleted | [optional] -**add_time** | **String** | The team creation time. Format: YYYY-MM-DD HH:MM:SS | [optional] -**created_by_user_id** | **Number** | The ID of the user who created the team | [optional] - - diff --git a/docs/BaseTeamAdditionalProperties.md b/docs/BaseTeamAdditionalProperties.md deleted file mode 100644 index e73f1a94..00000000 --- a/docs/BaseTeamAdditionalProperties.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.BaseTeamAdditionalProperties - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**add_time** | **String** | The team creation time. Format: YYYY-MM-DD HH:MM:SS | [optional] -**created_by_user_id** | **Number** | The ID of the user who created the team | [optional] - - diff --git a/docs/BaseUser.md b/docs/BaseUser.md deleted file mode 100644 index 56536ab1..00000000 --- a/docs/BaseUser.md +++ /dev/null @@ -1,28 +0,0 @@ -# Pipedrive.BaseUser - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The user ID | [optional] -**name** | **String** | The user name | [optional] -**default_currency** | **String** | The user default currency | [optional] -**locale** | **String** | The user locale | [optional] -**lang** | **Number** | The user language ID | [optional] -**email** | **String** | The user email | [optional] -**phone** | **String** | The user phone | [optional] -**activated** | **Boolean** | Boolean that indicates whether the user is activated | [optional] -**last_login** | **String** | The last login date and time of the user. Format: YYYY-MM-DD HH:MM:SS | [optional] -**created** | **String** | The creation date and time of the user. Format: YYYY-MM-DD HH:MM:SS | [optional] -**modified** | **String** | The last modification date and time of the user. Format: YYYY-MM-DD HH:MM:SS | [optional] -**has_created_company** | **Boolean** | Boolean that indicates whether the user has created a company | [optional] -**access** | [**[UserAccess]**](UserAccess.md) | | [optional] -**active_flag** | **Boolean** | Boolean that indicates whether the user is activated | [optional] -**timezone_name** | **String** | The user timezone name | [optional] -**timezone_offset** | **String** | The user timezone offset | [optional] -**role_id** | **Number** | The ID of the user role | [optional] -**icon_url** | **String** | The user icon URL | [optional] -**is_you** | **Boolean** | Boolean that indicates if the requested user is the same which is logged in (in this case, always true) | [optional] -**is_deleted** | **Boolean** | Boolean that indicates whether the user is deleted from the company | [optional] - - diff --git a/docs/BaseUserMe.md b/docs/BaseUserMe.md deleted file mode 100644 index 88237786..00000000 --- a/docs/BaseUserMe.md +++ /dev/null @@ -1,34 +0,0 @@ -# Pipedrive.BaseUserMe - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The user ID | [optional] -**name** | **String** | The user name | [optional] -**default_currency** | **String** | The user default currency | [optional] -**locale** | **String** | The user locale | [optional] -**lang** | **Number** | The user language ID | [optional] -**email** | **String** | The user email | [optional] -**phone** | **String** | The user phone | [optional] -**activated** | **Boolean** | Boolean that indicates whether the user is activated | [optional] -**last_login** | **String** | The last login date and time of the user. Format: YYYY-MM-DD HH:MM:SS | [optional] -**created** | **String** | The creation date and time of the user. Format: YYYY-MM-DD HH:MM:SS | [optional] -**modified** | **String** | The last modification date and time of the user. Format: YYYY-MM-DD HH:MM:SS | [optional] -**has_created_company** | **Boolean** | Boolean that indicates whether the user has created a company | [optional] -**access** | [**[UserAccess]**](UserAccess.md) | | [optional] -**active_flag** | **Boolean** | Boolean that indicates whether the user is activated | [optional] -**timezone_name** | **String** | The user timezone name | [optional] -**timezone_offset** | **String** | The user timezone offset | [optional] -**role_id** | **Number** | The ID of the user role | [optional] -**icon_url** | **String** | The user icon URL | [optional] -**is_you** | **Boolean** | Boolean that indicates if the requested user is the same which is logged in (in this case, always true) | [optional] -**is_deleted** | **Boolean** | Boolean that indicates whether the user is deleted from the company | [optional] -**company_id** | **Number** | The user company ID | [optional] -**company_name** | **String** | The user company name | [optional] -**company_domain** | **String** | The user company domain | [optional] -**company_country** | **String** | The user company country | [optional] -**company_industry** | **String** | The user company industry | [optional] -**language** | [**BaseUserMeAllOfLanguage**](BaseUserMeAllOfLanguage.md) | | [optional] - - diff --git a/docs/BaseUserMeAllOf.md b/docs/BaseUserMeAllOf.md deleted file mode 100644 index e4c2e68e..00000000 --- a/docs/BaseUserMeAllOf.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.BaseUserMeAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**company_id** | **Number** | The user company ID | [optional] -**company_name** | **String** | The user company name | [optional] -**company_domain** | **String** | The user company domain | [optional] -**company_country** | **String** | The user company country | [optional] -**company_industry** | **String** | The user company industry | [optional] -**language** | [**BaseUserMeAllOfLanguage**](BaseUserMeAllOfLanguage.md) | | [optional] - - diff --git a/docs/BaseUserMeAllOfLanguage.md b/docs/BaseUserMeAllOfLanguage.md deleted file mode 100644 index 3c0708fd..00000000 --- a/docs/BaseUserMeAllOfLanguage.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.BaseUserMeAllOfLanguage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**language_code** | **String** | The language code. E.g. en | [optional] -**country_code** | **String** | The country code. E.g. US | [optional] - - diff --git a/docs/BaseWebhook.md b/docs/BaseWebhook.md deleted file mode 100644 index 84c9798a..00000000 --- a/docs/BaseWebhook.md +++ /dev/null @@ -1,37 +0,0 @@ -# Pipedrive.BaseWebhook - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the Webhook | [optional] -**company_id** | **Number** | The ID of the company related to the Webhook | [optional] -**owner_id** | **Number** | The ID of the user who owns the Webhook | [optional] -**user_id** | **Number** | The ID of the user related to the Webhook | [optional] -**event_action** | **String** | The Webhook action | [optional] -**event_object** | **String** | The Webhook object | [optional] -**subscription_url** | **String** | The subscription URL of the Webhook | [optional] -**is_active** | [**NumberBooleanDefault1**](NumberBooleanDefault1.md) | The Webhook's status | [optional] -**add_time** | **Date** | The date when the Webhook was added | [optional] -**remove_time** | **Date** | The date when the Webhook was removed (if removed) | [optional] -**type** | **String** | The type of the Webhook | [optional] -**http_auth_user** | **String** | The username of the `subscription_url` of the Webhook | [optional] -**http_auth_password** | **String** | The password of the `subscription_url` of the Webhook | [optional] -**additional_data** | **Object** | Any additional data related to the Webhook | [optional] -**remove_reason** | **String** | The removal reason of the Webhook (if removed) | [optional] -**last_delivery_time** | **Date** | The last delivery time of the Webhook | [optional] -**last_http_status** | **Number** | The last delivery HTTP status of the Webhook | [optional] -**admin_id** | **Number** | The ID of the admin of the Webhook | [optional] - - - -## Enum: TypeEnum - - -* `general` (value: `"general"`) - -* `app` (value: `"app"`) - - - - diff --git a/docs/BasicDeal.md b/docs/BasicDeal.md deleted file mode 100644 index 2637fec7..00000000 --- a/docs/BasicDeal.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.BasicDeal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**won_time** | **String** | The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. | [optional] -**lost_time** | **String** | The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. | [optional] -**close_time** | **String** | The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**expected_close_date** | **Date** | The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. | [optional] -**probability** | **Number** | The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. | [optional] -**lost_reason** | **String** | The optional message about why the deal was lost (to be used when status = lost) | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] - - diff --git a/docs/BasicDealProduct.md b/docs/BasicDealProduct.md deleted file mode 100644 index 86e9cec1..00000000 --- a/docs/BasicDealProduct.md +++ /dev/null @@ -1,45 +0,0 @@ -# Pipedrive.BasicDealProduct - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_id** | **Number** | The ID of the product to use | [optional] -**item_price** | **Number** | The price at which this product will be added to the deal | [optional] -**quantity** | **Number** | Quantity – e.g. how many items of this product will be added to the deal | [optional] -**discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] -**discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] -**comments** | **String** | A textual comment associated with this product-deal attachment | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**tax_method** | **String** | The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal | [optional] -**enabled_flag** | **Boolean** | Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default | [optional] [default to true] -**billing_frequency** | [**BillingFrequency**](BillingFrequency.md) | | [optional] -**billing_frequency_cycles** | **Number** | Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 | [optional] -**billing_start_date** | **String** | Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future | [optional] - - - -## Enum: DiscountTypeEnum - - -* `percentage` (value: `"percentage"`) - -* `amount` (value: `"amount"`) - - - - - -## Enum: TaxMethodEnum - - -* `exclusive` (value: `"exclusive"`) - -* `inclusive` (value: `"inclusive"`) - -* `none` (value: `"none"`) - - - - diff --git a/docs/BasicDealProductAllOf.md b/docs/BasicDealProductAllOf.md deleted file mode 100644 index aedcd577..00000000 --- a/docs/BasicDealProductAllOf.md +++ /dev/null @@ -1,42 +0,0 @@ -# Pipedrive.BasicDealProductAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_id** | **Number** | The ID of the product to use | [optional] -**item_price** | **Number** | The price at which this product will be added to the deal | [optional] -**quantity** | **Number** | Quantity – e.g. how many items of this product will be added to the deal | [optional] -**discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] -**discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] -**comments** | **String** | A textual comment associated with this product-deal attachment | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**tax_method** | **String** | The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal | [optional] -**enabled_flag** | **Boolean** | Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default | [optional] [default to true] - - - -## Enum: DiscountTypeEnum - - -* `percentage` (value: `"percentage"`) - -* `amount` (value: `"amount"`) - - - - - -## Enum: TaxMethodEnum - - -* `exclusive` (value: `"exclusive"`) - -* `inclusive` (value: `"inclusive"`) - -* `none` (value: `"none"`) - - - - diff --git a/docs/BasicGoal.md b/docs/BasicGoal.md deleted file mode 100644 index 93fe6350..00000000 --- a/docs/BasicGoal.md +++ /dev/null @@ -1,29 +0,0 @@ -# Pipedrive.BasicGoal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the goal | [optional] -**assignee** | **Object** | Who this goal is assigned to. It requires the following JSON structure: `{ \"id\": \"1\", \"type\": \"person\" }`. `type` can be either `person`, `company` or `team`. ID of the assignee person, company or team. | [optional] -**type** | **Object** | The type of the goal. It requires the following JSON structure: `{ \"name\": \"deals_started\", \"params\": { \"pipeline_id\": [1, 2], \"activity_type_id\": [9] } }`. Type can be one of: `deals_won`, `deals_progressed`, `activities_completed`, `activities_added`, `deals_started` or `revenue_forecast`. `params` can include `pipeline_id`, `stage_id` or `activity_type_id`. `stage_id` is related to only `deals_progressed` type of goals and `activity_type_id` to `activities_completed` or `activities_added` types of goals. The `pipeline_id` and `activity_type_id` need to be given as an array of integers. To track the goal in all pipelines, set `pipeline_id` as `null` and similarly, to track the goal for all activities, set `activity_type_id` as `null`.” | [optional] -**expected_outcome** | **Object** | The expected outcome of the goal. Expected outcome can be tracked either by `quantity` or by `sum`. It requires the following JSON structure: `{ \"target\": \"50\", \"tracking_metric\": \"quantity\" }` or `{ \"target\": \"50\", \"tracking_metric\": \"sum\", \"currency_id\": 1 }`. `currency_id` should only be added to `sum` type of goals. | [optional] -**duration** | **Object** | The date when the goal starts and ends. It requires the following JSON structure: `{ \"start\": \"2019-01-01\", \"end\": \"2022-12-31\" }`. Date in format of YYYY-MM-DD. \"end\" can be set to `null` for an infinite, open-ended goal. | [optional] -**interval** | **String** | The interval of the goal | [optional] - - - -## Enum: IntervalEnum - - -* `weekly` (value: `"weekly"`) - -* `monthly` (value: `"monthly"`) - -* `quarterly` (value: `"quarterly"`) - -* `yearly` (value: `"yearly"`) - - - - diff --git a/docs/BasicOrganization.md b/docs/BasicOrganization.md deleted file mode 100644 index 7531d4cb..00000000 --- a/docs/BasicOrganization.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.BasicOrganization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**owner_id** | **Number** | The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. | [optional] -**label** | **Number** | The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] - - diff --git a/docs/BasicPerson.md b/docs/BasicPerson.md deleted file mode 100644 index b9d5b312..00000000 --- a/docs/BasicPerson.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.BasicPerson - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**owner_id** | **Number** | The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. | [optional] -**org_id** | **Number** | The ID of the organization this person will belong to | [optional] -**email** | [**[BasicPersonEmail]**](BasicPersonEmail.md) | An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. | [optional] -**phone** | [**[BasePersonItemPhone]**](BasePersonItemPhone.md) | A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. | [optional] -**label** | **Number** | The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] -**marketing_status** | [**MarketingStatus**](MarketingStatus.md) | If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_consent`</td><td>The customer has not given consent to receive any marketing communications</td></tr><tr><td>`unsubscribed`</td><td>The customers have unsubscribed from ALL marketing communications</td></tr><tr><td>`subscribed`</td><td>The customers are subscribed and are counted towards marketing caps</td></tr><tr><td>`archived`</td><td>The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for</td></tr></table> | [optional] -**add_time** | **String** | The optional creation date & time of the person in UTC. Format: YYYY-MM-DD HH:MM:SS | [optional] - - diff --git a/docs/BasicPersonEmail.md b/docs/BasicPersonEmail.md deleted file mode 100644 index f2276df5..00000000 --- a/docs/BasicPersonEmail.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.BasicPersonEmail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **String** | The email | [optional] -**primary** | **Boolean** | Boolean that indicates if email is primary for the person or not | [optional] -**label** | **String** | The label that indicates the type of the email. (Possible values - work, home or other) | [optional] - - diff --git a/docs/BasicProductField.md b/docs/BasicProductField.md deleted file mode 100644 index 5598f021..00000000 --- a/docs/BasicProductField.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.BasicProductField - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the field | -**options** | **[Object]** | When `field_type` is either set or enum, possible options on update must be supplied as an array of objects each containing id and label, for example: [{\"id\":1, \"label\":\"red\"},{\"id\":2, \"label\":\"blue\"},{\"id\":3, \"label\":\"lilac\"}] | [optional] - - diff --git a/docs/BillingApi.md b/docs/BillingApi.md deleted file mode 100644 index adf9b64a..00000000 --- a/docs/BillingApi.md +++ /dev/null @@ -1,58 +0,0 @@ -# Pipedrive.BillingApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getCompanyAddons**](BillingApi.md#getCompanyAddons) | **GET** /billing/subscriptions/addons | Get all add-ons for a single company - - - -## getCompanyAddons - -> SubscriptionAddonsResponse getCompanyAddons() - -Get all add-ons for a single company - -Returns the add-ons for a single company. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.BillingApi(apiClient); -apiInstance.getCompanyAddons().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**SubscriptionAddonsResponse**](SubscriptionAddonsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/BillingFrequency.md b/docs/BillingFrequency.md deleted file mode 100644 index 0dd8a6d7..00000000 --- a/docs/BillingFrequency.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.BillingFrequency - -## Enum - - -* `one-time` (value: `"one-time"`) - -* `annually` (value: `"annually"`) - -* `semi-annually` (value: `"semi-annually"`) - -* `quarterly` (value: `"quarterly"`) - -* `monthly` (value: `"monthly"`) - -* `weekly` (value: `"weekly"`) - - diff --git a/docs/BillingFrequency1.md b/docs/BillingFrequency1.md deleted file mode 100644 index 3dc31798..00000000 --- a/docs/BillingFrequency1.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.BillingFrequency1 - -## Enum - - -* `one-time` (value: `"one-time"`) - -* `annually` (value: `"annually"`) - -* `semi-annually` (value: `"semi-annually"`) - -* `quarterly` (value: `"quarterly"`) - -* `monthly` (value: `"monthly"`) - -* `weekly` (value: `"weekly"`) - - diff --git a/docs/BulkDeleteResponse.md b/docs/BulkDeleteResponse.md deleted file mode 100644 index dad5807c..00000000 --- a/docs/BulkDeleteResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.BulkDeleteResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BulkDeleteResponseAllOfData**](BulkDeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/BulkDeleteResponseAllOf.md b/docs/BulkDeleteResponseAllOf.md deleted file mode 100644 index a8181166..00000000 --- a/docs/BulkDeleteResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.BulkDeleteResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BulkDeleteResponseAllOfData**](BulkDeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/BulkDeleteResponseAllOfData.md b/docs/BulkDeleteResponseAllOfData.md deleted file mode 100644 index 6c8764e9..00000000 --- a/docs/BulkDeleteResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.BulkDeleteResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | The list of deleted field IDs | [optional] - - diff --git a/docs/CalculatedFields.md b/docs/CalculatedFields.md deleted file mode 100644 index d418087a..00000000 --- a/docs/CalculatedFields.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.CalculatedFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**calculated_type** | **String** | The calculated type of the relationship with the linked organization | [optional] -**calculated_related_org_id** | **Number** | The ID of the linked organization | [optional] - - diff --git a/docs/CallLogBadRequestResponse.md b/docs/CallLogBadRequestResponse.md deleted file mode 100644 index ac3be590..00000000 --- a/docs/CallLogBadRequestResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogBadRequestResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogConflictResponse.md b/docs/CallLogConflictResponse.md deleted file mode 100644 index 70dd70f7..00000000 --- a/docs/CallLogConflictResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogConflictResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogForbiddenResponse.md b/docs/CallLogForbiddenResponse.md deleted file mode 100644 index f63d30dd..00000000 --- a/docs/CallLogForbiddenResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogForbiddenResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogGoneResponse.md b/docs/CallLogGoneResponse.md deleted file mode 100644 index c42b7fd4..00000000 --- a/docs/CallLogGoneResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogGoneResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogInternalErrorResponse.md b/docs/CallLogInternalErrorResponse.md deleted file mode 100644 index 789329d2..00000000 --- a/docs/CallLogInternalErrorResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogInternalErrorResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogNotFoundResponse.md b/docs/CallLogNotFoundResponse.md deleted file mode 100644 index fcb2bebd..00000000 --- a/docs/CallLogNotFoundResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogNotFoundResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogObject.md b/docs/CallLogObject.md deleted file mode 100644 index 41ecd768..00000000 --- a/docs/CallLogObject.md +++ /dev/null @@ -1,41 +0,0 @@ -# Pipedrive.CallLogObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the owner of the call log. Please note that a user without account settings access cannot create call logs for other users. | [optional] -**activity_id** | **Number** | If specified, this activity will be converted into a call log, with the information provided. When this field is used, you don't need to specify `deal_id`, `person_id` or `org_id`, as they will be ignored in favor of the values already available in the activity. The `activity_id` must refer to a `call` type activity. | [optional] -**subject** | **String** | The name of the activity this call is attached to | [optional] -**duration** | **String** | The duration of the call in seconds | [optional] -**outcome** | **String** | Describes the outcome of the call | -**from_phone_number** | **String** | The number that made the call | [optional] -**to_phone_number** | **String** | The number called | -**start_time** | **Date** | The date and time of the start of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. | -**end_time** | **Date** | The date and time of the end of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. | -**person_id** | **Number** | The ID of the person this call is associated with | [optional] -**org_id** | **Number** | The ID of the organization this call is associated with | [optional] -**deal_id** | **Number** | The ID of the deal this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. | [optional] -**lead_id** | **String** | The ID of the lead in the UUID format this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. | [optional] -**note** | **String** | The note for the call log in HTML format | [optional] - - - -## Enum: OutcomeEnum - - -* `connected` (value: `"connected"`) - -* `no_answer` (value: `"no_answer"`) - -* `left_message` (value: `"left_message"`) - -* `left_voicemail` (value: `"left_voicemail"`) - -* `wrong_number` (value: `"wrong_number"`) - -* `busy` (value: `"busy"`) - - - - diff --git a/docs/CallLogResponse200.md b/docs/CallLogResponse200.md deleted file mode 100644 index fbb97e5d..00000000 --- a/docs/CallLogResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.CallLogResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**ResponseCallLogObject**](ResponseCallLogObject.md) | | [optional] - - diff --git a/docs/CallLogResponse400.md b/docs/CallLogResponse400.md deleted file mode 100644 index 9ab90fa2..00000000 --- a/docs/CallLogResponse400.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogResponse400 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogResponse403.md b/docs/CallLogResponse403.md deleted file mode 100644 index 811deb51..00000000 --- a/docs/CallLogResponse403.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogResponse403 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogResponse404.md b/docs/CallLogResponse404.md deleted file mode 100644 index 7cd3a2b7..00000000 --- a/docs/CallLogResponse404.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogResponse404 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogResponse409.md b/docs/CallLogResponse409.md deleted file mode 100644 index ef45954b..00000000 --- a/docs/CallLogResponse409.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogResponse409 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogResponse410.md b/docs/CallLogResponse410.md deleted file mode 100644 index df00c0ab..00000000 --- a/docs/CallLogResponse410.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogResponse410 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogResponse500.md b/docs/CallLogResponse500.md deleted file mode 100644 index 49ecd1d1..00000000 --- a/docs/CallLogResponse500.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.CallLogResponse500 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/CallLogsApi.md b/docs/CallLogsApi.md deleted file mode 100644 index 0271a5e5..00000000 --- a/docs/CallLogsApi.md +++ /dev/null @@ -1,287 +0,0 @@ -# Pipedrive.CallLogsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addCallLog**](CallLogsApi.md#addCallLog) | **POST** /callLogs | Add a call log -[**addCallLogAudioFile**](CallLogsApi.md#addCallLogAudioFile) | **POST** /callLogs/{id}/recordings | Attach an audio file to the call log -[**deleteCallLog**](CallLogsApi.md#deleteCallLog) | **DELETE** /callLogs/{id} | Delete a call log -[**getCallLog**](CallLogsApi.md#getCallLog) | **GET** /callLogs/{id} | Get details of a call log -[**getUserCallLogs**](CallLogsApi.md#getUserCallLogs) | **GET** /callLogs | Get all call logs assigned to a particular user - - - -## addCallLog - -> CallLogResponse200 addCallLog(opts) - -Add a call log - -Adds a new call log. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.CallLogsApi(apiClient); -let opts = Pipedrive.CallLogObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addCallLog(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **CallLogObject** | [**CallLogObject**](CallLogObject.md)| | [optional] - -### Return type - -[**CallLogResponse200**](CallLogResponse200.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addCallLogAudioFile - -> BaseResponse addCallLogAudioFile(id, file) - -Attach an audio file to the call log - -Adds an audio recording to the call log. That audio can be played by those who have access to the call log object. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.CallLogsApi(apiClient); -let id = 3cde3b05035cae14dcfc172bd8000d08; // String | The ID received when you create the call log -let file = "/path/to/file"; // File | Audio file supported by the HTML5 specification -apiInstance.addCallLogAudioFile(id, file).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID received when you create the call log | - **file** | **File**| Audio file supported by the HTML5 specification | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: multipart/form-data -- **Accept**: application/json - - -## deleteCallLog - -> BaseResponse deleteCallLog(id) - -Delete a call log - -Deletes a call log. If there is an audio recording attached to it, it will also be deleted. The related activity will not be removed by this request. If you want to remove the related activities, please use the endpoint which is specific for activities. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.CallLogsApi(apiClient); -let id = 3cde3b05035cae14dcfc172bd8000d08; // String | The ID received when you create the call log -apiInstance.deleteCallLog(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID received when you create the call log | - -### Return type - -[**BaseResponse**](BaseResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getCallLog - -> CallLogResponse200 getCallLog(id) - -Get details of a call log - -Returns details of a specific call log. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.CallLogsApi(apiClient); -let id = 3cde3b05035cae14dcfc172bd8000d08; // String | The ID received when you create the call log -apiInstance.getCallLog(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID received when you create the call log | - -### Return type - -[**CallLogResponse200**](CallLogResponse200.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getUserCallLogs - -> CallLogsResponse getUserCallLogs(opts) - -Get all call logs assigned to a particular user - -Returns all call logs assigned to a particular user. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.CallLogsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | For pagination, the limit of entries to be returned. The upper limit is 50. -}; -apiInstance.getUserCallLogs(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| For pagination, the limit of entries to be returned. The upper limit is 50. | [optional] - -### Return type - -[**CallLogsResponse**](CallLogsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/CallLogsResponse.md b/docs/CallLogsResponse.md deleted file mode 100644 index 54930d18..00000000 --- a/docs/CallLogsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.CallLogsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ResponseCallLogObject]**](ResponseCallLogObject.md) | | [optional] -**additional_data** | [**CallLogsResponseAdditionalData**](CallLogsResponseAdditionalData.md) | | [optional] - - diff --git a/docs/CallLogsResponseAdditionalData.md b/docs/CallLogsResponseAdditionalData.md deleted file mode 100644 index d30a5594..00000000 --- a/docs/CallLogsResponseAdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.CallLogsResponseAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ChangelogResponse.md b/docs/ChangelogResponse.md deleted file mode 100644 index 5526bbfd..00000000 --- a/docs/ChangelogResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ChangelogResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ChangelogResponseAllOfData]**](ChangelogResponseAllOfData.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/ChangelogResponseAllOf.md b/docs/ChangelogResponseAllOf.md deleted file mode 100644 index f166dfba..00000000 --- a/docs/ChangelogResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ChangelogResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ChangelogResponseAllOfData]**](ChangelogResponseAllOfData.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/ChangelogResponseAllOfData.md b/docs/ChangelogResponseAllOfData.md deleted file mode 100644 index c541c4eb..00000000 --- a/docs/ChangelogResponseAllOfData.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.ChangelogResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**field_key** | **String** | The key of the field that was changed | [optional] -**old_value** | **String** | The value of the field before the change | [optional] -**new_value** | **String** | The value of the field after the change | [optional] -**actor_user_id** | **Number** | The ID of the user who made the change | [optional] -**time** | **String** | The date and time of the change | [optional] -**change_source** | **String** | The source of change, for example 'app', 'mobile', 'api', etc. | [optional] -**change_source_user_agent** | **String** | The user agent from which the change was made | [optional] -**is_bulk_update_flag** | **Boolean** | Whether the change was made as part of a bulk update | [optional] - - diff --git a/docs/ChannelObject.md b/docs/ChannelObject.md deleted file mode 100644 index 8f981f13..00000000 --- a/docs/ChannelObject.md +++ /dev/null @@ -1,26 +0,0 @@ -# Pipedrive.ChannelObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the channel | -**provider_channel_id** | **String** | The channel ID | -**avatar_url** | **String** | The URL for an icon that represents your channel | [optional] -**template_support** | **Boolean** | If true, enables templates logic on UI. Requires getTemplates endpoint implemented. Find out more [here](https://pipedrive.readme.io/docs/implementing-messaging-app-extension). | [optional] [default to false] -**provider_type** | **String** | It controls the icons (like the icon next to the conversation) | [optional] [default to 'other'] - - - -## Enum: ProviderTypeEnum - - -* `facebook` (value: `"facebook"`) - -* `whatsapp` (value: `"whatsapp"`) - -* `other` (value: `"other"`) - - - - diff --git a/docs/ChannelObjectResponse.md b/docs/ChannelObjectResponse.md deleted file mode 100644 index 912ffe3d..00000000 --- a/docs/ChannelObjectResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ChannelObjectResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ChannelObjectResponseData**](ChannelObjectResponseData.md) | | [optional] - - diff --git a/docs/ChannelObjectResponseData.md b/docs/ChannelObjectResponseData.md deleted file mode 100644 index ec8ff578..00000000 --- a/docs/ChannelObjectResponseData.md +++ /dev/null @@ -1,31 +0,0 @@ -# Pipedrive.ChannelObjectResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The unique channel ID used internally in omnichannel-api and the frontend of the extension | [optional] -**name** | **String** | The name of the channel | [optional] -**avatar_url** | **String** | The URL for an icon that represents your channel | [optional] -**provider_channel_id** | **String** | The channel ID you specified while creating the channel | [optional] -**marketplace_client_id** | **String** | The client_id of your app in Pipedrive marketplace | [optional] -**pd_company_id** | **Number** | The ID of the user's company in Pipedrive | [optional] -**pd_user_id** | **Number** | The ID of the user in Pipedrive | [optional] -**created_at** | **Date** | The date and time when your channel was created in the API | [optional] -**provider_type** | **String** | Value of the provider_type sent to this endpoint | [optional] -**template_support** | **Boolean** | Value of the template_support sent to this endpoint | [optional] - - - -## Enum: ProviderTypeEnum - - -* `facebook` (value: `"facebook"`) - -* `whatsapp` (value: `"whatsapp"`) - -* `other` (value: `"other"`) - - - - diff --git a/docs/ChannelsApi.md b/docs/ChannelsApi.md deleted file mode 100644 index 8788c205..00000000 --- a/docs/ChannelsApi.md +++ /dev/null @@ -1,230 +0,0 @@ -# Pipedrive.ChannelsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addChannel**](ChannelsApi.md#addChannel) | **POST** /channels | Add a channel -[**deleteChannel**](ChannelsApi.md#deleteChannel) | **DELETE** /channels/{id} | Delete a channel -[**deleteConversation**](ChannelsApi.md#deleteConversation) | **DELETE** /channels/{channel-id}/conversations/{conversation-id} | Delete a conversation -[**receiveMessage**](ChannelsApi.md#receiveMessage) | **POST** /channels/messages/receive | Receives an incoming message - - - -## addChannel - -> ChannelObjectResponse addChannel(opts) - -Add a channel - -Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ChannelsApi(apiClient); -let opts = Pipedrive.ChannelObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addChannel(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ChannelObject** | [**ChannelObject**](ChannelObject.md)| | [optional] - -### Return type - -[**ChannelObjectResponse**](ChannelObjectResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteChannel - -> DeleteChannelSuccess deleteChannel(id) - -Delete a channel - -Deletes an existing messenger’s channel and all related entities (conversations and messages). To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ChannelsApi(apiClient); -let id = "id_example"; // String | The ID of the channel provided by the integration -apiInstance.deleteChannel(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the channel provided by the integration | - -### Return type - -[**DeleteChannelSuccess**](DeleteChannelSuccess.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteConversation - -> DeleteConversationSuccess deleteConversation(channelId, conversationId) - -Delete a conversation - -Deletes an existing conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ChannelsApi(apiClient); -let channelId = "channelId_example"; // String | The ID of the channel provided by the integration -let conversationId = "conversationId_example"; // String | The ID of the conversation provided by the integration -apiInstance.deleteConversation(channelId, conversationId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **channel-id** | **String**| The ID of the channel provided by the integration | - **conversation-id** | **String**| The ID of the conversation provided by the integration | - -### Return type - -[**DeleteConversationSuccess**](DeleteConversationSuccess.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## receiveMessage - -> InlineResponse200 receiveMessage(opts) - -Receives an incoming message - -Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ChannelsApi(apiClient); -let opts = Pipedrive.MessageObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.receiveMessage(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **MessageObject** | [**MessageObject**](MessageObject.md)| | [optional] - -### Return type - -[**InlineResponse200**](InlineResponse200.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/CommentPostPutObject.md b/docs/CommentPostPutObject.md deleted file mode 100644 index 5b97fd88..00000000 --- a/docs/CommentPostPutObject.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.CommentPostPutObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **String** | The content of the comment in HTML format. Subject to sanitization on the back-end. | - - diff --git a/docs/CommonMailThread.md b/docs/CommonMailThread.md deleted file mode 100644 index 6701bfc1..00000000 --- a/docs/CommonMailThread.md +++ /dev/null @@ -1,22 +0,0 @@ -# Pipedrive.CommonMailThread - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | ID of the mail thread | [optional] -**account_id** | **String** | The connection account ID | [optional] -**user_id** | **Number** | ID of the user whom mail message will be assigned to | [optional] -**subject** | **String** | The subject | [optional] -**snippet** | **String** | A snippet | [optional] -**read_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is read | [optional] -**mail_tracking_status** | **String** | Mail tracking status | [optional] -**has_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has an attachment | [optional] -**has_inline_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has inline attachments | [optional] -**has_real_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread has real attachments (which are not inline) | [optional] -**deleted_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is deleted | [optional] -**synced_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail thread is synced | [optional] -**smart_bcc_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether one of the parties of the mail thread is Bcc | [optional] -**mail_link_tracking_enabled_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the link tracking of the mail thread is enabled | [optional] - - diff --git a/docs/CreateRemoteFileAndLinkItToItem.md b/docs/CreateRemoteFileAndLinkItToItem.md deleted file mode 100644 index c0e9788a..00000000 --- a/docs/CreateRemoteFileAndLinkItToItem.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.CreateRemoteFileAndLinkItToItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**FileData**](FileData.md) | | [optional] - - diff --git a/docs/CreateTeam.md b/docs/CreateTeam.md deleted file mode 100644 index 85cd6ec6..00000000 --- a/docs/CreateTeam.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.CreateTeam - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The team name | [optional] -**description** | **String** | The team description | [optional] -**manager_id** | **Number** | The team manager ID | [optional] -**users** | **[Number]** | The list of user IDs | [optional] - - diff --git a/docs/Currencies.md b/docs/Currencies.md deleted file mode 100644 index c7dab3fd..00000000 --- a/docs/Currencies.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.Currencies - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[BaseCurrency]**](BaseCurrency.md) | The array of currencies | [optional] - - diff --git a/docs/CurrenciesApi.md b/docs/CurrenciesApi.md deleted file mode 100644 index f3d662ec..00000000 --- a/docs/CurrenciesApi.md +++ /dev/null @@ -1,65 +0,0 @@ -# Pipedrive.CurrenciesApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getCurrencies**](CurrenciesApi.md#getCurrencies) | **GET** /currencies | Get all supported currencies - - - -## getCurrencies - -> Currencies getCurrencies(opts) - -Get all supported currencies - -Returns all supported currencies in given account which should be used when saving monetary values with other objects. The `code` parameter of the returning objects is the currency code according to ISO 4217 for all non-custom currencies. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.CurrenciesApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'term': "term_example" // String | Optional search term that is searched for from currency's name and/or code -}; -apiInstance.getCurrencies(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **term** | **String**| Optional search term that is searched for from currency's name and/or code | [optional] - -### Return type - -[**Currencies**](Currencies.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/DealCollectionResponseObject.md b/docs/DealCollectionResponseObject.md deleted file mode 100644 index f62a6bda..00000000 --- a/docs/DealCollectionResponseObject.md +++ /dev/null @@ -1,29 +0,0 @@ -# Pipedrive.DealCollectionResponseObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal | [optional] -**creator_user_id** | **Number** | The ID of the deal creator | [optional] -**user_id** | **Number** | The ID of the user | [optional] -**person_id** | **Number** | The ID of the person associated with the deal | [optional] -**org_id** | **Number** | The ID of the organization associated with the deal | [optional] -**stage_id** | **Number** | The ID of the deal stage | [optional] -**title** | **String** | The title of the deal | [optional] -**value** | **Number** | The value of the deal | [optional] -**currency** | **String** | The currency associated with the deal | [optional] -**add_time** | **String** | The creation date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The last update date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**status** | **String** | The status of the deal | [optional] -**probability** | **Number** | The success probability percentage of the deal | [optional] -**lost_reason** | **String** | The reason for losing the deal | [optional] -**visible_to** | **String** | The visibility of the deal | [optional] -**close_time** | **String** | The date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**pipeline_id** | **Number** | The ID of the pipeline associated with the deal | [optional] -**won_time** | **String** | The date and time of changing the deal status to won in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**lost_time** | **String** | The date and time of changing the deal status to lost in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**expected_close_date** | **Date** | The expected close date of the deal | [optional] -**label** | **String** | The label or multiple labels assigned to the deal | [optional] - - diff --git a/docs/DealCountAndActivityInfo.md b/docs/DealCountAndActivityInfo.md deleted file mode 100644 index 76484437..00000000 --- a/docs/DealCountAndActivityInfo.md +++ /dev/null @@ -1,21 +0,0 @@ -# Pipedrive.DealCountAndActivityInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] - - diff --git a/docs/DealFieldsApi.md b/docs/DealFieldsApi.md deleted file mode 100644 index c0250b83..00000000 --- a/docs/DealFieldsApi.md +++ /dev/null @@ -1,343 +0,0 @@ -# Pipedrive.DealFieldsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addDealField**](DealFieldsApi.md#addDealField) | **POST** /dealFields | Add a new deal field -[**deleteDealField**](DealFieldsApi.md#deleteDealField) | **DELETE** /dealFields/{id} | Delete a deal field -[**deleteDealFields**](DealFieldsApi.md#deleteDealFields) | **DELETE** /dealFields | Delete multiple deal fields in bulk -[**getDealField**](DealFieldsApi.md#getDealField) | **GET** /dealFields/{id} | Get one deal field -[**getDealFields**](DealFieldsApi.md#getDealFields) | **GET** /dealFields | Get all deal fields -[**updateDealField**](DealFieldsApi.md#updateDealField) | **PUT** /dealFields/{id} | Update a deal field - - - -## addDealField - -> FieldResponse addDealField(opts) - -Add a new deal field - -Adds a new deal field. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-new-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">adding a new custom field</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealFieldsApi(apiClient); -let opts = Pipedrive.FieldCreateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addDealField(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **FieldCreateRequest** | [**FieldCreateRequest**](FieldCreateRequest.md)| | [optional] - -### Return type - -[**FieldResponse**](FieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteDealField - -> DeleteResponse deleteDealField(id) - -Delete a deal field - -Marks a field as deleted. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/deleting-a-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">deleting a custom field</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealFieldsApi(apiClient); -let id = 56; // Number | The ID of the field -apiInstance.deleteDealField(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the field | - -### Return type - -[**DeleteResponse**](DeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteDealFields - -> BulkDeleteResponse deleteDealFields(ids) - -Delete multiple deal fields in bulk - -Marks multiple deal fields as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealFieldsApi(apiClient); -let ids = "ids_example"; // String | The comma-separated field IDs to delete -apiInstance.deleteDealFields(ids).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ids** | **String**| The comma-separated field IDs to delete | - -### Return type - -[**BulkDeleteResponse**](BulkDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealField - -> FieldResponse getDealField(id) - -Get one deal field - -Returns data about a specific deal field. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealFieldsApi(apiClient); -let id = 56; // Number | The ID of the field -apiInstance.getDealField(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the field | - -### Return type - -[**FieldResponse**](FieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealFields - -> FieldsResponse getDealFields(opts) - -Get all deal fields - -Returns data about all deal fields. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealFieldsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getDealFields(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**FieldsResponse**](FieldsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateDealField - -> FieldResponse updateDealField(id, opts) - -Update a deal field - -Updates a deal field. For more information, see the tutorial for <a href=\" https://pipedrive.readme.io/docs/updating-custom-field-value \" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields' values</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealFieldsApi(apiClient); -let id = 56; // Number | The ID of the field -let opts = Pipedrive.FieldUpdateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateDealField(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the field | - **FieldUpdateRequest** | [**FieldUpdateRequest**](FieldUpdateRequest.md)| | [optional] - -### Return type - -[**FieldResponse**](FieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/DealFlowResponse.md b/docs/DealFlowResponse.md deleted file mode 100644 index d6595921..00000000 --- a/docs/DealFlowResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.DealFlowResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[DealFlowResponseAllOfData]**](DealFlowResponseAllOfData.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**DealFlowResponseAllOfRelatedObjects**](DealFlowResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/DealFlowResponseAllOf.md b/docs/DealFlowResponseAllOf.md deleted file mode 100644 index 64990cb0..00000000 --- a/docs/DealFlowResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.DealFlowResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[DealFlowResponseAllOfData]**](DealFlowResponseAllOfData.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**DealFlowResponseAllOfRelatedObjects**](DealFlowResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/DealFlowResponseAllOfData.md b/docs/DealFlowResponseAllOfData.md deleted file mode 100644 index de862505..00000000 --- a/docs/DealFlowResponseAllOfData.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.DealFlowResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | **String** | The type of the deal update. (Possible object types - dealChange, note, activity, mailMessage, invoice, document, file) | [optional] -**timestamp** | **String** | The creation date and time of the update | [optional] -**data** | **Object** | The data related to the update | [optional] - - diff --git a/docs/DealFlowResponseAllOfRelatedObjects.md b/docs/DealFlowResponseAllOfRelatedObjects.md deleted file mode 100644 index 012b5ac1..00000000 --- a/docs/DealFlowResponseAllOfRelatedObjects.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.DealFlowResponseAllOfRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**deal** | [**RelatedDealData**](RelatedDealData.md) | | [optional] -**organization** | [**RelatedOrganizationData**](RelatedOrganizationData.md) | | [optional] -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] -**person** | [**RelatedPersonDataWithActiveFlag**](RelatedPersonDataWithActiveFlag.md) | | [optional] - - diff --git a/docs/DealListActivitiesResponse.md b/docs/DealListActivitiesResponse.md deleted file mode 100644 index 263ca549..00000000 --- a/docs/DealListActivitiesResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.DealListActivitiesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ActivityResponseObject]**](ActivityResponseObject.md) | The array of activities | [optional] -**additional_data** | [**ActivityDistributionDataWithAdditionalData**](ActivityDistributionDataWithAdditionalData.md) | | [optional] -**related_objects** | [**DealListActivitiesResponseAllOfRelatedObjects**](DealListActivitiesResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/DealListActivitiesResponseAllOf.md b/docs/DealListActivitiesResponseAllOf.md deleted file mode 100644 index 1f86fd5d..00000000 --- a/docs/DealListActivitiesResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.DealListActivitiesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ActivityResponseObject]**](ActivityResponseObject.md) | The array of activities | [optional] -**additional_data** | [**ActivityDistributionDataWithAdditionalData**](ActivityDistributionDataWithAdditionalData.md) | | [optional] -**related_objects** | [**DealListActivitiesResponseAllOfRelatedObjects**](DealListActivitiesResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/DealListActivitiesResponseAllOfRelatedObjects.md b/docs/DealListActivitiesResponseAllOfRelatedObjects.md deleted file mode 100644 index 86db176b..00000000 --- a/docs/DealListActivitiesResponseAllOfRelatedObjects.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.DealListActivitiesResponseAllOfRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization** | [**RelatedOrganizationDataWithActiveFlag**](RelatedOrganizationDataWithActiveFlag.md) | | [optional] -**person** | [**RelatedPersonDataWithActiveFlag**](RelatedPersonDataWithActiveFlag.md) | | [optional] -**deal** | [**RelatedDealData**](RelatedDealData.md) | | [optional] -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] - - diff --git a/docs/DealNonStrict.md b/docs/DealNonStrict.md deleted file mode 100644 index 5997e10d..00000000 --- a/docs/DealNonStrict.md +++ /dev/null @@ -1,75 +0,0 @@ -# Pipedrive.DealNonStrict - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal | [optional] -**creator_user_id** | [**DealNonStrictModeFieldsCreatorUserId**](DealNonStrictModeFieldsCreatorUserId.md) | | [optional] -**user_id** | [**DealUserDataWithId**](DealUserDataWithId.md) | | [optional] -**person_id** | [**DealPersonDataWithId**](DealPersonDataWithId.md) | | [optional] -**org_id** | [**DealOrganizationDataWithId**](DealOrganizationDataWithId.md) | | [optional] -**stage_id** | **Number** | The ID of the deal stage | [optional] -**title** | **String** | The title of the deal | [optional] -**value** | **Number** | The value of the deal | [optional] -**currency** | **String** | The currency associated with the deal | [optional] -**add_time** | **String** | The creation date and time of the deal | [optional] -**update_time** | **String** | The last updated date and time of the deal | [optional] -**stage_change_time** | **String** | The last updated date and time of the deal stage | [optional] -**active** | **Boolean** | Whether the deal is active or not | [optional] -**deleted** | **Boolean** | Whether the deal is deleted or not | [optional] -**status** | **String** | The status of the deal | [optional] -**probability** | **Number** | The success probability percentage of the deal | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] -**lost_reason** | **String** | The reason for losing the deal | [optional] -**visible_to** | **String** | The visibility of the deal | [optional] -**close_time** | **String** | The date and time of closing the deal | [optional] -**pipeline_id** | **Number** | The ID of the pipeline associated with the deal | [optional] -**won_time** | **String** | The date and time of changing the deal status as won | [optional] -**first_won_time** | **String** | The date and time of the first time changing the deal status as won | [optional] -**lost_time** | **String** | The date and time of changing the deal status as lost | [optional] -**products_count** | **Number** | The number of products associated with the deal | [optional] -**files_count** | **Number** | The number of files associated with the deal | [optional] -**notes_count** | **Number** | The number of notes associated with the deal | [optional] -**followers_count** | **Number** | The number of followers associated with the deal | [optional] -**email_messages_count** | **Number** | The number of emails associated with the deal | [optional] -**activities_count** | **Number** | The number of activities associated with the deal | [optional] -**done_activities_count** | **Number** | The number of completed activities associated with the deal | [optional] -**undone_activities_count** | **Number** | The number of incomplete activities associated with the deal | [optional] -**participants_count** | **Number** | The number of participants associated with the deal | [optional] -**expected_close_date** | **Date** | The expected close date of the deal | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the deal | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the deal | [optional] -**label** | **String** | The label or multiple labels assigned to the deal | [optional] -**stage_order_nr** | **Number** | The order number of the deal stage associated with the deal | [optional] -**person_name** | **String** | The name of the person associated with the deal | [optional] -**org_name** | **String** | The name of the organization associated with the deal | [optional] -**next_activity_subject** | **String** | The subject of the next activity associated with the deal | [optional] -**next_activity_type** | **String** | The type of the next activity associated with the deal | [optional] -**next_activity_duration** | **String** | The duration of the next activity associated with the deal | [optional] -**next_activity_note** | **String** | The note of the next activity associated with the deal | [optional] -**formatted_value** | **String** | The deal value formatted with selected currency. E.g. US$500 | [optional] -**weighted_value** | **Number** | Probability times deal value. Probability can either be deal probability or if not set, then stage probability. | [optional] -**formatted_weighted_value** | **String** | The weighted_value formatted with selected currency. E.g. US$500 | [optional] -**weighted_value_currency** | **String** | The currency associated with the deal | [optional] -**rotten_time** | **String** | The date and time of changing the deal status as rotten | [optional] -**owner_name** | **String** | The name of the deal owner | [optional] -**cc_email** | **String** | The BCC email of the deal | [optional] -**org_hidden** | **Boolean** | If the organization that is associated with the deal is hidden or not | [optional] -**person_hidden** | **Boolean** | If the person that is associated with the deal is hidden or not | [optional] -**origin** | **String** | The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. | [optional] -**origin_id** | **String** | The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. | [optional] -**channel** | **Number** | The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. | [optional] -**arr** | **Number** | Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal | [optional] -**mrr** | **Number** | Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal | [optional] -**acv** | **Number** | Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal | [optional] -**arr_currency** | **String** | Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null | [optional] -**mrr_currency** | **String** | Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null | [optional] -**acv_currency** | **String** | Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null | [optional] - - diff --git a/docs/DealNonStrictModeFields.md b/docs/DealNonStrictModeFields.md deleted file mode 100644 index 1085ff09..00000000 --- a/docs/DealNonStrictModeFields.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.DealNonStrictModeFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal | [optional] -**creator_user_id** | [**DealNonStrictModeFieldsCreatorUserId**](DealNonStrictModeFieldsCreatorUserId.md) | | [optional] -**user_id** | [**DealUserDataWithId**](DealUserDataWithId.md) | | [optional] -**person_id** | [**DealPersonDataWithId**](DealPersonDataWithId.md) | | [optional] -**org_id** | [**DealOrganizationDataWithId**](DealOrganizationDataWithId.md) | | [optional] - - diff --git a/docs/DealNonStrictModeFieldsCreatorUserId.md b/docs/DealNonStrictModeFieldsCreatorUserId.md deleted file mode 100644 index 7ecc3436..00000000 --- a/docs/DealNonStrictModeFieldsCreatorUserId.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.DealNonStrictModeFieldsCreatorUserId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal creator | [optional] -**name** | **String** | The name of the deal creator | [optional] -**email** | **String** | The email of the deal creator | [optional] -**has_pic** | **Boolean** | If the creator has a picture or not | [optional] -**pic_hash** | **String** | The creator picture hash | [optional] -**active_flag** | **Boolean** | Whether the creator is active or not | [optional] -**value** | **Number** | The ID of the deal creator | [optional] - - diff --git a/docs/DealNonStrictWithDetails.md b/docs/DealNonStrictWithDetails.md deleted file mode 100644 index 5e215cd2..00000000 --- a/docs/DealNonStrictWithDetails.md +++ /dev/null @@ -1,81 +0,0 @@ -# Pipedrive.DealNonStrictWithDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal | [optional] -**creator_user_id** | [**DealNonStrictModeFieldsCreatorUserId**](DealNonStrictModeFieldsCreatorUserId.md) | | [optional] -**user_id** | [**DealUserDataWithId**](DealUserDataWithId.md) | | [optional] -**person_id** | [**DealPersonDataWithId**](DealPersonDataWithId.md) | | [optional] -**org_id** | [**DealOrganizationDataWithId**](DealOrganizationDataWithId.md) | | [optional] -**stage_id** | **Number** | The ID of the deal stage | [optional] -**title** | **String** | The title of the deal | [optional] -**value** | **Number** | The value of the deal | [optional] -**currency** | **String** | The currency associated with the deal | [optional] -**add_time** | **String** | The creation date and time of the deal | [optional] -**update_time** | **String** | The last updated date and time of the deal | [optional] -**stage_change_time** | **String** | The last updated date and time of the deal stage | [optional] -**active** | **Boolean** | Whether the deal is active or not | [optional] -**deleted** | **Boolean** | Whether the deal is deleted or not | [optional] -**status** | **String** | The status of the deal | [optional] -**probability** | **Number** | The success probability percentage of the deal | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] -**lost_reason** | **String** | The reason for losing the deal | [optional] -**visible_to** | **String** | The visibility of the deal | [optional] -**close_time** | **String** | The date and time of closing the deal | [optional] -**pipeline_id** | **Number** | The ID of the pipeline associated with the deal | [optional] -**won_time** | **String** | The date and time of changing the deal status as won | [optional] -**first_won_time** | **String** | The date and time of the first time changing the deal status as won | [optional] -**lost_time** | **String** | The date and time of changing the deal status as lost | [optional] -**products_count** | **Number** | The number of products associated with the deal | [optional] -**files_count** | **Number** | The number of files associated with the deal | [optional] -**notes_count** | **Number** | The number of notes associated with the deal | [optional] -**followers_count** | **Number** | The number of followers associated with the deal | [optional] -**email_messages_count** | **Number** | The number of emails associated with the deal | [optional] -**activities_count** | **Number** | The number of activities associated with the deal | [optional] -**done_activities_count** | **Number** | The number of completed activities associated with the deal | [optional] -**undone_activities_count** | **Number** | The number of incomplete activities associated with the deal | [optional] -**participants_count** | **Number** | The number of participants associated with the deal | [optional] -**expected_close_date** | **Date** | The expected close date of the deal | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the deal | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the deal | [optional] -**label** | **String** | The label or multiple labels assigned to the deal | [optional] -**stage_order_nr** | **Number** | The order number of the deal stage associated with the deal | [optional] -**person_name** | **String** | The name of the person associated with the deal | [optional] -**org_name** | **String** | The name of the organization associated with the deal | [optional] -**next_activity_subject** | **String** | The subject of the next activity associated with the deal | [optional] -**next_activity_type** | **String** | The type of the next activity associated with the deal | [optional] -**next_activity_duration** | **String** | The duration of the next activity associated with the deal | [optional] -**next_activity_note** | **String** | The note of the next activity associated with the deal | [optional] -**formatted_value** | **String** | The deal value formatted with selected currency. E.g. US$500 | [optional] -**weighted_value** | **Number** | Probability times deal value. Probability can either be deal probability or if not set, then stage probability. | [optional] -**formatted_weighted_value** | **String** | The weighted_value formatted with selected currency. E.g. US$500 | [optional] -**weighted_value_currency** | **String** | The currency associated with the deal | [optional] -**rotten_time** | **String** | The date and time of changing the deal status as rotten | [optional] -**owner_name** | **String** | The name of the deal owner | [optional] -**cc_email** | **String** | The BCC email of the deal | [optional] -**org_hidden** | **Boolean** | If the organization that is associated with the deal is hidden or not | [optional] -**person_hidden** | **Boolean** | If the person that is associated with the deal is hidden or not | [optional] -**origin** | **String** | The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. | [optional] -**origin_id** | **String** | The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. | [optional] -**channel** | **Number** | The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. | [optional] -**arr** | **Number** | Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal | [optional] -**mrr** | **Number** | Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal | [optional] -**acv** | **Number** | Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal | [optional] -**arr_currency** | **String** | Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null | [optional] -**mrr_currency** | **String** | Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null | [optional] -**acv_currency** | **String** | Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null | [optional] -**average_time_to_won** | [**DealNonStrictWithDetailsAllOfAverageTimeToWon**](DealNonStrictWithDetailsAllOfAverageTimeToWon.md) | | [optional] -**average_stage_progress** | **Number** | The average of the deal stage progression | [optional] -**age** | [**DealNonStrictWithDetailsAllOfAge**](DealNonStrictWithDetailsAllOfAge.md) | | [optional] -**stay_in_pipeline_stages** | [**DealNonStrictWithDetailsAllOfStayInPipelineStages**](DealNonStrictWithDetailsAllOfStayInPipelineStages.md) | | [optional] -**last_activity** | **Object** | The details of the last activity associated with the deal | [optional] -**next_activity** | **Object** | The details of the next activity associated with the deal | [optional] - - diff --git a/docs/DealNonStrictWithDetailsAllOf.md b/docs/DealNonStrictWithDetailsAllOf.md deleted file mode 100644 index 31b4c0c9..00000000 --- a/docs/DealNonStrictWithDetailsAllOf.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.DealNonStrictWithDetailsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**average_time_to_won** | [**DealNonStrictWithDetailsAllOfAverageTimeToWon**](DealNonStrictWithDetailsAllOfAverageTimeToWon.md) | | [optional] -**average_stage_progress** | **Number** | The average of the deal stage progression | [optional] -**age** | [**DealNonStrictWithDetailsAllOfAge**](DealNonStrictWithDetailsAllOfAge.md) | | [optional] -**stay_in_pipeline_stages** | [**DealNonStrictWithDetailsAllOfStayInPipelineStages**](DealNonStrictWithDetailsAllOfStayInPipelineStages.md) | | [optional] -**last_activity** | **Object** | The details of the last activity associated with the deal | [optional] -**next_activity** | **Object** | The details of the next activity associated with the deal | [optional] - - diff --git a/docs/DealNonStrictWithDetailsAllOfAge.md b/docs/DealNonStrictWithDetailsAllOfAge.md deleted file mode 100644 index edfa418a..00000000 --- a/docs/DealNonStrictWithDetailsAllOfAge.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.DealNonStrictWithDetailsAllOfAge - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**y** | **Number** | Years | [optional] -**m** | **Number** | Months | [optional] -**d** | **Number** | Days | [optional] -**h** | **Number** | Hours | [optional] -**i** | **Number** | Minutes | [optional] -**s** | **Number** | Seconds | [optional] -**total_seconds** | **Number** | The total time in seconds | [optional] - - diff --git a/docs/DealNonStrictWithDetailsAllOfAverageTimeToWon.md b/docs/DealNonStrictWithDetailsAllOfAverageTimeToWon.md deleted file mode 100644 index 8019bdf3..00000000 --- a/docs/DealNonStrictWithDetailsAllOfAverageTimeToWon.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.DealNonStrictWithDetailsAllOfAverageTimeToWon - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**y** | **Number** | Years | [optional] -**m** | **Number** | Months | [optional] -**d** | **Number** | Days | [optional] -**h** | **Number** | Hours | [optional] -**i** | **Number** | Minutes | [optional] -**s** | **Number** | Seconds | [optional] -**total_seconds** | **Number** | The total time in seconds | [optional] - - diff --git a/docs/DealNonStrictWithDetailsAllOfStayInPipelineStages.md b/docs/DealNonStrictWithDetailsAllOfStayInPipelineStages.md deleted file mode 100644 index d4548d7b..00000000 --- a/docs/DealNonStrictWithDetailsAllOfStayInPipelineStages.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DealNonStrictWithDetailsAllOfStayInPipelineStages - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**times_in_stages** | **Object** | The number of seconds a deal has been in each stage of the pipeline | [optional] -**order_of_stages** | **[Number]** | The order of the deal progression through the pipeline stages | [optional] - - diff --git a/docs/DealOrganizationData.md b/docs/DealOrganizationData.md deleted file mode 100644 index b9e51824..00000000 --- a/docs/DealOrganizationData.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.DealOrganizationData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the organization associated with the deal | [optional] -**people_count** | **Number** | The number of people connected with the organization that is associated with the deal | [optional] -**owner_id** | **Number** | The ID of the owner of the organization that is associated with the deal | [optional] -**address** | **String** | The address of the organization that is associated with the deal | [optional] -**active_flag** | **Boolean** | Whether the associated organization is active or not | [optional] -**cc_email** | **String** | The BCC email of the organization associated with the deal | [optional] - - diff --git a/docs/DealOrganizationDataWithId.md b/docs/DealOrganizationDataWithId.md deleted file mode 100644 index 2e22f690..00000000 --- a/docs/DealOrganizationDataWithId.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.DealOrganizationDataWithId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the organization associated with the deal | [optional] -**people_count** | **Number** | The number of people connected with the organization that is associated with the deal | [optional] -**owner_id** | **Number** | The ID of the owner of the organization that is associated with the deal | [optional] -**address** | **String** | The address of the organization that is associated with the deal | [optional] -**active_flag** | **Boolean** | Whether the associated organization is active or not | [optional] -**cc_email** | **String** | The BCC email of the organization associated with the deal | [optional] -**value** | **Number** | The ID of the organization associated with the deal | [optional] - - diff --git a/docs/DealOrganizationDataWithIdAllOf.md b/docs/DealOrganizationDataWithIdAllOf.md deleted file mode 100644 index b5fa391e..00000000 --- a/docs/DealOrganizationDataWithIdAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealOrganizationDataWithIdAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **Number** | The ID of the organization associated with the deal | [optional] - - diff --git a/docs/DealParticipantCountInfo.md b/docs/DealParticipantCountInfo.md deleted file mode 100644 index c8d49aa3..00000000 --- a/docs/DealParticipantCountInfo.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DealParticipantCountInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**participant_open_deals_count** | **Number** | The count of open participant deals related with the item | [optional] -**participant_closed_deals_count** | **Number** | The count of closed participant deals related with the item | [optional] - - diff --git a/docs/DealParticipants.md b/docs/DealParticipants.md deleted file mode 100644 index 1359917a..00000000 --- a/docs/DealParticipants.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.DealParticipants - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**[PersonItem]**](PersonItem.md) | The array of participants | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**GetDealsRelatedObjects**](GetDealsRelatedObjects.md) | | [optional] - - diff --git a/docs/DealParticipantsChangelog.md b/docs/DealParticipantsChangelog.md deleted file mode 100644 index 8854def7..00000000 --- a/docs/DealParticipantsChangelog.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.DealParticipantsChangelog - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actor_user_id** | **Number** | The ID of the user | [optional] -**person_id** | **Number** | The ID of the person | [optional] -**action** | **String** | Deal participant action type | [optional] -**time** | **String** | The deal participant action log time | [optional] - - diff --git a/docs/DealPersonData.md b/docs/DealPersonData.md deleted file mode 100644 index 9f3f8102..00000000 --- a/docs/DealPersonData.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.DealPersonData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active_flag** | **Boolean** | Whether the associated person is active or not | [optional] -**name** | **String** | The name of the person associated with the deal | [optional] -**email** | [**[DealPersonDataEmail]**](DealPersonDataEmail.md) | The emails of the person associated with the deal | [optional] -**phone** | [**[DealPersonDataPhone]**](DealPersonDataPhone.md) | The phone numbers of the person associated with the deal | [optional] -**owner_id** | **Number** | The ID of the owner of the person that is associated with the deal | [optional] - - diff --git a/docs/DealPersonDataEmail.md b/docs/DealPersonDataEmail.md deleted file mode 100644 index a1b16ff2..00000000 --- a/docs/DealPersonDataEmail.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.DealPersonDataEmail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | **String** | The type of the email | [optional] -**value** | **String** | The email of the associated person | [optional] -**primary** | **Boolean** | If this is the primary email or not | [optional] - - diff --git a/docs/DealPersonDataPhone.md b/docs/DealPersonDataPhone.md deleted file mode 100644 index 93be825a..00000000 --- a/docs/DealPersonDataPhone.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.DealPersonDataPhone - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | **String** | The type of the phone number | [optional] -**value** | **String** | The phone number of the person associated with the deal | [optional] -**primary** | **Boolean** | If this is the primary phone number or not | [optional] - - diff --git a/docs/DealPersonDataWithId.md b/docs/DealPersonDataWithId.md deleted file mode 100644 index 6a975b82..00000000 --- a/docs/DealPersonDataWithId.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.DealPersonDataWithId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active_flag** | **Boolean** | Whether the associated person is active or not | [optional] -**name** | **String** | The name of the person associated with the deal | [optional] -**email** | [**[DealPersonDataEmail]**](DealPersonDataEmail.md) | The emails of the person associated with the deal | [optional] -**phone** | [**[DealPersonDataPhone]**](DealPersonDataPhone.md) | The phone numbers of the person associated with the deal | [optional] -**owner_id** | **Number** | The ID of the owner of the person that is associated with the deal | [optional] -**value** | **Number** | The ID of the person associated with the deal | [optional] - - diff --git a/docs/DealPersonDataWithIdAllOf.md b/docs/DealPersonDataWithIdAllOf.md deleted file mode 100644 index 2d8dedec..00000000 --- a/docs/DealPersonDataWithIdAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealPersonDataWithIdAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **Number** | The ID of the person associated with the deal | [optional] - - diff --git a/docs/DealProductRequestBody.md b/docs/DealProductRequestBody.md deleted file mode 100644 index b2b30eba..00000000 --- a/docs/DealProductRequestBody.md +++ /dev/null @@ -1,42 +0,0 @@ -# Pipedrive.DealProductRequestBody - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_id** | **Number** | The ID of the product to use | [optional] -**item_price** | **Number** | The price at which this product will be added to the deal | [optional] -**quantity** | **Number** | How many items of this product will be added to the deal | [optional] -**discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] -**discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] -**comments** | **String** | A textual comment associated with this product-deal attachment | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**tax_method** | **String** | The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount | [optional] -**enabled_flag** | **Boolean** | Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring | [optional] [default to true] - - - -## Enum: DiscountTypeEnum - - -* `percentage` (value: `"percentage"`) - -* `amount` (value: `"amount"`) - - - - - -## Enum: TaxMethodEnum - - -* `exclusive` (value: `"exclusive"`) - -* `inclusive` (value: `"inclusive"`) - -* `none` (value: `"none"`) - - - - diff --git a/docs/DealProductUnitDuration.md b/docs/DealProductUnitDuration.md deleted file mode 100644 index d4b41643..00000000 --- a/docs/DealProductUnitDuration.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.DealProductUnitDuration - -## Enum - - -* `hourly` (value: `"hourly"`) - -* `daily` (value: `"daily"`) - -* `weekly` (value: `"weekly"`) - -* `monthly` (value: `"monthly"`) - -* `yearly` (value: `"yearly"`) - - diff --git a/docs/DealSearchItem.md b/docs/DealSearchItem.md deleted file mode 100644 index 4f55f0bf..00000000 --- a/docs/DealSearchItem.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DealSearchItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result_score** | **Number** | Search result relevancy | [optional] -**item** | [**DealSearchItemItem**](DealSearchItemItem.md) | | [optional] - - diff --git a/docs/DealSearchItemItem.md b/docs/DealSearchItemItem.md deleted file mode 100644 index d467c407..00000000 --- a/docs/DealSearchItemItem.md +++ /dev/null @@ -1,21 +0,0 @@ -# Pipedrive.DealSearchItemItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal | [optional] -**type** | **String** | The type of the item | [optional] -**title** | **String** | The title of the deal | [optional] -**value** | **Number** | The value of the deal | [optional] -**currency** | **String** | The currency of the deal | [optional] -**status** | **String** | The status of the deal | [optional] -**visible_to** | **Number** | The visibility of the deal | [optional] -**owner** | [**DealSearchItemItemOwner**](DealSearchItemItemOwner.md) | | [optional] -**stage** | [**DealSearchItemItemStage**](DealSearchItemItemStage.md) | | [optional] -**person** | [**DealSearchItemItemPerson**](DealSearchItemItemPerson.md) | | [optional] -**organization** | [**DealSearchItemItemOrganization**](DealSearchItemItemOrganization.md) | | [optional] -**custom_fields** | **[String]** | Custom fields | [optional] -**notes** | **[String]** | An array of notes | [optional] - - diff --git a/docs/DealSearchItemItemOrganization.md b/docs/DealSearchItemItemOrganization.md deleted file mode 100644 index 655657fb..00000000 --- a/docs/DealSearchItemItemOrganization.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DealSearchItemItemOrganization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization the deal is associated with | [optional] -**name** | **String** | The name of the organization the deal is associated with | [optional] - - diff --git a/docs/DealSearchItemItemOwner.md b/docs/DealSearchItemItemOwner.md deleted file mode 100644 index 2d3dcd48..00000000 --- a/docs/DealSearchItemItemOwner.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealSearchItemItemOwner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the owner of the deal | [optional] - - diff --git a/docs/DealSearchItemItemPerson.md b/docs/DealSearchItemItemPerson.md deleted file mode 100644 index cb33cb2c..00000000 --- a/docs/DealSearchItemItemPerson.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DealSearchItemItemPerson - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the person the deal is associated with | [optional] -**name** | **String** | The name of the person the deal is associated with | [optional] - - diff --git a/docs/DealSearchItemItemStage.md b/docs/DealSearchItemItemStage.md deleted file mode 100644 index 66ca7960..00000000 --- a/docs/DealSearchItemItemStage.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DealSearchItemItemStage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the stage of the deal | [optional] -**name** | **String** | The name of the stage of the deal | [optional] - - diff --git a/docs/DealSearchResponse.md b/docs/DealSearchResponse.md deleted file mode 100644 index 32c69dfb..00000000 --- a/docs/DealSearchResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.DealSearchResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DealSearchResponseAllOfData**](DealSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/DealSearchResponseAllOf.md b/docs/DealSearchResponseAllOf.md deleted file mode 100644 index 7f502fe1..00000000 --- a/docs/DealSearchResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DealSearchResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**DealSearchResponseAllOfData**](DealSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/DealSearchResponseAllOfData.md b/docs/DealSearchResponseAllOfData.md deleted file mode 100644 index 7f91ea3a..00000000 --- a/docs/DealSearchResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealSearchResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**[DealSearchItem]**](DealSearchItem.md) | The array of deals | [optional] - - diff --git a/docs/DealStrict.md b/docs/DealStrict.md deleted file mode 100644 index 3676eab0..00000000 --- a/docs/DealStrict.md +++ /dev/null @@ -1,75 +0,0 @@ -# Pipedrive.DealStrict - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal | [optional] -**creator_user_id** | **Number** | The ID of the deal creator | [optional] -**user_id** | **Number** | The ID of the user | [optional] -**person_id** | **Number** | The ID of the person associated with the deal | [optional] -**org_id** | **Number** | The ID of the organization associated with the deal | [optional] -**stage_id** | **Number** | The ID of the deal stage | [optional] -**title** | **String** | The title of the deal | [optional] -**value** | **Number** | The value of the deal | [optional] -**currency** | **String** | The currency associated with the deal | [optional] -**add_time** | **String** | The creation date and time of the deal | [optional] -**update_time** | **String** | The last updated date and time of the deal | [optional] -**stage_change_time** | **String** | The last updated date and time of the deal stage | [optional] -**active** | **Boolean** | Whether the deal is active or not | [optional] -**deleted** | **Boolean** | Whether the deal is deleted or not | [optional] -**status** | **String** | The status of the deal | [optional] -**probability** | **Number** | The success probability percentage of the deal | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] -**lost_reason** | **String** | The reason for losing the deal | [optional] -**visible_to** | **String** | The visibility of the deal | [optional] -**close_time** | **String** | The date and time of closing the deal | [optional] -**pipeline_id** | **Number** | The ID of the pipeline associated with the deal | [optional] -**won_time** | **String** | The date and time of changing the deal status as won | [optional] -**first_won_time** | **String** | The date and time of the first time changing the deal status as won | [optional] -**lost_time** | **String** | The date and time of changing the deal status as lost | [optional] -**products_count** | **Number** | The number of products associated with the deal | [optional] -**files_count** | **Number** | The number of files associated with the deal | [optional] -**notes_count** | **Number** | The number of notes associated with the deal | [optional] -**followers_count** | **Number** | The number of followers associated with the deal | [optional] -**email_messages_count** | **Number** | The number of emails associated with the deal | [optional] -**activities_count** | **Number** | The number of activities associated with the deal | [optional] -**done_activities_count** | **Number** | The number of completed activities associated with the deal | [optional] -**undone_activities_count** | **Number** | The number of incomplete activities associated with the deal | [optional] -**participants_count** | **Number** | The number of participants associated with the deal | [optional] -**expected_close_date** | **Date** | The expected close date of the deal | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the deal | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the deal | [optional] -**label** | **String** | The label or multiple labels assigned to the deal | [optional] -**stage_order_nr** | **Number** | The order number of the deal stage associated with the deal | [optional] -**person_name** | **String** | The name of the person associated with the deal | [optional] -**org_name** | **String** | The name of the organization associated with the deal | [optional] -**next_activity_subject** | **String** | The subject of the next activity associated with the deal | [optional] -**next_activity_type** | **String** | The type of the next activity associated with the deal | [optional] -**next_activity_duration** | **String** | The duration of the next activity associated with the deal | [optional] -**next_activity_note** | **String** | The note of the next activity associated with the deal | [optional] -**formatted_value** | **String** | The deal value formatted with selected currency. E.g. US$500 | [optional] -**weighted_value** | **Number** | Probability times deal value. Probability can either be deal probability or if not set, then stage probability. | [optional] -**formatted_weighted_value** | **String** | The weighted_value formatted with selected currency. E.g. US$500 | [optional] -**weighted_value_currency** | **String** | The currency associated with the deal | [optional] -**rotten_time** | **String** | The date and time of changing the deal status as rotten | [optional] -**owner_name** | **String** | The name of the deal owner | [optional] -**cc_email** | **String** | The BCC email of the deal | [optional] -**org_hidden** | **Boolean** | If the organization that is associated with the deal is hidden or not | [optional] -**person_hidden** | **Boolean** | If the person that is associated with the deal is hidden or not | [optional] -**origin** | **String** | The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. | [optional] -**origin_id** | **String** | The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. | [optional] -**channel** | **Number** | The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. | [optional] -**arr** | **Number** | Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal | [optional] -**mrr** | **Number** | Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal | [optional] -**acv** | **Number** | Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal | [optional] -**arr_currency** | **String** | Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null | [optional] -**mrr_currency** | **String** | Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null | [optional] -**acv_currency** | **String** | Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null | [optional] - - diff --git a/docs/DealStrictModeFields.md b/docs/DealStrictModeFields.md deleted file mode 100644 index 2fcee167..00000000 --- a/docs/DealStrictModeFields.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.DealStrictModeFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal | [optional] -**creator_user_id** | **Number** | The ID of the deal creator | [optional] -**user_id** | **Number** | The ID of the user | [optional] -**person_id** | **Number** | The ID of the person associated with the deal | [optional] -**org_id** | **Number** | The ID of the organization associated with the deal | [optional] - - diff --git a/docs/DealStrictWithMergeId.md b/docs/DealStrictWithMergeId.md deleted file mode 100644 index 5e67fcf5..00000000 --- a/docs/DealStrictWithMergeId.md +++ /dev/null @@ -1,76 +0,0 @@ -# Pipedrive.DealStrictWithMergeId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal | [optional] -**creator_user_id** | **Number** | The ID of the deal creator | [optional] -**user_id** | **Number** | The ID of the user | [optional] -**person_id** | **Number** | The ID of the person associated with the deal | [optional] -**org_id** | **Number** | The ID of the organization associated with the deal | [optional] -**stage_id** | **Number** | The ID of the deal stage | [optional] -**title** | **String** | The title of the deal | [optional] -**value** | **Number** | The value of the deal | [optional] -**currency** | **String** | The currency associated with the deal | [optional] -**add_time** | **String** | The creation date and time of the deal | [optional] -**update_time** | **String** | The last updated date and time of the deal | [optional] -**stage_change_time** | **String** | The last updated date and time of the deal stage | [optional] -**active** | **Boolean** | Whether the deal is active or not | [optional] -**deleted** | **Boolean** | Whether the deal is deleted or not | [optional] -**status** | **String** | The status of the deal | [optional] -**probability** | **Number** | The success probability percentage of the deal | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] -**lost_reason** | **String** | The reason for losing the deal | [optional] -**visible_to** | **String** | The visibility of the deal | [optional] -**close_time** | **String** | The date and time of closing the deal | [optional] -**pipeline_id** | **Number** | The ID of the pipeline associated with the deal | [optional] -**won_time** | **String** | The date and time of changing the deal status as won | [optional] -**first_won_time** | **String** | The date and time of the first time changing the deal status as won | [optional] -**lost_time** | **String** | The date and time of changing the deal status as lost | [optional] -**products_count** | **Number** | The number of products associated with the deal | [optional] -**files_count** | **Number** | The number of files associated with the deal | [optional] -**notes_count** | **Number** | The number of notes associated with the deal | [optional] -**followers_count** | **Number** | The number of followers associated with the deal | [optional] -**email_messages_count** | **Number** | The number of emails associated with the deal | [optional] -**activities_count** | **Number** | The number of activities associated with the deal | [optional] -**done_activities_count** | **Number** | The number of completed activities associated with the deal | [optional] -**undone_activities_count** | **Number** | The number of incomplete activities associated with the deal | [optional] -**participants_count** | **Number** | The number of participants associated with the deal | [optional] -**expected_close_date** | **Date** | The expected close date of the deal | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the deal | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the deal | [optional] -**label** | **String** | The label or multiple labels assigned to the deal | [optional] -**stage_order_nr** | **Number** | The order number of the deal stage associated with the deal | [optional] -**person_name** | **String** | The name of the person associated with the deal | [optional] -**org_name** | **String** | The name of the organization associated with the deal | [optional] -**next_activity_subject** | **String** | The subject of the next activity associated with the deal | [optional] -**next_activity_type** | **String** | The type of the next activity associated with the deal | [optional] -**next_activity_duration** | **String** | The duration of the next activity associated with the deal | [optional] -**next_activity_note** | **String** | The note of the next activity associated with the deal | [optional] -**formatted_value** | **String** | The deal value formatted with selected currency. E.g. US$500 | [optional] -**weighted_value** | **Number** | Probability times deal value. Probability can either be deal probability or if not set, then stage probability. | [optional] -**formatted_weighted_value** | **String** | The weighted_value formatted with selected currency. E.g. US$500 | [optional] -**weighted_value_currency** | **String** | The currency associated with the deal | [optional] -**rotten_time** | **String** | The date and time of changing the deal status as rotten | [optional] -**owner_name** | **String** | The name of the deal owner | [optional] -**cc_email** | **String** | The BCC email of the deal | [optional] -**org_hidden** | **Boolean** | If the organization that is associated with the deal is hidden or not | [optional] -**person_hidden** | **Boolean** | If the person that is associated with the deal is hidden or not | [optional] -**origin** | **String** | The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. | [optional] -**origin_id** | **String** | The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. | [optional] -**channel** | **Number** | The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. | [optional] -**arr** | **Number** | Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal | [optional] -**mrr** | **Number** | Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal | [optional] -**acv** | **Number** | Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal | [optional] -**arr_currency** | **String** | Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null | [optional] -**mrr_currency** | **String** | Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null | [optional] -**acv_currency** | **String** | Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null | [optional] -**merge_what_id** | **Number** | The deal ID of the deal which the original deal was merged with | [optional] - - diff --git a/docs/DealStrictWithMergeIdAllOf.md b/docs/DealStrictWithMergeIdAllOf.md deleted file mode 100644 index 41a56021..00000000 --- a/docs/DealStrictWithMergeIdAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealStrictWithMergeIdAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merge_what_id** | **Number** | The deal ID of the deal which the original deal was merged with | [optional] - - diff --git a/docs/DealSummary.md b/docs/DealSummary.md deleted file mode 100644 index 373978bc..00000000 --- a/docs/DealSummary.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.DealSummary - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**per_stages** | [**DealSummaryPerStages**](DealSummaryPerStages.md) | | [optional] -**per_currency** | [**DealSummaryPerCurrency**](DealSummaryPerCurrency.md) | | [optional] -**total_count** | **Number** | Deals count | [optional] -**per_currency_full** | [**DealSummaryPerCurrencyFull**](DealSummaryPerCurrencyFull.md) | | [optional] - - diff --git a/docs/DealSummaryPerCurrency.md b/docs/DealSummaryPerCurrency.md deleted file mode 100644 index 29892d56..00000000 --- a/docs/DealSummaryPerCurrency.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealSummaryPerCurrency - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CURRENCY_ID** | **Number** | Deals count per currency. This parameter is dynamic and changes according to `currency_id` value. | [optional] - - diff --git a/docs/DealSummaryPerCurrencyFull.md b/docs/DealSummaryPerCurrencyFull.md deleted file mode 100644 index 4f309013..00000000 --- a/docs/DealSummaryPerCurrencyFull.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealSummaryPerCurrencyFull - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CURRENCY_ID** | [**DealSummaryPerCurrencyFullCURRENCYID**](DealSummaryPerCurrencyFullCURRENCYID.md) | | [optional] - - diff --git a/docs/DealSummaryPerCurrencyFullCURRENCYID.md b/docs/DealSummaryPerCurrencyFullCURRENCYID.md deleted file mode 100644 index 0623f6b6..00000000 --- a/docs/DealSummaryPerCurrencyFullCURRENCYID.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DealSummaryPerCurrencyFullCURRENCYID - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Number** | Deals count per currency | [optional] -**value** | **Number** | Deals value per currency | [optional] - - diff --git a/docs/DealSummaryPerStages.md b/docs/DealSummaryPerStages.md deleted file mode 100644 index 32f660b3..00000000 --- a/docs/DealSummaryPerStages.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealSummaryPerStages - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**STAGE_ID** | [**DealSummaryPerStagesSTAGEID**](DealSummaryPerStagesSTAGEID.md) | | [optional] - - diff --git a/docs/DealSummaryPerStagesSTAGEID.md b/docs/DealSummaryPerStagesSTAGEID.md deleted file mode 100644 index 5757210a..00000000 --- a/docs/DealSummaryPerStagesSTAGEID.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealSummaryPerStagesSTAGEID - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CURRENCY_ID** | [**DealSummaryPerStagesSTAGEIDCURRENCYID**](DealSummaryPerStagesSTAGEIDCURRENCYID.md) | | [optional] - - diff --git a/docs/DealSummaryPerStagesSTAGEIDCURRENCYID.md b/docs/DealSummaryPerStagesSTAGEIDCURRENCYID.md deleted file mode 100644 index 40915107..00000000 --- a/docs/DealSummaryPerStagesSTAGEIDCURRENCYID.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.DealSummaryPerStagesSTAGEIDCURRENCYID - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Number** | Deals count per currency | [optional] -**value** | **Number** | Deals value per currency | [optional] -**value_formatted** | **String** | Deals value formatted per currency | [optional] -**weighted_value** | **Number** | Deals weighted value per currency | [optional] -**weighted_value_formatted** | **String** | Deals weighted value formatted per currency | [optional] - - diff --git a/docs/DealTitleParameter.md b/docs/DealTitleParameter.md deleted file mode 100644 index 921d8ba1..00000000 --- a/docs/DealTitleParameter.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealTitleParameter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the deal | [optional] - - diff --git a/docs/DealUserData.md b/docs/DealUserData.md deleted file mode 100644 index 221f6197..00000000 --- a/docs/DealUserData.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.DealUserData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the user | [optional] -**name** | **String** | The name of the user | [optional] -**email** | **String** | The email of the user | [optional] -**has_pic** | **Boolean** | If the user has a picture or not | [optional] -**pic_hash** | **String** | The user picture hash | [optional] -**active_flag** | **Boolean** | Whether the user is active or not | [optional] - - diff --git a/docs/DealUserDataWithId.md b/docs/DealUserDataWithId.md deleted file mode 100644 index 96c53716..00000000 --- a/docs/DealUserDataWithId.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.DealUserDataWithId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the user | [optional] -**name** | **String** | The name of the user | [optional] -**email** | **String** | The email of the user | [optional] -**has_pic** | **Boolean** | If the user has a picture or not | [optional] -**pic_hash** | **String** | The user picture hash | [optional] -**active_flag** | **Boolean** | Whether the user is active or not | [optional] -**value** | **Number** | The ID of the user | [optional] - - diff --git a/docs/DealUserDataWithIdAllOf.md b/docs/DealUserDataWithIdAllOf.md deleted file mode 100644 index 587678ab..00000000 --- a/docs/DealUserDataWithIdAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealUserDataWithIdAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **Number** | The ID of the user | [optional] - - diff --git a/docs/DealsApi.md b/docs/DealsApi.md deleted file mode 100644 index 937fb3b6..00000000 --- a/docs/DealsApi.md +++ /dev/null @@ -1,1816 +0,0 @@ -# Pipedrive.DealsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addDeal**](DealsApi.md#addDeal) | **POST** /deals | Add a deal -[**addDealFollower**](DealsApi.md#addDealFollower) | **POST** /deals/{id}/followers | Add a follower to a deal -[**addDealParticipant**](DealsApi.md#addDealParticipant) | **POST** /deals/{id}/participants | Add a participant to a deal -[**addDealProduct**](DealsApi.md#addDealProduct) | **POST** /deals/{id}/products | Add a product to a deal -[**deleteDeal**](DealsApi.md#deleteDeal) | **DELETE** /deals/{id} | Delete a deal -[**deleteDealFollower**](DealsApi.md#deleteDealFollower) | **DELETE** /deals/{id}/followers/{follower_id} | Delete a follower from a deal -[**deleteDealParticipant**](DealsApi.md#deleteDealParticipant) | **DELETE** /deals/{id}/participants/{deal_participant_id} | Delete a participant from a deal -[**deleteDealProduct**](DealsApi.md#deleteDealProduct) | **DELETE** /deals/{id}/products/{product_attachment_id} | Delete an attached product from a deal -[**deleteDeals**](DealsApi.md#deleteDeals) | **DELETE** /deals | Delete multiple deals in bulk -[**duplicateDeal**](DealsApi.md#duplicateDeal) | **POST** /deals/{id}/duplicate | Duplicate deal -[**getDeal**](DealsApi.md#getDeal) | **GET** /deals/{id} | Get details of a deal -[**getDealActivities**](DealsApi.md#getDealActivities) | **GET** /deals/{id}/activities | List activities associated with a deal -[**getDealChangelog**](DealsApi.md#getDealChangelog) | **GET** /deals/{id}/changelog | List updates about deal field values -[**getDealFiles**](DealsApi.md#getDealFiles) | **GET** /deals/{id}/files | List files attached to a deal -[**getDealFollowers**](DealsApi.md#getDealFollowers) | **GET** /deals/{id}/followers | List followers of a deal -[**getDealMailMessages**](DealsApi.md#getDealMailMessages) | **GET** /deals/{id}/mailMessages | List mail messages associated with a deal -[**getDealParticipants**](DealsApi.md#getDealParticipants) | **GET** /deals/{id}/participants | List participants of a deal -[**getDealParticipantsChangelog**](DealsApi.md#getDealParticipantsChangelog) | **GET** /deals/{id}/participantsChangelog | List updates about participants of a deal -[**getDealPersons**](DealsApi.md#getDealPersons) | **GET** /deals/{id}/persons | List all persons associated with a deal -[**getDealProducts**](DealsApi.md#getDealProducts) | **GET** /deals/{id}/products | List products attached to a deal -[**getDealUpdates**](DealsApi.md#getDealUpdates) | **GET** /deals/{id}/flow | List updates about a deal -[**getDealUsers**](DealsApi.md#getDealUsers) | **GET** /deals/{id}/permittedUsers | List permitted users -[**getDeals**](DealsApi.md#getDeals) | **GET** /deals | Get all deals -[**getDealsCollection**](DealsApi.md#getDealsCollection) | **GET** /deals/collection | Get all deals (BETA) -[**getDealsSummary**](DealsApi.md#getDealsSummary) | **GET** /deals/summary | Get deals summary -[**getDealsTimeline**](DealsApi.md#getDealsTimeline) | **GET** /deals/timeline | Get deals timeline -[**mergeDeals**](DealsApi.md#mergeDeals) | **PUT** /deals/{id}/merge | Merge two deals -[**searchDeals**](DealsApi.md#searchDeals) | **GET** /deals/search | Search deals -[**updateDeal**](DealsApi.md#updateDeal) | **PUT** /deals/{id} | Update a deal -[**updateDealProduct**](DealsApi.md#updateDealProduct) | **PUT** /deals/{id}/products/{product_attachment_id} | Update the product attached to a deal - - - -## addDeal - -> GetAddedDeal addDeal(opts) - -Add a deal - -Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/creating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">adding a deal</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let opts = Pipedrive.NewDeal.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addDeal(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **NewDeal** | [**NewDeal**](NewDeal.md)| | [optional] - -### Return type - -[**GetAddedDeal**](GetAddedDeal.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addDealFollower - -> AddedDealFollower addDealFollower(id, opts) - -Add a follower to a deal - -Adds a follower to a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -let opts = Pipedrive.AddDealFollowerRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addDealFollower(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **AddDealFollowerRequest** | [**AddDealFollowerRequest**](AddDealFollowerRequest.md)| | [optional] - -### Return type - -[**AddedDealFollower**](AddedDealFollower.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addDealParticipant - -> PostDealParticipants addDealParticipant(id, opts) - -Add a participant to a deal - -Adds a participant to a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -let opts = Pipedrive.AddDealParticipantRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addDealParticipant(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **AddDealParticipantRequest** | [**AddDealParticipantRequest**](AddDealParticipantRequest.md)| | [optional] - -### Return type - -[**PostDealParticipants**](PostDealParticipants.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addDealProduct - -> GetAddProductAttachmentDetails addDealProduct(id, opts) - -Add a product to a deal - -Adds a product to a deal, creating a new item called a deal-product. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -let opts = Pipedrive.NewDealProduct.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addDealProduct(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **NewDealProduct** | [**NewDealProduct**](NewDealProduct.md)| | [optional] - -### Return type - -[**GetAddProductAttachmentDetails**](GetAddProductAttachmentDetails.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteDeal - -> DeleteDeal deleteDeal(id) - -Delete a deal - -Marks a deal as deleted. After 30 days, the deal will be permanently deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -apiInstance.deleteDeal(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - -### Return type - -[**DeleteDeal**](DeleteDeal.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteDealFollower - -> DeleteDealFollower deleteDealFollower(id, followerId) - -Delete a follower from a deal - -Deletes a follower from a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -let followerId = 56; // Number | The ID of the follower -apiInstance.deleteDealFollower(id, followerId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **follower_id** | **Number**| The ID of the follower | - -### Return type - -[**DeleteDealFollower**](DeleteDealFollower.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteDealParticipant - -> DeleteDealParticipant deleteDealParticipant(id, dealParticipantId) - -Delete a participant from a deal - -Deletes a participant from a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -let dealParticipantId = 56; // Number | The ID of the participant of the deal -apiInstance.deleteDealParticipant(id, dealParticipantId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **deal_participant_id** | **Number**| The ID of the participant of the deal | - -### Return type - -[**DeleteDealParticipant**](DeleteDealParticipant.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteDealProduct - -> DeleteDealProduct deleteDealProduct(id, productAttachmentId) - -Delete an attached product from a deal - -Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -let productAttachmentId = 56; // Number | The product attachment ID -apiInstance.deleteDealProduct(id, productAttachmentId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **product_attachment_id** | **Number**| The product attachment ID | - -### Return type - -[**DeleteDealProduct**](DeleteDealProduct.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteDeals - -> DeleteMultipleDeals deleteDeals(ids) - -Delete multiple deals in bulk - -Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let ids = "ids_example"; // String | The comma-separated IDs that will be deleted -apiInstance.deleteDeals(ids).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ids** | **String**| The comma-separated IDs that will be deleted | - -### Return type - -[**DeleteMultipleDeals**](DeleteMultipleDeals.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## duplicateDeal - -> GetDuplicatedDeal duplicateDeal(id) - -Duplicate deal - -Duplicates a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -apiInstance.duplicateDeal(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - -### Return type - -[**GetDuplicatedDeal**](GetDuplicatedDeal.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDeal - -> GetDeal getDeal(id) - -Get details of a deal - -Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/getting-details-of-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">getting details of a deal</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -apiInstance.getDeal(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - -### Return type - -[**GetDeal**](GetDeal.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealActivities - -> DealListActivitiesResponse getDealActivities(id, opts) - -List activities associated with a deal - -Lists activities associated with a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'done': new Pipedrive.NumberBoolean(), // NumberBoolean | Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - 'exclude': "exclude_example" // String | A comma-separated string of activity IDs to exclude from result -}; -apiInstance.getDealActivities(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **done** | [**NumberBoolean**](.md)| Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. | [optional] - **exclude** | **String**| A comma-separated string of activity IDs to exclude from result | [optional] - -### Return type - -[**DealListActivitiesResponse**](DealListActivitiesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealChangelog - -> ChangelogResponse getDealChangelog(id, opts) - -List updates about deal field values - -Lists updates about field values of a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getDealChangelog(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ChangelogResponse**](ChangelogResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealFiles - -> ListFilesResponse getDealFiles(id, opts) - -List files attached to a deal - -Lists files associated with a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'sort': "sort_example" // String | 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`. -}; -apiInstance.getDealFiles(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **sort** | **String**| 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`. | [optional] - -### Return type - -[**ListFilesResponse**](ListFilesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealFollowers - -> ListFollowersResponse getDealFollowers(id) - -List followers of a deal - -Lists the followers of a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -apiInstance.getDealFollowers(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - -### Return type - -[**ListFollowersResponse**](ListFollowersResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealMailMessages - -> ListMailMessagesResponse getDealMailMessages(id, opts) - -List mail messages associated with a deal - -Lists mail messages associated with a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getDealMailMessages(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ListMailMessagesResponse**](ListMailMessagesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealParticipants - -> DealParticipants getDealParticipants(id, opts) - -List participants of a deal - -Lists the participants associated with a deal.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getDealParticipants(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**DealParticipants**](DealParticipants.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealParticipantsChangelog - -> ParticipantsChangelog getDealParticipantsChangelog(id, opts) - -List updates about participants of a deal - -List updates about participants of a deal. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'limit': 56, // Number | Items shown per page - 'cursor': "cursor_example" // String | For pagination, the marker (an opaque string value) representing the first item on the next page -}; -apiInstance.getDealParticipantsChangelog(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **limit** | **Number**| Items shown per page | [optional] - **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] - -### Return type - -[**ParticipantsChangelog**](ParticipantsChangelog.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealPersons - -> ListPersonsResponse getDealPersons(id, opts) - -List all persons associated with a deal - -Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getDealPersons(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ListPersonsResponse**](ListPersonsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealProducts - -> ListProductsResponse getDealProducts(id, opts) - -List products attached to a deal - -Lists products attached to a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'includeProductData': new Pipedrive.NumberBoolean() // NumberBoolean | Whether to fetch product data along with each attached product (1) or not (0, default) -}; -apiInstance.getDealProducts(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **include_product_data** | [**NumberBoolean**](.md)| Whether to fetch product data along with each attached product (1) or not (0, default) | [optional] - -### Return type - -[**ListProductsResponse**](ListProductsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealUpdates - -> DealFlowResponse getDealUpdates(id, opts) - -List updates about a deal - -Lists updates about a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'allChanges': "allChanges_example", // String | Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. - 'items': "items_example" // String | A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). -}; -apiInstance.getDealUpdates(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **all_changes** | **String**| Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. | [optional] - **items** | **String**| A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). | [optional] - -### Return type - -[**DealFlowResponse**](DealFlowResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealUsers - -> ListPermittedUsersResponse getDealUsers(id) - -List permitted users - -Lists the users permitted to access a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -apiInstance.getDealUsers(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - -### Return type - -[**ListPermittedUsersResponse**](ListPermittedUsersResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDeals - -> GetDeals getDeals(opts) - -Get all deals - -Returns all deals. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/getting-all-deals\" target=\"_blank\" rel=\"noopener noreferrer\">getting all deals</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'userId': 56, // Number | If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied. - 'filterId': 56, // Number | The ID of the filter to use - 'stageId': 56, // Number | If supplied, only deals within the given stage will be returned - 'status': "'all_not_deleted'", // String | 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. - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'sort': "sort_example", // String | 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). - 'ownedByYou': new Pipedrive.NumberBoolean() // NumberBoolean | When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied. -}; -apiInstance.getDeals(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user_id** | **Number**| If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied. | [optional] - **filter_id** | **Number**| The ID of the filter to use | [optional] - **stage_id** | **Number**| If supplied, only deals within the given stage will be returned | [optional] - **status** | **String**| 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. | [optional] [default to 'all_not_deleted'] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **sort** | **String**| 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). | [optional] - **owned_by_you** | [**NumberBoolean**](.md)| When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied. | [optional] - -### Return type - -[**GetDeals**](GetDeals.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealsCollection - -> GetDealsCollection getDealsCollection(opts) - -Get all deals (BETA) - -Returns all deals. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions <a href=\"https://support.pipedrive.com/en/article/global-user-management\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page - 'limit': 100, // Number | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - 'since': "since_example", // String | The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - 'until': "until_example", // String | The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - 'userId': 56, // Number | If supplied, only deals matching the given user will be returned - 'stageId': 56, // Number | If supplied, only deals within the given stage will be returned - 'status': "status_example" // String | 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. -}; -apiInstance.getDealsCollection(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] - **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. | [optional] - **since** | **String**| The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. | [optional] - **until** | **String**| The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. | [optional] - **user_id** | **Number**| If supplied, only deals matching the given user will be returned | [optional] - **stage_id** | **Number**| If supplied, only deals within the given stage will be returned | [optional] - **status** | **String**| 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. | [optional] - -### Return type - -[**GetDealsCollection**](GetDealsCollection.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealsSummary - -> GetDealsSummary getDealsSummary(opts) - -Get deals summary - -Returns a summary of all the deals. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'status': "status_example", // String | Only fetch deals with a specific status. open = Open, won = Won, lost = Lost. - 'filterId': 56, // Number | user_id will not be considered. Only deals matching the given filter will be returned. - 'userId': 56, // Number | Only deals matching the given user will be returned. `user_id` will not be considered if you use `filter_id`. - 'stageId': 56 // Number | Only deals within the given stage will be returned -}; -apiInstance.getDealsSummary(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **status** | **String**| Only fetch deals with a specific status. open = Open, won = Won, lost = Lost. | [optional] - **filter_id** | **Number**| <code>user_id</code> will not be considered. Only deals matching the given filter will be returned. | [optional] - **user_id** | **Number**| Only deals matching the given user will be returned. `user_id` will not be considered if you use `filter_id`. | [optional] - **stage_id** | **Number**| Only deals within the given stage will be returned | [optional] - -### Return type - -[**GetDealsSummary**](GetDealsSummary.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDealsTimeline - -> GetDealsTimeline getDealsTimeline(startDate, interval, amount, fieldKey, opts) - -Get deals timeline - -Returns open and won deals, grouped by a defined interval of time set in a date-type dealField (`field_key`) — e.g. when month is the chosen interval, and 3 months are asked starting from January 1st, 2012, deals are returned grouped into 3 groups — January, February and March — based on the value of the given `field_key`. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let startDate = new Date("2013-10-20"); // Date | The date when the first interval starts. Format: YYYY-MM-DD. -let interval = "interval_example"; // String | The type of the interval
ValueDescription
`day`Day
`week`A full week (7 days) starting from `start_date`
`month`A full month (depending on the number of days in given month) starting from `start_date`
`quarter`A full quarter (3 months) starting from `start_date`
-let amount = 56; // Number | The number of given intervals, starting from `start_date`, to fetch. E.g. 3 (months). -let fieldKey = "fieldKey_example"; // String | The date field key which deals will be retrieved from -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'userId': 56, // Number | If supplied, only deals matching the given user will be returned - 'pipelineId': 56, // Number | If supplied, only deals matching the given pipeline will be returned - 'filterId': 56, // Number | If supplied, only deals matching the given filter will be returned - 'excludeDeals': new Pipedrive.NumberBoolean(), // NumberBoolean | Whether to exclude deals list (1) or not (0). Note that when deals are excluded, the timeline summary (counts and values) is still returned. - 'totalsConvertCurrency': "totalsConvertCurrency_example" // String | The 3-letter currency code of any of the supported currencies. When supplied, `totals_converted` is returned per each interval which contains the currency-converted total amounts in the given currency. You may also set this parameter to `default_currency` in which case the user's default currency is used. -}; -apiInstance.getDealsTimeline(startDate, interval, amount, fieldKey, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start_date** | **Date**| The date when the first interval starts. Format: YYYY-MM-DD. | - **interval** | **String**| The type of the interval<table><tr><th>Value</th><th>Description</th></tr><tr><td>`day`</td><td>Day</td></tr><tr><td>`week`</td><td>A full week (7 days) starting from `start_date`</td></tr><tr><td>`month`</td><td>A full month (depending on the number of days in given month) starting from `start_date`</td></tr><tr><td>`quarter`</td><td>A full quarter (3 months) starting from `start_date`</td></tr></table> | - **amount** | **Number**| The number of given intervals, starting from `start_date`, to fetch. E.g. 3 (months). | - **field_key** | **String**| The date field key which deals will be retrieved from | - **user_id** | **Number**| If supplied, only deals matching the given user will be returned | [optional] - **pipeline_id** | **Number**| If supplied, only deals matching the given pipeline will be returned | [optional] - **filter_id** | **Number**| If supplied, only deals matching the given filter will be returned | [optional] - **exclude_deals** | [**NumberBoolean**](.md)| Whether to exclude deals list (1) or not (0). Note that when deals are excluded, the timeline summary (counts and values) is still returned. | [optional] - **totals_convert_currency** | **String**| The 3-letter currency code of any of the supported currencies. When supplied, `totals_converted` is returned per each interval which contains the currency-converted total amounts in the given currency. You may also set this parameter to `default_currency` in which case the user's default currency is used. | [optional] - -### Return type - -[**GetDealsTimeline**](GetDealsTimeline.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## mergeDeals - -> GetMergedDeal mergeDeals(id, opts) - -Merge two deals - -Merges a deal with another deal. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/merging-two-deals\" target=\"_blank\" rel=\"noopener noreferrer\">merging two deals</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -let opts = Pipedrive.MergeDealsRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.mergeDeals(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **MergeDealsRequest** | [**MergeDealsRequest**](MergeDealsRequest.md)| | [optional] - -### Return type - -[**GetMergedDeal**](GetMergedDeal.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## searchDeals - -> DealSearchResponse searchDeals(term, opts) - -Search deals - -Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let term = "term_example"; // String | 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. -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'fields': "fields_example", // String | A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - 'exactMatch': true, // Boolean | When enabled, only full exact matches against the given term are returned. It is not case sensitive. - 'personId': 56, // Number | Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. - 'organizationId': 56, // Number | Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. - 'status': "status_example", // String | Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. - 'includeFields': "includeFields_example", // String | Supports including optional fields in the results which are not provided by default - 'start': 0, // Number | Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - 'limit': 56 // Number | Items shown per page -}; -apiInstance.searchDeals(term, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **term** | **String**| 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. | - **fields** | **String**| A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. | [optional] - **exact_match** | **Boolean**| When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. | [optional] - **person_id** | **Number**| Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. | [optional] - **organization_id** | **Number**| Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. | [optional] - **status** | **String**| Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. | [optional] - **include_fields** | **String**| Supports including optional fields in the results which are not provided by default | [optional] - **start** | **Number**| Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**DealSearchResponse**](DealSearchResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateDeal - -> GetAddedDeal updateDeal(id, opts) - -Update a deal - -Updates the properties of a deal. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/updating-a-deal\" target=\"_blank\" rel=\"noopener noreferrer\">updating a deal</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -let opts = Pipedrive.UpdateDealRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateDeal(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **UpdateDealRequest** | [**UpdateDealRequest**](UpdateDealRequest.md)| | [optional] - -### Return type - -[**GetAddedDeal**](GetAddedDeal.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateDealProduct - -> GetProductAttachmentDetails updateDealProduct(id, productAttachmentId, opts) - -Update the product attached to a deal - -Updates the details of the product that has been attached to a deal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.DealsApi(apiClient); -let id = 56; // Number | The ID of the deal -let productAttachmentId = 56; // Number | The ID of the deal-product (the ID of the product attached to the deal) -let opts = Pipedrive.UpdateDealProduct.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateDealProduct(id, productAttachmentId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the deal | - **product_attachment_id** | **Number**| The ID of the deal-product (the ID of the product attached to the deal) | - **UpdateDealProduct** | [**UpdateDealProduct**](UpdateDealProduct.md)| | [optional] - -### Return type - -[**GetProductAttachmentDetails**](GetProductAttachmentDetails.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/DealsCountAndActivityInfo.md b/docs/DealsCountAndActivityInfo.md deleted file mode 100644 index 5249f56c..00000000 --- a/docs/DealsCountAndActivityInfo.md +++ /dev/null @@ -1,21 +0,0 @@ -# Pipedrive.DealsCountAndActivityInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] - - diff --git a/docs/DealsCountInfo.md b/docs/DealsCountInfo.md deleted file mode 100644 index c5505751..00000000 --- a/docs/DealsCountInfo.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.DealsCountInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] - - diff --git a/docs/DealsMovementsInfo.md b/docs/DealsMovementsInfo.md deleted file mode 100644 index a16c585c..00000000 --- a/docs/DealsMovementsInfo.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.DealsMovementsInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Number** | The count of the deals | [optional] -**deals_ids** | **[Number]** | The IDs of the deals that have been moved | [optional] -**values** | [**DealsMovementsInfoValues**](DealsMovementsInfoValues.md) | | [optional] -**formatted_values** | [**DealsMovementsInfoFormattedValues**](DealsMovementsInfoFormattedValues.md) | | [optional] - - diff --git a/docs/DealsMovementsInfoFormattedValues.md b/docs/DealsMovementsInfoFormattedValues.md deleted file mode 100644 index 7e4260dd..00000000 --- a/docs/DealsMovementsInfoFormattedValues.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealsMovementsInfoFormattedValues - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CURRENCY_ID** | **String** | The formatted values of the deals | [optional] - - diff --git a/docs/DealsMovementsInfoValues.md b/docs/DealsMovementsInfoValues.md deleted file mode 100644 index 68f378c7..00000000 --- a/docs/DealsMovementsInfoValues.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DealsMovementsInfoValues - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**CURRENCY_ID** | **Number** | The value of the deals | [optional] - - diff --git a/docs/DeleteActivitiesResponse.md b/docs/DeleteActivitiesResponse.md deleted file mode 100644 index 006213a2..00000000 --- a/docs/DeleteActivitiesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteActivitiesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**DeleteActivitiesResponseData**](DeleteActivitiesResponseData.md) | | [optional] - - diff --git a/docs/DeleteActivitiesResponse200.md b/docs/DeleteActivitiesResponse200.md deleted file mode 100644 index e984b7d6..00000000 --- a/docs/DeleteActivitiesResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteActivitiesResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**DeleteActivitiesResponse200Data**](DeleteActivitiesResponse200Data.md) | | [optional] - - diff --git a/docs/DeleteActivitiesResponse200Data.md b/docs/DeleteActivitiesResponse200Data.md deleted file mode 100644 index b2289981..00000000 --- a/docs/DeleteActivitiesResponse200Data.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteActivitiesResponse200Data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | An array of the IDs of activities that were deleted | [optional] - - diff --git a/docs/DeleteActivitiesResponseData.md b/docs/DeleteActivitiesResponseData.md deleted file mode 100644 index 6a74eea9..00000000 --- a/docs/DeleteActivitiesResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteActivitiesResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | An array of the IDs of activities that were deleted | [optional] - - diff --git a/docs/DeleteActivityResponse.md b/docs/DeleteActivityResponse.md deleted file mode 100644 index 6d98200e..00000000 --- a/docs/DeleteActivityResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteActivityResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**DeleteActivityResponseData**](DeleteActivityResponseData.md) | | [optional] - - diff --git a/docs/DeleteActivityResponse200.md b/docs/DeleteActivityResponse200.md deleted file mode 100644 index d89eed19..00000000 --- a/docs/DeleteActivityResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteActivityResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**DeleteActivityResponse200Data**](DeleteActivityResponse200Data.md) | | [optional] - - diff --git a/docs/DeleteActivityResponse200Data.md b/docs/DeleteActivityResponse200Data.md deleted file mode 100644 index 41c44149..00000000 --- a/docs/DeleteActivityResponse200Data.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteActivityResponse200Data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the activity that was deleted | [optional] - - diff --git a/docs/DeleteActivityResponseData.md b/docs/DeleteActivityResponseData.md deleted file mode 100644 index 85d1990e..00000000 --- a/docs/DeleteActivityResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteActivityResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the activity that was deleted | [optional] - - diff --git a/docs/DeleteChannelSuccess.md b/docs/DeleteChannelSuccess.md deleted file mode 100644 index 982e4fdf..00000000 --- a/docs/DeleteChannelSuccess.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteChannelSuccess - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] - - diff --git a/docs/DeleteComment.md b/docs/DeleteComment.md deleted file mode 100644 index 7a854dfe..00000000 --- a/docs/DeleteComment.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteComment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | **Boolean** | If the response is successful or not | [optional] - - diff --git a/docs/DeleteConversationSuccess.md b/docs/DeleteConversationSuccess.md deleted file mode 100644 index dbb573cc..00000000 --- a/docs/DeleteConversationSuccess.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteConversationSuccess - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] - - diff --git a/docs/DeleteDeal.md b/docs/DeleteDeal.md deleted file mode 100644 index 9477bf84..00000000 --- a/docs/DeleteDeal.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteDeal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeleteDealData**](DeleteDealData.md) | | [optional] - - diff --git a/docs/DeleteDealData.md b/docs/DeleteDealData.md deleted file mode 100644 index aa68aef1..00000000 --- a/docs/DeleteDealData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteDealData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal that was deleted | [optional] - - diff --git a/docs/DeleteDealFollower.md b/docs/DeleteDealFollower.md deleted file mode 100644 index 882a2a12..00000000 --- a/docs/DeleteDealFollower.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteDealFollower - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeleteDealFollowerData**](DeleteDealFollowerData.md) | | [optional] - - diff --git a/docs/DeleteDealFollowerData.md b/docs/DeleteDealFollowerData.md deleted file mode 100644 index a2a5edc5..00000000 --- a/docs/DeleteDealFollowerData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteDealFollowerData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal follower that was deleted | [optional] - - diff --git a/docs/DeleteDealParticipant.md b/docs/DeleteDealParticipant.md deleted file mode 100644 index 1584facc..00000000 --- a/docs/DeleteDealParticipant.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteDealParticipant - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeleteDealParticipantData**](DeleteDealParticipantData.md) | | [optional] - - diff --git a/docs/DeleteDealParticipantData.md b/docs/DeleteDealParticipantData.md deleted file mode 100644 index ff0acb5e..00000000 --- a/docs/DeleteDealParticipantData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteDealParticipantData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal participant that was deleted | [optional] - - diff --git a/docs/DeleteDealProduct.md b/docs/DeleteDealProduct.md deleted file mode 100644 index acab9467..00000000 --- a/docs/DeleteDealProduct.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteDealProduct - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeleteDealProductData**](DeleteDealProductData.md) | | [optional] - - diff --git a/docs/DeleteDealProductData.md b/docs/DeleteDealProductData.md deleted file mode 100644 index 92f1c7c8..00000000 --- a/docs/DeleteDealProductData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteDealProductData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of an attached product that was deleted from the deal | [optional] - - diff --git a/docs/DeleteFile.md b/docs/DeleteFile.md deleted file mode 100644 index 728ebbea..00000000 --- a/docs/DeleteFile.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteFile - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeleteFileData**](DeleteFileData.md) | | [optional] - - diff --git a/docs/DeleteFileData.md b/docs/DeleteFileData.md deleted file mode 100644 index 400cdf80..00000000 --- a/docs/DeleteFileData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteFileData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the file | [optional] - - diff --git a/docs/DeleteGoalResponse.md b/docs/DeleteGoalResponse.md deleted file mode 100644 index 279c7208..00000000 --- a/docs/DeleteGoalResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteGoalResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] - - diff --git a/docs/DeleteGoalResponse200.md b/docs/DeleteGoalResponse200.md deleted file mode 100644 index 467c2eb9..00000000 --- a/docs/DeleteGoalResponse200.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteGoalResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] - - diff --git a/docs/DeleteLeadIdResponse.md b/docs/DeleteLeadIdResponse.md deleted file mode 100644 index 78f90ff0..00000000 --- a/docs/DeleteLeadIdResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteLeadIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**GetLeadIdResponseData**](GetLeadIdResponseData.md) | | [optional] - - diff --git a/docs/DeleteMultipleDeals.md b/docs/DeleteMultipleDeals.md deleted file mode 100644 index 17dbe169..00000000 --- a/docs/DeleteMultipleDeals.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteMultipleDeals - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DeleteMultipleDealsData**](DeleteMultipleDealsData.md) | | [optional] - - diff --git a/docs/DeleteMultipleDealsData.md b/docs/DeleteMultipleDealsData.md deleted file mode 100644 index 5768e77f..00000000 --- a/docs/DeleteMultipleDealsData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteMultipleDealsData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | The list of deleted deals IDs | [optional] - - diff --git a/docs/DeleteMultipleProductFieldsResponse.md b/docs/DeleteMultipleProductFieldsResponse.md deleted file mode 100644 index 779b9c73..00000000 --- a/docs/DeleteMultipleProductFieldsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteMultipleProductFieldsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DeleteMultipleProductFieldsResponseData**](DeleteMultipleProductFieldsResponseData.md) | | [optional] - - diff --git a/docs/DeleteMultipleProductFieldsResponseData.md b/docs/DeleteMultipleProductFieldsResponseData.md deleted file mode 100644 index e121594f..00000000 --- a/docs/DeleteMultipleProductFieldsResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteMultipleProductFieldsResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | Array of all the IDs of the deleted product fields | [optional] - - diff --git a/docs/DeleteNote.md b/docs/DeleteNote.md deleted file mode 100644 index 1b7a4352..00000000 --- a/docs/DeleteNote.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteNote - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | **Boolean** | If the response is successful or not | [optional] - - diff --git a/docs/DeletePersonResponse.md b/docs/DeletePersonResponse.md deleted file mode 100644 index 2ebf565f..00000000 --- a/docs/DeletePersonResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeletePersonResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DeletePersonResponseAllOfData**](DeletePersonResponseAllOfData.md) | | [optional] - - diff --git a/docs/DeletePersonResponseAllOf.md b/docs/DeletePersonResponseAllOf.md deleted file mode 100644 index ee1d868b..00000000 --- a/docs/DeletePersonResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeletePersonResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**DeletePersonResponseAllOfData**](DeletePersonResponseAllOfData.md) | | [optional] - - diff --git a/docs/DeletePersonResponseAllOfData.md b/docs/DeletePersonResponseAllOfData.md deleted file mode 100644 index e9c8d9e3..00000000 --- a/docs/DeletePersonResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeletePersonResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deleted person | [optional] - - diff --git a/docs/DeletePersonsInBulkResponse.md b/docs/DeletePersonsInBulkResponse.md deleted file mode 100644 index d69c9bc4..00000000 --- a/docs/DeletePersonsInBulkResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeletePersonsInBulkResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DeletePersonsInBulkResponseAllOfData**](DeletePersonsInBulkResponseAllOfData.md) | | [optional] - - diff --git a/docs/DeletePersonsInBulkResponseAllOf.md b/docs/DeletePersonsInBulkResponseAllOf.md deleted file mode 100644 index f9714daf..00000000 --- a/docs/DeletePersonsInBulkResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeletePersonsInBulkResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**DeletePersonsInBulkResponseAllOfData**](DeletePersonsInBulkResponseAllOfData.md) | | [optional] - - diff --git a/docs/DeletePersonsInBulkResponseAllOfData.md b/docs/DeletePersonsInBulkResponseAllOfData.md deleted file mode 100644 index 4cbf7b4d..00000000 --- a/docs/DeletePersonsInBulkResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeletePersonsInBulkResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | The list of deleted persons IDs | [optional] - - diff --git a/docs/DeletePipelineResponse.md b/docs/DeletePipelineResponse.md deleted file mode 100644 index 0f63b142..00000000 --- a/docs/DeletePipelineResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeletePipelineResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeletePipelineResponseData**](DeletePipelineResponseData.md) | | [optional] - - diff --git a/docs/DeletePipelineResponse200.md b/docs/DeletePipelineResponse200.md deleted file mode 100644 index 6df369f5..00000000 --- a/docs/DeletePipelineResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeletePipelineResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeletePipelineResponse200Data**](DeletePipelineResponse200Data.md) | | [optional] - - diff --git a/docs/DeletePipelineResponse200Data.md b/docs/DeletePipelineResponse200Data.md deleted file mode 100644 index fcc07a99..00000000 --- a/docs/DeletePipelineResponse200Data.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeletePipelineResponse200Data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | Deleted Pipeline ID | [optional] - - diff --git a/docs/DeletePipelineResponseData.md b/docs/DeletePipelineResponseData.md deleted file mode 100644 index 05a2fad7..00000000 --- a/docs/DeletePipelineResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeletePipelineResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | Deleted Pipeline ID | [optional] - - diff --git a/docs/DeleteProductFieldResponse.md b/docs/DeleteProductFieldResponse.md deleted file mode 100644 index 10466c71..00000000 --- a/docs/DeleteProductFieldResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteProductFieldResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DeleteProductFieldResponseData**](DeleteProductFieldResponseData.md) | | [optional] - - diff --git a/docs/DeleteProductFieldResponseData.md b/docs/DeleteProductFieldResponseData.md deleted file mode 100644 index 22a20668..00000000 --- a/docs/DeleteProductFieldResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteProductFieldResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deleted product field | [optional] - - diff --git a/docs/DeleteProductFollowerResponse.md b/docs/DeleteProductFollowerResponse.md deleted file mode 100644 index 2835c32f..00000000 --- a/docs/DeleteProductFollowerResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteProductFollowerResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DeleteProductFollowerResponseData**](DeleteProductFollowerResponseData.md) | | [optional] - - diff --git a/docs/DeleteProductFollowerResponseData.md b/docs/DeleteProductFollowerResponseData.md deleted file mode 100644 index 12951ad2..00000000 --- a/docs/DeleteProductFollowerResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteProductFollowerResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the removed follower | [optional] - - diff --git a/docs/DeleteProductResponse.md b/docs/DeleteProductResponse.md deleted file mode 100644 index 45f51ea2..00000000 --- a/docs/DeleteProductResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteProductResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DeleteProductResponseData**](DeleteProductResponseData.md) | | [optional] - - diff --git a/docs/DeleteProductResponseData.md b/docs/DeleteProductResponseData.md deleted file mode 100644 index 12e4de10..00000000 --- a/docs/DeleteProductResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteProductResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the removed product | [optional] - - diff --git a/docs/DeleteProject.md b/docs/DeleteProject.md deleted file mode 100644 index 4517b7fd..00000000 --- a/docs/DeleteProject.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteProject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeleteProjectData**](DeleteProjectData.md) | | [optional] - - diff --git a/docs/DeleteProjectData.md b/docs/DeleteProjectData.md deleted file mode 100644 index 61ce919d..00000000 --- a/docs/DeleteProjectData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteProjectData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the project that was deleted | [optional] - - diff --git a/docs/DeleteProjectResponse.md b/docs/DeleteProjectResponse.md deleted file mode 100644 index dc1ef33b..00000000 --- a/docs/DeleteProjectResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.DeleteProjectResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**DeleteProject**](DeleteProject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/DeleteProjectResponse200.md b/docs/DeleteProjectResponse200.md deleted file mode 100644 index 38a67031..00000000 --- a/docs/DeleteProjectResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.DeleteProjectResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**DeleteProject**](DeleteProject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/DeleteResponse.md b/docs/DeleteResponse.md deleted file mode 100644 index 0cac7c46..00000000 --- a/docs/DeleteResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DeleteResponseAllOfData**](DeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/DeleteResponseAllOf.md b/docs/DeleteResponseAllOf.md deleted file mode 100644 index 1e522ea3..00000000 --- a/docs/DeleteResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**DeleteResponseAllOfData**](DeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/DeleteResponseAllOfData.md b/docs/DeleteResponseAllOfData.md deleted file mode 100644 index 6b5571cb..00000000 --- a/docs/DeleteResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the field that was deleted | [optional] - - diff --git a/docs/DeleteRole.md b/docs/DeleteRole.md deleted file mode 100644 index 0ed54406..00000000 --- a/docs/DeleteRole.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteRole - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DeleteRoleAllOfData**](DeleteRoleAllOfData.md) | | [optional] - - diff --git a/docs/DeleteRoleAllOf.md b/docs/DeleteRoleAllOf.md deleted file mode 100644 index a2089fbd..00000000 --- a/docs/DeleteRoleAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteRoleAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**DeleteRoleAllOfData**](DeleteRoleAllOfData.md) | | [optional] - - diff --git a/docs/DeleteRoleAllOfData.md b/docs/DeleteRoleAllOfData.md deleted file mode 100644 index 37425db5..00000000 --- a/docs/DeleteRoleAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteRoleAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deleted role | [optional] - - diff --git a/docs/DeleteRoleAssignment.md b/docs/DeleteRoleAssignment.md deleted file mode 100644 index 2abeb450..00000000 --- a/docs/DeleteRoleAssignment.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteRoleAssignment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DeleteRoleAssignmentAllOfData**](DeleteRoleAssignmentAllOfData.md) | | [optional] - - diff --git a/docs/DeleteRoleAssignmentAllOf.md b/docs/DeleteRoleAssignmentAllOf.md deleted file mode 100644 index f00e025a..00000000 --- a/docs/DeleteRoleAssignmentAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteRoleAssignmentAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**DeleteRoleAssignmentAllOfData**](DeleteRoleAssignmentAllOfData.md) | | [optional] - - diff --git a/docs/DeleteRoleAssignmentAllOfData.md b/docs/DeleteRoleAssignmentAllOfData.md deleted file mode 100644 index 62ecb935..00000000 --- a/docs/DeleteRoleAssignmentAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteRoleAssignmentAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the role the user was removed from | [optional] - - diff --git a/docs/DeleteRoleAssignmentRequest.md b/docs/DeleteRoleAssignmentRequest.md deleted file mode 100644 index 1e6c753d..00000000 --- a/docs/DeleteRoleAssignmentRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteRoleAssignmentRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user | - - diff --git a/docs/DeleteStageResponse.md b/docs/DeleteStageResponse.md deleted file mode 100644 index c5cb2cd8..00000000 --- a/docs/DeleteStageResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteStageResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeleteStageResponseData**](DeleteStageResponseData.md) | | [optional] - - diff --git a/docs/DeleteStageResponse200.md b/docs/DeleteStageResponse200.md deleted file mode 100644 index 783a642c..00000000 --- a/docs/DeleteStageResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteStageResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeleteStageResponse200Data**](DeleteStageResponse200Data.md) | | [optional] - - diff --git a/docs/DeleteStageResponse200Data.md b/docs/DeleteStageResponse200Data.md deleted file mode 100644 index 2ac5bcbf..00000000 --- a/docs/DeleteStageResponse200Data.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteStageResponse200Data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | Deleted stage ID | [optional] - - diff --git a/docs/DeleteStageResponseData.md b/docs/DeleteStageResponseData.md deleted file mode 100644 index 30fb540f..00000000 --- a/docs/DeleteStageResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteStageResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | Deleted stage ID | [optional] - - diff --git a/docs/DeleteStagesResponse.md b/docs/DeleteStagesResponse.md deleted file mode 100644 index 5df4a9d4..00000000 --- a/docs/DeleteStagesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteStagesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeleteStagesResponseData**](DeleteStagesResponseData.md) | | [optional] - - diff --git a/docs/DeleteStagesResponse200.md b/docs/DeleteStagesResponse200.md deleted file mode 100644 index e994e1fd..00000000 --- a/docs/DeleteStagesResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteStagesResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeleteStagesResponse200Data**](DeleteStagesResponse200Data.md) | | [optional] - - diff --git a/docs/DeleteStagesResponse200Data.md b/docs/DeleteStagesResponse200Data.md deleted file mode 100644 index 52ca2829..00000000 --- a/docs/DeleteStagesResponse200Data.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteStagesResponse200Data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | The list of deleted stage IDs | [optional] - - diff --git a/docs/DeleteStagesResponseData.md b/docs/DeleteStagesResponseData.md deleted file mode 100644 index c480f5fb..00000000 --- a/docs/DeleteStagesResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteStagesResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | The list of deleted stage IDs | [optional] - - diff --git a/docs/DeleteTask.md b/docs/DeleteTask.md deleted file mode 100644 index 08848ad9..00000000 --- a/docs/DeleteTask.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.DeleteTask - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**DeleteTaskData**](DeleteTaskData.md) | | [optional] - - diff --git a/docs/DeleteTaskData.md b/docs/DeleteTaskData.md deleted file mode 100644 index 2dbb0a2d..00000000 --- a/docs/DeleteTaskData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteTaskData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the task that was deleted | [optional] - - diff --git a/docs/DeleteTaskResponse.md b/docs/DeleteTaskResponse.md deleted file mode 100644 index 121274d8..00000000 --- a/docs/DeleteTaskResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.DeleteTaskResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**DeleteTask**](DeleteTask.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/DeleteTaskResponse200.md b/docs/DeleteTaskResponse200.md deleted file mode 100644 index 20394e45..00000000 --- a/docs/DeleteTaskResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.DeleteTaskResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**DeleteTask**](DeleteTask.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/DeleteTeamUserRequest.md b/docs/DeleteTeamUserRequest.md deleted file mode 100644 index c8f4de20..00000000 --- a/docs/DeleteTeamUserRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.DeleteTeamUserRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**users** | **[Number]** | The list of user IDs | - - diff --git a/docs/Duration.md b/docs/Duration.md deleted file mode 100644 index ec067cbc..00000000 --- a/docs/Duration.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.Duration - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start** | **String** | The start date of the goal | [optional] -**end** | **String** | The end date of the goal | [optional] - - diff --git a/docs/EditPipeline.md b/docs/EditPipeline.md deleted file mode 100644 index 26483203..00000000 --- a/docs/EditPipeline.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.EditPipeline - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BasePipelineWithSelectedFlag**](BasePipelineWithSelectedFlag.md) | The pipeline object | [optional] - - diff --git a/docs/EditPipelineAllOf.md b/docs/EditPipelineAllOf.md deleted file mode 100644 index 7f9e5190..00000000 --- a/docs/EditPipelineAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.EditPipelineAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BasePipelineWithSelectedFlag**](BasePipelineWithSelectedFlag.md) | The pipeline object | [optional] - - diff --git a/docs/EmailInfo.md b/docs/EmailInfo.md deleted file mode 100644 index 6fb4fe50..00000000 --- a/docs/EmailInfo.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.EmailInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the person | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the person | [optional] - - diff --git a/docs/ExpectedOutcome.md b/docs/ExpectedOutcome.md deleted file mode 100644 index 20360c6f..00000000 --- a/docs/ExpectedOutcome.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ExpectedOutcome - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**target** | **Number** | The numeric target of the goal | [optional] -**tracking_metric** | **String** | The tracking metric of the goal | [optional] - - diff --git a/docs/FailResponse.md b/docs/FailResponse.md deleted file mode 100644 index cd6eceae..00000000 --- a/docs/FailResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.FailResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**error** | **String** | The error message | [optional] - - diff --git a/docs/Field.md b/docs/Field.md deleted file mode 100644 index e2962a79..00000000 --- a/docs/Field.md +++ /dev/null @@ -1,32 +0,0 @@ -# Pipedrive.Field - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the field. Value is `null` in case of subfields. | [optional] -**key** | **String** | The key of the field. For custom fields this is generated upon creation. | [optional] -**name** | **String** | The name of the field | [optional] -**order_nr** | **Number** | The order number of the field | [optional] -**field_type** | [**FieldTypeAsString**](FieldTypeAsString.md) | | [optional] -**add_time** | **Date** | The creation time of the field | [optional] -**update_time** | **Date** | The update time of the field | [optional] -**last_updated_by_user_id** | **Number** | The ID of the user who created or most recently updated the field, only applicable for custom fields | [optional] -**created_by_user_id** | **Number** | The ID of the user who created the field | [optional] -**active_flag** | **Boolean** | The active flag of the field | [optional] -**edit_flag** | **Boolean** | The edit flag of the field | [optional] -**index_visible_flag** | **Boolean** | Not used | [optional] -**details_visible_flag** | **Boolean** | Not used | [optional] -**add_visible_flag** | **Boolean** | Not used | [optional] -**important_flag** | **Boolean** | Not used | [optional] -**bulk_edit_allowed** | **Boolean** | Whether or not the field of an item can be edited in bulk | [optional] -**searchable_flag** | **Boolean** | Whether or not items can be searched by this field | [optional] -**filtering_allowed** | **Boolean** | Whether or not items can be filtered by this field | [optional] -**sortable_flag** | **Boolean** | Whether or not items can be sorted by this field | [optional] -**mandatory_flag** | **Boolean** | Whether or not the field is mandatory | [optional] -**options** | **[Object]** | The options of the field. When there are no options, `null` is returned. | [optional] -**options_deleted** | **[Object]** | The deleted options of the field. Only present when there is at least 1 deleted option. | [optional] -**is_subfield** | **Boolean** | Whether or not the field is a subfield of another field. Only present if field is subfield. | [optional] -**subfields** | **[Object]** | The subfields of the field. Only present when the field has subfields. | [optional] - - diff --git a/docs/FieldCreateRequest.md b/docs/FieldCreateRequest.md deleted file mode 100644 index cab9e36c..00000000 --- a/docs/FieldCreateRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.FieldCreateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the field | -**options** | **[Object]** | When `field_type` is either set or enum, possible options must be supplied as a JSON-encoded sequential array of objects. Example: `[{\"label\":\"New Item\"}]` | [optional] -**add_visible_flag** | **Boolean** | Whether the field is available in the 'add new' modal or not (both in the web and mobile app) | [optional] [default to true] -**field_type** | [**FieldTypeAsString**](FieldTypeAsString.md) | | - - diff --git a/docs/FieldCreateRequestAllOf.md b/docs/FieldCreateRequestAllOf.md deleted file mode 100644 index 5346e301..00000000 --- a/docs/FieldCreateRequestAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.FieldCreateRequestAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the field | -**options** | **[Object]** | When `field_type` is either set or enum, possible options must be supplied as a JSON-encoded sequential array of objects. Example: `[{\"label\":\"New Item\"}]` | [optional] -**add_visible_flag** | **Boolean** | Whether the field is available in the 'add new' modal or not (both in the web and mobile app) | [optional] [default to true] - - diff --git a/docs/FieldResponse.md b/docs/FieldResponse.md deleted file mode 100644 index f980ca80..00000000 --- a/docs/FieldResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.FieldResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**Field**](Field.md) | | [optional] - - diff --git a/docs/FieldResponseAllOf.md b/docs/FieldResponseAllOf.md deleted file mode 100644 index 3b9402bd..00000000 --- a/docs/FieldResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FieldResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Field**](Field.md) | | [optional] - - diff --git a/docs/FieldType.md b/docs/FieldType.md deleted file mode 100644 index 6d4d9a8d..00000000 --- a/docs/FieldType.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FieldType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**field_type** | [**FieldTypeAsString**](FieldTypeAsString.md) | | - - diff --git a/docs/FieldTypeAsString.md b/docs/FieldTypeAsString.md deleted file mode 100644 index 3134b7f5..00000000 --- a/docs/FieldTypeAsString.md +++ /dev/null @@ -1,40 +0,0 @@ -# Pipedrive.FieldTypeAsString - -## Enum - - -* `address` (value: `"address"`) - -* `date` (value: `"date"`) - -* `daterange` (value: `"daterange"`) - -* `double` (value: `"double"`) - -* `enum` (value: `"enum"`) - -* `monetary` (value: `"monetary"`) - -* `org` (value: `"org"`) - -* `people` (value: `"people"`) - -* `phone` (value: `"phone"`) - -* `set` (value: `"set"`) - -* `text` (value: `"text"`) - -* `time` (value: `"time"`) - -* `timerange` (value: `"timerange"`) - -* `user` (value: `"user"`) - -* `varchar` (value: `"varchar"`) - -* `varchar_auto` (value: `"varchar_auto"`) - -* `visible_to` (value: `"visible_to"`) - - diff --git a/docs/FieldUpdateRequest.md b/docs/FieldUpdateRequest.md deleted file mode 100644 index df814920..00000000 --- a/docs/FieldUpdateRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.FieldUpdateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the field | [optional] -**options** | **[Object]** | When `field_type` is either set or enum, possible options must be supplied as a JSON-encoded sequential array of objects. All active items must be supplied and already existing items must have their ID supplied. New items only require a label. Example: `[{\"id\":123,\"label\":\"Existing Item\"},{\"label\":\"New Item\"}]` | [optional] -**add_visible_flag** | **Boolean** | Whether the field is available in 'add new' modal or not (both in web and mobile app) | [optional] [default to true] - - diff --git a/docs/FieldsResponse.md b/docs/FieldsResponse.md deleted file mode 100644 index 39727d48..00000000 --- a/docs/FieldsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.FieldsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[GetField]**](GetField.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/FieldsResponseAllOf.md b/docs/FieldsResponseAllOf.md deleted file mode 100644 index 7a9f7c33..00000000 --- a/docs/FieldsResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.FieldsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[GetField]**](GetField.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/FileData.md b/docs/FileData.md deleted file mode 100644 index a793e993..00000000 --- a/docs/FileData.md +++ /dev/null @@ -1,36 +0,0 @@ -# Pipedrive.FileData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the file | [optional] -**user_id** | **Number** | The ID of the user to associate the file with | [optional] -**deal_id** | **Number** | The ID of the deal to associate the file with | [optional] -**person_id** | **Number** | The ID of the person to associate the file with | [optional] -**org_id** | **Number** | The ID of the organization to associate the file with | [optional] -**product_id** | **Number** | The ID of the product to associate the file with | [optional] -**activity_id** | **Number** | The ID of the activity to associate the file with | [optional] -**lead_id** | **String** | The ID of the lead to associate the file with | [optional] -**add_time** | **String** | The date and time when the file was added/created. Format: YYYY-MM-DD HH:MM:SS | [optional] -**update_time** | **String** | The last updated date and time of the file. Format: YYYY-MM-DD HH:MM:SS | [optional] -**file_name** | **String** | The original name of the file | [optional] -**file_size** | **Number** | The size of the file | [optional] -**active_flag** | **Boolean** | Whether the user is active or not. false = Not activated, true = Activated | [optional] -**inline_flag** | **Boolean** | Whether the file was uploaded as inline or not | [optional] -**remote_location** | **String** | The location type to send the file to. Only googledrive is supported at the moment. | [optional] -**remote_id** | **String** | The ID of the remote item | [optional] -**cid** | **String** | The ID of the inline attachment | [optional] -**s3_bucket** | **String** | The location of the cloud storage | [optional] -**mail_message_id** | **String** | The ID of the mail message to associate the file with | [optional] -**mail_template_id** | **String** | The ID of the mail template to associate the file with | [optional] -**deal_name** | **String** | The name of the deal associated with the file | [optional] -**person_name** | **String** | The name of the person associated with the file | [optional] -**org_name** | **String** | The name of the organization associated with the file | [optional] -**product_name** | **String** | The name of the product associated with the file | [optional] -**lead_name** | **String** | The name of the lead associated with the file | [optional] -**url** | **String** | The URL of the download file | [optional] -**name** | **String** | The visible name of the file | [optional] -**description** | **String** | The description of the file | [optional] - - diff --git a/docs/FileItem.md b/docs/FileItem.md deleted file mode 100644 index a734a6db..00000000 --- a/docs/FileItem.md +++ /dev/null @@ -1,36 +0,0 @@ -# Pipedrive.FileItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the file | [optional] -**user_id** | **Number** | The ID of the user to associate the file with | [optional] -**deal_id** | **Number** | The ID of the deal to associate the file with | [optional] -**person_id** | **Number** | The ID of the person to associate the file with | [optional] -**org_id** | **Number** | The ID of the organization to associate the file with | [optional] -**product_id** | **Number** | The ID of the product to associate the file with | [optional] -**activity_id** | **Number** | The ID of the activity to associate the file with | [optional] -**lead_id** | **String** | The ID of the lead to associate the file with | [optional] -**add_time** | **String** | The date and time when the file was added/created. Format: YYYY-MM-DD HH:MM:SS | [optional] -**update_time** | **String** | The last updated date and time of the file. Format: YYYY-MM-DD HH:MM:SS | [optional] -**file_name** | **String** | The original name of the file | [optional] -**file_size** | **Number** | The size of the file | [optional] -**active_flag** | **Boolean** | Whether the user is active or not. false = Not activated, true = Activated | [optional] -**inline_flag** | **Boolean** | Whether the file was uploaded as inline or not | [optional] -**remote_location** | **String** | The location type to send the file to. Only googledrive is supported at the moment. | [optional] -**remote_id** | **String** | The ID of the remote item | [optional] -**cid** | **String** | The ID of the inline attachment | [optional] -**s3_bucket** | **String** | The location of the cloud storage | [optional] -**mail_message_id** | **String** | The ID of the mail message to associate the file with | [optional] -**mail_template_id** | **String** | The ID of the mail template to associate the file with | [optional] -**deal_name** | **String** | The name of the deal associated with the dile | [optional] -**person_name** | **String** | The name of the person associated with the file | [optional] -**org_name** | **String** | The name of the organization associated with the file | [optional] -**product_name** | **String** | The name of the product associated with the file | [optional] -**lead_name** | **String** | The name of the lead associated with the file | [optional] -**url** | **String** | The URL of the download file | [optional] -**name** | **String** | The visible name of the file | [optional] -**description** | **String** | The description of the file | [optional] - - diff --git a/docs/FilesApi.md b/docs/FilesApi.md deleted file mode 100644 index d79b1f9b..00000000 --- a/docs/FilesApi.md +++ /dev/null @@ -1,483 +0,0 @@ -# Pipedrive.FilesApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addFile**](FilesApi.md#addFile) | **POST** /files | Add file -[**addFileAndLinkIt**](FilesApi.md#addFileAndLinkIt) | **POST** /files/remote | Create a remote file and link it to an item -[**deleteFile**](FilesApi.md#deleteFile) | **DELETE** /files/{id} | Delete a file -[**downloadFile**](FilesApi.md#downloadFile) | **GET** /files/{id}/download | Download one file -[**getFile**](FilesApi.md#getFile) | **GET** /files/{id} | Get one file -[**getFiles**](FilesApi.md#getFiles) | **GET** /files | Get all files -[**linkFileToItem**](FilesApi.md#linkFileToItem) | **POST** /files/remoteLink | Link a remote file to an item -[**updateFile**](FilesApi.md#updateFile) | **PUT** /files/{id} | Update file details - - - -## addFile - -> AddFile addFile(file, opts) - -Add file - -Lets you upload a file and associate it with a deal, person, organization, activity, product or lead. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-file\" target=\"_blank\" rel=\"noopener noreferrer\">adding a file</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FilesApi(apiClient); -let file = "/path/to/file"; // File | A single file, supplied in the multipart/form-data encoding and contained within the given boundaries -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'dealId': 56, // Number | The ID of the deal to associate file(s) with - 'personId': 56, // Number | The ID of the person to associate file(s) with - 'orgId': 56, // Number | The ID of the organization to associate file(s) with - 'productId': 56, // Number | The ID of the product to associate file(s) with - 'activityId': 56, // Number | The ID of the activity to associate file(s) with - 'leadId': "leadId_example" // String | The ID of the lead to associate file(s) with -}; -apiInstance.addFile(file, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file** | **File**| A single file, supplied in the multipart/form-data encoding and contained within the given boundaries | - **deal_id** | **Number**| The ID of the deal to associate file(s) with | [optional] - **person_id** | **Number**| The ID of the person to associate file(s) with | [optional] - **org_id** | **Number**| The ID of the organization to associate file(s) with | [optional] - **product_id** | **Number**| The ID of the product to associate file(s) with | [optional] - **activity_id** | **Number**| The ID of the activity to associate file(s) with | [optional] - **lead_id** | **String**| The ID of the lead to associate file(s) with | [optional] - -### Return type - -[**AddFile**](AddFile.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: multipart/form-data -- **Accept**: application/json - - -## addFileAndLinkIt - -> CreateRemoteFileAndLinkItToItem addFileAndLinkIt(fileType, title, itemType, itemId, remoteLocation) - -Create a remote file and link it to an item - -Creates a new empty file in the remote location (`googledrive`) that will be linked to the item you supply. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-remote-file\" target=\"_blank\" rel=\"noopener noreferrer\">adding a remote file</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FilesApi(apiClient); -let fileType = "fileType_example"; // String | The file type -let title = "title_example"; // String | The title of the file -let itemType = "itemType_example"; // String | The item type -let itemId = 56; // Number | The ID of the item to associate the file with -let remoteLocation = "remoteLocation_example"; // String | The location type to send the file to. Only `googledrive` is supported at the moment. -apiInstance.addFileAndLinkIt(fileType, title, itemType, itemId, remoteLocation).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **file_type** | **String**| The file type | - **title** | **String**| The title of the file | - **item_type** | **String**| The item type | - **item_id** | **Number**| The ID of the item to associate the file with | - **remote_location** | **String**| The location type to send the file to. Only `googledrive` is supported at the moment. | - -### Return type - -[**CreateRemoteFileAndLinkItToItem**](CreateRemoteFileAndLinkItToItem.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: application/json - - -## deleteFile - -> DeleteFile deleteFile(id) - -Delete a file - -Marks a file as deleted. After 30 days, the file will be permanently deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FilesApi(apiClient); -let id = 56; // Number | The ID of the file -apiInstance.deleteFile(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the file | - -### Return type - -[**DeleteFile**](DeleteFile.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## downloadFile - -> Blob downloadFile(id) - -Download one file - -Initializes a file download. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FilesApi(apiClient); -let id = 56; // Number | The ID of the file -apiInstance.downloadFile(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the file | - -### Return type - -**Blob** - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/octet-stream - - -## getFile - -> GetOneFile getFile(id) - -Get one file - -Returns data about a specific file. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FilesApi(apiClient); -let id = 56; // Number | The ID of the file -apiInstance.getFile(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the file | - -### Return type - -[**GetOneFile**](GetOneFile.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getFiles - -> GetAllFiles getFiles(opts) - -Get all files - -Returns data about all files. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FilesApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'sort': "sort_example" // String | 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`. -}; -apiInstance.getFiles(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **sort** | **String**| 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`. | [optional] - -### Return type - -[**GetAllFiles**](GetAllFiles.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## linkFileToItem - -> LinkRemoteFileToItem linkFileToItem(itemType, itemId, remoteId, remoteLocation) - -Link a remote file to an item - -Links an existing remote file (`googledrive`) to the item you supply. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-remote-file\" target=\"_blank\" rel=\"noopener noreferrer\">adding a remote file</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FilesApi(apiClient); -let itemType = "itemType_example"; // String | The item type -let itemId = 56; // Number | The ID of the item to associate the file with -let remoteId = "remoteId_example"; // String | The remote item ID -let remoteLocation = "remoteLocation_example"; // String | The location type to send the file to. Only `googledrive` is supported at the moment. -apiInstance.linkFileToItem(itemType, itemId, remoteId, remoteLocation).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **item_type** | **String**| The item type | - **item_id** | **Number**| The ID of the item to associate the file with | - **remote_id** | **String**| The remote item ID | - **remote_location** | **String**| The location type to send the file to. Only `googledrive` is supported at the moment. | - -### Return type - -[**LinkRemoteFileToItem**](LinkRemoteFileToItem.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: application/json - - -## updateFile - -> UpdateFile updateFile(id, opts) - -Update file details - -Updates the properties of a file. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FilesApi(apiClient); -let id = 56; // Number | The ID of the file -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'name': "name_example", // String | The visible name of the file - 'description': "description_example" // String | The description of the file -}; -apiInstance.updateFile(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the file | - **name** | **String**| The visible name of the file | [optional] - **description** | **String**| The description of the file | [optional] - -### Return type - -[**UpdateFile**](UpdateFile.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: application/json - diff --git a/docs/FilterGetItem.md b/docs/FilterGetItem.md deleted file mode 100644 index 789e4a49..00000000 --- a/docs/FilterGetItem.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.FilterGetItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the filter | [optional] -**name** | **String** | The name of the filter | [optional] -**active_flag** | **Boolean** | The active flag of the filter | [optional] -**type** | **String** | The type of the item | [optional] -**user_id** | **Number** | The owner of the filter | [optional] -**add_time** | **String** | The date and time when the filter was added | [optional] -**update_time** | **String** | The date and time when the filter was updated | [optional] -**visible_to** | **Number** | The visibility group ID of who can see then filter | [optional] -**custom_view_id** | **Number** | Used by Pipedrive webapp | [optional] - - diff --git a/docs/FilterType.md b/docs/FilterType.md deleted file mode 100644 index b52c0562..00000000 --- a/docs/FilterType.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.FilterType - -## Enum - - -* `deals` (value: `"deals"`) - -* `leads` (value: `"leads"`) - -* `org` (value: `"org"`) - -* `people` (value: `"people"`) - -* `products` (value: `"products"`) - -* `activity` (value: `"activity"`) - -* `projects` (value: `"projects"`) - - diff --git a/docs/FiltersApi.md b/docs/FiltersApi.md deleted file mode 100644 index 5b1f3dcc..00000000 --- a/docs/FiltersApi.md +++ /dev/null @@ -1,391 +0,0 @@ -# Pipedrive.FiltersApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addFilter**](FiltersApi.md#addFilter) | **POST** /filters | Add a new filter -[**deleteFilter**](FiltersApi.md#deleteFilter) | **DELETE** /filters/{id} | Delete a filter -[**deleteFilters**](FiltersApi.md#deleteFilters) | **DELETE** /filters | Delete multiple filters in bulk -[**getFilter**](FiltersApi.md#getFilter) | **GET** /filters/{id} | Get one filter -[**getFilterHelpers**](FiltersApi.md#getFilterHelpers) | **GET** /filters/helpers | Get all filter helpers -[**getFilters**](FiltersApi.md#getFilters) | **GET** /filters | Get all filters -[**updateFilter**](FiltersApi.md#updateFilter) | **PUT** /filters/{id} | Update filter - - - -## addFilter - -> FiltersPostResponse addFilter(opts) - -Add a new filter - -Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with 'AND', and only two second level condition groups are supported of which one must be glued with 'AND' and the second with 'OR'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FiltersApi(apiClient); -let opts = Pipedrive.AddFilterRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addFilter(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **AddFilterRequest** | [**AddFilterRequest**](AddFilterRequest.md)| | [optional] - -### Return type - -[**FiltersPostResponse**](FiltersPostResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteFilter - -> FiltersDeleteResponse deleteFilter(id) - -Delete a filter - -Marks a filter as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FiltersApi(apiClient); -let id = 56; // Number | The ID of the filter -apiInstance.deleteFilter(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the filter | - -### Return type - -[**FiltersDeleteResponse**](FiltersDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteFilters - -> FiltersBulkDeleteResponse deleteFilters(ids) - -Delete multiple filters in bulk - -Marks multiple filters as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FiltersApi(apiClient); -let ids = "ids_example"; // String | The comma-separated filter IDs to delete -apiInstance.deleteFilters(ids).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ids** | **String**| The comma-separated filter IDs to delete | - -### Return type - -[**FiltersBulkDeleteResponse**](FiltersBulkDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getFilter - -> FiltersGetResponse getFilter(id) - -Get one filter - -Returns data about a specific filter. Note that this also returns the condition lines of the filter. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FiltersApi(apiClient); -let id = 56; // Number | The ID of the filter -apiInstance.getFilter(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the filter | - -### Return type - -[**FiltersGetResponse**](FiltersGetResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getFilterHelpers - -> Object getFilterHelpers() - -Get all filter helpers - -Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to <a href=\"/docs/api/v1/Filters#addFilter\">add</a> or <a href=\"/docs/api/v1/Filters#updateFilter\">update</a> filters. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-filter\" target=\"_blank\" rel=\"noopener noreferrer\">adding a filter</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FiltersApi(apiClient); -apiInstance.getFilterHelpers().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -**Object** - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getFilters - -> FiltersBulkGetResponse getFilters(opts) - -Get all filters - -Returns data about all filters. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FiltersApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'type': new Pipedrive.FilterType() // FilterType | The types of filters to fetch -}; -apiInstance.getFilters(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **type** | [**FilterType**](.md)| The types of filters to fetch | [optional] - -### Return type - -[**FiltersBulkGetResponse**](FiltersBulkGetResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateFilter - -> FiltersPostResponse updateFilter(id, opts) - -Update filter - -Updates an existing filter. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.FiltersApi(apiClient); -let id = 56; // Number | The ID of the filter -let opts = Pipedrive.UpdateFilterRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateFilter(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the filter | - **UpdateFilterRequest** | [**UpdateFilterRequest**](UpdateFilterRequest.md)| | [optional] - -### Return type - -[**FiltersPostResponse**](FiltersPostResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/FiltersBulkDeleteResponse.md b/docs/FiltersBulkDeleteResponse.md deleted file mode 100644 index e605fa9b..00000000 --- a/docs/FiltersBulkDeleteResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.FiltersBulkDeleteResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**FiltersBulkDeleteResponseAllOfData**](FiltersBulkDeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/FiltersBulkDeleteResponseAllOf.md b/docs/FiltersBulkDeleteResponseAllOf.md deleted file mode 100644 index 4c665713..00000000 --- a/docs/FiltersBulkDeleteResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FiltersBulkDeleteResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**FiltersBulkDeleteResponseAllOfData**](FiltersBulkDeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/FiltersBulkDeleteResponseAllOfData.md b/docs/FiltersBulkDeleteResponseAllOfData.md deleted file mode 100644 index 26e7ade3..00000000 --- a/docs/FiltersBulkDeleteResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FiltersBulkDeleteResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | The array of the IDs of the deleted filter | [optional] - - diff --git a/docs/FiltersBulkGetResponse.md b/docs/FiltersBulkGetResponse.md deleted file mode 100644 index dd5c2e0e..00000000 --- a/docs/FiltersBulkGetResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.FiltersBulkGetResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[FilterGetItem]**](FilterGetItem.md) | The array of filters | [optional] - - diff --git a/docs/FiltersBulkGetResponseAllOf.md b/docs/FiltersBulkGetResponseAllOf.md deleted file mode 100644 index 51374837..00000000 --- a/docs/FiltersBulkGetResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FiltersBulkGetResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[FilterGetItem]**](FilterGetItem.md) | The array of filters | [optional] - - diff --git a/docs/FiltersDeleteResponse.md b/docs/FiltersDeleteResponse.md deleted file mode 100644 index 2ed2a985..00000000 --- a/docs/FiltersDeleteResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.FiltersDeleteResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**FiltersDeleteResponseAllOfData**](FiltersDeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/FiltersDeleteResponseAllOf.md b/docs/FiltersDeleteResponseAllOf.md deleted file mode 100644 index fcae1987..00000000 --- a/docs/FiltersDeleteResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FiltersDeleteResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**FiltersDeleteResponseAllOfData**](FiltersDeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/FiltersDeleteResponseAllOfData.md b/docs/FiltersDeleteResponseAllOfData.md deleted file mode 100644 index 36df10a9..00000000 --- a/docs/FiltersDeleteResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FiltersDeleteResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deleted filter | [optional] - - diff --git a/docs/FiltersGetResponse.md b/docs/FiltersGetResponse.md deleted file mode 100644 index c64400dc..00000000 --- a/docs/FiltersGetResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.FiltersGetResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**FilterGetItem**](FilterGetItem.md) | | [optional] - - diff --git a/docs/FiltersGetResponseAllOf.md b/docs/FiltersGetResponseAllOf.md deleted file mode 100644 index 74694a94..00000000 --- a/docs/FiltersGetResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FiltersGetResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**FilterGetItem**](FilterGetItem.md) | | [optional] - - diff --git a/docs/FiltersPostResponse.md b/docs/FiltersPostResponse.md deleted file mode 100644 index c7cd6fba..00000000 --- a/docs/FiltersPostResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.FiltersPostResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**FiltersPostResponseAllOfData**](FiltersPostResponseAllOfData.md) | | [optional] - - diff --git a/docs/FiltersPostResponseAllOf.md b/docs/FiltersPostResponseAllOf.md deleted file mode 100644 index 8bb6ccb6..00000000 --- a/docs/FiltersPostResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FiltersPostResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**FiltersPostResponseAllOfData**](FiltersPostResponseAllOfData.md) | | [optional] - - diff --git a/docs/FiltersPostResponseAllOfData.md b/docs/FiltersPostResponseAllOfData.md deleted file mode 100644 index 6a150983..00000000 --- a/docs/FiltersPostResponseAllOfData.md +++ /dev/null @@ -1,19 +0,0 @@ -# Pipedrive.FiltersPostResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the created filter | [optional] -**name** | **String** | The name of the created filter | [optional] -**active_flag** | **Boolean** | The activity flag of the created filter | [optional] -**type** | [**FilterType**](FilterType.md) | | [optional] -**temporary_flag** | **Boolean** | If the created filter is temporary or not | [optional] -**user_id** | **Number** | The user ID of the created filter | [optional] -**add_time** | **String** | The add time of the created filter | [optional] -**update_time** | **String** | The update time of the created filter | [optional] -**visible_to** | **Number** | The visibility group ID of the created filter | [optional] -**custom_view_id** | **Number** | The custom view ID of the created filter | [optional] -**conditions** | **Object** | The created filter conditions object | [optional] - - diff --git a/docs/FindGoalResponse.md b/docs/FindGoalResponse.md deleted file mode 100644 index efc6f550..00000000 --- a/docs/FindGoalResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FindGoalResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**goals** | [**[GoalsResponseComponent]**](GoalsResponseComponent.md) | | [optional] - - diff --git a/docs/FindProductsByNameResponse.md b/docs/FindProductsByNameResponse.md deleted file mode 100644 index 083e93cb..00000000 --- a/docs/FindProductsByNameResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.FindProductsByNameResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**FindProductsByNameResponseData**](FindProductsByNameResponseData.md) | | [optional] -**additionalData** | **Object** | Any additional data related to the Products | [optional] - - diff --git a/docs/FindProductsByNameResponseData.md b/docs/FindProductsByNameResponseData.md deleted file mode 100644 index 197adaa1..00000000 --- a/docs/FindProductsByNameResponseData.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.FindProductsByNameResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the Product | [optional] -**variationId** | **String** | The ID of the price variation of the Product | [optional] -**name** | **String** | The name of the Product | [optional] -**title** | **String** | The title of the Product | [optional] -**variationName** | **String** | The name of the price variation of the Product | [optional] -**price** | **Number** | The value corresponding to the Product price | [optional] -**priceFormatted** | **String** | The Product price with the currency format | [optional] - - diff --git a/docs/FollowerData.md b/docs/FollowerData.md deleted file mode 100644 index 34925a3e..00000000 --- a/docs/FollowerData.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.FollowerData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the follower | [optional] -**email** | **String** | The email of the follower | [optional] -**user_id** | **Number** | The user ID of the follower | [optional] -**pic_hash** | **String** | The follower picture hash | [optional] - - diff --git a/docs/FollowerDataWithID.md b/docs/FollowerDataWithID.md deleted file mode 100644 index 1e1009e7..00000000 --- a/docs/FollowerDataWithID.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.FollowerDataWithID - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the follower associated with the item | [optional] -**name** | **String** | The name of the follower | [optional] -**email** | **String** | The email of the follower | [optional] -**user_id** | **Number** | The user ID of the follower | [optional] -**pic_hash** | **String** | The follower picture hash | [optional] - - diff --git a/docs/FollowerDataWithIDAllOf.md b/docs/FollowerDataWithIDAllOf.md deleted file mode 100644 index d0b4564f..00000000 --- a/docs/FollowerDataWithIDAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FollowerDataWithIDAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the follower associated with the item | [optional] - - diff --git a/docs/FullProjectObject.md b/docs/FullProjectObject.md deleted file mode 100644 index 49e4bc8b..00000000 --- a/docs/FullProjectObject.md +++ /dev/null @@ -1,24 +0,0 @@ -# Pipedrive.FullProjectObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the project | [optional] -**board_id** | **Number** | The ID of the board this project is associated with | [optional] -**phase_id** | **Number** | The ID of the phase this project is associated with | [optional] -**description** | **String** | The description of the project | [optional] -**status** | **String** | The status of the project | [optional] -**owner_id** | **Number** | The ID of a project owner | [optional] -**start_date** | **Date** | The start date of the project. Format: YYYY-MM-DD. | [optional] -**end_date** | **Date** | The end date of the project. Format: YYYY-MM-DD. | [optional] -**deal_ids** | **[Number]** | An array of IDs of the deals this project is associated with | [optional] -**org_id** | **Number** | The ID of the organization this project is associated with | [optional] -**person_id** | **Number** | The ID of the person this project is associated with | [optional] -**labels** | **[Number]** | An array of IDs of the labels this project has | [optional] -**add_time** | **String** | The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**status_change_time** | **String** | The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**archive_time** | **String** | The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. | [optional] - - diff --git a/docs/FullRole.md b/docs/FullRole.md deleted file mode 100644 index 18c95cd1..00000000 --- a/docs/FullRole.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.FullRole - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**parent_role_id** | **Number** | The ID of the parent role | [optional] -**name** | **String** | The name of the role | [optional] -**id** | **Number** | The ID of the role | [optional] -**active_flag** | **Boolean** | Whether the role is active or not | [optional] -**assignment_count** | **String** | The number of users assigned to this role | [optional] -**sub_role_count** | **String** | The number of sub-roles | [optional] -**level** | **Number** | The level of role in the role hierarchy | [optional] - - diff --git a/docs/FullRoleAllOf.md b/docs/FullRoleAllOf.md deleted file mode 100644 index 7d7724c1..00000000 --- a/docs/FullRoleAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.FullRoleAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**level** | **Number** | The level of role in the role hierarchy | [optional] - - diff --git a/docs/FullTaskObject.md b/docs/FullTaskObject.md deleted file mode 100644 index 1611a2cc..00000000 --- a/docs/FullTaskObject.md +++ /dev/null @@ -1,19 +0,0 @@ -# Pipedrive.FullTaskObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the task | [optional] -**project_id** | **Number** | The ID of the project this task is associated with | [optional] -**description** | **String** | The description of the task | [optional] -**parent_task_id** | **Number** | The ID of a parent task. Can not be ID of a task which is already a subtask. | [optional] -**assignee_id** | **Number** | The ID of the user who will be the assignee of the task | [optional] -**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the task is done or not. 0 = Not done, 1 = Done. | [optional] -**due_date** | **Date** | The due date of the task. Format: YYYY-MM-DD. | [optional] -**creator_id** | **Number** | The creator of a task | [optional] -**add_time** | **String** | The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**marked_as_done_time** | **String** | The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] - - diff --git a/docs/GetActivitiesCollectionResponse.md b/docs/GetActivitiesCollectionResponse.md deleted file mode 100644 index 380a9328..00000000 --- a/docs/GetActivitiesCollectionResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetActivitiesCollectionResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ActivityCollectionResponseObject]**](ActivityCollectionResponseObject.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/GetActivitiesCollectionResponse200.md b/docs/GetActivitiesCollectionResponse200.md deleted file mode 100644 index e4a9c9d0..00000000 --- a/docs/GetActivitiesCollectionResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetActivitiesCollectionResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ActivityCollectionResponseObject]**](ActivityCollectionResponseObject.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/GetActivitiesResponse.md b/docs/GetActivitiesResponse.md deleted file mode 100644 index 9ffaafb2..00000000 --- a/docs/GetActivitiesResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.GetActivitiesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ActivityResponseObject]**](ActivityResponseObject.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] -**related_objects** | [**GetActivitiesResponseRelatedObjects**](GetActivitiesResponseRelatedObjects.md) | | [optional] - - diff --git a/docs/GetActivitiesResponse200.md b/docs/GetActivitiesResponse200.md deleted file mode 100644 index db5d2eeb..00000000 --- a/docs/GetActivitiesResponse200.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.GetActivitiesResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ActivityResponseObject]**](ActivityResponseObject.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] -**related_objects** | [**GetActivitiesResponse200RelatedObjects**](GetActivitiesResponse200RelatedObjects.md) | | [optional] - - diff --git a/docs/GetActivitiesResponse200RelatedObjects.md b/docs/GetActivitiesResponse200RelatedObjects.md deleted file mode 100644 index 3702022c..00000000 --- a/docs/GetActivitiesResponse200RelatedObjects.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.GetActivitiesResponse200RelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] -**deal** | [**RelatedDealData**](RelatedDealData.md) | | [optional] -**person** | [**RelatedPersonData**](RelatedPersonData.md) | | [optional] -**organization** | [**RelatedOrganizationData**](RelatedOrganizationData.md) | | [optional] - - diff --git a/docs/GetActivitiesResponseRelatedObjects.md b/docs/GetActivitiesResponseRelatedObjects.md deleted file mode 100644 index 736dea2f..00000000 --- a/docs/GetActivitiesResponseRelatedObjects.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.GetActivitiesResponseRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] -**deal** | [**RelatedDealData**](RelatedDealData.md) | | [optional] -**person** | [**RelatedPersonData**](RelatedPersonData.md) | | [optional] -**organization** | [**RelatedOrganizationData**](RelatedOrganizationData.md) | | [optional] - - diff --git a/docs/GetActivityResponse.md b/docs/GetActivityResponse.md deleted file mode 100644 index 071d0bdb..00000000 --- a/docs/GetActivityResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetActivityResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ActivityResponseObject**](ActivityResponseObject.md) | | [optional] -**related_objects** | [**GetActivitiesResponseRelatedObjects**](GetActivitiesResponseRelatedObjects.md) | | [optional] - - diff --git a/docs/GetActivityResponse200.md b/docs/GetActivityResponse200.md deleted file mode 100644 index 011721fc..00000000 --- a/docs/GetActivityResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetActivityResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ActivityResponseObject**](ActivityResponseObject.md) | | [optional] -**related_objects** | [**GetActivitiesResponse200RelatedObjects**](GetActivitiesResponse200RelatedObjects.md) | | [optional] - - diff --git a/docs/GetAddProductAttachementDetails.md b/docs/GetAddProductAttachementDetails.md deleted file mode 100644 index ffebc24f..00000000 --- a/docs/GetAddProductAttachementDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetAddProductAttachementDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**AddProductAttachmentDetails**](AddProductAttachmentDetails.md) | The added product object attached to the deal | [optional] - - diff --git a/docs/GetAddProductAttachmentDetails.md b/docs/GetAddProductAttachmentDetails.md deleted file mode 100644 index 962308a3..00000000 --- a/docs/GetAddProductAttachmentDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetAddProductAttachmentDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**AddProductAttachmentDetails**](AddProductAttachmentDetails.md) | The added product object attached to the deal | [optional] - - diff --git a/docs/GetAddUpdateStage.md b/docs/GetAddUpdateStage.md deleted file mode 100644 index cf6eb7ff..00000000 --- a/docs/GetAddUpdateStage.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetAddUpdateStage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**BaseStage**](.md) | | [optional] - - diff --git a/docs/GetAddedDeal.md b/docs/GetAddedDeal.md deleted file mode 100644 index 39acd59f..00000000 --- a/docs/GetAddedDeal.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetAddedDeal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DealNonStrict**](DealNonStrict.md) | | [optional] -**related_objects** | [**GetDealsRelatedObjects**](GetDealsRelatedObjects.md) | | [optional] - - diff --git a/docs/GetAddedDealAdditionalData.md b/docs/GetAddedDealAdditionalData.md deleted file mode 100644 index b3c5a428..00000000 --- a/docs/GetAddedDealAdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetAddedDealAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**matchesFilters** | **[Number]** | The array of filter ID's with what this added deal matches | [optional] - - diff --git a/docs/GetAllFiles.md b/docs/GetAllFiles.md deleted file mode 100644 index 41358b63..00000000 --- a/docs/GetAllFiles.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetAllFiles - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**[FileData]**](FileData.md) | The array of all uploaded files | [optional] -**additional_data** | [**AdditionalDataWithPaginationDetails**](AdditionalDataWithPaginationDetails.md) | | [optional] - - diff --git a/docs/GetAllPersonsResponse.md b/docs/GetAllPersonsResponse.md deleted file mode 100644 index 18674f49..00000000 --- a/docs/GetAllPersonsResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.GetAllPersonsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[PersonItem]**](PersonItem.md) | The array of persons | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/GetAllPersonsResponseAllOf.md b/docs/GetAllPersonsResponseAllOf.md deleted file mode 100644 index dcd57673..00000000 --- a/docs/GetAllPersonsResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetAllPersonsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PersonItem]**](PersonItem.md) | The array of persons | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/GetAllPipelines.md b/docs/GetAllPipelines.md deleted file mode 100644 index ae913a8b..00000000 --- a/docs/GetAllPipelines.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetAllPipelines - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[BasePipelineWithSelectedFlag]**](BasePipelineWithSelectedFlag.md) | Pipelines array | [optional] - - diff --git a/docs/GetAllPipelinesAllOf.md b/docs/GetAllPipelinesAllOf.md deleted file mode 100644 index 10b42125..00000000 --- a/docs/GetAllPipelinesAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetAllPipelinesAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[BasePipelineWithSelectedFlag]**](BasePipelineWithSelectedFlag.md) | Pipelines array | [optional] - - diff --git a/docs/GetAllProductFieldsResponse.md b/docs/GetAllProductFieldsResponse.md deleted file mode 100644 index 083c0026..00000000 --- a/docs/GetAllProductFieldsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetAllProductFieldsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[GetProductField]**](GetProductField.md) | Array containing data for all product fields | [optional] -**additional_data** | **Object** | Additional data for the product field, such as pagination | [optional] - - diff --git a/docs/GetComments.md b/docs/GetComments.md deleted file mode 100644 index dca46d6d..00000000 --- a/docs/GetComments.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetComments - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**[BaseComment]**](BaseComment.md) | The array of comments | [optional] -**additional_data** | [**AdditionalDataWithOffsetPagination**](AdditionalDataWithOffsetPagination.md) | | [optional] - - diff --git a/docs/GetDeal.md b/docs/GetDeal.md deleted file mode 100644 index 3e3a17f5..00000000 --- a/docs/GetDeal.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.GetDeal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DealNonStrictWithDetails**](DealNonStrictWithDetails.md) | | [optional] -**additional_data** | [**GetDealAdditionalData**](GetDealAdditionalData.md) | | [optional] -**related_objects** | [**GetDealRelatedObjects**](GetDealRelatedObjects.md) | | [optional] - - diff --git a/docs/GetDealAdditionalData.md b/docs/GetDealAdditionalData.md deleted file mode 100644 index b9633c97..00000000 --- a/docs/GetDealAdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetDealAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dropbox_email** | **String** | The BCC email of the deal | [optional] - - diff --git a/docs/GetDealRelatedObjects.md b/docs/GetDealRelatedObjects.md deleted file mode 100644 index fe7d16f0..00000000 --- a/docs/GetDealRelatedObjects.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetDealRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] -**person** | [**RelatedPersonDataWithActiveFlag**](RelatedPersonDataWithActiveFlag.md) | | [optional] -**organization** | [**RelatedOrganizationDataWithActiveFlag**](RelatedOrganizationDataWithActiveFlag.md) | | [optional] - - diff --git a/docs/GetDeals.md b/docs/GetDeals.md deleted file mode 100644 index 667a079d..00000000 --- a/docs/GetDeals.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.GetDeals - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[DealNonStrict]**](DealNonStrict.md) | The array of deals | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**GetDealsRelatedObjects**](GetDealsRelatedObjects.md) | | [optional] - - diff --git a/docs/GetDealsByName.md b/docs/GetDealsByName.md deleted file mode 100644 index 7d478c5b..00000000 --- a/docs/GetDealsByName.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetDealsByName - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[GetDealsByNameData]**](GetDealsByNameData.md) | | [optional] -**additionalData** | [**GetDealsByNameAdditionalData**](GetDealsByNameAdditionalData.md) | | [optional] - - diff --git a/docs/GetDealsByNameAdditionalData.md b/docs/GetDealsByNameAdditionalData.md deleted file mode 100644 index 24ed45cb..00000000 --- a/docs/GetDealsByNameAdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetDealsByNameAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/GetDealsByNameData.md b/docs/GetDealsByNameData.md deleted file mode 100644 index 1d016930..00000000 --- a/docs/GetDealsByNameData.md +++ /dev/null @@ -1,21 +0,0 @@ -# Pipedrive.GetDealsByNameData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the Deal | [optional] -**title** | **String** | The title of the Deal | [optional] -**userId** | **Number** | The ID of the User who is associated with the Deal | [optional] -**visibleTo** | **String** | The visibility of the Deal | [optional] -**status** | **String** | The status of the Deal | [optional] -**value** | **Number** | The value of the Deal | [optional] -**currency** | **String** | The currency associated with the Deal | [optional] -**personName** | **String** | The name of the Person associated with the Deal | [optional] -**personId** | **Number** | The ID of the Person associated with the Deal | [optional] -**organizationName** | **String** | The name of the Organization associated with the Deal | [optional] -**organizationId** | **Number** | The ID of the Person associated with the Deal | [optional] -**formattedValue** | **String** | The Deal value formatted with selected currency. E.g. US$500 | [optional] -**ccEmail** | **String** | The Cc email of the Deal | [optional] - - diff --git a/docs/GetDealsCollection.md b/docs/GetDealsCollection.md deleted file mode 100644 index 7b849e0d..00000000 --- a/docs/GetDealsCollection.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetDealsCollection - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[DealCollectionResponseObject]**](DealCollectionResponseObject.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/GetDealsConversionRatesInPipeline.md b/docs/GetDealsConversionRatesInPipeline.md deleted file mode 100644 index e45407f7..00000000 --- a/docs/GetDealsConversionRatesInPipeline.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetDealsConversionRatesInPipeline - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**GetDealsConversionRatesInPipelineAllOfData**](GetDealsConversionRatesInPipelineAllOfData.md) | | [optional] - - diff --git a/docs/GetDealsConversionRatesInPipelineAllOf.md b/docs/GetDealsConversionRatesInPipelineAllOf.md deleted file mode 100644 index 6305fc93..00000000 --- a/docs/GetDealsConversionRatesInPipelineAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetDealsConversionRatesInPipelineAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**GetDealsConversionRatesInPipelineAllOfData**](GetDealsConversionRatesInPipelineAllOfData.md) | | [optional] - - diff --git a/docs/GetDealsConversionRatesInPipelineAllOfData.md b/docs/GetDealsConversionRatesInPipelineAllOfData.md deleted file mode 100644 index f3a388ff..00000000 --- a/docs/GetDealsConversionRatesInPipelineAllOfData.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetDealsConversionRatesInPipelineAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stage_conversions** | [**[StageConversions]**](StageConversions.md) | The stage conversions | [optional] -**won_conversion** | **Number** | The won conversion | [optional] -**lost_conversion** | **Number** | The lost conversion | [optional] - - diff --git a/docs/GetDealsMovementsInPipeline.md b/docs/GetDealsMovementsInPipeline.md deleted file mode 100644 index 0a97287e..00000000 --- a/docs/GetDealsMovementsInPipeline.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetDealsMovementsInPipeline - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**GetDealsMovementsInPipelineAllOfData**](GetDealsMovementsInPipelineAllOfData.md) | | [optional] - - diff --git a/docs/GetDealsMovementsInPipelineAllOf.md b/docs/GetDealsMovementsInPipelineAllOf.md deleted file mode 100644 index c24ed1dc..00000000 --- a/docs/GetDealsMovementsInPipelineAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetDealsMovementsInPipelineAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**GetDealsMovementsInPipelineAllOfData**](GetDealsMovementsInPipelineAllOfData.md) | | [optional] - - diff --git a/docs/GetDealsMovementsInPipelineAllOfData.md b/docs/GetDealsMovementsInPipelineAllOfData.md deleted file mode 100644 index 140aec08..00000000 --- a/docs/GetDealsMovementsInPipelineAllOfData.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.GetDealsMovementsInPipelineAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**movements_between_stages** | [**GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages**](GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.md) | | [optional] -**new_deals** | [**DealsMovementsInfo**](DealsMovementsInfo.md) | | [optional] -**deals_left_open** | [**DealsMovementsInfo**](DealsMovementsInfo.md) | | [optional] -**won_deals** | [**DealsMovementsInfo**](DealsMovementsInfo.md) | | [optional] -**lost_deals** | [**DealsMovementsInfo**](DealsMovementsInfo.md) | | [optional] -**average_age_in_days** | [**GetDealsMovementsInPipelineAllOfDataAverageAgeInDays**](GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.md) | | [optional] - - diff --git a/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.md b/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.md deleted file mode 100644 index dcb5af8b..00000000 --- a/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetDealsMovementsInPipelineAllOfDataAverageAgeInDays - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**across_all_stages** | **Number** | The moved deals average age across all stages | [optional] -**by_stages** | [**[GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages]**](GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.md) | The moved deals average age by stages | [optional] - - diff --git a/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.md b/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.md deleted file mode 100644 index 6f2e5c56..00000000 --- a/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**stage_id** | **Number** | The stage ID | [optional] -**value** | **Number** | The average deals age in specific stage | [optional] - - diff --git a/docs/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.md b/docs/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.md deleted file mode 100644 index 27513d3d..00000000 --- a/docs/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Number** | The count of the deals that have been moved between stages | [optional] - - diff --git a/docs/GetDealsRelatedObjects.md b/docs/GetDealsRelatedObjects.md deleted file mode 100644 index 55070a5b..00000000 --- a/docs/GetDealsRelatedObjects.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetDealsRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] -**organization** | [**RelatedOrganizationDataWithActiveFlag**](RelatedOrganizationDataWithActiveFlag.md) | | [optional] -**person** | [**RelatedPersonDataWithActiveFlag**](RelatedPersonDataWithActiveFlag.md) | | [optional] - - diff --git a/docs/GetDealsSummary.md b/docs/GetDealsSummary.md deleted file mode 100644 index 2d163b3c..00000000 --- a/docs/GetDealsSummary.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetDealsSummary - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**GetDealsSummaryData**](GetDealsSummaryData.md) | | [optional] - - diff --git a/docs/GetDealsSummaryData.md b/docs/GetDealsSummaryData.md deleted file mode 100644 index ac8d8bac..00000000 --- a/docs/GetDealsSummaryData.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.GetDealsSummaryData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**values_total** | [**GetDealsSummaryDataValuesTotal**](GetDealsSummaryDataValuesTotal.md) | | [optional] -**weighted_values_total** | [**GetDealsSummaryDataWeightedValuesTotal**](GetDealsSummaryDataWeightedValuesTotal.md) | | [optional] -**total_count** | **Number** | The total number of deals | [optional] -**total_currency_converted_value** | **Number** | The total value of deals converted into the company default currency | [optional] -**total_weighted_currency_converted_value** | **Number** | The total weighted value of deals converted into the company default currency | [optional] -**total_currency_converted_value_formatted** | **String** | The total converted value of deals formatted with the company default currency. E.g. US$5,100.96 | [optional] -**total_weighted_currency_converted_value_formatted** | **String** | The total weighted value of deals formatted with the company default currency. E.g. US$5,100.96 | [optional] - - diff --git a/docs/GetDealsSummaryDataValuesTotal.md b/docs/GetDealsSummaryDataValuesTotal.md deleted file mode 100644 index 720a5aa0..00000000 --- a/docs/GetDealsSummaryDataValuesTotal.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.GetDealsSummaryDataValuesTotal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **Number** | The total value of deals in the deal currency group | [optional] -**count** | **Number** | The number of deals in the deal currency group | [optional] -**value_converted** | **Number** | The total value of deals converted into the company default currency | [optional] -**value_formatted** | **String** | The total value of deals formatted with deal currency. E.g. €50 | [optional] -**value_converted_formatted** | **String** | The value_converted formatted with deal currency. E.g. US$50.10 | [optional] - - diff --git a/docs/GetDealsSummaryDataWeightedValuesTotal.md b/docs/GetDealsSummaryDataWeightedValuesTotal.md deleted file mode 100644 index b3ed0ed0..00000000 --- a/docs/GetDealsSummaryDataWeightedValuesTotal.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetDealsSummaryDataWeightedValuesTotal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **Number** | The total weighted value of the deals in the deal currency group | [optional] -**count** | **Number** | The number of deals in the deal currency group | [optional] -**value_formatted** | **String** | The total weighted value of the deals formatted with deal currency. E.g. €50 | [optional] - - diff --git a/docs/GetDealsTimeline.md b/docs/GetDealsTimeline.md deleted file mode 100644 index 1d0c8eb1..00000000 --- a/docs/GetDealsTimeline.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetDealsTimeline - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**GetDealsTimelineData**](GetDealsTimelineData.md) | | [optional] - - diff --git a/docs/GetDealsTimelineData.md b/docs/GetDealsTimelineData.md deleted file mode 100644 index f17e42e7..00000000 --- a/docs/GetDealsTimelineData.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.GetDealsTimelineData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**period_start** | **String** | The start date and time of the period | [optional] -**period_end** | **String** | The end date and time of the period | [optional] -**deals** | [**[DealStrict]**](DealStrict.md) | | [optional] -**totals** | [**GetDealsTimelineDataTotals**](GetDealsTimelineDataTotals.md) | | [optional] - - diff --git a/docs/GetDealsTimelineDataTotals.md b/docs/GetDealsTimelineDataTotals.md deleted file mode 100644 index 45d2b82c..00000000 --- a/docs/GetDealsTimelineDataTotals.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.GetDealsTimelineDataTotals - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Number** | The number of deals for the given period | [optional] -**values** | **Object** | The total values of deals grouped by deal currency | [optional] -**weighted_values** | **Object** | The total weighted values of deals for the given period grouped by deal currency. The weighted value of a deal is calculated as probability times deal value. | [optional] -**open_count** | **Number** | The number of open deals for the given period | [optional] -**open_values** | **Object** | The total values of open deals for the given period grouped by deal currency | [optional] -**weighted_open_values** | **Object** | The total weighted values of open deals for the given period grouped by deal currency. The weighted value of a deal is calculated as probability times deal value. | [optional] -**won_count** | **Number** | The number of won deals for the given period | [optional] -**won_values** | **Object** | The total values of won deals for the given period grouped by deal currency | [optional] - - diff --git a/docs/GetDuplicatedDeal.md b/docs/GetDuplicatedDeal.md deleted file mode 100644 index cd73ca6f..00000000 --- a/docs/GetDuplicatedDeal.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetDuplicatedDeal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DealStrict**](DealStrict.md) | | [optional] - - diff --git a/docs/GetField.md b/docs/GetField.md deleted file mode 100644 index a6e53f61..00000000 --- a/docs/GetField.md +++ /dev/null @@ -1,32 +0,0 @@ -# Pipedrive.GetField - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the field. Value is `null` in case of subfields. | [optional] -**key** | **String** | The key of the field. For custom fields this is generated upon creation. | [optional] -**name** | **String** | The name of the field | [optional] -**order_nr** | **Number** | The order number of the field | [optional] -**field_type** | [**InternalFieldType**](InternalFieldType.md) | | [optional] -**add_time** | **Date** | The creation time of the field | [optional] -**update_time** | **Date** | The update time of the field | [optional] -**last_updated_by_user_id** | **Number** | The ID of the user who created or most recently updated the field, only applicable for custom fields | [optional] -**created_by_user_id** | **Number** | The ID of the user who created the field | [optional] -**active_flag** | **Boolean** | The active flag of the field | [optional] -**edit_flag** | **Boolean** | The edit flag of the field | [optional] -**index_visible_flag** | **Boolean** | Not used | [optional] -**details_visible_flag** | **Boolean** | Not used | [optional] -**add_visible_flag** | **Boolean** | Not used | [optional] -**important_flag** | **Boolean** | Not used | [optional] -**bulk_edit_allowed** | **Boolean** | Whether or not the field of an item can be edited in bulk | [optional] -**searchable_flag** | **Boolean** | Whether or not items can be searched by this field | [optional] -**filtering_allowed** | **Boolean** | Whether or not items can be filtered by this field | [optional] -**sortable_flag** | **Boolean** | Whether or not items can be sorted by this field | [optional] -**mandatory_flag** | **Boolean** | Whether or not the field is mandatory | [optional] -**options** | **[Object]** | The options of the field. When there are no options, `null` is returned. | [optional] -**options_deleted** | **[Object]** | The deleted options of the field. Only present when there is at least 1 deleted option. | [optional] -**is_subfield** | **Boolean** | Whether or not the field is a subfield of another field. Only present if field is subfield. | [optional] -**subfields** | **[Object]** | The subfields of the field. Only present when the field has subfields. | [optional] - - diff --git a/docs/GetFieldAllOf.md b/docs/GetFieldAllOf.md deleted file mode 100644 index 79d9d1ad..00000000 --- a/docs/GetFieldAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetFieldAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**field_type** | [**InternalFieldType**](InternalFieldType.md) | | [optional] - - diff --git a/docs/GetGoalResultResponse.md b/docs/GetGoalResultResponse.md deleted file mode 100644 index b9779083..00000000 --- a/docs/GetGoalResultResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetGoalResultResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**GoalResults**](GoalResults.md) | | [optional] - - diff --git a/docs/GetGoalResultResponse200.md b/docs/GetGoalResultResponse200.md deleted file mode 100644 index c10ecdb8..00000000 --- a/docs/GetGoalResultResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetGoalResultResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**GoalResults**](GoalResults.md) | | [optional] - - diff --git a/docs/GetGoalsResponse.md b/docs/GetGoalsResponse.md deleted file mode 100644 index 093f4ce9..00000000 --- a/docs/GetGoalsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetGoalsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**FindGoalResponse**](FindGoalResponse.md) | | [optional] - - diff --git a/docs/GetGoalsResponse200.md b/docs/GetGoalsResponse200.md deleted file mode 100644 index 4c942a3f..00000000 --- a/docs/GetGoalsResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetGoalsResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**FindGoalResponse**](FindGoalResponse.md) | | [optional] - - diff --git a/docs/GetLeadIdResponse.md b/docs/GetLeadIdResponse.md deleted file mode 100644 index 30e649fe..00000000 --- a/docs/GetLeadIdResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetLeadIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**GetLeadIdResponseData**](GetLeadIdResponseData.md) | | [optional] - - diff --git a/docs/GetLeadIdResponseData.md b/docs/GetLeadIdResponseData.md deleted file mode 100644 index 91e5fbd1..00000000 --- a/docs/GetLeadIdResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetLeadIdResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] - - diff --git a/docs/GetLeadLabelsResponse.md b/docs/GetLeadLabelsResponse.md deleted file mode 100644 index bb7569d7..00000000 --- a/docs/GetLeadLabelsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetLeadLabelsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[LeadLabelResponse]**](LeadLabelResponse.md) | | [optional] - - diff --git a/docs/GetLeadLabelsResponse200.md b/docs/GetLeadLabelsResponse200.md deleted file mode 100644 index 20713000..00000000 --- a/docs/GetLeadLabelsResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetLeadLabelsResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[LeadLabelResponse]**](LeadLabelResponse.md) | | [optional] - - diff --git a/docs/GetLeadResponse.md b/docs/GetLeadResponse.md deleted file mode 100644 index e4e28001..00000000 --- a/docs/GetLeadResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetLeadResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**LeadResponse**](LeadResponse.md) | | [optional] - - diff --git a/docs/GetLeadSourcesResponse200.md b/docs/GetLeadSourcesResponse200.md deleted file mode 100644 index 391396b4..00000000 --- a/docs/GetLeadSourcesResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetLeadSourcesResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[GetLeadSourcesResponse200Data]**](GetLeadSourcesResponse200Data.md) | | [optional] - - diff --git a/docs/GetLeadSourcesResponse200Data.md b/docs/GetLeadSourcesResponse200Data.md deleted file mode 100644 index 7c0aef3c..00000000 --- a/docs/GetLeadSourcesResponse200Data.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetLeadSourcesResponse200Data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The unique name of a lead source | [optional] - - diff --git a/docs/GetLeadsResponse.md b/docs/GetLeadsResponse.md deleted file mode 100644 index a96cff39..00000000 --- a/docs/GetLeadsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetLeadsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[LeadResponse]**](LeadResponse.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/GetLeadsResponse200.md b/docs/GetLeadsResponse200.md deleted file mode 100644 index 342719ea..00000000 --- a/docs/GetLeadsResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetLeadsResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[LeadResponse]**](LeadResponse.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/GetLeadsSourceResponse.md b/docs/GetLeadsSourceResponse.md deleted file mode 100644 index 4b9c3f28..00000000 --- a/docs/GetLeadsSourceResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetLeadsSourceResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[GetLeadsSourceResponseData]**](GetLeadsSourceResponseData.md) | | [optional] - - diff --git a/docs/GetLeadsSourceResponseData.md b/docs/GetLeadsSourceResponseData.md deleted file mode 100644 index 441c17c4..00000000 --- a/docs/GetLeadsSourceResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetLeadsSourceResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The unique name of a lead source | [optional] - - diff --git a/docs/GetMergedDeal.md b/docs/GetMergedDeal.md deleted file mode 100644 index 29de1cde..00000000 --- a/docs/GetMergedDeal.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetMergedDeal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**DealStrictWithMergeId**](DealStrictWithMergeId.md) | | [optional] - - diff --git a/docs/GetNoteField.md b/docs/GetNoteField.md deleted file mode 100644 index cf849a8d..00000000 --- a/docs/GetNoteField.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.GetNoteField - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the field | [optional] -**key** | **String** | The key of the field | [optional] -**name** | **String** | The name of the field | [optional] -**field_type** | [**InternalFieldType**](InternalFieldType.md) | | [optional] -**active_flag** | **Boolean** | The active flag of the field | [optional] -**edit_flag** | **Boolean** | The edit flag of the field | [optional] -**bulk_edit_allowed** | **Boolean** | Not used | [optional] -**mandatory_flag** | **Boolean** | Whether or not the field is mandatory | [optional] -**options** | [**[NoteFieldOptions]**](NoteFieldOptions.md) | The options of the field. When there are no options, `null` is returned. | [optional] - - diff --git a/docs/GetNotes.md b/docs/GetNotes.md deleted file mode 100644 index 22ae725d..00000000 --- a/docs/GetNotes.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetNotes - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**[BaseNote]**](BaseNote.md) | The array of notes | [optional] -**additional_data** | [**AdditionalDataWithOffsetPagination**](AdditionalDataWithOffsetPagination.md) | | [optional] - - diff --git a/docs/GetOneFile.md b/docs/GetOneFile.md deleted file mode 100644 index 552ee854..00000000 --- a/docs/GetOneFile.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetOneFile - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**FileData**](FileData.md) | | [optional] - - diff --git a/docs/GetOnePipeline.md b/docs/GetOnePipeline.md deleted file mode 100644 index 06724d02..00000000 --- a/docs/GetOnePipeline.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetOnePipeline - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**PipelineDetails**](PipelineDetails.md) | | [optional] - - diff --git a/docs/GetOnePipelineAllOf.md b/docs/GetOnePipelineAllOf.md deleted file mode 100644 index 99ecb40d..00000000 --- a/docs/GetOnePipelineAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetOnePipelineAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PipelineDetails**](PipelineDetails.md) | | [optional] - - diff --git a/docs/GetOneStage.md b/docs/GetOneStage.md deleted file mode 100644 index 274112b9..00000000 --- a/docs/GetOneStage.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetOneStage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**StageDetails**](StageDetails.md) | | [optional] - - diff --git a/docs/GetPersonDetailsResponse.md b/docs/GetPersonDetailsResponse.md deleted file mode 100644 index 944f8499..00000000 --- a/docs/GetPersonDetailsResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.GetPersonDetailsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**PersonItem**](PersonItem.md) | | [optional] -**additional_data** | [**GetPersonDetailsResponseAllOfAdditionalData**](GetPersonDetailsResponseAllOfAdditionalData.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/GetPersonDetailsResponseAllOf.md b/docs/GetPersonDetailsResponseAllOf.md deleted file mode 100644 index 47c7e3a9..00000000 --- a/docs/GetPersonDetailsResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetPersonDetailsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PersonItem**](PersonItem.md) | | [optional] -**additional_data** | [**GetPersonDetailsResponseAllOfAdditionalData**](GetPersonDetailsResponseAllOfAdditionalData.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/GetPersonDetailsResponseAllOfAdditionalData.md b/docs/GetPersonDetailsResponseAllOfAdditionalData.md deleted file mode 100644 index 0e048f33..00000000 --- a/docs/GetPersonDetailsResponseAllOfAdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetPersonDetailsResponseAllOfAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dropbox_email** | **String** | Dropbox email for the person | [optional] - - diff --git a/docs/GetProductAttachementDetails.md b/docs/GetProductAttachementDetails.md deleted file mode 100644 index 60785b5a..00000000 --- a/docs/GetProductAttachementDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetProductAttachementDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**ProductAttachmentDetails**](ProductAttachmentDetails.md) | The updated product object attached to the deal | [optional] - - diff --git a/docs/GetProductAttachmentDetails.md b/docs/GetProductAttachmentDetails.md deleted file mode 100644 index 2a76eb2c..00000000 --- a/docs/GetProductAttachmentDetails.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetProductAttachmentDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**ProductAttachmentDetails**](ProductAttachmentDetails.md) | The updated product object attached to the deal | [optional] - - diff --git a/docs/GetProductField.md b/docs/GetProductField.md deleted file mode 100644 index d0fb7aab..00000000 --- a/docs/GetProductField.md +++ /dev/null @@ -1,27 +0,0 @@ -# Pipedrive.GetProductField - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the field | -**options** | **[Object]** | When `field_type` is either `set` or `enum`, possible options must be supplied as a JSON-encoded sequential array, for example:</br>`[{\"label\":\"red\"}, {\"label\":\"blue\"}, {\"label\":\"lilac\"}]` | [optional] -**field_type** | [**InternalFieldType**](InternalFieldType.md) | | -**id** | **Number** | The ID of the product field | [optional] -**key** | **String** | The key of the product field | [optional] -**order_nr** | **Number** | The position (index) of the product field in the detail view | [optional] -**add_time** | **String** | The product field creation time. Format: YYYY-MM-DD HH:MM:SS | [optional] -**update_time** | **String** | The product field last update time. Format: YYYY-MM-DD HH:MM:SS | [optional] -**last_updated_by_user_id** | **Number** | The ID of the last user to update the product field | [optional] -**created_by_user_id** | **Number** | The ID of the user who created the product field | [optional] -**active_flag** | **Boolean** | Whether or not the product field is currently active | [optional] -**edit_flag** | **Boolean** | Whether or not the product field name and metadata is editable | [optional] -**add_visible_flag** | **Boolean** | Whether or not the product field is visible in the Add Product Modal | [optional] -**important_flag** | **Boolean** | Whether or not the product field is marked as important | [optional] -**bulk_edit_allowed** | **Boolean** | Whether or not the product field data can be edited | [optional] -**searchable_flag** | **Boolean** | Whether or not the product field is searchable | [optional] -**filtering_allowed** | **Boolean** | Whether or not the product field value can be used when filtering searches | [optional] -**sortable_flag** | **Boolean** | Whether or not the product field is sortable | [optional] -**mandatory_flag** | **Boolean** | Whether or not the product field is mandatory when creating products | [optional] - - diff --git a/docs/GetProductFieldResponse.md b/docs/GetProductFieldResponse.md deleted file mode 100644 index a3171e8a..00000000 --- a/docs/GetProductFieldResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetProductFieldResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**ProductField**](ProductField.md) | All data for the product field | [optional] - - diff --git a/docs/GetProjectBoardResponse.md b/docs/GetProjectBoardResponse.md deleted file mode 100644 index 7f5ae2f1..00000000 --- a/docs/GetProjectBoardResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectBoardResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectBoardObject**](ProjectBoardObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectBoardResponse200.md b/docs/GetProjectBoardResponse200.md deleted file mode 100644 index d15f77c6..00000000 --- a/docs/GetProjectBoardResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectBoardResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectBoardObject**](ProjectBoardObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectBoardsResponse.md b/docs/GetProjectBoardsResponse.md deleted file mode 100644 index de0a2cbf..00000000 --- a/docs/GetProjectBoardsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectBoardsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ProjectBoardObject]**](ProjectBoardObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectBoardsResponse200.md b/docs/GetProjectBoardsResponse200.md deleted file mode 100644 index a1dedfcc..00000000 --- a/docs/GetProjectBoardsResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectBoardsResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ProjectBoardObject]**](ProjectBoardObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectGroupsResponse.md b/docs/GetProjectGroupsResponse.md deleted file mode 100644 index 28331239..00000000 --- a/docs/GetProjectGroupsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectGroupsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ProjectGroupsObject]**](ProjectGroupsObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectGroupsResponse200.md b/docs/GetProjectGroupsResponse200.md deleted file mode 100644 index f657a746..00000000 --- a/docs/GetProjectGroupsResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectGroupsResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ProjectGroupsObject]**](ProjectGroupsObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectPhaseResponse.md b/docs/GetProjectPhaseResponse.md deleted file mode 100644 index 7b5ad20a..00000000 --- a/docs/GetProjectPhaseResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectPhaseResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectPhaseObject**](ProjectPhaseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectPhaseResponse200.md b/docs/GetProjectPhaseResponse200.md deleted file mode 100644 index de49115a..00000000 --- a/docs/GetProjectPhaseResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectPhaseResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectPhaseObject**](ProjectPhaseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectPhasesResponse.md b/docs/GetProjectPhasesResponse.md deleted file mode 100644 index 34151d6f..00000000 --- a/docs/GetProjectPhasesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectPhasesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ProjectPhaseObject]**](ProjectPhaseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectPhasesResponse200.md b/docs/GetProjectPhasesResponse200.md deleted file mode 100644 index 54e83700..00000000 --- a/docs/GetProjectPhasesResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectPhasesResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ProjectPhaseObject]**](ProjectPhaseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectPlanResponse.md b/docs/GetProjectPlanResponse.md deleted file mode 100644 index 69a00e02..00000000 --- a/docs/GetProjectPlanResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectPlanResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ProjectPlanItemObject]**](ProjectPlanItemObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectPlanResponse200.md b/docs/GetProjectPlanResponse200.md deleted file mode 100644 index 00a72b13..00000000 --- a/docs/GetProjectPlanResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectPlanResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ProjectPlanItemObject]**](ProjectPlanItemObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectResponse.md b/docs/GetProjectResponse.md deleted file mode 100644 index 186c326a..00000000 --- a/docs/GetProjectResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectResponseObject**](ProjectResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectResponse200.md b/docs/GetProjectResponse200.md deleted file mode 100644 index 60defdef..00000000 --- a/docs/GetProjectResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectResponseObject**](ProjectResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectTemplateResponse.md b/docs/GetProjectTemplateResponse.md deleted file mode 100644 index 40c1d389..00000000 --- a/docs/GetProjectTemplateResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectTemplateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**TemplateResponseObject**](TemplateResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectTemplateResponse200.md b/docs/GetProjectTemplateResponse200.md deleted file mode 100644 index 99f20b5d..00000000 --- a/docs/GetProjectTemplateResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectTemplateResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**TemplateResponseObject**](TemplateResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetProjectTemplatesResponse.md b/docs/GetProjectTemplatesResponse.md deleted file mode 100644 index e5fd7aa8..00000000 --- a/docs/GetProjectTemplatesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectTemplatesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[TemplateResponseObject]**](TemplateResponseObject.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/GetProjectTemplatesResponse200.md b/docs/GetProjectTemplatesResponse200.md deleted file mode 100644 index afecb727..00000000 --- a/docs/GetProjectTemplatesResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectTemplatesResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[TemplateResponseObject]**](TemplateResponseObject.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/GetProjectsResponse.md b/docs/GetProjectsResponse.md deleted file mode 100644 index 5b111b0c..00000000 --- a/docs/GetProjectsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ProjectResponseObject]**](ProjectResponseObject.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/GetProjectsResponse200.md b/docs/GetProjectsResponse200.md deleted file mode 100644 index 15b5b3fe..00000000 --- a/docs/GetProjectsResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetProjectsResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[ProjectResponseObject]**](ProjectResponseObject.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/GetRecents.md b/docs/GetRecents.md deleted file mode 100644 index 886529cb..00000000 --- a/docs/GetRecents.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetRecents - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[AnyOfRecents]**](AnyOfRecentsActivityRecentsActivityTypeRecentsDealRecentsFileRecentsFilterRecentsNoteRecentsPersonRecentsOrganizationRecentsPipelineRecentsProductRecentsStageRecentsUser.md) | | [optional] -**additional_data** | [**GetRecentsAdditionalData**](GetRecentsAdditionalData.md) | | [optional] - - diff --git a/docs/GetRecentsAdditionalData.md b/docs/GetRecentsAdditionalData.md deleted file mode 100644 index 3d8e9a1d..00000000 --- a/docs/GetRecentsAdditionalData.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetRecentsAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**since_timestamp** | **String** | The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS | [optional] -**last_timestamp_on_page** | **String** | The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS | [optional] -**pagination** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/GetRole.md b/docs/GetRole.md deleted file mode 100644 index f2e3b88d..00000000 --- a/docs/GetRole.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetRole - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**SubRole**](SubRole.md) | | [optional] -**additional_data** | [**GetRoleAllOfAdditionalData**](GetRoleAllOfAdditionalData.md) | | [optional] - - diff --git a/docs/GetRoleAllOf.md b/docs/GetRoleAllOf.md deleted file mode 100644 index ad4abb89..00000000 --- a/docs/GetRoleAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetRoleAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**SubRole**](SubRole.md) | | [optional] -**additional_data** | [**GetRoleAllOfAdditionalData**](GetRoleAllOfAdditionalData.md) | | [optional] - - diff --git a/docs/GetRoleAllOfAdditionalData.md b/docs/GetRoleAllOfAdditionalData.md deleted file mode 100644 index 4ea0db99..00000000 --- a/docs/GetRoleAllOfAdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetRoleAllOfAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**settings** | [**RoleSettings**](RoleSettings.md) | | [optional] - - diff --git a/docs/GetRoleAssignments.md b/docs/GetRoleAssignments.md deleted file mode 100644 index f2f28836..00000000 --- a/docs/GetRoleAssignments.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetRoleAssignments - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[RoleAssignment]**](RoleAssignment.md) | The role assignments | [optional] -**additional_data** | [**RolesAdditionalData**](RolesAdditionalData.md) | | [optional] - - diff --git a/docs/GetRoleAssignmentsAllOf.md b/docs/GetRoleAssignmentsAllOf.md deleted file mode 100644 index 6a90ee1f..00000000 --- a/docs/GetRoleAssignmentsAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetRoleAssignmentsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[RoleAssignment]**](RoleAssignment.md) | The role assignments | [optional] -**additional_data** | [**RolesAdditionalData**](RolesAdditionalData.md) | | [optional] - - diff --git a/docs/GetRolePipelines.md b/docs/GetRolePipelines.md deleted file mode 100644 index f49ea9dc..00000000 --- a/docs/GetRolePipelines.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetRolePipelines - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**GetRolePipelinesAllOfData**](GetRolePipelinesAllOfData.md) | | [optional] - - diff --git a/docs/GetRolePipelinesAllOf.md b/docs/GetRolePipelinesAllOf.md deleted file mode 100644 index b559f684..00000000 --- a/docs/GetRolePipelinesAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetRolePipelinesAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**GetRolePipelinesAllOfData**](GetRolePipelinesAllOfData.md) | | [optional] - - diff --git a/docs/GetRolePipelinesAllOfData.md b/docs/GetRolePipelinesAllOfData.md deleted file mode 100644 index c1f1e7b2..00000000 --- a/docs/GetRolePipelinesAllOfData.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetRolePipelinesAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pipeline_ids** | **[Number]** | Either visible or hidden pipeline ids | [optional] -**visible** | **Boolean** | Whether visible or hidden pipeline ids were returned | [optional] - - diff --git a/docs/GetRoleSettings.md b/docs/GetRoleSettings.md deleted file mode 100644 index 574f437c..00000000 --- a/docs/GetRoleSettings.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetRoleSettings - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**RoleSettings**](RoleSettings.md) | | [optional] - - diff --git a/docs/GetRoleSettingsAllOf.md b/docs/GetRoleSettingsAllOf.md deleted file mode 100644 index 96f195b9..00000000 --- a/docs/GetRoleSettingsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GetRoleSettingsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**RoleSettings**](RoleSettings.md) | | [optional] - - diff --git a/docs/GetRoleSubroles.md b/docs/GetRoleSubroles.md deleted file mode 100644 index e95ce8df..00000000 --- a/docs/GetRoleSubroles.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetRoleSubroles - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[SubRole]**](SubRole.md) | The array of sub-roles | [optional] -**additionalData** | [**RolesAdditionalData**](RolesAdditionalData.md) | | [optional] - - diff --git a/docs/GetRoleSubrolesAllOf.md b/docs/GetRoleSubrolesAllOf.md deleted file mode 100644 index b7be3ef5..00000000 --- a/docs/GetRoleSubrolesAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetRoleSubrolesAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[SubRole]**](SubRole.md) | The array of sub-roles | [optional] -**additionalData** | [**RolesAdditionalData**](RolesAdditionalData.md) | | [optional] - - diff --git a/docs/GetRoles.md b/docs/GetRoles.md deleted file mode 100644 index 10cbf71e..00000000 --- a/docs/GetRoles.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetRoles - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[FullRole]**](FullRole.md) | The array of roles | [optional] -**additional_data** | [**RolesAdditionalData**](RolesAdditionalData.md) | | [optional] - - diff --git a/docs/GetRolesAllOf.md b/docs/GetRolesAllOf.md deleted file mode 100644 index f4e1442d..00000000 --- a/docs/GetRolesAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetRolesAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[FullRole]**](FullRole.md) | The array of roles | [optional] -**additional_data** | [**RolesAdditionalData**](RolesAdditionalData.md) | | [optional] - - diff --git a/docs/GetStageDeals.md b/docs/GetStageDeals.md deleted file mode 100644 index fb28d266..00000000 --- a/docs/GetStageDeals.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetStageDeals - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**[DealStrict]**](DealStrict.md) | The array of deals | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/GetStages.md b/docs/GetStages.md deleted file mode 100644 index 4dbf62b4..00000000 --- a/docs/GetStages.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GetStages - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**[StageWithPipelineInfo]**](StageWithPipelineInfo.md) | The array of stages | [optional] - - diff --git a/docs/GetTaskResponse.md b/docs/GetTaskResponse.md deleted file mode 100644 index d0f14ca7..00000000 --- a/docs/GetTaskResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetTaskResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**TaskResponseObject**](TaskResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetTaskResponse200.md b/docs/GetTaskResponse200.md deleted file mode 100644 index 47dbdd9b..00000000 --- a/docs/GetTaskResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetTaskResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**TaskResponseObject**](TaskResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/GetTasksResponse.md b/docs/GetTasksResponse.md deleted file mode 100644 index 2d984396..00000000 --- a/docs/GetTasksResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetTasksResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[TaskResponseObject]**](TaskResponseObject.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/GetTasksResponse200.md b/docs/GetTasksResponse200.md deleted file mode 100644 index 561a29bc..00000000 --- a/docs/GetTasksResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GetTasksResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[TaskResponseObject]**](TaskResponseObject.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/GlobalMessageBaseResponse.md b/docs/GlobalMessageBaseResponse.md deleted file mode 100644 index d84a5a10..00000000 --- a/docs/GlobalMessageBaseResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.GlobalMessageBaseResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] - - diff --git a/docs/GlobalMessageData.md b/docs/GlobalMessageData.md deleted file mode 100644 index 5bed5c1b..00000000 --- a/docs/GlobalMessageData.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.GlobalMessageData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the global message | [optional] -**userId** | **Number** | The ID of the user related to the global message | [optional] -**companyId** | **Number** | The ID of the company related to the global message | [optional] -**typeInfo** | [**GlobalMessageUserData**](GlobalMessageUserData.md) | | [optional] -**userData** | **Object** | The user data for the global message (such as `user_id`, `name`, `email`, `phone`) | [optional] -**html** | **String** | HTML for each returned global message to render views | [optional] - - diff --git a/docs/GlobalMessageDelete.md b/docs/GlobalMessageDelete.md deleted file mode 100644 index 21b9cd4f..00000000 --- a/docs/GlobalMessageDelete.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.GlobalMessageDelete - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**GlobalMessageData**](GlobalMessageData.md) | | [optional] -**handleTime** | **Number** | The total time of the controller processing | [optional] -**reqTimeCtxMs** | **Object** | The list of timers formatted by name and elapsed time in ms (such as `app`, `app_xss_clean`, `db_connect`) | [optional] - - diff --git a/docs/GlobalMessageDeleteAllOf.md b/docs/GlobalMessageDeleteAllOf.md deleted file mode 100644 index d9374a79..00000000 --- a/docs/GlobalMessageDeleteAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GlobalMessageDeleteAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**GlobalMessageData**](GlobalMessageData.md) | | [optional] -**handleTime** | **Number** | The total time of the controller processing | [optional] -**reqTimeCtxMs** | **Object** | The list of timers formatted by name and elapsed time in ms (such as `app`, `app_xss_clean`, `db_connect`) | [optional] - - diff --git a/docs/GlobalMessageGet.md b/docs/GlobalMessageGet.md deleted file mode 100644 index 103e5526..00000000 --- a/docs/GlobalMessageGet.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.GlobalMessageGet - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**[GlobalMessageData]**](GlobalMessageData.md) | The array of global messages | [optional] -**handleTime** | **Number** | The total time of the controller processing | [optional] -**reqTimeCtxMs** | **Object** | The list of timers formatted by name and elapsed time in ms (such as `app`, `app_xss_clean`, `app_sanitizer_xss`) | [optional] - - diff --git a/docs/GlobalMessageGetAllOf.md b/docs/GlobalMessageGetAllOf.md deleted file mode 100644 index 366d902e..00000000 --- a/docs/GlobalMessageGetAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GlobalMessageGetAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[GlobalMessageData]**](GlobalMessageData.md) | The array of global messages | [optional] -**handleTime** | **Number** | The total time of the controller processing | [optional] -**reqTimeCtxMs** | **Object** | The list of timers formatted by name and elapsed time in ms (such as `app`, `app_xss_clean`, `app_sanitizer_xss`) | [optional] - - diff --git a/docs/GlobalMessageUserData.md b/docs/GlobalMessageUserData.md deleted file mode 100644 index 050ae51b..00000000 --- a/docs/GlobalMessageUserData.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.GlobalMessageUserData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messageType** | **String** | The global message type for validation checks | [optional] -**dismissibleFlag** | **Boolean** | Whether a user can dismiss the global message or not | [optional] -**priority** | **Number** | Sorts messages by priority DESC (from 0 to 10) | [optional] - - diff --git a/docs/GlobalMessagesApi.md b/docs/GlobalMessagesApi.md deleted file mode 100644 index 0551b795..00000000 --- a/docs/GlobalMessagesApi.md +++ /dev/null @@ -1,112 +0,0 @@ -# Pipedrive.GlobalMessagesApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteGlobalMessage**](GlobalMessagesApi.md#deleteGlobalMessage) | **DELETE** /globalMessages/{id} | Dismiss a global message -[**getGlobalMessages**](GlobalMessagesApi.md#getGlobalMessages) | **GET** /globalMessages | Get global messages - - - -## deleteGlobalMessage - -> GlobalMessageDelete deleteGlobalMessage(id) - -Dismiss a global message - -Removes a global message from being shown if the message is dismissible. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; - -let apiInstance = new Pipedrive.GlobalMessagesApi(); -let id = 56; // Number | The ID of the global message to be dismissed -apiInstance.deleteGlobalMessage(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the global message to be dismissed | - -### Return type - -[**GlobalMessageDelete**](GlobalMessageDelete.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getGlobalMessages - -> GlobalMessageGet getGlobalMessages(opts) - -Get global messages - -Returns data about the global messages to display for the authorized user. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; - -let apiInstance = new Pipedrive.GlobalMessagesApi(); -let opts = { - 'limit': 1 // Number | The number of messages to get from 1 to 100. The message number 1 is returned by default. -}; -apiInstance.getGlobalMessages(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **Number**| The number of messages to get from 1 to 100. The message number 1 is returned by default. | [optional] [default to 1] - -### Return type - -[**GlobalMessageGet**](GlobalMessageGet.md) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/GoalResults.md b/docs/GoalResults.md deleted file mode 100644 index d3cbc9a6..00000000 --- a/docs/GoalResults.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GoalResults - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**progress** | **Number** | The numeric progress of the goal | [optional] -**goal** | [**GoalsResponseComponent**](GoalsResponseComponent.md) | | [optional] - - diff --git a/docs/GoalType.md b/docs/GoalType.md deleted file mode 100644 index d8b45e53..00000000 --- a/docs/GoalType.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.GoalType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the goal type | [optional] -**params** | [**Params**](Params.md) | | [optional] - - diff --git a/docs/GoalsApi.md b/docs/GoalsApi.md deleted file mode 100644 index badb59af..00000000 --- a/docs/GoalsApi.md +++ /dev/null @@ -1,315 +0,0 @@ -# Pipedrive.GoalsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addGoal**](GoalsApi.md#addGoal) | **POST** /goals | Add a new goal -[**deleteGoal**](GoalsApi.md#deleteGoal) | **DELETE** /goals/{id} | Delete existing goal -[**getGoalResult**](GoalsApi.md#getGoalResult) | **GET** /goals/{id}/results | Get result of a goal -[**getGoals**](GoalsApi.md#getGoals) | **GET** /goals/find | Find goals -[**updateGoal**](GoalsApi.md#updateGoal) | **PUT** /goals/{id} | Update existing goal - - - -## addGoal - -> UpsertGoalResponse addGoal(opts) - -Add a new goal - -Adds a new goal. Along with adding a new goal, a report is created to track the progress of your goal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.GoalsApi(apiClient); -let opts = Pipedrive.NewGoal.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addGoal(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **NewGoal** | [**NewGoal**](NewGoal.md)| | [optional] - -### Return type - -[**UpsertGoalResponse**](UpsertGoalResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteGoal - -> DeleteGoalResponse deleteGoal(id) - -Delete existing goal - -Marks a goal as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.GoalsApi(apiClient); -let id = "id_example"; // String | The ID of the goal -apiInstance.deleteGoal(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the goal | - -### Return type - -[**DeleteGoalResponse**](DeleteGoalResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getGoalResult - -> GetGoalResultResponse getGoalResult(id, periodStart, periodEnd) - -Get result of a goal - -Gets the progress of a goal for the specified period. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.GoalsApi(apiClient); -let id = "id_example"; // String | The ID of the goal that the results are looked for -let periodStart = new Date("2013-10-20"); // Date | The start date of the period for which to find the goal's progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date. -let periodEnd = new Date("2013-10-20"); // Date | The end date of the period for which to find the goal's progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date. -apiInstance.getGoalResult(id, periodStart, periodEnd).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the goal that the results are looked for | - **period.start** | **Date**| The start date of the period for which to find the goal's progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date. | - **period.end** | **Date**| The end date of the period for which to find the goal's progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date. | - -### Return type - -[**GetGoalResultResponse**](GetGoalResultResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getGoals - -> GetGoalsResponse getGoals(opts) - -Find goals - -Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=<true|false>` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.GoalsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'typeName': "typeName_example", // String | The type of the goal. If provided, everyone's goals will be returned. - 'title': "title_example", // String | The title of the goal - 'isActive': true, // Boolean | Whether the goal is active or not - 'assigneeId': 56, // Number | The ID of the user who's goal to fetch. When omitted, only your goals will be returned. - 'assigneeType': "assigneeType_example", // String | The type of the goal's assignee. If provided, everyone's goals will be returned. - 'expectedOutcomeTarget': 3.4, // Number | The numeric value of the outcome. If provided, everyone's goals will be returned. - 'expectedOutcomeTrackingMetric': "expectedOutcomeTrackingMetric_example", // String | The tracking metric of the expected outcome of the goal. If provided, everyone's goals will be returned. - 'expectedOutcomeCurrencyId': 56, // Number | The numeric ID of the goal's currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone's goals will be returned. - 'typeParamsPipelineId': [null], // [Number] | An array of pipeline IDs or `null` for all pipelines. If provided, everyone's goals will be returned. - 'typeParamsStageId': 56, // Number | The ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone's goals will be returned. - 'typeParamsActivityTypeId': [null], // [Number] | An array of IDs or `null` for all activity types. Only applicable for `activities_completed` and/or `activities_added` types of goals. If provided, everyone's goals will be returned. - 'periodStart': new Date("2013-10-20"), // Date | The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too. - 'periodEnd': new Date("2013-10-20") // Date | The end date of the period for which to find goals. Date in format of YYYY-MM-DD. -}; -apiInstance.getGoals(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **type.name** | **String**| The type of the goal. If provided, everyone's goals will be returned. | [optional] - **title** | **String**| The title of the goal | [optional] - **is_active** | **Boolean**| Whether the goal is active or not | [optional] [default to true] - **assignee.id** | **Number**| The ID of the user who's goal to fetch. When omitted, only your goals will be returned. | [optional] - **assignee.type** | **String**| The type of the goal's assignee. If provided, everyone's goals will be returned. | [optional] - **expected_outcome.target** | **Number**| The numeric value of the outcome. If provided, everyone's goals will be returned. | [optional] - **expected_outcome.tracking_metric** | **String**| The tracking metric of the expected outcome of the goal. If provided, everyone's goals will be returned. | [optional] - **expected_outcome.currency_id** | **Number**| The numeric ID of the goal's currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone's goals will be returned. | [optional] - **type.params.pipeline_id** | [**[Number]**](Number.md)| An array of pipeline IDs or `null` for all pipelines. If provided, everyone's goals will be returned. | [optional] - **type.params.stage_id** | **Number**| The ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone's goals will be returned. | [optional] - **type.params.activity_type_id** | [**[Number]**](Number.md)| An array of IDs or `null` for all activity types. Only applicable for `activities_completed` and/or `activities_added` types of goals. If provided, everyone's goals will be returned. | [optional] - **period.start** | **Date**| The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too. | [optional] - **period.end** | **Date**| The end date of the period for which to find goals. Date in format of YYYY-MM-DD. | [optional] - -### Return type - -[**GetGoalsResponse**](GetGoalsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateGoal - -> UpsertGoalResponse updateGoal(id, opts) - -Update existing goal - -Updates an existing goal. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.GoalsApi(apiClient); -let id = "id_example"; // String | The ID of the goal -let opts = Pipedrive.BasicGoal.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateGoal(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the goal | - **BasicGoal** | [**BasicGoal**](BasicGoal.md)| | [optional] - -### Return type - -[**UpsertGoalResponse**](UpsertGoalResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/GoalsResponseComponent.md b/docs/GoalsResponseComponent.md deleted file mode 100644 index e92f0688..00000000 --- a/docs/GoalsResponseComponent.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.GoalsResponseComponent - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The ID of the goal | [optional] -**owner_id** | **Number** | The ID of the creator of the goal | [optional] -**title** | **String** | The title of the goal | [optional] -**type** | [**GoalType**](GoalType.md) | | [optional] -**assignee** | [**Assignee**](Assignee.md) | | [optional] -**interval** | **String** | The interval of the goal | [optional] -**duration** | [**Duration**](Duration.md) | | [optional] -**expected_outcome** | [**ExpectedOutcome**](ExpectedOutcome.md) | | [optional] -**is_active** | **Boolean** | Whether the goal is currently active or not | [optional] -**report_ids** | **[String]** | The IDs of the reports that belong to the goal | [optional] - - diff --git a/docs/IconKey.md b/docs/IconKey.md deleted file mode 100644 index 3e7140e9..00000000 --- a/docs/IconKey.md +++ /dev/null @@ -1,86 +0,0 @@ -# Pipedrive.IconKey - -## Enum - - -* `task` (value: `"task"`) - -* `email` (value: `"email"`) - -* `meeting` (value: `"meeting"`) - -* `deadline` (value: `"deadline"`) - -* `call` (value: `"call"`) - -* `lunch` (value: `"lunch"`) - -* `calendar` (value: `"calendar"`) - -* `downarrow` (value: `"downarrow"`) - -* `document` (value: `"document"`) - -* `smartphone` (value: `"smartphone"`) - -* `camera` (value: `"camera"`) - -* `scissors` (value: `"scissors"`) - -* `cogs` (value: `"cogs"`) - -* `bubble` (value: `"bubble"`) - -* `uparrow` (value: `"uparrow"`) - -* `checkbox` (value: `"checkbox"`) - -* `signpost` (value: `"signpost"`) - -* `shuffle` (value: `"shuffle"`) - -* `addressbook` (value: `"addressbook"`) - -* `linegraph` (value: `"linegraph"`) - -* `picture` (value: `"picture"`) - -* `car` (value: `"car"`) - -* `world` (value: `"world"`) - -* `search` (value: `"search"`) - -* `clip` (value: `"clip"`) - -* `sound` (value: `"sound"`) - -* `brush` (value: `"brush"`) - -* `key` (value: `"key"`) - -* `padlock` (value: `"padlock"`) - -* `pricetag` (value: `"pricetag"`) - -* `suitcase` (value: `"suitcase"`) - -* `finish` (value: `"finish"`) - -* `plane` (value: `"plane"`) - -* `loop` (value: `"loop"`) - -* `wifi` (value: `"wifi"`) - -* `truck` (value: `"truck"`) - -* `cart` (value: `"cart"`) - -* `bulb` (value: `"bulb"`) - -* `bell` (value: `"bell"`) - -* `presentation` (value: `"presentation"`) - - diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md deleted file mode 100644 index 5725f885..00000000 --- a/docs/InlineResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.InlineResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**MessageObject**](MessageObject.md) | | [optional] - - diff --git a/docs/InlineResponse2001.md b/docs/InlineResponse2001.md deleted file mode 100644 index e43fc72a..00000000 --- a/docs/InlineResponse2001.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.InlineResponse2001 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[OrganizationsCollectionResponseObject]**](OrganizationsCollectionResponseObject.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/InlineResponse2002.md b/docs/InlineResponse2002.md deleted file mode 100644 index 5e33cff9..00000000 --- a/docs/InlineResponse2002.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.InlineResponse2002 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**[PersonsCollectionResponseObject]**](PersonsCollectionResponseObject.md) | | [optional] -**additional_data** | [**AdditionalDataWithCursorPagination**](AdditionalDataWithCursorPagination.md) | | [optional] - - diff --git a/docs/InlineResponse400.md b/docs/InlineResponse400.md deleted file mode 100644 index c5738ee0..00000000 --- a/docs/InlineResponse400.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.InlineResponse400 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The error description | [optional] -**error_info** | **String** | | [optional] -**additional_data** | [**InlineResponse400AdditionalData**](InlineResponse400AdditionalData.md) | | [optional] - - diff --git a/docs/InlineResponse4001.md b/docs/InlineResponse4001.md deleted file mode 100644 index 08f6fa65..00000000 --- a/docs/InlineResponse4001.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.InlineResponse4001 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The error description | [optional] -**error_info** | **String** | | [optional] -**additional_data** | [**InlineResponse4001AdditionalData**](InlineResponse4001AdditionalData.md) | | [optional] - - diff --git a/docs/InlineResponse4001AdditionalData.md b/docs/InlineResponse4001AdditionalData.md deleted file mode 100644 index 1095ea13..00000000 --- a/docs/InlineResponse4001AdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.InlineResponse4001AdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **String** | An error code sent by the API | [optional] - - diff --git a/docs/InlineResponse400AdditionalData.md b/docs/InlineResponse400AdditionalData.md deleted file mode 100644 index baf83f20..00000000 --- a/docs/InlineResponse400AdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.InlineResponse400AdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **String** | An error code sent by the API | [optional] - - diff --git a/docs/InlineResponse403.md b/docs/InlineResponse403.md deleted file mode 100644 index 02cd2f17..00000000 --- a/docs/InlineResponse403.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.InlineResponse403 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The error description | [optional] -**error_info** | **String** | | [optional] -**additional_data** | [**InlineResponse403AdditionalData**](InlineResponse403AdditionalData.md) | | [optional] - - diff --git a/docs/InlineResponse4031.md b/docs/InlineResponse4031.md deleted file mode 100644 index a99152dc..00000000 --- a/docs/InlineResponse4031.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.InlineResponse4031 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The error description | [optional] -**error_info** | **String** | | [optional] -**additional_data** | [**InlineResponse4031AdditionalData**](InlineResponse4031AdditionalData.md) | | [optional] - - diff --git a/docs/InlineResponse4031AdditionalData.md b/docs/InlineResponse4031AdditionalData.md deleted file mode 100644 index a280c644..00000000 --- a/docs/InlineResponse4031AdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.InlineResponse4031AdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **String** | An error code sent by the API | [optional] - - diff --git a/docs/InlineResponse403AdditionalData.md b/docs/InlineResponse403AdditionalData.md deleted file mode 100644 index 40a12637..00000000 --- a/docs/InlineResponse403AdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.InlineResponse403AdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **String** | An error code sent by the API | [optional] - - diff --git a/docs/InlineResponse404.md b/docs/InlineResponse404.md deleted file mode 100644 index 1e2bf835..00000000 --- a/docs/InlineResponse404.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.InlineResponse404 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The error description | [optional] -**error_info** | **String** | | [optional] -**additional_data** | [**InlineResponse404AdditionalData**](InlineResponse404AdditionalData.md) | | [optional] - - diff --git a/docs/InlineResponse404AdditionalData.md b/docs/InlineResponse404AdditionalData.md deleted file mode 100644 index 02f949c4..00000000 --- a/docs/InlineResponse404AdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.InlineResponse404AdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **String** | An error code sent by the API | [optional] - - diff --git a/docs/InternalFieldType.md b/docs/InternalFieldType.md deleted file mode 100644 index 09f7398a..00000000 --- a/docs/InternalFieldType.md +++ /dev/null @@ -1,74 +0,0 @@ -# Pipedrive.InternalFieldType - -## Enum - - -* `boolean` (value: `"boolean"`) - -* `double` (value: `"double"`) - -* `int` (value: `"int"`) - -* `json` (value: `"json"`) - -* `date` (value: `"date"`) - -* `daterange` (value: `"daterange"`) - -* `time` (value: `"time"`) - -* `timerange` (value: `"timerange"`) - -* `text` (value: `"text"`) - -* `varchar` (value: `"varchar"`) - -* `varchar_auto` (value: `"varchar_auto"`) - -* `varchar_options` (value: `"varchar_options"`) - -* `address` (value: `"address"`) - -* `enum` (value: `"enum"`) - -* `monetary` (value: `"monetary"`) - -* `phone` (value: `"phone"`) - -* `set` (value: `"set"`) - -* `activity` (value: `"activity"`) - -* `deal` (value: `"deal"`) - -* `lead` (value: `"lead"`) - -* `org` (value: `"org"`) - -* `people` (value: `"people"`) - -* `pipeline` (value: `"pipeline"`) - -* `product` (value: `"product"`) - -* `project` (value: `"project"`) - -* `stage` (value: `"stage"`) - -* `user` (value: `"user"`) - -* `billing_frequency` (value: `"billing_frequency"`) - -* `picture` (value: `"picture"`) - -* `price_list` (value: `"price_list"`) - -* `projects_board` (value: `"projects_board"`) - -* `projects_phase` (value: `"projects_phase"`) - -* `status` (value: `"status"`) - -* `visible_to` (value: `"visible_to"`) - - diff --git a/docs/ItemSearchAdditionalData.md b/docs/ItemSearchAdditionalData.md deleted file mode 100644 index 21eed328..00000000 --- a/docs/ItemSearchAdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ItemSearchAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**ItemSearchAdditionalDataPagination**](ItemSearchAdditionalDataPagination.md) | | [optional] - - diff --git a/docs/ItemSearchAdditionalDataPagination.md b/docs/ItemSearchAdditionalDataPagination.md deleted file mode 100644 index 06cea6fb..00000000 --- a/docs/ItemSearchAdditionalDataPagination.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ItemSearchAdditionalDataPagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start** | **Number** | Pagination start | [optional] -**limit** | **Number** | Items shown per page | [optional] -**more_items_in_collection** | **Boolean** | Whether there are more list items in the collection than displayed | [optional] -**next_start** | **Number** | Next pagination start | [optional] - - diff --git a/docs/ItemSearchApi.md b/docs/ItemSearchApi.md deleted file mode 100644 index 0f4c7fdd..00000000 --- a/docs/ItemSearchApi.md +++ /dev/null @@ -1,148 +0,0 @@ -# Pipedrive.ItemSearchApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**searchItem**](ItemSearchApi.md#searchItem) | **GET** /itemSearch | Perform a search from multiple item types -[**searchItemByField**](ItemSearchApi.md#searchItemByField) | **GET** /itemSearch/field | Perform a search using a specific field from an item type - - - -## searchItem - -> ItemSearchResponse searchItem(term, opts) - -Perform a search from multiple item types - -Performs a search from your choice of item types and fields. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ItemSearchApi(apiClient); -let term = "term_example"; // String | 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. -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'itemTypes': "itemTypes_example", // String | A comma-separated string array. The type of items to perform the search from. Defaults to all. - 'fields': "fields_example", // String | A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:
Item typeField
Deal`custom_fields`, `notes`, `title`
Person`custom_fields`, `email`, `name`, `notes`, `phone`
Organization`address`, `custom_fields`, `name`, `notes`
Product`code`, `custom_fields`, `name`
Lead`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`
File`name`
Mail attachment`name`
Project `custom_fields`, `notes`, `title`, `description`

Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here.
When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. - 'searchForRelatedItems': true, // Boolean | When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization - 'exactMatch': true, // Boolean | When enabled, only full exact matches against the given term are returned. It is not case sensitive. - 'includeFields': "includeFields_example", // String | A comma-separated string array. Supports including optional fields in the results which are not provided by default. - 'start': 0, // Number | Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - 'limit': 56 // Number | Items shown per page -}; -apiInstance.searchItem(term, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **term** | **String**| 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. | - **item_types** | **String**| A comma-separated string array. The type of items to perform the search from. Defaults to all. | [optional] - **fields** | **String**| A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<br/> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. | [optional] - **search_for_related_items** | **Boolean**| When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization | [optional] - **exact_match** | **Boolean**| When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. | [optional] - **include_fields** | **String**| A comma-separated string array. Supports including optional fields in the results which are not provided by default. | [optional] - **start** | **Number**| Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ItemSearchResponse**](ItemSearchResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## searchItemByField - -> ItemSearchFieldResponse searchItemByField(term, fieldType, fieldKey, opts) - -Perform a search using a specific field from an item type - -Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ItemSearchApi(apiClient); -let term = "term_example"; // String | 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. -let fieldType = "fieldType_example"; // String | The type of the field to perform the search from -let fieldKey = "fieldKey_example"; // String | The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'exactMatch': false, // Boolean | When enabled, only full exact matches against the given term are returned. The search is case sensitive. - 'returnItemIds': true, // Boolean | Whether to return the IDs of the matching items or not. When not set or set to `0` or `false`, only distinct values of the searched field are returned. When set to `1` or `true`, the ID of each found item is returned. - 'start': 56, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.searchItemByField(term, fieldType, fieldKey, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **term** | **String**| 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. | - **field_type** | **String**| The type of the field to perform the search from | - **field_key** | **String**| The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. | - **exact_match** | **Boolean**| When enabled, only full exact matches against the given term are returned. The search <b>is</b> case sensitive. | [optional] [default to false] - **return_item_ids** | **Boolean**| Whether to return the IDs of the matching items or not. When not set or set to `0` or `false`, only distinct values of the searched field are returned. When set to `1` or `true`, the ID of each found item is returned. | [optional] - **start** | **Number**| Pagination start | [optional] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ItemSearchFieldResponse**](ItemSearchFieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/ItemSearchFieldResponse.md b/docs/ItemSearchFieldResponse.md deleted file mode 100644 index 5a0e7ee7..00000000 --- a/docs/ItemSearchFieldResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ItemSearchFieldResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ItemSearchFieldResponseAllOfData]**](ItemSearchFieldResponseAllOfData.md) | The array of results | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/ItemSearchFieldResponseAllOf.md b/docs/ItemSearchFieldResponseAllOf.md deleted file mode 100644 index 366b5ed3..00000000 --- a/docs/ItemSearchFieldResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ItemSearchFieldResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ItemSearchFieldResponseAllOfData]**](ItemSearchFieldResponseAllOfData.md) | The array of results | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/ItemSearchFieldResponseAllOfData.md b/docs/ItemSearchFieldResponseAllOfData.md deleted file mode 100644 index 9d9f6051..00000000 --- a/docs/ItemSearchFieldResponseAllOfData.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ItemSearchFieldResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the item | [optional] -**$field_key** | **Object** | The value of the searched `field_key` | [optional] - - diff --git a/docs/ItemSearchItem.md b/docs/ItemSearchItem.md deleted file mode 100644 index 6fe0f4f2..00000000 --- a/docs/ItemSearchItem.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ItemSearchItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result_score** | **Number** | Search result relevancy | [optional] -**item** | **Object** | Item | [optional] - - diff --git a/docs/ItemSearchResponse.md b/docs/ItemSearchResponse.md deleted file mode 100644 index 7a473c83..00000000 --- a/docs/ItemSearchResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ItemSearchResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**ItemSearchResponseAllOfData**](ItemSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/ItemSearchResponseAllOf.md b/docs/ItemSearchResponseAllOf.md deleted file mode 100644 index a3f90aaa..00000000 --- a/docs/ItemSearchResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ItemSearchResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ItemSearchResponseAllOfData**](ItemSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/ItemSearchResponseAllOfData.md b/docs/ItemSearchResponseAllOfData.md deleted file mode 100644 index 7e36d673..00000000 --- a/docs/ItemSearchResponseAllOfData.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ItemSearchResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**[ItemSearchItem]**](ItemSearchItem.md) | The array of found items | [optional] -**related_items** | [**[ItemSearchItem]**](ItemSearchItem.md) | The array of related items if `search_for_related_items` was enabled | [optional] - - diff --git a/docs/LeadIdResponse200.md b/docs/LeadIdResponse200.md deleted file mode 100644 index 0aa6b97f..00000000 --- a/docs/LeadIdResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.LeadIdResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**LeadIdResponse200Data**](LeadIdResponse200Data.md) | | [optional] - - diff --git a/docs/LeadIdResponse200Data.md b/docs/LeadIdResponse200Data.md deleted file mode 100644 index ffcec624..00000000 --- a/docs/LeadIdResponse200Data.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.LeadIdResponse200Data - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] - - diff --git a/docs/LeadLabelColor.md b/docs/LeadLabelColor.md deleted file mode 100644 index 79d242cd..00000000 --- a/docs/LeadLabelColor.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.LeadLabelColor - -## Enum - - -* `green` (value: `"green"`) - -* `blue` (value: `"blue"`) - -* `red` (value: `"red"`) - -* `yellow` (value: `"yellow"`) - -* `purple` (value: `"purple"`) - -* `gray` (value: `"gray"`) - - diff --git a/docs/LeadLabelResponse.md b/docs/LeadLabelResponse.md deleted file mode 100644 index 9554b088..00000000 --- a/docs/LeadLabelResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.LeadLabelResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The unique ID of the lead label | [optional] -**name** | **String** | The name of the lead label | [optional] -**color** | [**LeadLabelColor**](LeadLabelColor.md) | | [optional] -**add_time** | **Date** | The date and time of when the lead label was created. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. | [optional] -**update_time** | **Date** | The date and time of when the lead label was last updated. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. | [optional] - - diff --git a/docs/LeadLabelsApi.md b/docs/LeadLabelsApi.md deleted file mode 100644 index 66505f6d..00000000 --- a/docs/LeadLabelsApi.md +++ /dev/null @@ -1,226 +0,0 @@ -# Pipedrive.LeadLabelsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addLeadLabel**](LeadLabelsApi.md#addLeadLabel) | **POST** /leadLabels | Add a lead label -[**deleteLeadLabel**](LeadLabelsApi.md#deleteLeadLabel) | **DELETE** /leadLabels/{id} | Delete a lead label -[**getLeadLabels**](LeadLabelsApi.md#getLeadLabels) | **GET** /leadLabels | Get all lead labels -[**updateLeadLabel**](LeadLabelsApi.md#updateLeadLabel) | **PATCH** /leadLabels/{id} | Update a lead label - - - -## addLeadLabel - -> UpsertLeadLabelResponse addLeadLabel(opts) - -Add a lead label - -Creates a lead label. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadLabelsApi(apiClient); -let opts = Pipedrive.AddLeadLabelRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addLeadLabel(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **AddLeadLabelRequest** | [**AddLeadLabelRequest**](AddLeadLabelRequest.md)| | [optional] - -### Return type - -[**UpsertLeadLabelResponse**](UpsertLeadLabelResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteLeadLabel - -> DeleteLeadIdResponse deleteLeadLabel(id) - -Delete a lead label - -Deletes a specific lead label. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadLabelsApi(apiClient); -let id = "id_example"; // String | The ID of the lead label -apiInstance.deleteLeadLabel(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the lead label | - -### Return type - -[**DeleteLeadIdResponse**](DeleteLeadIdResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getLeadLabels - -> GetLeadLabelsResponse getLeadLabels() - -Get all lead labels - -Returns details of all lead labels. This endpoint does not support pagination and all labels are always returned. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadLabelsApi(apiClient); -apiInstance.getLeadLabels().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**GetLeadLabelsResponse**](GetLeadLabelsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateLeadLabel - -> UpsertLeadLabelResponse updateLeadLabel(id, opts) - -Update a lead label - -Updates one or more properties of a lead label. Only properties included in the request will be updated. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadLabelsApi(apiClient); -let id = "id_example"; // String | The ID of the lead label -let opts = Pipedrive.UpdateLeadLabelRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateLeadLabel(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the lead label | - **UpdateLeadLabelRequest** | [**UpdateLeadLabelRequest**](UpdateLeadLabelRequest.md)| | [optional] - -### Return type - -[**UpsertLeadLabelResponse**](UpsertLeadLabelResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/LeadNotFoundResponse.md b/docs/LeadNotFoundResponse.md deleted file mode 100644 index 363882a8..00000000 --- a/docs/LeadNotFoundResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.LeadNotFoundResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/LeadResponse.md b/docs/LeadResponse.md deleted file mode 100644 index 4b4e13d3..00000000 --- a/docs/LeadResponse.md +++ /dev/null @@ -1,29 +0,0 @@ -# Pipedrive.LeadResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The unique ID of the lead in the UUID format | [optional] -**title** | **String** | The title of the lead | [optional] -**owner_id** | **Number** | The ID of the user who owns the lead | [optional] -**creator_id** | **Number** | The ID of the user who created the lead | [optional] -**label_ids** | **[String]** | The IDs of the lead labels which are associated with the lead | [optional] -**person_id** | **Number** | The ID of a person which this lead is linked to | [optional] -**organization_id** | **Number** | The ID of an organization which this lead is linked to | [optional] -**source_name** | **String** | Defines where the lead comes from. Will be `API` if the lead was created through the Public API and will be `Manually created` if the lead was created manually through the UI. | [optional] -**origin** | **String** | The way this Lead was created. `origin` field is set by Pipedrive when Lead is created and cannot be changed. | [optional] -**origin_id** | **String** | The optional ID to further distinguish the origin of the lead - e.g. Which API integration created this Lead. | [optional] -**channel** | **Number** | The ID of your Marketing channel this Lead was created from. Recognized Marketing channels can be configured in your <a href=\"https://app.pipedrive.com/settings/fields\" target=\"_blank\" rel=\"noopener noreferrer\">Company settings</a>. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. | [optional] -**is_archived** | **Boolean** | A flag indicating whether the lead is archived or not | [optional] -**was_seen** | **Boolean** | A flag indicating whether the lead was seen by someone in the Pipedrive UI | [optional] -**value** | [**LeadValue**](LeadValue.md) | | [optional] -**expected_close_date** | **Date** | The date of when the deal which will be created from the lead is expected to be closed. In ISO 8601 format: YYYY-MM-DD. | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the lead | [optional] -**add_time** | **Date** | The date and time of when the lead was created. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. | [optional] -**update_time** | **Date** | The date and time of when the lead was last updated. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the lead. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers (private)</td></tr><tr><td>`3`</td><td>Entire company (shared)</td></tr></table> | [optional] -**cc_email** | **String** | The BCC email of the lead | [optional] - - diff --git a/docs/LeadResponse404.md b/docs/LeadResponse404.md deleted file mode 100644 index fe863cd0..00000000 --- a/docs/LeadResponse404.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.LeadResponse404 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**error** | **String** | The description of the error | [optional] -**error_info** | **String** | A message describing how to solve the problem | [optional] -**data** | **Object** | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/LeadSearchItem.md b/docs/LeadSearchItem.md deleted file mode 100644 index a75fa1c0..00000000 --- a/docs/LeadSearchItem.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.LeadSearchItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result_score** | **Number** | Search result relevancy | [optional] -**item** | [**LeadSearchItemItem**](LeadSearchItemItem.md) | | [optional] - - diff --git a/docs/LeadSearchItemItem.md b/docs/LeadSearchItemItem.md deleted file mode 100644 index 7145393b..00000000 --- a/docs/LeadSearchItemItem.md +++ /dev/null @@ -1,22 +0,0 @@ -# Pipedrive.LeadSearchItemItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The ID of the lead | [optional] -**type** | **String** | The type of the item | [optional] -**title** | **String** | The title of the lead | [optional] -**owner** | [**LeadSearchItemItemOwner**](LeadSearchItemItemOwner.md) | | [optional] -**person** | [**LeadSearchItemItemPerson**](LeadSearchItemItemPerson.md) | | [optional] -**organization** | [**LeadSearchItemItemOrganization**](LeadSearchItemItemOrganization.md) | | [optional] -**phones** | **[String]** | | [optional] -**emails** | **[String]** | | [optional] -**custom_fields** | **[String]** | Custom fields | [optional] -**notes** | **[String]** | An array of notes | [optional] -**value** | **Number** | The value of the lead | [optional] -**currency** | **String** | The currency of the lead | [optional] -**visible_to** | **Number** | The visibility of the lead | [optional] -**is_archived** | **Boolean** | A flag indicating whether the lead is archived or not | [optional] - - diff --git a/docs/LeadSearchItemItemOrganization.md b/docs/LeadSearchItemItemOrganization.md deleted file mode 100644 index c397be46..00000000 --- a/docs/LeadSearchItemItemOrganization.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.LeadSearchItemItemOrganization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization the lead is associated with | [optional] -**name** | **String** | The name of the organization the lead is associated with | [optional] - - diff --git a/docs/LeadSearchItemItemOwner.md b/docs/LeadSearchItemItemOwner.md deleted file mode 100644 index 2910fd1f..00000000 --- a/docs/LeadSearchItemItemOwner.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.LeadSearchItemItemOwner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the owner of the lead | [optional] - - diff --git a/docs/LeadSearchItemItemPerson.md b/docs/LeadSearchItemItemPerson.md deleted file mode 100644 index cc974bc0..00000000 --- a/docs/LeadSearchItemItemPerson.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.LeadSearchItemItemPerson - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the person the lead is associated with | [optional] -**name** | **String** | The name of the person the lead is associated with | [optional] - - diff --git a/docs/LeadSearchResponse.md b/docs/LeadSearchResponse.md deleted file mode 100644 index d7c4ffe3..00000000 --- a/docs/LeadSearchResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.LeadSearchResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**LeadSearchResponseAllOfData**](LeadSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/LeadSearchResponseAllOf.md b/docs/LeadSearchResponseAllOf.md deleted file mode 100644 index e3b9bddb..00000000 --- a/docs/LeadSearchResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.LeadSearchResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**LeadSearchResponseAllOfData**](LeadSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/LeadSearchResponseAllOfData.md b/docs/LeadSearchResponseAllOfData.md deleted file mode 100644 index 92112dd9..00000000 --- a/docs/LeadSearchResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.LeadSearchResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**[LeadSearchItem]**](LeadSearchItem.md) | The array of leads | [optional] - - diff --git a/docs/LeadSourcesApi.md b/docs/LeadSourcesApi.md deleted file mode 100644 index 85b9dda7..00000000 --- a/docs/LeadSourcesApi.md +++ /dev/null @@ -1,58 +0,0 @@ -# Pipedrive.LeadSourcesApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getLeadSources**](LeadSourcesApi.md#getLeadSources) | **GET** /leadSources | Get all lead sources - - - -## getLeadSources - -> GetLeadsSourceResponse getLeadSources() - -Get all lead sources - -Returns all lead sources. Please note that the list of lead sources is fixed, it cannot be modified. All leads created through the Pipedrive API will have a lead source `API` assigned. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadSourcesApi(apiClient); -apiInstance.getLeadSources().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**GetLeadsSourceResponse**](GetLeadsSourceResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/LeadValue.md b/docs/LeadValue.md deleted file mode 100644 index c2389a25..00000000 --- a/docs/LeadValue.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.LeadValue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **Number** | | -**currency** | **String** | | - - diff --git a/docs/LeadsApi.md b/docs/LeadsApi.md deleted file mode 100644 index 021d2f16..00000000 --- a/docs/LeadsApi.md +++ /dev/null @@ -1,426 +0,0 @@ -# Pipedrive.LeadsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addLead**](LeadsApi.md#addLead) | **POST** /leads | Add a lead -[**deleteLead**](LeadsApi.md#deleteLead) | **DELETE** /leads/{id} | Delete a lead -[**getLead**](LeadsApi.md#getLead) | **GET** /leads/{id} | Get one lead -[**getLeadUsers**](LeadsApi.md#getLeadUsers) | **GET** /leads/{id}/permittedUsers | List permitted users -[**getLeads**](LeadsApi.md#getLeads) | **GET** /leads | Get all leads -[**searchLeads**](LeadsApi.md#searchLeads) | **GET** /leads/search | Search leads -[**updateLead**](LeadsApi.md#updateLead) | **PATCH** /leads/{id} | Update a lead - - - -## addLead - -> GetLeadResponse addLead(opts) - -Add a lead - -Creates a lead. A lead always has to be linked to a person or an organization or both. All leads created through the Pipedrive API will have a lead source and origin set to `API`. Here's the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-lead\" target=\"_blank\" rel=\"noopener noreferrer\">adding a lead</a>. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals. See an example given in the <a href=\"https://pipedrive.readme.io/docs/updating-custom-field-value\" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields' values tutorial</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadsApi(apiClient); -let opts = Pipedrive.AddLeadRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addLead(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **AddLeadRequest** | [**AddLeadRequest**](AddLeadRequest.md)| | [optional] - -### Return type - -[**GetLeadResponse**](GetLeadResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteLead - -> GetLeadIdResponse deleteLead(id) - -Delete a lead - -Deletes a specific lead. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadsApi(apiClient); -let id = "id_example"; // String | The ID of the lead -apiInstance.deleteLead(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the lead | - -### Return type - -[**GetLeadIdResponse**](GetLeadIdResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getLead - -> GetLeadResponse getLead(id) - -Get one lead - -Returns details of a specific lead. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadsApi(apiClient); -let id = "id_example"; // String | The ID of the lead -apiInstance.getLead(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the lead | - -### Return type - -[**GetLeadResponse**](GetLeadResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getLeadUsers - -> UserIDs getLeadUsers(id) - -List permitted users - -Lists the users permitted to access a lead. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadsApi(apiClient); -let id = "id_example"; // String | The ID of the lead -apiInstance.getLeadUsers(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the lead | - -### Return type - -[**UserIDs**](UserIDs.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getLeads - -> GetLeadsResponse getLeads(opts) - -Get all leads - -Returns multiple leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'limit': 100, // Number | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - 'start': 0, // Number | For pagination, the position that represents the first result for the page - 'archivedStatus': "archivedStatus_example", // String | Filtering based on the archived status of a lead. If not provided, `All` is used. - 'ownerId': 1, // Number | If supplied, only leads matching the given user will be returned. However, `filter_id` takes precedence over `owner_id` when supplied. - 'personId': 1, // Number | If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied. - 'organizationId': 1, // Number | If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied. - 'filterId': 1, // Number | The ID of the filter to use - 'sort': "sort_example" // String | 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). -}; -apiInstance.getLeads(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. | [optional] - **start** | **Number**| For pagination, the position that represents the first result for the page | [optional] - **archived_status** | **String**| Filtering based on the archived status of a lead. If not provided, `All` is used. | [optional] - **owner_id** | **Number**| If supplied, only leads matching the given user will be returned. However, `filter_id` takes precedence over `owner_id` when supplied. | [optional] - **person_id** | **Number**| If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied. | [optional] - **organization_id** | **Number**| If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied. | [optional] - **filter_id** | **Number**| The ID of the filter to use | [optional] - **sort** | **String**| 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). | [optional] - -### Return type - -[**GetLeadsResponse**](GetLeadsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## searchLeads - -> LeadSearchResponse searchLeads(term, opts) - -Search leads - -Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadsApi(apiClient); -let term = "term_example"; // String | 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. -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'fields': "fields_example", // String | A comma-separated string array. The fields to perform the search from. Defaults to all of them. - 'exactMatch': true, // Boolean | When enabled, only full exact matches against the given term are returned. It is not case sensitive. - 'personId': 56, // Number | Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. - 'organizationId': 56, // Number | Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. - 'includeFields': "includeFields_example", // String | Supports including optional fields in the results which are not provided by default - 'start': 0, // Number | Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - 'limit': 56 // Number | Items shown per page -}; -apiInstance.searchLeads(term, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **term** | **String**| 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. | - **fields** | **String**| A comma-separated string array. The fields to perform the search from. Defaults to all of them. | [optional] - **exact_match** | **Boolean**| When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. | [optional] - **person_id** | **Number**| Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. | [optional] - **organization_id** | **Number**| Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. | [optional] - **include_fields** | **String**| Supports including optional fields in the results which are not provided by default | [optional] - **start** | **Number**| Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**LeadSearchResponse**](LeadSearchResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateLead - -> GetLeadResponse updateLead(id, opts) - -Update a lead - -Updates one or more properties of a lead. Only properties included in the request will be updated. Send `null` to unset a property (applicable for example for `value`, `person_id` or `organization_id`). If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. See an example given in the <a href=\"https://pipedrive.readme.io/docs/updating-custom-field-value\" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields’ values tutorial</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LeadsApi(apiClient); -let id = "id_example"; // String | The ID of the lead -let opts = Pipedrive.UpdateLeadRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateLead(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the lead | - **UpdateLeadRequest** | [**UpdateLeadRequest**](UpdateLeadRequest.md)| | [optional] - -### Return type - -[**GetLeadResponse**](GetLeadResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/LegacyTeamsApi.md b/docs/LegacyTeamsApi.md deleted file mode 100644 index 6e59a463..00000000 --- a/docs/LegacyTeamsApi.md +++ /dev/null @@ -1,471 +0,0 @@ -# Pipedrive.LegacyTeamsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addTeam**](LegacyTeamsApi.md#addTeam) | **POST** /legacyTeams | Add a new team -[**addTeamUser**](LegacyTeamsApi.md#addTeamUser) | **POST** /legacyTeams/{id}/users | Add users to a team -[**deleteTeamUser**](LegacyTeamsApi.md#deleteTeamUser) | **DELETE** /legacyTeams/{id}/users | Delete users from a team -[**getTeam**](LegacyTeamsApi.md#getTeam) | **GET** /legacyTeams/{id} | Get a single team -[**getTeamUsers**](LegacyTeamsApi.md#getTeamUsers) | **GET** /legacyTeams/{id}/users | Get all users in a team -[**getTeams**](LegacyTeamsApi.md#getTeams) | **GET** /legacyTeams | Get all teams -[**getUserTeams**](LegacyTeamsApi.md#getUserTeams) | **GET** /legacyTeams/user/{id} | Get all teams of a user -[**updateTeam**](LegacyTeamsApi.md#updateTeam) | **PUT** /legacyTeams/{id} | Update a team - - - -## addTeam - -> Team addTeam(opts) - -Add a new team - -Adds a new team to the company and returns the created object. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LegacyTeamsApi(apiClient); -let opts = Pipedrive.CreateTeam.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addTeam(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **CreateTeam** | [**CreateTeam**](CreateTeam.md)| | [optional] - -### Return type - -[**Team**](Team.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addTeamUser - -> UserIDs addTeamUser(id, opts) - -Add users to a team - -Adds users to an existing team. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LegacyTeamsApi(apiClient); -let id = 56; // Number | The ID of the team -let opts = Pipedrive.AddTeamUserRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addTeamUser(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the team | - **AddTeamUserRequest** | [**AddTeamUserRequest**](AddTeamUserRequest.md)| | [optional] - -### Return type - -[**UserIDs**](UserIDs.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteTeamUser - -> UserIDs deleteTeamUser(id, opts) - -Delete users from a team - -Deletes users from an existing team. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LegacyTeamsApi(apiClient); -let id = 56; // Number | The ID of the team -let opts = Pipedrive.DeleteTeamUserRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.deleteTeamUser(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the team | - **DeleteTeamUserRequest** | [**DeleteTeamUserRequest**](DeleteTeamUserRequest.md)| | [optional] - -### Return type - -[**UserIDs**](UserIDs.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## getTeam - -> Team getTeam(id, opts) - -Get a single team - -Returns data about a specific team. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LegacyTeamsApi(apiClient); -let id = 56; // Number | The ID of the team -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'skipUsers': new Pipedrive.NumberBooleanDefault0() // NumberBooleanDefault0 | When enabled, the teams will not include IDs of member users -}; -apiInstance.getTeam(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the team | - **skip_users** | [**NumberBooleanDefault0**](.md)| When enabled, the teams will not include IDs of member users | [optional] - -### Return type - -[**Team**](Team.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getTeamUsers - -> UserIDs getTeamUsers(id) - -Get all users in a team - -Returns a list of all user IDs within a team. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LegacyTeamsApi(apiClient); -let id = 56; // Number | The ID of the team -apiInstance.getTeamUsers(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the team | - -### Return type - -[**UserIDs**](UserIDs.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getTeams - -> Teams getTeams(opts) - -Get all teams - -Returns data about teams within the company. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LegacyTeamsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'orderBy': "'id'", // String | The field name to sort returned teams by - 'skipUsers': new Pipedrive.NumberBooleanDefault0() // NumberBooleanDefault0 | When enabled, the teams will not include IDs of member users -}; -apiInstance.getTeams(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **order_by** | **String**| The field name to sort returned teams by | [optional] [default to 'id'] - **skip_users** | [**NumberBooleanDefault0**](.md)| When enabled, the teams will not include IDs of member users | [optional] - -### Return type - -[**Teams**](Teams.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getUserTeams - -> Teams getUserTeams(id, opts) - -Get all teams of a user - -Returns data about all teams which have the specified user as a member. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LegacyTeamsApi(apiClient); -let id = 56; // Number | The ID of the user -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'orderBy': "'id'", // String | The field name to sort returned teams by - 'skipUsers': new Pipedrive.NumberBooleanDefault0() // NumberBooleanDefault0 | When enabled, the teams will not include IDs of member users -}; -apiInstance.getUserTeams(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the user | - **order_by** | **String**| The field name to sort returned teams by | [optional] [default to 'id'] - **skip_users** | [**NumberBooleanDefault0**](.md)| When enabled, the teams will not include IDs of member users | [optional] - -### Return type - -[**Teams**](Teams.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateTeam - -> Team updateTeam(id, opts) - -Update a team - -Updates an existing team and returns the updated object. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.LegacyTeamsApi(apiClient); -let id = 56; // Number | The ID of the team -let opts = Pipedrive.UpdateTeam.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateTeam(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the team | - **UpdateTeam** | [**UpdateTeam**](UpdateTeam.md)| | [optional] - -### Return type - -[**Team**](Team.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/LinkFileToItemRequest.md b/docs/LinkFileToItemRequest.md deleted file mode 100644 index 6641acf8..00000000 --- a/docs/LinkFileToItemRequest.md +++ /dev/null @@ -1,34 +0,0 @@ -# Pipedrive.LinkFileToItemRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**itemType** | **String** | The item type | -**itemId** | **Number** | ID of the item to associate the file with | -**remoteId** | **String** | The remote item id | -**remoteLocation** | **String** | The location type to send the file to. Only `googledrive` is supported at the moment. | - - - -## Enum: ItemTypeEnum - - -* `deal` (value: `"deal"`) - -* `organization` (value: `"organization"`) - -* `person` (value: `"person"`) - - - - - -## Enum: RemoteLocationEnum - - -* `googledrive` (value: `"googledrive"`) - - - - diff --git a/docs/LinkRemoteFileToItem.md b/docs/LinkRemoteFileToItem.md deleted file mode 100644 index 6d372f8a..00000000 --- a/docs/LinkRemoteFileToItem.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.LinkRemoteFileToItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**FileData**](FileData.md) | | [optional] - - diff --git a/docs/ListActivitiesResponse.md b/docs/ListActivitiesResponse.md deleted file mode 100644 index 383adfe1..00000000 --- a/docs/ListActivitiesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ListActivitiesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ActivityResponseObject]**](ActivityResponseObject.md) | The array of activities | [optional] -**additional_data** | [**ActivityDistributionDataWithAdditionalData**](ActivityDistributionDataWithAdditionalData.md) | | [optional] - - diff --git a/docs/ListActivitiesResponseAllOf.md b/docs/ListActivitiesResponseAllOf.md deleted file mode 100644 index ca233bee..00000000 --- a/docs/ListActivitiesResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ListActivitiesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ActivityResponseObject]**](ActivityResponseObject.md) | The array of activities | [optional] -**additional_data** | [**ActivityDistributionDataWithAdditionalData**](ActivityDistributionDataWithAdditionalData.md) | | [optional] - - diff --git a/docs/ListDealsResponse.md b/docs/ListDealsResponse.md deleted file mode 100644 index 9dc38c2c..00000000 --- a/docs/ListDealsResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ListDealsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[DealNonStrict]**](DealNonStrict.md) | The array of deals | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**ListDealsResponseAllOfRelatedObjects**](ListDealsResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/ListDealsResponseAllOf.md b/docs/ListDealsResponseAllOf.md deleted file mode 100644 index d595cbbc..00000000 --- a/docs/ListDealsResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ListDealsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[DealNonStrict]**](DealNonStrict.md) | The array of deals | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**ListDealsResponseAllOfRelatedObjects**](ListDealsResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/ListDealsResponseAllOfRelatedObjects.md b/docs/ListDealsResponseAllOfRelatedObjects.md deleted file mode 100644 index 9a909b7e..00000000 --- a/docs/ListDealsResponseAllOfRelatedObjects.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.ListDealsResponseAllOfRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization** | [**RelatedOrganizationDataWithActiveFlag**](RelatedOrganizationDataWithActiveFlag.md) | | [optional] -**person** | [**RelatedPersonDataWithActiveFlag**](RelatedPersonDataWithActiveFlag.md) | | [optional] -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] -**stage** | [**BaseStage**](BaseStage.md) | | [optional] -**pipeline** | [**BasePipeline**](BasePipeline.md) | | [optional] - - diff --git a/docs/ListFilesResponse.md b/docs/ListFilesResponse.md deleted file mode 100644 index ef24f912..00000000 --- a/docs/ListFilesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ListFilesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[FileItem]**](FileItem.md) | The array of files | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ListFilesResponseAllOf.md b/docs/ListFilesResponseAllOf.md deleted file mode 100644 index 442f9f99..00000000 --- a/docs/ListFilesResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ListFilesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[FileItem]**](FileItem.md) | The array of files | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ListFollowersResponse.md b/docs/ListFollowersResponse.md deleted file mode 100644 index 7c666527..00000000 --- a/docs/ListFollowersResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ListFollowersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ListFollowersResponseAllOfData]**](ListFollowersResponseAllOfData.md) | The list of followers | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ListFollowersResponseAllOf.md b/docs/ListFollowersResponseAllOf.md deleted file mode 100644 index bd09f856..00000000 --- a/docs/ListFollowersResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ListFollowersResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ListFollowersResponseAllOfData]**](ListFollowersResponseAllOfData.md) | The list of followers | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ListFollowersResponseAllOfData.md b/docs/ListFollowersResponseAllOfData.md deleted file mode 100644 index d7ebe3f3..00000000 --- a/docs/ListFollowersResponseAllOfData.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ListFollowersResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user | [optional] -**id** | **Number** | The ID of the user follower | [optional] -**deal_id** | **Number** | The ID of the deal which the follower was added to | [optional] -**add_time** | **String** | The date and time when the follower was added to the person | [optional] - - diff --git a/docs/ListMailMessagesResponse.md b/docs/ListMailMessagesResponse.md deleted file mode 100644 index e44e1baf..00000000 --- a/docs/ListMailMessagesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ListMailMessagesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ListMailMessagesResponseAllOfData]**](ListMailMessagesResponseAllOfData.md) | The array of mail messages | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ListMailMessagesResponseAllOf.md b/docs/ListMailMessagesResponseAllOf.md deleted file mode 100644 index 9ff6f537..00000000 --- a/docs/ListMailMessagesResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ListMailMessagesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ListMailMessagesResponseAllOfData]**](ListMailMessagesResponseAllOfData.md) | The array of mail messages | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ListMailMessagesResponseAllOfData.md b/docs/ListMailMessagesResponseAllOfData.md deleted file mode 100644 index 7957a7a0..00000000 --- a/docs/ListMailMessagesResponseAllOfData.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ListMailMessagesResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | **String** | The type of the data item | [optional] -**timestamp** | **String** | The date and time when the item was created | [optional] -**data** | [**MailMessageItemForList**](MailMessageItemForList.md) | | [optional] - - diff --git a/docs/ListPermittedUsersResponse.md b/docs/ListPermittedUsersResponse.md deleted file mode 100644 index 7edd1623..00000000 --- a/docs/ListPermittedUsersResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ListPermittedUsersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] - - diff --git a/docs/ListPermittedUsersResponse1.md b/docs/ListPermittedUsersResponse1.md deleted file mode 100644 index f8b95475..00000000 --- a/docs/ListPermittedUsersResponse1.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ListPermittedUsersResponse1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | **[Number]** | The list of permitted user IDs | [optional] - - diff --git a/docs/ListPermittedUsersResponse1AllOf.md b/docs/ListPermittedUsersResponse1AllOf.md deleted file mode 100644 index 654ca601..00000000 --- a/docs/ListPermittedUsersResponse1AllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ListPermittedUsersResponse1AllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **[Number]** | The list of permitted user IDs | [optional] - - diff --git a/docs/ListPermittedUsersResponse2.md b/docs/ListPermittedUsersResponse2.md deleted file mode 100644 index b89da026..00000000 --- a/docs/ListPermittedUsersResponse2.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ListPermittedUsersResponse2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | **[Number]** | The list of permitted Users IDs | [optional] - - diff --git a/docs/ListPermittedUsersResponse2AllOf.md b/docs/ListPermittedUsersResponse2AllOf.md deleted file mode 100644 index 48cd75cd..00000000 --- a/docs/ListPermittedUsersResponse2AllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ListPermittedUsersResponse2AllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **[Number]** | The list of permitted Users IDs | [optional] - - diff --git a/docs/ListPermittedUsersResponseAllOf.md b/docs/ListPermittedUsersResponseAllOf.md deleted file mode 100644 index 8c479e40..00000000 --- a/docs/ListPermittedUsersResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ListPermittedUsersResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ListPermittedUsersResponseAllOfData**](ListPermittedUsersResponseAllOfData.md) | | [optional] - - diff --git a/docs/ListPermittedUsersResponseAllOfData.md b/docs/ListPermittedUsersResponseAllOfData.md deleted file mode 100644 index a922a194..00000000 --- a/docs/ListPermittedUsersResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ListPermittedUsersResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | The list of permitted users IDs | [optional] - - diff --git a/docs/ListPersonProductsResponse.md b/docs/ListPersonProductsResponse.md deleted file mode 100644 index 13d318af..00000000 --- a/docs/ListPersonProductsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ListPersonProductsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ListPersonProductsResponseAllOfData]**](ListPersonProductsResponseAllOfData.md) | The array of deal products | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/ListPersonProductsResponseAllOf.md b/docs/ListPersonProductsResponseAllOf.md deleted file mode 100644 index 4e5388cb..00000000 --- a/docs/ListPersonProductsResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ListPersonProductsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ListPersonProductsResponseAllOfData]**](ListPersonProductsResponseAllOfData.md) | The array of deal products | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/ListPersonProductsResponseAllOfDEALID.md b/docs/ListPersonProductsResponseAllOfDEALID.md deleted file mode 100644 index 8a625282..00000000 --- a/docs/ListPersonProductsResponseAllOfDEALID.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ListPersonProductsResponseAllOfDEALID - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**deal** | [**ProductBaseDeal**](ProductBaseDeal.md) | | [optional] -**product** | [**PersonListProduct**](PersonListProduct.md) | | [optional] - - diff --git a/docs/ListPersonProductsResponseAllOfData.md b/docs/ListPersonProductsResponseAllOfData.md deleted file mode 100644 index 5b7c4525..00000000 --- a/docs/ListPersonProductsResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ListPersonProductsResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DEAL_ID** | [**ListPersonProductsResponseAllOfDEALID**](ListPersonProductsResponseAllOfDEALID.md) | | [optional] - - diff --git a/docs/ListPersonsResponse.md b/docs/ListPersonsResponse.md deleted file mode 100644 index f5dd4729..00000000 --- a/docs/ListPersonsResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ListPersonsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[PersonItem]**](PersonItem.md) | The array of persons | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**ListPersonsResponseAllOfRelatedObjects**](ListPersonsResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/ListPersonsResponseAllOf.md b/docs/ListPersonsResponseAllOf.md deleted file mode 100644 index 38754e82..00000000 --- a/docs/ListPersonsResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ListPersonsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PersonItem]**](PersonItem.md) | The array of persons | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**ListPersonsResponseAllOfRelatedObjects**](ListPersonsResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/ListPersonsResponseAllOfRelatedObjects.md b/docs/ListPersonsResponseAllOfRelatedObjects.md deleted file mode 100644 index 76a45792..00000000 --- a/docs/ListPersonsResponseAllOfRelatedObjects.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ListPersonsResponseAllOfRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization** | [**RelatedOrganizationDataWithActiveFlag**](RelatedOrganizationDataWithActiveFlag.md) | | [optional] -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] - - diff --git a/docs/ListProductAdditionalData.md b/docs/ListProductAdditionalData.md deleted file mode 100644 index 95eb60dd..00000000 --- a/docs/ListProductAdditionalData.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.ListProductAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**products_quantity_total** | **Number** | The total quantity of the products | [optional] -**products_sum_total** | **Number** | The total sum of the products | [optional] -**products_quantity_total_formatted** | **String** | The total formatted quantity of the products | [optional] -**products_sum_total_formatted** | **String** | The total formatted sum of the products | [optional] -**pagination** | [**ItemSearchAdditionalDataPagination**](ItemSearchAdditionalDataPagination.md) | | [optional] - - diff --git a/docs/ListProductAdditionalDataAllOf.md b/docs/ListProductAdditionalDataAllOf.md deleted file mode 100644 index 0b2b7c50..00000000 --- a/docs/ListProductAdditionalDataAllOf.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ListProductAdditionalDataAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**products_quantity_total** | **Number** | The total quantity of the products | [optional] -**products_sum_total** | **Number** | The total sum of the products | [optional] -**products_quantity_total_formatted** | **String** | The total formatted quantity of the products | [optional] -**products_sum_total_formatted** | **String** | The total formatted sum of the products | [optional] - - diff --git a/docs/ListProductFilesResponse.md b/docs/ListProductFilesResponse.md deleted file mode 100644 index 1e2c3417..00000000 --- a/docs/ListProductFilesResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ListProductFilesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ProductFileItem]**](ProductFileItem.md) | The array of files | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ListProductFilesResponseAllOf.md b/docs/ListProductFilesResponseAllOf.md deleted file mode 100644 index 15d73167..00000000 --- a/docs/ListProductFilesResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ListProductFilesResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ProductFileItem]**](ProductFileItem.md) | The array of files | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ListProductFollowersResponse.md b/docs/ListProductFollowersResponse.md deleted file mode 100644 index 8c19e8b7..00000000 --- a/docs/ListProductFollowersResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ListProductFollowersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ListProductFollowersResponseAllOfData]**](ListProductFollowersResponseAllOfData.md) | The list of followers | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ListProductFollowersResponseAllOf.md b/docs/ListProductFollowersResponseAllOf.md deleted file mode 100644 index 3c78d0d9..00000000 --- a/docs/ListProductFollowersResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ListProductFollowersResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ListProductFollowersResponseAllOfData]**](ListProductFollowersResponseAllOfData.md) | The list of followers | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ListProductFollowersResponseAllOfData.md b/docs/ListProductFollowersResponseAllOfData.md deleted file mode 100644 index 73b24a99..00000000 --- a/docs/ListProductFollowersResponseAllOfData.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ListProductFollowersResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user | [optional] -**id** | **Number** | The ID of the user follower | [optional] -**product_id** | **Number** | The ID of the product | [optional] -**add_time** | **String** | The date and time when the follower was added to the person | [optional] - - diff --git a/docs/ListProductsResponse.md b/docs/ListProductsResponse.md deleted file mode 100644 index 78312dd6..00000000 --- a/docs/ListProductsResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ListProductsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ProductListItem]**](ProductListItem.md) | The array of products | [optional] -**additional_data** | [**ListProductAdditionalData**](ListProductAdditionalData.md) | | [optional] -**related_objects** | [**ListProductsResponseAllOfRelatedObjects**](ListProductsResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/ListProductsResponseAllOf.md b/docs/ListProductsResponseAllOf.md deleted file mode 100644 index de3385b7..00000000 --- a/docs/ListProductsResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ListProductsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[ProductListItem]**](ProductListItem.md) | The array of products | [optional] -**additional_data** | [**ListProductAdditionalData**](ListProductAdditionalData.md) | | [optional] -**related_objects** | [**ListProductsResponseAllOfRelatedObjects**](ListProductsResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/ListProductsResponseAllOfData.md b/docs/ListProductsResponseAllOfData.md deleted file mode 100644 index 7cb808f2..00000000 --- a/docs/ListProductsResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ListProductsResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**[ProductListItem]**](ProductListItem.md) | The array of products | [optional] - - diff --git a/docs/ListProductsResponseAllOfRelatedObjects.md b/docs/ListProductsResponseAllOfRelatedObjects.md deleted file mode 100644 index 46a4d625..00000000 --- a/docs/ListProductsResponseAllOfRelatedObjects.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ListProductsResponseAllOfRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] - - diff --git a/docs/MailMessage.md b/docs/MailMessage.md deleted file mode 100644 index f80b5cfd..00000000 --- a/docs/MailMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.MailMessage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**statusCode** | **Number** | The email service specific status code and it is returned through the response body. | [optional] -**statusText** | **String** | The status text of the response. | [optional] -**service** | **String** | The service name of the response. | [optional] -**data** | [**MailMessageData**](MailMessageData.md) | | [optional] - - diff --git a/docs/MailMessageAllOf.md b/docs/MailMessageAllOf.md deleted file mode 100644 index 0c855fd5..00000000 --- a/docs/MailMessageAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.MailMessageAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MailMessageData**](MailMessageData.md) | | [optional] - - diff --git a/docs/MailMessageData.md b/docs/MailMessageData.md deleted file mode 100644 index eedabe90..00000000 --- a/docs/MailMessageData.md +++ /dev/null @@ -1,47 +0,0 @@ -# Pipedrive.MailMessageData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | ID of the mail message. | [optional] -**from** | [**[MailParticipant]**](MailParticipant.md) | The array of mail message sender (object) | [optional] -**to** | [**[MailParticipant]**](MailParticipant.md) | The array of mail message receiver (object) | [optional] -**cc** | [**[MailParticipant]**](MailParticipant.md) | The array of mail message copies (object) | [optional] -**bcc** | [**[MailParticipant]**](MailParticipant.md) | The array of mail message blind copies (object) | [optional] -**body_url** | **String** | The mail message body URL | [optional] -**account_id** | **String** | The connection account ID | [optional] -**user_id** | **Number** | ID of the user whom mail message will be assigned to | [optional] -**mail_thread_id** | **Number** | ID of the mail message thread | [optional] -**subject** | **String** | The subject of mail message | [optional] -**snippet** | **String** | The snippet of mail message. Snippet length is up to 225 characters. | [optional] -**mail_tracking_status** | **String** | The status of tracking mail message. Value is `null` if tracking is not enabled. | [optional] -**mail_link_tracking_enabled_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the link tracking in mail message body is enabled. | [optional] -**read_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message is read or not by the user | [optional] -**draft** | **String** | If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. | [optional] -**draft_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message is a draft or not | [optional] -**synced_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message is synced with the provider or not | [optional] -**deleted_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message is deleted or not | [optional] -**has_body_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has a body or not | [optional] -**sent_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has been sent or not | [optional] -**sent_from_pipedrive_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has been sent from Pipedrive app or not | [optional] -**smart_bcc_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has been created by Smart Email BCC feature or not | [optional] -**message_time** | **Date** | Creation or receival time of the mail message | [optional] -**add_time** | **Date** | The insertion into the database time of the mail message | [optional] -**update_time** | **Date** | The updating time in the database of the mail message | [optional] -**has_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has an attachment or not | [optional] -**has_inline_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has an inline attachment or not | [optional] -**has_real_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has an attachment (which is not inline) or not | [optional] - - - -## Enum: MailTrackingStatusEnum - - -* `opened` (value: `"opened"`) - -* `not opened` (value: `"not opened"`) - - - - diff --git a/docs/MailMessageItemForList.md b/docs/MailMessageItemForList.md deleted file mode 100644 index a945a8b9..00000000 --- a/docs/MailMessageItemForList.md +++ /dev/null @@ -1,56 +0,0 @@ -# Pipedrive.MailMessageItemForList - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | ID of the mail message. | [optional] -**from** | [**[MailParticipant]**](MailParticipant.md) | The array of mail message sender (object) | [optional] -**to** | [**[MailParticipant]**](MailParticipant.md) | The array of mail message receiver (object) | [optional] -**cc** | [**[MailParticipant]**](MailParticipant.md) | The array of mail message copies (object) | [optional] -**bcc** | [**[MailParticipant]**](MailParticipant.md) | The array of mail message blind copies (object) | [optional] -**body_url** | **String** | The mail message body URL | [optional] -**account_id** | **String** | The connection account ID | [optional] -**user_id** | **Number** | ID of the user whom mail message will be assigned to | [optional] -**mail_thread_id** | **Number** | ID of the mail message thread | [optional] -**subject** | **String** | The subject of mail message | [optional] -**snippet** | **String** | The snippet of mail message. Snippet length is up to 225 characters. | [optional] -**mail_tracking_status** | **String** | The status of tracking mail message. Value is `null` if tracking is not enabled. | [optional] -**mail_link_tracking_enabled_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the link tracking in mail message body is enabled. | [optional] -**read_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message is read or not by the user | [optional] -**draft** | **String** | If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. | [optional] -**draft_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message is a draft or not | [optional] -**synced_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message is synced with the provider or not | [optional] -**deleted_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message is deleted or not | [optional] -**has_body_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has a body or not | [optional] -**sent_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has been sent or not | [optional] -**sent_from_pipedrive_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has been sent from Pipedrive app or not | [optional] -**smart_bcc_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has been created by Smart Email BCC feature or not | [optional] -**message_time** | **Date** | Creation or receival time of the mail message | [optional] -**add_time** | **Date** | The insertion into the database time of the mail message | [optional] -**update_time** | **Date** | The updating time in the database of the mail message | [optional] -**has_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has an attachment or not | [optional] -**has_inline_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has an inline attachment or not | [optional] -**has_real_attachments_flag** | [**NumberBooleanDefault0**](NumberBooleanDefault0.md) | Whether the mail message has an attachment (which is not inline) or not | [optional] -**nylas_id** | **String** | The Mail Message ID assigned by the sync provider | [optional] -**s3_bucket** | **String** | The name of the S3 bucket | [optional] -**s3_bucket_path** | **String** | The path of the S3 bucket | [optional] -**external_deleted_flag** | **Boolean** | If the Mail Message has been deleted on the provider side or not | [optional] -**mua_message_id** | **String** | The Mail Message ID assigned by the mail user agent | [optional] -**template_id** | **Number** | The ID of the mail template | [optional] -**timestamp** | **String** | The add date and time of the Mail Message | [optional] -**item_type** | **String** | The type of the data item | [optional] -**company_id** | **Number** | The ID of the company | [optional] - - - -## Enum: MailTrackingStatusEnum - - -* `opened` (value: `"opened"`) - -* `not opened` (value: `"not opened"`) - - - - diff --git a/docs/MailMessageItemForListAllOf.md b/docs/MailMessageItemForListAllOf.md deleted file mode 100644 index 164bd2e2..00000000 --- a/docs/MailMessageItemForListAllOf.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.MailMessageItemForListAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nylas_id** | **String** | The Mail Message ID assigned by the sync provider | [optional] -**s3_bucket** | **String** | The name of the S3 bucket | [optional] -**s3_bucket_path** | **String** | The path of the S3 bucket | [optional] -**external_deleted_flag** | **Boolean** | If the Mail Message has been deleted on the provider side or not | [optional] -**mua_message_id** | **String** | The Mail Message ID assigned by the mail user agent | [optional] -**template_id** | **Number** | The ID of the mail template | [optional] -**timestamp** | **String** | The add date and time of the Mail Message | [optional] -**item_type** | **String** | The type of the data item | [optional] -**company_id** | **Number** | The ID of the company | [optional] - - diff --git a/docs/MailParticipant.md b/docs/MailParticipant.md deleted file mode 100644 index c7839f1b..00000000 --- a/docs/MailParticipant.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.MailParticipant - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | ID of the mail participant | [optional] -**email_address** | **String** | Mail address of the mail participant | [optional] -**name** | **String** | Name of the mail participant | [optional] -**linked_person_id** | **Number** | ID of the linked person to the mail message | [optional] -**linked_person_name** | **String** | Name of the linked person to the mail message | [optional] -**mail_message_party_id** | **Number** | ID of the mail message participant | [optional] - - diff --git a/docs/MailServiceBaseResponse.md b/docs/MailServiceBaseResponse.md deleted file mode 100644 index cc6705d1..00000000 --- a/docs/MailServiceBaseResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.MailServiceBaseResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**statusCode** | **Number** | The email service specific status code and it is returned through the response body. | [optional] -**statusText** | **String** | The status text of the response. | [optional] -**service** | **String** | The service name of the response. | [optional] - - diff --git a/docs/MailThread.md b/docs/MailThread.md deleted file mode 100644 index 4cc1a596..00000000 --- a/docs/MailThread.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.MailThread - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[BaseMailThread]**](BaseMailThread.md) | The array of mail threads | [optional] - - diff --git a/docs/MailThreadAllOf.md b/docs/MailThreadAllOf.md deleted file mode 100644 index 402ade6f..00000000 --- a/docs/MailThreadAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.MailThreadAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[BaseMailThread]**](BaseMailThread.md) | The array of mail threads | [optional] - - diff --git a/docs/MailThreadDelete.md b/docs/MailThreadDelete.md deleted file mode 100644 index 94dac889..00000000 --- a/docs/MailThreadDelete.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.MailThreadDelete - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**MailThreadDeleteAllOfData**](MailThreadDeleteAllOfData.md) | | [optional] - - diff --git a/docs/MailThreadDeleteAllOf.md b/docs/MailThreadDeleteAllOf.md deleted file mode 100644 index bd95333c..00000000 --- a/docs/MailThreadDeleteAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.MailThreadDeleteAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MailThreadDeleteAllOfData**](MailThreadDeleteAllOfData.md) | | [optional] - - diff --git a/docs/MailThreadDeleteAllOfData.md b/docs/MailThreadDeleteAllOfData.md deleted file mode 100644 index 0168df71..00000000 --- a/docs/MailThreadDeleteAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.MailThreadDeleteAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deleted mail thread | [optional] - - diff --git a/docs/MailThreadMessages.md b/docs/MailThreadMessages.md deleted file mode 100644 index 10c79c34..00000000 --- a/docs/MailThreadMessages.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.MailThreadMessages - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[BaseMailThreadMessages]**](BaseMailThreadMessages.md) | The array of the mail messages of the mail thread | [optional] - - diff --git a/docs/MailThreadMessagesAllOf.md b/docs/MailThreadMessagesAllOf.md deleted file mode 100644 index b92f3f9c..00000000 --- a/docs/MailThreadMessagesAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.MailThreadMessagesAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[BaseMailThreadMessages]**](BaseMailThreadMessages.md) | The array of the mail messages of the mail thread | [optional] - - diff --git a/docs/MailThreadOne.md b/docs/MailThreadOne.md deleted file mode 100644 index 50c6a718..00000000 --- a/docs/MailThreadOne.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.MailThreadOne - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BaseMailThread**](BaseMailThread.md) | The mail thread object | [optional] - - diff --git a/docs/MailThreadOneAllOf.md b/docs/MailThreadOneAllOf.md deleted file mode 100644 index 743a30f4..00000000 --- a/docs/MailThreadOneAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.MailThreadOneAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BaseMailThread**](BaseMailThread.md) | The mail thread object | [optional] - - diff --git a/docs/MailThreadParticipant.md b/docs/MailThreadParticipant.md deleted file mode 100644 index cb0f5f91..00000000 --- a/docs/MailThreadParticipant.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.MailThreadParticipant - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | ID of the mail thread participant | [optional] -**name** | **String** | Name of the mail thread participant | [optional] -**latest_sent** | **Boolean** | Whether the mail thread participant was last to send an email | [optional] -**email_address** | **String** | Email address of the mail thread participant | [optional] -**message_time** | **Number** | Message time | [optional] -**linked_person_id** | **Number** | ID of the linked person | [optional] -**linked_person_name** | **String** | Email of the linked person | [optional] -**mail_message_party_id** | **Number** | ID of the mail message party | [optional] -**linked_organization_id** | **Number** | Linked Organization ID | [optional] - - diff --git a/docs/MailThreadPut.md b/docs/MailThreadPut.md deleted file mode 100644 index 91eb1fa4..00000000 --- a/docs/MailThreadPut.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.MailThreadPut - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BaseMailThread**](BaseMailThread.md) | | [optional] - - diff --git a/docs/MailThreadPutAllOf.md b/docs/MailThreadPutAllOf.md deleted file mode 100644 index 74905210..00000000 --- a/docs/MailThreadPutAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.MailThreadPutAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BaseMailThread**](BaseMailThread.md) | | [optional] - - diff --git a/docs/MailboxApi.md b/docs/MailboxApi.md deleted file mode 100644 index 65f6f5d2..00000000 --- a/docs/MailboxApi.md +++ /dev/null @@ -1,357 +0,0 @@ -# Pipedrive.MailboxApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteMailThread**](MailboxApi.md#deleteMailThread) | **DELETE** /mailbox/mailThreads/{id} | Delete mail thread -[**getMailMessage**](MailboxApi.md#getMailMessage) | **GET** /mailbox/mailMessages/{id} | Get one mail message -[**getMailThread**](MailboxApi.md#getMailThread) | **GET** /mailbox/mailThreads/{id} | Get one mail thread -[**getMailThreadMessages**](MailboxApi.md#getMailThreadMessages) | **GET** /mailbox/mailThreads/{id}/mailMessages | Get all mail messages of mail thread -[**getMailThreads**](MailboxApi.md#getMailThreads) | **GET** /mailbox/mailThreads | Get mail threads -[**updateMailThreadDetails**](MailboxApi.md#updateMailThreadDetails) | **PUT** /mailbox/mailThreads/{id} | Update mail thread details - - - -## deleteMailThread - -> MailThreadDelete deleteMailThread(id) - -Delete mail thread - -Marks a mail thread as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.MailboxApi(apiClient); -let id = 56; // Number | The ID of the mail thread -apiInstance.deleteMailThread(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the mail thread | - -### Return type - -[**MailThreadDelete**](MailThreadDelete.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getMailMessage - -> MailMessage getMailMessage(id, opts) - -Get one mail message - -Returns data about a specific mail message. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.MailboxApi(apiClient); -let id = 56; // Number | The ID of the mail message to fetch -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'includeBody': new Pipedrive.NumberBooleanDefault0() // NumberBooleanDefault0 | Whether to include the full message body or not. `0` = Don't include, `1` = Include. -}; -apiInstance.getMailMessage(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the mail message to fetch | - **include_body** | [**NumberBooleanDefault0**](.md)| Whether to include the full message body or not. `0` = Don't include, `1` = Include. | [optional] - -### Return type - -[**MailMessage**](MailMessage.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getMailThread - -> MailThreadOne getMailThread(id) - -Get one mail thread - -Returns a specific mail thread. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.MailboxApi(apiClient); -let id = 56; // Number | The ID of the mail thread -apiInstance.getMailThread(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the mail thread | - -### Return type - -[**MailThreadOne**](MailThreadOne.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getMailThreadMessages - -> MailThreadMessages getMailThreadMessages(id) - -Get all mail messages of mail thread - -Returns all the mail messages inside a specified mail thread. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.MailboxApi(apiClient); -let id = 56; // Number | The ID of the mail thread -apiInstance.getMailThreadMessages(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the mail thread | - -### Return type - -[**MailThreadMessages**](MailThreadMessages.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getMailThreads - -> MailThread getMailThreads(folder, opts) - -Get mail threads - -Returns mail threads in a specified folder ordered by the most recent message within. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.MailboxApi(apiClient); -let folder = "'inbox'"; // String | The type of folder to fetch -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getMailThreads(folder, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **folder** | **String**| The type of folder to fetch | [default to 'inbox'] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**MailThread**](MailThread.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateMailThreadDetails - -> MailThreadPut updateMailThreadDetails(id, opts) - -Update mail thread details - -Updates the properties of a mail thread. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.MailboxApi(apiClient); -let id = 56; // Number | The ID of the mail thread -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'dealId': 56, // Number | The ID of the deal this thread is associated with - 'leadId': "leadId_example", // String | The ID of the lead this thread is associated with - 'sharedFlag': new Pipedrive.NumberBoolean(), // NumberBoolean | Whether this thread is shared with other users in your company - 'readFlag': new Pipedrive.NumberBoolean(), // NumberBoolean | Whether this thread is read or unread - 'archivedFlag': new Pipedrive.NumberBoolean() // NumberBoolean | Whether this thread is archived or not. You can only archive threads that belong to Inbox folder. Archived threads will disappear from Inbox. -}; -apiInstance.updateMailThreadDetails(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the mail thread | - **deal_id** | **Number**| The ID of the deal this thread is associated with | [optional] - **lead_id** | **String**| The ID of the lead this thread is associated with | [optional] - **shared_flag** | [**NumberBoolean**](NumberBoolean.md)| Whether this thread is shared with other users in your company | [optional] - **read_flag** | [**NumberBoolean**](NumberBoolean.md)| Whether this thread is read or unread | [optional] - **archived_flag** | [**NumberBoolean**](NumberBoolean.md)| Whether this thread is archived or not. You can only archive threads that belong to Inbox folder. Archived threads will disappear from Inbox. | [optional] - -### Return type - -[**MailThreadPut**](MailThreadPut.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/x-www-form-urlencoded -- **Accept**: application/json - diff --git a/docs/MarketingStatus.md b/docs/MarketingStatus.md deleted file mode 100644 index 8bbb30cb..00000000 --- a/docs/MarketingStatus.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.MarketingStatus - -## Enum - - -* `no_consent` (value: `"no_consent"`) - -* `unsubscribed` (value: `"unsubscribed"`) - -* `subscribed` (value: `"subscribed"`) - -* `archived` (value: `"archived"`) - - diff --git a/docs/MeetingsApi.md b/docs/MeetingsApi.md deleted file mode 100644 index 75b94935..00000000 --- a/docs/MeetingsApi.md +++ /dev/null @@ -1,118 +0,0 @@ -# Pipedrive.MeetingsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteUserProviderLink**](MeetingsApi.md#deleteUserProviderLink) | **DELETE** /meetings/userProviderLinks/{id} | Delete the link between a user and the installed video call integration -[**saveUserProviderLink**](MeetingsApi.md#saveUserProviderLink) | **POST** /meetings/userProviderLinks | Link a user with the installed video call integration - - - -## deleteUserProviderLink - -> UserProviderLinkSuccessResponse deleteUserProviderLink(id) - -Delete the link between a user and the installed video call integration - -A video calling provider must call this endpoint to remove the link between a user and the installed video calling app. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.MeetingsApi(apiClient); -let id = "id_example"; // String | Unique identifier linking a user to the installed integration -apiInstance.deleteUserProviderLink(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| Unique identifier linking a user to the installed integration | - -### Return type - -[**UserProviderLinkSuccessResponse**](UserProviderLinkSuccessResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## saveUserProviderLink - -> UserProviderLinkSuccessResponse saveUserProviderLink(opts) - -Link a user with the installed video call integration - -A video calling provider must call this endpoint after a user has installed the video calling app so that the new user's information is sent. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.MeetingsApi(apiClient); -let opts = Pipedrive.UserProviderLinkCreateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.saveUserProviderLink(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **UserProviderLinkCreateRequest** | [**UserProviderLinkCreateRequest**](UserProviderLinkCreateRequest.md)| | [optional] - -### Return type - -[**UserProviderLinkSuccessResponse**](UserProviderLinkSuccessResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/MergeDealsRequest.md b/docs/MergeDealsRequest.md deleted file mode 100644 index 5411bdb4..00000000 --- a/docs/MergeDealsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.MergeDealsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merge_with_id** | **Number** | The ID of the deal that the deal will be merged with | - - diff --git a/docs/MergeOrganizationsRequest.md b/docs/MergeOrganizationsRequest.md deleted file mode 100644 index e123eab2..00000000 --- a/docs/MergeOrganizationsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.MergeOrganizationsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merge_with_id** | **Number** | The ID of the organization that the organization will be merged with | - - diff --git a/docs/MergePersonDealRelatedInfo.md b/docs/MergePersonDealRelatedInfo.md deleted file mode 100644 index e10b0698..00000000 --- a/docs/MergePersonDealRelatedInfo.md +++ /dev/null @@ -1,23 +0,0 @@ -# Pipedrive.MergePersonDealRelatedInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] -**participant_open_deals_count** | **Number** | The count of open participant deals related with the item | [optional] -**participant_closed_deals_count** | **Number** | The count of closed participant deals related with the item | [optional] - - diff --git a/docs/MergePersonItem.md b/docs/MergePersonItem.md deleted file mode 100644 index 155db4ad..00000000 --- a/docs/MergePersonItem.md +++ /dev/null @@ -1,53 +0,0 @@ -# Pipedrive.MergePersonItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the person | [optional] -**company_id** | **Number** | The ID of the company related to the person | [optional] -**active_flag** | **Boolean** | Whether the person is active or not | [optional] -**phone** | [**[BasePersonItemPhone]**](BasePersonItemPhone.md) | A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. | [optional] -**email** | [**[BasePersonItemEmail]**](BasePersonItemEmail.md) | An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" } ]`. Please note that only `value` is required. | [optional] -**first_char** | **String** | The first letter of the name of the person | [optional] -**add_time** | **String** | The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS | [optional] -**update_time** | **String** | The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS | [optional] -**visible_to** | **String** | The visibility group ID of who can see the person | [optional] -**picture_id** | [**PictureDataWithID**](PictureDataWithID.md) | | [optional] -**label** | **Number** | The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**org_name** | **String** | The name of the organization associated with the person | [optional] -**owner_name** | **String** | The name of the owner associated with the person | [optional] -**cc_email** | **String** | The BCC email associated with the person | [optional] -**owner_id** | **Number** | The ID of the owner related to the person | [optional] -**org_id** | **Number** | The ID of the organization related to the person | [optional] -**merge_what_id** | **Number** | The ID of the person with what the main person was merged | [optional] -**name** | **String** | The name of the person | [optional] -**first_name** | **String** | The first name of the person | [optional] -**last_name** | **String** | The last name of the person | [optional] -**email_messages_count** | **Number** | The count of email messages related to the person | [optional] -**activities_count** | **Number** | The count of activities related to the person | [optional] -**done_activities_count** | **Number** | The count of done activities related to the person | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the person | [optional] -**files_count** | **Number** | The count of files related to the person | [optional] -**notes_count** | **Number** | The count of notes related to the person | [optional] -**followers_count** | **Number** | The count of followers related to the person | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the person | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the person | [optional] -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] -**participant_open_deals_count** | **Number** | The count of open participant deals related with the item | [optional] -**participant_closed_deals_count** | **Number** | The count of closed participant deals related with the item | [optional] - - diff --git a/docs/MergePersonsRequest.md b/docs/MergePersonsRequest.md deleted file mode 100644 index 917130b6..00000000 --- a/docs/MergePersonsRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.MergePersonsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**merge_with_id** | **Number** | The ID of the person that will not be overwritten. This person’s data will be prioritized in case of conflict with the other person. | - - diff --git a/docs/MergePersonsResponse.md b/docs/MergePersonsResponse.md deleted file mode 100644 index 867e58a6..00000000 --- a/docs/MergePersonsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.MergePersonsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**MergePersonItem**](MergePersonItem.md) | | [optional] - - diff --git a/docs/MergePersonsResponseAllOf.md b/docs/MergePersonsResponseAllOf.md deleted file mode 100644 index f401508a..00000000 --- a/docs/MergePersonsResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.MergePersonsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MergePersonItem**](MergePersonItem.md) | | [optional] - - diff --git a/docs/MessageObject.md b/docs/MessageObject.md deleted file mode 100644 index aee97c93..00000000 --- a/docs/MessageObject.md +++ /dev/null @@ -1,33 +0,0 @@ -# Pipedrive.MessageObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The ID of the message | -**channel_id** | **String** | The channel ID as in the provider | -**sender_id** | **String** | The ID of the provider's user that sent the message | -**conversation_id** | **String** | The ID of the conversation | -**message** | **String** | The body of the message | -**status** | **String** | The status of the message | -**created_at** | **Date** | The date and time when the message was created in the provider, in UTC. Format: YYYY-MM-DD HH:MM | -**reply_by** | **Date** | The date and time when the message can no longer receive a reply, in UTC. Format: YYYY-MM-DD HH:MM | [optional] -**conversation_link** | **String** | A URL that can open the conversation in the provider's side | [optional] -**attachments** | [**[MessageObjectAttachments]**](MessageObjectAttachments.md) | The list of attachments available in the message | [optional] - - - -## Enum: StatusEnum - - -* `sent` (value: `"sent"`) - -* `delivered` (value: `"delivered"`) - -* `read` (value: `"read"`) - -* `failed` (value: `"failed"`) - - - - diff --git a/docs/MessageObjectAttachments.md b/docs/MessageObjectAttachments.md deleted file mode 100644 index 637c5246..00000000 --- a/docs/MessageObjectAttachments.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.MessageObjectAttachments - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The ID of the attachment | -**type** | **String** | The mime-type of the attachment | -**name** | **String** | The name of the attachment | [optional] -**size** | **Number** | The size of the attachment | [optional] -**url** | **String** | A URL to the file | -**preview_url** | **String** | A URL to a preview picture of the file | [optional] -**link_expires** | **Boolean** | If true, it will use the getMessageById endpoint for fetching updated attachment's urls. Find out more [here](https://pipedrive.readme.io/docs/implementing-messaging-app-extension) | [optional] [default to false] - - diff --git a/docs/NameObject.md b/docs/NameObject.md deleted file mode 100644 index 9345e9b6..00000000 --- a/docs/NameObject.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.NameObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the product | [optional] - - diff --git a/docs/NewDeal.md b/docs/NewDeal.md deleted file mode 100644 index 9f39b04f..00000000 --- a/docs/NewDeal.md +++ /dev/null @@ -1,44 +0,0 @@ -# Pipedrive.NewDeal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the deal | -**value** | **String** | The value of the deal. If omitted, value will be set to 0. | [optional] -**label** | **[Number]** | The array of the labels IDs. | [optional] -**currency** | **String** | The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user. | [optional] -**user_id** | **Number** | The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used. | [optional] -**person_id** | **Number** | The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified. | [optional] -**org_id** | **Number** | The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified. | [optional] -**pipeline_id** | **Number** | The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. | [optional] -**stage_id** | **Number** | The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline. | [optional] -**status** | **String** | open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open. | [optional] -**origin_id** | **String** | The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, `origin_id` will be set to null. | [optional] -**channel** | **Number** | The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>. If omitted, channel will be set to null. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null. | [optional] -**add_time** | **String** | The optional creation date & time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS | [optional] -**won_time** | **String** | The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. | [optional] -**lost_time** | **String** | The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. | [optional] -**close_time** | **String** | The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**expected_close_date** | **Date** | The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. | [optional] -**probability** | **Number** | The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. | [optional] -**lost_reason** | **String** | The optional message about why the deal was lost (to be used when status = lost) | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] - - - -## Enum: StatusEnum - - -* `open` (value: `"open"`) - -* `won` (value: `"won"`) - -* `lost` (value: `"lost"`) - -* `deleted` (value: `"deleted"`) - - - - diff --git a/docs/NewDealAllOf.md b/docs/NewDealAllOf.md deleted file mode 100644 index 383f613b..00000000 --- a/docs/NewDealAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.NewDealAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addTime** | **String** | The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS | [optional] - - diff --git a/docs/NewDealParameters.md b/docs/NewDealParameters.md deleted file mode 100644 index f45a7e57..00000000 --- a/docs/NewDealParameters.md +++ /dev/null @@ -1,36 +0,0 @@ -# Pipedrive.NewDealParameters - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **String** | The value of the deal. If omitted, value will be set to 0. | [optional] -**label** | **[Number]** | The array of the labels IDs. | [optional] -**currency** | **String** | The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user. | [optional] -**user_id** | **Number** | The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used. | [optional] -**person_id** | **Number** | The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified. | [optional] -**org_id** | **Number** | The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified. | [optional] -**pipeline_id** | **Number** | The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. | [optional] -**stage_id** | **Number** | The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline. | [optional] -**status** | **String** | open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open. | [optional] -**origin_id** | **String** | The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, `origin_id` will be set to null. | [optional] -**channel** | **Number** | The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>. If omitted, channel will be set to null. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null. | [optional] -**add_time** | **String** | The optional creation date & time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS | [optional] - - - -## Enum: StatusEnum - - -* `open` (value: `"open"`) - -* `won` (value: `"won"`) - -* `lost` (value: `"lost"`) - -* `deleted` (value: `"deleted"`) - - - - diff --git a/docs/NewDealProduct.md b/docs/NewDealProduct.md deleted file mode 100644 index 3150a816..00000000 --- a/docs/NewDealProduct.md +++ /dev/null @@ -1,45 +0,0 @@ -# Pipedrive.NewDealProduct - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_id** | **Number** | The ID of the product to use | [optional] -**item_price** | **Number** | The price at which this product will be added to the deal | [optional] -**quantity** | **Number** | How many items of this product will be added to the deal | [optional] -**discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] -**discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] -**comments** | **String** | A textual comment associated with this product-deal attachment | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**tax_method** | **String** | The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount | [optional] -**enabled_flag** | **Boolean** | Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring | [optional] [default to true] -**billing_frequency** | [**BillingFrequency**](BillingFrequency.md) | | [optional] -**billing_frequency_cycles** | **Number** | Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 | [optional] -**billing_start_date** | **String** | Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future | [optional] - - - -## Enum: DiscountTypeEnum - - -* `percentage` (value: `"percentage"`) - -* `amount` (value: `"amount"`) - - - - - -## Enum: TaxMethodEnum - - -* `exclusive` (value: `"exclusive"`) - -* `inclusive` (value: `"inclusive"`) - -* `none` (value: `"none"`) - - - - diff --git a/docs/NewDealProductAllOf.md b/docs/NewDealProductAllOf.md deleted file mode 100644 index f58a7657..00000000 --- a/docs/NewDealProductAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.NewDealProductAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**billing_frequency** | [**BillingFrequency**](BillingFrequency.md) | | [optional] - - diff --git a/docs/NewDealProductAllOf1.md b/docs/NewDealProductAllOf1.md deleted file mode 100644 index 9606528b..00000000 --- a/docs/NewDealProductAllOf1.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.NewDealProductAllOf1 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**billing_frequency_cycles** | **Number** | Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 | [optional] - - diff --git a/docs/NewDealProductAllOf2.md b/docs/NewDealProductAllOf2.md deleted file mode 100644 index 97093ed0..00000000 --- a/docs/NewDealProductAllOf2.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.NewDealProductAllOf2 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**billing_start_date** | **String** | Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future | [optional] - - diff --git a/docs/NewFollowerResponse.md b/docs/NewFollowerResponse.md deleted file mode 100644 index d91e6ac5..00000000 --- a/docs/NewFollowerResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.NewFollowerResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**NewFollowerResponseData**](NewFollowerResponseData.md) | | [optional] - - diff --git a/docs/NewFollowerResponseData.md b/docs/NewFollowerResponseData.md deleted file mode 100644 index 629dda43..00000000 --- a/docs/NewFollowerResponseData.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.NewFollowerResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user that was added as follower | [optional] -**id** | **Number** | The ID of the follower | [optional] -**product_id** | **Number** | The ID of the product | [optional] -**add_time** | **String** | The follower creation time. Format: YYYY-MM-DD HH:MM:SS | [optional] - - diff --git a/docs/NewGoal.md b/docs/NewGoal.md deleted file mode 100644 index d0db06e8..00000000 --- a/docs/NewGoal.md +++ /dev/null @@ -1,29 +0,0 @@ -# Pipedrive.NewGoal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the goal | [optional] -**assignee** | **Object** | Who this goal is assigned to. It requires the following JSON structure: `{ \"id\": \"1\", \"type\": \"person\" }`. `type` can be either `person`, `company` or `team`. ID of the assignee person, company or team. | -**type** | **Object** | The type of the goal. It requires the following JSON structure: `{ \"name\": \"deals_started\", \"params\": { \"pipeline_id\": [1, 2], \"activity_type_id\": [9] } }`. Type can be one of: `deals_won`, `deals_progressed`, `activities_completed`, `activities_added`, `deals_started` or `revenue_forecast`. `params` can include `pipeline_id`, `stage_id` or `activity_type_id`. `stage_id` is related to only `deals_progressed` type of goals and `activity_type_id` to `activities_completed` or `activities_added` types of goals. The `pipeline_id` and `activity_type_id` need to be given as an array of integers. To track the goal in all pipelines, set `pipeline_id` as `null` and similarly, to track the goal for all activities, set `activity_type_id` as `null`.” | -**expected_outcome** | **Object** | The expected outcome of the goal. Expected outcome can be tracked either by `quantity` or by `sum`. It requires the following JSON structure: `{ \"target\": \"50\", \"tracking_metric\": \"quantity\" }` or `{ \"target\": \"50\", \"tracking_metric\": \"sum\", \"currency_id\": 1 }`. `currency_id` should only be added to `sum` type of goals. | -**duration** | **Object** | The date when the goal starts and ends. It requires the following JSON structure: `{ \"start\": \"2019-01-01\", \"end\": \"2022-12-31\" }`. Date in format of YYYY-MM-DD. \"end\" can be set to `null` for an infinite, open-ended goal. | -**interval** | **String** | The interval of the goal | - - - -## Enum: IntervalEnum - - -* `weekly` (value: `"weekly"`) - -* `monthly` (value: `"monthly"`) - -* `quarterly` (value: `"quarterly"`) - -* `yearly` (value: `"yearly"`) - - - - diff --git a/docs/NewOrganization.md b/docs/NewOrganization.md deleted file mode 100644 index caa0f439..00000000 --- a/docs/NewOrganization.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.NewOrganization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the organization | -**add_time** | **String** | The optional creation date & time of the organization in UTC. Format: YYYY-MM-DD HH:MM:SS | [optional] -**owner_id** | **Number** | The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. | [optional] -**label** | **Number** | The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] - - diff --git a/docs/NewOrganizationAllOf.md b/docs/NewOrganizationAllOf.md deleted file mode 100644 index 676b67db..00000000 --- a/docs/NewOrganizationAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.NewOrganizationAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the organization | -**add_time** | **String** | The optional creation date & time of the organization in UTC. Format: YYYY-MM-DD HH:MM:SS | [optional] - - diff --git a/docs/NewPerson.md b/docs/NewPerson.md deleted file mode 100644 index c42cd761..00000000 --- a/docs/NewPerson.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.NewPerson - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the person | -**owner_id** | **Number** | The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. | [optional] -**org_id** | **Number** | The ID of the organization this person will belong to | [optional] -**email** | [**[BasicPersonEmail]**](BasicPersonEmail.md) | An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. | [optional] -**phone** | [**[BasePersonItemPhone]**](BasePersonItemPhone.md) | A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. | [optional] -**label** | **Number** | The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] -**marketing_status** | [**MarketingStatus**](MarketingStatus.md) | If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_consent`</td><td>The customer has not given consent to receive any marketing communications</td></tr><tr><td>`unsubscribed`</td><td>The customers have unsubscribed from ALL marketing communications</td></tr><tr><td>`subscribed`</td><td>The customers are subscribed and are counted towards marketing caps</td></tr><tr><td>`archived`</td><td>The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for</td></tr></table> | [optional] -**add_time** | **String** | The optional creation date & time of the person in UTC. Format: YYYY-MM-DD HH:MM:SS | [optional] - - diff --git a/docs/NewPersonAllOf.md b/docs/NewPersonAllOf.md deleted file mode 100644 index 3d82d9fb..00000000 --- a/docs/NewPersonAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.NewPersonAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the person | - - diff --git a/docs/NewProductField.md b/docs/NewProductField.md deleted file mode 100644 index 6f416597..00000000 --- a/docs/NewProductField.md +++ /dev/null @@ -1,50 +0,0 @@ -# Pipedrive.NewProductField - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the field | -**options** | **[Object]** | When `field_type` is either `set` or `enum`, possible options must be supplied as a JSON-encoded sequential array, for example:</br>`[{\"label\":\"red\"}, {\"label\":\"blue\"}, {\"label\":\"lilac\"}]` | [optional] -**field_type** | **String** | The type of the field<table><tr><th>Value</th><th>Description</th></tr><tr><td>`varchar`</td><td>Text (up to 255 characters)</td><tr><td>`varchar_auto`</td><td>Autocomplete text (up to 255 characters)</td><tr><td>`text`</td><td>Long text (up to 65k characters)</td><tr><td>`double`</td><td>Numeric value</td><tr><td>`monetary`</td><td>Monetary field (has a numeric value and a currency value)</td><tr><td>`date`</td><td>Date (format YYYY-MM-DD)</td><tr><td>`set`</td><td>Options field with a possibility of having multiple chosen options</td><tr><td>`enum`</td><td>Options field with a single possible chosen option</td><tr><td>`user`</td><td>User field (contains a user ID of another Pipedrive user)</td><tr><td>`org`</td><td>Organization field (contains an organization ID which is stored on the same account)</td><tr><td>`people`</td><td>Person field (contains a product ID which is stored on the same account)</td><tr><td>`phone`</td><td>Phone field (up to 255 numbers and/or characters)</td><tr><td>`time`</td><td>Time field (format HH:MM:SS)</td><tr><td>`timerange`</td><td>Time-range field (has a start time and end time value, both HH:MM:SS)</td><tr><td>`daterange`</td><td>Date-range field (has a start date and end date value, both YYYY-MM-DD)</td><tr><td>`address`</td><td>Address field</dd></table> | - - - -## Enum: FieldTypeEnum - - -* `varchar` (value: `"varchar"`) - -* `varchar_auto` (value: `"varchar_auto"`) - -* `text` (value: `"text"`) - -* `double` (value: `"double"`) - -* `monetary` (value: `"monetary"`) - -* `date` (value: `"date"`) - -* `set` (value: `"set"`) - -* `enum` (value: `"enum"`) - -* `user` (value: `"user"`) - -* `org` (value: `"org"`) - -* `people` (value: `"people"`) - -* `phone` (value: `"phone"`) - -* `time` (value: `"time"`) - -* `timerange` (value: `"timerange"`) - -* `daterange` (value: `"daterange"`) - -* `address` (value: `"address"`) - - - - diff --git a/docs/NewProductFieldAllOf.md b/docs/NewProductFieldAllOf.md deleted file mode 100644 index 45934d62..00000000 --- a/docs/NewProductFieldAllOf.md +++ /dev/null @@ -1,50 +0,0 @@ -# Pipedrive.NewProductFieldAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Name of the field | -**options** | **[Object]** | When `field_type` is either set or enum, possible options must be supplied as a JSON-encoded sequential array, for example: `[\"red\",\"blue\",\"lilac\"]` | [optional] -**fieldType** | **String** | Type of the field<table><tr><th>Value</th><th>Description</th></tr><tr><td>`varchar`</td><td>Text (up to 255 characters)</td><tr><td>`varchar_auto`</td><td>Autocomplete text (up to 255 characters)</td><tr><td>`text`</td><td>Long text (up to 65k characters)</td><tr><td>`double`</td><td>Numeric value</td><tr><td>`monetary`</td><td>Monetary field (has a numeric value and a currency value)</td><tr><td>`date`</td><td>Date (format YYYY-MM-DD)</td><tr><td>`set`</td><td>Options field with a possibility of having multiple chosen options</td><tr><td>`enum`</td><td>Options field with a single possible chosen option</td><tr><td>`user`</td><td>User field (contains a user ID of another Pipedrive user)</td><tr><td>`org`</td><td>Organization field (contains an organization ID which is stored on the same account)</td><tr><td>`people`</td><td>Person field (contains a product ID which is stored on the same account)</td><tr><td>`phone`</td><td>Phone field (up to 255 numbers and/or characters)</td><tr><td>`time`</td><td>Time field (format HH:MM:SS)</td><tr><td>`timerange`</td><td>Time-range field (has a start time and end time value, both HH:MM:SS)</td><tr><td>`daterange`</td><td>Date-range field (has a start date and end date value, both YYYY-MM-DD)</td><tr><td>`address`</td><td>Address field (autocompleted by Google Maps)</dd></table> | - - - -## Enum: FieldTypeEnum - - -* `varchar` (value: `"varchar"`) - -* `varchar_auto` (value: `"varchar_auto"`) - -* `text` (value: `"text"`) - -* `double` (value: `"double"`) - -* `monetary` (value: `"monetary"`) - -* `date` (value: `"date"`) - -* `set` (value: `"set"`) - -* `enum` (value: `"enum"`) - -* `user` (value: `"user"`) - -* `org` (value: `"org"`) - -* `people` (value: `"people"`) - -* `phone` (value: `"phone"`) - -* `time` (value: `"time"`) - -* `timerange` (value: `"timerange"`) - -* `daterange` (value: `"daterange"`) - -* `address` (value: `"address"`) - - - - diff --git a/docs/Note.md b/docs/Note.md deleted file mode 100644 index 1e18c1e0..00000000 --- a/docs/Note.md +++ /dev/null @@ -1,19 +0,0 @@ -# Pipedrive.Note - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **String** | The content of the note in HTML format. Subject to sanitization on the back-end. | [optional] -**lead_id** | **String** | The ID of the lead the note will be attached to | [optional] -**deal_id** | **Number** | The ID of the deal the note will be attached to | [optional] -**person_id** | **Number** | The ID of the person the note will be attached to | [optional] -**org_id** | **Number** | The ID of the organization the note will be attached to | [optional] -**user_id** | **Number** | The ID of the user who will be marked as the author of the note. Only an admin can change the author. | [optional] -**add_time** | **String** | The optional creation date & time of the note in UTC. Can be set in the past or in the future. Format: YYYY-MM-DD HH:MM:SS | [optional] -**pinned_to_lead_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to lead pinning state (`lead_id` is also required) | [optional] -**pinned_to_deal_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to deal pinning state (`deal_id` is also required) | [optional] -**pinned_to_organization_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to organization pinning state (`org_id` is also required) | [optional] -**pinned_to_person_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to person pinning state (`person_id` is also required) | [optional] - - diff --git a/docs/NoteAllOf.md b/docs/NoteAllOf.md deleted file mode 100644 index 2165a8d5..00000000 --- a/docs/NoteAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.NoteAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**content** | **String** | The content of the note in HTML format. Subject to sanitization on the back-end. | [optional] - - diff --git a/docs/NoteConnectToParams.md b/docs/NoteConnectToParams.md deleted file mode 100644 index 5acf9384..00000000 --- a/docs/NoteConnectToParams.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.NoteConnectToParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lead_id** | **String** | The ID of the lead the note will be attached to | [optional] -**deal_id** | **Number** | The ID of the deal the note will be attached to | [optional] -**person_id** | **Number** | The ID of the person the note will be attached to | [optional] -**org_id** | **Number** | The ID of the organization the note will be attached to | [optional] - - diff --git a/docs/NoteCreatorUser.md b/docs/NoteCreatorUser.md deleted file mode 100644 index 1200c108..00000000 --- a/docs/NoteCreatorUser.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.NoteCreatorUser - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **String** | The email of the note creator | [optional] -**icon_url** | **String** | The URL of the note creator avatar picture | [optional] -**is_you** | **Boolean** | Whether the note is created by you or not | [optional] -**name** | **String** | The name of the note creator | [optional] - - diff --git a/docs/NoteField.md b/docs/NoteField.md deleted file mode 100644 index 0d5b7b3c..00000000 --- a/docs/NoteField.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.NoteField - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the field | [optional] -**key** | **String** | The key of the field | [optional] -**name** | **String** | The name of the field | [optional] -**field_type** | [**FieldTypeAsString**](FieldTypeAsString.md) | | [optional] -**active_flag** | **Boolean** | The active flag of the field | [optional] -**edit_flag** | **Boolean** | The edit flag of the field | [optional] -**bulk_edit_allowed** | **Boolean** | Not used | [optional] -**mandatory_flag** | **Boolean** | Whether or not the field is mandatory | [optional] -**options** | [**[NoteFieldOptions]**](NoteFieldOptions.md) | The options of the field. When there are no options, `null` is returned. | [optional] - - diff --git a/docs/NoteFieldOptions.md b/docs/NoteFieldOptions.md deleted file mode 100644 index 236b9aae..00000000 --- a/docs/NoteFieldOptions.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.NoteFieldOptions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**label** | **String** | | [optional] - - diff --git a/docs/NoteFieldsApi.md b/docs/NoteFieldsApi.md deleted file mode 100644 index 056a2473..00000000 --- a/docs/NoteFieldsApi.md +++ /dev/null @@ -1,58 +0,0 @@ -# Pipedrive.NoteFieldsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getNoteFields**](NoteFieldsApi.md#getNoteFields) | **GET** /noteFields | Get all note fields - - - -## getNoteFields - -> NoteFieldsResponse getNoteFields() - -Get all note fields - -Returns data about all note fields. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.NoteFieldsApi(apiClient); -apiInstance.getNoteFields().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**NoteFieldsResponse**](NoteFieldsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/NoteFieldsResponse.md b/docs/NoteFieldsResponse.md deleted file mode 100644 index 5f733500..00000000 --- a/docs/NoteFieldsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.NoteFieldsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[GetNoteField]**](GetNoteField.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/NoteFieldsResponseAllOf.md b/docs/NoteFieldsResponseAllOf.md deleted file mode 100644 index 22ad4435..00000000 --- a/docs/NoteFieldsResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.NoteFieldsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[GetNoteField]**](GetNoteField.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/NoteParams.md b/docs/NoteParams.md deleted file mode 100644 index 6d1e9cd8..00000000 --- a/docs/NoteParams.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.NoteParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user who will be marked as the author of the note. Only an admin can change the author. | [optional] -**add_time** | **String** | The optional creation date & time of the note in UTC. Can be set in the past or in the future. Format: YYYY-MM-DD HH:MM:SS | [optional] -**pinned_to_lead_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to lead pinning state (`lead_id` is also required) | [optional] -**pinned_to_deal_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to deal pinning state (`deal_id` is also required) | [optional] -**pinned_to_organization_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to organization pinning state (`org_id` is also required) | [optional] -**pinned_to_person_flag** | [**NumberBoolean**](NumberBoolean.md) | If set, the results are filtered by note to person pinning state (`person_id` is also required) | [optional] - - diff --git a/docs/NotesApi.md b/docs/NotesApi.md deleted file mode 100644 index 5b5d2f04..00000000 --- a/docs/NotesApi.md +++ /dev/null @@ -1,604 +0,0 @@ -# Pipedrive.NotesApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addNote**](NotesApi.md#addNote) | **POST** /notes | Add a note -[**addNoteComment**](NotesApi.md#addNoteComment) | **POST** /notes/{id}/comments | Add a comment to a note -[**deleteComment**](NotesApi.md#deleteComment) | **DELETE** /notes/{id}/comments/{commentId} | Delete a comment related to a note -[**deleteNote**](NotesApi.md#deleteNote) | **DELETE** /notes/{id} | Delete a note -[**getComment**](NotesApi.md#getComment) | **GET** /notes/{id}/comments/{commentId} | Get one comment -[**getNote**](NotesApi.md#getNote) | **GET** /notes/{id} | Get one note -[**getNoteComments**](NotesApi.md#getNoteComments) | **GET** /notes/{id}/comments | Get all comments for a note -[**getNotes**](NotesApi.md#getNotes) | **GET** /notes | Get all notes -[**updateCommentForNote**](NotesApi.md#updateCommentForNote) | **PUT** /notes/{id}/comments/{commentId} | Update a comment related to a note -[**updateNote**](NotesApi.md#updateNote) | **PUT** /notes/{id} | Update a note - - - -## addNote - -> PostNote addNote(opts) - -Add a note - -Adds a new note. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.NotesApi(apiClient); -let opts = Pipedrive.AddNoteRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addNote(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **AddNoteRequest** | [**AddNoteRequest**](AddNoteRequest.md)| | [optional] - -### Return type - -[**PostNote**](PostNote.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addNoteComment - -> PostComment addNoteComment(id, opts) - -Add a comment to a note - -Adds a new comment to a note. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.NotesApi(apiClient); -let id = 56; // Number | The ID of the note -let opts = Pipedrive.CommentPostPutObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addNoteComment(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the note | - **CommentPostPutObject** | [**CommentPostPutObject**](CommentPostPutObject.md)| | [optional] - -### Return type - -[**PostComment**](PostComment.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteComment - -> DeleteComment deleteComment(id, commentId) - -Delete a comment related to a note - -Deletes a comment. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.NotesApi(apiClient); -let id = 56; // Number | The ID of the note -let commentId = "commentId_example"; // String | The ID of the comment -apiInstance.deleteComment(id, commentId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the note | - **commentId** | **String**| The ID of the comment | - -### Return type - -[**DeleteComment**](DeleteComment.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteNote - -> DeleteNote deleteNote(id) - -Delete a note - -Deletes a specific note. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.NotesApi(apiClient); -let id = 56; // Number | The ID of the note -apiInstance.deleteNote(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the note | - -### Return type - -[**DeleteNote**](DeleteNote.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getComment - -> PostComment getComment(id, commentId) - -Get one comment - -Returns the details of a comment. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.NotesApi(apiClient); -let id = 56; // Number | The ID of the note -let commentId = "commentId_example"; // String | The ID of the comment -apiInstance.getComment(id, commentId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the note | - **commentId** | **String**| The ID of the comment | - -### Return type - -[**PostComment**](PostComment.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getNote - -> PostNote getNote(id) - -Get one note - -Returns details about a specific note. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.NotesApi(apiClient); -let id = 56; // Number | The ID of the note -apiInstance.getNote(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the note | - -### Return type - -[**PostNote**](PostNote.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getNoteComments - -> GetComments getNoteComments(id, opts) - -Get all comments for a note - -Returns all comments associated with a note. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.NotesApi(apiClient); -let id = 56; // Number | The ID of the note -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getNoteComments(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the note | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**GetComments**](GetComments.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getNotes - -> GetNotes getNotes(opts) - -Get all notes - -Returns all notes. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.NotesApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'userId': 56, // Number | The ID of the user whose notes to fetch. If omitted, notes by all users will be returned. - 'leadId': "leadId_example", // String | The ID of the lead which notes to fetch. If omitted, notes about all leads will be returned. - 'dealId': 56, // Number | The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. - 'personId': 56, // Number | The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. - 'orgId': 56, // Number | The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned. - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'sort': "sort_example", // String | 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`, `content`, `add_time`, `update_time`. - 'startDate': new Date("2013-10-20"), // Date | The date in format of YYYY-MM-DD from which notes to fetch - 'endDate': new Date("2013-10-20"), // Date | The date in format of YYYY-MM-DD until which notes to fetch to - 'pinnedToLeadFlag': new Pipedrive.NumberBoolean(), // NumberBoolean | If set, the results are filtered by note to lead pinning state - 'pinnedToDealFlag': new Pipedrive.NumberBoolean(), // NumberBoolean | If set, the results are filtered by note to deal pinning state - 'pinnedToOrganizationFlag': new Pipedrive.NumberBoolean(), // NumberBoolean | If set, the results are filtered by note to organization pinning state - 'pinnedToPersonFlag': new Pipedrive.NumberBoolean() // NumberBoolean | If set, the results are filtered by note to person pinning state -}; -apiInstance.getNotes(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user_id** | **Number**| The ID of the user whose notes to fetch. If omitted, notes by all users will be returned. | [optional] - **lead_id** | **String**| The ID of the lead which notes to fetch. If omitted, notes about all leads will be returned. | [optional] - **deal_id** | **Number**| The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. | [optional] - **person_id** | **Number**| The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. | [optional] - **org_id** | **Number**| The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned. | [optional] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **sort** | **String**| 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`, `content`, `add_time`, `update_time`. | [optional] - **start_date** | **Date**| The date in format of YYYY-MM-DD from which notes to fetch | [optional] - **end_date** | **Date**| The date in format of YYYY-MM-DD until which notes to fetch to | [optional] - **pinned_to_lead_flag** | [**NumberBoolean**](.md)| If set, the results are filtered by note to lead pinning state | [optional] - **pinned_to_deal_flag** | [**NumberBoolean**](.md)| If set, the results are filtered by note to deal pinning state | [optional] - **pinned_to_organization_flag** | [**NumberBoolean**](.md)| If set, the results are filtered by note to organization pinning state | [optional] - **pinned_to_person_flag** | [**NumberBoolean**](.md)| If set, the results are filtered by note to person pinning state | [optional] - -### Return type - -[**GetNotes**](GetNotes.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateCommentForNote - -> PostComment updateCommentForNote(id, commentId, opts) - -Update a comment related to a note - -Updates a comment related to a note. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.NotesApi(apiClient); -let id = 56; // Number | The ID of the note -let commentId = "commentId_example"; // String | The ID of the comment -let opts = Pipedrive.CommentPostPutObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateCommentForNote(id, commentId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the note | - **commentId** | **String**| The ID of the comment | - **CommentPostPutObject** | [**CommentPostPutObject**](CommentPostPutObject.md)| | [optional] - -### Return type - -[**PostComment**](PostComment.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateNote - -> PostNote updateNote(id, opts) - -Update a note - -Updates a note. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.NotesApi(apiClient); -let id = 56; // Number | The ID of the note -let opts = Pipedrive.Note.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateNote(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the note | - **Note** | [**Note**](Note.md)| | [optional] - -### Return type - -[**PostNote**](PostNote.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/NumberBoolean.md b/docs/NumberBoolean.md deleted file mode 100644 index 361e6704..00000000 --- a/docs/NumberBoolean.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.NumberBoolean - -## Enum - - -* `0` (value: `0`) - -* `1` (value: `1`) - - diff --git a/docs/NumberBooleanDefault0.md b/docs/NumberBooleanDefault0.md deleted file mode 100644 index 647066fb..00000000 --- a/docs/NumberBooleanDefault0.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.NumberBooleanDefault0 - -## Enum - - -* `0` (value: `0`) - -* `1` (value: `1`) - - diff --git a/docs/NumberBooleanDefault1.md b/docs/NumberBooleanDefault1.md deleted file mode 100644 index 332bdf0c..00000000 --- a/docs/NumberBooleanDefault1.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.NumberBooleanDefault1 - -## Enum - - -* `0` (value: `0`) - -* `1` (value: `1`) - - diff --git a/docs/ObjectPrices.md b/docs/ObjectPrices.md deleted file mode 100644 index 5b1d0cfa..00000000 --- a/docs/ObjectPrices.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ObjectPrices - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**prices** | **Object** | Object of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) | [optional] - - diff --git a/docs/OneLeadResponse200.md b/docs/OneLeadResponse200.md deleted file mode 100644 index 1eb4da3a..00000000 --- a/docs/OneLeadResponse200.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OneLeadResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**LeadResponse**](LeadResponse.md) | | [optional] - - diff --git a/docs/OptionalNameObject.md b/docs/OptionalNameObject.md deleted file mode 100644 index 4bd73805..00000000 --- a/docs/OptionalNameObject.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OptionalNameObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the product | [optional] - - diff --git a/docs/OrgAndOwnerId.md b/docs/OrgAndOwnerId.md deleted file mode 100644 index 79c7d038..00000000 --- a/docs/OrgAndOwnerId.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrgAndOwnerId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**owner_id** | [**Owner**](Owner.md) | | [optional] -**org_id** | [**RelationshipOrganizationInfoItemWithActiveFlag**](RelationshipOrganizationInfoItemWithActiveFlag.md) | | [optional] - - diff --git a/docs/OrganizationAddressInfo.md b/docs/OrganizationAddressInfo.md deleted file mode 100644 index 27d3152c..00000000 --- a/docs/OrganizationAddressInfo.md +++ /dev/null @@ -1,19 +0,0 @@ -# Pipedrive.OrganizationAddressInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **String** | The full address of the organization | [optional] -**address_subpremise** | **String** | The sub-premise of the organization location | [optional] -**address_street_number** | **String** | The street number of the organization location | [optional] -**address_route** | **String** | The route of the organization location | [optional] -**address_sublocality** | **String** | The sub-locality of the organization location | [optional] -**address_locality** | **String** | The locality of the organization location | [optional] -**address_admin_area_level_1** | **String** | The level 1 admin area of the organization location | [optional] -**address_admin_area_level_2** | **String** | The level 2 admin area of the organization location | [optional] -**address_country** | **String** | The country of the organization location | [optional] -**address_postal_code** | **String** | The postal code of the organization location | [optional] -**address_formatted_address** | **String** | The formatted organization location | [optional] - - diff --git a/docs/OrganizationCountAndAddressInfo.md b/docs/OrganizationCountAndAddressInfo.md deleted file mode 100644 index ad979051..00000000 --- a/docs/OrganizationCountAndAddressInfo.md +++ /dev/null @@ -1,27 +0,0 @@ -# Pipedrive.OrganizationCountAndAddressInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_messages_count** | **Number** | The count of email messages related to the organization | [optional] -**people_count** | **Number** | The count of persons related to the organization | [optional] -**activities_count** | **Number** | The count of activities related to the organization | [optional] -**done_activities_count** | **Number** | The count of done activities related to the organization | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the organization | [optional] -**files_count** | **Number** | The count of files related to the organization | [optional] -**notes_count** | **Number** | The count of notes related to the organization | [optional] -**followers_count** | **Number** | The count of followers related to the organization | [optional] -**address** | **String** | The full address of the organization | [optional] -**address_subpremise** | **String** | The sub-premise of the organization location | [optional] -**address_street_number** | **String** | The street number of the organization location | [optional] -**address_route** | **String** | The route of the organization location | [optional] -**address_sublocality** | **String** | The sub-locality of the organization location | [optional] -**address_locality** | **String** | The locality of the organization location | [optional] -**address_admin_area_level_1** | **String** | The level 1 admin area of the organization location | [optional] -**address_admin_area_level_2** | **String** | The level 2 admin area of the organization location | [optional] -**address_country** | **String** | The country of the organization location | [optional] -**address_postal_code** | **String** | The postal code of the organization location | [optional] -**address_formatted_address** | **String** | The formatted organization location | [optional] - - diff --git a/docs/OrganizationCountInfo.md b/docs/OrganizationCountInfo.md deleted file mode 100644 index 30e522a5..00000000 --- a/docs/OrganizationCountInfo.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.OrganizationCountInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_messages_count** | **Number** | The count of email messages related to the organization | [optional] -**people_count** | **Number** | The count of persons related to the organization | [optional] -**activities_count** | **Number** | The count of activities related to the organization | [optional] -**done_activities_count** | **Number** | The count of done activities related to the organization | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the organization | [optional] -**files_count** | **Number** | The count of files related to the organization | [optional] -**notes_count** | **Number** | The count of notes related to the organization | [optional] -**followers_count** | **Number** | The count of followers related to the organization | [optional] - - diff --git a/docs/OrganizationData.md b/docs/OrganizationData.md deleted file mode 100644 index b7b38d21..00000000 --- a/docs/OrganizationData.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.OrganizationData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the organization associated with the item | [optional] -**people_count** | **Number** | The number of people connected with the organization that is associated with the item | [optional] -**owner_id** | **Number** | The ID of the owner of the organization that is associated with the item | [optional] -**address** | **String** | The address of the organization | [optional] -**cc_email** | **String** | The BCC email of the organization associated with the item | [optional] - - diff --git a/docs/OrganizationDataWithId.md b/docs/OrganizationDataWithId.md deleted file mode 100644 index 27f2b50d..00000000 --- a/docs/OrganizationDataWithId.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.OrganizationDataWithId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization associated with the item | [optional] -**name** | **String** | The name of the organization associated with the item | [optional] -**people_count** | **Number** | The number of people connected with the organization that is associated with the item | [optional] -**owner_id** | **Number** | The ID of the owner of the organization that is associated with the item | [optional] -**address** | **String** | The address of the organization | [optional] -**cc_email** | **String** | The BCC email of the organization associated with the item | [optional] - - diff --git a/docs/OrganizationDataWithIdAllOf.md b/docs/OrganizationDataWithIdAllOf.md deleted file mode 100644 index d3e56340..00000000 --- a/docs/OrganizationDataWithIdAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OrganizationDataWithIdAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization associated with the item | [optional] - - diff --git a/docs/OrganizationDataWithIdAndActiveFlag.md b/docs/OrganizationDataWithIdAndActiveFlag.md deleted file mode 100644 index 8e1a6351..00000000 --- a/docs/OrganizationDataWithIdAndActiveFlag.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.OrganizationDataWithIdAndActiveFlag - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active_flag** | **Boolean** | Whether the associated organization is active or not | [optional] -**id** | **Number** | The ID of the organization associated with the item | [optional] -**name** | **String** | The name of the organization associated with the item | [optional] -**people_count** | **Number** | The number of people connected with the organization that is associated with the item | [optional] -**owner_id** | **Number** | The ID of the owner of the organization that is associated with the item | [optional] -**address** | **String** | The address of the organization | [optional] -**cc_email** | **String** | The BCC email of the organization associated with the item | [optional] - - diff --git a/docs/OrganizationDataWithIdAndActiveFlagAllOf.md b/docs/OrganizationDataWithIdAndActiveFlagAllOf.md deleted file mode 100644 index 3ff99d79..00000000 --- a/docs/OrganizationDataWithIdAndActiveFlagAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OrganizationDataWithIdAndActiveFlagAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active_flag** | **Boolean** | Whether the associated organization is active or not | [optional] - - diff --git a/docs/OrganizationDeleteResponse.md b/docs/OrganizationDeleteResponse.md deleted file mode 100644 index 509b845b..00000000 --- a/docs/OrganizationDeleteResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationDeleteResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**OrganizationDeleteResponseData**](OrganizationDeleteResponseData.md) | | [optional] - - diff --git a/docs/OrganizationDeleteResponseData.md b/docs/OrganizationDeleteResponseData.md deleted file mode 100644 index 00d51631..00000000 --- a/docs/OrganizationDeleteResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OrganizationDeleteResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization that was deleted | [optional] - - diff --git a/docs/OrganizationDetailsGetResponse.md b/docs/OrganizationDetailsGetResponse.md deleted file mode 100644 index d46436c0..00000000 --- a/docs/OrganizationDetailsGetResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.OrganizationDetailsGetResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**OrganizationItem**](OrganizationItem.md) | | [optional] -**additional_data** | [**OrganizationDetailsGetResponseAllOfAdditionalData**](OrganizationDetailsGetResponseAllOfAdditionalData.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationDetailsGetResponseAllOf.md b/docs/OrganizationDetailsGetResponseAllOf.md deleted file mode 100644 index fe6540ba..00000000 --- a/docs/OrganizationDetailsGetResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.OrganizationDetailsGetResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**OrganizationItem**](OrganizationItem.md) | | [optional] -**additional_data** | [**OrganizationDetailsGetResponseAllOfAdditionalData**](OrganizationDetailsGetResponseAllOfAdditionalData.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationDetailsGetResponseAllOfAdditionalData.md b/docs/OrganizationDetailsGetResponseAllOfAdditionalData.md deleted file mode 100644 index 766ca9d5..00000000 --- a/docs/OrganizationDetailsGetResponseAllOfAdditionalData.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationDetailsGetResponseAllOfAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**followers** | [**RelatedFollowerData**](RelatedFollowerData.md) | | [optional] -**dropbox_email** | **String** | Dropbox email for the organization | [optional] - - diff --git a/docs/OrganizationFieldsApi.md b/docs/OrganizationFieldsApi.md deleted file mode 100644 index 2ca3e294..00000000 --- a/docs/OrganizationFieldsApi.md +++ /dev/null @@ -1,343 +0,0 @@ -# Pipedrive.OrganizationFieldsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addOrganizationField**](OrganizationFieldsApi.md#addOrganizationField) | **POST** /organizationFields | Add a new organization field -[**deleteOrganizationField**](OrganizationFieldsApi.md#deleteOrganizationField) | **DELETE** /organizationFields/{id} | Delete an organization field -[**deleteOrganizationFields**](OrganizationFieldsApi.md#deleteOrganizationFields) | **DELETE** /organizationFields | Delete multiple organization fields in bulk -[**getOrganizationField**](OrganizationFieldsApi.md#getOrganizationField) | **GET** /organizationFields/{id} | Get one organization field -[**getOrganizationFields**](OrganizationFieldsApi.md#getOrganizationFields) | **GET** /organizationFields | Get all organization fields -[**updateOrganizationField**](OrganizationFieldsApi.md#updateOrganizationField) | **PUT** /organizationFields/{id} | Update an organization field - - - -## addOrganizationField - -> FieldResponse addOrganizationField(opts) - -Add a new organization field - -Adds a new organization field. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-new-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">adding a new custom field</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationFieldsApi(apiClient); -let opts = Pipedrive.FieldCreateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addOrganizationField(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **FieldCreateRequest** | [**FieldCreateRequest**](FieldCreateRequest.md)| | [optional] - -### Return type - -[**FieldResponse**](FieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteOrganizationField - -> DeleteResponse deleteOrganizationField(id) - -Delete an organization field - -Marks a field as deleted. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/deleting-a-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">deleting a custom field</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationFieldsApi(apiClient); -let id = 56; // Number | The ID of the field -apiInstance.deleteOrganizationField(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the field | - -### Return type - -[**DeleteResponse**](DeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteOrganizationFields - -> BulkDeleteResponse deleteOrganizationFields(ids) - -Delete multiple organization fields in bulk - -Marks multiple fields as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationFieldsApi(apiClient); -let ids = "ids_example"; // String | The comma-separated field IDs to delete -apiInstance.deleteOrganizationFields(ids).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ids** | **String**| The comma-separated field IDs to delete | - -### Return type - -[**BulkDeleteResponse**](BulkDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationField - -> FieldResponse getOrganizationField(id) - -Get one organization field - -Returns data about a specific organization field. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationFieldsApi(apiClient); -let id = 56; // Number | The ID of the field -apiInstance.getOrganizationField(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the field | - -### Return type - -[**FieldResponse**](FieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationFields - -> FieldsResponse getOrganizationFields(opts) - -Get all organization fields - -Returns data about all organization fields. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationFieldsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getOrganizationFields(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**FieldsResponse**](FieldsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateOrganizationField - -> FieldResponse updateOrganizationField(id, opts) - -Update an organization field - -Updates an organization field. For more information, see the tutorial for <a href=\" https://pipedrive.readme.io/docs/updating-custom-field-value \" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields' values</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationFieldsApi(apiClient); -let id = 56; // Number | The ID of the field -let opts = Pipedrive.FieldUpdateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateOrganizationField(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the field | - **FieldUpdateRequest** | [**FieldUpdateRequest**](FieldUpdateRequest.md)| | [optional] - -### Return type - -[**FieldResponse**](FieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/OrganizationFlowResponse.md b/docs/OrganizationFlowResponse.md deleted file mode 100644 index 45c2e6a2..00000000 --- a/docs/OrganizationFlowResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.OrganizationFlowResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[OrganizationFlowResponseAllOfData]**](OrganizationFlowResponseAllOfData.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**OrganizationFlowResponseAllOfRelatedObjects**](OrganizationFlowResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationFlowResponseAllOf.md b/docs/OrganizationFlowResponseAllOf.md deleted file mode 100644 index 6896e16e..00000000 --- a/docs/OrganizationFlowResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.OrganizationFlowResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[OrganizationFlowResponseAllOfData]**](OrganizationFlowResponseAllOfData.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**OrganizationFlowResponseAllOfRelatedObjects**](OrganizationFlowResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationFlowResponseAllOfData.md b/docs/OrganizationFlowResponseAllOfData.md deleted file mode 100644 index 514d0084..00000000 --- a/docs/OrganizationFlowResponseAllOfData.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.OrganizationFlowResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | **String** | The type of the person update. (Possible object types - organizationChange, dealChange, file, activity) | [optional] -**timestamp** | **String** | The creation date and time of the update | [optional] -**data** | **Object** | The data related to the update | [optional] - - diff --git a/docs/OrganizationFlowResponseAllOfRelatedObjects.md b/docs/OrganizationFlowResponseAllOfRelatedObjects.md deleted file mode 100644 index 00274cf6..00000000 --- a/docs/OrganizationFlowResponseAllOfRelatedObjects.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationFlowResponseAllOfRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organization** | [**RelatedOrganizationData**](RelatedOrganizationData.md) | | [optional] -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] - - diff --git a/docs/OrganizationFollowerDeleteResponse.md b/docs/OrganizationFollowerDeleteResponse.md deleted file mode 100644 index d1f84b75..00000000 --- a/docs/OrganizationFollowerDeleteResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationFollowerDeleteResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**OrganizationFollowerDeleteResponseData**](OrganizationFollowerDeleteResponseData.md) | | [optional] - - diff --git a/docs/OrganizationFollowerDeleteResponseData.md b/docs/OrganizationFollowerDeleteResponseData.md deleted file mode 100644 index 05cd42d5..00000000 --- a/docs/OrganizationFollowerDeleteResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OrganizationFollowerDeleteResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the follower that was deleted from the organization | [optional] - - diff --git a/docs/OrganizationFollowerItem.md b/docs/OrganizationFollowerItem.md deleted file mode 100644 index a0803f4f..00000000 --- a/docs/OrganizationFollowerItem.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.OrganizationFollowerItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**org_id** | **Number** | The ID of the organization | [optional] -**user_id** | **Number** | The user ID of the follower related to the item | [optional] -**id** | **Number** | The ID of the follower | [optional] -**add_time** | **Date** | The date and time of adding the follower to the item | [optional] - - diff --git a/docs/OrganizationFollowerItemAllOf.md b/docs/OrganizationFollowerItemAllOf.md deleted file mode 100644 index e021eedf..00000000 --- a/docs/OrganizationFollowerItemAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OrganizationFollowerItemAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**org_id** | **Number** | The ID of the organization | [optional] - - diff --git a/docs/OrganizationFollowerPostResponse.md b/docs/OrganizationFollowerPostResponse.md deleted file mode 100644 index 13bc08c9..00000000 --- a/docs/OrganizationFollowerPostResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationFollowerPostResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**OrganizationFollowerItem**](OrganizationFollowerItem.md) | | [optional] - - diff --git a/docs/OrganizationFollowersListResponse.md b/docs/OrganizationFollowersListResponse.md deleted file mode 100644 index 840aa562..00000000 --- a/docs/OrganizationFollowersListResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.OrganizationFollowersListResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**[OrganizationFollowerItem]**](OrganizationFollowerItem.md) | The array of followers | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/OrganizationItem.md b/docs/OrganizationItem.md deleted file mode 100644 index daaf79e0..00000000 --- a/docs/OrganizationItem.md +++ /dev/null @@ -1,58 +0,0 @@ -# Pipedrive.OrganizationItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization | [optional] -**company_id** | **Number** | The ID of the company related to the organization | [optional] -**owner_id** | [**Owner**](Owner.md) | | [optional] -**name** | **String** | The name of the organization | [optional] -**active_flag** | **Boolean** | Whether the organization is active or not | [optional] -**picture_id** | [**PictureDataWithValue**](PictureDataWithValue.md) | | [optional] -**country_code** | **String** | The country code of the organization | [optional] -**first_char** | **String** | The first character of the organization name | [optional] -**add_time** | **String** | The creation date and time of the organization | [optional] -**update_time** | **String** | The last updated date and time of the organization | [optional] -**visible_to** | **String** | The visibility group ID of who can see the organization | [optional] -**label** | **Number** | The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**owner_name** | **String** | The name of the organization owner | [optional] -**cc_email** | **String** | The BCC email associated with the organization | [optional] -**email_messages_count** | **Number** | The count of email messages related to the organization | [optional] -**people_count** | **Number** | The count of persons related to the organization | [optional] -**activities_count** | **Number** | The count of activities related to the organization | [optional] -**done_activities_count** | **Number** | The count of done activities related to the organization | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the organization | [optional] -**files_count** | **Number** | The count of files related to the organization | [optional] -**notes_count** | **Number** | The count of notes related to the organization | [optional] -**followers_count** | **Number** | The count of followers related to the organization | [optional] -**address** | **String** | The full address of the organization | [optional] -**address_subpremise** | **String** | The sub-premise of the organization location | [optional] -**address_street_number** | **String** | The street number of the organization location | [optional] -**address_route** | **String** | The route of the organization location | [optional] -**address_sublocality** | **String** | The sub-locality of the organization location | [optional] -**address_locality** | **String** | The locality of the organization location | [optional] -**address_admin_area_level_1** | **String** | The level 1 admin area of the organization location | [optional] -**address_admin_area_level_2** | **String** | The level 2 admin area of the organization location | [optional] -**address_country** | **String** | The country of the organization location | [optional] -**address_postal_code** | **String** | The postal code of the organization location | [optional] -**address_formatted_address** | **String** | The formatted organization location | [optional] -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] -**edit_name** | **Boolean** | If the company ID of the organization and company ID of the request is same or not | [optional] -**last_activity** | **Object** | Please refer to response schema of <a href=\"https://developers.pipedrive.com/docs/api/v1/Activities#getActivity\">Activity</a> | [optional] -**next_activity** | **Object** | Please refer to response schema of <a href=\"https://developers.pipedrive.com/docs/api/v1/Activities#getActivity\">Activity</a> | [optional] - - diff --git a/docs/OrganizationItemAllOf.md b/docs/OrganizationItemAllOf.md deleted file mode 100644 index 1e8731ef..00000000 --- a/docs/OrganizationItemAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationItemAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**last_activity** | **Object** | Please refer to response schema of <a href=\"https://developers.pipedrive.com/docs/api/v1/Activities#getActivity\">Activity</a> | [optional] -**next_activity** | **Object** | Please refer to response schema of <a href=\"https://developers.pipedrive.com/docs/api/v1/Activities#getActivity\">Activity</a> | [optional] - - diff --git a/docs/OrganizationPostResponse.md b/docs/OrganizationPostResponse.md deleted file mode 100644 index 27560354..00000000 --- a/docs/OrganizationPostResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.OrganizationPostResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BaseOrganizationItemWithEditNameFlag**](BaseOrganizationItemWithEditNameFlag.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationPostResponseAllOf.md b/docs/OrganizationPostResponseAllOf.md deleted file mode 100644 index 86d35947..00000000 --- a/docs/OrganizationPostResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationPostResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BaseOrganizationItemWithEditNameFlag**](BaseOrganizationItemWithEditNameFlag.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationRelationship.md b/docs/OrganizationRelationship.md deleted file mode 100644 index d03e370d..00000000 --- a/docs/OrganizationRelationship.md +++ /dev/null @@ -1,23 +0,0 @@ -# Pipedrive.OrganizationRelationship - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**org_id** | **Number** | The ID of the base organization for the returned calculated values | [optional] -**type** | **String** | The type of organization relationship | [optional] -**rel_owner_org_id** | **Number** | The owner of this relationship. If type is `parent`, then the owner is the parent and the linked organization is the daughter. | [optional] -**rel_linked_org_id** | **Number** | The linked organization in this relationship. If type is `parent`, then the linked organization is the daughter. | [optional] - - - -## Enum: TypeEnum - - -* `parent` (value: `"parent"`) - -* `related` (value: `"related"`) - - - - diff --git a/docs/OrganizationRelationshipDeleteResponse.md b/docs/OrganizationRelationshipDeleteResponse.md deleted file mode 100644 index 5a52e046..00000000 --- a/docs/OrganizationRelationshipDeleteResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationRelationshipDeleteResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**OrganizationRelationshipDeleteResponseAllOfData**](OrganizationRelationshipDeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/OrganizationRelationshipDeleteResponseAllOf.md b/docs/OrganizationRelationshipDeleteResponseAllOf.md deleted file mode 100644 index ee47c196..00000000 --- a/docs/OrganizationRelationshipDeleteResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OrganizationRelationshipDeleteResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**OrganizationRelationshipDeleteResponseAllOfData**](OrganizationRelationshipDeleteResponseAllOfData.md) | | [optional] - - diff --git a/docs/OrganizationRelationshipDeleteResponseAllOfData.md b/docs/OrganizationRelationshipDeleteResponseAllOfData.md deleted file mode 100644 index c525e6ba..00000000 --- a/docs/OrganizationRelationshipDeleteResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OrganizationRelationshipDeleteResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deleted organization relationship | [optional] - - diff --git a/docs/OrganizationRelationshipDetails.md b/docs/OrganizationRelationshipDetails.md deleted file mode 100644 index 2bd4bf2a..00000000 --- a/docs/OrganizationRelationshipDetails.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.OrganizationRelationshipDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization relationship | [optional] -**type** | **String** | The type of the relationship | [optional] -**rel_owner_org_id** | [**RelationshipOrganizationInfoItem**](RelationshipOrganizationInfoItem.md) | | [optional] -**rel_linked_org_id** | [**RelationshipOrganizationInfoItem**](RelationshipOrganizationInfoItem.md) | | [optional] -**add_time** | **String** | The creation date and time of the relationship | [optional] -**update_time** | **String** | The last updated date and time of the relationship | [optional] -**active_flag** | **String** | Whether the relationship is active or not | [optional] -**calculated_type** | **String** | The calculated type of the relationship with the linked organization | [optional] -**calculated_related_org_id** | **Number** | The ID of the linked organization | [optional] -**related_organization_name** | **String** | The name of the linked organization | [optional] - - diff --git a/docs/OrganizationRelationshipGetResponse.md b/docs/OrganizationRelationshipGetResponse.md deleted file mode 100644 index 195d346b..00000000 --- a/docs/OrganizationRelationshipGetResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.OrganizationRelationshipGetResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**OrganizationRelationshipWithCalculatedFields**](OrganizationRelationshipWithCalculatedFields.md) | | [optional] -**related_objects** | [**AllOrganizationRelationshipsGetResponseAllOfRelatedObjects**](AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationRelationshipGetResponseAllOf.md b/docs/OrganizationRelationshipGetResponseAllOf.md deleted file mode 100644 index 1c84374e..00000000 --- a/docs/OrganizationRelationshipGetResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationRelationshipGetResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**OrganizationRelationshipWithCalculatedFields**](OrganizationRelationshipWithCalculatedFields.md) | | [optional] -**related_objects** | [**AllOrganizationRelationshipsGetResponseAllOfRelatedObjects**](AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationRelationshipPostResponse.md b/docs/OrganizationRelationshipPostResponse.md deleted file mode 100644 index b493260a..00000000 --- a/docs/OrganizationRelationshipPostResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.OrganizationRelationshipPostResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BaseOrganizationRelationshipItem**](BaseOrganizationRelationshipItem.md) | | [optional] -**related_objects** | [**AllOrganizationRelationshipsGetResponseAllOfRelatedObjects**](AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationRelationshipPostResponseAllOf.md b/docs/OrganizationRelationshipPostResponseAllOf.md deleted file mode 100644 index bf50b866..00000000 --- a/docs/OrganizationRelationshipPostResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationRelationshipPostResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BaseOrganizationRelationshipItem**](BaseOrganizationRelationshipItem.md) | | [optional] -**related_objects** | [**AllOrganizationRelationshipsGetResponseAllOfRelatedObjects**](AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationRelationshipUpdateResponse.md b/docs/OrganizationRelationshipUpdateResponse.md deleted file mode 100644 index 557d54dc..00000000 --- a/docs/OrganizationRelationshipUpdateResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.OrganizationRelationshipUpdateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BaseOrganizationRelationshipItem**](BaseOrganizationRelationshipItem.md) | | [optional] -**related_objects** | [**AllOrganizationRelationshipsGetResponseAllOfRelatedObjects**](AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationRelationshipWithCalculatedFields.md b/docs/OrganizationRelationshipWithCalculatedFields.md deleted file mode 100644 index f30e72d5..00000000 --- a/docs/OrganizationRelationshipWithCalculatedFields.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.OrganizationRelationshipWithCalculatedFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization relationship | [optional] -**type** | **String** | The type of the relationship | [optional] -**rel_owner_org_id** | [**RelationshipOrganizationInfoItem**](RelationshipOrganizationInfoItem.md) | | [optional] -**rel_linked_org_id** | [**RelationshipOrganizationInfoItem**](RelationshipOrganizationInfoItem.md) | | [optional] -**add_time** | **String** | The creation date and time of the relationship | [optional] -**update_time** | **String** | The last updated date and time of the relationship | [optional] -**active_flag** | **String** | Whether the relationship is active or not | [optional] -**calculated_type** | **String** | The calculated type of the relationship with the linked organization | [optional] -**calculated_related_org_id** | **Number** | The ID of the linked organization | [optional] - - diff --git a/docs/OrganizationRelationshipsApi.md b/docs/OrganizationRelationshipsApi.md deleted file mode 100644 index 58669e54..00000000 --- a/docs/OrganizationRelationshipsApi.md +++ /dev/null @@ -1,289 +0,0 @@ -# Pipedrive.OrganizationRelationshipsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addOrganizationRelationship**](OrganizationRelationshipsApi.md#addOrganizationRelationship) | **POST** /organizationRelationships | Create an organization relationship -[**deleteOrganizationRelationship**](OrganizationRelationshipsApi.md#deleteOrganizationRelationship) | **DELETE** /organizationRelationships/{id} | Delete an organization relationship -[**getOrganizationRelationship**](OrganizationRelationshipsApi.md#getOrganizationRelationship) | **GET** /organizationRelationships/{id} | Get one organization relationship -[**getOrganizationRelationships**](OrganizationRelationshipsApi.md#getOrganizationRelationships) | **GET** /organizationRelationships | Get all relationships for organization -[**updateOrganizationRelationship**](OrganizationRelationshipsApi.md#updateOrganizationRelationship) | **PUT** /organizationRelationships/{id} | Update an organization relationship - - - -## addOrganizationRelationship - -> OrganizationRelationshipPostResponse addOrganizationRelationship(opts) - -Create an organization relationship - -Creates and returns an organization relationship. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationRelationshipsApi(apiClient); -let opts = Pipedrive.AddOrganizationRelationshipRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addOrganizationRelationship(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **AddOrganizationRelationshipRequest** | [**AddOrganizationRelationshipRequest**](AddOrganizationRelationshipRequest.md)| | [optional] - -### Return type - -[**OrganizationRelationshipPostResponse**](OrganizationRelationshipPostResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteOrganizationRelationship - -> OrganizationRelationshipDeleteResponse deleteOrganizationRelationship(id) - -Delete an organization relationship - -Deletes an organization relationship and returns the deleted ID. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationRelationshipsApi(apiClient); -let id = 56; // Number | The ID of the organization relationship -apiInstance.deleteOrganizationRelationship(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization relationship | - -### Return type - -[**OrganizationRelationshipDeleteResponse**](OrganizationRelationshipDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationRelationship - -> OrganizationRelationshipGetResponse getOrganizationRelationship(id, opts) - -Get one organization relationship - -Finds and returns an organization relationship from its ID. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationRelationshipsApi(apiClient); -let id = 56; // Number | The ID of the organization relationship -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'orgId': 56 // Number | The ID of the base organization for the returned calculated values -}; -apiInstance.getOrganizationRelationship(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization relationship | - **org_id** | **Number**| The ID of the base organization for the returned calculated values | [optional] - -### Return type - -[**OrganizationRelationshipGetResponse**](OrganizationRelationshipGetResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationRelationships - -> AllOrganizationRelationshipsGetResponse getOrganizationRelationships(orgId) - -Get all relationships for organization - -Gets all of the relationships for a supplied organization ID. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationRelationshipsApi(apiClient); -let orgId = 56; // Number | The ID of the organization to get relationships for -apiInstance.getOrganizationRelationships(orgId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **org_id** | **Number**| The ID of the organization to get relationships for | - -### Return type - -[**AllOrganizationRelationshipsGetResponse**](AllOrganizationRelationshipsGetResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateOrganizationRelationship - -> OrganizationRelationshipUpdateResponse updateOrganizationRelationship(id, opts) - -Update an organization relationship - -Updates and returns an organization relationship. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationRelationshipsApi(apiClient); -let id = 56; // Number | The ID of the organization relationship -let opts = Pipedrive.OrganizationRelationship.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateOrganizationRelationship(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization relationship | - **OrganizationRelationship** | [**OrganizationRelationship**](OrganizationRelationship.md)| | [optional] - -### Return type - -[**OrganizationRelationshipUpdateResponse**](OrganizationRelationshipUpdateResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/OrganizationSearchItem.md b/docs/OrganizationSearchItem.md deleted file mode 100644 index b2972e5c..00000000 --- a/docs/OrganizationSearchItem.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationSearchItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result_score** | **Number** | Search result relevancy | [optional] -**item** | [**OrganizationSearchItemItem**](OrganizationSearchItemItem.md) | | [optional] - - diff --git a/docs/OrganizationSearchItemItem.md b/docs/OrganizationSearchItemItem.md deleted file mode 100644 index 45a611ad..00000000 --- a/docs/OrganizationSearchItemItem.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.OrganizationSearchItemItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization | [optional] -**type** | **String** | The type of the item | [optional] -**name** | **String** | The name of the organization | [optional] -**address** | **String** | The address of the organization | [optional] -**visible_to** | **Number** | The visibility of the organization | [optional] -**owner** | [**DealSearchItemItemOwner**](DealSearchItemItemOwner.md) | | [optional] -**custom_fields** | **[String]** | Custom fields | [optional] -**notes** | **[String]** | An array of notes | [optional] - - diff --git a/docs/OrganizationSearchResponse.md b/docs/OrganizationSearchResponse.md deleted file mode 100644 index 923b6252..00000000 --- a/docs/OrganizationSearchResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.OrganizationSearchResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**OrganizationSearchResponseAllOfData**](OrganizationSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/OrganizationSearchResponseAllOf.md b/docs/OrganizationSearchResponseAllOf.md deleted file mode 100644 index 84fa6e5e..00000000 --- a/docs/OrganizationSearchResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationSearchResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**OrganizationSearchResponseAllOfData**](OrganizationSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/OrganizationSearchResponseAllOfData.md b/docs/OrganizationSearchResponseAllOfData.md deleted file mode 100644 index 55b57cd5..00000000 --- a/docs/OrganizationSearchResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OrganizationSearchResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**[OrganizationSearchItem]**](OrganizationSearchItem.md) | The array of found items | [optional] - - diff --git a/docs/OrganizationUpdateResponse.md b/docs/OrganizationUpdateResponse.md deleted file mode 100644 index fcbd9597..00000000 --- a/docs/OrganizationUpdateResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.OrganizationUpdateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BaseOrganizationItem**](BaseOrganizationItem.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationUpdateResponseAllOf.md b/docs/OrganizationUpdateResponseAllOf.md deleted file mode 100644 index 0bb1da6a..00000000 --- a/docs/OrganizationUpdateResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationUpdateResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BaseOrganizationItem**](BaseOrganizationItem.md) | | [optional] -**related_objects** | [**AllOrganizationsGetResponseAllOfRelatedObjects**](AllOrganizationsGetResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/OrganizationsApi.md b/docs/OrganizationsApi.md deleted file mode 100644 index 0339a77d..00000000 --- a/docs/OrganizationsApi.md +++ /dev/null @@ -1,1206 +0,0 @@ -# Pipedrive.OrganizationsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addOrganization**](OrganizationsApi.md#addOrganization) | **POST** /organizations | Add an organization -[**addOrganizationFollower**](OrganizationsApi.md#addOrganizationFollower) | **POST** /organizations/{id}/followers | Add a follower to an organization -[**deleteOrganization**](OrganizationsApi.md#deleteOrganization) | **DELETE** /organizations/{id} | Delete an organization -[**deleteOrganizationFollower**](OrganizationsApi.md#deleteOrganizationFollower) | **DELETE** /organizations/{id}/followers/{follower_id} | Delete a follower from an organization -[**deleteOrganizations**](OrganizationsApi.md#deleteOrganizations) | **DELETE** /organizations | Delete multiple organizations in bulk -[**getOrganization**](OrganizationsApi.md#getOrganization) | **GET** /organizations/{id} | Get details of an organization -[**getOrganizationActivities**](OrganizationsApi.md#getOrganizationActivities) | **GET** /organizations/{id}/activities | List activities associated with an organization -[**getOrganizationChangelog**](OrganizationsApi.md#getOrganizationChangelog) | **GET** /organizations/{id}/changelog | List updates about organization field values -[**getOrganizationDeals**](OrganizationsApi.md#getOrganizationDeals) | **GET** /organizations/{id}/deals | List deals associated with an organization -[**getOrganizationFiles**](OrganizationsApi.md#getOrganizationFiles) | **GET** /organizations/{id}/files | List files attached to an organization -[**getOrganizationFollowers**](OrganizationsApi.md#getOrganizationFollowers) | **GET** /organizations/{id}/followers | List followers of an organization -[**getOrganizationMailMessages**](OrganizationsApi.md#getOrganizationMailMessages) | **GET** /organizations/{id}/mailMessages | List mail messages associated with an organization -[**getOrganizationPersons**](OrganizationsApi.md#getOrganizationPersons) | **GET** /organizations/{id}/persons | List persons of an organization -[**getOrganizationUpdates**](OrganizationsApi.md#getOrganizationUpdates) | **GET** /organizations/{id}/flow | List updates about an organization -[**getOrganizationUsers**](OrganizationsApi.md#getOrganizationUsers) | **GET** /organizations/{id}/permittedUsers | List permitted users -[**getOrganizations**](OrganizationsApi.md#getOrganizations) | **GET** /organizations | Get all organizations -[**getOrganizationsCollection**](OrganizationsApi.md#getOrganizationsCollection) | **GET** /organizations/collection | Get all organizations (BETA) -[**mergeOrganizations**](OrganizationsApi.md#mergeOrganizations) | **PUT** /organizations/{id}/merge | Merge two organizations -[**searchOrganization**](OrganizationsApi.md#searchOrganization) | **GET** /organizations/search | Search organizations -[**updateOrganization**](OrganizationsApi.md#updateOrganization) | **PUT** /organizations/{id} | Update an organization - - - -## addOrganization - -> OrganizationPostResponse addOrganization(opts) - -Add an organization - -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>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let opts = Pipedrive.NewOrganization.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addOrganization(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **NewOrganization** | [**NewOrganization**](NewOrganization.md)| | [optional] - -### Return type - -[**OrganizationPostResponse**](OrganizationPostResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addOrganizationFollower - -> OrganizationFollowerPostResponse addOrganizationFollower(id, opts) - -Add a follower to an organization - -Adds a follower to an organization. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -let opts = Pipedrive.AddOrganizationFollowerRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addOrganizationFollower(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - **AddOrganizationFollowerRequest** | [**AddOrganizationFollowerRequest**](AddOrganizationFollowerRequest.md)| | [optional] - -### Return type - -[**OrganizationFollowerPostResponse**](OrganizationFollowerPostResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteOrganization - -> OrganizationDeleteResponse deleteOrganization(id) - -Delete an organization - -Marks an organization as deleted. After 30 days, the organization will be permanently deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -apiInstance.deleteOrganization(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - -### Return type - -[**OrganizationDeleteResponse**](OrganizationDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteOrganizationFollower - -> OrganizationFollowerDeleteResponse deleteOrganizationFollower(id, followerId) - -Delete a follower from an organization - -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. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -let followerId = 56; // Number | The ID of the follower -apiInstance.deleteOrganizationFollower(id, followerId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - **follower_id** | **Number**| The ID of the follower | - -### Return type - -[**OrganizationFollowerDeleteResponse**](OrganizationFollowerDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteOrganizations - -> OrganizationsDeleteResponse deleteOrganizations(ids) - -Delete multiple organizations in bulk - -Marks multiple organizations as deleted. After 30 days, the organizations will be permanently deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let ids = "ids_example"; // String | The comma-separated IDs that will be deleted -apiInstance.deleteOrganizations(ids).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ids** | **String**| The comma-separated IDs that will be deleted | - -### Return type - -[**OrganizationsDeleteResponse**](OrganizationsDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganization - -> OrganizationDetailsGetResponse getOrganization(id) - -Get details of an organization - -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. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -apiInstance.getOrganization(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - -### Return type - -[**OrganizationDetailsGetResponse**](OrganizationDetailsGetResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationActivities - -> ListActivitiesResponse getOrganizationActivities(id, opts) - -List activities associated with an organization - -Lists activities associated with an organization. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'done': new Pipedrive.NumberBoolean(), // NumberBoolean | Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities. - 'exclude': "exclude_example" // String | A comma-separated string of activity IDs to exclude from result -}; -apiInstance.getOrganizationActivities(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **done** | [**NumberBoolean**](.md)| Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities. | [optional] - **exclude** | **String**| A comma-separated string of activity IDs to exclude from result | [optional] - -### Return type - -[**ListActivitiesResponse**](ListActivitiesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationChangelog - -> ChangelogResponse getOrganizationChangelog(id, opts) - -List updates about organization field values - -Lists updates about field values of an organization. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getOrganizationChangelog(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ChangelogResponse**](ChangelogResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationDeals - -> ListDealsResponse getOrganizationDeals(id, opts) - -List deals associated with an organization - -Lists deals associated with an organization. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'status': "'all_not_deleted'", // String | 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. - 'sort': "sort_example", // String | 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). - 'onlyPrimaryAssociation': new Pipedrive.NumberBoolean() // NumberBoolean | 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. -}; -apiInstance.getOrganizationDeals(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **status** | **String**| 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. | [optional] [default to 'all_not_deleted'] - **sort** | **String**| 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). | [optional] - **only_primary_association** | [**NumberBoolean**](.md)| 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. | [optional] - -### Return type - -[**ListDealsResponse**](ListDealsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationFiles - -> ListFilesResponse getOrganizationFiles(id, opts) - -List files attached to an organization - -Lists files associated with an organization. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'sort': "sort_example" // String | 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`. -}; -apiInstance.getOrganizationFiles(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **sort** | **String**| 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`. | [optional] - -### Return type - -[**ListFilesResponse**](ListFilesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationFollowers - -> OrganizationFollowersListResponse getOrganizationFollowers(id) - -List followers of an organization - -Lists the followers of an organization. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -apiInstance.getOrganizationFollowers(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - -### Return type - -[**OrganizationFollowersListResponse**](OrganizationFollowersListResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationMailMessages - -> ListMailMessagesResponse getOrganizationMailMessages(id, opts) - -List mail messages associated with an organization - -Lists mail messages associated with an organization. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getOrganizationMailMessages(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ListMailMessagesResponse**](ListMailMessagesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationPersons - -> ListPersonsResponse getOrganizationPersons(id, opts) - -List persons of an organization - -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. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getOrganizationPersons(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ListPersonsResponse**](ListPersonsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationUpdates - -> OrganizationFlowResponse getOrganizationUpdates(id, opts) - -List updates about an organization - -Lists updates about an organization. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'allChanges': "allChanges_example", // String | Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. - 'items': "items_example" // String | 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). -}; -apiInstance.getOrganizationUpdates(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **all_changes** | **String**| Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. | [optional] - **items** | **String**| 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). | [optional] - -### Return type - -[**OrganizationFlowResponse**](OrganizationFlowResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationUsers - -> ListPermittedUsersResponse1 getOrganizationUsers(id) - -List permitted users - -List users permitted to access an organization. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -apiInstance.getOrganizationUsers(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - -### Return type - -[**ListPermittedUsersResponse1**](ListPermittedUsersResponse1.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizations - -> AllOrganizationsGetResponse getOrganizations(opts) - -Get all organizations - -Returns all organizations. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'userId': 56, // Number | If supplied, only organizations owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - 'filterId': 56, // Number | The ID of the filter to use - 'firstChar': "firstChar_example", // String | If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'sort': "sort_example" // String | 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). -}; -apiInstance.getOrganizations(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user_id** | **Number**| If supplied, only organizations owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. | [optional] - **filter_id** | **Number**| The ID of the filter to use | [optional] - **first_char** | **String**| If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) | [optional] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **sort** | **String**| 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). | [optional] - -### Return type - -[**AllOrganizationsGetResponse**](AllOrganizationsGetResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getOrganizationsCollection - -> InlineResponse2001 getOrganizationsCollection(opts) - -Get all organizations (BETA) - -Returns all organizations. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions <a href=\"https://support.pipedrive.com/en/article/global-user-management\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page - 'limit': 100, // Number | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - 'since': "since_example", // String | The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - 'until': "until_example", // String | The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - 'ownerId': 56, // Number | If supplied, only organizations owned by the given user will be returned - 'firstChar': "firstChar_example" // String | If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) -}; -apiInstance.getOrganizationsCollection(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] - **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. | [optional] - **since** | **String**| The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. | [optional] - **until** | **String**| The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. | [optional] - **owner_id** | **Number**| If supplied, only organizations owned by the given user will be returned | [optional] - **first_char** | **String**| If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) | [optional] - -### Return type - -[**InlineResponse2001**](InlineResponse2001.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## mergeOrganizations - -> OrganizationsMergeResponse mergeOrganizations(id, opts) - -Merge two organizations - -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>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -let opts = Pipedrive.MergeOrganizationsRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.mergeOrganizations(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - **MergeOrganizationsRequest** | [**MergeOrganizationsRequest**](MergeOrganizationsRequest.md)| | [optional] - -### Return type - -[**OrganizationsMergeResponse**](OrganizationsMergeResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## searchOrganization - -> OrganizationSearchResponse searchOrganization(term, opts) - -Search organizations - -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. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let term = "term_example"; // String | 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. -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'fields': "fields_example", // String | A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - 'exactMatch': true, // Boolean | When enabled, only full exact matches against the given term are returned. It is not case sensitive. - 'start': 0, // Number | Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - 'limit': 56 // Number | Items shown per page -}; -apiInstance.searchOrganization(term, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **term** | **String**| 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. | - **fields** | **String**| A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. | [optional] - **exact_match** | **Boolean**| When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. | [optional] - **start** | **Number**| Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**OrganizationSearchResponse**](OrganizationSearchResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateOrganization - -> OrganizationUpdateResponse updateOrganization(id, opts) - -Update an organization - -Updates the properties of an organization. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.OrganizationsApi(apiClient); -let id = 56; // Number | The ID of the organization -let opts = Pipedrive.UpdateOrganization.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateOrganization(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the organization | - **UpdateOrganization** | [**UpdateOrganization**](UpdateOrganization.md)| | [optional] - -### Return type - -[**OrganizationUpdateResponse**](OrganizationUpdateResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/OrganizationsCollectionResponseObject.md b/docs/OrganizationsCollectionResponseObject.md deleted file mode 100644 index 2aa4e4b3..00000000 --- a/docs/OrganizationsCollectionResponseObject.md +++ /dev/null @@ -1,30 +0,0 @@ -# Pipedrive.OrganizationsCollectionResponseObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**address** | **String** | The full address of the organization | [optional] -**address_subpremise** | **String** | The sub-premise of the organization location | [optional] -**address_street_number** | **String** | The street number of the organization location | [optional] -**address_route** | **String** | The route of the organization location | [optional] -**address_sublocality** | **String** | The sub-locality of the organization location | [optional] -**address_locality** | **String** | The locality of the organization location | [optional] -**address_admin_area_level_1** | **String** | The level 1 admin area of the organization location | [optional] -**address_admin_area_level_2** | **String** | The level 2 admin area of the organization location | [optional] -**address_country** | **String** | The country of the organization location | [optional] -**address_postal_code** | **String** | The postal code of the organization location | [optional] -**address_formatted_address** | **String** | The formatted organization location | [optional] -**id** | **Number** | The ID of the organization | [optional] -**active_flag** | **Boolean** | Whether the organization is active or not | [optional] -**owner_id** | **Number** | The ID of the owner | [optional] -**name** | **String** | The name of the organization | [optional] -**update_time** | **String** | The last updated date and time of the organization. Format: YYYY-MM-DD HH:MM:SS | [optional] -**delete_time** | **String** | The date and time this organization was deleted. Format: YYYY-MM-DD HH:MM:SS | [optional] -**add_time** | **String** | The date and time when the organization was added/created. Format: YYYY-MM-DD HH:MM:SS | [optional] -**visible_to** | **String** | The visibility group ID of who can see the organization | [optional] -**label** | **Number** | The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**cc_email** | **String** | The BCC email associated with the organization | [optional] - - diff --git a/docs/OrganizationsCollectionResponseObjectAllOf.md b/docs/OrganizationsCollectionResponseObjectAllOf.md deleted file mode 100644 index c197e50d..00000000 --- a/docs/OrganizationsCollectionResponseObjectAllOf.md +++ /dev/null @@ -1,19 +0,0 @@ -# Pipedrive.OrganizationsCollectionResponseObjectAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization | [optional] -**active_flag** | **Boolean** | Whether the organization is active or not | [optional] -**owner_id** | **Number** | The ID of the owner | [optional] -**name** | **String** | The name of the organization | [optional] -**update_time** | **String** | The last updated date and time of the organization. Format: YYYY-MM-DD HH:MM:SS | [optional] -**delete_time** | **String** | The date and time this organization was deleted. Format: YYYY-MM-DD HH:MM:SS | [optional] -**add_time** | **String** | The date and time when the organization was added/created. Format: YYYY-MM-DD HH:MM:SS | [optional] -**visible_to** | **String** | The visibility group ID of who can see the organization | [optional] -**label** | **Number** | The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**cc_email** | **String** | The BCC email associated with the organization | [optional] - - diff --git a/docs/OrganizationsDeleteResponse.md b/docs/OrganizationsDeleteResponse.md deleted file mode 100644 index a0e627c0..00000000 --- a/docs/OrganizationsDeleteResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationsDeleteResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**OrganizationsDeleteResponseData**](OrganizationsDeleteResponseData.md) | | [optional] - - diff --git a/docs/OrganizationsDeleteResponseData.md b/docs/OrganizationsDeleteResponseData.md deleted file mode 100644 index 14078d0a..00000000 --- a/docs/OrganizationsDeleteResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OrganizationsDeleteResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **[Number]** | The IDs of the organizations that were deleted | [optional] - - diff --git a/docs/OrganizationsMergeResponse.md b/docs/OrganizationsMergeResponse.md deleted file mode 100644 index 48148cfe..00000000 --- a/docs/OrganizationsMergeResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.OrganizationsMergeResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**OrganizationsMergeResponseData**](OrganizationsMergeResponseData.md) | | [optional] - - diff --git a/docs/OrganizationsMergeResponseData.md b/docs/OrganizationsMergeResponseData.md deleted file mode 100644 index ffb1c397..00000000 --- a/docs/OrganizationsMergeResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OrganizationsMergeResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the merged organization | [optional] - - diff --git a/docs/Owner.md b/docs/Owner.md deleted file mode 100644 index 79ea81ed..00000000 --- a/docs/Owner.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.Owner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the user | [optional] -**name** | **String** | The name of the user | [optional] -**email** | **String** | The email of the user | [optional] -**has_pic** | **Number** | Whether the user has picture or not. 0 = No picture, 1 = Has picture. | [optional] -**pic_hash** | **String** | The user picture hash | [optional] -**active_flag** | **Boolean** | Whether the user is active or not | [optional] -**value** | **Number** | The ID of the owner | [optional] - - diff --git a/docs/OwnerAllOf.md b/docs/OwnerAllOf.md deleted file mode 100644 index a3444339..00000000 --- a/docs/OwnerAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.OwnerAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **Number** | The ID of the owner | [optional] - - diff --git a/docs/PaginationDetails.md b/docs/PaginationDetails.md deleted file mode 100644 index 52cd0be2..00000000 --- a/docs/PaginationDetails.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.PaginationDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start** | **Number** | Pagination start | [optional] -**limit** | **Number** | Items shown per page | [optional] -**more_items_in_collection** | **Boolean** | If there are more list items in the collection than displayed or not | [optional] -**next_start** | **Number** | Next pagination start | [optional] - - diff --git a/docs/PaginationDetailsAllOf.md b/docs/PaginationDetailsAllOf.md deleted file mode 100644 index 984af467..00000000 --- a/docs/PaginationDetailsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PaginationDetailsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**next_start** | **Number** | Next pagination start | [optional] - - diff --git a/docs/Params.md b/docs/Params.md deleted file mode 100644 index 0f821a9f..00000000 --- a/docs/Params.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.Params - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pipeline_id** | **[Number]** | The IDs of pipelines of the goal | [optional] -**activity_type_id** | **[Number]** | The IDs of activity types of the goal | [optional] - - diff --git a/docs/ParticipantsChangelog.md b/docs/ParticipantsChangelog.md deleted file mode 100644 index 49421d50..00000000 --- a/docs/ParticipantsChangelog.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ParticipantsChangelog - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**[ParticipantsChangelogItem]**](ParticipantsChangelogItem.md) | The array of participant changelog | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] - - diff --git a/docs/ParticipantsChangelogItem.md b/docs/ParticipantsChangelogItem.md deleted file mode 100644 index 5123783c..00000000 --- a/docs/ParticipantsChangelogItem.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ParticipantsChangelogItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actor_user_id** | **Number** | The ID of the user | [optional] -**person_id** | **Number** | The ID of the person | [optional] -**action** | **String** | Deal participant action type | [optional] -**time** | **String** | The deal participant action log time | [optional] - - diff --git a/docs/PaymentItem.md b/docs/PaymentItem.md deleted file mode 100644 index 2a7efb4e..00000000 --- a/docs/PaymentItem.md +++ /dev/null @@ -1,53 +0,0 @@ -# Pipedrive.PaymentItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the payment | [optional] -**subscription_id** | **Number** | The ID of the subscription this payment is associated with | [optional] -**deal_id** | **Number** | The ID of the deal this payment is associated with | [optional] -**is_active** | **Boolean** | The payment status | [optional] -**amount** | **Number** | The payment amount | [optional] -**currency** | **String** | The currency of the payment | [optional] -**change_amount** | **Number** | The difference between the amount of the current payment and the previous payment. The value can be either positive or negative. | [optional] -**due_at** | **Date** | The date when payment occurs | [optional] -**revenue_movement_type** | **String** | Represents the movement of revenue in comparison with the previous payment. Possible values are: `New` - first payment of the subscription. `Recurring` - no movement. `Expansion` - current payment amount > previous payment amount. `Contraction` - current payment amount < previous payment amount. `Churn` - last payment of the subscription. | [optional] -**payment_type** | **String** | The type of the payment. Possible values are: `Recurring` - payments occur over fixed intervals of time, `Additional` - extra payment not the recurring payment of the recurring subscription, `Installment` - payment of the installment subscription. | [optional] -**description** | **String** | The description of the payment | [optional] -**add_time** | **Date** | The creation time of the payment | [optional] -**update_time** | **Date** | The update time of the payment | [optional] - - - -## Enum: RevenueMovementTypeEnum - - -* `new` (value: `"new"`) - -* `recurring` (value: `"recurring"`) - -* `expansion` (value: `"expansion"`) - -* `contraction` (value: `"contraction"`) - -* `none` (value: `"none"`) - -* `churn` (value: `"churn"`) - - - - - -## Enum: PaymentTypeEnum - - -* `recurring` (value: `"recurring"`) - -* `additional` (value: `"additional"`) - -* `installment` (value: `"installment"`) - - - - diff --git a/docs/PaymentsResponse.md b/docs/PaymentsResponse.md deleted file mode 100644 index 4a27872b..00000000 --- a/docs/PaymentsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PaymentsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[PaymentItem]**](PaymentItem.md) | | [optional] - - diff --git a/docs/PaymentsResponseAllOf.md b/docs/PaymentsResponseAllOf.md deleted file mode 100644 index 88350f3a..00000000 --- a/docs/PaymentsResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PaymentsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PaymentItem]**](PaymentItem.md) | | [optional] - - diff --git a/docs/PaymentsResponseAllOfData.md b/docs/PaymentsResponseAllOfData.md deleted file mode 100644 index c70bc5c3..00000000 --- a/docs/PaymentsResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PaymentsResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**[PaymentItem]**](PaymentItem.md) | | [optional] - - diff --git a/docs/PermissionSets.md b/docs/PermissionSets.md deleted file mode 100644 index 970b3f9c..00000000 --- a/docs/PermissionSets.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PermissionSets - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[PermissionSetsItem]**](PermissionSetsItem.md) | The array of permission set | [optional] - - diff --git a/docs/PermissionSetsAllOf.md b/docs/PermissionSetsAllOf.md deleted file mode 100644 index 15877be5..00000000 --- a/docs/PermissionSetsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PermissionSetsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PermissionSetsItem]**](PermissionSetsItem.md) | The array of permission set | [optional] - - diff --git a/docs/PermissionSetsApi.md b/docs/PermissionSetsApi.md deleted file mode 100644 index 11f1f036..00000000 --- a/docs/PermissionSetsApi.md +++ /dev/null @@ -1,180 +0,0 @@ -# Pipedrive.PermissionSetsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getPermissionSet**](PermissionSetsApi.md#getPermissionSet) | **GET** /permissionSets/{id} | Get one permission set -[**getPermissionSetAssignments**](PermissionSetsApi.md#getPermissionSetAssignments) | **GET** /permissionSets/{id}/assignments | List permission set assignments -[**getPermissionSets**](PermissionSetsApi.md#getPermissionSets) | **GET** /permissionSets | Get all permission sets - - - -## getPermissionSet - -> SinglePermissionSetsItem getPermissionSet(id) - -Get one permission set - -Returns data about a specific permission set. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PermissionSetsApi(apiClient); -let id = "id_example"; // String | The ID of the permission set -apiInstance.getPermissionSet(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the permission set | - -### Return type - -[**SinglePermissionSetsItem**](SinglePermissionSetsItem.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPermissionSetAssignments - -> UserAssignmentsToPermissionSet getPermissionSetAssignments(id, opts) - -List permission set assignments - -Returns the list of assignments for a permission set. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PermissionSetsApi(apiClient); -let id = "id_example"; // String | The ID of the permission set -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getPermissionSetAssignments(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| The ID of the permission set | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**UserAssignmentsToPermissionSet**](UserAssignmentsToPermissionSet.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPermissionSets - -> PermissionSets getPermissionSets(opts) - -Get all permission sets - -Returns data about all permission sets. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PermissionSetsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'app': "app_example" // String | The app to filter the permission sets by -}; -apiInstance.getPermissionSets(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **app** | **String**| The app to filter the permission sets by | [optional] - -### Return type - -[**PermissionSets**](PermissionSets.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/PermissionSetsItem.md b/docs/PermissionSetsItem.md deleted file mode 100644 index 48e6610d..00000000 --- a/docs/PermissionSetsItem.md +++ /dev/null @@ -1,46 +0,0 @@ -# Pipedrive.PermissionSetsItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The ID of user permission set | [optional] -**name** | **String** | The name of the permission set | [optional] -**description** | **String** | The description of the permission set | [optional] -**app** | **String** | The app that permission set belongs to | [optional] -**type** | **String** | The type of permission set | [optional] -**assignment_count** | **Number** | The number of users assigned to this permission set | [optional] - - - -## Enum: AppEnum - - -* `sales` (value: `"sales"`) - -* `projects` (value: `"projects"`) - -* `campaigns` (value: `"campaigns"`) - -* `global` (value: `"global"`) - -* `account_settings` (value: `"account_settings"`) - - - - - -## Enum: TypeEnum - - -* `admin` (value: `"admin"`) - -* `manager` (value: `"manager"`) - -* `regular` (value: `"regular"`) - -* `custom` (value: `"custom"`) - - - - diff --git a/docs/PersonCountAndEmailInfo.md b/docs/PersonCountAndEmailInfo.md deleted file mode 100644 index 1aaaa67e..00000000 --- a/docs/PersonCountAndEmailInfo.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.PersonCountAndEmailInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_messages_count** | **Number** | The count of email messages related to the person | [optional] -**activities_count** | **Number** | The count of activities related to the person | [optional] -**done_activities_count** | **Number** | The count of done activities related to the person | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the person | [optional] -**files_count** | **Number** | The count of files related to the person | [optional] -**notes_count** | **Number** | The count of notes related to the person | [optional] -**followers_count** | **Number** | The count of followers related to the person | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the person | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the person | [optional] - - diff --git a/docs/PersonCountEmailDealAndActivityInfo.md b/docs/PersonCountEmailDealAndActivityInfo.md deleted file mode 100644 index 1fbd57b6..00000000 --- a/docs/PersonCountEmailDealAndActivityInfo.md +++ /dev/null @@ -1,30 +0,0 @@ -# Pipedrive.PersonCountEmailDealAndActivityInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_messages_count** | **Number** | The count of email messages related to the person | [optional] -**activities_count** | **Number** | The count of activities related to the person | [optional] -**done_activities_count** | **Number** | The count of done activities related to the person | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the person | [optional] -**files_count** | **Number** | The count of files related to the person | [optional] -**notes_count** | **Number** | The count of notes related to the person | [optional] -**followers_count** | **Number** | The count of followers related to the person | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the person | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the person | [optional] -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] - - diff --git a/docs/PersonCountInfo.md b/docs/PersonCountInfo.md deleted file mode 100644 index 9eb37fe7..00000000 --- a/docs/PersonCountInfo.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.PersonCountInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email_messages_count** | **Number** | The count of email messages related to the person | [optional] -**activities_count** | **Number** | The count of activities related to the person | [optional] -**done_activities_count** | **Number** | The count of done activities related to the person | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the person | [optional] -**files_count** | **Number** | The count of files related to the person | [optional] -**notes_count** | **Number** | The count of notes related to the person | [optional] -**followers_count** | **Number** | The count of followers related to the person | [optional] - - diff --git a/docs/PersonData.md b/docs/PersonData.md deleted file mode 100644 index 4a242195..00000000 --- a/docs/PersonData.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.PersonData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the person associated with the item | [optional] -**name** | **String** | The name of the person associated with the item | [optional] -**email** | [**[PersonDataEmail]**](PersonDataEmail.md) | The emails of the person associated with the item | [optional] -**phone** | [**[PersonDataPhone]**](PersonDataPhone.md) | The phone numbers of the person associated with the item | [optional] -**owner_id** | **Number** | The ID of the owner of the person that is associated with the item | [optional] - - diff --git a/docs/PersonDataEmail.md b/docs/PersonDataEmail.md deleted file mode 100644 index bf49bff0..00000000 --- a/docs/PersonDataEmail.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.PersonDataEmail - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | **String** | The type of the email | [optional] -**value** | **String** | The email of the associated person | [optional] -**primary** | **Boolean** | Whether this is the primary email or not | [optional] - - diff --git a/docs/PersonDataPhone.md b/docs/PersonDataPhone.md deleted file mode 100644 index 1dcb1661..00000000 --- a/docs/PersonDataPhone.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.PersonDataPhone - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | **String** | The type of the phone number | [optional] -**value** | **String** | The phone number of the person associated with the item | [optional] -**primary** | **Boolean** | Whether this is the primary phone number or not | [optional] - - diff --git a/docs/PersonDataWithActiveFlag.md b/docs/PersonDataWithActiveFlag.md deleted file mode 100644 index e3110388..00000000 --- a/docs/PersonDataWithActiveFlag.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.PersonDataWithActiveFlag - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active_flag** | **Boolean** | Whether the associated person is active or not | [optional] -**id** | **Number** | The ID of the person associated with the item | [optional] -**name** | **String** | The name of the person associated with the item | [optional] -**email** | [**[PersonDataEmail]**](PersonDataEmail.md) | The emails of the person associated with the item | [optional] -**phone** | [**[PersonDataPhone]**](PersonDataPhone.md) | The phone numbers of the person associated with the item | [optional] -**owner_id** | **Number** | The ID of the owner of the person that is associated with the item | [optional] - - diff --git a/docs/PersonDataWithActiveFlagAllOf.md b/docs/PersonDataWithActiveFlagAllOf.md deleted file mode 100644 index f49259e1..00000000 --- a/docs/PersonDataWithActiveFlagAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PersonDataWithActiveFlagAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active_flag** | **Boolean** | Whether the associated person is active or not | [optional] - - diff --git a/docs/PersonFieldsApi.md b/docs/PersonFieldsApi.md deleted file mode 100644 index 59248177..00000000 --- a/docs/PersonFieldsApi.md +++ /dev/null @@ -1,343 +0,0 @@ -# Pipedrive.PersonFieldsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addPersonField**](PersonFieldsApi.md#addPersonField) | **POST** /personFields | Add a new person field -[**deletePersonField**](PersonFieldsApi.md#deletePersonField) | **DELETE** /personFields/{id} | Delete a person field -[**deletePersonFields**](PersonFieldsApi.md#deletePersonFields) | **DELETE** /personFields | Delete multiple person fields in bulk -[**getPersonField**](PersonFieldsApi.md#getPersonField) | **GET** /personFields/{id} | Get one person field -[**getPersonFields**](PersonFieldsApi.md#getPersonFields) | **GET** /personFields | Get all person fields -[**updatePersonField**](PersonFieldsApi.md#updatePersonField) | **PUT** /personFields/{id} | Update a person field - - - -## addPersonField - -> FieldResponse addPersonField(opts) - -Add a new person field - -Adds a new person field. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-new-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">adding a new custom field</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonFieldsApi(apiClient); -let opts = Pipedrive.FieldCreateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addPersonField(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **FieldCreateRequest** | [**FieldCreateRequest**](FieldCreateRequest.md)| | [optional] - -### Return type - -[**FieldResponse**](FieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deletePersonField - -> DeleteResponse deletePersonField(id) - -Delete a person field - -Marks a field as deleted. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/deleting-a-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">deleting a custom field</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonFieldsApi(apiClient); -let id = 56; // Number | The ID of the field -apiInstance.deletePersonField(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the field | - -### Return type - -[**DeleteResponse**](DeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deletePersonFields - -> BulkDeleteResponse deletePersonFields(ids) - -Delete multiple person fields in bulk - -Marks multiple fields as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonFieldsApi(apiClient); -let ids = "ids_example"; // String | The comma-separated field IDs to delete -apiInstance.deletePersonFields(ids).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ids** | **String**| The comma-separated field IDs to delete | - -### Return type - -[**BulkDeleteResponse**](BulkDeleteResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonField - -> FieldResponse getPersonField(id) - -Get one person field - -Returns data about a specific person field. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonFieldsApi(apiClient); -let id = 56; // Number | The ID of the field -apiInstance.getPersonField(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the field | - -### Return type - -[**FieldResponse**](FieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonFields - -> FieldsResponse getPersonFields(opts) - -Get all person fields - -Returns data about all person fields.<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. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonFieldsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getPersonFields(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**FieldsResponse**](FieldsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updatePersonField - -> FieldResponse updatePersonField(id, opts) - -Update a person field - -Updates a person field. For more information, see the tutorial for <a href=\" https://pipedrive.readme.io/docs/updating-custom-field-value \" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields' values</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonFieldsApi(apiClient); -let id = 56; // Number | The ID of the field -let opts = Pipedrive.FieldUpdateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updatePersonField(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the field | - **FieldUpdateRequest** | [**FieldUpdateRequest**](FieldUpdateRequest.md)| | [optional] - -### Return type - -[**FieldResponse**](FieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/PersonFlowResponse.md b/docs/PersonFlowResponse.md deleted file mode 100644 index 45ae9877..00000000 --- a/docs/PersonFlowResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.PersonFlowResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[PersonFlowResponseAllOfData]**](PersonFlowResponseAllOfData.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**DealFlowResponseAllOfRelatedObjects**](DealFlowResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/PersonFlowResponseAllOf.md b/docs/PersonFlowResponseAllOf.md deleted file mode 100644 index 2eb5c983..00000000 --- a/docs/PersonFlowResponseAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.PersonFlowResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[PersonFlowResponseAllOfData]**](PersonFlowResponseAllOfData.md) | | [optional] -**additional_data** | [**AdditionalData**](AdditionalData.md) | | [optional] -**related_objects** | [**DealFlowResponseAllOfRelatedObjects**](DealFlowResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/PersonFlowResponseAllOfData.md b/docs/PersonFlowResponseAllOfData.md deleted file mode 100644 index c839a45e..00000000 --- a/docs/PersonFlowResponseAllOfData.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.PersonFlowResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**object** | **String** | The type of the person update. (Possible object types - personChange, note, activity, file) | [optional] -**timestamp** | **String** | The creation date and time of the update | [optional] -**data** | **Object** | The data related to the update | [optional] - - diff --git a/docs/PersonItem.md b/docs/PersonItem.md deleted file mode 100644 index dab54f74..00000000 --- a/docs/PersonItem.md +++ /dev/null @@ -1,50 +0,0 @@ -# Pipedrive.PersonItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the person | [optional] -**company_id** | **Number** | The ID of the company related to the person | [optional] -**active_flag** | **Boolean** | Whether the person is active or not | [optional] -**phone** | [**[BasePersonItemPhone]**](BasePersonItemPhone.md) | A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. | [optional] -**email** | [**[BasePersonItemEmail]**](BasePersonItemEmail.md) | An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" } ]`. Please note that only `value` is required. | [optional] -**first_char** | **String** | The first letter of the name of the person | [optional] -**add_time** | **String** | The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS | [optional] -**update_time** | **String** | The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS | [optional] -**visible_to** | **String** | The visibility group ID of who can see the person | [optional] -**picture_id** | [**PictureDataWithID**](PictureDataWithID.md) | | [optional] -**label** | **Number** | The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**org_name** | **String** | The name of the organization associated with the person | [optional] -**owner_name** | **String** | The name of the owner associated with the person | [optional] -**cc_email** | **String** | The BCC email associated with the person | [optional] -**owner_id** | [**Owner**](Owner.md) | | [optional] -**org_id** | [**RelationshipOrganizationInfoItemWithActiveFlag**](RelationshipOrganizationInfoItemWithActiveFlag.md) | | [optional] -**name** | **String** | The name of the person | [optional] -**first_name** | **String** | The first name of the person | [optional] -**last_name** | **String** | The last name of the person | [optional] -**email_messages_count** | **Number** | The count of email messages related to the person | [optional] -**activities_count** | **Number** | The count of activities related to the person | [optional] -**done_activities_count** | **Number** | The count of done activities related to the person | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the person | [optional] -**files_count** | **Number** | The count of files related to the person | [optional] -**notes_count** | **Number** | The count of notes related to the person | [optional] -**followers_count** | **Number** | The count of followers related to the person | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the person | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the person | [optional] -**open_deals_count** | **Number** | The count of open deals related with the item | [optional] -**related_open_deals_count** | **Number** | The count of related open deals related with the item | [optional] -**closed_deals_count** | **Number** | The count of closed deals related with the item | [optional] -**related_closed_deals_count** | **Number** | The count of related closed deals related with the item | [optional] -**won_deals_count** | **Number** | The count of won deals related with the item | [optional] -**related_won_deals_count** | **Number** | The count of related won deals related with the item | [optional] -**lost_deals_count** | **Number** | The count of lost deals related with the item | [optional] -**related_lost_deals_count** | **Number** | The count of related lost deals related with the item | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] - - diff --git a/docs/PersonListProduct.md b/docs/PersonListProduct.md deleted file mode 100644 index 3506dddc..00000000 --- a/docs/PersonListProduct.md +++ /dev/null @@ -1,25 +0,0 @@ -# Pipedrive.PersonListProduct - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the product | [optional] -**company_id** | **Number** | The ID of the company | [optional] -**name** | **String** | The name of the product | [optional] -**code** | **String** | The product code | [optional] -**description** | **String** | The description of the product | [optional] -**unit** | **String** | The unit in which this product is sold | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**category** | **String** | The category of the product | [optional] -**active_flag** | **Boolean** | Whether this product will be made active or not | [optional] [default to true] -**selectable** | **Boolean** | Whether this product can be selected in deals or not | [optional] [default to true] -**first_char** | **String** | The first letter of the product name | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers (private)</td></tr><tr><td>`3`</td><td>Entire company (shared)</td></tr></table> | [optional] -**owner_id** | **Number** | The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used | [optional] -**files_count** | **Number** | The count of files | [optional] -**add_time** | **String** | The date and time when the product was added to the deal | [optional] -**update_time** | **String** | The date and time when the product was updated to the deal | [optional] -**deal_id** | **Number** | The ID of the deal | [optional] - - diff --git a/docs/PersonNameCountAndEmailInfo.md b/docs/PersonNameCountAndEmailInfo.md deleted file mode 100644 index e133da09..00000000 --- a/docs/PersonNameCountAndEmailInfo.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.PersonNameCountAndEmailInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the person | [optional] -**first_name** | **String** | The first name of the person | [optional] -**last_name** | **String** | The last name of the person | [optional] -**email_messages_count** | **Number** | The count of email messages related to the person | [optional] -**activities_count** | **Number** | The count of activities related to the person | [optional] -**done_activities_count** | **Number** | The count of done activities related to the person | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the person | [optional] -**files_count** | **Number** | The count of files related to the person | [optional] -**notes_count** | **Number** | The count of notes related to the person | [optional] -**followers_count** | **Number** | The count of followers related to the person | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the person | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the person | [optional] - - diff --git a/docs/PersonNameCountAndEmailInfoWithIds.md b/docs/PersonNameCountAndEmailInfoWithIds.md deleted file mode 100644 index 3614a813..00000000 --- a/docs/PersonNameCountAndEmailInfoWithIds.md +++ /dev/null @@ -1,23 +0,0 @@ -# Pipedrive.PersonNameCountAndEmailInfoWithIds - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**owner_id** | **Number** | The ID of the owner related to the person | [optional] -**org_id** | **Number** | The ID of the organization related to the person | [optional] -**merge_what_id** | **Number** | The ID of the person with what the main person was merged | [optional] -**name** | **String** | The name of the person | [optional] -**first_name** | **String** | The first name of the person | [optional] -**last_name** | **String** | The last name of the person | [optional] -**email_messages_count** | **Number** | The count of email messages related to the person | [optional] -**activities_count** | **Number** | The count of activities related to the person | [optional] -**done_activities_count** | **Number** | The count of done activities related to the person | [optional] -**undone_activities_count** | **Number** | The count of undone activities related to the person | [optional] -**files_count** | **Number** | The count of files related to the person | [optional] -**notes_count** | **Number** | The count of notes related to the person | [optional] -**followers_count** | **Number** | The count of followers related to the person | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the person | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the person | [optional] - - diff --git a/docs/PersonNameCountAndEmailInfoWithIdsAllOf.md b/docs/PersonNameCountAndEmailInfoWithIdsAllOf.md deleted file mode 100644 index 0670fa5b..00000000 --- a/docs/PersonNameCountAndEmailInfoWithIdsAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.PersonNameCountAndEmailInfoWithIdsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**owner_id** | **Number** | The ID of the owner related to the person | [optional] -**org_id** | **Number** | The ID of the organization related to the person | [optional] -**merge_what_id** | **Number** | The ID of the person with what the main person was merged | [optional] - - diff --git a/docs/PersonNameInfo.md b/docs/PersonNameInfo.md deleted file mode 100644 index 0640a05e..00000000 --- a/docs/PersonNameInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.PersonNameInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the person | [optional] -**first_name** | **String** | The first name of the person | [optional] -**last_name** | **String** | The last name of the person | [optional] - - diff --git a/docs/PersonNameInfoWithOrgAndOwnerId.md b/docs/PersonNameInfoWithOrgAndOwnerId.md deleted file mode 100644 index d179a366..00000000 --- a/docs/PersonNameInfoWithOrgAndOwnerId.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.PersonNameInfoWithOrgAndOwnerId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**owner_id** | [**Owner**](Owner.md) | | [optional] -**org_id** | [**RelationshipOrganizationInfoItemWithActiveFlag**](RelationshipOrganizationInfoItemWithActiveFlag.md) | | [optional] -**name** | **String** | The name of the person | [optional] -**first_name** | **String** | The first name of the person | [optional] -**last_name** | **String** | The last name of the person | [optional] - - diff --git a/docs/PersonSearchItem.md b/docs/PersonSearchItem.md deleted file mode 100644 index a3f5d400..00000000 --- a/docs/PersonSearchItem.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PersonSearchItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result_score** | **Number** | Search result relevancy | [optional] -**item** | [**PersonSearchItemItem**](PersonSearchItemItem.md) | | [optional] - - diff --git a/docs/PersonSearchItemItem.md b/docs/PersonSearchItemItem.md deleted file mode 100644 index f1b88cdd..00000000 --- a/docs/PersonSearchItemItem.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.PersonSearchItemItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the person | [optional] -**type** | **String** | The type of the item | [optional] -**name** | **String** | The name of the person | [optional] -**phones** | **[String]** | An array of phone numbers | [optional] -**emails** | **[String]** | An array of email addresses | [optional] -**visible_to** | **Number** | The visibility of the person | [optional] -**owner** | [**PersonSearchItemItemOwner**](PersonSearchItemItemOwner.md) | | [optional] -**organization** | [**PersonSearchItemItemOrganization**](PersonSearchItemItemOrganization.md) | | [optional] -**custom_fields** | **[String]** | Custom fields | [optional] -**notes** | **[String]** | An array of notes | [optional] - - diff --git a/docs/PersonSearchItemItemOrganization.md b/docs/PersonSearchItemItemOrganization.md deleted file mode 100644 index 34233403..00000000 --- a/docs/PersonSearchItemItemOrganization.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PersonSearchItemItemOrganization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the organization the person is associated with | [optional] -**name** | **String** | The name of the organization the person is associated with | [optional] - - diff --git a/docs/PersonSearchItemItemOwner.md b/docs/PersonSearchItemItemOwner.md deleted file mode 100644 index ccb2e52d..00000000 --- a/docs/PersonSearchItemItemOwner.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PersonSearchItemItemOwner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the owner of the person | [optional] - - diff --git a/docs/PersonSearchResponse.md b/docs/PersonSearchResponse.md deleted file mode 100644 index 97cfd289..00000000 --- a/docs/PersonSearchResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.PersonSearchResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**PersonSearchResponseAllOfData**](PersonSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/PersonSearchResponseAllOf.md b/docs/PersonSearchResponseAllOf.md deleted file mode 100644 index 69322159..00000000 --- a/docs/PersonSearchResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PersonSearchResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PersonSearchResponseAllOfData**](PersonSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/PersonSearchResponseAllOfData.md b/docs/PersonSearchResponseAllOfData.md deleted file mode 100644 index 98090a33..00000000 --- a/docs/PersonSearchResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PersonSearchResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**[PersonSearchItem]**](PersonSearchItem.md) | The array of found items | [optional] - - diff --git a/docs/PersonsApi.md b/docs/PersonsApi.md deleted file mode 100644 index c51ed7ea..00000000 --- a/docs/PersonsApi.md +++ /dev/null @@ -1,1329 +0,0 @@ -# Pipedrive.PersonsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addPerson**](PersonsApi.md#addPerson) | **POST** /persons | Add a person -[**addPersonFollower**](PersonsApi.md#addPersonFollower) | **POST** /persons/{id}/followers | Add a follower to a person -[**addPersonPicture**](PersonsApi.md#addPersonPicture) | **POST** /persons/{id}/picture | Add person picture -[**deletePerson**](PersonsApi.md#deletePerson) | **DELETE** /persons/{id} | Delete a person -[**deletePersonFollower**](PersonsApi.md#deletePersonFollower) | **DELETE** /persons/{id}/followers/{follower_id} | Delete a follower from a person -[**deletePersonPicture**](PersonsApi.md#deletePersonPicture) | **DELETE** /persons/{id}/picture | Delete person picture -[**deletePersons**](PersonsApi.md#deletePersons) | **DELETE** /persons | Delete multiple persons in bulk -[**getPerson**](PersonsApi.md#getPerson) | **GET** /persons/{id} | Get details of a person -[**getPersonActivities**](PersonsApi.md#getPersonActivities) | **GET** /persons/{id}/activities | List activities associated with a person -[**getPersonChangelog**](PersonsApi.md#getPersonChangelog) | **GET** /persons/{id}/changelog | List updates about person field values -[**getPersonDeals**](PersonsApi.md#getPersonDeals) | **GET** /persons/{id}/deals | List deals associated with a person -[**getPersonFiles**](PersonsApi.md#getPersonFiles) | **GET** /persons/{id}/files | List files attached to a person -[**getPersonFollowers**](PersonsApi.md#getPersonFollowers) | **GET** /persons/{id}/followers | List followers of a person -[**getPersonMailMessages**](PersonsApi.md#getPersonMailMessages) | **GET** /persons/{id}/mailMessages | List mail messages associated with a person -[**getPersonProducts**](PersonsApi.md#getPersonProducts) | **GET** /persons/{id}/products | List products associated with a person -[**getPersonUpdates**](PersonsApi.md#getPersonUpdates) | **GET** /persons/{id}/flow | List updates about a person -[**getPersonUsers**](PersonsApi.md#getPersonUsers) | **GET** /persons/{id}/permittedUsers | List permitted users -[**getPersons**](PersonsApi.md#getPersons) | **GET** /persons | Get all persons -[**getPersonsCollection**](PersonsApi.md#getPersonsCollection) | **GET** /persons/collection | Get all persons (BETA) -[**mergePersons**](PersonsApi.md#mergePersons) | **PUT** /persons/{id}/merge | Merge two persons -[**searchPersons**](PersonsApi.md#searchPersons) | **GET** /persons/search | Search persons -[**updatePerson**](PersonsApi.md#updatePerson) | **PUT** /persons/{id} | Update a person - - - -## addPerson - -> AddPersonResponse addPerson(opts) - -Add a person - -Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for `key` values.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let opts = Pipedrive.NewPerson.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addPerson(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **NewPerson** | [**NewPerson**](NewPerson.md)| | [optional] - -### Return type - -[**AddPersonResponse**](AddPersonResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addPersonFollower - -> AddFollowerToPersonResponse addPersonFollower(id, opts) - -Add a follower to a person - -Adds a follower to a person. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -let opts = Pipedrive.AddPersonFollowerRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addPersonFollower(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **AddPersonFollowerRequest** | [**AddPersonFollowerRequest**](AddPersonFollowerRequest.md)| | [optional] - -### Return type - -[**AddFollowerToPersonResponse**](AddFollowerToPersonResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addPersonPicture - -> AddPersonPictureResponse addPersonPicture(id, file, opts) - -Add person picture - -Adds a picture to a person. If a picture is already set, the old picture will be replaced. Added image (or the cropping parameters supplied with the request) should have an equal width and height and should be at least 128 pixels. GIF, JPG and PNG are accepted. All added images will be resized to 128 and 512 pixel wide squares. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -let file = "/path/to/file"; // File | One image supplied in the multipart/form-data encoding -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'cropX': 56, // Number | X coordinate to where start cropping form (in pixels) - 'cropY': 56, // Number | Y coordinate to where start cropping form (in pixels) - 'cropWidth': 56, // Number | The width of the cropping area (in pixels) - 'cropHeight': 56 // Number | The height of the cropping area (in pixels) -}; -apiInstance.addPersonPicture(id, file, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **file** | **File**| One image supplied in the multipart/form-data encoding | - **crop_x** | **Number**| X coordinate to where start cropping form (in pixels) | [optional] - **crop_y** | **Number**| Y coordinate to where start cropping form (in pixels) | [optional] - **crop_width** | **Number**| The width of the cropping area (in pixels) | [optional] - **crop_height** | **Number**| The height of the cropping area (in pixels) | [optional] - -### Return type - -[**AddPersonPictureResponse**](AddPersonPictureResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: multipart/form-data -- **Accept**: application/json - - -## deletePerson - -> DeletePersonResponse deletePerson(id) - -Delete a person - -Marks a person as deleted. After 30 days, the person will be permanently deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -apiInstance.deletePerson(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - -### Return type - -[**DeletePersonResponse**](DeletePersonResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deletePersonFollower - -> DeletePersonResponse deletePersonFollower(id, followerId) - -Delete a follower from a person - -Deletes a follower from a person. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -let followerId = 56; // Number | The ID of the follower -apiInstance.deletePersonFollower(id, followerId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **follower_id** | **Number**| The ID of the follower | - -### Return type - -[**DeletePersonResponse**](DeletePersonResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deletePersonPicture - -> DeletePersonResponse deletePersonPicture(id) - -Delete person picture - -Deletes a person’s picture. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -apiInstance.deletePersonPicture(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - -### Return type - -[**DeletePersonResponse**](DeletePersonResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deletePersons - -> DeletePersonsInBulkResponse deletePersons(ids) - -Delete multiple persons in bulk - -Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let ids = "ids_example"; // String | The comma-separated IDs that will be deleted -apiInstance.deletePersons(ids).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ids** | **String**| The comma-separated IDs that will be deleted | - -### Return type - -[**DeletePersonsInBulkResponse**](DeletePersonsInBulkResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPerson - -> GetPersonDetailsResponse getPerson(id) - -Get details of a person - -Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -apiInstance.getPerson(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - -### Return type - -[**GetPersonDetailsResponse**](GetPersonDetailsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonActivities - -> ListActivitiesResponse getPersonActivities(id, opts) - -List activities associated with a person - -Lists activities associated with a person. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'done': new Pipedrive.NumberBoolean(), // NumberBoolean | Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - 'exclude': "exclude_example" // String | A comma-separated string of activity IDs to exclude from result -}; -apiInstance.getPersonActivities(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **done** | [**NumberBoolean**](.md)| Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. | [optional] - **exclude** | **String**| A comma-separated string of activity IDs to exclude from result | [optional] - -### Return type - -[**ListActivitiesResponse**](ListActivitiesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonChangelog - -> ChangelogResponse getPersonChangelog(id, opts) - -List updates about person field values - -Lists updates about field values of a person. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getPersonChangelog(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ChangelogResponse**](ChangelogResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonDeals - -> ListDealsResponse getPersonDeals(id, opts) - -List deals associated with a person - -Lists deals associated with a person. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'status': "'all_not_deleted'", // String | 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. - 'sort': "sort_example" // String | 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). -}; -apiInstance.getPersonDeals(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **status** | **String**| 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. | [optional] [default to 'all_not_deleted'] - **sort** | **String**| 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). | [optional] - -### Return type - -[**ListDealsResponse**](ListDealsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonFiles - -> ListFilesResponse getPersonFiles(id, opts) - -List files attached to a person - -Lists files associated with a person. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'sort': "sort_example" // String | 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`. -}; -apiInstance.getPersonFiles(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **sort** | **String**| 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`. | [optional] - -### Return type - -[**ListFilesResponse**](ListFilesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonFollowers - -> ListFollowersResponse getPersonFollowers(id) - -List followers of a person - -Lists the followers of a person. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -apiInstance.getPersonFollowers(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - -### Return type - -[**ListFollowersResponse**](ListFollowersResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonMailMessages - -> ListMailMessagesResponse getPersonMailMessages(id, opts) - -List mail messages associated with a person - -Lists mail messages associated with a person. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getPersonMailMessages(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ListMailMessagesResponse**](ListMailMessagesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonProducts - -> ListPersonProductsResponse getPersonProducts(id, opts) - -List products associated with a person - -Lists products associated with a person. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getPersonProducts(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ListPersonProductsResponse**](ListPersonProductsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonUpdates - -> PersonFlowResponse getPersonUpdates(id, opts) - -List updates about a person - -Lists updates about a person.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint's response will also include updates for the `marketing_status` field. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'allChanges': "allChanges_example", // String | Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. - 'items': "items_example" // String | A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). -}; -apiInstance.getPersonUpdates(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **all_changes** | **String**| Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. | [optional] - **items** | **String**| A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). | [optional] - -### Return type - -[**PersonFlowResponse**](PersonFlowResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonUsers - -> ListPermittedUsersResponse1 getPersonUsers(id) - -List permitted users - -List users permitted to access a person. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -apiInstance.getPersonUsers(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - -### Return type - -[**ListPermittedUsersResponse1**](ListPermittedUsersResponse1.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersons - -> GetAllPersonsResponse getPersons(opts) - -Get all persons - -Returns all persons. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'userId': 56, // Number | If supplied, only persons owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - 'filterId': 56, // Number | The ID of the filter to use - 'firstChar': "firstChar_example", // String | If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'sort': "sort_example" // String | 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). -}; -apiInstance.getPersons(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user_id** | **Number**| If supplied, only persons owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. | [optional] - **filter_id** | **Number**| The ID of the filter to use | [optional] - **first_char** | **String**| If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) | [optional] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **sort** | **String**| 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). | [optional] - -### Return type - -[**GetAllPersonsResponse**](GetAllPersonsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPersonsCollection - -> InlineResponse2002 getPersonsCollection(opts) - -Get all persons (BETA) - -Returns all persons. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions <a href=\"https://support.pipedrive.com/en/article/global-user-management\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page - 'limit': 100, // Number | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - 'since': "since_example", // String | The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - 'until': "until_example", // String | The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - 'ownerId': 56, // Number | If supplied, only persons owned by the given user will be returned - 'firstChar': "firstChar_example" // String | If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) -}; -apiInstance.getPersonsCollection(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] - **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. | [optional] - **since** | **String**| The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. | [optional] - **until** | **String**| The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. | [optional] - **owner_id** | **Number**| If supplied, only persons owned by the given user will be returned | [optional] - **first_char** | **String**| If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) | [optional] - -### Return type - -[**InlineResponse2002**](InlineResponse2002.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## mergePersons - -> MergePersonsResponse mergePersons(id, opts) - -Merge two persons - -Merges a person with another person. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/merging-two-persons\" target=\"_blank\" rel=\"noopener noreferrer\">merging two persons</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -let opts = Pipedrive.MergePersonsRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.mergePersons(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **MergePersonsRequest** | [**MergePersonsRequest**](MergePersonsRequest.md)| | [optional] - -### Return type - -[**MergePersonsResponse**](MergePersonsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## searchPersons - -> PersonSearchResponse searchPersons(term, opts) - -Search persons - -Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> with a narrower OAuth scope. Found persons can be filtered by organization ID. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let term = "term_example"; // String | 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. -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'fields': "fields_example", // String | A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - 'exactMatch': true, // Boolean | When enabled, only full exact matches against the given term are returned. It is not case sensitive. - 'organizationId': 56, // Number | Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. - 'includeFields': "includeFields_example", // String | Supports including optional fields in the results which are not provided by default - 'start': 0, // Number | Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - 'limit': 56 // Number | Items shown per page -}; -apiInstance.searchPersons(term, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **term** | **String**| 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. | - **fields** | **String**| A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. | [optional] - **exact_match** | **Boolean**| When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. | [optional] - **organization_id** | **Number**| Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. | [optional] - **include_fields** | **String**| Supports including optional fields in the results which are not provided by default | [optional] - **start** | **Number**| Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**PersonSearchResponse**](PersonSearchResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updatePerson - -> UpdatePersonResponse updatePerson(id, opts) - -Update a person - -Updates the properties of a person. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/updating-a-person\" target=\"_blank\" rel=\"noopener noreferrer\">updating a person</a>.<br>If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PersonsApi(apiClient); -let id = 56; // Number | The ID of the person -let opts = Pipedrive.UpdatePerson.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updatePerson(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the person | - **UpdatePerson** | [**UpdatePerson**](UpdatePerson.md)| | [optional] - -### Return type - -[**UpdatePersonResponse**](UpdatePersonResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/PersonsCollectionResponseObject.md b/docs/PersonsCollectionResponseObject.md deleted file mode 100644 index afba5d0d..00000000 --- a/docs/PersonsCollectionResponseObject.md +++ /dev/null @@ -1,23 +0,0 @@ -# Pipedrive.PersonsCollectionResponseObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the person | [optional] -**active_flag** | **Boolean** | Whether the person is active or not | [optional] -**owner_id** | **Number** | The ID of the owner related to the person | [optional] -**org_id** | **Number** | The ID of the organization related to the person | [optional] -**name** | **String** | The name of the person | [optional] -**email** | [**[BasicPersonEmail]**](BasicPersonEmail.md) | An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. | [optional] -**phone** | [**[BasePersonItemPhone]**](BasePersonItemPhone.md) | A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. | [optional] -**update_time** | **String** | The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS | [optional] -**delete_time** | **String** | The date and time this person was deleted. Format: YYYY-MM-DD HH:MM:SS | [optional] -**add_time** | **String** | The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS | [optional] -**visible_to** | **String** | The visibility group ID of who can see the person | [optional] -**picture_id** | **Number** | The ID of the picture associated with the item | [optional] -**label** | **Number** | The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**cc_email** | **String** | The BCC email associated with the person | [optional] - - diff --git a/docs/PictureData.md b/docs/PictureData.md deleted file mode 100644 index 7b4d30d2..00000000 --- a/docs/PictureData.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.PictureData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_type** | **String** | The type of item the picture is related to | [optional] -**item_id** | **Number** | The ID of related item | [optional] -**active_flag** | **Boolean** | Whether the associated picture is active or not | [optional] -**add_time** | **String** | The add time of the picture | [optional] -**update_time** | **String** | The update time of the picture | [optional] -**added_by_user_id** | **Number** | The ID of the user who added the picture | [optional] -**pictures** | [**PictureDataPictures**](PictureDataPictures.md) | | [optional] - - diff --git a/docs/PictureDataPictures.md b/docs/PictureDataPictures.md deleted file mode 100644 index 76b029a9..00000000 --- a/docs/PictureDataPictures.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PictureDataPictures - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**128** | **String** | The URL of the 128*128 picture | [optional] -**512** | **String** | The URL of the 512*512 picture | [optional] - - diff --git a/docs/PictureDataWithID.md b/docs/PictureDataWithID.md deleted file mode 100644 index 8f1fc6f4..00000000 --- a/docs/PictureDataWithID.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.PictureDataWithID - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the picture associated with the item | [optional] -**item_type** | **String** | The type of item the picture is related to | [optional] -**item_id** | **Number** | The ID of related item | [optional] -**active_flag** | **Boolean** | Whether the associated picture is active or not | [optional] -**add_time** | **String** | The add time of the picture | [optional] -**update_time** | **String** | The update time of the picture | [optional] -**added_by_user_id** | **Number** | The ID of the user who added the picture | [optional] -**pictures** | [**PictureDataPictures**](PictureDataPictures.md) | | [optional] - - diff --git a/docs/PictureDataWithIDAllOf.md b/docs/PictureDataWithIDAllOf.md deleted file mode 100644 index 773d2eb2..00000000 --- a/docs/PictureDataWithIDAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PictureDataWithIDAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the picture associated with the item | [optional] - - diff --git a/docs/PictureDataWithValue.md b/docs/PictureDataWithValue.md deleted file mode 100644 index b84f16b2..00000000 --- a/docs/PictureDataWithValue.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.PictureDataWithValue - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **Number** | The ID of the picture associated with the item | [optional] -**item_type** | **String** | The type of item the picture is related to | [optional] -**item_id** | **Number** | The ID of related item | [optional] -**active_flag** | **Boolean** | Whether the associated picture is active or not | [optional] -**add_time** | **String** | The add time of the picture | [optional] -**update_time** | **String** | The update time of the picture | [optional] -**added_by_user_id** | **Number** | The ID of the user who added the picture | [optional] -**pictures** | [**PictureDataPictures**](PictureDataPictures.md) | | [optional] - - diff --git a/docs/PictureDataWithValueAllOf.md b/docs/PictureDataWithValueAllOf.md deleted file mode 100644 index 63fe5565..00000000 --- a/docs/PictureDataWithValueAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PictureDataWithValueAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **Number** | The ID of the picture associated with the item | [optional] - - diff --git a/docs/Pipeline.md b/docs/Pipeline.md deleted file mode 100644 index 918c4dc9..00000000 --- a/docs/Pipeline.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.Pipeline - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the pipeline | [optional] -**deal_probability** | [**NumberBoolean**](NumberBoolean.md) | Whether deal probability is disabled or enabled for this pipeline | [optional] -**order_nr** | **Number** | Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. | [optional] -**active** | [**NumberBoolean**](NumberBoolean.md) | Whether this pipeline will be made inactive (hidden) or active | [optional] - - diff --git a/docs/PipelineDetails.md b/docs/PipelineDetails.md deleted file mode 100644 index 82787100..00000000 --- a/docs/PipelineDetails.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.PipelineDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the pipeline | [optional] -**name** | **String** | The name of the pipeline | [optional] -**url_title** | **String** | The pipeline title displayed in the URL | [optional] -**order_nr** | **Number** | Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. | [optional] -**active** | **Boolean** | Whether this pipeline will be made inactive (hidden) or active | [optional] -**deal_probability** | **Boolean** | Whether deal probability is disabled or enabled for this pipeline | [optional] -**add_time** | **String** | The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The pipeline update time. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**selected** | **Boolean** | A boolean that shows if the pipeline is selected from a filter or not | [optional] -**deals_summary** | [**DealSummary**](DealSummary.md) | | [optional] - - diff --git a/docs/PipelineDetailsAllOf.md b/docs/PipelineDetailsAllOf.md deleted file mode 100644 index 8b4e6012..00000000 --- a/docs/PipelineDetailsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PipelineDetailsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**deals_summary** | [**DealSummary**](DealSummary.md) | | [optional] - - diff --git a/docs/PipelinesApi.md b/docs/PipelinesApi.md deleted file mode 100644 index 5cf41d3d..00000000 --- a/docs/PipelinesApi.md +++ /dev/null @@ -1,484 +0,0 @@ -# Pipedrive.PipelinesApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addPipeline**](PipelinesApi.md#addPipeline) | **POST** /pipelines | Add a new pipeline -[**deletePipeline**](PipelinesApi.md#deletePipeline) | **DELETE** /pipelines/{id} | Delete a pipeline -[**getPipeline**](PipelinesApi.md#getPipeline) | **GET** /pipelines/{id} | Get one pipeline -[**getPipelineConversionStatistics**](PipelinesApi.md#getPipelineConversionStatistics) | **GET** /pipelines/{id}/conversion_statistics | Get deals conversion rates in pipeline -[**getPipelineDeals**](PipelinesApi.md#getPipelineDeals) | **GET** /pipelines/{id}/deals | Get deals in a pipeline -[**getPipelineMovementStatistics**](PipelinesApi.md#getPipelineMovementStatistics) | **GET** /pipelines/{id}/movement_statistics | Get deals movements in pipeline -[**getPipelines**](PipelinesApi.md#getPipelines) | **GET** /pipelines | Get all pipelines -[**updatePipeline**](PipelinesApi.md#updatePipeline) | **PUT** /pipelines/{id} | Update a pipeline - - - -## addPipeline - -> AddNewPipeline addPipeline(opts) - -Add a new pipeline - -Adds a new pipeline. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PipelinesApi(apiClient); -let opts = Pipedrive.Pipeline.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addPipeline(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **Pipeline** | [**Pipeline**](Pipeline.md)| | [optional] - -### Return type - -[**AddNewPipeline**](AddNewPipeline.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deletePipeline - -> DeletePipelineResponse deletePipeline(id) - -Delete a pipeline - -Marks a pipeline as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PipelinesApi(apiClient); -let id = 56; // Number | The ID of the pipeline -apiInstance.deletePipeline(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the pipeline | - -### Return type - -[**DeletePipelineResponse**](DeletePipelineResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPipeline - -> GetOnePipeline getPipeline(id, opts) - -Get one pipeline - -Returns data about a specific pipeline. Also returns the summary of the deals in this pipeline across its stages. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PipelinesApi(apiClient); -let id = 56; // Number | The ID of the pipeline -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'totalsConvertCurrency': "totalsConvertCurrency_example" // String | The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned in `deals_summary` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. -}; -apiInstance.getPipeline(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the pipeline | - **totals_convert_currency** | **String**| The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned in `deals_summary` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. | [optional] - -### Return type - -[**GetOnePipeline**](GetOnePipeline.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPipelineConversionStatistics - -> GetDealsConversionRatesInPipeline getPipelineConversionStatistics(id, startDate, endDate, opts) - -Get deals conversion rates in pipeline - -Returns all stage-to-stage conversion and pipeline-to-close rates for the given time period. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PipelinesApi(apiClient); -let id = 56; // Number | The ID of the pipeline -let startDate = new Date("2013-10-20"); // Date | The start of the period. Date in format of YYYY-MM-DD. -let endDate = new Date("2013-10-20"); // Date | The end of the period. Date in format of YYYY-MM-DD. -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'userId': 56 // Number | The ID of the user who's pipeline metrics statistics to fetch. If omitted, the authorized user will be used. -}; -apiInstance.getPipelineConversionStatistics(id, startDate, endDate, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the pipeline | - **start_date** | **Date**| The start of the period. Date in format of YYYY-MM-DD. | - **end_date** | **Date**| The end of the period. Date in format of YYYY-MM-DD. | - **user_id** | **Number**| The ID of the user who's pipeline metrics statistics to fetch. If omitted, the authorized user will be used. | [optional] - -### Return type - -[**GetDealsConversionRatesInPipeline**](GetDealsConversionRatesInPipeline.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPipelineDeals - -> GetStageDeals getPipelineDeals(id, opts) - -Get deals in a pipeline - -Lists deals in a specific pipeline across all its stages. If no parameters are provided open deals owned by the authorized user will be returned. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PipelinesApi(apiClient); -let id = 56; // Number | The ID of the pipeline -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'filterId': 56, // Number | If supplied, only deals matching the given filter will be returned - 'userId': 56, // Number | If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. - 'everyone': new Pipedrive.NumberBoolean(), // NumberBoolean | If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned - 'stageId': 56, // Number | If supplied, only deals within the given stage will be returned - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'getSummary': new Pipedrive.NumberBoolean(), // NumberBoolean | Whether to include a summary of the pipeline in the `additional_data` or not - 'totalsConvertCurrency': "totalsConvertCurrency_example" // String | The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned inside `deals_summary` inside `additional_data` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. Only works when `get_summary` parameter flag is enabled. -}; -apiInstance.getPipelineDeals(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the pipeline | - **filter_id** | **Number**| If supplied, only deals matching the given filter will be returned | [optional] - **user_id** | **Number**| If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. | [optional] - **everyone** | [**NumberBoolean**](.md)| If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned | [optional] - **stage_id** | **Number**| If supplied, only deals within the given stage will be returned | [optional] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **get_summary** | [**NumberBoolean**](.md)| Whether to include a summary of the pipeline in the `additional_data` or not | [optional] - **totals_convert_currency** | **String**| The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned inside `deals_summary` inside `additional_data` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. Only works when `get_summary` parameter flag is enabled. | [optional] - -### Return type - -[**GetStageDeals**](GetStageDeals.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPipelineMovementStatistics - -> GetDealsMovementsInPipeline getPipelineMovementStatistics(id, startDate, endDate, opts) - -Get deals movements in pipeline - -Returns statistics for deals movements for the given time period. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PipelinesApi(apiClient); -let id = 56; // Number | The ID of the pipeline -let startDate = new Date("2013-10-20"); // Date | The start of the period. Date in format of YYYY-MM-DD. -let endDate = new Date("2013-10-20"); // Date | The end of the period. Date in format of YYYY-MM-DD. -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'userId': 56 // Number | The ID of the user who's pipeline statistics to fetch. If omitted, the authorized user will be used. -}; -apiInstance.getPipelineMovementStatistics(id, startDate, endDate, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the pipeline | - **start_date** | **Date**| The start of the period. Date in format of YYYY-MM-DD. | - **end_date** | **Date**| The end of the period. Date in format of YYYY-MM-DD. | - **user_id** | **Number**| The ID of the user who's pipeline statistics to fetch. If omitted, the authorized user will be used. | [optional] - -### Return type - -[**GetDealsMovementsInPipeline**](GetDealsMovementsInPipeline.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getPipelines - -> GetAllPipelines getPipelines() - -Get all pipelines - -Returns data about all pipelines. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PipelinesApi(apiClient); -apiInstance.getPipelines().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**GetAllPipelines**](GetAllPipelines.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updatePipeline - -> EditPipeline updatePipeline(id, opts) - -Update a pipeline - -Updates the properties of a pipeline. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.PipelinesApi(apiClient); -let id = 56; // Number | The ID of the pipeline -let opts = Pipedrive.Pipeline.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updatePipeline(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the pipeline | - **Pipeline** | [**Pipeline**](Pipeline.md)| | [optional] - -### Return type - -[**EditPipeline**](EditPipeline.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/PostComment.md b/docs/PostComment.md deleted file mode 100644 index c5a2cb66..00000000 --- a/docs/PostComment.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PostComment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**BaseComment**](BaseComment.md) | | [optional] - - diff --git a/docs/PostDealParticipants.md b/docs/PostDealParticipants.md deleted file mode 100644 index 8bc3beea..00000000 --- a/docs/PostDealParticipants.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.PostDealParticipants - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**PersonItem**](PersonItem.md) | The object of participant | [optional] -**related_objects** | [**PostDealParticipantsRelatedObjects**](PostDealParticipantsRelatedObjects.md) | | [optional] - - diff --git a/docs/PostDealParticipantsRelatedObjects.md b/docs/PostDealParticipantsRelatedObjects.md deleted file mode 100644 index f05d0f27..00000000 --- a/docs/PostDealParticipantsRelatedObjects.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PostDealParticipantsRelatedObjects - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**RelatedUserData**](RelatedUserData.md) | | [optional] -**person** | [**RelatedPersonDataWithActiveFlag**](RelatedPersonDataWithActiveFlag.md) | | [optional] - - diff --git a/docs/PostGoalResponse.md b/docs/PostGoalResponse.md deleted file mode 100644 index d91de389..00000000 --- a/docs/PostGoalResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PostGoalResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**goal** | [**GoalsResponseComponent**](GoalsResponseComponent.md) | | [optional] - - diff --git a/docs/PostNote.md b/docs/PostNote.md deleted file mode 100644 index 0e08fe81..00000000 --- a/docs/PostNote.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PostNote - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**BaseNote**](BaseNote.md) | | [optional] - - diff --git a/docs/PostRoleAssignment.md b/docs/PostRoleAssignment.md deleted file mode 100644 index 4097a0cb..00000000 --- a/docs/PostRoleAssignment.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PostRoleAssignment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**PostRoleAssignmentAllOfData**](PostRoleAssignmentAllOfData.md) | | [optional] - - diff --git a/docs/PostRoleAssignmentAllOf.md b/docs/PostRoleAssignmentAllOf.md deleted file mode 100644 index def9acc2..00000000 --- a/docs/PostRoleAssignmentAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PostRoleAssignmentAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PostRoleAssignmentAllOfData**](PostRoleAssignmentAllOfData.md) | | [optional] - - diff --git a/docs/PostRoleAssignmentAllOfData.md b/docs/PostRoleAssignmentAllOfData.md deleted file mode 100644 index 236a955e..00000000 --- a/docs/PostRoleAssignmentAllOfData.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PostRoleAssignmentAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user that was added to the role | [optional] -**role_id** | **Number** | The ID of the role the user was added to | [optional] - - diff --git a/docs/PostRoleSettings.md b/docs/PostRoleSettings.md deleted file mode 100644 index 4a408290..00000000 --- a/docs/PostRoleSettings.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PostRoleSettings - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**PostRoleSettingsAllOfData**](PostRoleSettingsAllOfData.md) | | [optional] - - diff --git a/docs/PostRoleSettingsAllOf.md b/docs/PostRoleSettingsAllOf.md deleted file mode 100644 index cac740bf..00000000 --- a/docs/PostRoleSettingsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PostRoleSettingsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PostRoleSettingsAllOfData**](PostRoleSettingsAllOfData.md) | | [optional] - - diff --git a/docs/PostRoleSettingsAllOfData.md b/docs/PostRoleSettingsAllOfData.md deleted file mode 100644 index 493ba327..00000000 --- a/docs/PostRoleSettingsAllOfData.md +++ /dev/null @@ -1,25 +0,0 @@ -# Pipedrive.PostRoleSettingsAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the role | [optional] -**deal_default_visibility** | **Number** | The setting | [optional] - - - -## Enum: DealDefaultVisibilityEnum - - -* `1` (value: `1`) - -* `3` (value: `3`) - -* `5` (value: `5`) - -* `7` (value: `7`) - - - - diff --git a/docs/PostRoles.md b/docs/PostRoles.md deleted file mode 100644 index c8c541a0..00000000 --- a/docs/PostRoles.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PostRoles - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**PostRolesAllOfData**](PostRolesAllOfData.md) | | [optional] - - diff --git a/docs/PostRolesAllOf.md b/docs/PostRolesAllOf.md deleted file mode 100644 index 8ce47ec6..00000000 --- a/docs/PostRolesAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PostRolesAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PostRolesAllOfData**](PostRolesAllOfData.md) | | [optional] - - diff --git a/docs/PostRolesAllOfData.md b/docs/PostRolesAllOfData.md deleted file mode 100644 index 4ab9990e..00000000 --- a/docs/PostRolesAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PostRolesAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the created role | [optional] - - diff --git a/docs/Product.md b/docs/Product.md deleted file mode 100644 index 8fcfcc6e..00000000 --- a/docs/Product.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.Product - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the product | [optional] -**name** | **String** | The name of the product | [optional] -**code** | **String** | Product code | [optional] -**unit** | **String** | The unit in which this product is sold | [optional] -**tax** | **Number** | Tax percentage | [optional] [default to 0] -**activeFlag** | [**NumberBooleanDefault1**](NumberBooleanDefault1.md) | | [optional] -**selectable** | [**NumberBooleanDefault1**](NumberBooleanDefault1.md) | | [optional] -**visibleTo** | [**VisibleTo**](VisibleTo.md) | Visibility of the product | [optional] -**ownerId** | **Object** | Information about the Pipedrive User who owns the product | [optional] -**prices** | **[Object]** | Array of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) | [optional] - - diff --git a/docs/ProductAttachementFields.md b/docs/ProductAttachementFields.md deleted file mode 100644 index 5f0b740c..00000000 --- a/docs/ProductAttachementFields.md +++ /dev/null @@ -1,19 +0,0 @@ -# Pipedrive.ProductAttachementFields - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal-product (the ID of the product attached to the deal) | [optional] -**company_id** | **Number** | The ID of the company | [optional] -**deal_id** | **Number** | The ID of the deal | [optional] -**product_id** | **Number** | The ID of the product | [optional] -**sum** | **Number** | The sum of all the products attached to the deal | [optional] -**currency** | **String** | The currency associated with the deal product | [optional] -**add_time** | **String** | The date and time when the product was added to the deal | [optional] -**last_edit** | **String** | The date and time when the deal product was last edited | [optional] -**active_flag** | **Boolean** | Whether the product is active or not | [optional] -**tax** | **Number** | The product tax | [optional] -**name** | **String** | The product name | [optional] - - diff --git a/docs/ProductAttachmentDetails.md b/docs/ProductAttachmentDetails.md deleted file mode 100644 index aa677a8d..00000000 --- a/docs/ProductAttachmentDetails.md +++ /dev/null @@ -1,54 +0,0 @@ -# Pipedrive.ProductAttachmentDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_id** | **Number** | The ID of the product | [optional] -**item_price** | **Number** | The price at which this product will be added to the deal | [optional] -**quantity** | **Number** | Quantity – e.g. how many items of this product will be added to the deal | [optional] -**discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] -**discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] -**comments** | **String** | A textual comment associated with this product-deal attachment | [optional] -**tax** | **Number** | The product tax | [optional] -**tax_method** | **String** | The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal | [optional] -**enabled_flag** | **Boolean** | Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default | [optional] [default to true] -**billing_frequency** | [**BillingFrequency**](BillingFrequency.md) | | [optional] -**billing_frequency_cycles** | **Number** | Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 | [optional] -**billing_start_date** | **String** | Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future | [optional] -**id** | **Number** | The ID of the deal-product (the ID of the product attached to the deal) | [optional] -**company_id** | **Number** | The ID of the company | [optional] -**deal_id** | **Number** | The ID of the deal | [optional] -**sum** | **Number** | The sum of all the products attached to the deal | [optional] -**currency** | **String** | The currency associated with the deal product | [optional] -**add_time** | **String** | The date and time when the product was added to the deal | [optional] -**last_edit** | **String** | The date and time when the deal product was last edited | [optional] -**active_flag** | **Boolean** | Whether the product is active or not | [optional] -**name** | **String** | The product name | [optional] - - - -## Enum: DiscountTypeEnum - - -* `percentage` (value: `"percentage"`) - -* `amount` (value: `"amount"`) - - - - - -## Enum: TaxMethodEnum - - -* `exclusive` (value: `"exclusive"`) - -* `inclusive` (value: `"inclusive"`) - -* `none` (value: `"none"`) - - - - diff --git a/docs/ProductBaseDeal.md b/docs/ProductBaseDeal.md deleted file mode 100644 index db52c293..00000000 --- a/docs/ProductBaseDeal.md +++ /dev/null @@ -1,51 +0,0 @@ -# Pipedrive.ProductBaseDeal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal | [optional] -**company_id** | **Number** | The ID of the company | [optional] -**creator_user_id** | **Number** | The ID of the deal creator | [optional] -**user_id** | **Number** | The ID of the user | [optional] -**person_id** | **Number** | The ID of the person associated with the deal | [optional] -**org_id** | **Number** | The ID of the organization associated with the deal | [optional] -**stage_id** | **Number** | The ID of the deal stage | [optional] -**title** | **String** | The title of the deal | [optional] -**value** | **Number** | The value of the deal | [optional] -**currency** | **String** | The currency associated with the deal | [optional] -**add_time** | **String** | The creation date and time of the deal | [optional] -**first_add_time** | **String** | The first creation date and time of the deal | [optional] -**update_time** | **String** | The last updated date and time of the deal | [optional] -**stage_change_time** | **String** | The last updated date and time of the deal stage | [optional] -**active** | **Boolean** | Whether the deal is active or not | [optional] -**deleted** | **Boolean** | Whether the deal is deleted or not | [optional] -**status** | **String** | The status of the deal | [optional] -**probability** | **Number** | The success probability percentage of the deal | [optional] -**next_activity_date** | **String** | The date of the next activity associated with the deal | [optional] -**next_activity_time** | **String** | The time of the next activity associated with the deal | [optional] -**next_activity_id** | **Number** | The ID of the next activity associated with the deal | [optional] -**last_activity_id** | **Number** | The ID of the last activity associated with the deal | [optional] -**last_activity_date** | **String** | The date of the last activity associated with the deal | [optional] -**lost_reason** | **String** | The reason for losing the deal | [optional] -**visible_to** | **String** | The visibility of the deal | [optional] -**close_time** | **String** | The date and time of closing the deal | [optional] -**pipeline_id** | **Number** | The ID of the pipeline associated with the deal | [optional] -**won_time** | **String** | The date and time of changing the deal status as won | [optional] -**first_won_time** | **String** | The date and time of the first time changing the deal status as won | [optional] -**lost_time** | **String** | The date and time of changing the deal status as lost | [optional] -**products_count** | **Number** | The number of products associated with the deal | [optional] -**files_count** | **Number** | The number of files associated with the deal | [optional] -**notes_count** | **Number** | The number of notes associated with the deal | [optional] -**followers_count** | **Number** | The number of followers associated with the deal | [optional] -**email_messages_count** | **Number** | The number of emails associated with the deal | [optional] -**activities_count** | **Number** | The number of activities associated with the deal | [optional] -**done_activities_count** | **Number** | The number of completed activities associated with the deal | [optional] -**undone_activities_count** | **Number** | The number of incomplete activities associated with the deal | [optional] -**participants_count** | **Number** | The number of participants associated with the deal | [optional] -**expected_close_date** | **Date** | The expected close date of the deal | [optional] -**last_incoming_mail_time** | **String** | The date and time of the last incoming email associated with the deal | [optional] -**last_outgoing_mail_time** | **String** | The date and time of the last outgoing email associated with the deal | [optional] -**label** | **String** | The label or multiple labels assigned to the deal | [optional] - - diff --git a/docs/ProductField.md b/docs/ProductField.md deleted file mode 100644 index 5b73cd1a..00000000 --- a/docs/ProductField.md +++ /dev/null @@ -1,66 +0,0 @@ -# Pipedrive.ProductField - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the field | -**options** | **[Object]** | When `field_type` is either `set` or `enum`, possible options must be supplied as a JSON-encoded sequential array, for example:</br>`[{\"label\":\"red\"}, {\"label\":\"blue\"}, {\"label\":\"lilac\"}]` | [optional] -**field_type** | **String** | The type of the field<table><tr><th>Value</th><th>Description</th></tr><tr><td>`varchar`</td><td>Text (up to 255 characters)</td><tr><td>`varchar_auto`</td><td>Autocomplete text (up to 255 characters)</td><tr><td>`text`</td><td>Long text (up to 65k characters)</td><tr><td>`double`</td><td>Numeric value</td><tr><td>`monetary`</td><td>Monetary field (has a numeric value and a currency value)</td><tr><td>`date`</td><td>Date (format YYYY-MM-DD)</td><tr><td>`set`</td><td>Options field with a possibility of having multiple chosen options</td><tr><td>`enum`</td><td>Options field with a single possible chosen option</td><tr><td>`user`</td><td>User field (contains a user ID of another Pipedrive user)</td><tr><td>`org`</td><td>Organization field (contains an organization ID which is stored on the same account)</td><tr><td>`people`</td><td>Person field (contains a product ID which is stored on the same account)</td><tr><td>`phone`</td><td>Phone field (up to 255 numbers and/or characters)</td><tr><td>`time`</td><td>Time field (format HH:MM:SS)</td><tr><td>`timerange`</td><td>Time-range field (has a start time and end time value, both HH:MM:SS)</td><tr><td>`daterange`</td><td>Date-range field (has a start date and end date value, both YYYY-MM-DD)</td><tr><td>`address`</td><td>Address field</dd></table> | -**id** | **Number** | The ID of the product field | [optional] -**key** | **String** | The key of the product field | [optional] -**order_nr** | **Number** | The position (index) of the product field in the detail view | [optional] -**add_time** | **String** | The product field creation time. Format: YYYY-MM-DD HH:MM:SS | [optional] -**update_time** | **String** | The product field last update time. Format: YYYY-MM-DD HH:MM:SS | [optional] -**last_updated_by_user_id** | **Number** | The ID of the last user to update the product field | [optional] -**created_by_user_id** | **Number** | The ID of the user who created the product field | [optional] -**active_flag** | **Boolean** | Whether or not the product field is currently active | [optional] -**edit_flag** | **Boolean** | Whether or not the product field name and metadata is editable | [optional] -**add_visible_flag** | **Boolean** | Whether or not the product field is visible in the Add Product Modal | [optional] -**important_flag** | **Boolean** | Whether or not the product field is marked as important | [optional] -**bulk_edit_allowed** | **Boolean** | Whether or not the product field data can be edited | [optional] -**searchable_flag** | **Boolean** | Whether or not the product field is searchable | [optional] -**filtering_allowed** | **Boolean** | Whether or not the product field value can be used when filtering searches | [optional] -**sortable_flag** | **Boolean** | Whether or not the product field is sortable | [optional] -**mandatory_flag** | **Boolean** | Whether or not the product field is mandatory when creating products | [optional] - - - -## Enum: FieldTypeEnum - - -* `varchar` (value: `"varchar"`) - -* `varchar_auto` (value: `"varchar_auto"`) - -* `text` (value: `"text"`) - -* `double` (value: `"double"`) - -* `monetary` (value: `"monetary"`) - -* `date` (value: `"date"`) - -* `set` (value: `"set"`) - -* `enum` (value: `"enum"`) - -* `user` (value: `"user"`) - -* `org` (value: `"org"`) - -* `people` (value: `"people"`) - -* `phone` (value: `"phone"`) - -* `time` (value: `"time"`) - -* `timerange` (value: `"timerange"`) - -* `daterange` (value: `"daterange"`) - -* `address` (value: `"address"`) - - - - diff --git a/docs/ProductFieldAllOf.md b/docs/ProductFieldAllOf.md deleted file mode 100644 index fb34fe92..00000000 --- a/docs/ProductFieldAllOf.md +++ /dev/null @@ -1,24 +0,0 @@ -# Pipedrive.ProductFieldAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the product field | [optional] -**key** | **String** | The key of the product field | [optional] -**order_nr** | **Number** | The position (index) of the product field in the detail view | [optional] -**add_time** | **String** | The product field creation time. Format: YYYY-MM-DD HH:MM:SS | [optional] -**update_time** | **String** | The product field last update time. Format: YYYY-MM-DD HH:MM:SS | [optional] -**last_updated_by_user_id** | **Number** | The ID of the last user to update the product field | [optional] -**created_by_user_id** | **Number** | The ID of the user who created the product field | [optional] -**active_flag** | **Boolean** | Whether or not the product field is currently active | [optional] -**edit_flag** | **Boolean** | Whether or not the product field name and metadata is editable | [optional] -**add_visible_flag** | **Boolean** | Whether or not the product field is visible in the Add Product Modal | [optional] -**important_flag** | **Boolean** | Whether or not the product field is marked as important | [optional] -**bulk_edit_allowed** | **Boolean** | Whether or not the product field data can be edited | [optional] -**searchable_flag** | **Boolean** | Whether or not the product field is searchable | [optional] -**filtering_allowed** | **Boolean** | Whether or not the product field value can be used when filtering searches | [optional] -**sortable_flag** | **Boolean** | Whether or not the product field is sortable | [optional] -**mandatory_flag** | **Boolean** | Whether or not the product field is mandatory when creating products | [optional] - - diff --git a/docs/ProductFieldsApi.md b/docs/ProductFieldsApi.md deleted file mode 100644 index be8eb774..00000000 --- a/docs/ProductFieldsApi.md +++ /dev/null @@ -1,343 +0,0 @@ -# Pipedrive.ProductFieldsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addProductField**](ProductFieldsApi.md#addProductField) | **POST** /productFields | Add a new product field -[**deleteProductField**](ProductFieldsApi.md#deleteProductField) | **DELETE** /productFields/{id} | Delete a product field -[**deleteProductFields**](ProductFieldsApi.md#deleteProductFields) | **DELETE** /productFields | Delete multiple product fields in bulk -[**getProductField**](ProductFieldsApi.md#getProductField) | **GET** /productFields/{id} | Get one product field -[**getProductFields**](ProductFieldsApi.md#getProductFields) | **GET** /productFields | Get all product fields -[**updateProductField**](ProductFieldsApi.md#updateProductField) | **PUT** /productFields/{id} | Update a product field - - - -## addProductField - -> GetProductFieldResponse addProductField(opts) - -Add a new product field - -Adds a new product field. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-new-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">adding a new custom field</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductFieldsApi(apiClient); -let opts = Pipedrive.NewProductField.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addProductField(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **NewProductField** | [**NewProductField**](NewProductField.md)| | [optional] - -### Return type - -[**GetProductFieldResponse**](GetProductFieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteProductField - -> DeleteProductFieldResponse deleteProductField(id) - -Delete a product field - -Marks a product field as deleted. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/deleting-a-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">deleting a custom field</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductFieldsApi(apiClient); -let id = 56; // Number | The ID of the product field -apiInstance.deleteProductField(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product field | - -### Return type - -[**DeleteProductFieldResponse**](DeleteProductFieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteProductFields - -> DeleteMultipleProductFieldsResponse deleteProductFields(ids) - -Delete multiple product fields in bulk - -Marks multiple fields as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductFieldsApi(apiClient); -let ids = "ids_example"; // String | The comma-separated field IDs to delete -apiInstance.deleteProductFields(ids).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ids** | **String**| The comma-separated field IDs to delete | - -### Return type - -[**DeleteMultipleProductFieldsResponse**](DeleteMultipleProductFieldsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProductField - -> GetProductFieldResponse getProductField(id) - -Get one product field - -Returns data about a specific product field. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductFieldsApi(apiClient); -let id = 56; // Number | The ID of the product field -apiInstance.getProductField(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product field | - -### Return type - -[**GetProductFieldResponse**](GetProductFieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProductFields - -> GetAllProductFieldsResponse getProductFields(opts) - -Get all product fields - -Returns data about all product fields. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductFieldsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getProductFields(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**GetAllProductFieldsResponse**](GetAllProductFieldsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateProductField - -> GetProductFieldResponse updateProductField(id, opts) - -Update a product field - -Updates a product field. For more information, see the tutorial for <a href=\" https://pipedrive.readme.io/docs/updating-custom-field-value \" target=\"_blank\" rel=\"noopener noreferrer\">updating custom fields' values</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductFieldsApi(apiClient); -let id = 56; // Number | The ID of the product field -let opts = Pipedrive.UpdateProductField.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateProductField(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product field | - **UpdateProductField** | [**UpdateProductField**](UpdateProductField.md)| | [optional] - -### Return type - -[**GetProductFieldResponse**](GetProductFieldResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/ProductFileItem.md b/docs/ProductFileItem.md deleted file mode 100644 index 494deac1..00000000 --- a/docs/ProductFileItem.md +++ /dev/null @@ -1,23 +0,0 @@ -# Pipedrive.ProductFileItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the file | [optional] -**product_id** | **Number** | The ID of the product associated with the file | [optional] -**add_time** | **String** | The UTC date time when the file was uploaded. Format: YYYY-MM-DD HH:MM:SS | [optional] -**update_time** | **String** | The UTC date time when the file was last updated. Format: YYYY-MM-DD HH:MM:SS | [optional] -**file_name** | **String** | The original name of the file | [optional] -**file_size** | **Number** | The size of the file in bytes | [optional] -**active_flag** | **Boolean** | Whether the user is active or not. | [optional] -**inline_flag** | **Boolean** | Whether the file was uploaded as inline or not | [optional] -**remote_location** | **String** | The location type to send the file to. Only googledrive is supported at the moment. | [optional] -**remote_id** | **String** | The ID of the remote item | [optional] -**s3_bucket** | **String** | The location of the cloud storage | [optional] -**product_name** | **String** | The name of the product associated with the file | [optional] -**url** | **String** | The URL to download the file | [optional] -**name** | **String** | The visible name of the file | [optional] -**description** | **String** | The description of the file | [optional] - - diff --git a/docs/ProductListItem.md b/docs/ProductListItem.md deleted file mode 100644 index 907cea1b..00000000 --- a/docs/ProductListItem.md +++ /dev/null @@ -1,54 +0,0 @@ -# Pipedrive.ProductListItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal-product (the ID of the product attached to the deal) | [optional] -**deal_id** | **Number** | The ID of the deal | [optional] -**order_nr** | **Number** | The order number of the product | [optional] -**product_id** | **Number** | The ID of the product | [optional] -**product_variation_id** | **Number** | The ID of the product variation | [optional] -**item_price** | **Number** | The price value of the product | [optional] -**discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] -**discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**sum** | **Number** | The sum of all the products attached to the deal | [optional] -**currency** | **String** | The currency associated with the deal product | [optional] -**enabled_flag** | **Boolean** | Whether the product is enabled or not | [optional] -**add_time** | **String** | The date and time when the product was added to the deal | [optional] -**last_edit** | **String** | The date and time when the deal product was last edited | [optional] -**comments** | **String** | The comments of the product | [optional] -**active_flag** | **Boolean** | Whether the product is active or not | [optional] -**tax** | **Number** | The product tax | [optional] -**tax_method** | **String** | The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal | [optional] -**name** | **String** | The product name | [optional] -**sum_formatted** | **String** | The formatted sum of the product | [optional] -**quantity_formatted** | **String** | The formatted quantity of the product | [optional] -**quantity** | **Number** | The quantity of the product | [optional] -**product** | [**ProductWithArrayPrices**](ProductWithArrayPrices.md) | | [optional] - - - -## Enum: DiscountTypeEnum - - -* `percentage` (value: `"percentage"`) - -* `amount` (value: `"amount"`) - - - - - -## Enum: TaxMethodEnum - - -* `exclusive` (value: `"exclusive"`) - -* `inclusive` (value: `"inclusive"`) - -* `none` (value: `"none"`) - - - - diff --git a/docs/ProductRequest.md b/docs/ProductRequest.md deleted file mode 100644 index aa663f61..00000000 --- a/docs/ProductRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.ProductRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **String** | The product code | [optional] -**description** | **String** | The product description | [optional] -**unit** | **String** | The unit in which this product is sold | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**active_flag** | **Boolean** | Whether this product will be made active or not | [optional] [default to true] -**selectable** | **Boolean** | Whether this product can be selected in deals or not | [optional] [default to true] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] -**owner_id** | **Number** | The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used | [optional] -**prices** | **[Object]** | An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned. | [optional] - - diff --git a/docs/ProductResponse.md b/docs/ProductResponse.md deleted file mode 100644 index 7c16e3b4..00000000 --- a/docs/ProductResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ProductResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**ProductWithArrayPrices**](ProductWithArrayPrices.md) | | [optional] -**related_objects** | [**GetActivitiesResponseRelatedObjects**](GetActivitiesResponseRelatedObjects.md) | | [optional] - - diff --git a/docs/ProductSearchItem.md b/docs/ProductSearchItem.md deleted file mode 100644 index a10d2e55..00000000 --- a/docs/ProductSearchItem.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ProductSearchItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result_score** | **Number** | Search result relevancy | [optional] -**item** | [**ProductSearchItemItem**](ProductSearchItemItem.md) | | [optional] - - diff --git a/docs/ProductSearchItemItem.md b/docs/ProductSearchItemItem.md deleted file mode 100644 index 7be190be..00000000 --- a/docs/ProductSearchItemItem.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.ProductSearchItemItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the product | [optional] -**type** | **String** | The type of the item | [optional] -**name** | **String** | The name of the product | [optional] -**code** | **Number** | The code of the product | [optional] -**visible_to** | **Number** | The visibility of the product | [optional] -**owner** | [**ProductSearchItemItemOwner**](ProductSearchItemItemOwner.md) | | [optional] -**custom_fields** | **[String]** | The custom fields | [optional] - - diff --git a/docs/ProductSearchItemItemOwner.md b/docs/ProductSearchItemItemOwner.md deleted file mode 100644 index 05215911..00000000 --- a/docs/ProductSearchItemItemOwner.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ProductSearchItemItemOwner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the owner of the product | [optional] - - diff --git a/docs/ProductSearchResponse.md b/docs/ProductSearchResponse.md deleted file mode 100644 index 8d4fb85b..00000000 --- a/docs/ProductSearchResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ProductSearchResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**ProductSearchResponseAllOfData**](ProductSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/ProductSearchResponseAllOf.md b/docs/ProductSearchResponseAllOf.md deleted file mode 100644 index d4f394c9..00000000 --- a/docs/ProductSearchResponseAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ProductSearchResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ProductSearchResponseAllOfData**](ProductSearchResponseAllOfData.md) | | [optional] -**additional_data** | [**ItemSearchAdditionalData**](ItemSearchAdditionalData.md) | | [optional] - - diff --git a/docs/ProductSearchResponseAllOfData.md b/docs/ProductSearchResponseAllOfData.md deleted file mode 100644 index 7600fe5b..00000000 --- a/docs/ProductSearchResponseAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ProductSearchResponseAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**items** | [**[ProductSearchItem]**](ProductSearchItem.md) | The array of found items | [optional] - - diff --git a/docs/ProductWithArrayPrices.md b/docs/ProductWithArrayPrices.md deleted file mode 100644 index 9a935afd..00000000 --- a/docs/ProductWithArrayPrices.md +++ /dev/null @@ -1,39 +0,0 @@ -# Pipedrive.ProductWithArrayPrices - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the product | [optional] -**name** | **String** | The name of the product | [optional] -**code** | **String** | The product code | [optional] -**unit** | **String** | The unit in which this product is sold | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**active_flag** | **Boolean** | Whether this product is active or not | [optional] [default to true] -**selectable** | **Boolean** | Whether this product is selected in deals or not | [optional] [default to true] -**visible_to** | [**VisibleTo**](VisibleTo.md) | Visibility of the product | [optional] -**owner_id** | **Object** | Information about the Pipedrive user who owns the product | [optional] -**billing_frequency** | **String** | Only available in Advanced and above plans How often a customer is billed for access to a service or product | [optional] [default to 'one-time'] -**billing_frequency_cycles** | **Number** | Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field is always `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 | [optional] -**prices** | **[Object]** | Array of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) | [optional] - - - -## Enum: BillingFrequencyEnum - - -* `one-time` (value: `"one-time"`) - -* `annually` (value: `"annually"`) - -* `semi-annually` (value: `"semi-annually"`) - -* `quarterly` (value: `"quarterly"`) - -* `monthly` (value: `"monthly"`) - -* `weekly` (value: `"weekly"`) - - - - diff --git a/docs/ProductWithObjectPrices.md b/docs/ProductWithObjectPrices.md deleted file mode 100644 index 06c75698..00000000 --- a/docs/ProductWithObjectPrices.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.ProductWithObjectPrices - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the product | [optional] -**name** | **String** | The name of the product | [optional] -**code** | **String** | The product code | [optional] -**unit** | **String** | The unit in which this product is sold | [optional] -**tax** | **Number** | The ax percentage | [optional] [default to 0] -**activeFlag** | **Boolean** | Whether this product is active or not | [optional] [default to true] -**selectable** | **Boolean** | Whether this product is selected in deals or not | [optional] [default to true] -**visibleTo** | [**VisibleTo**](VisibleTo.md) | Visibility of the product | [optional] -**ownerId** | **Object** | Information about the Pipedrive user who owns the product | [optional] -**prices** | **Object** | Object of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) | [optional] - - diff --git a/docs/ProductsApi.md b/docs/ProductsApi.md deleted file mode 100644 index 155ba6ca..00000000 --- a/docs/ProductsApi.md +++ /dev/null @@ -1,721 +0,0 @@ -# Pipedrive.ProductsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addProduct**](ProductsApi.md#addProduct) | **POST** /products | Add a product -[**addProductFollower**](ProductsApi.md#addProductFollower) | **POST** /products/{id}/followers | Add a follower to a product -[**deleteProduct**](ProductsApi.md#deleteProduct) | **DELETE** /products/{id} | Delete a product -[**deleteProductFollower**](ProductsApi.md#deleteProductFollower) | **DELETE** /products/{id}/followers/{follower_id} | Delete a follower from a product -[**getProduct**](ProductsApi.md#getProduct) | **GET** /products/{id} | Get one product -[**getProductDeals**](ProductsApi.md#getProductDeals) | **GET** /products/{id}/deals | Get deals where a product is attached to -[**getProductFiles**](ProductsApi.md#getProductFiles) | **GET** /products/{id}/files | List files attached to a product -[**getProductFollowers**](ProductsApi.md#getProductFollowers) | **GET** /products/{id}/followers | List followers of a product -[**getProductUsers**](ProductsApi.md#getProductUsers) | **GET** /products/{id}/permittedUsers | List permitted users -[**getProducts**](ProductsApi.md#getProducts) | **GET** /products | Get all products -[**searchProducts**](ProductsApi.md#searchProducts) | **GET** /products/search | Search products -[**updateProduct**](ProductsApi.md#updateProduct) | **PUT** /products/{id} | Update a product - - - -## addProduct - -> ProductResponse addProduct(opts) - -Add a product - -Adds a new product to the Products inventory. For more information, see the tutorial for <a href=\"https://pipedrive.readme.io/docs/adding-a-product\" target=\"_blank\" rel=\"noopener noreferrer\">adding a product</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -let opts = Pipedrive.AddProductRequestBody.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addProduct(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **AddProductRequestBody** | [**AddProductRequestBody**](AddProductRequestBody.md)| | [optional] - -### Return type - -[**ProductResponse**](ProductResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addProductFollower - -> NewFollowerResponse addProductFollower(id, opts) - -Add a follower to a product - -Adds a follower to a product. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -let id = 56; // Number | The ID of the product -let opts = Pipedrive.AddProductFollowerRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addProductFollower(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product | - **AddProductFollowerRequest** | [**AddProductFollowerRequest**](AddProductFollowerRequest.md)| | [optional] - -### Return type - -[**NewFollowerResponse**](NewFollowerResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteProduct - -> DeleteProductResponse deleteProduct(id) - -Delete a product - -Marks a product as deleted. After 30 days, the product will be permanently deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -let id = 56; // Number | The ID of the product -apiInstance.deleteProduct(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product | - -### Return type - -[**DeleteProductResponse**](DeleteProductResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteProductFollower - -> DeleteProductFollowerResponse deleteProductFollower(id, followerId) - -Delete a follower from a product - -Deletes a follower from a product. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -let id = 56; // Number | The ID of the product -let followerId = 56; // Number | The ID of the relationship between the follower and the product -apiInstance.deleteProductFollower(id, followerId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product | - **follower_id** | **Number**| The ID of the relationship between the follower and the product | - -### Return type - -[**DeleteProductFollowerResponse**](DeleteProductFollowerResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProduct - -> ProductResponse getProduct(id) - -Get one product - -Returns data about a specific product. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -let id = 56; // Number | The ID of the product -apiInstance.getProduct(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product | - -### Return type - -[**ProductResponse**](ProductResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProductDeals - -> ListDealsResponse getProductDeals(id, opts) - -Get deals where a product is attached to - -Returns data about deals that have a product attached to it. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -let id = 56; // Number | The ID of the product -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'status': "'all_not_deleted'" // String | 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. -}; -apiInstance.getProductDeals(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **status** | **String**| 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. | [optional] [default to 'all_not_deleted'] - -### Return type - -[**ListDealsResponse**](ListDealsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProductFiles - -> ListProductFilesResponse getProductFiles(id, opts) - -List files attached to a product - -Lists files associated with a product. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -let id = 56; // Number | The ID of the product -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'sort': "sort_example" // String | The field name and sorting mode (`field_name_1 ASC` or `field_name_1 DESC`). Supported fields: `update_time`, `id`. -}; -apiInstance.getProductFiles(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **sort** | **String**| The field name and sorting mode (`field_name_1 ASC` or `field_name_1 DESC`). Supported fields: `update_time`, `id`. | [optional] - -### Return type - -[**ListProductFilesResponse**](ListProductFilesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProductFollowers - -> ListProductFollowersResponse getProductFollowers(id, opts) - -List followers of a product - -Lists the followers of a product. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -let id = 56; // Number | The ID of the product -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getProductFollowers(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ListProductFollowersResponse**](ListProductFollowersResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProductUsers - -> UserIDs getProductUsers(id) - -List permitted users - -Lists users permitted to access a product. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -let id = 56; // Number | The ID of the product -apiInstance.getProductUsers(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product | - -### Return type - -[**UserIDs**](UserIDs.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProducts - -> ProductsResponse getProducts(opts) - -Get all products - -Returns data about all products. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'userId': 56, // Number | If supplied, only products owned by the given user will be returned - 'filterId': 56, // Number | The ID of the filter to use - 'ids': [null], // [Number] | An array of integers with the IDs of the products that should be returned in the response - 'firstChar': "firstChar_example", // String | If supplied, only products whose name starts with the specified letter will be returned (case-insensitive) - 'getSummary': true, // Boolean | If supplied, the response will return the total numbers of products in the `additional_data.summary.total_count` property - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getProducts(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user_id** | **Number**| If supplied, only products owned by the given user will be returned | [optional] - **filter_id** | **Number**| The ID of the filter to use | [optional] - **ids** | [**[Number]**](Number.md)| An array of integers with the IDs of the products that should be returned in the response | [optional] - **first_char** | **String**| If supplied, only products whose name starts with the specified letter will be returned (case-insensitive) | [optional] - **get_summary** | **Boolean**| If supplied, the response will return the total numbers of products in the `additional_data.summary.total_count` property | [optional] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ProductsResponse**](ProductsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## searchProducts - -> ProductSearchResponse searchProducts(term, opts) - -Search products - -Searches all products by name, code 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. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -let term = "term_example"; // String | 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. -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'fields': "fields_example", // String | A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - 'exactMatch': true, // Boolean | When enabled, only full exact matches against the given term are returned. It is not case sensitive. - 'includeFields': "includeFields_example", // String | Supports including optional fields in the results which are not provided by default - 'start': 0, // Number | Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. - 'limit': 56 // Number | Items shown per page -}; -apiInstance.searchProducts(term, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **term** | **String**| 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. | - **fields** | **String**| A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. | [optional] - **exact_match** | **Boolean**| When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. | [optional] - **include_fields** | **String**| Supports including optional fields in the results which are not provided by default | [optional] - **start** | **Number**| Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**ProductSearchResponse**](ProductSearchResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateProduct - -> UpdateProductResponse updateProduct(id, opts) - -Update a product - -Updates product data. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProductsApi(apiClient); -let id = 56; // Number | The ID of the product -let opts = Pipedrive.UpdateProductRequestBody.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateProduct(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the product | - **UpdateProductRequestBody** | [**UpdateProductRequestBody**](UpdateProductRequestBody.md)| | [optional] - -### Return type - -[**UpdateProductResponse**](UpdateProductResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/ProductsResponse.md b/docs/ProductsResponse.md deleted file mode 100644 index 560a51d5..00000000 --- a/docs/ProductsResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ProductsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[ProductResponse]**](ProductResponse.md) | Array containing data for all products | [optional] -**additional_data** | [**AdditionalData**](.md) | | [optional] -**related_objects** | [**GetActivitiesResponseRelatedObjects**](GetActivitiesResponseRelatedObjects.md) | | [optional] - - diff --git a/docs/ProjectBoardObject.md b/docs/ProjectBoardObject.md deleted file mode 100644 index 82fa0175..00000000 --- a/docs/ProjectBoardObject.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.ProjectBoardObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the project board | [optional] -**name** | **String** | Name of a project board | [optional] -**order_nr** | **Number** | The order of a board | [optional] -**add_time** | **String** | The creation date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The update date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] - - diff --git a/docs/ProjectGroupsObject.md b/docs/ProjectGroupsObject.md deleted file mode 100644 index 8d8ac3cd..00000000 --- a/docs/ProjectGroupsObject.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ProjectGroupsObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | ID of the group | [optional] -**name** | **String** | Name of the group | [optional] -**order_nr** | **Number** | Order number of the group | [optional] - - diff --git a/docs/ProjectId.md b/docs/ProjectId.md deleted file mode 100644 index 47160cb6..00000000 --- a/docs/ProjectId.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ProjectId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the project, generated when the task was created | [optional] - - diff --git a/docs/ProjectMandatoryObjectFragment.md b/docs/ProjectMandatoryObjectFragment.md deleted file mode 100644 index f9ff7f56..00000000 --- a/docs/ProjectMandatoryObjectFragment.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ProjectMandatoryObjectFragment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the project | [optional] -**board_id** | **Number** | The ID of the board this project is associated with | [optional] -**phase_id** | **Number** | The ID of the phase this project is associated with | [optional] - - diff --git a/docs/ProjectNotChangeableObjectFragment.md b/docs/ProjectNotChangeableObjectFragment.md deleted file mode 100644 index b7fe8cd6..00000000 --- a/docs/ProjectNotChangeableObjectFragment.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ProjectNotChangeableObjectFragment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**add_time** | **String** | The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**status_change_time** | **String** | The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**archive_time** | **String** | The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. | [optional] - - diff --git a/docs/ProjectObjectFragment.md b/docs/ProjectObjectFragment.md deleted file mode 100644 index acd7d13a..00000000 --- a/docs/ProjectObjectFragment.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.ProjectObjectFragment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | The description of the project | [optional] -**status** | **String** | The status of the project | [optional] -**owner_id** | **Number** | The ID of a project owner | [optional] -**start_date** | **Date** | The start date of the project. Format: YYYY-MM-DD. | [optional] -**end_date** | **Date** | The end date of the project. Format: YYYY-MM-DD. | [optional] -**deal_ids** | **[Number]** | An array of IDs of the deals this project is associated with | [optional] -**org_id** | **Number** | The ID of the organization this project is associated with | [optional] -**person_id** | **Number** | The ID of the person this project is associated with | [optional] -**labels** | **[Number]** | An array of IDs of the labels this project has | [optional] - - diff --git a/docs/ProjectPhaseObject.md b/docs/ProjectPhaseObject.md deleted file mode 100644 index 8166a5db..00000000 --- a/docs/ProjectPhaseObject.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.ProjectPhaseObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the project phase | [optional] -**name** | **String** | Name of a project phase | [optional] -**board_id** | **Number** | The ID of the project board this phase is linked to | [optional] -**order_nr** | **Number** | The order of a phase | [optional] -**add_time** | **String** | The creation date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The update date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] - - diff --git a/docs/ProjectPlanItemObject.md b/docs/ProjectPlanItemObject.md deleted file mode 100644 index f458b99e..00000000 --- a/docs/ProjectPlanItemObject.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.ProjectPlanItemObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item_id** | **Number** | ID of plan item (either activity or task ID) | [optional] -**item_type** | **String** | Type of a plan item (task / activity) | [optional] -**phase_id** | **Number** | The ID of the board this project is associated with. If null then plan item is not in any phase. | [optional] -**group_id** | **Number** | The ID of the board this project is associated with. If null then plan item is not in any group. | [optional] - - diff --git a/docs/ProjectPostObject.md b/docs/ProjectPostObject.md deleted file mode 100644 index 649e437f..00000000 --- a/docs/ProjectPostObject.md +++ /dev/null @@ -1,21 +0,0 @@ -# Pipedrive.ProjectPostObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the project | -**board_id** | **Number** | The ID of a project board | -**phase_id** | **Number** | The ID of a phase on a project board | -**description** | **String** | The description of the project | [optional] -**status** | **String** | The status of the project | [optional] -**owner_id** | **Number** | The ID of a project owner | [optional] -**start_date** | **Date** | The start date of the project. Format: YYYY-MM-DD. | [optional] -**end_date** | **Date** | The end date of the project. Format: YYYY-MM-DD. | [optional] -**deal_ids** | **[Number]** | An array of IDs of the deals this project is associated with | [optional] -**org_id** | **Number** | The ID of the organization this project is associated with | [optional] -**person_id** | **Number** | The ID of the person this project is associated with | [optional] -**labels** | **[Number]** | An array of IDs of the labels this project has | [optional] -**template_id** | **Number** | The ID of the template the project will be based on | [optional] - - diff --git a/docs/ProjectPostObjectAllOf.md b/docs/ProjectPostObjectAllOf.md deleted file mode 100644 index babe5f19..00000000 --- a/docs/ProjectPostObjectAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.ProjectPostObjectAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**template_id** | **Number** | The ID of the template the project will be based on | [optional] - - diff --git a/docs/ProjectPutObject.md b/docs/ProjectPutObject.md deleted file mode 100644 index aa5e1d03..00000000 --- a/docs/ProjectPutObject.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.ProjectPutObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the project | [optional] -**board_id** | **Number** | The ID of the board this project is associated with | [optional] -**phase_id** | **Number** | The ID of the phase this project is associated with | [optional] -**description** | **String** | The description of the project | [optional] -**status** | **String** | The status of the project | [optional] -**owner_id** | **Number** | The ID of a project owner | [optional] -**start_date** | **Date** | The start date of the project. Format: YYYY-MM-DD. | [optional] -**end_date** | **Date** | The end date of the project. Format: YYYY-MM-DD. | [optional] -**deal_ids** | **[Number]** | An array of IDs of the deals this project is associated with | [optional] -**org_id** | **Number** | The ID of the organization this project is associated with | [optional] -**person_id** | **Number** | The ID of the person this project is associated with | [optional] -**labels** | **[Number]** | An array of IDs of the labels this project has | [optional] - - diff --git a/docs/ProjectPutPlanItemBodyObject.md b/docs/ProjectPutPlanItemBodyObject.md deleted file mode 100644 index 256dc8b1..00000000 --- a/docs/ProjectPutPlanItemBodyObject.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.ProjectPutPlanItemBodyObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phase_id** | **Number** | The ID of a phase on a project board | [optional] -**group_id** | **Number** | The ID of a group on a project board | [optional] - - diff --git a/docs/ProjectResponseObject.md b/docs/ProjectResponseObject.md deleted file mode 100644 index 89d14560..00000000 --- a/docs/ProjectResponseObject.md +++ /dev/null @@ -1,25 +0,0 @@ -# Pipedrive.ProjectResponseObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the project, generated when the task was created | [optional] -**title** | **String** | The title of the project | [optional] -**board_id** | **Number** | The ID of the board this project is associated with | [optional] -**phase_id** | **Number** | The ID of the phase this project is associated with | [optional] -**description** | **String** | The description of the project | [optional] -**status** | **String** | The status of the project | [optional] -**owner_id** | **Number** | The ID of a project owner | [optional] -**start_date** | **Date** | The start date of the project. Format: YYYY-MM-DD. | [optional] -**end_date** | **Date** | The end date of the project. Format: YYYY-MM-DD. | [optional] -**deal_ids** | **[Number]** | An array of IDs of the deals this project is associated with | [optional] -**org_id** | **Number** | The ID of the organization this project is associated with | [optional] -**person_id** | **Number** | The ID of the person this project is associated with | [optional] -**labels** | **[Number]** | An array of IDs of the labels this project has | [optional] -**add_time** | **String** | The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**status_change_time** | **String** | The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**archive_time** | **String** | The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. | [optional] - - diff --git a/docs/ProjectTemplatesApi.md b/docs/ProjectTemplatesApi.md deleted file mode 100644 index 2fccfe7e..00000000 --- a/docs/ProjectTemplatesApi.md +++ /dev/null @@ -1,229 +0,0 @@ -# Pipedrive.ProjectTemplatesApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getProjectTemplate**](ProjectTemplatesApi.md#getProjectTemplate) | **GET** /projectTemplates/{id} | Get details of a template -[**getProjectTemplates**](ProjectTemplatesApi.md#getProjectTemplates) | **GET** /projectTemplates | Get all project templates -[**getProjectsBoard**](ProjectTemplatesApi.md#getProjectsBoard) | **GET** /projects/boards/{id} | Get details of a board -[**getProjectsPhase**](ProjectTemplatesApi.md#getProjectsPhase) | **GET** /projects/phases/{id} | Get details of a phase - - - -## getProjectTemplate - -> GetProjectTemplateResponse getProjectTemplate(id) - -Get details of a template - -Returns the details of a specific project template. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectTemplatesApi(apiClient); -let id = 56; // Number | The ID of the project template -apiInstance.getProjectTemplate(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project template | - -### Return type - -[**GetProjectTemplateResponse**](GetProjectTemplateResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProjectTemplates - -> GetProjectTemplatesResponse getProjectTemplates(opts) - -Get all project templates - -Returns all not deleted project templates. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectTemplatesApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page - 'limit': 500 // Number | For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. -}; -apiInstance.getProjectTemplates(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] - **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. | [optional] - -### Return type - -[**GetProjectTemplatesResponse**](GetProjectTemplatesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProjectsBoard - -> GetProjectBoardResponse getProjectsBoard(id) - -Get details of a board - -Returns the details of a specific project board. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectTemplatesApi(apiClient); -let id = 56; // Number | The ID of the project board -apiInstance.getProjectsBoard(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project board | - -### Return type - -[**GetProjectBoardResponse**](GetProjectBoardResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProjectsPhase - -> GetProjectPhaseResponse getProjectsPhase(id) - -Get details of a phase - -Returns the details of a specific project phase. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectTemplatesApi(apiClient); -let id = 56; // Number | The ID of the project phase -apiInstance.getProjectsPhase(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project phase | - -### Return type - -[**GetProjectPhaseResponse**](GetProjectPhaseResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md deleted file mode 100644 index 7a835b12..00000000 --- a/docs/ProjectsApi.md +++ /dev/null @@ -1,791 +0,0 @@ -# Pipedrive.ProjectsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addProject**](ProjectsApi.md#addProject) | **POST** /projects | Add a project -[**archiveProject**](ProjectsApi.md#archiveProject) | **POST** /projects/{id}/archive | Archive a project -[**deleteProject**](ProjectsApi.md#deleteProject) | **DELETE** /projects/{id} | Delete a project -[**getProject**](ProjectsApi.md#getProject) | **GET** /projects/{id} | Get details of a project -[**getProjectActivities**](ProjectsApi.md#getProjectActivities) | **GET** /projects/{id}/activities | Returns project activities -[**getProjectGroups**](ProjectsApi.md#getProjectGroups) | **GET** /projects/{id}/groups | Returns project groups -[**getProjectPlan**](ProjectsApi.md#getProjectPlan) | **GET** /projects/{id}/plan | Returns project plan -[**getProjectTasks**](ProjectsApi.md#getProjectTasks) | **GET** /projects/{id}/tasks | Returns project tasks -[**getProjects**](ProjectsApi.md#getProjects) | **GET** /projects | Get all projects -[**getProjectsBoards**](ProjectsApi.md#getProjectsBoards) | **GET** /projects/boards | Get all project boards -[**getProjectsPhases**](ProjectsApi.md#getProjectsPhases) | **GET** /projects/phases | Get project phases -[**putProjectPlanActivity**](ProjectsApi.md#putProjectPlanActivity) | **PUT** /projects/{id}/plan/activities/{activityId} | Update activity in project plan -[**putProjectPlanTask**](ProjectsApi.md#putProjectPlanTask) | **PUT** /projects/{id}/plan/tasks/{taskId} | Update task in project plan -[**updateProject**](ProjectsApi.md#updateProject) | **PUT** /projects/{id} | Update a project - - - -## addProject - -> AddProjectResponse addProject(opts) - -Add a project - -Adds a new project. 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. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let opts = Pipedrive.ProjectPostObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addProject(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ProjectPostObject** | [**ProjectPostObject**](ProjectPostObject.md)| | [optional] - -### Return type - -[**AddProjectResponse**](AddProjectResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## archiveProject - -> UpdateProjectResponse archiveProject(id) - -Archive a project - -Archives a project. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let id = 56; // Number | The ID of the project -apiInstance.archiveProject(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project | - -### Return type - -[**UpdateProjectResponse**](UpdateProjectResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteProject - -> DeleteProjectResponse deleteProject(id) - -Delete a project - -Marks a project as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let id = 56; // Number | The ID of the project -apiInstance.deleteProject(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project | - -### Return type - -[**DeleteProjectResponse**](DeleteProjectResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProject - -> GetProjectResponse getProject(id) - -Get details of a project - -Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let id = 56; // Number | The ID of the project -apiInstance.getProject(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project | - -### Return type - -[**GetProjectResponse**](GetProjectResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProjectActivities - -> GetActivitiesCollectionResponse getProjectActivities(id) - -Returns project activities - -Returns activities linked to a specific project. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let id = 56; // Number | The ID of the project -apiInstance.getProjectActivities(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project | - -### Return type - -[**GetActivitiesCollectionResponse**](GetActivitiesCollectionResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProjectGroups - -> GetProjectGroupsResponse getProjectGroups(id) - -Returns project groups - -Returns all active groups under a specific project. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let id = 56; // Number | The ID of the project -apiInstance.getProjectGroups(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project | - -### Return type - -[**GetProjectGroupsResponse**](GetProjectGroupsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProjectPlan - -> GetProjectPlanResponse getProjectPlan(id) - -Returns project plan - -Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let id = 56; // Number | The ID of the project -apiInstance.getProjectPlan(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project | - -### Return type - -[**GetProjectPlanResponse**](GetProjectPlanResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProjectTasks - -> GetTasksResponse getProjectTasks(id) - -Returns project tasks - -Returns tasks linked to a specific project. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let id = 56; // Number | The ID of the project -apiInstance.getProjectTasks(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project | - -### Return type - -[**GetTasksResponse**](GetTasksResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProjects - -> GetProjectsResponse getProjects(opts) - -Get all projects - -Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page - 'limit': 100, // Number | For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - 'filterId': 56, // Number | The ID of the filter to use - 'status': open,completed, // String | If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned. - 'phaseId': 56, // Number | If supplied, only projects in specified phase are returned - 'includeArchived': true // Boolean | If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned. -}; -apiInstance.getProjects(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] - **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. | [optional] - **filter_id** | **Number**| The ID of the filter to use | [optional] - **status** | **String**| If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned. | [optional] - **phase_id** | **Number**| If supplied, only projects in specified phase are returned | [optional] - **include_archived** | **Boolean**| If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned. | [optional] - -### Return type - -[**GetProjectsResponse**](GetProjectsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProjectsBoards - -> GetProjectBoardsResponse getProjectsBoards() - -Get all project boards - -Returns all projects boards that are not deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -apiInstance.getProjectsBoards().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**GetProjectBoardsResponse**](GetProjectBoardsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getProjectsPhases - -> GetProjectPhasesResponse getProjectsPhases(boardId) - -Get project phases - -Returns all active project phases under a specific board. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let boardId = 1; // Number | ID of the board for which phases are requested -apiInstance.getProjectsPhases(boardId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **board_id** | **Number**| ID of the board for which phases are requested | - -### Return type - -[**GetProjectPhasesResponse**](GetProjectPhasesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## putProjectPlanActivity - -> UpdateActivityPlanItemResponse putProjectPlanActivity(id, activityId, opts) - -Update activity in project plan - -Updates an activity phase or group in a project. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let id = 56; // Number | The ID of the project -let activityId = 56; // Number | The ID of the activity -let opts = Pipedrive.ProjectPutPlanItemBodyObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.putProjectPlanActivity(id, activityId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project | - **activityId** | **Number**| The ID of the activity | - **ProjectPutPlanItemBodyObject** | [**ProjectPutPlanItemBodyObject**](ProjectPutPlanItemBodyObject.md)| | [optional] - -### Return type - -[**UpdateActivityPlanItemResponse**](UpdateActivityPlanItemResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## putProjectPlanTask - -> UpdateTaskPlanItemResponse putProjectPlanTask(id, taskId, opts) - -Update task in project plan - -Updates a task phase or group in a project. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let id = 56; // Number | The ID of the project -let taskId = 56; // Number | The ID of the task -let opts = Pipedrive.ProjectPutPlanItemBodyObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.putProjectPlanTask(id, taskId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project | - **taskId** | **Number**| The ID of the task | - **ProjectPutPlanItemBodyObject** | [**ProjectPutPlanItemBodyObject**](ProjectPutPlanItemBodyObject.md)| | [optional] - -### Return type - -[**UpdateTaskPlanItemResponse**](UpdateTaskPlanItemResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateProject - -> UpdateProjectResponse updateProject(id, opts) - -Update a project - -Updates a project. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.ProjectsApi(apiClient); -let id = 56; // Number | The ID of the project -let opts = Pipedrive.ProjectPutObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateProject(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the project | - **ProjectPutObject** | [**ProjectPutObject**](ProjectPutObject.md)| | [optional] - -### Return type - -[**UpdateProjectResponse**](UpdateProjectResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/PutRole.md b/docs/PutRole.md deleted file mode 100644 index 0972337b..00000000 --- a/docs/PutRole.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.PutRole - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**PutRoleAllOfData**](PutRoleAllOfData.md) | | [optional] - - diff --git a/docs/PutRoleAllOf.md b/docs/PutRoleAllOf.md deleted file mode 100644 index 531c8ce9..00000000 --- a/docs/PutRoleAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PutRoleAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PutRoleAllOfData**](PutRoleAllOfData.md) | | [optional] - - diff --git a/docs/PutRoleAllOfData.md b/docs/PutRoleAllOfData.md deleted file mode 100644 index e020ddbc..00000000 --- a/docs/PutRoleAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PutRoleAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the updated role | [optional] - - diff --git a/docs/PutRolePipelinesBody.md b/docs/PutRolePipelinesBody.md deleted file mode 100644 index 27afe196..00000000 --- a/docs/PutRolePipelinesBody.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.PutRolePipelinesBody - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**visible_pipeline_ids** | **Object** | The pipeline IDs to make the pipelines visible (add) and/or hidden (remove) for the specified role. It requires the following JSON structure: `{ \"add\": \"[1]\", \"remove\": \"[3, 4]\" }`. | - - diff --git a/docs/RecentDataProduct.md b/docs/RecentDataProduct.md deleted file mode 100644 index 7cb4066e..00000000 --- a/docs/RecentDataProduct.md +++ /dev/null @@ -1,24 +0,0 @@ -# Pipedrive.RecentDataProduct - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the product | [optional] -**name** | **String** | The name of the product | [optional] -**code** | **String** | The product code | [optional] -**description** | **String** | The description of the product | [optional] -**unit** | **String** | The unit in which this product is sold | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**category** | **String** | The category of the product | [optional] -**active_flag** | **Boolean** | Whether this product will be made active or not | [optional] -**selectable** | **Boolean** | Whether this product can be selected in deals or not | [optional] -**first_char** | **String** | The first letter of the product name | [optional] -**visible_to** | **Number** | The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. | [optional] -**owner_id** | **Number** | The ID of the user who will be marked as the owner of this product. When omitted, authorized user ID will be used. | [optional] -**files_count** | **Number** | The count of files | [optional] -**add_time** | **String** | The date and time when the product was added to the deal | [optional] -**update_time** | **String** | The date and time when the product was updated to the deal | [optional] -**prices** | **[Object]** | Array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned. | [optional] - - diff --git a/docs/RecentsActivity.md b/docs/RecentsActivity.md deleted file mode 100644 index 1ae347ec..00000000 --- a/docs/RecentsActivity.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsActivity - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**ActivityResponseObject**](ActivityResponseObject.md) | | [optional] - - - -## Enum: ItemEnum - - -* `activity` (value: `"activity"`) - - - - diff --git a/docs/RecentsActivityType.md b/docs/RecentsActivityType.md deleted file mode 100644 index d65411f0..00000000 --- a/docs/RecentsActivityType.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsActivityType - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**ActivityTypeObjectResponse**](ActivityTypeObjectResponse.md) | | [optional] - - - -## Enum: ItemEnum - - -* `activityType` (value: `"activityType"`) - - - - diff --git a/docs/RecentsApi.md b/docs/RecentsApi.md deleted file mode 100644 index 642c5290..00000000 --- a/docs/RecentsApi.md +++ /dev/null @@ -1,71 +0,0 @@ -# Pipedrive.RecentsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getRecents**](RecentsApi.md#getRecents) | **GET** /recents | Get recents - - - -## getRecents - -> GetRecents getRecents(sinceTimestamp, opts) - -Get recents - -Returns data about all recent changes occurred after the given timestamp. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RecentsApi(apiClient); -let sinceTimestamp = "sinceTimestamp_example"; // String | The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS. -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'items': "items_example", // String | Multiple selection of item types to include in the query (optional) - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getRecents(sinceTimestamp, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **since_timestamp** | **String**| The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS. | - **items** | **String**| Multiple selection of item types to include in the query (optional) | [optional] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**GetRecents**](GetRecents.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/RecentsDeal.md b/docs/RecentsDeal.md deleted file mode 100644 index d69c43db..00000000 --- a/docs/RecentsDeal.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsDeal - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**DealStrict**](DealStrict.md) | | [optional] - - - -## Enum: ItemEnum - - -* `deal` (value: `"deal"`) - - - - diff --git a/docs/RecentsFile.md b/docs/RecentsFile.md deleted file mode 100644 index ea01d38f..00000000 --- a/docs/RecentsFile.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsFile - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**FileItem**](FileItem.md) | | [optional] - - - -## Enum: ItemEnum - - -* `file` (value: `"file"`) - - - - diff --git a/docs/RecentsFilter.md b/docs/RecentsFilter.md deleted file mode 100644 index 5fd82cf0..00000000 --- a/docs/RecentsFilter.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsFilter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**FilterGetItem**](FilterGetItem.md) | | [optional] - - - -## Enum: ItemEnum - - -* `filter` (value: `"filter"`) - - - - diff --git a/docs/RecentsNote.md b/docs/RecentsNote.md deleted file mode 100644 index f83dbc95..00000000 --- a/docs/RecentsNote.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsNote - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**BaseNote**](BaseNote.md) | | [optional] - - - -## Enum: ItemEnum - - -* `note` (value: `"note"`) - - - - diff --git a/docs/RecentsOrganization.md b/docs/RecentsOrganization.md deleted file mode 100644 index 0e7460fc..00000000 --- a/docs/RecentsOrganization.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsOrganization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**BaseOrganizationItem**](BaseOrganizationItem.md) | | [optional] - - - -## Enum: ItemEnum - - -* `organization` (value: `"organization"`) - - - - diff --git a/docs/RecentsPerson.md b/docs/RecentsPerson.md deleted file mode 100644 index fe365c78..00000000 --- a/docs/RecentsPerson.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsPerson - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**MergePersonItem**](MergePersonItem.md) | | [optional] - - - -## Enum: ItemEnum - - -* `person` (value: `"person"`) - - - - diff --git a/docs/RecentsPipeline.md b/docs/RecentsPipeline.md deleted file mode 100644 index 2634b3a7..00000000 --- a/docs/RecentsPipeline.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsPipeline - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**BasePipeline**](BasePipeline.md) | | [optional] - - - -## Enum: ItemEnum - - -* `pipeline` (value: `"pipeline"`) - - - - diff --git a/docs/RecentsProduct.md b/docs/RecentsProduct.md deleted file mode 100644 index 538e6516..00000000 --- a/docs/RecentsProduct.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsProduct - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**RecentDataProduct**](RecentDataProduct.md) | | [optional] - - - -## Enum: ItemEnum - - -* `product` (value: `"product"`) - - - - diff --git a/docs/RecentsStage.md b/docs/RecentsStage.md deleted file mode 100644 index 7d93dd89..00000000 --- a/docs/RecentsStage.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsStage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**BaseStage**](BaseStage.md) | | [optional] - - - -## Enum: ItemEnum - - -* `stage` (value: `"stage"`) - - - - diff --git a/docs/RecentsUser.md b/docs/RecentsUser.md deleted file mode 100644 index a798f7e9..00000000 --- a/docs/RecentsUser.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.RecentsUser - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**item** | **String** | | [optional] -**id** | **Number** | | [optional] -**data** | [**BaseUser**](BaseUser.md) | | [optional] - - - -## Enum: ItemEnum - - -* `user` (value: `"user"`) - - - - diff --git a/docs/RelatedDealData.md b/docs/RelatedDealData.md deleted file mode 100644 index ca8b370a..00000000 --- a/docs/RelatedDealData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RelatedDealData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**DEAL_ID** | [**RelatedDealDataDEALID**](RelatedDealDataDEALID.md) | | [optional] - - diff --git a/docs/RelatedDealDataDEALID.md b/docs/RelatedDealDataDEALID.md deleted file mode 100644 index a22c4b37..00000000 --- a/docs/RelatedDealDataDEALID.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.RelatedDealDataDEALID - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the deal associated with the item | [optional] -**title** | **String** | The title of the deal associated with the item | [optional] -**status** | **String** | The status of the deal associated with the item | [optional] -**value** | **Number** | The value of the deal that is associated with the item | [optional] -**currency** | **String** | The currency of the deal value | [optional] -**stage_id** | **Number** | The ID of the stage the deal is currently at | [optional] -**pipeline_id** | **Number** | The ID of the pipeline the deal is in | [optional] - - diff --git a/docs/RelatedFollowerData.md b/docs/RelatedFollowerData.md deleted file mode 100644 index b9f3c869..00000000 --- a/docs/RelatedFollowerData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RelatedFollowerData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**FOLLOWER_USER_ID** | [**FollowerDataWithID**](FollowerDataWithID.md) | The user ID of the follower | [optional] - - diff --git a/docs/RelatedOrganizationData.md b/docs/RelatedOrganizationData.md deleted file mode 100644 index fb53c969..00000000 --- a/docs/RelatedOrganizationData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RelatedOrganizationData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ORGANIZATION_ID** | [**OrganizationDataWithId**](OrganizationDataWithId.md) | | [optional] - - diff --git a/docs/RelatedOrganizationDataWithActiveFlag.md b/docs/RelatedOrganizationDataWithActiveFlag.md deleted file mode 100644 index c23af3a0..00000000 --- a/docs/RelatedOrganizationDataWithActiveFlag.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RelatedOrganizationDataWithActiveFlag - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ORGANIZATION_ID** | [**OrganizationDataWithIdAndActiveFlag**](OrganizationDataWithIdAndActiveFlag.md) | | [optional] - - diff --git a/docs/RelatedOrganizationName.md b/docs/RelatedOrganizationName.md deleted file mode 100644 index f22601ed..00000000 --- a/docs/RelatedOrganizationName.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RelatedOrganizationName - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**related_organization_name** | **String** | The name of the linked organization | [optional] - - diff --git a/docs/RelatedPersonData.md b/docs/RelatedPersonData.md deleted file mode 100644 index 82269fe0..00000000 --- a/docs/RelatedPersonData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RelatedPersonData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PERSON_ID** | [**PersonData**](PersonData.md) | The ID of the person associated with the item | [optional] - - diff --git a/docs/RelatedPersonDataWithActiveFlag.md b/docs/RelatedPersonDataWithActiveFlag.md deleted file mode 100644 index 0f54251d..00000000 --- a/docs/RelatedPersonDataWithActiveFlag.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RelatedPersonDataWithActiveFlag - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PERSON_ID** | [**PersonDataWithActiveFlag**](PersonDataWithActiveFlag.md) | | [optional] - - diff --git a/docs/RelatedPictureData.md b/docs/RelatedPictureData.md deleted file mode 100644 index 8831fc3c..00000000 --- a/docs/RelatedPictureData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RelatedPictureData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**PICTURE_ID** | [**PictureDataWithID**](PictureDataWithID.md) | The ID of the picture | [optional] - - diff --git a/docs/RelatedUserData.md b/docs/RelatedUserData.md deleted file mode 100644 index 13b4b66f..00000000 --- a/docs/RelatedUserData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RelatedUserData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**USER_ID** | [**UserDataWithId**](UserDataWithId.md) | | [optional] - - diff --git a/docs/RelationshipOrganizationInfoItem.md b/docs/RelationshipOrganizationInfoItem.md deleted file mode 100644 index 5a074a54..00000000 --- a/docs/RelationshipOrganizationInfoItem.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.RelationshipOrganizationInfoItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the organization associated with the item | [optional] -**people_count** | **Number** | The number of people connected with the organization that is associated with the item | [optional] -**owner_id** | **Number** | The ID of the owner of the organization that is associated with the item | [optional] -**address** | **String** | The address of the organization | [optional] -**cc_email** | **String** | The BCC email of the organization associated with the item | [optional] -**value** | **Number** | The ID of the organization | [optional] - - diff --git a/docs/RelationshipOrganizationInfoItemAllOf.md b/docs/RelationshipOrganizationInfoItemAllOf.md deleted file mode 100644 index 02a65ebc..00000000 --- a/docs/RelationshipOrganizationInfoItemAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RelationshipOrganizationInfoItemAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **Number** | The ID of the organization | [optional] - - diff --git a/docs/RelationshipOrganizationInfoItemWithActiveFlag.md b/docs/RelationshipOrganizationInfoItemWithActiveFlag.md deleted file mode 100644 index e7614230..00000000 --- a/docs/RelationshipOrganizationInfoItemWithActiveFlag.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.RelationshipOrganizationInfoItemWithActiveFlag - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the organization associated with the item | [optional] -**people_count** | **Number** | The number of people connected with the organization that is associated with the item | [optional] -**owner_id** | **Number** | The ID of the owner of the organization that is associated with the item | [optional] -**address** | **String** | The address of the organization | [optional] -**cc_email** | **String** | The BCC email of the organization associated with the item | [optional] -**value** | **Number** | The ID of the organization | [optional] -**active_flag** | **Boolean** | Whether the associated organization is active or not | [optional] - - diff --git a/docs/RequiredNameObject.md b/docs/RequiredNameObject.md deleted file mode 100644 index 0be76e50..00000000 --- a/docs/RequiredNameObject.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RequiredNameObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the product | - - diff --git a/docs/RequiredPostProjectParameters.md b/docs/RequiredPostProjectParameters.md deleted file mode 100644 index e28a6365..00000000 --- a/docs/RequiredPostProjectParameters.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.RequiredPostProjectParameters - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the project | -**board_id** | **Number** | The ID of a project board | -**phase_id** | **Number** | The ID of a phase on a project board | - - diff --git a/docs/RequiredPostTaskParameters.md b/docs/RequiredPostTaskParameters.md deleted file mode 100644 index 07928fbb..00000000 --- a/docs/RequiredPostTaskParameters.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.RequiredPostTaskParameters - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the task | -**project_id** | **Number** | The ID of a project | - - diff --git a/docs/RequredTitleParameter.md b/docs/RequredTitleParameter.md deleted file mode 100644 index 6af98759..00000000 --- a/docs/RequredTitleParameter.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RequredTitleParameter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the deal | - - diff --git a/docs/ResponseCallLogObject.md b/docs/ResponseCallLogObject.md deleted file mode 100644 index 2e2453f8..00000000 --- a/docs/ResponseCallLogObject.md +++ /dev/null @@ -1,44 +0,0 @@ -# Pipedrive.ResponseCallLogObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the owner of the call log. Please note that a user without account settings access cannot create call logs for other users. | [optional] -**activity_id** | **Number** | If specified, this activity will be converted into a call log, with the information provided. When this field is used, you don't need to specify `deal_id`, `person_id` or `org_id`, as they will be ignored in favor of the values already available in the activity. The `activity_id` must refer to a `call` type activity. | [optional] -**subject** | **String** | The name of the activity this call is attached to | [optional] -**duration** | **String** | The duration of the call in seconds | [optional] -**outcome** | **String** | Describes the outcome of the call | -**from_phone_number** | **String** | The number that made the call | [optional] -**to_phone_number** | **String** | The number called | -**start_time** | **Date** | The date and time of the start of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. | -**end_time** | **Date** | The date and time of the end of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. | -**person_id** | **Number** | The ID of the person this call is associated with | [optional] -**org_id** | **Number** | The ID of the organization this call is associated with | [optional] -**deal_id** | **Number** | The ID of the deal this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. | [optional] -**lead_id** | **String** | The ID of the lead in the UUID format this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. | [optional] -**note** | **String** | The note for the call log in HTML format | [optional] -**id** | **String** | The call log ID, generated when the call log was created | [optional] -**has_recording** | **Boolean** | If the call log has an audio recording attached, the value should be true | [optional] -**company_id** | **Number** | The company ID of the owner of the call log | [optional] - - - -## Enum: OutcomeEnum - - -* `connected` (value: `"connected"`) - -* `no_answer` (value: `"no_answer"`) - -* `left_message` (value: `"left_message"`) - -* `left_voicemail` (value: `"left_voicemail"`) - -* `wrong_number` (value: `"wrong_number"`) - -* `busy` (value: `"busy"`) - - - - diff --git a/docs/ResponseCallLogObjectAllOf.md b/docs/ResponseCallLogObjectAllOf.md deleted file mode 100644 index 619cb7a0..00000000 --- a/docs/ResponseCallLogObjectAllOf.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.ResponseCallLogObjectAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The call log ID, generated when the call log was created | [optional] -**has_recording** | **Boolean** | If the call log has an audio recording attached, the value should be true | [optional] -**company_id** | **Number** | The company ID of the owner of the call log | [optional] - - diff --git a/docs/RoleAssignment.md b/docs/RoleAssignment.md deleted file mode 100644 index a81c0df4..00000000 --- a/docs/RoleAssignment.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.RoleAssignment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**parent_role_id** | **Number** | The ID of the parent role | [optional] -**name** | **String** | The name of the role | [optional] -**user_id** | **Number** | The user ID | [optional] -**role_id** | **Number** | The role ID | [optional] -**active_flag** | **Boolean** | Whether the role is active or not | [optional] -**type** | **String** | The assignment type | [optional] - - diff --git a/docs/RoleAssignmentAllOf.md b/docs/RoleAssignmentAllOf.md deleted file mode 100644 index 60071662..00000000 --- a/docs/RoleAssignmentAllOf.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.RoleAssignmentAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The user ID | [optional] -**role_id** | **Number** | The role ID | [optional] -**active_flag** | **Boolean** | Whether the role is active or not | [optional] -**type** | **String** | The assignment type | [optional] - - diff --git a/docs/RoleSettings.md b/docs/RoleSettings.md deleted file mode 100644 index 4875a4ba..00000000 --- a/docs/RoleSettings.md +++ /dev/null @@ -1,17 +0,0 @@ -# Pipedrive.RoleSettings - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**deal_default_visibility** | **Number** | The default visibility level of the deals for the role | [optional] -**lead_default_visibility** | **Number** | The default visibility level of the leads for the role | [optional] -**org_default_visibility** | **Number** | The default visibility level of the organizations for the role | [optional] -**person_default_visibility** | **Number** | The default visibility level of the people for the role | [optional] -**product_default_visibility** | **Number** | The default visibility level of the products for the role | [optional] -**deal_access_level** | **Number** | The access level of the deals for the role (only for default role) | [optional] -**org_access_level** | **Number** | The access level of the organizations for the role (only for default role) | [optional] -**person_access_level** | **Number** | The access level of the people for the role (only for default role) | [optional] -**product_access_level** | **Number** | The access level of the products for the role (only for default role) | [optional] - - diff --git a/docs/RolesAdditionalData.md b/docs/RolesAdditionalData.md deleted file mode 100644 index 5cb9412b..00000000 --- a/docs/RolesAdditionalData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.RolesAdditionalData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pagination** | [**RolesAdditionalDataPagination**](RolesAdditionalDataPagination.md) | | [optional] - - diff --git a/docs/RolesAdditionalDataPagination.md b/docs/RolesAdditionalDataPagination.md deleted file mode 100644 index aeb68a96..00000000 --- a/docs/RolesAdditionalDataPagination.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.RolesAdditionalDataPagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start** | **Number** | Pagination start | [optional] -**limit** | **Number** | Items shown per page | [optional] -**more_items_in_collection** | **Boolean** | Whether there are more list items in the collection than displayed | [optional] - - diff --git a/docs/RolesApi.md b/docs/RolesApi.md deleted file mode 100644 index 07a0ad3e..00000000 --- a/docs/RolesApi.md +++ /dev/null @@ -1,695 +0,0 @@ -# Pipedrive.RolesApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addOrUpdateRoleSetting**](RolesApi.md#addOrUpdateRoleSetting) | **POST** /roles/{id}/settings | Add or update role setting -[**addRole**](RolesApi.md#addRole) | **POST** /roles | Add a role -[**addRoleAssignment**](RolesApi.md#addRoleAssignment) | **POST** /roles/{id}/assignments | Add role assignment -[**deleteRole**](RolesApi.md#deleteRole) | **DELETE** /roles/{id} | Delete a role -[**deleteRoleAssignment**](RolesApi.md#deleteRoleAssignment) | **DELETE** /roles/{id}/assignments | Delete a role assignment -[**getRole**](RolesApi.md#getRole) | **GET** /roles/{id} | Get one role -[**getRoleAssignments**](RolesApi.md#getRoleAssignments) | **GET** /roles/{id}/assignments | List role assignments -[**getRolePipelines**](RolesApi.md#getRolePipelines) | **GET** /roles/{id}/pipelines | List pipeline visibility for a role -[**getRoleSettings**](RolesApi.md#getRoleSettings) | **GET** /roles/{id}/settings | List role settings -[**getRoles**](RolesApi.md#getRoles) | **GET** /roles | Get all roles -[**updateRole**](RolesApi.md#updateRole) | **PUT** /roles/{id} | Update role details -[**updateRolePipelines**](RolesApi.md#updateRolePipelines) | **PUT** /roles/{id}/pipelines | Update pipeline visibility for a role - - - -## addOrUpdateRoleSetting - -> PostRoleSettings addOrUpdateRoleSetting(id, opts) - -Add or update role setting - -Adds or updates the visibility setting for a role. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -let id = 56; // Number | The ID of the role -let opts = Pipedrive.AddOrUpdateRoleSettingRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addOrUpdateRoleSetting(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the role | - **AddOrUpdateRoleSettingRequest** | [**AddOrUpdateRoleSettingRequest**](AddOrUpdateRoleSettingRequest.md)| | [optional] - -### Return type - -[**PostRoleSettings**](PostRoleSettings.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addRole - -> PostRoles addRole(opts) - -Add a role - -Adds a new role. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -let opts = Pipedrive.AddRole.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addRole(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **AddRole** | [**AddRole**](AddRole.md)| | [optional] - -### Return type - -[**PostRoles**](PostRoles.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addRoleAssignment - -> PostRoleAssignment addRoleAssignment(id, opts) - -Add role assignment - -Assigns a user to a role. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -let id = 56; // Number | The ID of the role -let opts = Pipedrive.AddRoleAssignmentRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addRoleAssignment(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the role | - **AddRoleAssignmentRequest** | [**AddRoleAssignmentRequest**](AddRoleAssignmentRequest.md)| | [optional] - -### Return type - -[**PostRoleAssignment**](PostRoleAssignment.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteRole - -> DeleteRole deleteRole(id) - -Delete a role - -Marks a role as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -let id = 56; // Number | The ID of the role -apiInstance.deleteRole(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the role | - -### Return type - -[**DeleteRole**](DeleteRole.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteRoleAssignment - -> DeleteRoleAssignment deleteRoleAssignment(id, opts) - -Delete a role assignment - -Removes the assigned user from a role and adds to the default role. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -let id = 56; // Number | The ID of the role -let opts = Pipedrive.DeleteRoleAssignmentRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.deleteRoleAssignment(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the role | - **DeleteRoleAssignmentRequest** | [**DeleteRoleAssignmentRequest**](DeleteRoleAssignmentRequest.md)| | [optional] - -### Return type - -[**DeleteRoleAssignment**](DeleteRoleAssignment.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## getRole - -> GetRole getRole(id) - -Get one role - -Returns the details of a specific role. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -let id = 56; // Number | The ID of the role -apiInstance.getRole(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the role | - -### Return type - -[**GetRole**](GetRole.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getRoleAssignments - -> GetRoleAssignments getRoleAssignments(id, opts) - -List role assignments - -Returns all users assigned to a role. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -let id = 56; // Number | The ID of the role -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getRoleAssignments(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the role | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**GetRoleAssignments**](GetRoleAssignments.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getRolePipelines - -> GetRolePipelines getRolePipelines(id, opts) - -List pipeline visibility for a role - -Returns the list of either visible or hidden pipeline IDs for a specific role. For more information on pipeline visibility, please refer to the <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">Visibility groups article</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -let id = 56; // Number | The ID of the role -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'visible': true // Boolean | Whether to return the visible or hidden pipelines for the role -}; -apiInstance.getRolePipelines(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the role | - **visible** | **Boolean**| Whether to return the visible or hidden pipelines for the role | [optional] [default to true] - -### Return type - -[**GetRolePipelines**](GetRolePipelines.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getRoleSettings - -> GetRoleSettings getRoleSettings(id) - -List role settings - -Returns the visibility settings of a specific role. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -let id = 56; // Number | The ID of the role -apiInstance.getRoleSettings(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the role | - -### Return type - -[**GetRoleSettings**](GetRoleSettings.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getRoles - -> GetRoles getRoles(opts) - -Get all roles - -Returns all the roles within the company. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getRoles(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**GetRoles**](GetRoles.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateRole - -> PutRole updateRole(id, opts) - -Update role details - -Updates the parent role and/or the name of a specific role. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -let id = 56; // Number | The ID of the role -let opts = Pipedrive.BaseRole.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateRole(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the role | - **BaseRole** | [**BaseRole**](BaseRole.md)| | [optional] - -### Return type - -[**PutRole**](PutRole.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateRolePipelines - -> GetRolePipelines updateRolePipelines(id, opts) - -Update pipeline visibility for a role - -Updates the specified pipelines to be visible and/or hidden for a specific role. For more information on pipeline visibility, please refer to the <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">Visibility groups article</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.RolesApi(apiClient); -let id = 56; // Number | The ID of the role -let opts = Pipedrive.PutRolePipelinesBody.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateRolePipelines(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the role | - **PutRolePipelinesBody** | [**PutRolePipelinesBody**](PutRolePipelinesBody.md)| | [optional] - -### Return type - -[**GetRolePipelines**](GetRolePipelines.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/SearchResultsApi.md b/docs/SearchResultsApi.md deleted file mode 100644 index 269e7d2a..00000000 --- a/docs/SearchResultsApi.md +++ /dev/null @@ -1,142 +0,0 @@ -# Pipedrive.SearchResultsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**search**](SearchResultsApi.md#search) | **GET** /searchResults | Perform a search -[**searchByField**](SearchResultsApi.md#searchByField) | **GET** /searchResults/field | Perform a search using a specific field value - - - -## search - -> Object search(term, opts) - -Perform a search - -This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItem\">/v1/itemSearch</a> instead. <br> Performs a search across the account and returns SearchResults. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = defaultClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.SearchResultsApi(); -let term = "term_example"; // String | Search term to look for, minimum 2 characters. -let opts = { - 'itemType': "itemType_example", // String | Search for items of exact type. If omitted, all types of items are searched. - 'start': 0, // Number | Pagination start - 'limit': 56, // Number | Items shown per page - 'exactMatch': new Pipedrive.NumberBoolean() // NumberBoolean | When enabled, only full exact matches against the given term are returned. The minimum 2 character limit for the term is discarded when exact_match is enabled. It will only work if search term is 30 characters or less. -}; -apiInstance.search(term, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **term** | **String**| Search term to look for, minimum 2 characters. | - **itemType** | **String**| Search for items of exact type. If omitted, all types of items are searched. | [optional] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - **exactMatch** | [**NumberBoolean**](.md)| When enabled, only full exact matches against the given term are returned. The minimum 2 character limit for the term is discarded when exact_match is enabled. It will only work if search term is 30 characters or less. | [optional] - -### Return type - -**Object** - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## searchByField - -> Object searchByField(term, fieldType, fieldKey, opts) - -Perform a search using a specific field value - -This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/ItemSearch#searchItemByField\">/v1/itemSearch/field</a> instead. <br> Performs a search from a specific field's values. Results can be either the distinct values of the field (useful for searching autocomplete field values), or actual items IDs (deals, persons, organizations or products). - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = defaultClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.SearchResultsApi(); -let term = "term_example"; // String | Search term to look for, minimum 2 characters. -let fieldType = "fieldType_example"; // String | Type of the field to perform the search from. -let fieldKey = "fieldKey_example"; // String | Key of the field to search from. Field key can be obtained by fetching the list of fields using any of fields API GET methods (dealFields, personFields, ..). -let opts = { - 'exactMatch': new Pipedrive.NumberBoolean(), // NumberBoolean | When enabled, only full exact matches against the given term are returned. By default, term can be present anywhere in the resulting field values to be considered a match. The minimum 2 character limit for the term is discarded when exact_match is enabled. - 'returnFieldKey': "returnFieldKey_example", // String | Name of the field in search results from which the search was performed. When omitted, 'value' will be used. You may want to set this parameter to match the field_key. - 'returnItemIds': new Pipedrive.NumberBoolean(), // NumberBoolean | Whether to return matching items IDs in search results. When omitted or set to 0, only distinct values of the searched field are returned. When enabled, the return_field_key parameter is ignored and the results include the searched field as its own key. - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.searchByField(term, fieldType, fieldKey, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **term** | **String**| Search term to look for, minimum 2 characters. | - **fieldType** | **String**| Type of the field to perform the search from. | - **fieldKey** | **String**| Key of the field to search from. Field key can be obtained by fetching the list of fields using any of fields API GET methods (dealFields, personFields, ..). | - **exactMatch** | [**NumberBoolean**](.md)| When enabled, only full exact matches against the given term are returned. By default, term can be present anywhere in the resulting field values to be considered a match. The minimum 2 character limit for the term is discarded when exact_match is enabled. | [optional] - **returnFieldKey** | **String**| Name of the field in search results from which the search was performed. When omitted, 'value' will be used. You may want to set this parameter to match the field_key. | [optional] - **returnItemIds** | [**NumberBoolean**](.md)| Whether to return matching items IDs in search results. When omitted or set to 0, only distinct values of the searched field are returned. When enabled, the return_field_key parameter is ignored and the results include the searched field as its own key. | [optional] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -**Object** - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/SinglePermissionSetsItem.md b/docs/SinglePermissionSetsItem.md deleted file mode 100644 index 1cec9241..00000000 --- a/docs/SinglePermissionSetsItem.md +++ /dev/null @@ -1,47 +0,0 @@ -# Pipedrive.SinglePermissionSetsItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The ID of user permission set | [optional] -**name** | **String** | The name of the permission set | [optional] -**description** | **String** | The description of the permission set | [optional] -**app** | **String** | The app that permission set belongs to | [optional] -**type** | **String** | The type of permission set | [optional] -**assignment_count** | **Number** | The number of users assigned to this permission set | [optional] -**contents** | **[String]** | A permission assigned to this permission set | [optional] - - - -## Enum: AppEnum - - -* `sales` (value: `"sales"`) - -* `projects` (value: `"projects"`) - -* `campaigns` (value: `"campaigns"`) - -* `global` (value: `"global"`) - -* `account_settings` (value: `"account_settings"`) - - - - - -## Enum: TypeEnum - - -* `admin` (value: `"admin"`) - -* `manager` (value: `"manager"`) - -* `regular` (value: `"regular"`) - -* `custom` (value: `"custom"`) - - - - diff --git a/docs/SinglePermissionSetsItemAllOf.md b/docs/SinglePermissionSetsItemAllOf.md deleted file mode 100644 index f13bcdd3..00000000 --- a/docs/SinglePermissionSetsItemAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.SinglePermissionSetsItemAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**contents** | **[String]** | A permission assigned to this permission set | [optional] - - diff --git a/docs/Stage.md b/docs/Stage.md deleted file mode 100644 index 8fda1485..00000000 --- a/docs/Stage.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.Stage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the stage | [optional] -**pipeline_id** | **Number** | The ID of the pipeline to add stage to | [optional] -**deal_probability** | **Number** | The success probability percentage of the deal. Used/shown when deal weighted values are used. | [optional] -**rotten_flag** | **Boolean** | Whether deals in this stage can become rotten | [optional] -**rotten_days** | **Number** | The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. | [optional] - - diff --git a/docs/StageConversions.md b/docs/StageConversions.md deleted file mode 100644 index cd53272e..00000000 --- a/docs/StageConversions.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.StageConversions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**from_stage_id** | **Number** | The stage ID from where conversion starts | [optional] -**to_stage_id** | **Number** | The stage ID to where conversion ends | [optional] -**conversion_rate** | **Number** | The conversion rate | [optional] - - diff --git a/docs/StageDetails.md b/docs/StageDetails.md deleted file mode 100644 index da9a2390..00000000 --- a/docs/StageDetails.md +++ /dev/null @@ -1,19 +0,0 @@ -# Pipedrive.StageDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the stage | [optional] -**order_nr** | **Number** | Defines the order of the stage | [optional] -**name** | **String** | The name of the stage | [optional] -**active_flag** | **Boolean** | Whether the stage is active or deleted | [optional] -**deal_probability** | **Number** | The success probability percentage of the deal. Used/shown when the deal weighted values are used. | [optional] -**pipeline_id** | **Number** | The ID of the pipeline to add the stage to | [optional] -**rotten_flag** | **Boolean** | Whether deals in this stage can become rotten | [optional] -**rotten_days** | **Number** | The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. | [optional] -**add_time** | **String** | The stage creation time. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The stage update time. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**deals_summary** | [**DealSummary**](DealSummary.md) | | [optional] - - diff --git a/docs/StageWithPipelineInfo.md b/docs/StageWithPipelineInfo.md deleted file mode 100644 index b162022b..00000000 --- a/docs/StageWithPipelineInfo.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.StageWithPipelineInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the stage | [optional] -**order_nr** | **Number** | Defines the order of the stage | [optional] -**name** | **String** | The name of the stage | [optional] -**active_flag** | **Boolean** | Whether the stage is active or deleted | [optional] -**deal_probability** | **Number** | The success probability percentage of the deal. Used/shown when the deal weighted values are used. | [optional] -**pipeline_id** | **Number** | The ID of the pipeline to add the stage to | [optional] -**rotten_flag** | **Boolean** | Whether deals in this stage can become rotten | [optional] -**rotten_days** | **Number** | The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. | [optional] -**add_time** | **String** | The stage creation time. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The stage update time. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**pipeline_name** | **String** | The name of the pipeline | [optional] -**pipeline_deal_probability** | **Boolean** | The pipeline deal probability. When `true`, overrides the stage probability. | [optional] - - diff --git a/docs/StageWithPipelineInfoAllOf.md b/docs/StageWithPipelineInfoAllOf.md deleted file mode 100644 index 16e395ff..00000000 --- a/docs/StageWithPipelineInfoAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.StageWithPipelineInfoAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pipeline_name** | **String** | The name of the pipeline | [optional] -**pipeline_deal_probability** | **Boolean** | The pipeline deal probability. When `true`, overrides the stage probability. | [optional] - - diff --git a/docs/StagesApi.md b/docs/StagesApi.md deleted file mode 100644 index a715590d..00000000 --- a/docs/StagesApi.md +++ /dev/null @@ -1,417 +0,0 @@ -# Pipedrive.StagesApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addStage**](StagesApi.md#addStage) | **POST** /stages | Add a new stage -[**deleteStage**](StagesApi.md#deleteStage) | **DELETE** /stages/{id} | Delete a stage -[**deleteStages**](StagesApi.md#deleteStages) | **DELETE** /stages | Delete multiple stages in bulk -[**getStage**](StagesApi.md#getStage) | **GET** /stages/{id} | Get one stage -[**getStageDeals**](StagesApi.md#getStageDeals) | **GET** /stages/{id}/deals | Get deals in a stage -[**getStages**](StagesApi.md#getStages) | **GET** /stages | Get all stages -[**updateStage**](StagesApi.md#updateStage) | **PUT** /stages/{id} | Update stage details - - - -## addStage - -> GetAddUpdateStage addStage(opts) - -Add a new stage - -Adds a new stage, returns the ID upon success. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.StagesApi(apiClient); -let opts = Pipedrive.Stage.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addStage(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **Stage** | [**Stage**](Stage.md)| | [optional] - -### Return type - -[**GetAddUpdateStage**](GetAddUpdateStage.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteStage - -> DeleteStageResponse deleteStage(id) - -Delete a stage - -Marks a stage as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.StagesApi(apiClient); -let id = 56; // Number | The ID of the stage -apiInstance.deleteStage(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the stage | - -### Return type - -[**DeleteStageResponse**](DeleteStageResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteStages - -> DeleteStagesResponse deleteStages(ids) - -Delete multiple stages in bulk - -Marks multiple stages as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.StagesApi(apiClient); -let ids = "ids_example"; // String | The comma-separated stage IDs to delete -apiInstance.deleteStages(ids).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **ids** | **String**| The comma-separated stage IDs to delete | - -### Return type - -[**DeleteStagesResponse**](DeleteStagesResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getStage - -> GetOneStage getStage(id, opts) - -Get one stage - -Returns data about a specific stage. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.StagesApi(apiClient); -let id = 56; // Number | The ID of the stage -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'everyone': new Pipedrive.NumberBoolean() // NumberBoolean | If `everyone=1` is provided, deals summary will return deals owned by every user -}; -apiInstance.getStage(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the stage | - **everyone** | [**NumberBoolean**](.md)| If `everyone=1` is provided, deals summary will return deals owned by every user | [optional] - -### Return type - -[**GetOneStage**](GetOneStage.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getStageDeals - -> GetStageDeals getStageDeals(id, opts) - -Get deals in a stage - -Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.StagesApi(apiClient); -let id = 56; // Number | The ID of the stage -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'filterId': 56, // Number | If supplied, only deals matching the given filter will be returned - 'userId': 56, // Number | If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. - 'everyone': new Pipedrive.NumberBoolean(), // NumberBoolean | If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getStageDeals(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the stage | - **filter_id** | **Number**| If supplied, only deals matching the given filter will be returned | [optional] - **user_id** | **Number**| If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. | [optional] - **everyone** | [**NumberBoolean**](.md)| If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned | [optional] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**GetStageDeals**](GetStageDeals.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getStages - -> GetStages getStages(opts) - -Get all stages - -Returns data about all stages. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.StagesApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'pipelineId': 56, // Number | The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getStages(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **pipeline_id** | **Number**| The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. | [optional] - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**GetStages**](GetStages.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateStage - -> GetAddUpdateStage updateStage(id, opts) - -Update stage details - -Updates the properties of a stage. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.StagesApi(apiClient); -let id = 56; // Number | The ID of the stage -let opts = Pipedrive.UpdateStageRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateStage(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the stage | - **UpdateStageRequest** | [**UpdateStageRequest**](UpdateStageRequest.md)| | [optional] - -### Return type - -[**GetAddUpdateStage**](GetAddUpdateStage.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/SubRole.md b/docs/SubRole.md deleted file mode 100644 index cc48fb02..00000000 --- a/docs/SubRole.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.SubRole - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**parent_role_id** | **Number** | The ID of the parent role | [optional] -**name** | **String** | The name of the role | [optional] -**id** | **Number** | The ID of the role | [optional] -**active_flag** | **Boolean** | Whether the role is active or not | [optional] -**assignment_count** | **String** | The number of users assigned to this role | [optional] -**sub_role_count** | **String** | The number of sub-roles | [optional] - - diff --git a/docs/SubRoleAllOf.md b/docs/SubRoleAllOf.md deleted file mode 100644 index a6bfeba2..00000000 --- a/docs/SubRoleAllOf.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.SubRoleAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the role | [optional] -**active_flag** | **Boolean** | Whether the role is active or not | [optional] -**assignment_count** | **String** | The number of users assigned to this role | [optional] -**sub_role_count** | **String** | The number of sub-roles | [optional] - - diff --git a/docs/SubscriptionAddonsResponse.md b/docs/SubscriptionAddonsResponse.md deleted file mode 100644 index e85912d7..00000000 --- a/docs/SubscriptionAddonsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.SubscriptionAddonsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | **[Object]** | An array of add-ons that the company has. | [optional] - - diff --git a/docs/SubscriptionAddonsResponseAllOf.md b/docs/SubscriptionAddonsResponseAllOf.md deleted file mode 100644 index 9696d0ca..00000000 --- a/docs/SubscriptionAddonsResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.SubscriptionAddonsResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **[Object]** | An array of add-ons that the company has. | [optional] - - diff --git a/docs/SubscriptionInstallmentCreateRequest.md b/docs/SubscriptionInstallmentCreateRequest.md deleted file mode 100644 index 1139e1d4..00000000 --- a/docs/SubscriptionInstallmentCreateRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.SubscriptionInstallmentCreateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**deal_id** | **Number** | The ID of the deal this installment subscription is associated with | -**currency** | **String** | The currency of the installment subscription. Accepts a 3-character currency code. | -**payments** | **[Object]** | Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). | -**update_deal_value** | **Boolean** | Indicates that the deal value must be set to the installment subscription's total value | [optional] - - diff --git a/docs/SubscriptionInstallmentUpdateRequest.md b/docs/SubscriptionInstallmentUpdateRequest.md deleted file mode 100644 index 1edeac51..00000000 --- a/docs/SubscriptionInstallmentUpdateRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.SubscriptionInstallmentUpdateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payments** | **[Object]** | Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with a explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). | -**update_deal_value** | **Boolean** | Indicates that the deal value must be set to installment subscription's total value | [optional] - - diff --git a/docs/SubscriptionItem.md b/docs/SubscriptionItem.md deleted file mode 100644 index d6a57127..00000000 --- a/docs/SubscriptionItem.md +++ /dev/null @@ -1,24 +0,0 @@ -# Pipedrive.SubscriptionItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the subscription | [optional] -**user_id** | **Number** | The ID of the user who created the subscription | [optional] -**deal_id** | **Number** | The ID of the deal this subscription is associated with | [optional] -**description** | **String** | The description of the recurring subscription | [optional] -**is_active** | **Boolean** | The subscription status | [optional] -**cycles_count** | **Number** | Shows how many payments a recurring subscription has | [optional] -**cycle_amount** | **Number** | The amount of each payment | [optional] -**infinite** | **Boolean** | Indicates that the recurring subscription will last until it is manually canceled or deleted | [optional] -**currency** | **String** | The currency of the subscription | [optional] -**cadence_type** | **String** | The interval between payments | [optional] -**start_date** | **Date** | The start date of the recurring subscription | [optional] -**end_date** | **Date** | The end date of the subscription | [optional] -**lifetime_value** | **Number** | The total value of all payments | [optional] -**final_status** | **String** | The final status of the subscription | [optional] -**add_time** | **Date** | The creation time of the subscription | [optional] -**update_time** | **Date** | The update time of the subscription | [optional] - - diff --git a/docs/SubscriptionRecurringCancelRequest.md b/docs/SubscriptionRecurringCancelRequest.md deleted file mode 100644 index 9aa9dc9a..00000000 --- a/docs/SubscriptionRecurringCancelRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.SubscriptionRecurringCancelRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**end_date** | **Date** | The subscription termination date. All payments after the specified date will be deleted. The end_date of the subscription will be set to the due date of the payment to follow the specified date. Default value is the current date. | [optional] - - diff --git a/docs/SubscriptionRecurringCreateRequest.md b/docs/SubscriptionRecurringCreateRequest.md deleted file mode 100644 index 73d159a3..00000000 --- a/docs/SubscriptionRecurringCreateRequest.md +++ /dev/null @@ -1,33 +0,0 @@ -# Pipedrive.SubscriptionRecurringCreateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**deal_id** | **Number** | The ID of the deal this recurring subscription is associated with | -**currency** | **String** | The currency of the recurring subscription. Accepts a 3-character currency code. | -**description** | **String** | The description of the recurring subscription | [optional] -**cadence_type** | **String** | The interval between payments | -**cycles_count** | **Number** | Shows how many payments the subscription has. Note that one field must be set: `cycles_count` or `infinite`. If `cycles_count` is set, then `cycle_amount` and `start_date` are also required. | [optional] -**cycle_amount** | **Number** | The amount of each payment | -**start_date** | **Date** | The start date of the recurring subscription. Format: YYYY-MM-DD | -**infinite** | **Boolean** | This indicates that the recurring subscription will last until it's manually canceled or deleted. Note that only one field must be set: `cycles_count` or `infinite`. | [optional] -**payments** | **[Object]** | Array of additional payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). | [optional] -**update_deal_value** | **Boolean** | Indicates that the deal value must be set to recurring subscription's MRR value | [optional] - - - -## Enum: CadenceTypeEnum - - -* `weekly` (value: `"weekly"`) - -* `monthly` (value: `"monthly"`) - -* `quarterly` (value: `"quarterly"`) - -* `yearly` (value: `"yearly"`) - - - - diff --git a/docs/SubscriptionRecurringUpdateRequest.md b/docs/SubscriptionRecurringUpdateRequest.md deleted file mode 100644 index 561202cd..00000000 --- a/docs/SubscriptionRecurringUpdateRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.SubscriptionRecurringUpdateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | The description of the recurring subscription | [optional] -**cycle_amount** | **Number** | The amount of each payment | [optional] -**payments** | **[Object]** | Array of additional payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). | [optional] -**update_deal_value** | **Boolean** | Indicates that the deal value must be set to recurring subscription's MRR value | [optional] -**effective_date** | **Date** | All payments after that date will be affected. Format: YYYY-MM-DD | - - diff --git a/docs/SubscriptionsApi.md b/docs/SubscriptionsApi.md deleted file mode 100644 index a35b5c31..00000000 --- a/docs/SubscriptionsApi.md +++ /dev/null @@ -1,510 +0,0 @@ -# Pipedrive.SubscriptionsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addRecurringSubscription**](SubscriptionsApi.md#addRecurringSubscription) | **POST** /subscriptions/recurring | Add a recurring subscription -[**addSubscriptionInstallment**](SubscriptionsApi.md#addSubscriptionInstallment) | **POST** /subscriptions/installment | Add an installment subscription -[**cancelRecurringSubscription**](SubscriptionsApi.md#cancelRecurringSubscription) | **PUT** /subscriptions/recurring/{id}/cancel | Cancel a recurring subscription -[**deleteSubscription**](SubscriptionsApi.md#deleteSubscription) | **DELETE** /subscriptions/{id} | Delete a subscription -[**findSubscriptionByDeal**](SubscriptionsApi.md#findSubscriptionByDeal) | **GET** /subscriptions/find/{dealId} | Find subscription by deal -[**getSubscription**](SubscriptionsApi.md#getSubscription) | **GET** /subscriptions/{id} | Get details of a subscription -[**getSubscriptionPayments**](SubscriptionsApi.md#getSubscriptionPayments) | **GET** /subscriptions/{id}/payments | Get all payments of a subscription -[**updateRecurringSubscription**](SubscriptionsApi.md#updateRecurringSubscription) | **PUT** /subscriptions/recurring/{id} | Update a recurring subscription -[**updateSubscriptionInstallment**](SubscriptionsApi.md#updateSubscriptionInstallment) | **PUT** /subscriptions/installment/{id} | Update an installment subscription - - - -## addRecurringSubscription - -> SubscriptionsIdResponse addRecurringSubscription(opts) - -Add a recurring subscription - -Adds a new recurring subscription. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.SubscriptionsApi(apiClient); -let opts = Pipedrive.SubscriptionRecurringCreateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addRecurringSubscription(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **SubscriptionRecurringCreateRequest** | [**SubscriptionRecurringCreateRequest**](SubscriptionRecurringCreateRequest.md)| | [optional] - -### Return type - -[**SubscriptionsIdResponse**](SubscriptionsIdResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addSubscriptionInstallment - -> SubscriptionsIdResponse addSubscriptionInstallment(opts) - -Add an installment subscription - -Adds a new installment subscription. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.SubscriptionsApi(apiClient); -let opts = Pipedrive.SubscriptionInstallmentCreateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addSubscriptionInstallment(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **SubscriptionInstallmentCreateRequest** | [**SubscriptionInstallmentCreateRequest**](SubscriptionInstallmentCreateRequest.md)| | [optional] - -### Return type - -[**SubscriptionsIdResponse**](SubscriptionsIdResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## cancelRecurringSubscription - -> SubscriptionsIdResponse cancelRecurringSubscription(id, opts) - -Cancel a recurring subscription - -Cancels a recurring subscription. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.SubscriptionsApi(apiClient); -let id = 56; // Number | The ID of the subscription -let opts = Pipedrive.SubscriptionRecurringCancelRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.cancelRecurringSubscription(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the subscription | - **SubscriptionRecurringCancelRequest** | [**SubscriptionRecurringCancelRequest**](SubscriptionRecurringCancelRequest.md)| | [optional] - -### Return type - -[**SubscriptionsIdResponse**](SubscriptionsIdResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteSubscription - -> SubscriptionsIdResponse deleteSubscription(id) - -Delete a subscription - -Marks an installment or a recurring subscription as deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.SubscriptionsApi(apiClient); -let id = 56; // Number | The ID of the subscription -apiInstance.deleteSubscription(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the subscription | - -### Return type - -[**SubscriptionsIdResponse**](SubscriptionsIdResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## findSubscriptionByDeal - -> SubscriptionsIdResponse findSubscriptionByDeal(dealId) - -Find subscription by deal - -Returns details of an installment or a recurring subscription by the deal ID. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.SubscriptionsApi(apiClient); -let dealId = 56; // Number | The ID of the deal -apiInstance.findSubscriptionByDeal(dealId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **dealId** | **Number**| The ID of the deal | - -### Return type - -[**SubscriptionsIdResponse**](SubscriptionsIdResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getSubscription - -> SubscriptionsIdResponse getSubscription(id) - -Get details of a subscription - -Returns details of an installment or a recurring subscription. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.SubscriptionsApi(apiClient); -let id = 56; // Number | The ID of the subscription -apiInstance.getSubscription(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the subscription | - -### Return type - -[**SubscriptionsIdResponse**](SubscriptionsIdResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getSubscriptionPayments - -> PaymentsResponse getSubscriptionPayments(id) - -Get all payments of a subscription - -Returns all payments of an installment or recurring subscription. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.SubscriptionsApi(apiClient); -let id = 56; // Number | The ID of the subscription -apiInstance.getSubscriptionPayments(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the subscription | - -### Return type - -[**PaymentsResponse**](PaymentsResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateRecurringSubscription - -> SubscriptionsIdResponse updateRecurringSubscription(id, opts) - -Update a recurring subscription - -Updates a recurring subscription. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.SubscriptionsApi(apiClient); -let id = 56; // Number | The ID of the subscription -let opts = Pipedrive.SubscriptionRecurringUpdateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateRecurringSubscription(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the subscription | - **SubscriptionRecurringUpdateRequest** | [**SubscriptionRecurringUpdateRequest**](SubscriptionRecurringUpdateRequest.md)| | [optional] - -### Return type - -[**SubscriptionsIdResponse**](SubscriptionsIdResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateSubscriptionInstallment - -> SubscriptionsIdResponse updateSubscriptionInstallment(id, opts) - -Update an installment subscription - -Updates an installment subscription. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.SubscriptionsApi(apiClient); -let id = 56; // Number | The ID of the subscription -let opts = Pipedrive.SubscriptionInstallmentUpdateRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateSubscriptionInstallment(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the subscription | - **SubscriptionInstallmentUpdateRequest** | [**SubscriptionInstallmentUpdateRequest**](SubscriptionInstallmentUpdateRequest.md)| | [optional] - -### Return type - -[**SubscriptionsIdResponse**](SubscriptionsIdResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/SubscriptionsIdResponse.md b/docs/SubscriptionsIdResponse.md deleted file mode 100644 index 3ab1870f..00000000 --- a/docs/SubscriptionsIdResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.SubscriptionsIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**SubscriptionItem**](SubscriptionItem.md) | | [optional] - - diff --git a/docs/SubscriptionsIdResponseAllOf.md b/docs/SubscriptionsIdResponseAllOf.md deleted file mode 100644 index a73131e8..00000000 --- a/docs/SubscriptionsIdResponseAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.SubscriptionsIdResponseAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**SubscriptionItem**](SubscriptionItem.md) | | [optional] - - diff --git a/docs/TaskId.md b/docs/TaskId.md deleted file mode 100644 index 0296c49c..00000000 --- a/docs/TaskId.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.TaskId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the task, generated when the task was created | [optional] - - diff --git a/docs/TaskMandatoryObjectFragment.md b/docs/TaskMandatoryObjectFragment.md deleted file mode 100644 index 3d8dcff0..00000000 --- a/docs/TaskMandatoryObjectFragment.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.TaskMandatoryObjectFragment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the task | [optional] -**project_id** | **Number** | The ID of the project this task is associated with | [optional] - - diff --git a/docs/TaskNotChangeableObjectFragment.md b/docs/TaskNotChangeableObjectFragment.md deleted file mode 100644 index f79acc9d..00000000 --- a/docs/TaskNotChangeableObjectFragment.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.TaskNotChangeableObjectFragment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**creator_id** | **Number** | The creator of a task | [optional] -**add_time** | **String** | The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**marked_as_done_time** | **String** | The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] - - diff --git a/docs/TaskObjectFragment.md b/docs/TaskObjectFragment.md deleted file mode 100644 index aef63426..00000000 --- a/docs/TaskObjectFragment.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.TaskObjectFragment - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | The description of the task | [optional] -**parent_task_id** | **Number** | The ID of a parent task. Can not be ID of a task which is already a subtask. | [optional] -**assignee_id** | **Number** | The ID of the user who will be the assignee of the task | [optional] -**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the task is done or not. 0 = Not done, 1 = Done. | [optional] -**due_date** | **Date** | The due date of the task. Format: YYYY-MM-DD. | [optional] - - diff --git a/docs/TaskPostObject.md b/docs/TaskPostObject.md deleted file mode 100644 index 330ead18..00000000 --- a/docs/TaskPostObject.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.TaskPostObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the task | -**project_id** | **Number** | The ID of a project | -**description** | **String** | The description of the task | [optional] -**parent_task_id** | **Number** | The ID of a parent task. Can not be ID of a task which is already a subtask. | [optional] -**assignee_id** | **Number** | The ID of the user who will be the assignee of the task | [optional] -**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the task is done or not. 0 = Not done, 1 = Done. | [optional] -**due_date** | **Date** | The due date of the task. Format: YYYY-MM-DD. | [optional] - - diff --git a/docs/TaskPutObject.md b/docs/TaskPutObject.md deleted file mode 100644 index 4be97832..00000000 --- a/docs/TaskPutObject.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.TaskPutObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the task | [optional] -**project_id** | **Number** | The ID of the project this task is associated with | [optional] -**description** | **String** | The description of the task | [optional] -**parent_task_id** | **Number** | The ID of a parent task. Can not be ID of a task which is already a subtask. | [optional] -**assignee_id** | **Number** | The ID of the user who will be the assignee of the task | [optional] -**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the task is done or not. 0 = Not done, 1 = Done. | [optional] -**due_date** | **Date** | The due date of the task. Format: YYYY-MM-DD. | [optional] - - diff --git a/docs/TaskResponseObject.md b/docs/TaskResponseObject.md deleted file mode 100644 index ecbfafa0..00000000 --- a/docs/TaskResponseObject.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.TaskResponseObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the task, generated when the task was created | [optional] -**title** | **String** | The title of the task | [optional] -**project_id** | **Number** | The ID of the project this task is associated with | [optional] -**description** | **String** | The description of the task | [optional] -**parent_task_id** | **Number** | The ID of a parent task. Can not be ID of a task which is already a subtask. | [optional] -**assignee_id** | **Number** | The ID of the user who will be the assignee of the task | [optional] -**done** | [**NumberBoolean**](NumberBoolean.md) | Whether the task is done or not. 0 = Not done, 1 = Done. | [optional] -**due_date** | **Date** | The due date of the task. Format: YYYY-MM-DD. | [optional] -**creator_id** | **Number** | The creator of a task | [optional] -**add_time** | **String** | The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**marked_as_done_time** | **String** | The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] - - diff --git a/docs/TasksApi.md b/docs/TasksApi.md deleted file mode 100644 index 19b68758..00000000 --- a/docs/TasksApi.md +++ /dev/null @@ -1,297 +0,0 @@ -# Pipedrive.TasksApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addTask**](TasksApi.md#addTask) | **POST** /tasks | Add a task -[**deleteTask**](TasksApi.md#deleteTask) | **DELETE** /tasks/{id} | Delete a task -[**getTask**](TasksApi.md#getTask) | **GET** /tasks/{id} | Get details of a task -[**getTasks**](TasksApi.md#getTasks) | **GET** /tasks | Get all tasks -[**updateTask**](TasksApi.md#updateTask) | **PUT** /tasks/{id} | Update a task - - - -## addTask - -> AddTaskResponse addTask(opts) - -Add a task - -Adds a new task. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TasksApi(apiClient); -let opts = Pipedrive.TaskPostObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addTask(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **TaskPostObject** | [**TaskPostObject**](TaskPostObject.md)| | [optional] - -### Return type - -[**AddTaskResponse**](AddTaskResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteTask - -> DeleteTaskResponse deleteTask(id) - -Delete a task - -Marks a task as deleted. If the task has subtasks then those will also be deleted. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TasksApi(apiClient); -let id = 56; // Number | The ID of the task -apiInstance.deleteTask(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the task | - -### Return type - -[**DeleteTaskResponse**](DeleteTaskResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getTask - -> GetTaskResponse getTask(id) - -Get details of a task - -Returns the details of a specific task. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TasksApi(apiClient); -let id = 56; // Number | The ID of the task -apiInstance.getTask(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the task | - -### Return type - -[**GetTaskResponse**](GetTaskResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getTasks - -> GetTasksResponse getTasks(opts) - -Get all tasks - -Returns all tasks. This is a cursor-paginated endpoint. For more information, please refer to our documentation on <a href=\"https://pipedrive.readme.io/docs/core-api-concepts-pagination\" target=\"_blank\" rel=\"noopener noreferrer\">pagination</a>. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TasksApi(apiClient); -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'cursor': "cursor_example", // String | For pagination, the marker (an opaque string value) representing the first item on the next page - 'limit': 500, // Number | For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. - 'assigneeId': 56, // Number | If supplied, only tasks that are assigned to this user are returned - 'projectId': 56, // Number | If supplied, only tasks that are assigned to this project are returned - 'parentTaskId': 56, // Number | If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are returned. - 'done': new Pipedrive.NumberBoolean() // NumberBoolean | Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. -}; -apiInstance.getTasks(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **cursor** | **String**| For pagination, the marker (an opaque string value) representing the first item on the next page | [optional] - **limit** | **Number**| For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. | [optional] - **assignee_id** | **Number**| If supplied, only tasks that are assigned to this user are returned | [optional] - **project_id** | **Number**| If supplied, only tasks that are assigned to this project are returned | [optional] - **parent_task_id** | **Number**| If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are returned. | [optional] - **done** | [**NumberBoolean**](.md)| Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. | [optional] - -### Return type - -[**GetTasksResponse**](GetTasksResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateTask - -> UpdateTaskResponse updateTask(id, opts) - -Update a task - -Updates a task. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TasksApi(apiClient); -let id = 56; // Number | The ID of the task -let opts = Pipedrive.TaskPutObject.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateTask(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the task | - **TaskPutObject** | [**TaskPutObject**](TaskPutObject.md)| | [optional] - -### Return type - -[**UpdateTaskResponse**](UpdateTaskResponse.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/Team.md b/docs/Team.md deleted file mode 100644 index 2bda444f..00000000 --- a/docs/Team.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.Team - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BaseTeam**](BaseTeam.md) | | [optional] - - diff --git a/docs/TeamAllOf.md b/docs/TeamAllOf.md deleted file mode 100644 index 00469a24..00000000 --- a/docs/TeamAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.TeamAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BaseTeam**](BaseTeam.md) | | [optional] - - diff --git a/docs/TeamId.md b/docs/TeamId.md deleted file mode 100644 index 2ba1f1dc..00000000 --- a/docs/TeamId.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.TeamId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The team ID | [optional] - - diff --git a/docs/Teams.md b/docs/Teams.md deleted file mode 100644 index 20eab654..00000000 --- a/docs/Teams.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.Teams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[BaseTeam]**](BaseTeam.md) | | [optional] - - diff --git a/docs/TeamsAllOf.md b/docs/TeamsAllOf.md deleted file mode 100644 index 797aba2e..00000000 --- a/docs/TeamsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.TeamsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[BaseTeam]**](BaseTeam.md) | | [optional] - - diff --git a/docs/TeamsApi.md b/docs/TeamsApi.md deleted file mode 100644 index 985290a9..00000000 --- a/docs/TeamsApi.md +++ /dev/null @@ -1,468 +0,0 @@ -# Pipedrive.TeamsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addTeam**](TeamsApi.md#addTeam) | **POST** /teams | Add a new team -[**addTeamUser**](TeamsApi.md#addTeamUser) | **POST** /teams/{id}/users | Add users to a team -[**deleteTeamUser**](TeamsApi.md#deleteTeamUser) | **DELETE** /teams/{id}/users | Delete users from a team -[**getTeam**](TeamsApi.md#getTeam) | **GET** /teams/{id} | Get a single team -[**getTeamUsers**](TeamsApi.md#getTeamUsers) | **GET** /teams/{id}/users | Get all users in a team -[**getTeams**](TeamsApi.md#getTeams) | **GET** /teams | Get all teams -[**getUserTeams**](TeamsApi.md#getUserTeams) | **GET** /teams/user/{id} | Get all teams of a user -[**updateTeam**](TeamsApi.md#updateTeam) | **PUT** /teams/{id} | Update a team - - - -## addTeam - -> Team addTeam(opts) - -Add a new team - -Adds a new team to the company and returns the created object. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = defaultClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TeamsApi(); -let opts = Pipedrive.CreateTeam.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addTeam(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **createTeam** | [**CreateTeam**](CreateTeam.md)| | [optional] - -### Return type - -[**Team**](Team.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addTeamUser - -> UserIDs addTeamUser(id, opts) - -Add users to a team - -Adds users to an existing team. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = defaultClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TeamsApi(); -let id = 56; // Number | The ID of the team -let opts = Pipedrive.AddTeamUserRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addTeamUser(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the team | - **addTeamUserRequest** | [**AddTeamUserRequest**](AddTeamUserRequest.md)| | [optional] - -### Return type - -[**UserIDs**](UserIDs.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteTeamUser - -> UserIDs deleteTeamUser(id, opts) - -Delete users from a team - -Deletes users from an existing team. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = defaultClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TeamsApi(); -let id = 56; // Number | The ID of the team -let opts = Pipedrive.DeleteTeamUserRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.deleteTeamUser(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the team | - **deleteTeamUserRequest** | [**DeleteTeamUserRequest**](DeleteTeamUserRequest.md)| | [optional] - -### Return type - -[**UserIDs**](UserIDs.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## getTeam - -> Team getTeam(id, opts) - -Get a single team - -Returns data about a specific team. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = defaultClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TeamsApi(); -let id = 56; // Number | The ID of the team -let opts = { - 'skipUsers': new Pipedrive.NumberBooleanDefault0() // NumberBooleanDefault0 | When enabled, the teams will not include IDs of member users -}; -apiInstance.getTeam(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the team | - **skipUsers** | [**NumberBooleanDefault0**](.md)| When enabled, the teams will not include IDs of member users | [optional] - -### Return type - -[**Team**](Team.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getTeamUsers - -> UserIDs getTeamUsers(id) - -Get all users in a team - -Returns a list of all user IDs within a team. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = defaultClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TeamsApi(); -let id = 56; // Number | The ID of the team -apiInstance.getTeamUsers(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the team | - -### Return type - -[**UserIDs**](UserIDs.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getTeams - -> Teams getTeams(opts) - -Get all teams - -Returns data about teams within the company. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = defaultClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TeamsApi(); -let opts = { - 'orderBy': "'id'", // String | The field name to sort returned teams by - 'skipUsers': new Pipedrive.NumberBooleanDefault0() // NumberBooleanDefault0 | When enabled, the teams will not include IDs of member users -}; -apiInstance.getTeams(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **orderBy** | **String**| The field name to sort returned teams by | [optional] [default to 'id'] - **skipUsers** | [**NumberBooleanDefault0**](.md)| When enabled, the teams will not include IDs of member users | [optional] - -### Return type - -[**Teams**](Teams.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getUserTeams - -> Teams getUserTeams(id, opts) - -Get all teams of a user - -Returns data about all teams which have the specified user as a member. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = defaultClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TeamsApi(); -let id = 56; // Number | The ID of the user -let opts = { - 'orderBy': "'id'", // String | The field name to sort returned teams by - 'skipUsers': new Pipedrive.NumberBooleanDefault0() // NumberBooleanDefault0 | When enabled, the teams will not include IDs of member users -}; -apiInstance.getUserTeams(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the user | - **orderBy** | **String**| The field name to sort returned teams by | [optional] [default to 'id'] - **skipUsers** | [**NumberBooleanDefault0**](.md)| When enabled, the teams will not include IDs of member users | [optional] - -### Return type - -[**Teams**](Teams.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateTeam - -> Team updateTeam(id, opts) - -Update a team - -Updates an existing team and returns the updated object. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let defaultClient = Pipedrive.ApiClient.instance; -// Configure API key authorization: api_key -let api_key = defaultClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = defaultClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.TeamsApi(); -let id = 56; // Number | The ID of the team -let opts = Pipedrive.UpdateTeam.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateTeam(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the team | - **updateTeam** | [**UpdateTeam**](UpdateTeam.md)| | [optional] - -### Return type - -[**Team**](Team.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/TemplateObject.md b/docs/TemplateObject.md deleted file mode 100644 index a3eb0b01..00000000 --- a/docs/TemplateObject.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.TemplateObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of a template | [optional] -**title** | **String** | The title of a template | [optional] -**description** | **String** | The description of a template | [optional] -**projects_board_id** | **Number** | The ID of the project board this template is associated with | [optional] -**owner_id** | **Number** | The ID of a template owner | [optional] -**add_time** | **String** | The creation date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The update date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] - - diff --git a/docs/TemplateResponseObject.md b/docs/TemplateResponseObject.md deleted file mode 100644 index 15b535f4..00000000 --- a/docs/TemplateResponseObject.md +++ /dev/null @@ -1,15 +0,0 @@ -# Pipedrive.TemplateResponseObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of a template | [optional] -**title** | **String** | The title of a template | [optional] -**description** | **String** | The description of a template | [optional] -**projects_board_id** | **Number** | The ID of the project board this template is associated with | [optional] -**owner_id** | **Number** | The ID of a template owner | [optional] -**add_time** | **String** | The creation date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**update_time** | **String** | The update date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] - - diff --git a/docs/Unauthorized.md b/docs/Unauthorized.md deleted file mode 100644 index c33509c4..00000000 --- a/docs/Unauthorized.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.Unauthorized - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**error** | **String** | The error message | [optional] -**errorCode** | **Number** | The response error code | [optional] - - diff --git a/docs/UpdateActivityPlanItem.md b/docs/UpdateActivityPlanItem.md deleted file mode 100644 index 171ed9f3..00000000 --- a/docs/UpdateActivityPlanItem.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdateActivityPlanItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectPlanItemObject**](ProjectPlanItemObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/UpdateActivityPlanItemResponse.md b/docs/UpdateActivityPlanItemResponse.md deleted file mode 100644 index 00c1cf13..00000000 --- a/docs/UpdateActivityPlanItemResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdateActivityPlanItemResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectPlanItemObject**](ProjectPlanItemObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/UpdateActivityResponse.md b/docs/UpdateActivityResponse.md deleted file mode 100644 index 10db0dce..00000000 --- a/docs/UpdateActivityResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdateActivityResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ActivityResponseObject**](ActivityResponseObject.md) | | [optional] -**related_objects** | [**AddActivityResponseRelatedObjects**](AddActivityResponseRelatedObjects.md) | | [optional] - - diff --git a/docs/UpdateActivityResponse200.md b/docs/UpdateActivityResponse200.md deleted file mode 100644 index 1a0e15d0..00000000 --- a/docs/UpdateActivityResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdateActivityResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ActivityResponseObject**](ActivityResponseObject.md) | | [optional] -**related_objects** | [**AddActivityResponse200RelatedObjects**](AddActivityResponse200RelatedObjects.md) | | [optional] - - diff --git a/docs/UpdateDealParameters.md b/docs/UpdateDealParameters.md deleted file mode 100644 index be63a339..00000000 --- a/docs/UpdateDealParameters.md +++ /dev/null @@ -1,34 +0,0 @@ -# Pipedrive.UpdateDealParameters - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **String** | The value of the deal. | [optional] -**label** | **[Number]** | Array of the deal labels IDs. | [optional] -**currency** | **String** | The currency of the deal. Accepts a 3-character currency code. | [optional] -**user_id** | **Number** | The ID of the user which will be the new owner of the deal. | [optional] -**person_id** | **Number** | The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. | [optional] -**org_id** | **Number** | The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. | [optional] -**pipeline_id** | **Number** | The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. | [optional] -**stage_id** | **Number** | The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. | [optional] -**status** | **String** | open = Open, won = Won, lost = Lost, deleted = Deleted. | [optional] -**channel** | **Number** | The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company which you can fetch with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. | [optional] - - - -## Enum: StatusEnum - - -* `open` (value: `"open"`) - -* `won` (value: `"won"`) - -* `lost` (value: `"lost"`) - -* `deleted` (value: `"deleted"`) - - - - diff --git a/docs/UpdateDealProduct.md b/docs/UpdateDealProduct.md deleted file mode 100644 index 1d62e82d..00000000 --- a/docs/UpdateDealProduct.md +++ /dev/null @@ -1,45 +0,0 @@ -# Pipedrive.UpdateDealProduct - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**product_id** | **Number** | The ID of the product to use | [optional] -**item_price** | **Number** | The price at which this product will be added to the deal | [optional] -**quantity** | **Number** | How many items of this product will be added to the deal | [optional] -**discount** | **Number** | The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage | [optional] [default to 0] -**discount_type** | **String** | The type of the discount's value | [optional] [default to 'percentage'] -**product_variation_id** | **Number** | The ID of the product variation to use. When omitted, no variation will be used | [optional] -**comments** | **String** | A textual comment associated with this product-deal attachment | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**tax_method** | **String** | The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount | [optional] -**enabled_flag** | **Boolean** | Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring | [optional] [default to true] -**billing_frequency** | [**BillingFrequency**](BillingFrequency.md) | | [optional] -**billing_frequency_cycles** | **Number** | Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 | [optional] -**billing_start_date** | **String** | Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future | [optional] - - - -## Enum: DiscountTypeEnum - - -* `percentage` (value: `"percentage"`) - -* `amount` (value: `"amount"`) - - - - - -## Enum: TaxMethodEnum - - -* `exclusive` (value: `"exclusive"`) - -* `inclusive` (value: `"inclusive"`) - -* `none` (value: `"none"`) - - - - diff --git a/docs/UpdateDealRequest.md b/docs/UpdateDealRequest.md deleted file mode 100644 index c8a7843a..00000000 --- a/docs/UpdateDealRequest.md +++ /dev/null @@ -1,42 +0,0 @@ -# Pipedrive.UpdateDealRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The title of the deal | [optional] -**value** | **String** | The value of the deal. | [optional] -**label** | **[Number]** | Array of the deal labels IDs. | [optional] -**currency** | **String** | The currency of the deal. Accepts a 3-character currency code. | [optional] -**user_id** | **Number** | The ID of the user which will be the new owner of the deal. | [optional] -**person_id** | **Number** | The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. | [optional] -**org_id** | **Number** | The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. | [optional] -**pipeline_id** | **Number** | The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. | [optional] -**stage_id** | **Number** | The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. | [optional] -**status** | **String** | open = Open, won = Won, lost = Lost, deleted = Deleted. | [optional] -**channel** | **Number** | The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company which you can fetch with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. | [optional] -**won_time** | **String** | The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. | [optional] -**lost_time** | **String** | The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. | [optional] -**close_time** | **String** | The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. | [optional] -**expected_close_date** | **Date** | The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. | [optional] -**probability** | **Number** | The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. | [optional] -**lost_reason** | **String** | The optional message about why the deal was lost (to be used when status = lost) | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] - - - -## Enum: StatusEnum - - -* `open` (value: `"open"`) - -* `won` (value: `"won"`) - -* `lost` (value: `"lost"`) - -* `deleted` (value: `"deleted"`) - - - - diff --git a/docs/UpdateFile.md b/docs/UpdateFile.md deleted file mode 100644 index e828a311..00000000 --- a/docs/UpdateFile.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UpdateFile - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**FileData**](FileData.md) | | [optional] - - diff --git a/docs/UpdateFileRequest.md b/docs/UpdateFileRequest.md deleted file mode 100644 index bfa65edd..00000000 --- a/docs/UpdateFileRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UpdateFileRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Visible name of the file | [optional] -**description** | **String** | Description of the file | [optional] - - diff --git a/docs/UpdateFilterRequest.md b/docs/UpdateFilterRequest.md deleted file mode 100644 index 976b1d78..00000000 --- a/docs/UpdateFilterRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UpdateFilterRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the filter | [optional] -**conditions** | **Object** | The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter and `date` values must be supplied in the `YYYY-MM-DD` format. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application. | - - diff --git a/docs/UpdateLeadLabelRequest.md b/docs/UpdateLeadLabelRequest.md deleted file mode 100644 index af77bfdd..00000000 --- a/docs/UpdateLeadLabelRequest.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UpdateLeadLabelRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the lead label | [optional] -**color** | [**LeadLabelColor**](LeadLabelColor.md) | | [optional] - - diff --git a/docs/UpdateLeadRequest.md b/docs/UpdateLeadRequest.md deleted file mode 100644 index e55de2cc..00000000 --- a/docs/UpdateLeadRequest.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.UpdateLeadRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**title** | **String** | The name of the lead | [optional] -**owner_id** | **Number** | The ID of the user which will be the owner of the created lead. If not provided, the user making the request will be used. | [optional] -**label_ids** | **[String]** | The IDs of the lead labels which will be associated with the lead | [optional] -**person_id** | **Number** | The ID of a person which this lead will be linked to. If the person does not exist yet, it needs to be created first. A lead always has to be linked to a person or organization or both. | [optional] -**organization_id** | **Number** | The ID of an organization which this lead will be linked to. If the organization does not exist yet, it needs to be created first. A lead always has to be linked to a person or organization or both. | [optional] -**is_archived** | **Boolean** | A flag indicating whether the lead is archived or not | [optional] -**value** | [**LeadValue**](LeadValue.md) | | [optional] -**expected_close_date** | **Date** | The date of when the deal which will be created from the lead is expected to be closed. In ISO 8601 format: YYYY-MM-DD. | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the lead. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] -**was_seen** | **Boolean** | A flag indicating whether the lead was seen by someone in the Pipedrive UI | [optional] -**channel** | **Number** | The ID of Marketing channel this lead was created from. Provided value must be one of the channels configured for your company which you can fetch with <a href=\"https://developers.pipedrive.com/docs/api/v1/DealFields#getDealField\" target=\"_blank\" rel=\"noopener noreferrer\">GET /v1/dealFields</a>. | [optional] -**channel_id** | **String** | The optional ID to further distinguish the Marketing channel. | [optional] - - diff --git a/docs/UpdateMailThreadDetailsRequest.md b/docs/UpdateMailThreadDetailsRequest.md deleted file mode 100644 index add2fca9..00000000 --- a/docs/UpdateMailThreadDetailsRequest.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.UpdateMailThreadDetailsRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dealId** | **Number** | The ID of the deal this thread is associated with | [optional] -**leadId** | **String** | The ID of the lead this thread is associated with | [optional] -**sharedFlag** | [**NumberBoolean**](NumberBoolean.md) | Whether this thread is shared with other users in your company | [optional] -**readFlag** | [**NumberBoolean**](NumberBoolean.md) | Whether this thread read or unread | [optional] -**archivedFlag** | [**NumberBoolean**](NumberBoolean.md) | Whether this thread is archived or not. You can only archive threads that belong to Inbox folder. Archived threads will disappear from Inbox. | [optional] - - diff --git a/docs/UpdateOrganization.md b/docs/UpdateOrganization.md deleted file mode 100644 index b46b8406..00000000 --- a/docs/UpdateOrganization.md +++ /dev/null @@ -1,13 +0,0 @@ -# Pipedrive.UpdateOrganization - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the organization | [optional] -**owner_id** | **Number** | The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. | [optional] -**label** | **Number** | The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] - - diff --git a/docs/UpdateOrganizationAllOf.md b/docs/UpdateOrganizationAllOf.md deleted file mode 100644 index 44f67440..00000000 --- a/docs/UpdateOrganizationAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UpdateOrganizationAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the organization | [optional] - - diff --git a/docs/UpdatePerson.md b/docs/UpdatePerson.md deleted file mode 100644 index 22b47822..00000000 --- a/docs/UpdatePerson.md +++ /dev/null @@ -1,18 +0,0 @@ -# Pipedrive.UpdatePerson - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the person | [optional] -**owner_id** | **Number** | The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. | [optional] -**org_id** | **Number** | The ID of the organization this person will belong to | [optional] -**email** | [**[BasicPersonEmail]**](BasicPersonEmail.md) | An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. | [optional] -**phone** | [**[BasePersonItemPhone]**](BasePersonItemPhone.md) | A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. | [optional] -**label** | **Number** | The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. | [optional] -**label_ids** | **[Number]** | The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. | [optional] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width:40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] -**marketing_status** | [**MarketingStatus**](MarketingStatus.md) | If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.<table><tr><th>Value</th><th>Description</th></tr><tr><td>`no_consent`</td><td>The customer has not given consent to receive any marketing communications</td></tr><tr><td>`unsubscribed`</td><td>The customers have unsubscribed from ALL marketing communications</td></tr><tr><td>`subscribed`</td><td>The customers are subscribed and are counted towards marketing caps</td></tr><tr><td>`archived`</td><td>The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for</td></tr></table> | [optional] -**add_time** | **String** | The optional creation date & time of the person in UTC. Format: YYYY-MM-DD HH:MM:SS | [optional] - - diff --git a/docs/UpdatePersonAllOf.md b/docs/UpdatePersonAllOf.md deleted file mode 100644 index 4c30b9dd..00000000 --- a/docs/UpdatePersonAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UpdatePersonAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the person | [optional] - - diff --git a/docs/UpdatePersonResponse.md b/docs/UpdatePersonResponse.md deleted file mode 100644 index d6e8134f..00000000 --- a/docs/UpdatePersonResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdatePersonResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**PersonItem**](PersonItem.md) | | [optional] -**related_objects** | [**ListProductsResponseAllOfRelatedObjects**](ListProductsResponseAllOfRelatedObjects.md) | | [optional] - - diff --git a/docs/UpdateProductField.md b/docs/UpdateProductField.md deleted file mode 100644 index cbcd08f3..00000000 --- a/docs/UpdateProductField.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UpdateProductField - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the field | [optional] -**options** | **[Object]** | When `field_type` is either set or enum, possible options on update must be supplied as an array of objects each containing id and label, for example: [{\"id\":1, \"label\":\"red\"},{\"id\":2, \"label\":\"blue\"},{\"id\":3, \"label\":\"lilac\"}] | [optional] - - diff --git a/docs/UpdateProductRequestBody.md b/docs/UpdateProductRequestBody.md deleted file mode 100644 index 39252f49..00000000 --- a/docs/UpdateProductRequestBody.md +++ /dev/null @@ -1,20 +0,0 @@ -# Pipedrive.UpdateProductRequestBody - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the product | [optional] -**code** | **String** | The product code | [optional] -**description** | **String** | The product description | [optional] -**unit** | **String** | The unit in which this product is sold | [optional] -**tax** | **Number** | The tax percentage | [optional] [default to 0] -**active_flag** | **Boolean** | Whether this product will be made active or not | [optional] [default to true] -**selectable** | **Boolean** | Whether this product can be selected in deals or not | [optional] [default to true] -**visible_to** | [**VisibleTo**](VisibleTo.md) | The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups <a href=\"https://support.pipedrive.com/en/article/visibility-groups\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<h4>Essential / Advanced plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner &amp; followers</td><tr><td>`3`</td><td>Entire company</td></tr></table><h4>Professional / Enterprise plan</h4><table><tr><th style=\"width: 40px\">Value</th><th>Description</th></tr><tr><td>`1`</td><td>Owner only</td><tr><td>`3`</td><td>Owner's visibility group</td></tr><tr><td>`5`</td><td>Owner's visibility group and sub-groups</td></tr><tr><td>`7`</td><td>Entire company</td></tr></table> | [optional] -**owner_id** | **Number** | The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used | [optional] -**prices** | **[Object]** | An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned. | [optional] -**billing_frequency** | [**BillingFrequency1**](BillingFrequency1.md) | | [optional] -**billing_frequency_cycles** | **Number** | Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 | [optional] - - diff --git a/docs/UpdateProductResponse.md b/docs/UpdateProductResponse.md deleted file mode 100644 index 8ff6da3c..00000000 --- a/docs/UpdateProductResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdateProductResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**ProductWithArrayPrices**](ProductWithArrayPrices.md) | | [optional] -**related_objects** | [**GetActivitiesResponseRelatedObjects**](GetActivitiesResponseRelatedObjects.md) | | [optional] - - diff --git a/docs/UpdateProjectResponse.md b/docs/UpdateProjectResponse.md deleted file mode 100644 index 7f943b96..00000000 --- a/docs/UpdateProjectResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdateProjectResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectResponseObject**](ProjectResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/UpdateProjectResponse200.md b/docs/UpdateProjectResponse200.md deleted file mode 100644 index 276b872e..00000000 --- a/docs/UpdateProjectResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdateProjectResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectResponseObject**](ProjectResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/UpdateStageRequest.md b/docs/UpdateStageRequest.md deleted file mode 100644 index d97584f9..00000000 --- a/docs/UpdateStageRequest.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.UpdateStageRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the stage | [optional] -**pipeline_id** | **Number** | The ID of the pipeline to add stage to | [optional] -**deal_probability** | **Number** | The success probability percentage of the deal. Used/shown when deal weighted values are used. | [optional] -**rotten_flag** | **Boolean** | Whether deals in this stage can become rotten | [optional] -**rotten_days** | **Number** | The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. | [optional] -**order_nr** | **Number** | An order number for this stage. Order numbers should be used to order the stages in the pipeline. | [optional] - - diff --git a/docs/UpdateStageRequestAllOf.md b/docs/UpdateStageRequestAllOf.md deleted file mode 100644 index add02f0f..00000000 --- a/docs/UpdateStageRequestAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UpdateStageRequestAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**order_nr** | **Number** | An order number for this stage. Order numbers should be used to order the stages in the pipeline. | [optional] - - diff --git a/docs/UpdateTaskPlanItem.md b/docs/UpdateTaskPlanItem.md deleted file mode 100644 index cbaf1b80..00000000 --- a/docs/UpdateTaskPlanItem.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdateTaskPlanItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectPlanItemObject**](ProjectPlanItemObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/UpdateTaskPlanItemResponse.md b/docs/UpdateTaskPlanItemResponse.md deleted file mode 100644 index 1354b8fc..00000000 --- a/docs/UpdateTaskPlanItemResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdateTaskPlanItemResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectPlanItemObject**](ProjectPlanItemObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/UpdateTaskResponse.md b/docs/UpdateTaskResponse.md deleted file mode 100644 index 99aa5e8e..00000000 --- a/docs/UpdateTaskResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdateTaskResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**TaskResponseObject**](TaskResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/UpdateTaskResponse200.md b/docs/UpdateTaskResponse200.md deleted file mode 100644 index 5808bb11..00000000 --- a/docs/UpdateTaskResponse200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdateTaskResponse200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**TaskResponseObject**](TaskResponseObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/UpdateTeam.md b/docs/UpdateTeam.md deleted file mode 100644 index dda8a0a0..00000000 --- a/docs/UpdateTeam.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.UpdateTeam - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The team name | [optional] -**description** | **String** | The team description | [optional] -**manager_id** | **Number** | The team manager ID | [optional] -**users** | **[Number]** | The list of user IDs | [optional] -**active_flag** | [**NumberBoolean**](NumberBoolean.md) | Flag that indicates whether the team is active | [optional] -**deleted_flag** | [**NumberBoolean**](NumberBoolean.md) | Flag that indicates whether the team is deleted | [optional] - - diff --git a/docs/UpdateTeamAllOf.md b/docs/UpdateTeamAllOf.md deleted file mode 100644 index e395079e..00000000 --- a/docs/UpdateTeamAllOf.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UpdateTeamAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active_flag** | [**NumberBoolean**](NumberBoolean.md) | Flag that indicates whether the team is active | [optional] -**deleted_flag** | [**NumberBoolean**](NumberBoolean.md) | Flag that indicates whether the team is deleted | [optional] - - diff --git a/docs/UpdateTeamWithAdditionalProperties.md b/docs/UpdateTeamWithAdditionalProperties.md deleted file mode 100644 index 24e36367..00000000 --- a/docs/UpdateTeamWithAdditionalProperties.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.UpdateTeamWithAdditionalProperties - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The team name | [optional] -**description** | **String** | The team description | [optional] -**manager_id** | **Number** | The team manager ID | [optional] -**users** | **[Number]** | The list of user IDs | [optional] -**active_flag** | [**NumberBoolean**](NumberBoolean.md) | Flag that indicates whether the team is active | [optional] -**deleted_flag** | [**NumberBoolean**](NumberBoolean.md) | Flag that indicates whether the team is deleted | [optional] -**add_time** | **String** | The team creation time. Format: YYYY-MM-DD HH:MM:SS | [optional] -**created_by_user_id** | **Number** | The ID of the user who created the team | [optional] - - diff --git a/docs/UpdateUserRequest.md b/docs/UpdateUserRequest.md deleted file mode 100644 index 767a4d65..00000000 --- a/docs/UpdateUserRequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UpdateUserRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active_flag** | **Boolean** | Whether the user is active or not. `false` = Not activated, `true` = Activated | - - diff --git a/docs/UpdatedActivityPlanItem200.md b/docs/UpdatedActivityPlanItem200.md deleted file mode 100644 index 99b2b70b..00000000 --- a/docs/UpdatedActivityPlanItem200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdatedActivityPlanItem200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectPlanItemObject**](ProjectPlanItemObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/UpdatedTaskPlanItem200.md b/docs/UpdatedTaskPlanItem200.md deleted file mode 100644 index 4d8ef2e3..00000000 --- a/docs/UpdatedTaskPlanItem200.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UpdatedTaskPlanItem200 - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**ProjectPlanItemObject**](ProjectPlanItemObject.md) | | [optional] -**additional_data** | **Object** | | [optional] - - diff --git a/docs/UpsertGoalResponse.md b/docs/UpsertGoalResponse.md deleted file mode 100644 index 1416f153..00000000 --- a/docs/UpsertGoalResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UpsertGoalResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the request was successful or not | [optional] -**data** | [**PostGoalResponse**](PostGoalResponse.md) | | [optional] - - diff --git a/docs/UpsertLeadLabelResponse.md b/docs/UpsertLeadLabelResponse.md deleted file mode 100644 index 809acf36..00000000 --- a/docs/UpsertLeadLabelResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UpsertLeadLabelResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | | [optional] -**data** | [**LeadLabelResponse**](LeadLabelResponse.md) | | [optional] - - diff --git a/docs/User.md b/docs/User.md deleted file mode 100644 index 4d3f4855..00000000 --- a/docs/User.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.User - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BaseUser**](BaseUser.md) | | [optional] - - diff --git a/docs/UserAccess.md b/docs/UserAccess.md deleted file mode 100644 index 3f480798..00000000 --- a/docs/UserAccess.md +++ /dev/null @@ -1,28 +0,0 @@ -# Pipedrive.UserAccess - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**app** | **String** | | [optional] -**admin** | **Boolean** | | [optional] -**permission_set_id** | **String** | | [optional] - - - -## Enum: AppEnum - - -* `sales` (value: `"sales"`) - -* `projects` (value: `"projects"`) - -* `campaigns` (value: `"campaigns"`) - -* `global` (value: `"global"`) - -* `account_settings` (value: `"account_settings"`) - - - - diff --git a/docs/UserAllOf.md b/docs/UserAllOf.md deleted file mode 100644 index c2760a25..00000000 --- a/docs/UserAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UserAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BaseUser**](BaseUser.md) | | [optional] - - diff --git a/docs/UserAssignmentToPermissionSet.md b/docs/UserAssignmentToPermissionSet.md deleted file mode 100644 index a229266f..00000000 --- a/docs/UserAssignmentToPermissionSet.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.UserAssignmentToPermissionSet - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_id** | **Number** | The ID of the user in the permission set | [optional] -**permission_set_id** | **String** | The ID of the permission set | [optional] -**name** | **String** | The name of the permission set | [optional] - - diff --git a/docs/UserAssignmentsToPermissionSet.md b/docs/UserAssignmentsToPermissionSet.md deleted file mode 100644 index e4e191cf..00000000 --- a/docs/UserAssignmentsToPermissionSet.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UserAssignmentsToPermissionSet - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[UserAssignmentToPermissionSet]**](UserAssignmentToPermissionSet.md) | An array of the assignments of the user | [optional] - - diff --git a/docs/UserAssignmentsToPermissionSetAllOf.md b/docs/UserAssignmentsToPermissionSetAllOf.md deleted file mode 100644 index c9d2d0c7..00000000 --- a/docs/UserAssignmentsToPermissionSetAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UserAssignmentsToPermissionSetAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[UserAssignmentToPermissionSet]**](UserAssignmentToPermissionSet.md) | An array of the assignments of the user | [optional] - - diff --git a/docs/UserConnections.md b/docs/UserConnections.md deleted file mode 100644 index 7a518501..00000000 --- a/docs/UserConnections.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UserConnections - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**UserConnectionsAllOfData**](UserConnectionsAllOfData.md) | | [optional] - - diff --git a/docs/UserConnectionsAllOf.md b/docs/UserConnectionsAllOf.md deleted file mode 100644 index 0888a652..00000000 --- a/docs/UserConnectionsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UserConnectionsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**UserConnectionsAllOfData**](UserConnectionsAllOfData.md) | | [optional] - - diff --git a/docs/UserConnectionsAllOfData.md b/docs/UserConnectionsAllOfData.md deleted file mode 100644 index a0293d68..00000000 --- a/docs/UserConnectionsAllOfData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UserConnectionsAllOfData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**google** | **String** | The third party ID or false in case the ID is not found | [optional] - - diff --git a/docs/UserConnectionsApi.md b/docs/UserConnectionsApi.md deleted file mode 100644 index 4f4fed0e..00000000 --- a/docs/UserConnectionsApi.md +++ /dev/null @@ -1,58 +0,0 @@ -# Pipedrive.UserConnectionsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getUserConnections**](UserConnectionsApi.md#getUserConnections) | **GET** /userConnections | Get all user connections - - - -## getUserConnections - -> UserConnections getUserConnections() - -Get all user connections - -Returns data about all connections for the authorized user. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UserConnectionsApi(apiClient); -apiInstance.getUserConnections().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**UserConnections**](UserConnections.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/UserData.md b/docs/UserData.md deleted file mode 100644 index 41bd5591..00000000 --- a/docs/UserData.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.UserData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the user | [optional] -**name** | **String** | The name of the user | [optional] -**email** | **String** | The email of the user | [optional] -**has_pic** | **Number** | Whether the user has picture or not. 0 = No picture, 1 = Has picture. | [optional] -**pic_hash** | **String** | The user picture hash | [optional] -**active_flag** | **Boolean** | Whether the user is active or not | [optional] - - diff --git a/docs/UserDataWithId.md b/docs/UserDataWithId.md deleted file mode 100644 index 01c3ffb6..00000000 --- a/docs/UserDataWithId.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.UserDataWithId - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | The ID of the user | [optional] -**name** | **String** | The name of the user | [optional] -**email** | **String** | The email of the user | [optional] -**has_pic** | **Number** | Whether the user has picture or not. 0 = No picture, 1 = Has picture. | [optional] -**pic_hash** | **String** | The user picture hash | [optional] -**active_flag** | **Boolean** | Whether the user is active or not | [optional] - - diff --git a/docs/UserIDs.md b/docs/UserIDs.md deleted file mode 100644 index 53962a18..00000000 --- a/docs/UserIDs.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UserIDs - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | **[Number]** | The list of user IDs | [optional] - - diff --git a/docs/UserIDsAllOf.md b/docs/UserIDsAllOf.md deleted file mode 100644 index 2fbb0b8a..00000000 --- a/docs/UserIDsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UserIDsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **[Number]** | The list of user IDs | [optional] - - diff --git a/docs/UserMe.md b/docs/UserMe.md deleted file mode 100644 index 9bdf90be..00000000 --- a/docs/UserMe.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UserMe - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**BaseUserMe**](BaseUserMe.md) | | [optional] - - diff --git a/docs/UserMeAllOf.md b/docs/UserMeAllOf.md deleted file mode 100644 index 54321743..00000000 --- a/docs/UserMeAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UserMeAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BaseUserMe**](BaseUserMe.md) | | [optional] - - diff --git a/docs/UserPermissions.md b/docs/UserPermissions.md deleted file mode 100644 index 074c8160..00000000 --- a/docs/UserPermissions.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UserPermissions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**UserPermissionsItem**](UserPermissionsItem.md) | | [optional] - - diff --git a/docs/UserPermissionsAllOf.md b/docs/UserPermissionsAllOf.md deleted file mode 100644 index c917d3db..00000000 --- a/docs/UserPermissionsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UserPermissionsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**UserPermissionsItem**](UserPermissionsItem.md) | | [optional] - - diff --git a/docs/UserPermissionsItem.md b/docs/UserPermissionsItem.md deleted file mode 100644 index a2da20c8..00000000 --- a/docs/UserPermissionsItem.md +++ /dev/null @@ -1,39 +0,0 @@ -# Pipedrive.UserPermissionsItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**can_add_custom_fields** | **Boolean** | If the user can add custom fields | [optional] -**can_add_products** | **Boolean** | If the user can add products | [optional] -**can_add_prospects_as_leads** | **Boolean** | If the user can add prospects as leads | [optional] -**can_bulk_edit_items** | **Boolean** | If the user can bulk edit items | [optional] -**can_change_visibility_of_items** | **Boolean** | If the user can change visibility of items | [optional] -**can_convert_deals_to_leads** | **Boolean** | If the user can convert deals to leads | [optional] -**can_create_own_workflow** | **Boolean** | If the user can create workflows | [optional] -**can_delete_activities** | **Boolean** | If the user can delete activities | [optional] -**can_delete_custom_fields** | **Boolean** | If the user can delete custom fields | [optional] -**can_delete_deals** | **Boolean** | If the user can delete deals | [optional] -**can_edit_custom_fields** | **Boolean** | If the user can edit custom fields | [optional] -**can_edit_deals_closed_date** | **Boolean** | If the user can edit deals' closed date | [optional] -**can_edit_products** | **Boolean** | If the user can edit products | [optional] -**can_edit_shared_filters** | **Boolean** | If the user can edit shared filters | [optional] -**can_export_data_from_lists** | **Boolean** | If the user can export data from item lists | [optional] -**can_follow_other_users** | **Boolean** | If the user can follow other users | [optional] -**can_merge_deals** | **Boolean** | If the user can merge deals | [optional] -**can_merge_organizations** | **Boolean** | If the user can merge organizations | [optional] -**can_merge_people** | **Boolean** | If the user can merge people | [optional] -**can_modify_labels** | **Boolean** | If the user can modify labels | [optional] -**can_see_company_wide_statistics** | **Boolean** | If the user can see company-wide statistics | [optional] -**can_see_deals_list_summary** | **Boolean** | If the user can see the summary on the deals page | [optional] -**can_see_hidden_items_names** | **Boolean** | If the user can see the names of hidden items | [optional] -**can_see_other_users** | **Boolean** | If the user can see other users | [optional] -**can_see_other_users_statistics** | **Boolean** | If the user can see other users' statistics | [optional] -**can_see_security_dashboard** | **Boolean** | If the user can see security dashboard | [optional] -**can_share_filters** | **Boolean** | If the user can share filters | [optional] -**can_share_insights** | **Boolean** | If the user can share insights | [optional] -**can_use_api** | **Boolean** | If the user can use API | [optional] -**can_use_email_tracking** | **Boolean** | If the user can use email tracking | [optional] -**can_use_import** | **Boolean** | If the user can use import | [optional] - - diff --git a/docs/UserProviderLinkCreateRequest.md b/docs/UserProviderLinkCreateRequest.md deleted file mode 100644 index 86eb1267..00000000 --- a/docs/UserProviderLinkCreateRequest.md +++ /dev/null @@ -1,12 +0,0 @@ -# Pipedrive.UserProviderLinkCreateRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user_provider_id** | **String** | Unique identifier linking a user to the installed integration. Generated by the integration. | -**user_id** | **Number** | Pipedrive user ID | -**company_id** | **Number** | Pipedrive company ID | -**marketplace_client_id** | **String** | Pipedrive Marketplace client ID of the installed integration | - - diff --git a/docs/UserProviderLinkErrorResponse.md b/docs/UserProviderLinkErrorResponse.md deleted file mode 100644 index 6e455364..00000000 --- a/docs/UserProviderLinkErrorResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UserProviderLinkErrorResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | Boolean that indicates whether the request was successful or not | [optional] -**message** | **String** | The error message of the request | [optional] - - diff --git a/docs/UserProviderLinkSuccessResponse.md b/docs/UserProviderLinkSuccessResponse.md deleted file mode 100644 index 71bce12e..00000000 --- a/docs/UserProviderLinkSuccessResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UserProviderLinkSuccessResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | Boolean that indicates whether the request was successful or not | [optional] -**data** | [**UserProviderLinkSuccessResponseData**](UserProviderLinkSuccessResponseData.md) | | [optional] - - diff --git a/docs/UserProviderLinkSuccessResponseData.md b/docs/UserProviderLinkSuccessResponseData.md deleted file mode 100644 index 4cb1f17d..00000000 --- a/docs/UserProviderLinkSuccessResponseData.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UserProviderLinkSuccessResponseData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | The success message of the request | [optional] - - diff --git a/docs/UserSettings.md b/docs/UserSettings.md deleted file mode 100644 index cf7846ec..00000000 --- a/docs/UserSettings.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.UserSettings - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**UserSettingsItem**](UserSettingsItem.md) | | [optional] - - diff --git a/docs/UserSettingsAllOf.md b/docs/UserSettingsAllOf.md deleted file mode 100644 index 0bde1e19..00000000 --- a/docs/UserSettingsAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UserSettingsAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**UserSettingsItem**](UserSettingsItem.md) | | [optional] - - diff --git a/docs/UserSettingsApi.md b/docs/UserSettingsApi.md deleted file mode 100644 index 674a7ef3..00000000 --- a/docs/UserSettingsApi.md +++ /dev/null @@ -1,58 +0,0 @@ -# Pipedrive.UserSettingsApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getUserSettings**](UserSettingsApi.md#getUserSettings) | **GET** /userSettings | List settings of an authorized user - - - -## getUserSettings - -> UserSettings getUserSettings() - -List settings of an authorized user - -Lists the settings of an authorized user. Example response contains a shortened list of settings. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UserSettingsApi(apiClient); -apiInstance.getUserSettings().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**UserSettings**](UserSettings.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/UserSettingsItem.md b/docs/UserSettingsItem.md deleted file mode 100644 index fd77c163..00000000 --- a/docs/UserSettingsItem.md +++ /dev/null @@ -1,16 +0,0 @@ -# Pipedrive.UserSettingsItem - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**marketplace_team** | **Boolean** | If the vendors are allowed to be part of the Marketplace team or not | [optional] -**list_limit** | **Number** | The number of results shown in list by default | [optional] -**beta_app** | **Boolean** | Whether beta app is enabled | [optional] -**prevent_salesphone_callto_override** | **Boolean** | Prevent salesphone call to override | [optional] -**file_upload_destination** | **String** | The destination of file upload | [optional] -**callto_link_syntax** | **String** | The call to link syntax | [optional] -**autofill_deal_expected_close_date** | **Boolean** | Whether the expected close date of the deal is filled automatically or not | [optional] -**person_duplicate_condition** | **String** | Allow the vendors to duplicate a person | [optional] - - diff --git a/docs/Users.md b/docs/Users.md deleted file mode 100644 index 86f764c8..00000000 --- a/docs/Users.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.Users - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**data** | [**[BaseUser]**](BaseUser.md) | | [optional] - - diff --git a/docs/UsersAllOf.md b/docs/UsersAllOf.md deleted file mode 100644 index 58215110..00000000 --- a/docs/UsersAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.UsersAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[BaseUser]**](BaseUser.md) | | [optional] - - diff --git a/docs/UsersApi.md b/docs/UsersApi.md deleted file mode 100644 index 3d773291..00000000 --- a/docs/UsersApi.md +++ /dev/null @@ -1,558 +0,0 @@ -# Pipedrive.UsersApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addUser**](UsersApi.md#addUser) | **POST** /users | Add a new user -[**findUsersByName**](UsersApi.md#findUsersByName) | **GET** /users/find | Find users by name -[**getCurrentUser**](UsersApi.md#getCurrentUser) | **GET** /users/me | Get current user data -[**getUser**](UsersApi.md#getUser) | **GET** /users/{id} | Get one user -[**getUserFollowers**](UsersApi.md#getUserFollowers) | **GET** /users/{id}/followers | List followers of a user -[**getUserPermissions**](UsersApi.md#getUserPermissions) | **GET** /users/{id}/permissions | List user permissions -[**getUserRoleAssignments**](UsersApi.md#getUserRoleAssignments) | **GET** /users/{id}/roleAssignments | List role assignments -[**getUserRoleSettings**](UsersApi.md#getUserRoleSettings) | **GET** /users/{id}/roleSettings | List user role settings -[**getUsers**](UsersApi.md#getUsers) | **GET** /users | Get all users -[**updateUser**](UsersApi.md#updateUser) | **PUT** /users/{id} | Update user details - - - -## addUser - -> User addUser(opts) - -Add a new user - -Adds a new user to the company, returns the ID upon success. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UsersApi(apiClient); -let opts = Pipedrive.AddUserRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addUser(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **AddUserRequest** | [**AddUserRequest**](AddUserRequest.md)| | [optional] - -### Return type - -[**User**](User.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## findUsersByName - -> Users findUsersByName(term, opts) - -Find users by name - -Finds users by their name. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UsersApi(apiClient); -let term = "term_example"; // String | The search term to look for -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'searchByEmail': new Pipedrive.NumberBooleanDefault0() // NumberBooleanDefault0 | When enabled, the term will only be matched against email addresses of users. Default: `false`. -}; -apiInstance.findUsersByName(term, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **term** | **String**| The search term to look for | - **search_by_email** | [**NumberBooleanDefault0**](.md)| When enabled, the term will only be matched against email addresses of users. Default: `false`. | [optional] - -### Return type - -[**Users**](Users.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getCurrentUser - -> UserMe getCurrentUser() - -Get current user data - -Returns data about an authorized user within the company with bound company data: company ID, company name, and domain. Note that the `locale` property means 'Date/number format' in the Pipedrive account settings, not the chosen language. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UsersApi(apiClient); -apiInstance.getCurrentUser().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**UserMe**](UserMe.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getUser - -> User getUser(id) - -Get one user - -Returns data about a specific user within the company. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UsersApi(apiClient); -let id = 56; // Number | The ID of the user -apiInstance.getUser(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the user | - -### Return type - -[**User**](User.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getUserFollowers - -> UserIDs getUserFollowers(id) - -List followers of a user - -Lists the followers of a specific user. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UsersApi(apiClient); -let id = 56; // Number | The ID of the user -apiInstance.getUserFollowers(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the user | - -### Return type - -[**UserIDs**](UserIDs.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getUserPermissions - -> UserPermissions getUserPermissions(id) - -List user permissions - -Lists aggregated permissions over all assigned permission sets for a user. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UsersApi(apiClient); -let id = 56; // Number | The ID of the user -apiInstance.getUserPermissions(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the user | - -### Return type - -[**UserPermissions**](UserPermissions.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getUserRoleAssignments - -> GetRoleAssignments getUserRoleAssignments(id, opts) - -List role assignments - -Lists role assignments for a user. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UsersApi(apiClient); -let id = 56; // Number | The ID of the user -// snake_case as well as camelCase is supported for naming opts properties -let opts = { - 'start': 0, // Number | Pagination start - 'limit': 56 // Number | Items shown per page -}; -apiInstance.getUserRoleAssignments(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the user | - **start** | **Number**| Pagination start | [optional] [default to 0] - **limit** | **Number**| Items shown per page | [optional] - -### Return type - -[**GetRoleAssignments**](GetRoleAssignments.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getUserRoleSettings - -> GetRoleSettings getUserRoleSettings(id) - -List user role settings - -Lists the settings of user's assigned role. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UsersApi(apiClient); -let id = 56; // Number | The ID of the user -apiInstance.getUserRoleSettings(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the user | - -### Return type - -[**GetRoleSettings**](GetRoleSettings.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getUsers - -> Users getUsers() - -Get all users - -Returns data about all users within the company. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UsersApi(apiClient); -apiInstance.getUsers().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**Users**](Users.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateUser - -> User updateUser(id, opts) - -Update user details - -Updates the properties of a user. Currently, only `active_flag` can be updated. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.UsersApi(apiClient); -let id = 56; // Number | The ID of the user -let opts = Pipedrive.UpdateUserRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.updateUser(id, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the user | - **UpdateUserRequest** | [**UpdateUserRequest**](UpdateUserRequest.md)| | [optional] - -### Return type - -[**User**](User.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - diff --git a/docs/VisibleTo.md b/docs/VisibleTo.md deleted file mode 100644 index 86b1b0a2..00000000 --- a/docs/VisibleTo.md +++ /dev/null @@ -1,14 +0,0 @@ -# Pipedrive.VisibleTo - -## Enum - - -* `1` (value: `"1"`) - -* `3` (value: `"3"`) - -* `5` (value: `"5"`) - -* `7` (value: `"7"`) - - diff --git a/docs/Webhook.md b/docs/Webhook.md deleted file mode 100644 index f9ddb178..00000000 --- a/docs/Webhook.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.Webhook - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**status** | **String** | The status of the response | [optional] -**data** | [**BaseWebhook**](BaseWebhook.md) | | [optional] - - diff --git a/docs/WebhookAllOf.md b/docs/WebhookAllOf.md deleted file mode 100644 index 66957c6f..00000000 --- a/docs/WebhookAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.WebhookAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BaseWebhook**](BaseWebhook.md) | | [optional] - - diff --git a/docs/WebhookBadRequest.md b/docs/WebhookBadRequest.md deleted file mode 100644 index da572a54..00000000 --- a/docs/WebhookBadRequest.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.WebhookBadRequest - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**status** | **String** | The status of the response | [optional] -**errors** | **Object** | List of errors | [optional] - - diff --git a/docs/WebhookBadRequestAllOf.md b/docs/WebhookBadRequestAllOf.md deleted file mode 100644 index 5183abe4..00000000 --- a/docs/WebhookBadRequestAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.WebhookBadRequestAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | **Object** | List of errors | [optional] - - diff --git a/docs/Webhooks.md b/docs/Webhooks.md deleted file mode 100644 index c3e74237..00000000 --- a/docs/Webhooks.md +++ /dev/null @@ -1,11 +0,0 @@ -# Pipedrive.Webhooks - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**status** | **String** | The status of the response | [optional] -**data** | [**[BaseWebhook]**](BaseWebhook.md) | The array of Webhooks | [optional] - - diff --git a/docs/WebhooksAllOf.md b/docs/WebhooksAllOf.md deleted file mode 100644 index aaecbf82..00000000 --- a/docs/WebhooksAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.WebhooksAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**[BaseWebhook]**](BaseWebhook.md) | The array of Webhooks | [optional] - - diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md deleted file mode 100644 index e0c90d56..00000000 --- a/docs/WebhooksApi.md +++ /dev/null @@ -1,168 +0,0 @@ -# Pipedrive.WebhooksApi - -All URIs are relative to *https://api.pipedrive.com/v1* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addWebhook**](WebhooksApi.md#addWebhook) | **POST** /webhooks | Create a new Webhook -[**deleteWebhook**](WebhooksApi.md#deleteWebhook) | **DELETE** /webhooks/{id} | Delete existing Webhook -[**getWebhooks**](WebhooksApi.md#getWebhooks) | **GET** /webhooks | Get all Webhooks - - - -## addWebhook - -> Webhook addWebhook(opts) - -Create a new Webhook - -Creates a new Webhook and returns its details. Note that specifying an event which triggers the Webhook combines 2 parameters - `event_action` and `event_object`. E.g., use `*.*` for getting notifications about all events, `added.deal` for any newly added deals, `deleted.persons` for any deleted persons, etc. See <a href=\"https://pipedrive.readme.io/docs/guide-for-webhooks?ref=api_reference\" target=\"_blank\" rel=\"noopener noreferrer\">the guide for Webhooks</a> for more details. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.WebhooksApi(apiClient); -let opts = Pipedrive.AddWebhookRequest.constructFromObject({ - // Properties that you want to update -}); -apiInstance.addWebhook(opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **AddWebhookRequest** | [**AddWebhookRequest**](AddWebhookRequest.md)| | [optional] - -### Return type - -[**Webhook**](Webhook.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteWebhook - -> BaseResponseWithStatus deleteWebhook(id) - -Delete existing Webhook - -Deletes the specified Webhook. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.WebhooksApi(apiClient); -let id = 56; // Number | The ID of the Webhook to delete -apiInstance.deleteWebhook(id).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **Number**| The ID of the Webhook to delete | - -### Return type - -[**BaseResponseWithStatus**](BaseResponseWithStatus.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getWebhooks - -> Webhooks getWebhooks() - -Get all Webhooks - -Returns data about all the Webhooks of a company. - -### Example - -```javascript -import Pipedrive from 'pipedrive'; -let apiClient = new Pipedrive.ApiClient(); -// Configure API key authorization: api_key -let api_key = apiClient.authentications['api_key']; -api_key.apiKey = 'YOUR API KEY'; -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//api_key.apiKeyPrefix = 'Token'; -// Configure OAuth2 access token for authorization: oauth2 -let oauth2 = apiClient.authentications['oauth2']; -oauth2.accessToken = 'YOUR ACCESS TOKEN'; - -let apiInstance = new Pipedrive.WebhooksApi(apiClient); -apiInstance.getWebhooks().then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - -This endpoint does not need any parameter. - -### Return type - -[**Webhooks**](Webhooks.md) - -### Authorization - -[api_key](../README.md#api_key), [oauth2](../README.md#oauth2) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/WebhooksDeleteForbiddenSchema.md b/docs/WebhooksDeleteForbiddenSchema.md deleted file mode 100644 index 070e4982..00000000 --- a/docs/WebhooksDeleteForbiddenSchema.md +++ /dev/null @@ -1,10 +0,0 @@ -# Pipedrive.WebhooksDeleteForbiddenSchema - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**success** | **Boolean** | If the response is successful or not | [optional] -**message** | **String** | The error message | [optional] - - diff --git a/docs/WebhooksDeleteForbiddenSchemaAllOf.md b/docs/WebhooksDeleteForbiddenSchemaAllOf.md deleted file mode 100644 index 863d6f99..00000000 --- a/docs/WebhooksDeleteForbiddenSchemaAllOf.md +++ /dev/null @@ -1,9 +0,0 @@ -# Pipedrive.WebhooksDeleteForbiddenSchemaAllOf - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | The error message | [optional] - - diff --git a/docs/v1.md b/docs/v1.md new file mode 100644 index 00000000..de9d3bdb --- /dev/null +++ b/docs/v1.md @@ -0,0 +1,334 @@ +## List of API Endpoints for API v1 + +All URIs are relative to _https://api.pipedrive.com/v1_ + +Class | Method | HTTP request | Description | +------------ | ------------- | ------------- | ------------- | +ActivitiesApi | addActivity | **POST** /activities | Add an activity +ActivitiesApi | deleteActivities | **DELETE** /activities | Delete multiple activities in bulk +ActivitiesApi | deleteActivity | **DELETE** /activities/{id} | Delete an activity +ActivitiesApi | getActivities | **GET** /activities | Get all activities assigned to a particular user +ActivitiesApi | getActivitiesCollection | **GET** /activities/collection | Get all activities (BETA) +ActivitiesApi | getActivity | **GET** /activities/{id} | Get details of an activity +ActivitiesApi | updateActivity | **PUT** /activities/{id} | Update an activity +ActivityFieldsApi | getActivityFields | **GET** /activityFields | Get all activity fields +ActivityTypesApi | addActivityType | **POST** /activityTypes | Add new activity type +ActivityTypesApi | deleteActivityType | **DELETE** /activityTypes/{id} | Delete an activity type +ActivityTypesApi | deleteActivityTypes | **DELETE** /activityTypes | Delete multiple activity types in bulk +ActivityTypesApi | getActivityTypes | **GET** /activityTypes | Get all activity types +ActivityTypesApi | updateActivityType | **PUT** /activityTypes/{id} | Update an activity type +BillingApi | getCompanyAddons | **GET** /billing/subscriptions/addons | Get all add-ons for a single company +CallLogsApi | addCallLog | **POST** /callLogs | Add a call log +CallLogsApi | addCallLogAudioFile | **POST** /callLogs/{id}/recordings | Attach an audio file to the call log +CallLogsApi | deleteCallLog | **DELETE** /callLogs/{id} | Delete a call log +CallLogsApi | getCallLog | **GET** /callLogs/{id} | Get details of a call log +CallLogsApi | getUserCallLogs | **GET** /callLogs | Get all call logs assigned to a particular user +ChannelsApi | addChannel | **POST** /channels | Add a channel +ChannelsApi | deleteChannel | **DELETE** /channels/{id} | Delete a channel +ChannelsApi | deleteConversation | **DELETE** /channels/{channel-id}/conversations/{conversation-id} | Delete a conversation +ChannelsApi | receiveMessage | **POST** /channels/messages/receive | Receives an incoming message +CurrenciesApi | getCurrencies | **GET** /currencies | Get all supported currencies +DealFieldsApi | addDealField | **POST** /dealFields | Add a new deal field +DealFieldsApi | deleteDealField | **DELETE** /dealFields/{id} | Delete a deal field +DealFieldsApi | deleteDealFields | **DELETE** /dealFields | Delete multiple deal fields in bulk +DealFieldsApi | getDealField | **GET** /dealFields/{id} | Get one deal field +DealFieldsApi | getDealFields | **GET** /dealFields | Get all deal fields +DealFieldsApi | updateDealField | **PUT** /dealFields/{id} | Update a deal field +DealsApi | addDeal | **POST** /deals | Add a deal +DealsApi | addDealFollower | **POST** /deals/{id}/followers | Add a follower to a deal +DealsApi | addDealParticipant | **POST** /deals/{id}/participants | Add a participant to a deal +DealsApi | addDealProduct | **POST** /deals/{id}/products | Add a product to a deal +DealsApi | deleteDeal | **DELETE** /deals/{id} | Delete a deal +DealsApi | deleteDealFollower | **DELETE** /deals/{id}/followers/{follower_id} | Delete a follower from a deal +DealsApi | deleteDealParticipant | **DELETE** /deals/{id}/participants/{deal_participant_id} | Delete a participant from a deal +DealsApi | deleteDealProduct | **DELETE** /deals/{id}/products/{product_attachment_id} | Delete an attached product from a deal +DealsApi | deleteDeals | **DELETE** /deals | Delete multiple deals in bulk +DealsApi | duplicateDeal | **POST** /deals/{id}/duplicate | Duplicate deal +DealsApi | getDeal | **GET** /deals/{id} | Get details of a deal +DealsApi | getDealActivities | **GET** /deals/{id}/activities | List activities associated with a deal +DealsApi | getDealChangelog | **GET** /deals/{id}/changelog | List updates about deal field values +DealsApi | getDealFiles | **GET** /deals/{id}/files | List files attached to a deal +DealsApi | getDealFollowers | **GET** /deals/{id}/followers | List followers of a deal +DealsApi | getDealMailMessages | **GET** /deals/{id}/mailMessages | List mail messages associated with a deal +DealsApi | getDealParticipants | **GET** /deals/{id}/participants | List participants of a deal +DealsApi | getDealParticipantsChangelog | **GET** /deals/{id}/participantsChangelog | List updates about participants of a deal +DealsApi | getDealPersons | **GET** /deals/{id}/persons | List all persons associated with a deal +DealsApi | getDealProducts | **GET** /deals/{id}/products | List products attached to a deal +DealsApi | getDealUpdates | **GET** /deals/{id}/flow | List updates about a deal +DealsApi | getDealUsers | **GET** /deals/{id}/permittedUsers | List permitted users +DealsApi | getDeals | **GET** /deals | Get all deals +DealsApi | getDealsCollection | **GET** /deals/collection | Get all deals (BETA) +DealsApi | getDealsSummary | **GET** /deals/summary | Get deals summary +DealsApi | getDealsTimeline | **GET** /deals/timeline | Get deals timeline +DealsApi | mergeDeals | **PUT** /deals/{id}/merge | Merge two deals +DealsApi | searchDeals | **GET** /deals/search | Search deals +DealsApi | updateDeal | **PUT** /deals/{id} | Update a deal +DealsApi | updateDealProduct | **PUT** /deals/{id}/products/{product_attachment_id} | Update the product attached to a deal +FilesApi | addFile | **POST** /files | Add file +FilesApi | addFileAndLinkIt | **POST** /files/remote | Create a remote file and link it to an item +FilesApi | deleteFile | **DELETE** /files/{id} | Delete a file +FilesApi | downloadFile | **GET** /files/{id}/download | Download one file +FilesApi | getFile | **GET** /files/{id} | Get one file +FilesApi | getFiles | **GET** /files | Get all files +FilesApi | linkFileToItem | **POST** /files/remoteLink | Link a remote file to an item +FilesApi | updateFile | **PUT** /files/{id} | Update file details +FiltersApi | addFilter | **POST** /filters | Add a new filter +FiltersApi | deleteFilter | **DELETE** /filters/{id} | Delete a filter +FiltersApi | deleteFilters | **DELETE** /filters | Delete multiple filters in bulk +FiltersApi | getFilter | **GET** /filters/{id} | Get one filter +FiltersApi | getFilterHelpers | **GET** /filters/helpers | Get all filter helpers +FiltersApi | getFilters | **GET** /filters | Get all filters +FiltersApi | updateFilter | **PUT** /filters/{id} | Update filter +GoalsApi | addGoal | **POST** /goals | Add a new goal +GoalsApi | deleteGoal | **DELETE** /goals/{id} | Delete existing goal +GoalsApi | getGoalResult | **GET** /goals/{id}/results | Get result of a goal +GoalsApi | getGoals | **GET** /goals/find | Find goals +GoalsApi | updateGoal | **PUT** /goals/{id} | Update existing goal +ItemSearchApi | searchItem | **GET** /itemSearch | Perform a search from multiple item types +ItemSearchApi | searchItemByField | **GET** /itemSearch/field | Perform a search using a specific field from an item type +LeadLabelsApi | addLeadLabel | **POST** /leadLabels | Add a lead label +LeadLabelsApi | deleteLeadLabel | **DELETE** /leadLabels/{id} | Delete a lead label +LeadLabelsApi | getLeadLabels | **GET** /leadLabels | Get all lead labels +LeadLabelsApi | updateLeadLabel | **PATCH** /leadLabels/{id} | Update a lead label +LeadSourcesApi | getLeadSources | **GET** /leadSources | Get all lead sources +LeadsApi | addLead | **POST** /leads | Add a lead +LeadsApi | deleteLead | **DELETE** /leads/{id} | Delete a lead +LeadsApi | getLead | **GET** /leads/{id} | Get one lead +LeadsApi | getLeadUsers | **GET** /leads/{id}/permittedUsers | List permitted users +LeadsApi | getLeads | **GET** /leads | Get all leads +LeadsApi | searchLeads | **GET** /leads/search | Search leads +LeadsApi | updateLead | **PATCH** /leads/{id} | Update a lead +LegacyTeamsApi | addTeam | **POST** /legacyTeams | Add a new team +LegacyTeamsApi | addTeamUser | **POST** /legacyTeams/{id}/users | Add users to a team +LegacyTeamsApi | deleteTeamUser | **DELETE** /legacyTeams/{id}/users | Delete users from a team +LegacyTeamsApi | getTeam | **GET** /legacyTeams/{id} | Get a single team +LegacyTeamsApi | getTeamUsers | **GET** /legacyTeams/{id}/users | Get all users in a team +LegacyTeamsApi | getTeams | **GET** /legacyTeams | Get all teams +LegacyTeamsApi | getUserTeams | **GET** /legacyTeams/user/{id} | Get all teams of a user +LegacyTeamsApi | updateTeam | **PUT** /legacyTeams/{id} | Update a team +MailboxApi | deleteMailThread | **DELETE** /mailbox/mailThreads/{id} | Delete mail thread +MailboxApi | getMailMessage | **GET** /mailbox/mailMessages/{id} | Get one mail message +MailboxApi | getMailThread | **GET** /mailbox/mailThreads/{id} | Get one mail thread +MailboxApi | getMailThreadMessages | **GET** /mailbox/mailThreads/{id}/mailMessages | Get all mail messages of mail thread +MailboxApi | getMailThreads | **GET** /mailbox/mailThreads | Get mail threads +MailboxApi | updateMailThreadDetails | **PUT** /mailbox/mailThreads/{id} | Update mail thread details +MeetingsApi | deleteUserProviderLink | **DELETE** /meetings/userProviderLinks/{id} | Delete the link between a user and the installed video call integration +MeetingsApi | saveUserProviderLink | **POST** /meetings/userProviderLinks | Link a user with the installed video call integration +NoteFieldsApi | getNoteFields | **GET** /noteFields | Get all note fields +NotesApi | addNote | **POST** /notes | Add a note +NotesApi | addNoteComment | **POST** /notes/{id}/comments | Add a comment to a note +NotesApi | deleteComment | **DELETE** /notes/{id}/comments/{commentId} | Delete a comment related to a note +NotesApi | deleteNote | **DELETE** /notes/{id} | Delete a note +NotesApi | getComment | **GET** /notes/{id}/comments/{commentId} | Get one comment +NotesApi | getNote | **GET** /notes/{id} | Get one note +NotesApi | getNoteComments | **GET** /notes/{id}/comments | Get all comments for a note +NotesApi | getNotes | **GET** /notes | Get all notes +NotesApi | updateCommentForNote | **PUT** /notes/{id}/comments/{commentId} | Update a comment related to a note +NotesApi | updateNote | **PUT** /notes/{id} | Update a note +OrganizationFieldsApi | addOrganizationField | **POST** /organizationFields | Add a new organization field +OrganizationFieldsApi | deleteOrganizationField | **DELETE** /organizationFields/{id} | Delete an organization field +OrganizationFieldsApi | deleteOrganizationFields | **DELETE** /organizationFields | Delete multiple organization fields in bulk +OrganizationFieldsApi | getOrganizationField | **GET** /organizationFields/{id} | Get one organization field +OrganizationFieldsApi | getOrganizationFields | **GET** /organizationFields | Get all organization fields +OrganizationFieldsApi | updateOrganizationField | **PUT** /organizationFields/{id} | Update an organization field +OrganizationRelationshipsApi | addOrganizationRelationship | **POST** /organizationRelationships | Create an organization relationship +OrganizationRelationshipsApi | deleteOrganizationRelationship | **DELETE** /organizationRelationships/{id} | Delete an organization relationship +OrganizationRelationshipsApi | getOrganizationRelationship | **GET** /organizationRelationships/{id} | Get one organization relationship +OrganizationRelationshipsApi | getOrganizationRelationships | **GET** /organizationRelationships | Get all relationships for organization +OrganizationRelationshipsApi | updateOrganizationRelationship | **PUT** /organizationRelationships/{id} | Update an organization relationship +OrganizationsApi | addOrganization | **POST** /organizations | Add an organization +OrganizationsApi | addOrganizationFollower | **POST** /organizations/{id}/followers | Add a follower to an organization +OrganizationsApi | deleteOrganization | **DELETE** /organizations/{id} | Delete an organization +OrganizationsApi | deleteOrganizationFollower | **DELETE** /organizations/{id}/followers/{follower_id} | Delete a follower from an organization +OrganizationsApi | deleteOrganizations | **DELETE** /organizations | Delete multiple organizations in bulk +OrganizationsApi | getOrganization | **GET** /organizations/{id} | Get details of an organization +OrganizationsApi | getOrganizationActivities | **GET** /organizations/{id}/activities | List activities associated with an organization +OrganizationsApi | getOrganizationChangelog | **GET** /organizations/{id}/changelog | List updates about organization field values +OrganizationsApi | getOrganizationDeals | **GET** /organizations/{id}/deals | List deals associated with an organization +OrganizationsApi | getOrganizationFiles | **GET** /organizations/{id}/files | List files attached to an organization +OrganizationsApi | getOrganizationFollowers | **GET** /organizations/{id}/followers | List followers of an organization +OrganizationsApi | getOrganizationMailMessages | **GET** /organizations/{id}/mailMessages | List mail messages associated with an organization +OrganizationsApi | getOrganizationPersons | **GET** /organizations/{id}/persons | List persons of an organization +OrganizationsApi | getOrganizationUpdates | **GET** /organizations/{id}/flow | List updates about an organization +OrganizationsApi | getOrganizationUsers | **GET** /organizations/{id}/permittedUsers | List permitted users +OrganizationsApi | getOrganizations | **GET** /organizations | Get all organizations +OrganizationsApi | getOrganizationsCollection | **GET** /organizations/collection | Get all organizations (BETA) +OrganizationsApi | mergeOrganizations | **PUT** /organizations/{id}/merge | Merge two organizations +OrganizationsApi | searchOrganization | **GET** /organizations/search | Search organizations +OrganizationsApi | updateOrganization | **PUT** /organizations/{id} | Update an organization +PermissionSetsApi | getPermissionSet | **GET** /permissionSets/{id} | Get one permission set +PermissionSetsApi | getPermissionSetAssignments | **GET** /permissionSets/{id}/assignments | List permission set assignments +PermissionSetsApi | getPermissionSets | **GET** /permissionSets | Get all permission sets +PersonFieldsApi | addPersonField | **POST** /personFields | Add a new person field +PersonFieldsApi | deletePersonField | **DELETE** /personFields/{id} | Delete a person field +PersonFieldsApi | deletePersonFields | **DELETE** /personFields | Delete multiple person fields in bulk +PersonFieldsApi | getPersonField | **GET** /personFields/{id} | Get one person field +PersonFieldsApi | getPersonFields | **GET** /personFields | Get all person fields +PersonFieldsApi | updatePersonField | **PUT** /personFields/{id} | Update a person field +PersonsApi | addPerson | **POST** /persons | Add a person +PersonsApi | addPersonFollower | **POST** /persons/{id}/followers | Add a follower to a person +PersonsApi | addPersonPicture | **POST** /persons/{id}/picture | Add person picture +PersonsApi | deletePerson | **DELETE** /persons/{id} | Delete a person +PersonsApi | deletePersonFollower | **DELETE** /persons/{id}/followers/{follower_id} | Delete a follower from a person +PersonsApi | deletePersonPicture | **DELETE** /persons/{id}/picture | Delete person picture +PersonsApi | deletePersons | **DELETE** /persons | Delete multiple persons in bulk +PersonsApi | getPerson | **GET** /persons/{id} | Get details of a person +PersonsApi | getPersonActivities | **GET** /persons/{id}/activities | List activities associated with a person +PersonsApi | getPersonChangelog | **GET** /persons/{id}/changelog | List updates about person field values +PersonsApi | getPersonDeals | **GET** /persons/{id}/deals | List deals associated with a person +PersonsApi | getPersonFiles | **GET** /persons/{id}/files | List files attached to a person +PersonsApi | getPersonFollowers | **GET** /persons/{id}/followers | List followers of a person +PersonsApi | getPersonMailMessages | **GET** /persons/{id}/mailMessages | List mail messages associated with a person +PersonsApi | getPersonProducts | **GET** /persons/{id}/products | List products associated with a person +PersonsApi | getPersonUpdates | **GET** /persons/{id}/flow | List updates about a person +PersonsApi | getPersonUsers | **GET** /persons/{id}/permittedUsers | List permitted users +PersonsApi | getPersons | **GET** /persons | Get all persons +PersonsApi | getPersonsCollection | **GET** /persons/collection | Get all persons (BETA) +PersonsApi | mergePersons | **PUT** /persons/{id}/merge | Merge two persons +PersonsApi | searchPersons | **GET** /persons/search | Search persons +PersonsApi | updatePerson | **PUT** /persons/{id} | Update a person +PipelinesApi | addPipeline | **POST** /pipelines | Add a new pipeline +PipelinesApi | deletePipeline | **DELETE** /pipelines/{id} | Delete a pipeline +PipelinesApi | getPipeline | **GET** /pipelines/{id} | Get one pipeline +PipelinesApi | getPipelineConversionStatistics | **GET** /pipelines/{id}/conversion_statistics | Get deals conversion rates in pipeline +PipelinesApi | getPipelineDeals | **GET** /pipelines/{id}/deals | Get deals in a pipeline +PipelinesApi | getPipelineMovementStatistics | **GET** /pipelines/{id}/movement_statistics | Get deals movements in pipeline +PipelinesApi | getPipelines | **GET** /pipelines | Get all pipelines +PipelinesApi | updatePipeline | **PUT** /pipelines/{id} | Update a pipeline +ProductFieldsApi | addProductField | **POST** /productFields | Add a new product field +ProductFieldsApi | deleteProductField | **DELETE** /productFields/{id} | Delete a product field +ProductFieldsApi | deleteProductFields | **DELETE** /productFields | Delete multiple product fields in bulk +ProductFieldsApi | getProductField | **GET** /productFields/{id} | Get one product field +ProductFieldsApi | getProductFields | **GET** /productFields | Get all product fields +ProductFieldsApi | updateProductField | **PUT** /productFields/{id} | Update a product field +ProductsApi | addProduct | **POST** /products | Add a product +ProductsApi | addProductFollower | **POST** /products/{id}/followers | Add a follower to a product +ProductsApi | deleteProduct | **DELETE** /products/{id} | Delete a product +ProductsApi | deleteProductFollower | **DELETE** /products/{id}/followers/{follower_id} | Delete a follower from a product +ProductsApi | getProduct | **GET** /products/{id} | Get one product +ProductsApi | getProductDeals | **GET** /products/{id}/deals | Get deals where a product is attached to +ProductsApi | getProductFiles | **GET** /products/{id}/files | List files attached to a product +ProductsApi | getProductFollowers | **GET** /products/{id}/followers | List followers of a product +ProductsApi | getProductUsers | **GET** /products/{id}/permittedUsers | List permitted users +ProductsApi | getProducts | **GET** /products | Get all products +ProductsApi | searchProducts | **GET** /products/search | Search products +ProductsApi | updateProduct | **PUT** /products/{id} | Update a product +ProjectTemplatesApi | getProjectTemplate | **GET** /projectTemplates/{id} | Get details of a template +ProjectTemplatesApi | getProjectTemplates | **GET** /projectTemplates | Get all project templates +ProjectTemplatesApi | getProjectsBoard | **GET** /projects/boards/{id} | Get details of a board +ProjectTemplatesApi | getProjectsPhase | **GET** /projects/phases/{id} | Get details of a phase +ProjectsApi | addProject | **POST** /projects | Add a project +ProjectsApi | archiveProject | **POST** /projects/{id}/archive | Archive a project +ProjectsApi | deleteProject | **DELETE** /projects/{id} | Delete a project +ProjectsApi | getProject | **GET** /projects/{id} | Get details of a project +ProjectsApi | getProjectActivities | **GET** /projects/{id}/activities | Returns project activities +ProjectsApi | getProjectGroups | **GET** /projects/{id}/groups | Returns project groups +ProjectsApi | getProjectPlan | **GET** /projects/{id}/plan | Returns project plan +ProjectsApi | getProjectTasks | **GET** /projects/{id}/tasks | Returns project tasks +ProjectsApi | getProjects | **GET** /projects | Get all projects +ProjectsApi | getProjectsBoards | **GET** /projects/boards | Get all project boards +ProjectsApi | getProjectsPhases | **GET** /projects/phases | Get project phases +ProjectsApi | putProjectPlanActivity | **PUT** /projects/{id}/plan/activities/{activityId} | Update activity in project plan +ProjectsApi | putProjectPlanTask | **PUT** /projects/{id}/plan/tasks/{taskId} | Update task in project plan +ProjectsApi | updateProject | **PUT** /projects/{id} | Update a project +RecentsApi | getRecents | **GET** /recents | Get recents +RolesApi | addOrUpdateRoleSetting | **POST** /roles/{id}/settings | Add or update role setting +RolesApi | addRole | **POST** /roles | Add a role +RolesApi | addRoleAssignment | **POST** /roles/{id}/assignments | Add role assignment +RolesApi | deleteRole | **DELETE** /roles/{id} | Delete a role +RolesApi | deleteRoleAssignment | **DELETE** /roles/{id}/assignments | Delete a role assignment +RolesApi | getRole | **GET** /roles/{id} | Get one role +RolesApi | getRoleAssignments | **GET** /roles/{id}/assignments | List role assignments +RolesApi | getRolePipelines | **GET** /roles/{id}/pipelines | List pipeline visibility for a role +RolesApi | getRoleSettings | **GET** /roles/{id}/settings | List role settings +RolesApi | getRoles | **GET** /roles | Get all roles +RolesApi | updateRole | **PUT** /roles/{id} | Update role details +RolesApi | updateRolePipelines | **PUT** /roles/{id}/pipelines | Update pipeline visibility for a role +StagesApi | addStage | **POST** /stages | Add a new stage +StagesApi | deleteStage | **DELETE** /stages/{id} | Delete a stage +StagesApi | deleteStages | **DELETE** /stages | Delete multiple stages in bulk +StagesApi | getStage | **GET** /stages/{id} | Get one stage +StagesApi | getStageDeals | **GET** /stages/{id}/deals | Get deals in a stage +StagesApi | getStages | **GET** /stages | Get all stages +StagesApi | updateStage | **PUT** /stages/{id} | Update stage details +SubscriptionsApi | addRecurringSubscription | **POST** /subscriptions/recurring | Add a recurring subscription +SubscriptionsApi | addSubscriptionInstallment | **POST** /subscriptions/installment | Add an installment subscription +SubscriptionsApi | cancelRecurringSubscription | **PUT** /subscriptions/recurring/{id}/cancel | Cancel a recurring subscription +SubscriptionsApi | deleteSubscription | **DELETE** /subscriptions/{id} | Delete a subscription +SubscriptionsApi | findSubscriptionByDeal | **GET** /subscriptions/find/{dealId} | Find subscription by deal +SubscriptionsApi | getSubscription | **GET** /subscriptions/{id} | Get details of a subscription +SubscriptionsApi | getSubscriptionPayments | **GET** /subscriptions/{id}/payments | Get all payments of a subscription +SubscriptionsApi | updateRecurringSubscription | **PUT** /subscriptions/recurring/{id} | Update a recurring subscription +SubscriptionsApi | updateSubscriptionInstallment | **PUT** /subscriptions/installment/{id} | Update an installment subscription +TasksApi | addTask | **POST** /tasks | Add a task +TasksApi | deleteTask | **DELETE** /tasks/{id} | Delete a task +TasksApi | getTask | **GET** /tasks/{id} | Get details of a task +TasksApi | getTasks | **GET** /tasks | Get all tasks +TasksApi | updateTask | **PUT** /tasks/{id} | Update a task +UserConnectionsApi | getUserConnections | **GET** /userConnections | Get all user connections +UserSettingsApi | getUserSettings | **GET** /userSettings | List settings of an authorized user +UsersApi | addUser | **POST** /users | Add a new user +UsersApi | findUsersByName | **GET** /users/find | Find users by name +UsersApi | getCurrentUser | **GET** /users/me | Get current user data +UsersApi | getUser | **GET** /users/{id} | Get one user +UsersApi | getUserFollowers | **GET** /users/{id}/followers | List followers of a user +UsersApi | getUserPermissions | **GET** /users/{id}/permissions | List user permissions +UsersApi | getUserRoleAssignments | **GET** /users/{id}/roleAssignments | List role assignments +UsersApi | getUserRoleSettings | **GET** /users/{id}/roleSettings | List user role settings +UsersApi | getUsers | **GET** /users | Get all users +UsersApi | updateUser | **PUT** /users/{id} | Update user details +WebhooksApi | addWebhook | **POST** /webhooks | Create a new Webhook +WebhooksApi | deleteWebhook | **DELETE** /webhooks/{id} | Delete existing Webhook +WebhooksApi | getWebhooks | **GET** /webhooks | Get all Webhooks + +## Documentation for Authorization + + + +### api_key + + +- **Type**: API key +- **API key parameter name**: api_token +- **Location**: URL query string + + + +### basic_authentication + +- **Type**: HTTP basic authentication + + + +### oauth2 + + +- **Type**: OAuth +- **Flow**: accessCode +- **Authorization URL**: https://oauth.pipedrive.com/oauth/authorize +- **Scopes**: + - base: Read settings of the authorized user and currencies in an account + - deals:read: Read most of the data about deals and related entities - deal fields, products, followers, participants; all notes, files, filters, pipelines, stages, and statistics. Does not include access to activities (except the last and next activity related to a deal) + - deals:full: Create, read, update and delete deals, its participants and followers; all files, notes, and filters. It also includes read access to deal fields, pipelines, stages, and statistics. Does not include access to activities (except the last and next activity related to a deal) + - mail:read: Read mail threads and messages + - mail:full: Read, update and delete mail threads. Also grants read access to mail messages + - activities:read: Read activities, its fields and types; all files and filters + - activities:full: Create, read, update and delete activities and all files and filters. Also includes read access to activity fields and types + - contacts:read: Read the data about persons and organizations, their related fields and followers; also all notes, files, filters + - contacts:full: Create, read, update and delete persons and organizations and their followers; all notes, files, filters. Also grants read access to contacts-related fields + - products:read: Read products, its fields, files, followers and products connected to a deal + - products:full: Create, read, update and delete products and its fields; add products to deals + - projects:read: Read projects and its fields, tasks and project templates + - projects:full: Create, read, update and delete projects and its fields; add projects templates and project related tasks + - users:read: Read data about users (people with access to a Pipedrive account), their permissions, roles and followers + - recents:read: Read all recent changes occurred in an account. Includes data about activities, activity types, deals, files, filters, notes, persons, organizations, pipelines, stages, products and users + - search:read: Search across the account for deals, persons, organizations, files and products, and see details about the returned results + - admin: Allows to do many things that an administrator can do in a Pipedrive company account - create, read, update and delete pipelines and its stages; deal, person and organization fields; activity types; users and permissions, etc. It also allows the app to create webhooks and fetch and delete webhooks that are created by the app + - leads:read: Read data about leads and lead labels + - leads:full: Create, read, update and delete leads and lead labels + - phone-integration: Enables advanced call integration features like logging call duration and other metadata, and play call recordings inside Pipedrive + - goals:read: Read data on all goals + - goals:full: Create, read, update and delete goals + - video-calls: Allows application to register as a video call integration provider and create conference links + - messengers-integration: Allows application to register as a messengers integration provider and allows them to deliver incoming messages and their statuses + diff --git a/docs/v2.md b/docs/v2.md new file mode 100644 index 00000000..06f5920e --- /dev/null +++ b/docs/v2.md @@ -0,0 +1,148 @@ +## List of API Endpoints for API v2 + +All URIs are relative to _https://api.pipedrive.com/api/v2_ + +Class | Method | HTTP request | Description | +------------ | ------------- | ------------- | ------------- | +ActivitiesApi | addActivity | **POST** /activities | Add a new activity +ActivitiesApi | deleteActivity | **DELETE** /activities/{id} | Delete an activity +ActivitiesApi | getActivities | **GET** /activities | Get all activities +ActivitiesApi | getActivity | **GET** /activities/{id} | Get details of an activity +ActivitiesApi | updateActivity | **PATCH** /activities/{id} | Update an activity +BetaApi | addActivity | **POST** /activities | Add a new activity +BetaApi | addDeal | **POST** /deals | Add a new deal +BetaApi | addDealProduct | **POST** /deals/{id}/products | Add a product to a deal +BetaApi | addOrganization | **POST** /organizations | Add a new organization +BetaApi | addPerson | **POST** /persons | Add a new person +BetaApi | deleteActivity | **DELETE** /activities/{id} | Delete an activity +BetaApi | deleteAdditionalDiscount | **DELETE** /deals/{id}/discounts/{discount_id} | Delete a discount from a deal +BetaApi | deleteDeal | **DELETE** /deals/{id} | Delete a deal +BetaApi | deleteDealProduct | **DELETE** /deals/{id}/products/{product_attachment_id} | Delete an attached product from a deal +BetaApi | deleteOrganization | **DELETE** /organizations/{id} | Delete a organization +BetaApi | deletePerson | **DELETE** /persons/{id} | Delete a person +BetaApi | getActivities | **GET** /activities | Get all activities +BetaApi | getActivity | **GET** /activities/{id} | Get details of an activity +BetaApi | getAdditionalDiscounts | **GET** /deals/{id}/discounts | List discounts added to a deal +BetaApi | getDeal | **GET** /deals/{id} | Get details of a deal +BetaApi | getDealProducts | **GET** /deals/{id}/products | List products attached to a deal +BetaApi | getDeals | **GET** /deals | Get all deals +BetaApi | getDealsProducts | **GET** /deals/products | Get deal products of several deals +BetaApi | getOrganization | **GET** /organizations/{id} | Get details of a organization +BetaApi | getOrganizations | **GET** /organizations | Get all organizations +BetaApi | getPerson | **GET** /persons/{id} | Get details of a person +BetaApi | getPersons | **GET** /persons | Get all persons +BetaApi | postAdditionalDiscount | **POST** /deals/{id}/discounts | Add a discount to a deal +BetaApi | searchDeals | **GET** /deals/search | Search deals +BetaApi | searchItem | **GET** /itemSearch | Perform a search from multiple item types +BetaApi | searchItemByField | **GET** /itemSearch/field | Perform a search using a specific field from an item type +BetaApi | searchLeads | **GET** /leads/search | Search leads +BetaApi | searchOrganization | **GET** /organizations/search | Search organizations +BetaApi | searchPersons | **GET** /persons/search | Search persons +BetaApi | updateActivity | **PATCH** /activities/{id} | Update an activity +BetaApi | updateAdditionalDiscount | **PATCH** /deals/{id}/discounts/{discount_id} | Update a discount added to a deal +BetaApi | updateDeal | **PATCH** /deals/{id} | Update a deal +BetaApi | updateDealProduct | **PATCH** /deals/{id}/products/{product_attachment_id} | Update the product attached to a deal +BetaApi | updateOrganization | **PATCH** /organizations/{id} | Update a organization +BetaApi | updatePerson | **PATCH** /persons/{id} | Update a person +DealsApi | addDeal | **POST** /deals | Add a new deal +DealsApi | addDealProduct | **POST** /deals/{id}/products | Add a product to a deal +DealsApi | deleteAdditionalDiscount | **DELETE** /deals/{id}/discounts/{discount_id} | Delete a discount from a deal +DealsApi | deleteDeal | **DELETE** /deals/{id} | Delete a deal +DealsApi | deleteDealProduct | **DELETE** /deals/{id}/products/{product_attachment_id} | Delete an attached product from a deal +DealsApi | getAdditionalDiscounts | **GET** /deals/{id}/discounts | List discounts added to a deal +DealsApi | getDeal | **GET** /deals/{id} | Get details of a deal +DealsApi | getDealProducts | **GET** /deals/{id}/products | List products attached to a deal +DealsApi | getDeals | **GET** /deals | Get all deals +DealsApi | getDealsProducts | **GET** /deals/products | Get deal products of several deals +DealsApi | postAdditionalDiscount | **POST** /deals/{id}/discounts | Add a discount to a deal +DealsApi | searchDeals | **GET** /deals/search | Search deals +DealsApi | updateAdditionalDiscount | **PATCH** /deals/{id}/discounts/{discount_id} | Update a discount added to a deal +DealsApi | updateDeal | **PATCH** /deals/{id} | Update a deal +DealsApi | updateDealProduct | **PATCH** /deals/{id}/products/{product_attachment_id} | Update the product attached to a deal +ItemSearchApi | searchItem | **GET** /itemSearch | Perform a search from multiple item types +ItemSearchApi | searchItemByField | **GET** /itemSearch/field | Perform a search using a specific field from an item type +LeadsApi | searchLeads | **GET** /leads/search | Search leads +OrganizationsApi | addOrganization | **POST** /organizations | Add a new organization +OrganizationsApi | deleteOrganization | **DELETE** /organizations/{id} | Delete a organization +OrganizationsApi | getOrganization | **GET** /organizations/{id} | Get details of a organization +OrganizationsApi | getOrganizations | **GET** /organizations | Get all organizations +OrganizationsApi | searchOrganization | **GET** /organizations/search | Search organizations +OrganizationsApi | updateOrganization | **PATCH** /organizations/{id} | Update a organization +PersonsApi | addPerson | **POST** /persons | Add a new person +PersonsApi | deletePerson | **DELETE** /persons/{id} | Delete a person +PersonsApi | getPerson | **GET** /persons/{id} | Get details of a person +PersonsApi | getPersons | **GET** /persons | Get all persons +PersonsApi | searchPersons | **GET** /persons/search | Search persons +PersonsApi | updatePerson | **PATCH** /persons/{id} | Update a person +PipelinesApi | addPipeline | **POST** /pipelines | Add a new pipeline +PipelinesApi | deletePipeline | **DELETE** /pipelines/{id} | Delete a pipeline +PipelinesApi | getPipeline | **GET** /pipelines/{id} | Get one pipeline +PipelinesApi | getPipelines | **GET** /pipelines | Get all pipelines +PipelinesApi | updatePipeline | **PATCH** /pipelines/{id} | Update a pipeline +ProductsApi | addProduct | **POST** /products | Add a product +ProductsApi | addProductVariation | **POST** /products/{id}/variations | Add a product variation +ProductsApi | deleteProduct | **DELETE** /products/{id} | Delete a product +ProductsApi | deleteProductVariation | **DELETE** /products/{id}/variations/{product_variation_id} | Delete a product variation +ProductsApi | getProduct | **GET** /products/{id} | Get one product +ProductsApi | getProductVariations | **GET** /products/{id}/variations | Get all product variations +ProductsApi | getProducts | **GET** /products | Get all products +ProductsApi | searchProducts | **GET** /products/search | Search products +ProductsApi | updateProduct | **PATCH** /products/{id} | Update a product +ProductsApi | updateProductVariation | **PATCH** /products/{id}/variations/{product_variation_id} | Update a product variation +StagesApi | addStage | **POST** /stages | Add a new stage +StagesApi | deleteStage | **DELETE** /stages/{id} | Delete a stage +StagesApi | getStage | **GET** /stages/{id} | Get one stage +StagesApi | getStages | **GET** /stages | Get all stages +StagesApi | updateStage | **PATCH** /stages/{id} | Update stage details + +## Documentation for Authorization + + + +### api_key + + +- **Type**: API key +- **API key parameter name**: api_token +- **Location**: URL query string + + + +### basic_authentication + +- **Type**: HTTP basic authentication + + + +### oauth2 + + +- **Type**: OAuth +- **Flow**: accessCode +- **Authorization URL**: https://oauth.pipedrive.com/oauth/authorize +- **Scopes**: + - base: Read settings of the authorized user and currencies in an account + - deals:read: Read most of the data about deals and related entities - deal fields, products, followers, participants; all notes, files, filters, pipelines, stages, and statistics. Does not include access to activities (except the last and next activity related to a deal) + - deals:full: Create, read, update and delete deals, its participants and followers; all files, notes, and filters. It also includes read access to deal fields, pipelines, stages, and statistics. Does not include access to activities (except the last and next activity related to a deal) + - mail:read: Read mail threads and messages + - mail:full: Read, update and delete mail threads. Also grants read access to mail messages + - activities:read: Read activities, its fields and types; all files and filters + - activities:full: Create, read, update and delete activities and all files and filters. Also includes read access to activity fields and types + - contacts:read: Read the data about persons and organizations, their related fields and followers; also all notes, files, filters + - contacts:full: Create, read, update and delete persons and organizations and their followers; all notes, files, filters. Also grants read access to contacts-related fields + - products:read: Read products, its fields, files, followers and products connected to a deal + - products:full: Create, read, update and delete products and its fields; add products to deals + - projects:read: Read projects and its fields, tasks and project templates + - projects:full: Create, read, update and delete projects and its fields; add projects templates and project related tasks + - users:read: Read data about users (people with access to a Pipedrive account), their permissions, roles and followers + - recents:read: Read all recent changes occurred in an account. Includes data about activities, activity types, deals, files, filters, notes, persons, organizations, pipelines, stages, products and users + - search:read: Search across the account for deals, persons, organizations, files and products, and see details about the returned results + - admin: Allows to do many things that an administrator can do in a Pipedrive company account - create, read, update and delete pipelines and its stages; deal, person and organization fields; activity types; users and permissions, etc. It also allows the app to create webhooks and fetch and delete webhooks that are created by the app + - leads:read: Read data about leads and lead labels + - leads:full: Create, read, update and delete leads and lead labels + - phone-integration: Enables advanced call integration features like logging call duration and other metadata, and play call recordings inside Pipedrive + - goals:read: Read data on all goals + - goals:full: Create, read, update and delete goals + - video-calls: Allows application to register as a video call integration provider and create conference links + - messengers-integration: Allows application to register as a messengers integration provider and allows them to deliver incoming messages and their statuses + diff --git a/git_push.sh b/git_push.sh index ced3be2b..f53a75d4 100644 --- a/git_push.sh +++ b/git_push.sh @@ -1,7 +1,7 @@ #!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 @@ -38,14 +38,14 @@ git add . git commit -m "$release_note" # Sets the new remote -git_remote=`git remote` +git_remote=$(git remote) if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git fi fi @@ -55,4 +55,3 @@ git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https' - diff --git a/migration.md b/migration.md new file mode 100644 index 00000000..008b524c --- /dev/null +++ b/migration.md @@ -0,0 +1,310 @@ +### Breaking changes + +- Suggested nodejs version is 18 +- SDK imports are now versioned under `pipedrive/v1` and `pipedrive/v2` with added support for v2 endpoints +- Function signatures have changed from the previous version of the sdk. Now each function takes a strongly typed root object that contains all the parameters needed such as id and request payload, where in the previous version those were separate function params + + +Example functions change: + +- Previous version: + +``` + +await dealsApi.addDeal({ + title: 'My First Deal', +}); + +await dealsApi.updateDeal(1, { + title: 'Updated Title', +}); + + +await api.getDeal(1); + +``` + +- New version: +``` +await dealsApi.addDeal({ + AddDealRequest: { + title: 'My First Deal', + }, +}); + +await dealsApi.updateDeal({ + id: 1, + UpdateDealRequest: { + title: 'Updated Title', + }, +}); + +await dealsApi.getDeal({ + id : 1 +}) + +await dealsApi.deleteDeal({ + id : 1 +}) + +``` + +## Installation + +``` +npm i pipedrive@24.0.0 +``` + +## API Reference + +The Pipedrive RESTful API Reference can be found at https://developers.pipedrive.com/docs/api/v1. +Pipedrive API’s core concepts for its usage can be found in our [Developer documentation](https://pipedrive.readme.io/docs/core-api-concepts-about-pipedrive-api). + +## How to use it? + +### With a pre-set API token + +You can retrieve the api_token from your existing Pipedrive account’s settings page. A step-by-step guide is available [here](https://pipedrive.readme.io/docs/how-to-find-the-api-token). + +```typescript +import express from "express"; +import { Configuration, DealsApi } from "pipedrive/v1"; + +const app = express(); + +const PORT = 3000; + +// Configure Client with API key authorization +const apiConfig = new Configuration({ + apiKey: "YOUR_API_TOKEN_HERE", +}); + +app.listen(PORT, () => { + console.log(`Listening on port ${PORT}`); +}); + +app.get("/", async (req, res) => { + const dealsApi = new DealsApi(apiConfig); + const response = await dealsApi.getDeals(); + const { data: deals } = response; + + res.send(deals); +}); +``` + +### With OAuth 2 + +If you would like to use an OAuth access token for making API calls, then make sure the API key described in the previous section is not set or is set to an empty string. If both API token and OAuth access token are set, then the API token takes precedence. + +To set up authentication in the API client, you need the following information. You can receive the necessary client tokens through a Sandbox account (get it [here](https://developers.pipedrive.com/start-here)) and generate the tokens (detailed steps [here](https://pipedrive.readme.io/docs/marketplace-manager#section-how-to-get-your-client-id-and-client-secret)). + +| Parameter | Description | +| ------------ | -------------------------------------------- | +| clientId | OAuth 2 Client ID | +| clientSecret | OAuth 2 Client Secret | +| redirectUri | OAuth 2 Redirection endpoint or Callback Uri | + +Next, initialize the API client as follows: + +```typescript +import { OAuth2Configuration, Configuration } from 'pipedrive/v1'; + +// Configuration parameters and credentials +const oauth2 = new OAuth2Configuration({ + clientId: "clientId", // OAuth 2 Client ID + clientSecret: "clientSecret", // OAuth 2 Client Secret + redirectUri: 'redirectUri' // OAuth 2 Redirection endpoint or Callback Uri +}); + +const apiConfig = new Configuration({ + accessToken: oauth2.getAccessToken, + basePath: oauth2.basePath, +}); + +``` + +You must now authorize the client. + +### Authorizing your client + +Your application must obtain user authorization before it can execute an endpoint call. The SDK uses OAuth 2.0 authorization to obtain a user's consent to perform an API request on the user's behalf. Details about how the OAuth2.0 flow works in Pipedrive, how long tokens are valid, and more, can be found [here](https://pipedrive.readme.io/docs/marketplace-oauth-authorization). + +#### 1. Obtaining user consent + +To obtain user's consent, you must redirect the user to the authorization page. The `authorizationUrl` returns the URL to the authorization page. + +```typescript +// open up the authUrl in the browser +const authUrl = oauth2.authorizationUrl; +``` + +#### 2. Handle the OAuth server response + +Once the user responds to the consent request, the OAuth 2.0 server responds to your application's access request by using the URL specified in the request. + +If the user approves the request, the authorization code will be sent as the `code` query string: + +``` +https://example.com/oauth/callback?code=XXXXXXXXXXXXXXXXXXXXXXXXX +``` + +If the user does not approve the request, the response contains an `error` query string: + +``` +https://example.com/oauth/callback?error=access_denied +``` + +#### 3. Authorize the client using the code + +After the server receives the code, it can exchange this for an _access token_. The access token is an object containing information for authorizing the client and refreshing the token itself. In the API client all the access token fields are held separately in the `OAuth2Configuration` class. Additionally access token expiration time as an `OAuth2Configuration.expiresAt` field is calculated. It is measured in the number of milliseconds elapsed since January 1, 1970 00:00:00 UTC. + +```typescript +const token = await oauth2.authorize(code); +``` + +The Node.js SDK supports only promises. So, the authorize call returns a promise. + +### Refreshing token + +Access tokens may expire after sometime, if it necessary you can do it manually. + +```typescript +const newToken = await oauth2.tokenRefresh(); +``` + +If the access token expires, the SDK will attempt to automatically refresh it before the next endpoint call which requires authentication. + +### Storing an access token for reuse + +It is recommended that you store the access token for reuse. + +This code snippet stores the access token in a session for an express application. It uses the [cookie-parser](https://www.npmjs.com/package/cookie-parser) and [cookie-session](https://www.npmjs.com/package/cookie-session) npm packages for storing the access token. + +```typescript +import express from "express"; +import cookieParse from "cookie-parser"; +import cookeSession from "cookie-session"; +import { Configuration, DealsApi, OAuth2Configuration } from "pipedrive/v1"; + +const app = express(); + +app.use(cookieParser()); +app.use(cookieSession({ + name: "session", + keys: ["key1"] +})); + +... + +// store access token in the session +// note that this is only the access token field value not the whole token object +req.session.accessToken = await oauth.getAccessToken(); +``` + +However, since the SDK will attempt to automatically refresh the access token when it expires, +it is recommended that you register a **token update callback** to detect any change to the access token. + +```typescript +oauth2.onTokenUpdate = function (token) { + // getting the updated token + // here the token is an object, you can store the whole object or extract fields into separate values + req.session.token = token; +}; +``` + +The token update callback will be fired upon authorization as well as token refresh. + +### Complete example + +This example demonstrates an express application (which uses [cookie-parser](https://www.npmjs.com/package/cookie-parser) and [cookie-session](https://www.npmjs.com/package/cookie-session)) for handling session persistence. + +In this example, there are 2 endpoints. The base endpoint `'/'` first checks if the token is stored in the session. +If it is, API endpoints can be called using the corresponding SDK controllers. + +However, if the token is not set in the session, then authorization URL is built and opened up. +The response comes back at the `'/callback'` endpoint, which uses the code to authorize the client and store the token in the session. +It then redirects back to the base endpoint for calling endpoints from the SDK. + +```typescript + +import express from "express"; +import { Configuration, DealsApi, OAuth2Configuration } from "pipedrive/v1"; +import cookieParser from "cookie-parser"; +import cookieSession from "cookie-session"; + +const app = express(); + +app.use(cookieParser()); +app.use(cookieSession({ + name: "session", + keys: ["key1"] +})); + +const PORT = 3000; + + +const oauth2 = new OAuth2Configuration({ + clientId: "clientId", // OAuth 2 Client ID + clientSecret: "clientSecret", // OAuth 2 Client Secret + redirectUri: 'redirectUri' // OAuth 2 Redirection endpoint or Callback Uri +}); + +app.listen(PORT, () => { + console.log(`Listening on port ${PORT}`); +}); + +app.get('/', async (req, res) => { + try { + // method will handle return null if token is not available in the session + const token = oauth2.updateToken(req.session?.accessToken); + + if (!token) { + const authUrl = oauth2.authorizationUrl; + return res.redirect(authUrl); + } + + + const apiConfig = new Configuration({ + accessToken: oauth2.getAccessToken, + basePath: oauth2.basePath, + }); + + const dealsApi = new DealsApi(apiConfig) + + const response = await dealsApi.getDeals(); + const { data: deals } = response; + + return res.send(deals); + } catch (error){ + console.error(error) + return res.status(500).send(error) + } +}); + +app.get('/callback', async (req, res) => { + try { + const authCode = req.query.code as string; + const newAccessToken = await oauth2.authorize(authCode); + + req.session.accessToken = newAccessToken; + return res.redirect("/"); + }catch (error) { + console.error(error) + return res.status(500).send(error) + } +}); + +``` + + + + + + + + + + + + + diff --git a/package-lock.json b/package-lock.json index 3472b0b6..0ae717fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,12 +6,10 @@ "packages": { "": { "name": "pipedrive", - "version": "23.4.3", "license": "MIT", "dependencies": { - "@babel/runtime": "^7.20.1", - "lodash": "^4.17.21", - "superagent": "^7.1.3" + "axios": "^1.3.3", + "qs": "^6.11.0" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -34,26 +32,33 @@ "@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/plugin-syntax-import-meta": "^7.0.0", "@babel/plugin-transform-runtime": "^7.12.1", - "@babel/preset-env": "^7.0.0", + "@babel/preset-env": "^7.23.5", "@babel/register": "^7.0.0", + "@types/jest": "^29.5.14", + "@types/node": "^18.13.0", + "@types/qs": "^6.9.7", "babel-eslint": "^10.1.0", + "babel-jest": "^29.7.0", "changelog-updater": "^2.0.3", "eslint": "^8.27.0", "eslint-config-pipedrive": "^13.0.0", "eslint-plugin-import": "^2.27.5", - "eslint-plugin-jest": "^27.1.5", + "eslint-plugin-jest": "^28.11.0", "expect.js": "^0.3.1", "get-port": "^5.1.1", - "jest": "^26.6.3", + "jest": "^29.7.0", "jest-environment-node": "^27.4.4", "lint-staged": "^13.0.3", "minimist": "^1.2.5", "mocha": "^10.2.0", - "msw": "^0.48.2", + "nock": "^13.5.6", "pre-commit": "^1.2.2", "regenerator-runtime": "^0.13.7", "shelljs": "^0.8.4", - "sinon": "^7.2.0" + "sinon": "^7.2.0", + "ts-jest": "^29.2.5", + "typescript": "^4.9.5", + "typescript-eslint": "^8.22.0" } }, "node_modules/@ampproject/remapping": { @@ -99,12 +104,13 @@ } }, "node_modules/@babel/code-frame": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.24.2.tgz", - "integrity": "sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ==", + "version": "7.26.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", + "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", "dev": true, "dependencies": { - "@babel/highlight": "^7.24.2", + "@babel/helper-validator-identifier": "^7.25.9", + "js-tokens": "^4.0.0", "picocolors": "^1.0.0" }, "engines": { @@ -112,35 +118,35 @@ } }, "node_modules/@babel/compat-data": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.1.tgz", - "integrity": "sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.5.tgz", + "integrity": "sha512-XvcZi1KWf88RVbF9wn8MN6tYFloU5qX8KjuF3E1PVBmJ9eypXfs4GRiJwLuTZL0iSnJUKn1BFPa5BPZZJyFzPg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.20.2.tgz", - "integrity": "sha512-w7DbG8DtMrJcFOi4VrLm+8QM4az8Mo+PuLBKLp2zrYRCow8W/f9xiXm5sN53C8HksCyDQwCKha9JiDoIyPjT2g==", - "dev": true, - "dependencies": { - "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.2", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-module-transforms": "^7.20.2", - "@babel/helpers": "^7.20.1", - "@babel/parser": "^7.20.2", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.20.2", - "convert-source-map": "^1.7.0", + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.7.tgz", + "integrity": "sha512-SRijHmF0PSPgLIBYlWnG0hyeJLwXE2CgpsXaMOrtt2yp9/86ALw6oUlj9KYuZ0JN07T4eBMVIW4li/9S1j2BGA==", + "dev": true, + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.26.5", + "@babel/helper-compilation-targets": "^7.26.5", + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helpers": "^7.26.7", + "@babel/parser": "^7.26.7", + "@babel/template": "^7.25.9", + "@babel/traverse": "^7.26.7", + "@babel/types": "^7.26.7", + "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", - "semver": "^6.3.0" + "json5": "^2.2.3", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -150,6 +156,12 @@ "url": "https://opencollective.com/babel" } }, + "node_modules/@babel/core/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, "node_modules/@babel/eslint-parser": { "version": "7.19.1", "resolved": "https://registry.npmjs.org/@babel/eslint-parser/-/eslint-parser-7.19.1.tgz", @@ -169,15 +181,16 @@ } }, "node_modules/@babel/generator": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.1.tgz", - "integrity": "sha512-DfCRfZsBcrPEHUfuBMgbJ1Ut01Y/itOs+hY2nFLgqsqXd52/iSiVq5TITtUasIUgm+IIKdY2/1I7auiQOEeC9A==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.26.5.tgz", + "integrity": "sha512-2caSP6fN9I7HOe6nqhtft7V4g7/V/gfDsC3Ag4W7kEzzvRGKqiv0pu0HogPiZ3KaVSoNDhUws6IJjDjpfmYIXw==", "dev": true, "dependencies": { - "@babel/types": "^7.24.0", + "@babel/parser": "^7.26.5", + "@babel/types": "^7.26.5", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", - "jsesc": "^2.5.1" + "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" @@ -198,61 +211,61 @@ } }, "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz", + "integrity": "sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==", "dev": true, "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz", - "integrity": "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==", + "node_modules/@babel/helper-compilation-targets": { + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.26.5.tgz", + "integrity": "sha512-IXuyn5EkouFJscIDuFF5EsiSolseme1s0CZB+QxVugqJLYmKdxI1VfIBOst0SUu4rnk2Z7kqTwmoO1lp3HIfnA==", "dev": true, "dependencies": { - "@babel/helper-explode-assignable-expression": "^7.18.6", - "@babel/types": "^7.18.9" + "@babel/compat-data": "^7.26.5", + "@babel/helper-validator-option": "^7.25.9", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz", - "integrity": "sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==", + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.20.0", - "@babel/helper-validator-option": "^7.18.6", - "browserslist": "^4.21.3", - "semver": "^6.3.0" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" + "yallist": "^3.0.2" } }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true + }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.20.2.tgz", - "integrity": "sha512-k22GoYRAHPYr9I+Gvy2ZQlAe5mGy8BqWst2wRt8cwIufWTxrsVshhIBvYNqC80N0GSFWTsqRVexOtfzlgOEDvA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.25.9.tgz", + "integrity": "sha512-UTZQMvt0d/rSz6KI+qdu7GQze5TIajwTS++GUozlw8VBJDEOAqSXwm1WvmYEZwqdqSGQshRocPDqrt4HBZB3fQ==", "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-member-expression-to-functions": "^7.18.9", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-replace-supers": "^7.19.1", - "@babel/helper-split-export-declaration": "^7.18.6" + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-member-expression-to-functions": "^7.25.9", + "@babel/helper-optimise-call-expression": "^7.25.9", + "@babel/helper-replace-supers": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", + "@babel/traverse": "^7.25.9", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -262,13 +275,14 @@ } }, "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz", - "integrity": "sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw==", + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.26.3.tgz", + "integrity": "sha512-G7ZRb40uUgdKOQqPLjfD12ZmGA54PzqDFUv2BKImnC9QIfGhIHKvVML0oN8IUiDq4iRqpq74ABpvOaerfWdong==", "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "regexpu-core": "^5.1.0" + "@babel/helper-annotate-as-pure": "^7.25.9", + "regexpu-core": "^6.2.0", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -294,126 +308,79 @@ "@babel/core": "^7.4.0-0" } }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz", - "integrity": "sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA==", - "dev": true, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-explode-assignable-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz", - "integrity": "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz", - "integrity": "sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==", - "dev": true, - "dependencies": { - "@babel/template": "^7.22.15", - "@babel/types": "^7.23.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz", - "integrity": "sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.22.5" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz", - "integrity": "sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz", + "integrity": "sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==", "dev": true, "dependencies": { - "@babel/types": "^7.18.9" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", + "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", "dev": true, "dependencies": { - "@babel/types": "^7.18.6" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.20.2.tgz", - "integrity": "sha512-zvBKyJXRbmK07XhMuujYoJ48B5yvvmM6+wcpv6Ivj4Yg6qO7NOZOSnvZN9CRl1zz1Z4cKf8YejmCMh8clOoOeA==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", + "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", "dev": true, "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-simple-access": "^7.20.2", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.20.2" + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", - "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz", + "integrity": "sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==", "dev": true, "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.20.2.tgz", - "integrity": "sha512-8RvlJG2mj4huQ4pZ+rU9lqKi9ZKiRmuvGuM2HlWmkmgOhbs6zEAw6IEiJ5cQqGbDzGZOhwuOQNtZMi/ENLjZoQ==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz", + "integrity": "sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", - "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.9.tgz", + "integrity": "sha512-IZtukuUeBbhgOcaW2s06OXTzVNJR0ybm4W5xC1opWFFJMZbwRj5LCk+ByYH7WdZPZTt8KnFwA8pvjN2yqcPlgw==", "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-wrap-function": "^7.18.9", - "@babel/types": "^7.18.9" + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-wrap-function": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -423,40 +390,30 @@ } }, "node_modules/@babel/helper-replace-supers": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz", - "integrity": "sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.26.5.tgz", + "integrity": "sha512-bJ6iIVdYX1YooY2X7w1q6VITt+LnUILtNk7zT78ykuwStx8BauCzxvFqFaHjOpW1bVnSUM1PN1f0p5P21wHxvg==", "dev": true, "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-member-expression-to-functions": "^7.18.9", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.19.0" + "@babel/helper-member-expression-to-functions": "^7.25.9", + "@babel/helper-optimise-call-expression": "^7.25.9", + "@babel/traverse": "^7.26.5" }, "engines": { "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.20.2.tgz", - "integrity": "sha512-+0woI/WPq59IrqDYbVGfshjT5Dmk/nnbdpcF8SnMhhXObpTq2KNBdLFRFrkVdbDOyUmHBCxzm5FHV1rACIkIbA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.20.2" }, - "engines": { - "node": ">=6.9.0" + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", - "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz", + "integrity": "sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==", "dev": true, "dependencies": { - "@babel/types": "^7.20.0" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -475,95 +432,112 @@ } }, "node_modules/@babel/helper-string-parser": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz", - "integrity": "sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", - "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", + "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", "dev": true, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-wrap-function": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.19.0.tgz", - "integrity": "sha512-txX8aN8CZyYGTwcLhlk87KRqncAzhh5TpQamZUa0/u3an36NtDpUP6bQgBCBcLeBs09R/OwQu3OjK0k/HwfNDg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.25.9.tgz", + "integrity": "sha512-ETzz9UTjQSTmw39GboatdymDq4XIQbR8ySgVrylRhPOFpsd+JrKHIuF0de7GCWmem+T4uC5z7EZguod7Wj4A4g==", "dev": true, "dependencies": { - "@babel/helper-function-name": "^7.19.0", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.19.0" + "@babel/template": "^7.25.9", + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.1.tgz", - "integrity": "sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg==", + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.26.7.tgz", + "integrity": "sha512-8NHiL98vsi0mbPQmYAGWwfcFaOy4j2HY49fXJCfuDcdE7fMIsH9a7GdaeXpIBsbT7307WU8KCMp5pUVDNL4f9A==", "dev": true, "dependencies": { - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.23.2", - "@babel/types": "^7.20.0" + "@babel/template": "^7.25.9", + "@babel/types": "^7.26.7" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/highlight": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.2.tgz", - "integrity": "sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==", + "node_modules/@babel/parser": { + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.26.7.tgz", + "integrity": "sha512-kEvgGGgEjRUutvdVvZhbn/BxVt+5VSpwXz1j3WYXQbXDo8KzFOPNG2GQbdAiNq8g6wn1yKk7C/qrke03a84V+w==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", - "chalk": "^2.4.2", - "js-tokens": "^4.0.0", - "picocolors": "^1.0.0" + "@babel/types": "^7.26.7" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.9.tgz", + "integrity": "sha512-ZkRyVkThtxQ/J6nv3JFYv1RYY+JT5BvU0y3k5bWrmuG4woXypRa4PXmm9RhOwodRkYFWqC0C0cqcJ4OqR7kW+g==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@babel/parser": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.1.tgz", - "integrity": "sha512-Zo9c7N3xdOIQrNip7Lc9wvRPzlRtovHVE4lkz8WEDr7uYh/GMQhSiIgFxGIArRHYdJE5kxtZjAf8rT0xhdLCzg==", + "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.9.tgz", + "integrity": "sha512-MrGRLZxLD/Zjj0gdU15dfs+HH/OXvnw/U4jJD8vpcP2CJQapPEv1IWwjc/qMg7ItBlPwSv1hRBbb7LeuANdcnw==", "dev": true, - "bin": { - "parser": "bin/babel-parser.js" + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { - "node": ">=6.0.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", - "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.9.tgz", + "integrity": "sha512-2qUwwfAFpJLZqxd02YW9btUCZHl+RFvdDkNfZwaIJrvB8Tesjsk8pEQkTvGwZXLqXUx/2oyY3ySRhm6HOXuCug==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -573,14 +547,14 @@ } }, "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.18.9.tgz", - "integrity": "sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.25.9.tgz", + "integrity": "sha512-6xWgLZTJXwilVjlnV7ospI3xi+sl8lN8rXXbBD6vYn3UYDlGsag8wrZkKcSI8G6KgqKP7vNFaDgeDnfAABq61g==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9", - "@babel/plugin-proposal-optional-chaining": "^7.18.9" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", + "@babel/plugin-transform-optional-chaining": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -589,23 +563,20 @@ "@babel/core": "^7.13.0" } }, - "node_modules/@babel/plugin-proposal-async-generator-functions": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz", - "integrity": "sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.", + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.9.tgz", + "integrity": "sha512-aLnMXYPnzwwqhYSCyXfKkIkYgJ8zv9RK+roo9DkTXz38ynIhd9XCbN08s3MGvqL2MYGVUGdRQLL/JqBIeJhJBg==", "dev": true, "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-remap-async-to-generator": "^7.18.9", - "@babel/plugin-syntax-async-generators": "^7.8.4" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.0.0" } }, "node_modules/@babel/plugin-proposal-class-properties": { @@ -625,24 +596,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-proposal-class-static-block": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.18.6.tgz", - "integrity": "sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-static-block instead.", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.12.0" - } - }, "node_modules/@babel/plugin-proposal-decorators": { "version": "7.20.2", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.20.2.tgz", @@ -678,23 +631,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-proposal-dynamic-import": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", - "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-dynamic-import instead.", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-proposal-export-default-from": { "version": "7.18.10", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz", @@ -829,43 +765,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-proposal-object-rest-spread": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.20.2.tgz", - "integrity": "sha512-Ks6uej9WFK+fvIMesSqbAto5dD8Dz4VuuFvGJFKgIGSkJuRGcrwGECPA1fDgQK3/DbExBJpEkTeYeB8geIFCSQ==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.20.1", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.20.1" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-optional-catch-binding": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", - "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-proposal-optional-chaining": { "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz", @@ -900,35 +799,11 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-proposal-private-methods": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", - "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-methods instead.", - "dev": true, - "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.18.6.tgz", - "integrity": "sha512-9Rysx7FOctvT5ouj5JODjAFAkgGoudQuLPamZb0v1TGLpapdNaftzifU8NTWQm0IRjqoYypdrSmyWgkocDQ8Dw==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-private-property-in-object instead.", + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, "engines": { "node": ">=6.9.0" }, @@ -952,23 +827,6 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-proposal-unicode-property-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", - "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", - "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-unicode-property-regex instead.", - "dev": true, - "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=4" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-syntax-async-generators": { "version": "7.8.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", @@ -1120,12 +978,27 @@ } }, "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", - "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.26.0.tgz", + "integrity": "sha512-QCWT5Hh830hK5EQa7XzuqIkQU9tT/whqbDz7kuaZMHFl1inRRg7JnuAEOQ0Ur0QUl0NufCk1msK2BeY79Aj/eg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz", + "integrity": "sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1158,6 +1031,21 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.25.9.tgz", + "integrity": "sha512-ld6oezHQMZsZfp6pWtbjaNDF2tiiCYYDqQszHt5VV437lewP9aSi2Of99CK0D0XB21k7FLgnLcmQKyKzynfeAA==", + "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", @@ -1290,13 +1178,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz", - "integrity": "sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==", + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.25.9.tgz", + "integrity": "sha512-hjMgRy5hb8uJJjUcdWunWVcoi9bGpJp8p5Ol1229PoN6aytsLwNMgmdftO23wnCLMfVmTwZDWMPNq/D1SY60JQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1305,30 +1193,29 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-async-to-generator": { + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz", - "integrity": "sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag==", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", "dev": true, "dependencies": { - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-remap-async-to-generator": "^7.18.6" + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.0.0" } }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", - "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz", + "integrity": "sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1337,13 +1224,15 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.2.tgz", - "integrity": "sha512-y5V15+04ry69OV2wULmwhEA6jwSWXO1TwAtIwiPXcvHcoOQUqpyMVd2bDsQJMW8AurjulIyUV8kDqtjSwHy1uQ==", + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.25.9.tgz", + "integrity": "sha512-RXV6QAzTBbhDMO9fWwOmwwTuYaiPbggWQ9INdZqAYeSHyG7FzQ+nOZaUUjNwKv9pV3aE4WFqFm1Hnbci5tBCAw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-remap-async-to-generator": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1352,21 +1241,15 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.20.2.tgz", - "integrity": "sha512-9rbPp0lCVVoagvtEyQKSo5L8oo0nQS/iif+lwlAz29MccX2642vWDlSZK+2T2buxbopotId2ld7zZAzRfz9j1g==", + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.9.tgz", + "integrity": "sha512-NT7Ejn7Z/LjUH0Gv5KsBCxh7BH3fbLTV0ptHvpeMvrt3cPThHfJfst9Wrb7S8EvJ7vRTFI7z+VAvFVEQn/m5zQ==", "dev": true, "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-replace-supers": "^7.19.1", - "@babel/helper-split-export-declaration": "^7.18.6", - "globals": "^11.1.0" + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-remap-async-to-generator": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1375,13 +1258,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz", - "integrity": "sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==", + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.26.5.tgz", + "integrity": "sha512-chuTSY+hq09+/f5lMj8ZSYgCFpppV2CbYrhNFJ1BFoXpiWPnnAb7R0MqrafCpN8E1+YRrtM1MXZHJdIx8B6rMQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -1390,13 +1273,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.2.tgz", - "integrity": "sha512-mENM+ZHrvEgxLTBXUiQ621rRXZes3KWUv6NdQlrnr1TkWVw+hUjQBZuP2X32qKlrlG2BzgR95gkuCRSkJl8vIw==", + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.25.9.tgz", + "integrity": "sha512-1F05O7AYjymAtqbsFETboN1NvBdcnzMerO+zlMyJBEz6WkMdejvGWw9p05iTSjC85RLlBseHHQpYaM4gzJkBGg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1405,14 +1288,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", - "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.9.tgz", + "integrity": "sha512-bbMAII8GRSkcd0h0b4X+36GksxuheLFjP65ul9w6C3KgAamI3JqErNgSrosX6ZPj+Mpim5VvEbawXxJCyEUV3Q==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1421,29 +1304,34 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", - "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.26.0.tgz", + "integrity": "sha512-6J2APTs7BDDm+UMqP1useWqhcRAXo0WIoVj26N7kPFB6S73Lgvyka4KTZYIxtgYXiN5HTyRObA72N2iu628iTQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.12.0" } }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", - "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", + "node_modules/@babel/plugin-transform-classes": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz", + "integrity": "sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg==", "dev": true, "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-replace-supers": "^7.25.9", + "@babel/traverse": "^7.25.9", + "globals": "^11.1.0" }, "engines": { "node": ">=6.9.0" @@ -1452,13 +1340,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.18.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz", - "integrity": "sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==", + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz", + "integrity": "sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/template": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1467,15 +1356,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", - "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz", + "integrity": "sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ==", "dev": true, "dependencies": { - "@babel/helper-compilation-targets": "^7.18.9", - "@babel/helper-function-name": "^7.18.9", - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1484,13 +1371,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", - "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.25.9.tgz", + "integrity": "sha512-t7ZQ7g5trIgSRYhI9pIJtRl64KHotutUJsh4Eze5l7olJv+mRSg4/MmbZ0tv1eeqRbdvo/+trvJD/Oc5DmW2cA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1499,13 +1387,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", - "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.25.9.tgz", + "integrity": "sha512-LZxhJ6dvBb/f3x8xwWIuyiAHy56nrRG3PeYTpBkkzkYRRQ6tJLu68lEF5VIqMUZiAV7a8+Tb78nEoMCMcqjXBw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1514,31 +1402,29 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.19.6.tgz", - "integrity": "sha512-uG3od2mXvAtIFQIh0xrpLH6r5fpSQN04gIVovl+ODLdUMANokxQLZnPBHcjmv3GxRjnqwLuHvppjjcelqUFZvg==", + "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.9.tgz", + "integrity": "sha512-0UfuJS0EsXbRvKnwcLjFtJy/Sxc5J5jhLHnFhy7u4zih97Hz6tJkLU+O+FMMrNZrosUPxDi6sYxJ/EA8jDiAog==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.0.0" } }, - "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz", - "integrity": "sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ==", + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.9.tgz", + "integrity": "sha512-GCggjexbmSLaFhqsojeugBpeaRIgWNTcgKVq/0qIteFEqY2A+b9QidYadrWlnbWQUrW5fn+mCvf3tr7OeBFTyg==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-simple-access": "^7.19.4" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1547,16 +1433,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.19.6.tgz", - "integrity": "sha512-fqGLBepcc3kErfR9R3DnVpURmckXP7gj7bAlrTQyBxrigFqszZCkFkcoxzCp2v32XmwXLvbw+8Yq9/b+QqksjQ==", + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.26.3.tgz", + "integrity": "sha512-7CAHcQ58z2chuXPWblnn1K6rLDnDWieghSOEmqQsrBenH0P9InCUtOJYD89pvngljmZlJcz3fcmgYsXFNGa1ZQ==", "dev": true, "dependencies": { - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-validator-identifier": "^7.19.1" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1565,14 +1448,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", - "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.9.tgz", + "integrity": "sha512-2NsEz+CxzJIVOPx2o9UsW1rXLqtChtLoVnwYHHiB04wS5sgn7mrV45fWMBX0Kk+ub9uXytVYfNP2HjbVbCB3Ww==", "dev": true, "dependencies": { - "@babel/helper-module-transforms": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1581,29 +1463,31 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.19.1.tgz", - "integrity": "sha512-oWk9l9WItWBQYS4FgXD4Uyy5kq898lvkXpXQxoJEY1RnvPk4R/Dvu2ebXU9q8lP+rlMwUQTFf2Ok6d78ODa0kw==", + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.25.9.tgz", + "integrity": "sha512-LqHxduHoaGELJl2uhImHwRQudhCM50pT46rIBNvtT/Oql3nqiS3wOwP+5ten7NpYSXrrVLgtZU3DZmPtWZo16A==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.19.0", - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0" + "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-new-target": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz", - "integrity": "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==", + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz", + "integrity": "sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1612,14 +1496,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", - "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.9.tgz", + "integrity": "sha512-xoTMk0WXceiiIvsaquQQUaLLXSW1KJ159KP87VilruQm0LNNGxWzahxSS6T6i4Zg3ezp4vA4zuwiNUR53qmQAw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1628,13 +1511,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.20.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.3.tgz", - "integrity": "sha512-oZg/Fpx0YDrj13KsLyO8I/CX3Zdw7z0O9qOd95SqcoIzuqy/WTGWvePeHAnZCN54SfdyjHcb1S30gc8zlzlHcA==", + "node_modules/@babel/plugin-transform-literals": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz", + "integrity": "sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.20.2" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1643,13 +1526,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", - "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.9.tgz", + "integrity": "sha512-wI4wRAzGko551Y8eVf6iOY9EouIDTtPb0ByZx+ktDGHwv6bHFimrgJM/2T021txPZ2s4c7bqvHbd+vXG6K948Q==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1658,14 +1541,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.18.6.tgz", - "integrity": "sha512-poqRI2+qiSdeldcz4wTSTXBRryoq3Gc70ye7m7UD5Ww0nE29IXqMl6r7Nd15WBgRd74vloEMlShtH6CKxVzfmQ==", + "node_modules/@babel/plugin-transform-member-expression-literals": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.9.tgz", + "integrity": "sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "regenerator-transform": "^0.15.0" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1674,13 +1556,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", - "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", + "node_modules/@babel/plugin-transform-modules-amd": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.25.9.tgz", + "integrity": "sha512-g5T11tnI36jVClQlMlt4qKDLlWnG5pP9CSM4GhdRciTNMRgkfpo5cR6b4rGIOYPgRRuFAvwjPQ/Yk+ql4dyhbw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-module-transforms": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1689,18 +1572,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-runtime": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz", - "integrity": "sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw==", + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.26.3.tgz", + "integrity": "sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ==", "dev": true, "dependencies": { - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.19.0", - "babel-plugin-polyfill-corejs2": "^0.3.3", - "babel-plugin-polyfill-corejs3": "^0.6.0", - "babel-plugin-polyfill-regenerator": "^0.4.1", - "semver": "^6.3.0" + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1709,13 +1588,16 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", - "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "node_modules/@babel/plugin-transform-modules-systemjs": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.9.tgz", + "integrity": "sha512-hyss7iIlH/zLHaehT+xwiymtPOpsiwIIRlCAOwBB04ta5Tt+lNItADdlXw3jAWZ96VJ2jlhl/c+PNIQPKNfvcA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-module-transforms": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1724,14 +1606,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz", - "integrity": "sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w==", + "node_modules/@babel/plugin-transform-modules-umd": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.25.9.tgz", + "integrity": "sha512-bS9MVObUgE7ww36HEfwe6g9WakQ0KF07mQF74uuXdkoziUPfKyu/nIm663kz//e5O1nPInPFx36z7WJmJ4yNEw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9" + "@babel/helper-module-transforms": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1740,28 +1622,29 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", - "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", + "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.9.tgz", + "integrity": "sha512-oqB6WHdKTGl3q/ItQhpLSnWWOpjUJLsOCLVyeFgeTktkBSCiurvPOsyt93gibI9CmuKvTUEtWmG5VhZD+5T/KA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.0.0" } }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", - "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "node_modules/@babel/plugin-transform-new-target": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.25.9.tgz", + "integrity": "sha512-U/3p8X1yCSoKyUj2eOBIx3FOn6pElFOKvAAGf8HTtItuPyB+ZeOqfn+mvTtg9ZlOAjsPdK3ayQEjqHjU/yLeVQ==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1770,13 +1653,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", - "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.26.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.26.6.tgz", + "integrity": "sha512-CKW8Vu+uUZneQCPtXmSBUC6NCAUdya26hWCElAWh5mVSlSRsmiCPUUDKb3Z0szng1hiAJa098Hkhg9o4SE35Qw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -1785,13 +1668,13 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz", - "integrity": "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==", + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.9.tgz", + "integrity": "sha512-TlprrJ1GBZ3r6s96Yq8gEQv82s8/5HnCVHtEJScUj90thHQbwe+E5MLhi2bbNHBEJuzrvltXSru+BUxHDoog7Q==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1800,14 +1683,15 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", - "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.9.tgz", + "integrity": "sha512-fSaXafEE9CVHPweLYw4J0emp1t8zYTXyzN3UuG+lylqkvYd7RMrsOQ8TYx5RF231be0vqtFC6jnx3UmpJmKBYg==", "dev": true, "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/plugin-transform-parameters": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1816,87 +1700,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/preset-env": { - "version": "7.20.2", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.20.2.tgz", - "integrity": "sha512-1G0efQEWR1EHkKvKHqbG+IN/QdgwfByUpM5V5QroDzGV2t3S/WXNQd693cHiHTlCFMpr9B6FkPFXDA2lQcKoDg==", + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.9.tgz", + "integrity": "sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A==", "dev": true, "dependencies": { - "@babel/compat-data": "^7.20.1", - "@babel/helper-compilation-targets": "^7.20.0", - "@babel/helper-plugin-utils": "^7.20.2", - "@babel/helper-validator-option": "^7.18.6", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.18.9", - "@babel/plugin-proposal-async-generator-functions": "^7.20.1", - "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/plugin-proposal-class-static-block": "^7.18.6", - "@babel/plugin-proposal-dynamic-import": "^7.18.6", - "@babel/plugin-proposal-export-namespace-from": "^7.18.9", - "@babel/plugin-proposal-json-strings": "^7.18.6", - "@babel/plugin-proposal-logical-assignment-operators": "^7.18.9", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", - "@babel/plugin-proposal-numeric-separator": "^7.18.6", - "@babel/plugin-proposal-object-rest-spread": "^7.20.2", - "@babel/plugin-proposal-optional-catch-binding": "^7.18.6", - "@babel/plugin-proposal-optional-chaining": "^7.18.9", - "@babel/plugin-proposal-private-methods": "^7.18.6", - "@babel/plugin-proposal-private-property-in-object": "^7.18.6", - "@babel/plugin-proposal-unicode-property-regex": "^7.18.6", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.20.0", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-transform-arrow-functions": "^7.18.6", - "@babel/plugin-transform-async-to-generator": "^7.18.6", - "@babel/plugin-transform-block-scoped-functions": "^7.18.6", - "@babel/plugin-transform-block-scoping": "^7.20.2", - "@babel/plugin-transform-classes": "^7.20.2", - "@babel/plugin-transform-computed-properties": "^7.18.9", - "@babel/plugin-transform-destructuring": "^7.20.2", - "@babel/plugin-transform-dotall-regex": "^7.18.6", - "@babel/plugin-transform-duplicate-keys": "^7.18.9", - "@babel/plugin-transform-exponentiation-operator": "^7.18.6", - "@babel/plugin-transform-for-of": "^7.18.8", - "@babel/plugin-transform-function-name": "^7.18.9", - "@babel/plugin-transform-literals": "^7.18.9", - "@babel/plugin-transform-member-expression-literals": "^7.18.6", - "@babel/plugin-transform-modules-amd": "^7.19.6", - "@babel/plugin-transform-modules-commonjs": "^7.19.6", - "@babel/plugin-transform-modules-systemjs": "^7.19.6", - "@babel/plugin-transform-modules-umd": "^7.18.6", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.19.1", - "@babel/plugin-transform-new-target": "^7.18.6", - "@babel/plugin-transform-object-super": "^7.18.6", - "@babel/plugin-transform-parameters": "^7.20.1", - "@babel/plugin-transform-property-literals": "^7.18.6", - "@babel/plugin-transform-regenerator": "^7.18.6", - "@babel/plugin-transform-reserved-words": "^7.18.6", - "@babel/plugin-transform-shorthand-properties": "^7.18.6", - "@babel/plugin-transform-spread": "^7.19.0", - "@babel/plugin-transform-sticky-regex": "^7.18.6", - "@babel/plugin-transform-template-literals": "^7.18.9", - "@babel/plugin-transform-typeof-symbol": "^7.18.9", - "@babel/plugin-transform-unicode-escapes": "^7.18.10", - "@babel/plugin-transform-unicode-regex": "^7.18.6", - "@babel/preset-modules": "^0.1.5", - "@babel/types": "^7.20.2", - "babel-plugin-polyfill-corejs2": "^0.3.3", - "babel-plugin-polyfill-corejs3": "^0.6.0", - "babel-plugin-polyfill-regenerator": "^0.4.1", - "core-js-compat": "^3.25.1", - "semver": "^6.3.0" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-replace-supers": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1905,33 +1716,29 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/preset-modules": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", - "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.9.tgz", + "integrity": "sha512-qM/6m6hQZzDcZF3onzIhZeDHDO43bkNNlOX0i8n3lR6zLbu0GN2d8qfM/IERJZYauhAHSLHy39NF0Ctdvcid7g==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/register": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.18.9.tgz", - "integrity": "sha512-ZlbnXDcNYHMR25ITwwNKT88JiaukkdVj/nG7r3wnuXkOTHc60Uy05PwMCPre0hSkY68E6zK3xz+vUJSP2jWmcw==", + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.9.tgz", + "integrity": "sha512-6AvV0FsLULbpnXeBjrY4dmWF8F7gf8QnvTEoO/wX/5xm/xE1Xo8oPuD3MPS+KS9f9XBEAWN7X1aWr4z9HdOr7A==", "dev": true, "dependencies": { - "clone-deep": "^4.0.1", - "find-cache-dir": "^2.0.0", - "make-dir": "^2.1.0", - "pirates": "^4.0.5", - "source-map-support": "^0.5.16" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1940,786 +1747,830 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/runtime": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.1.tgz", - "integrity": "sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg==", + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz", + "integrity": "sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g==", + "dev": true, "dependencies": { - "regenerator-runtime": "^0.13.10" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/template": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.24.0.tgz", - "integrity": "sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==", + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.9.tgz", + "integrity": "sha512-D/JUozNpQLAPUVusvqMxyvjzllRaF8/nSrP1s2YGQT/W4LHK4xxsMcHjhOGTS01mp9Hda8nswb+FblLdJornQw==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.23.5", - "@babel/parser": "^7.24.0", - "@babel/types": "^7.24.0" + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/traverse": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.1.tgz", - "integrity": "sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.24.1", - "@babel/generator": "^7.24.1", - "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-function-name": "^7.23.0", - "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.24.1", - "@babel/types": "^7.24.0", - "debug": "^4.3.1", - "globals": "^11.1.0" + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.9.tgz", + "integrity": "sha512-Evf3kcMqzXA3xfYJmZ9Pg1OvKdtqsDMSWBDzZOPLvHiTt36E75jLDQo5w1gtRU95Q4E5PDttrTf25Fw8d/uWLw==", + "dev": true, + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/types": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz", - "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==", + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.9.tgz", + "integrity": "sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.23.4", - "@babel/helper-validator-identifier": "^7.22.20", - "to-fast-properties": "^2.0.0" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@bcoe/v8-coverage": { - "version": "0.2.3", - "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", - "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true - }, - "node_modules/@cnakazawa/watch": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@cnakazawa/watch/-/watch-1.0.4.tgz", - "integrity": "sha512-v9kIhKwjeZThiWrLmj0y17CWoyddASLj9O2yvbZkbvw/N3rWOYy9zkV66ursAoVr0mV15bL8g0c4QZUE6cdDoQ==", + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.25.9.tgz", + "integrity": "sha512-vwDcDNsgMPDGP0nMqzahDWE5/MLcX8sv96+wfX7as7LoF/kr97Bo/7fI00lXY4wUXYfVmwIIyG80fGZ1uvt2qg==", "dev": true, "dependencies": { - "exec-sh": "^0.3.2", - "minimist": "^1.2.0" - }, - "bin": { - "watch": "cli.js" + "@babel/helper-plugin-utils": "^7.25.9", + "regenerator-transform": "^0.15.2" }, "engines": { - "node": ">=0.1.95" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@eslint/eslintrc": { - "version": "1.3.3", - "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-1.3.3.tgz", - "integrity": "sha512-uj3pT6Mg+3t39fvLrj8iuCIJ38zKO9FpGtJ4BBJebJhEwjoT+KLVNCcHT5QC9NGRIEi7fZ0ZR8YRb884auB4Lg==", + "node_modules/@babel/plugin-transform-regexp-modifiers": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.26.0.tgz", + "integrity": "sha512-vN6saax7lrA2yA/Pak3sCxuD6F5InBjn9IcrIKQPjpsLvuHYLVroTxjdlVRHjjBWxKOqIwpTXDkOssYT4BFdRw==", "dev": true, "dependencies": { - "ajv": "^6.12.4", - "debug": "^4.3.2", - "espree": "^9.4.0", - "globals": "^13.15.0", - "ignore": "^5.2.0", - "import-fresh": "^3.2.1", - "js-yaml": "^4.1.0", - "minimatch": "^3.1.2", - "strip-json-comments": "^3.1.1" + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": ">=6.9.0" }, - "funding": { - "url": "https://opencollective.com/eslint" + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@eslint/eslintrc/node_modules/globals": { - "version": "13.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.18.0.tgz", - "integrity": "sha512-/mR4KI8Ps2spmoc0Ulu9L7agOF0du1CZNQ3dke8yItYlyKNmGrkONemBbd6V8UTc1Wgcqn21t3WYB7dbRmh6/A==", + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.25.9.tgz", + "integrity": "sha512-7DL7DKYjn5Su++4RXu8puKZm2XBPHyjWLUidaPEkCUBbE7IPcsrkRHggAOOKydH1dASWdcUBxrkOGNxUv5P3Jg==", "dev": true, "dependencies": { - "type-fest": "^0.20.2" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@eslint/eslintrc/node_modules/type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", + "node_modules/@babel/plugin-transform-runtime": { + "version": "7.19.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.19.6.tgz", + "integrity": "sha512-PRH37lz4JU156lYFW1p8OxE5i7d6Sl/zV58ooyr+q1J1lnQPyg5tIiXlIwNVhJaY4W3TmOtdc8jqdXQcB1v5Yw==", "dev": true, + "dependencies": { + "@babel/helper-module-imports": "^7.18.6", + "@babel/helper-plugin-utils": "^7.19.0", + "babel-plugin-polyfill-corejs2": "^0.3.3", + "babel-plugin-polyfill-corejs3": "^0.6.0", + "babel-plugin-polyfill-regenerator": "^0.4.1", + "semver": "^6.3.0" + }, "engines": { - "node": ">=10" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@humanwhocodes/config-array": { - "version": "0.11.7", - "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz", - "integrity": "sha512-kBbPWzN8oVMLb0hOUYXhmxggL/1cJE6ydvjDIGi9EnAGUyA7cLVKQg+d/Dsm+KZwx2czGHrCmMVLiyg8s5JPKw==", + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz", + "integrity": "sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng==", "dev": true, "dependencies": { - "@humanwhocodes/object-schema": "^1.2.1", - "debug": "^4.1.1", - "minimatch": "^3.0.5" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { - "node": ">=10.10.0" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@humanwhocodes/module-importer": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", - "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", + "node_modules/@babel/plugin-transform-spread": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz", + "integrity": "sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A==", "dev": true, + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" + }, "engines": { - "node": ">=12.22" + "node": ">=6.9.0" }, - "funding": { - "type": "github", - "url": "https://github.com/sponsors/nzakas" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@humanwhocodes/object-schema": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-1.2.1.tgz", - "integrity": "sha512-ZnQMnLV4e7hDlUvw8H+U8ASL02SS2Gn6+9Ac3wGGLIe7+je2AeAOxPY+izIPJDfFDb7eDjev0Us8MO1iFRN8hA==", - "dev": true - }, - "node_modules/@istanbuljs/load-nyc-config": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", - "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.9.tgz", + "integrity": "sha512-WqBUSgeVwucYDP9U/xNRQam7xV8W5Zf+6Eo7T2SRVUFlhRiMNFdFz58u0KZmCVVqs2i7SHgpRnAhzRNmKfi2uA==", "dev": true, "dependencies": { - "camelcase": "^5.3.1", - "find-up": "^4.1.0", - "get-package-type": "^0.1.0", - "js-yaml": "^3.13.1", - "resolve-from": "^5.0.0" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.25.9.tgz", + "integrity": "sha512-o97AE4syN71M/lxrCtQByzphAdlYluKPDBzDVzMmfCobUjjhAryZV0AIpRPrxN0eAkxXO6ZLEScmt+PNhj2OTw==", "dev": true, "dependencies": { - "sprintf-js": "~1.0.2" + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.26.7.tgz", + "integrity": "sha512-jfoTXXZTgGg36BmhqT3cAYK5qkmqvJpvNrPhaK/52Vgjhw4Rq29s9UqpWWV0D6yuRmgiFH/BUVlkl96zJWqnaw==", "dev": true, "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.25.9.tgz", + "integrity": "sha512-s5EDrE6bW97LtxOcGj1Khcx5AaXwiMmi4toFWRDP9/y0Woo6pXC+iyPu/KuhKtfSrNFd7jJB+/fkOtZy6aIC6Q==", "dev": true, "dependencies": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "@babel/helper-plugin-utils": "^7.25.9" }, - "bin": { - "js-yaml": "bin/js-yaml.js" + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.25.9.tgz", + "integrity": "sha512-Jt2d8Ga+QwRluxRQ307Vlxa6dMrYEMZCgGxoPR8V52rxPyldHu3hdlHspxaqYmE7oID5+kB+UKUB/eWS+DkkWg==", "dev": true, "dependencies": { - "p-locate": "^4.1.0" + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.9.tgz", + "integrity": "sha512-yoxstj7Rg9dlNn9UQxzk4fcNivwv4nUYz7fYXBaKxvw/lnmPuOm/ikoELygbYq68Bls3D/D+NBPHiLwZdZZ4HA==", "dev": true, "dependencies": { - "p-try": "^2.0.0" + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { - "node": ">=6" + "node": ">=6.9.0" }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.9.tgz", + "integrity": "sha512-8BYqO3GeVNHtx69fdPshN3fnzUNLrWdHhk/icSwigksJGczKSizZ+Z6SBCxTs723Fr5VSNorTIK7a+R2tISvwQ==", "dev": true, "dependencies": { - "p-limit": "^2.2.0" + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, - "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true, + "node_modules/@babel/preset-env": { + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.26.7.tgz", + "integrity": "sha512-Ycg2tnXwixaXOVb29rana8HNPgLVBof8qqtNQ9LE22IoyZboQbGSxI6ZySMdW3K5nAe6gu35IaJefUJflhUFTQ==", + "dev": true, + "dependencies": { + "@babel/compat-data": "^7.26.5", + "@babel/helper-compilation-targets": "^7.26.5", + "@babel/helper-plugin-utils": "^7.26.5", + "@babel/helper-validator-option": "^7.25.9", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.9", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.9", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.9", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.9", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.9", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-import-assertions": "^7.26.0", + "@babel/plugin-syntax-import-attributes": "^7.26.0", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.25.9", + "@babel/plugin-transform-async-generator-functions": "^7.25.9", + "@babel/plugin-transform-async-to-generator": "^7.25.9", + "@babel/plugin-transform-block-scoped-functions": "^7.26.5", + "@babel/plugin-transform-block-scoping": "^7.25.9", + "@babel/plugin-transform-class-properties": "^7.25.9", + "@babel/plugin-transform-class-static-block": "^7.26.0", + "@babel/plugin-transform-classes": "^7.25.9", + "@babel/plugin-transform-computed-properties": "^7.25.9", + "@babel/plugin-transform-destructuring": "^7.25.9", + "@babel/plugin-transform-dotall-regex": "^7.25.9", + "@babel/plugin-transform-duplicate-keys": "^7.25.9", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.9", + "@babel/plugin-transform-dynamic-import": "^7.25.9", + "@babel/plugin-transform-exponentiation-operator": "^7.26.3", + "@babel/plugin-transform-export-namespace-from": "^7.25.9", + "@babel/plugin-transform-for-of": "^7.25.9", + "@babel/plugin-transform-function-name": "^7.25.9", + "@babel/plugin-transform-json-strings": "^7.25.9", + "@babel/plugin-transform-literals": "^7.25.9", + "@babel/plugin-transform-logical-assignment-operators": "^7.25.9", + "@babel/plugin-transform-member-expression-literals": "^7.25.9", + "@babel/plugin-transform-modules-amd": "^7.25.9", + "@babel/plugin-transform-modules-commonjs": "^7.26.3", + "@babel/plugin-transform-modules-systemjs": "^7.25.9", + "@babel/plugin-transform-modules-umd": "^7.25.9", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.9", + "@babel/plugin-transform-new-target": "^7.25.9", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.26.6", + "@babel/plugin-transform-numeric-separator": "^7.25.9", + "@babel/plugin-transform-object-rest-spread": "^7.25.9", + "@babel/plugin-transform-object-super": "^7.25.9", + "@babel/plugin-transform-optional-catch-binding": "^7.25.9", + "@babel/plugin-transform-optional-chaining": "^7.25.9", + "@babel/plugin-transform-parameters": "^7.25.9", + "@babel/plugin-transform-private-methods": "^7.25.9", + "@babel/plugin-transform-private-property-in-object": "^7.25.9", + "@babel/plugin-transform-property-literals": "^7.25.9", + "@babel/plugin-transform-regenerator": "^7.25.9", + "@babel/plugin-transform-regexp-modifiers": "^7.26.0", + "@babel/plugin-transform-reserved-words": "^7.25.9", + "@babel/plugin-transform-shorthand-properties": "^7.25.9", + "@babel/plugin-transform-spread": "^7.25.9", + "@babel/plugin-transform-sticky-regex": "^7.25.9", + "@babel/plugin-transform-template-literals": "^7.25.9", + "@babel/plugin-transform-typeof-symbol": "^7.26.7", + "@babel/plugin-transform-unicode-escapes": "^7.25.9", + "@babel/plugin-transform-unicode-property-regex": "^7.25.9", + "@babel/plugin-transform-unicode-regex": "^7.25.9", + "@babel/plugin-transform-unicode-sets-regex": "^7.25.9", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.10.6", + "babel-plugin-polyfill-regenerator": "^0.6.1", + "core-js-compat": "^3.38.1", + "semver": "^6.3.1" + }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@istanbuljs/schema": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", - "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", + "node_modules/@babel/preset-env/node_modules/@babel/helper-define-polyfill-provider": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.3.tgz", + "integrity": "sha512-HK7Bi+Hj6H+VTHA3ZvBis7V/6hu9QuTrnMXNybfUf2iiuU/N97I8VjB+KbhFF8Rld/Lx5MzoCwPCpPjfK+n8Cg==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "@babel/helper-compilation-targets": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", + "debug": "^4.1.1", + "lodash.debounce": "^4.0.8", + "resolve": "^1.14.2" + }, + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, - "node_modules/@jest/console": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-26.6.2.tgz", - "integrity": "sha512-IY1R2i2aLsLr7Id3S6p2BA82GNWryt4oSvEXLAKc+L2zdi89dSkE8xC1C+0kpATG4JhBJREnQOH7/zmccM2B0g==", + "node_modules/@babel/preset-env/node_modules/babel-plugin-polyfill-corejs2": { + "version": "0.4.12", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.12.tgz", + "integrity": "sha512-CPWT6BwvhrTO2d8QVorhTCQw9Y43zOu7G9HigcfxvepOU6b8o3tcWad6oVgZIsZCTt42FFv97aA7ZJsbM4+8og==", "dev": true, "dependencies": { - "@jest/types": "^26.6.2", - "@types/node": "*", - "chalk": "^4.0.0", - "jest-message-util": "^26.6.2", - "jest-util": "^26.6.2", - "slash": "^3.0.0" + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.6.3", + "semver": "^6.3.1" }, - "engines": { - "node": ">= 10.14.2" + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, - "node_modules/@jest/console/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@babel/preset-env/node_modules/babel-plugin-polyfill-corejs3": { + "version": "0.10.6", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.10.6.tgz", + "integrity": "sha512-b37+KR2i/khY5sKmWNVQAnitvquQbNdWy6lJdsr0kmquCKEEUgMKK4SboVM3HtfnZilfjr4MMQ7vY58FVWDtIA==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" + "@babel/helper-define-polyfill-provider": "^0.6.2", + "core-js-compat": "^3.38.0" }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, - "node_modules/@jest/console/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@babel/preset-env/node_modules/babel-plugin-polyfill-regenerator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.3.tgz", + "integrity": "sha512-LiWSbl4CRSIa5x/JAU6jZiG9eit9w6mz+yVMFwDE83LAWvt0AfGBoZ7HS/mkhrKuh2ZlzfVZYKoLjXdqw6Yt7Q==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" + "@babel/helper-define-polyfill-provider": "^0.6.3" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "peerDependencies": { + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, - "node_modules/@jest/console/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/@babel/preset-modules": { + "version": "0.1.6-no-external-plugins", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", + "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@babel/helper-plugin-utils": "^7.0.0", + "@babel/types": "^7.4.4", + "esutils": "^2.0.2" }, - "engines": { - "node": ">=7.0.0" + "peerDependencies": { + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" } }, - "node_modules/@jest/console/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/console/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/@babel/register": { + "version": "7.18.9", + "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.18.9.tgz", + "integrity": "sha512-ZlbnXDcNYHMR25ITwwNKT88JiaukkdVj/nG7r3wnuXkOTHc60Uy05PwMCPre0hSkY68E6zK3xz+vUJSP2jWmcw==", "dev": true, + "dependencies": { + "clone-deep": "^4.0.1", + "find-cache-dir": "^2.0.0", + "make-dir": "^2.1.0", + "pirates": "^4.0.5", + "source-map-support": "^0.5.16" + }, "engines": { - "node": ">=8" + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" } }, - "node_modules/@jest/console/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "node_modules/@babel/runtime": { + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.26.7.tgz", + "integrity": "sha512-AOPI3D+a8dXnja+iwsUqGRjr1BbZIe771sXdapOtYI531gSqpi92vXivKcq2asu/DFpdl1ceFAKZyRzK2PCVcQ==", "dev": true, + "dependencies": { + "regenerator-runtime": "^0.14.0" + }, "engines": { - "node": ">=8" + "node": ">=6.9.0" } }, - "node_modules/@jest/console/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/@babel/runtime/node_modules/regenerator-runtime": { + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "dev": true + }, + "node_modules/@babel/template": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.25.9.tgz", + "integrity": "sha512-9DGttpmPvIxBb/2uwpVo3dqJ+O6RooAFOS+lB+xDqoE2PVCE8nfoHMdZLpfCQRLwvohzXISPZcgxt80xLfsuwg==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "@babel/code-frame": "^7.25.9", + "@babel/parser": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { - "node": ">=8" + "node": ">=6.9.0" } }, - "node_modules/@jest/core": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-26.6.3.tgz", - "integrity": "sha512-xvV1kKbhfUqFVuZ8Cyo+JPpipAHHAV3kcDBftiduK8EICXmTFddryy3P7NfZt8Pv37rA9nEJBKCCkglCPt/Xjw==", + "node_modules/@babel/traverse": { + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.26.7.tgz", + "integrity": "sha512-1x1sgeyRLC3r5fQOM0/xtQKsYjyxmFjaOrLJNtZ81inNjyJHGIolTULPiSc/2qe1/qfpFLisLQYFnnZl7QoedA==", "dev": true, "dependencies": { - "@jest/console": "^26.6.2", - "@jest/reporters": "^26.6.2", - "@jest/test-result": "^26.6.2", - "@jest/transform": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "ansi-escapes": "^4.2.1", - "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "jest-changed-files": "^26.6.2", - "jest-config": "^26.6.3", - "jest-haste-map": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-regex-util": "^26.0.0", - "jest-resolve": "^26.6.2", - "jest-resolve-dependencies": "^26.6.3", - "jest-runner": "^26.6.3", - "jest-runtime": "^26.6.3", - "jest-snapshot": "^26.6.2", - "jest-util": "^26.6.2", - "jest-validate": "^26.6.2", - "jest-watcher": "^26.6.2", - "micromatch": "^4.0.2", - "p-each-series": "^2.1.0", - "rimraf": "^3.0.0", - "slash": "^3.0.0", - "strip-ansi": "^6.0.0" + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.26.5", + "@babel/parser": "^7.26.7", + "@babel/template": "^7.25.9", + "@babel/types": "^7.26.7", + "debug": "^4.3.1", + "globals": "^11.1.0" }, "engines": { - "node": ">= 10.14.2" + "node": ">=6.9.0" } }, - "node_modules/@jest/core/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@babel/types": { + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.26.7.tgz", + "integrity": "sha512-t8kDRGrKXyp6+tjUh7hw2RLyclsW4TRoRvRHtSyAX9Bb5ldlFh+90YAYY6awRXrlB4G5G2izNeGySpATlFzmOg==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">=6.9.0" } }, - "node_modules/@jest/core/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@bcoe/v8-coverage": { + "version": "0.2.3", + "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", + "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", + "dev": true + }, + "node_modules/@eslint-community/eslint-utils": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.4.1.tgz", + "integrity": "sha512-s3O3waFUrMV8P/XaF/+ZTp1X9XBZW1a4B97ZnjQF2KYWaFD2A8KyFBsrsfSjEmjn3RGWAIuvlneuZm3CUK3jbA==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "eslint-visitor-keys": "^3.4.3" }, "engines": { - "node": ">=10" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/core/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" + "url": "https://opencollective.com/eslint" }, - "engines": { - "node": ">=7.0.0" + "peerDependencies": { + "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" } }, - "node_modules/@jest/core/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/core/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/@eslint-community/eslint-utils/node_modules/eslint-visitor-keys": { + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "engines": { - "node": ">=8" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/@jest/core/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "node_modules/@eslint-community/regexpp": { + "version": "4.12.1", + "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.1.tgz", + "integrity": "sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==", "dev": true, "engines": { - "node": ">=8" + "node": "^12.0.0 || ^14.0.0 || >=16.0.0" } }, - "node_modules/@jest/core/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/@eslint/eslintrc": { + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz", + "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "ajv": "^6.12.4", + "debug": "^4.3.2", + "espree": "^9.6.0", + "globals": "^13.19.0", + "ignore": "^5.2.0", + "import-fresh": "^3.2.1", + "js-yaml": "^4.1.0", + "minimatch": "^3.1.2", + "strip-json-comments": "^3.1.1" }, "engines": { - "node": ">=8" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/@jest/environment": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-26.6.2.tgz", - "integrity": "sha512-nFy+fHl28zUrRsCeMB61VDThV1pVTtlEokBRgqPrcT1JNq4yRNIyTHfyht6PqtUvY9IsuLGTrbG8kPXjSZIZwA==", + "node_modules/@eslint/eslintrc/node_modules/globals": { + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "dependencies": { - "@jest/fake-timers": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "jest-mock": "^26.6.2" + "type-fest": "^0.20.2" }, "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/@jest/fake-timers": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-26.6.2.tgz", - "integrity": "sha512-14Uleatt7jdzefLPYM3KLcnUl1ZNikaKq34enpb5XG9i81JpppDb5muZvonvKyrl7ftEHkKS5L5/eB/kxJ+bvA==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "@sinonjs/fake-timers": "^6.0.1", - "@types/node": "*", - "jest-message-util": "^26.6.2", - "jest-mock": "^26.6.2", - "jest-util": "^26.6.2" + "node": ">=8" }, - "engines": { - "node": ">= 10.14.2" + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@jest/globals": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-26.6.2.tgz", - "integrity": "sha512-85Ltnm7HlB/KesBUuALwQ68YTU72w9H2xW9FjZ1eL1U3lhtefjjl5c2MiUbpXt/i6LaPRvoOFJ22yCBSfQ0JIA==", + "node_modules/@eslint/eslintrc/node_modules/type-fest": { + "version": "0.20.2", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", + "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", "dev": true, - "dependencies": { - "@jest/environment": "^26.6.2", - "@jest/types": "^26.6.2", - "expect": "^26.6.2" - }, "engines": { - "node": ">= 10.14.2" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@jest/reporters": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-26.6.2.tgz", - "integrity": "sha512-h2bW53APG4HvkOnVMo8q3QXa6pcaNt1HkwVsOPMBV6LD/q9oSpxNSYZQYkAnjdMjrJ86UuYeLo+aEZClV6opnw==", + "node_modules/@eslint/js": { + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz", + "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==", "dev": true, - "dependencies": { - "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^26.6.2", - "@jest/test-result": "^26.6.2", - "@jest/transform": "^26.6.2", - "@jest/types": "^26.6.2", - "chalk": "^4.0.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.2.4", - "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^4.0.3", - "istanbul-lib-report": "^3.0.0", - "istanbul-lib-source-maps": "^4.0.0", - "istanbul-reports": "^3.0.2", - "jest-haste-map": "^26.6.2", - "jest-resolve": "^26.6.2", - "jest-util": "^26.6.2", - "jest-worker": "^26.6.2", - "slash": "^3.0.0", - "source-map": "^0.6.0", - "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^7.0.0" - }, "engines": { - "node": ">= 10.14.2" - }, - "optionalDependencies": { - "node-notifier": "^8.0.0" + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" } }, - "node_modules/@jest/reporters/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@humanwhocodes/config-array": { + "version": "0.13.0", + "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz", + "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==", + "deprecated": "Use @eslint/config-array instead", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "@humanwhocodes/object-schema": "^2.0.3", + "debug": "^4.3.1", + "minimatch": "^3.0.5" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">=10.10.0" } }, - "node_modules/@jest/reporters/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@humanwhocodes/module-importer": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz", + "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==", "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, "engines": { - "node": ">=10" + "node": ">=12.22" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/@jest/reporters/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "type": "github", + "url": "https://github.com/sponsors/nzakas" } }, - "node_modules/@jest/reporters/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "node_modules/@humanwhocodes/object-schema": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz", + "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==", + "deprecated": "Use @eslint/object-schema instead", "dev": true }, - "node_modules/@jest/reporters/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/@istanbuljs/load-nyc-config": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", + "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, + "dependencies": { + "camelcase": "^5.3.1", + "find-up": "^4.1.0", + "get-package-type": "^0.1.0", + "js-yaml": "^3.13.1", + "resolve-from": "^5.0.0" + }, "engines": { "node": ">=8" } }, - "node_modules/@jest/reporters/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", + "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "sprintf-js": "~1.0.2" } }, - "node_modules/@jest/reporters/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", + "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "locate-path": "^5.0.0", + "path-exists": "^4.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/@jest/source-map": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-26.6.2.tgz", - "integrity": "sha512-YwYcCwAnNmOVsZ8mr3GfnzdXDAl4LaenZP5z+G0c8bzC9/dugL8zRmxZzdoTl4IaS3CryS1uWnROLPFmb6lVvA==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": { + "version": "3.14.1", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", + "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", "dev": true, "dependencies": { - "callsites": "^3.0.0", - "graceful-fs": "^4.2.4", - "source-map": "^0.6.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" }, - "engines": { - "node": ">= 10.14.2" + "bin": { + "js-yaml": "bin/js-yaml.js" } }, - "node_modules/@jest/test-result": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-26.6.2.tgz", - "integrity": "sha512-5O7H5c/7YlojphYNrK02LlDIV2GNPYisKwHm2QTKjNZeEzezCbwYs9swJySv2UfPMyZ0VdsmMv7jIlD/IKYQpQ==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", + "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, "dependencies": { - "@jest/console": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/istanbul-lib-coverage": "^2.0.0", - "collect-v8-coverage": "^1.0.0" + "p-locate": "^4.1.0" }, "engines": { - "node": ">= 10.14.2" + "node": ">=8" } }, - "node_modules/@jest/test-sequencer": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-26.6.3.tgz", - "integrity": "sha512-YHlVIjP5nfEyjlrSr8t/YdNfU/1XEt7c5b4OxcXCjyRhjzLYu/rO69/WHPuYcbCWkz8kAeZVZp2N2+IOLLEPGw==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, "dependencies": { - "@jest/test-result": "^26.6.2", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^26.6.2", - "jest-runner": "^26.6.3", - "jest-runtime": "^26.6.3" + "p-try": "^2.0.0" }, "engines": { - "node": ">= 10.14.2" + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/@jest/transform": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-26.6.2.tgz", - "integrity": "sha512-E9JjhUgNzvuQ+vVAL21vlyfy12gP0GhazGgJC4h6qUt1jSdUXGWJ1wfu/X7Sd8etSgxV4ovT1pb9v5D6QW4XgA==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", + "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, "dependencies": { - "@babel/core": "^7.1.0", - "@jest/types": "^26.6.2", - "babel-plugin-istanbul": "^6.0.0", - "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^26.6.2", - "jest-regex-util": "^26.0.0", - "jest-util": "^26.6.2", - "micromatch": "^4.0.2", - "pirates": "^4.0.1", - "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" + "p-limit": "^2.2.0" }, "engines": { - "node": ">= 10.14.2" + "node": ">=8" } }, - "node_modules/@jest/transform/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@istanbuljs/load-nyc-config/node_modules/resolve-from": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", + "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/@jest/transform/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@istanbuljs/schema": { + "version": "0.1.3", + "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", + "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=8" } }, - "node_modules/@jest/transform/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/@jest/console": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0" }, "engines": { - "node": ">=7.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/transform/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/@jest/transform/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/@jest/console/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/@jest/transform/node_modules/slash": { + "node_modules/@jest/core": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } + } + }, + "node_modules/@jest/core/node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", @@ -2728,104 +2579,253 @@ "node": ">=8" } }, - "node_modules/@jest/transform/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/@jest/environment": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0" }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/types": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-26.6.2.tgz", - "integrity": "sha512-fC6QCp7Sc5sX6g8Tvbmj4XUTbyrik0akgRy03yjXbQaBWWNWGE7SGtJk98m0N8nzegD/7SggrUlivxo5ax4KWQ==", + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", "dev": true, "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^15.0.0", - "chalk": "^4.0.0" + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/types/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "jest-get-type": "^29.6.3" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/types/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/@jest/fake-timers": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", + "@types/node": "*", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": ">=10" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/globals": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/types/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/@jest/reporters": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@bcoe/v8-coverage": "^0.2.3", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "@types/node": "*", + "chalk": "^4.0.0", + "collect-v8-coverage": "^1.0.0", + "exit": "^0.1.2", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "istanbul-lib-coverage": "^3.0.0", + "istanbul-lib-instrument": "^6.0.0", + "istanbul-lib-report": "^3.0.0", + "istanbul-lib-source-maps": "^4.0.0", + "istanbul-reports": "^3.1.3", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "slash": "^3.0.0", + "string-length": "^4.0.1", + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" }, "engines": { - "node": ">=7.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, - "node_modules/@jest/types/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true + "node_modules/@jest/reporters/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, + "engines": { + "node": ">=8" + } }, - "node_modules/@jest/types/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "dependencies": { + "@sinclair/typebox": "^0.27.8" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/source-map": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", + "dev": true, + "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", + "callsites": "^3.0.0", + "graceful-fs": "^4.2.9" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-result": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", + "dev": true, + "dependencies": { + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "collect-v8-coverage": "^1.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", + "dev": true, + "dependencies": { + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/test-sequencer/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/@jest/types/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/@jest/transform": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", + "babel-plugin-istanbul": "^6.1.1", + "chalk": "^4.0.0", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "micromatch": "^4.0.4", + "pirates": "^4.0.4", + "slash": "^3.0.0", + "write-file-atomic": "^4.0.2" }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/@jest/transform/node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true + }, + "node_modules/@jest/transform/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, "engines": { "node": ">=8" } }, + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", + "dev": true, + "dependencies": { + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, "node_modules/@jridgewell/gen-mapping": { "version": "0.1.1", "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", @@ -2873,38 +2873,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@mswjs/cookies": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@mswjs/cookies/-/cookies-0.2.2.tgz", - "integrity": "sha512-mlN83YSrcFgk7Dm1Mys40DLssI1KdJji2CMKN8eOlBqsTADYzj2+jWzsANsUTFbxDMWPD5e9bfA1RGqBpS3O1g==", - "dev": true, - "dependencies": { - "@types/set-cookie-parser": "^2.4.0", - "set-cookie-parser": "^2.4.6" - }, - "engines": { - "node": ">=14" - } - }, - "node_modules/@mswjs/interceptors": { - "version": "0.17.6", - "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.17.6.tgz", - "integrity": "sha512-201pBIWehTURb6q8Gheu4Zhvd3Ox1U4BJq5KiOQsYzkWyfiOG4pwcz5hPZIEryztgrf8/sdwABpvY757xMmfrQ==", - "dev": true, - "dependencies": { - "@open-draft/until": "^1.0.3", - "@types/debug": "^4.1.7", - "@xmldom/xmldom": "^0.8.3", - "debug": "^4.3.3", - "headers-polyfill": "^3.1.0", - "outvariant": "^1.2.1", - "strict-event-emitter": "^0.2.4", - "web-encoding": "^1.1.5" - }, - "engines": { - "node": ">=14" - } - }, "node_modules/@nicolo-ribaudo/chokidar-2": { "version": "2.1.8-no-fsevents.3", "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz", @@ -2956,10 +2924,10 @@ "node": ">= 8" } }, - "node_modules/@open-draft/until": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/@open-draft/until/-/until-1.0.3.tgz", - "integrity": "sha512-Aq58f5HiWdyDlFffbbSjAlv596h/cOnt2DO1w3DOC7OJ5EHs0hd/nycJfiu9RJbT6Yk6F1knnRRXNSpxoIVZ9Q==", + "node_modules/@sinclair/typebox": { + "version": "0.27.8", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.8.tgz", + "integrity": "sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==", "dev": true }, "node_modules/@sinonjs/commons": { @@ -2972,12 +2940,21 @@ } }, "node_modules/@sinonjs/fake-timers": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-6.0.1.tgz", - "integrity": "sha512-MZPUxrmFubI36XS1DI3qmI0YdN1gks62JtFZvxR67ljjSNCeK6U08Zx4msEWOXuofgqUt6zPHSi1H9fbjR/NRA==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, "dependencies": { - "@sinonjs/commons": "^1.7.0" + "@sinonjs/commons": "^3.0.0" + } + }, + "node_modules/@sinonjs/fake-timers/node_modules/@sinonjs/commons": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", + "dev": true, + "dependencies": { + "type-detect": "4.0.8" } }, "node_modules/@sinonjs/formatio": { @@ -3007,41 +2984,32 @@ "integrity": "sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==", "dev": true }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "dev": true, - "engines": { - "node": ">= 6" - } - }, "node_modules/@types/babel__core": { - "version": "7.1.20", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.20.tgz", - "integrity": "sha512-PVb6Bg2QuscZ30FvOU7z4guG6c926D9YRvOxEaelzndpMsvP+YM74Q/dAFASpg2l6+XLalxSGxcq/lrgYWZtyQ==", + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "node_modules/@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "version": "7.6.8", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.8.tgz", + "integrity": "sha512-ASsj+tpEDsEiFr1arWrlN6V3mdfjRMZt6LtK/Vp/kreFLnr5QH5+DhvD5nINYZXzwJvXeGq+05iUXcAzVrqWtw==", "dev": true, "dependencies": { "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, "dependencies": { "@babel/parser": "^7.1.0", @@ -3049,33 +3017,18 @@ } }, "node_modules/@types/babel__traverse": { - "version": "7.18.2", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.18.2.tgz", - "integrity": "sha512-FcFaxOr2V5KZCviw1TnutEMVUVsGt4D2hP1TAfXZAMKuHYW3xQhe3jTxNPWutgCJ3/X1c5yX8ZoGVEItxKbwBg==", + "version": "7.20.6", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.20.6.tgz", + "integrity": "sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==", "dev": true, "dependencies": { - "@babel/types": "^7.3.0" - } - }, - "node_modules/@types/cookie": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/@types/cookie/-/cookie-0.4.1.tgz", - "integrity": "sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==", - "dev": true - }, - "node_modules/@types/debug": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.7.tgz", - "integrity": "sha512-9AonUzyTjXXhEOa0DnqpzZi6VHlqKMswga9EXjpXnnqxwLtdvPPtlO8evrI5D9S6asFRCQ6v+wpiUKbw+vKqyg==", - "dev": true, - "dependencies": { - "@types/ms": "*" + "@babel/types": "^7.20.7" } }, "node_modules/@types/graceful-fs": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", - "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==", + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", "dev": true, "dependencies": { "@types/node": "*" @@ -3105,17 +3058,15 @@ "@types/istanbul-lib-report": "*" } }, - "node_modules/@types/js-levenshtein": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/js-levenshtein/-/js-levenshtein-1.1.1.tgz", - "integrity": "sha512-qC4bCqYGy1y/NP7dDVr7KJarn+PbX1nSpwA7JXdu0HxT3QYjO8MJ+cntENtHFVy2dRAyBV23OZ6MxsW1AM1L8g==", - "dev": true - }, - "node_modules/@types/json-schema": { - "version": "7.0.11", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", - "integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", - "dev": true + "node_modules/@types/jest": { + "version": "29.5.14", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", + "dev": true, + "dependencies": { + "expect": "^29.0.0", + "pretty-format": "^29.0.0" + } }, "node_modules/@types/json5": { "version": "0.0.29", @@ -3123,45 +3074,21 @@ "integrity": "sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==", "dev": true }, - "node_modules/@types/ms": { - "version": "0.7.31", - "resolved": "https://registry.npmjs.org/@types/ms/-/ms-0.7.31.tgz", - "integrity": "sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==", - "dev": true - }, "node_modules/@types/node": { - "version": "18.11.9", - "resolved": "https://registry.npmjs.org/@types/node/-/node-18.11.9.tgz", - "integrity": "sha512-CRpX21/kGdzjOpFsZSkcrXMGIBWMGNIHXXBVFSH+ggkftxg+XYP20TESbh+zFvFj3EQOl5byk0HTRn1IL6hbqg==", - "dev": true - }, - "node_modules/@types/normalize-package-data": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz", - "integrity": "sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==", - "dev": true - }, - "node_modules/@types/prettier": { - "version": "2.7.1", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.7.1.tgz", - "integrity": "sha512-ri0UmynRRvZiiUJdiz38MmIblKK+oH30MztdBVR95dv/Ubw6neWSb8u1XpRb72L4qsZOhz+L+z9JD40SJmfWow==", - "dev": true - }, - "node_modules/@types/semver": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/@types/semver/-/semver-7.5.2.tgz", - "integrity": "sha512-7aqorHYgdNO4DM36stTiGO3DvKoex9TQRwsJU6vMaFGyqpBA1MNZkz+PG3gaNUPpTAOYhT1WR7M1JyA3fbS9Cw==", - "dev": true - }, - "node_modules/@types/set-cookie-parser": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/@types/set-cookie-parser/-/set-cookie-parser-2.4.2.tgz", - "integrity": "sha512-fBZgytwhYAUkj/jC/FAV4RQ5EerRup1YQsXQCh8rZfiHkc4UahC192oH0smGwsXol3cL3A5oETuAHeQHmhXM4w==", + "version": "18.19.74", + "resolved": "https://registry.npmjs.org/@types/node/-/node-18.19.74.tgz", + "integrity": "sha512-HMwEkkifei3L605gFdV+/UwtpxP6JSzM+xFk2Ia6DNFSwSVBRh9qp5Tgf4lNFOMfPVuU0WnkcWpXZpgn5ufO4A==", "dev": true, "dependencies": { - "@types/node": "*" + "undici-types": "~5.26.4" } }, + "node_modules/@types/qs": { + "version": "6.9.18", + "resolved": "https://registry.npmjs.org/@types/qs/-/qs-6.9.18.tgz", + "integrity": "sha512-kK7dgTYDyGqS+e2Q4aK9X3D7q234CIZ1Bv0q/7Z5IwRDoADNU81xXJK/YVyLbLTZCoIwUoDoffFeF+p/eIklAA==", + "dev": true + }, "node_modules/@types/stack-utils": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", @@ -3169,9 +3096,9 @@ "dev": true }, "node_modules/@types/yargs": { - "version": "15.0.14", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-15.0.14.tgz", - "integrity": "sha512-yEJzHoxf6SyQGhBhIYGXQDSCkJjB6HohDShto7m8vaKg9Yp0Yn8+71J9eakh2bnPg6BfsH9PRMhiRTZnd4eXGQ==", + "version": "17.0.33", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.33.tgz", + "integrity": "sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA==", "dev": true, "dependencies": { "@types/yargs-parser": "*" @@ -3183,112 +3110,167 @@ "integrity": "sha512-iO9ZQHkZxHn4mSakYV0vFHAVDyEOIJQrV2uZ06HxEPcx+mt8swXoZHIbaaJ2crJYFfErySgktuTZ3BeLz+XmFA==", "dev": true }, - "node_modules/@typescript-eslint/scope-manager": { - "version": "5.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.44.0.tgz", - "integrity": "sha512-2pKml57KusI0LAhgLKae9kwWeITZ7IsZs77YxyNyIVOwQ1kToyXRaJLl+uDEXzMN5hnobKUOo2gKntK9H1YL8g==", + "node_modules/@typescript-eslint/eslint-plugin": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.22.0.tgz", + "integrity": "sha512-4Uta6REnz/xEJMvwf72wdUnC3rr4jAQf5jnTkeRQ9b6soxLxhDEbS/pfMPoJLDfFPNVRdryqWUIV/2GZzDJFZw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.44.0", - "@typescript-eslint/visitor-keys": "5.44.0" + "@eslint-community/regexpp": "^4.10.0", + "@typescript-eslint/scope-manager": "8.22.0", + "@typescript-eslint/type-utils": "8.22.0", + "@typescript-eslint/utils": "8.22.0", + "@typescript-eslint/visitor-keys": "8.22.0", + "graphemer": "^1.4.0", + "ignore": "^5.3.1", + "natural-compare": "^1.4.0", + "ts-api-utils": "^2.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, - "node_modules/@typescript-eslint/types": { - "version": "5.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.44.0.tgz", - "integrity": "sha512-Tp+zDnHmGk4qKR1l+Y1rBvpjpm5tGXX339eAlRBDg+kgZkz9Bw+pqi4dyseOZMsGuSH69fYfPJCBKBrbPCxYFQ==", + "node_modules/@typescript-eslint/parser": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.22.0.tgz", + "integrity": "sha512-MqtmbdNEdoNxTPzpWiWnqNac54h8JDAmkWtJExBVVnSrSmi9z+sZUt0LfKqk9rjqmKOIeRhO4fHHJ1nQIjduIQ==", "dev": true, + "dependencies": { + "@typescript-eslint/scope-manager": "8.22.0", + "@typescript-eslint/types": "8.22.0", + "@typescript-eslint/typescript-estree": "8.22.0", + "@typescript-eslint/visitor-keys": "8.22.0", + "debug": "^4.3.4" + }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, - "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.44.0.tgz", - "integrity": "sha512-M6Jr+RM7M5zeRj2maSfsZK2660HKAJawv4Ud0xT+yauyvgrsHu276VtXlKDFnEmhG+nVEd0fYZNXGoAgxwDWJw==", + "node_modules/@typescript-eslint/scope-manager": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.22.0.tgz", + "integrity": "sha512-/lwVV0UYgkj7wPSw0o8URy6YI64QmcOdwHuGuxWIYznO6d45ER0wXUbksr9pYdViAofpUCNJx/tAzNukgvaaiQ==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.44.0", - "@typescript-eslint/visitor-keys": "5.44.0", - "debug": "^4.3.4", - "globby": "^11.1.0", - "is-glob": "^4.0.3", - "semver": "^7.3.7", - "tsutils": "^3.21.0" + "@typescript-eslint/types": "8.22.0", + "@typescript-eslint/visitor-keys": "8.22.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } } }, - "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz", - "integrity": "sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==", + "node_modules/@typescript-eslint/type-utils": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.22.0.tgz", + "integrity": "sha512-NzE3aB62fDEaGjaAYZE4LH7I1MUwHooQ98Byq0G0y3kkibPJQIXVUspzlFOmOfHhiDLwKzMlWxaNv+/qcZurJA==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" + "@typescript-eslint/typescript-estree": "8.22.0", + "@typescript-eslint/utils": "8.22.0", + "debug": "^4.3.4", + "ts-api-utils": "^2.0.0" }, - "bin": { - "semver": "bin/semver.js" + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/types": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.22.0.tgz", + "integrity": "sha512-0S4M4baNzp612zwpD4YOieP3VowOARgK2EkN/GBn95hpyF8E2fbMT55sRHWBq+Huaqk3b3XK+rxxlM8sPgGM6A==", + "dev": true, "engines": { - "node": ">=10" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@typescript-eslint/utils": { - "version": "5.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.44.0.tgz", - "integrity": "sha512-fMzA8LLQ189gaBjS0MZszw5HBdZgVwxVFShCO3QN+ws3GlPkcy9YuS3U4wkT6su0w+Byjq3mS3uamy9HE4Yfjw==", + "node_modules/@typescript-eslint/typescript-estree": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.22.0.tgz", + "integrity": "sha512-SJX99NAS2ugGOzpyhMza/tX+zDwjvwAtQFLsBo3GQxiGcvaKlqGBkmZ+Y1IdiSi9h4Q0Lr5ey+Cp9CGWNY/F/w==", "dev": true, "dependencies": { - "@types/json-schema": "^7.0.9", - "@types/semver": "^7.3.12", - "@typescript-eslint/scope-manager": "5.44.0", - "@typescript-eslint/types": "5.44.0", - "@typescript-eslint/typescript-estree": "5.44.0", - "eslint-scope": "^5.1.1", - "eslint-utils": "^3.0.0", - "semver": "^7.3.7" + "@typescript-eslint/types": "8.22.0", + "@typescript-eslint/visitor-keys": "8.22.0", + "debug": "^4.3.4", + "fast-glob": "^3.3.2", + "is-glob": "^4.0.3", + "minimatch": "^9.0.4", + "semver": "^7.6.0", + "ts-api-utils": "^2.0.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" }, "peerDependencies": { - "eslint": "^6.0.0 || ^7.0.0 || ^8.0.0" + "typescript": ">=4.8.4 <5.8.0" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" } }, - "node_modules/@typescript-eslint/utils/node_modules/semver": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz", - "integrity": "sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==", + "node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, "bin": { "semver": "bin/semver.js" }, @@ -3296,80 +3278,68 @@ "node": ">=10" } }, - "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.44.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.44.0.tgz", - "integrity": "sha512-a48tLG8/4m62gPFbJ27FxwCOqPKxsb8KC3HkmYoq2As/4YyjQl1jDbRr1s63+g4FS/iIehjmN3L5UjmKva1HzQ==", + "node_modules/@typescript-eslint/utils": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.22.0.tgz", + "integrity": "sha512-T8oc1MbF8L+Bk2msAvCUzjxVB2Z2f+vXYfcucE2wOmYs7ZUwco5Ep0fYZw8quNwOiw9K8GYVL+Kgc2pETNTLOg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.44.0", - "eslint-visitor-keys": "^3.3.0" + "@eslint-community/eslint-utils": "^4.4.0", + "@typescript-eslint/scope-manager": "8.22.0", + "@typescript-eslint/types": "8.22.0", + "@typescript-eslint/typescript-estree": "8.22.0" }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" }, "funding": { "type": "opencollective", "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" } }, - "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "node_modules/@typescript-eslint/visitor-keys": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.22.0.tgz", + "integrity": "sha512-AWpYAXnUgvLNabGTy3uBylkgZoosva/miNd1I8Bz3SjotmQPbVqhO4Cczo8AsZ44XVErEBPr/CRSgaj8sG7g0w==", "dev": true, + "dependencies": { + "@typescript-eslint/types": "8.22.0", + "eslint-visitor-keys": "^4.2.0" + }, "engines": { - "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" } }, - "node_modules/@xmldom/xmldom": { - "version": "0.8.6", - "resolved": "https://registry.npmjs.org/@xmldom/xmldom/-/xmldom-0.8.6.tgz", - "integrity": "sha512-uRjjusqpoqfmRkTaNuLJ2VohVr67Q5YwDATW3VU7PfzTj6IRaihGrYI7zckGZjxQPBIp63nfvJbM+Yu5ICh0Bg==", + "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz", + "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==", "dev": true, "engines": { - "node": ">=10.0.0" + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, - "node_modules/@zxing/text-encoding": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/@zxing/text-encoding/-/text-encoding-0.9.0.tgz", - "integrity": "sha512-U/4aVJ2mxI0aDNI8Uq0wEhMgY+u4CNtEb0om3+y3+niDAsoTCOB33UF0sxpzqzdqXLqmvc+vZyAt4O8pPdfkwA==", - "dev": true, - "optional": true - }, - "node_modules/abab": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.6.tgz", - "integrity": "sha512-j2afSsaIENvHZN2B8GOpF566vZ5WVk5opAiMTvWgaQT8DkbOqsTfvNAvHoRGU2zzP8cPoqys+xHTRDWW8L+/BA==", + "node_modules/@ungap/structured-clone": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz", + "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==", "dev": true }, "node_modules/acorn": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.1.tgz", - "integrity": "sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dev": true, - "dependencies": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - } - }, - "node_modules/acorn-globals/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", + "version": "8.14.0", + "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.14.0.tgz", + "integrity": "sha512-cl669nCJTZBsL97OF4kUQm5g5hC2uihk0NxY3WENAC0TYdILVkAyHymAntgxGkl7K+t0cXIrH5siy5S4XkFycA==", "dev": true, "bin": { "acorn": "bin/acorn" @@ -3387,27 +3357,6 @@ "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" } }, - "node_modules/acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } - }, "node_modules/aggregate-error": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", @@ -3438,9 +3387,9 @@ } }, "node_modules/ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", + "version": "4.1.3", + "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", + "integrity": "sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw==", "dev": true, "engines": { "node": ">=6" @@ -3471,15 +3420,18 @@ } }, "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "dev": true, "dependencies": { - "color-convert": "^1.9.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, "node_modules/anymatch": { @@ -3501,33 +3453,6 @@ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", "dev": true }, - "node_modules/arr-diff": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/arr-diff/-/arr-diff-4.0.0.tgz", - "integrity": "sha1-1kYQdP6/7HHn4VI1dhoyml3HxSA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/arr-flatten": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/arr-flatten/-/arr-flatten-1.1.0.tgz", - "integrity": "sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/arr-union": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/arr-union/-/arr-union-3.1.0.tgz", - "integrity": "sha1-45sJrqne+Gao8gbiiK9jkZuuOcQ=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/array-from": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", @@ -3553,24 +3478,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/array-unique": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/array-unique/-/array-unique-0.3.2.tgz", - "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/array.prototype.flat": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/array.prototype.flat/-/array.prototype.flat-1.3.1.tgz", @@ -3607,20 +3514,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/asap": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/asap/-/asap-2.0.6.tgz", - "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=" - }, - "node_modules/assign-symbols": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/assign-symbols/-/assign-symbols-1.0.0.tgz", - "integrity": "sha1-WWZ/QfrdTyDMvCu5a41Pf3jsA2c=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/astral-regex": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", @@ -3630,23 +3523,17 @@ "node": ">=8" } }, + "node_modules/async": { + "version": "3.2.6", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", + "integrity": "sha512-htCUDlxyyCLMgaM3xXg0C0LW2xqfuQ6p05pCEIsXuyQ+a1koYKTuBMzRNwmybfLgvJDMd0r1LTn4+E0Ti6C2AA==", + "dev": true + }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=" }, - "node_modules/atob": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/atob/-/atob-2.1.2.tgz", - "integrity": "sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg==", - "dev": true, - "bin": { - "atob": "bin/atob.js" - }, - "engines": { - "node": ">= 4.5.0" - } - }, "node_modules/available-typed-arrays": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/available-typed-arrays/-/available-typed-arrays-1.0.5.tgz", @@ -3659,6 +3546,16 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/axios": { + "version": "1.7.9", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.7.9.tgz", + "integrity": "sha512-LhLcE7Hbiryz8oMDdDptSrWowmB4Bl6RCt6sIJKpRB4XtVf0iEgewX3au/pJqm+Py1kCASkb/FFKjxQaLtxJvw==", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, "node_modules/babel-eslint": { "version": "10.1.0", "resolved": "https://registry.npmjs.org/babel-eslint/-/babel-eslint-10.1.0.tgz", @@ -3690,83 +3587,24 @@ } }, "node_modules/babel-jest": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-26.6.3.tgz", - "integrity": "sha512-pl4Q+GAVOHwvjrck6jKjvmGhnO3jHX/xuB9d27f+EJZ/6k+6nMuPjorrYp7s++bKKdANwzElBWnLWaObvTnaZA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", "dev": true, "dependencies": { - "@jest/transform": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/babel__core": "^7.1.7", - "babel-plugin-istanbul": "^6.0.0", - "babel-preset-jest": "^26.6.2", + "@jest/transform": "^29.7.0", + "@types/babel__core": "^7.1.14", + "babel-plugin-istanbul": "^6.1.1", + "babel-preset-jest": "^29.6.3", "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", + "graceful-fs": "^4.2.9", "slash": "^3.0.0" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { - "@babel/core": "^7.0.0" - } - }, - "node_modules/babel-jest/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/babel-jest/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/babel-jest/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/babel-jest/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" + "@babel/core": "^7.8.0" } }, "node_modules/babel-jest/node_modules/slash": { @@ -3778,18 +3616,6 @@ "node": ">=8" } }, - "node_modules/babel-jest/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/babel-plugin-istanbul": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", @@ -3823,18 +3649,18 @@ } }, "node_modules/babel-plugin-jest-hoist": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-26.6.2.tgz", - "integrity": "sha512-PO9t0697lNTmcEHH69mdtYiOIkkOlj9fySqfO3K1eCcdISevLAE0xY59VLLUj0SoiPiTX/JU2CYFpILydUa5Lw==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", "dev": true, "dependencies": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", + "@types/babel__core": "^7.1.14", "@types/babel__traverse": "^7.0.6" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/babel-plugin-polyfill-corejs2": { @@ -3877,39 +3703,42 @@ } }, "node_modules/babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz", + "integrity": "sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw==", "dev": true, "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" }, "peerDependencies": { "@babel/core": "^7.0.0" } }, "node_modules/babel-preset-jest": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-26.6.2.tgz", - "integrity": "sha512-YvdtlVm9t3k777c5NPQIv6cxFFFapys25HiUmuSgHwIZhfifweR5c5Sf5nwE3MAbfu327CYSvps8Yx6ANLyleQ==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", "dev": true, "dependencies": { - "babel-plugin-jest-hoist": "^26.6.2", + "babel-plugin-jest-hoist": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@babel/core": "^7.0.0" @@ -3921,56 +3750,6 @@ "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", "dev": true }, - "node_modules/base": { - "version": "0.11.2", - "resolved": "https://registry.npmjs.org/base/-/base-0.11.2.tgz", - "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", - "dev": true, - "dependencies": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -3980,17 +3759,6 @@ "node": ">=8" } }, - "node_modules/bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "dev": true, - "dependencies": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -4002,23 +3770,17 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" } }, - "node_modules/browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "dev": true - }, "node_modules/browser-stdout": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", @@ -4026,9 +3788,9 @@ "dev": true }, "node_modules/browserslist": { - "version": "4.21.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", - "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", + "version": "4.24.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", + "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", "dev": true, "funding": [ { @@ -4038,13 +3800,17 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], "dependencies": { - "caniuse-lite": "^1.0.30001400", - "electron-to-chromium": "^1.4.251", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.9" + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.1" }, "bin": { "browserslist": "cli.js" @@ -4053,6 +3819,18 @@ "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" } }, + "node_modules/bs-logger": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz", + "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==", + "dev": true, + "dependencies": { + "fast-json-stable-stringify": "2.x" + }, + "engines": { + "node": ">= 6" + } + }, "node_modules/bser": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", @@ -4062,56 +3840,12 @@ "node-int64": "^0.4.0" } }, - "node_modules/buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ], - "dependencies": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, "node_modules/buffer-from": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, - "node_modules/cache-base": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/cache-base/-/cache-base-1.0.1.tgz", - "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", - "dev": true, - "dependencies": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/call-bind": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", @@ -4143,9 +3877,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001434", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001434.tgz", - "integrity": "sha512-aOBHrLmTQw//WFa2rcF1If9fa3ypkC1wzqqiKHgfdrXTWcU8C4gKVZT77eQAPWN1APys3+uQ0Df07rKauXGEYA==", + "version": "1.0.30001695", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001695.tgz", + "integrity": "sha512-vHyLade6wTgI2u1ec3WQBxv+2BrTERV28UXQu9LO6lZ9pYeMk34vjXFLOxo1A4UBA8XTL4njRQZdno/yYaSmWw==", "dev": true, "funding": [ { @@ -4155,33 +3889,48 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ] }, - "node_modules/capture-exit": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/capture-exit/-/capture-exit-2.0.0.tgz", - "integrity": "sha512-PiT/hQmTonHhl/HFGN+Lx3JJUznrVYJ3+AQsnthneZbvW7x+f08Tk7yLJTLEOUvBTbduLeeBkxEaYXUOUrRq6g==", + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, "dependencies": { - "rsvp": "^4.8.4" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": "6.* || 8.* || >= 10.*" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "node_modules/chalk/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=8" } }, "node_modules/changelog-updater": { @@ -4202,12 +3951,6 @@ "node": ">=10" } }, - "node_modules/chardet": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz", - "integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==", - "dev": true - }, "node_modules/chokidar": { "version": "3.5.3", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", @@ -4236,114 +3979,25 @@ } }, "node_modules/ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "dev": true - }, - "node_modules/cjs-module-lexer": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-0.6.0.tgz", - "integrity": "sha512-uc2Vix1frTfnuzxxu1Hp4ktSvM3QaI4oXl4ZUqL1wjTu/BGki9TrCWoqLTg/drR1KwAEarXuRFCG2Svr1GxPFw==", - "dev": true - }, - "node_modules/class-utils": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/class-utils/-/class-utils-0.3.6.tgz", - "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", - "dev": true, - "dependencies": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/class-utils/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/class-utils/node_modules/is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/class-utils/node_modules/is-accessor-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/class-utils/node_modules/is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/class-utils/node_modules/is-data-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/class-utils/node_modules/is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", "dev": true, - "dependencies": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], "engines": { - "node": ">=0.10.0" + "node": ">=8" } }, - "node_modules/class-utils/node_modules/kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "node_modules/cjs-module-lexer": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.1.tgz", + "integrity": "sha512-cuSVIHi9/9E/+821Qjdvngor+xpnlwnuwIyZOaLmHBVdXL+gP+I6QQB9VkO7RI77YIcTV+S1W9AreJ5eN63JBA==", + "dev": true }, "node_modules/clean-stack": { "version": "2.2.0", @@ -4366,18 +4020,6 @@ "node": ">=8" } }, - "node_modules/cli-spinners": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.7.0.tgz", - "integrity": "sha512-qu3pN8Y3qHNgE2AFweciB1IfMnmZ/fsNTEE+NOFjmGB2F/7rLhnhzppvpCnN4FovtP26k8lHyy9ptEbNwWFLzw==", - "dev": true, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/cli-truncate": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-3.1.0.tgz", @@ -4394,59 +4036,20 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/cli-width": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-3.0.0.tgz", - "integrity": "sha512-FxqpkPPwu1HjuN93Omfm4h8uIanXofW0RxVEW3k5RKx+mJJYSthzNhp32Kzxxy3YAEZ/Dc/EWN1vZRY0+kOhbw==", - "dev": true, - "engines": { - "node": ">= 10" - } - }, "node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "dev": true, "dependencies": { "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/cliui/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/cliui/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" }, "engines": { - "node": ">=7.0.0" + "node": ">=12" } }, - "node_modules/cliui/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, "node_modules/cliui/node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -4476,29 +4079,6 @@ "node": ">=8" } }, - "node_modules/cliui/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg==", - "dev": true, - "engines": { - "node": ">=0.8" - } - }, "node_modules/clone-deep": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", @@ -4516,7 +4096,7 @@ "node_modules/co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, "engines": { "iojs": ">= 1.0.0", @@ -4524,37 +4104,27 @@ } }, "node_modules/collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.2.tgz", + "integrity": "sha512-lHl4d5/ONEbLlJvaJNtsF/Lz+WvB07u2ycqTYbdrq7UypDXailES4valYb2eWiJFxZlVmpGekfqoxQhzyFdT4Q==", "dev": true }, - "node_modules/collection-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/collection-visit/-/collection-visit-1.0.0.tgz", - "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", "dev": true, "dependencies": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" + "color-name": "~1.1.4" }, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "dependencies": { - "color-name": "1.1.3" + "node": ">=7.0.0" } }, "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==", + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", "dev": true }, "node_modules/colorette": { @@ -4589,11 +4159,6 @@ "integrity": "sha1-3dgA2gxmEnOTzKWVDqloo6rxJTs=", "dev": true }, - "node_modules/component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" - }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -4651,36 +4216,13 @@ "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==", "dev": true }, - "node_modules/cookie": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.4.2.tgz", - "integrity": "sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/cookiejar": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", - "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==" - }, - "node_modules/copy-descriptor": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz", - "integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/core-js-compat": { - "version": "3.26.1", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.26.1.tgz", - "integrity": "sha512-622/KzTudvXCDLRw70iHW4KKs1aGpcRcowGWyYJr2DEBfRrd6hNJybxSWJFuZYD4ma86xhrwDDHxmDaIq4EA8A==", + "version": "3.40.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.40.0.tgz", + "integrity": "sha512-0XEDpr5y5mijvw8Lbc6E5AkjrHfp7eEoPlu36SWeAbcL8fn1G1ANe8DBlo2XoNN89oVpxWwOjYIPVzR4ZvsKCQ==", "dev": true, "dependencies": { - "browserslist": "^4.21.4" + "browserslist": "^4.24.3" }, "funding": { "type": "opencollective", @@ -4693,64 +4235,48 @@ "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==", "dev": true }, - "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", "dev": true, "dependencies": { - "path-key": "^3.1.0", - "shebang-command": "^2.0.0", - "which": "^2.0.1" + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "dev": true - }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "dependencies": { - "cssom": "~0.3.6" + "bin": { + "create-jest": "bin/create-jest.js" }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - }, - "node_modules/data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "dependencies": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" }, "engines": { - "node": ">=10" + "node": ">= 8" } }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "dev": true, "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -4761,28 +4287,18 @@ } } }, - "node_modules/decamelize": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", - "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/decimal.js": { - "version": "10.4.2", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.4.2.tgz", - "integrity": "sha512-ic1yEvwT6GuvaYwBLLY6/aFFgjZdySKTE8en/fkU3QICTmRtgtSlFn0u0BXN06InZwtfCelR7j8LRiDI/02iGA==", - "dev": true - }, - "node_modules/decode-uri-component": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/decode-uri-component/-/decode-uri-component-0.2.2.tgz", - "integrity": "sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ==", + "node_modules/dedent": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", + "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", "dev": true, - "engines": { - "node": ">=0.10" + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } } }, "node_modules/deep-is": { @@ -4792,26 +4308,14 @@ "dev": true }, "node_modules/deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, "engines": { "node": ">=0.10.0" } }, - "node_modules/defaults": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.4.tgz", - "integrity": "sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A==", - "dev": true, - "dependencies": { - "clone": "^1.0.2" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/define-properties": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.4.tgz", @@ -4828,19 +4332,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/define-property": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-2.0.2.tgz", - "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/delayed-stream": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", @@ -4859,33 +4350,21 @@ } }, "node_modules/diff": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", - "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", + "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", "dev": true, "engines": { "node": ">=0.3.1" } }, "node_modules/diff-sequences": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-26.6.2.tgz", - "integrity": "sha512-Mv/TDa3nZ9sbc5soK+OoA74BsS3mL37yixCvUAQkiuA4Wz6YtwP/K47n2rv2ovzHZvoiQeA5FTQOschKkEwB0Q==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true, "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "dependencies": { - "path-type": "^4.0.0" - }, - "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/doctrine": { @@ -4900,46 +4379,40 @@ "node": ">=6.0.0" } }, - "node_modules/domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", - "dev": true, - "dependencies": { - "webidl-conversions": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/domexception/node_modules/webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==", "dev": true }, + "node_modules/ejs": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/ejs/-/ejs-3.1.10.tgz", + "integrity": "sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA==", + "dev": true, + "dependencies": { + "jake": "^10.8.5" + }, + "bin": { + "ejs": "bin/cli.js" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/electron-to-chromium": { - "version": "1.4.284", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", - "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==", + "version": "1.5.88", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.88.tgz", + "integrity": "sha512-K3C2qf1o+bGzbilTDCTBhTQcMS9KW60yTAaTeeXsfvQuTDDwlokLam/AdqlqcSy9u4UainDgsHV23ksXAOgamw==", "dev": true }, "node_modules/emittery": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.7.2.tgz", - "integrity": "sha512-A8OG5SR/ij3SsJdWDJdkkSYUjQdCUx6APQXem0SaEePBSRg4eymGYwBkKo1Y6DU+af/Jn2dBQqDBvjnr9Vi8nQ==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true, "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/sindresorhus/emittery?sponsor=1" @@ -4951,15 +4424,6 @@ "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==", "dev": true }, - "node_modules/end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "dependencies": { - "once": "^1.4.0" - } - }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -5057,149 +4521,58 @@ } }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", "dev": true, "engines": { "node": ">=6" } }, - "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", - "dev": true, - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, - "node_modules/escodegen/node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/escodegen/node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha512-0OO4y2iOHix2W6ujICbKIaEQXvFQHue65vUG3pb5EUomzPI90z9hsA1VsO/dbIIpC53J8gxM9Q4Oho0jrCM/yA==", - "dev": true, - "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha512-ESF23V4SKG6lVSGZgYNpbsiaAkdab6ZgOxe52p7+Kid3W3u3bxR4Vfd/o21dmN7jSt0IwgZ4v5MUd26FEtXE9w==", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/escodegen/node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha512-ZCmOJdvOWDBYJlzAoFkC+Q0+bUyEOS1ltgp1MGU03fqHG+dbi9tBFU2Rd9QKiDZFAYrhPh2JUf7rZRIuHRKtOg==", - "dev": true, - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/eslint": { - "version": "8.28.0", - "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz", - "integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==", + "version": "8.57.1", + "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz", + "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==", + "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.", "dev": true, "dependencies": { - "@eslint/eslintrc": "^1.3.3", - "@humanwhocodes/config-array": "^0.11.6", + "@eslint-community/eslint-utils": "^4.2.0", + "@eslint-community/regexpp": "^4.6.1", + "@eslint/eslintrc": "^2.1.4", + "@eslint/js": "8.57.1", + "@humanwhocodes/config-array": "^0.13.0", "@humanwhocodes/module-importer": "^1.0.1", "@nodelib/fs.walk": "^1.2.8", - "ajv": "^6.10.0", + "@ungap/structured-clone": "^1.2.0", + "ajv": "^6.12.4", "chalk": "^4.0.0", "cross-spawn": "^7.0.2", "debug": "^4.3.2", "doctrine": "^3.0.0", "escape-string-regexp": "^4.0.0", - "eslint-scope": "^7.1.1", - "eslint-utils": "^3.0.0", - "eslint-visitor-keys": "^3.3.0", - "espree": "^9.4.0", - "esquery": "^1.4.0", + "eslint-scope": "^7.2.2", + "eslint-visitor-keys": "^3.4.3", + "espree": "^9.6.1", + "esquery": "^1.4.2", "esutils": "^2.0.2", "fast-deep-equal": "^3.1.3", "file-entry-cache": "^6.0.1", "find-up": "^5.0.0", "glob-parent": "^6.0.2", - "globals": "^13.15.0", - "grapheme-splitter": "^1.0.4", + "globals": "^13.19.0", + "graphemer": "^1.4.0", "ignore": "^5.2.0", - "import-fresh": "^3.0.0", "imurmurhash": "^0.1.4", "is-glob": "^4.0.0", "is-path-inside": "^3.0.3", - "js-sdsl": "^4.1.4", "js-yaml": "^4.1.0", "json-stable-stringify-without-jsonify": "^1.0.1", "levn": "^0.4.1", "lodash.merge": "^4.6.2", "minimatch": "^3.1.2", "natural-compare": "^1.4.0", - "optionator": "^0.9.1", - "regexpp": "^3.2.0", + "optionator": "^0.9.3", "strip-ansi": "^6.0.1", - "strip-json-comments": "^3.1.0", "text-table": "^0.2.0" }, "bin": { @@ -5319,19 +4692,20 @@ } }, "node_modules/eslint-plugin-jest": { - "version": "27.1.5", - "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-27.1.5.tgz", - "integrity": "sha512-CK2dekZ5VBdzsOSOH5Fc1rwC+cWXjkcyrmf1RV714nDUDKu+o73TTJiDxpbILG8PtPPpAAl3ywzh5QA7Ft0mjA==", + "version": "28.11.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-jest/-/eslint-plugin-jest-28.11.0.tgz", + "integrity": "sha512-QAfipLcNCWLVocVbZW8GimKn5p5iiMcgGbRzz8z/P5q7xw+cNEpYqyzFMtIF/ZgF2HLOyy+dYBut+DoYolvqig==", "dev": true, "dependencies": { - "@typescript-eslint/utils": "^5.10.0" + "@typescript-eslint/utils": "^6.0.0 || ^7.0.0 || ^8.0.0" }, "engines": { - "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + "node": "^16.10.0 || ^18.12.0 || >=20.0.0" }, "peerDependencies": { - "@typescript-eslint/eslint-plugin": "^5.0.0", - "eslint": "^7.0.0 || ^8.0.0" + "@typescript-eslint/eslint-plugin": "^6.0.0 || ^7.0.0 || ^8.0.0", + "eslint": "^7.0.0 || ^8.0.0 || ^9.0.0", + "jest": "*" }, "peerDependenciesMeta": { "@typescript-eslint/eslint-plugin": { @@ -5355,24 +4729,6 @@ "node": ">=8.0.0" } }, - "node_modules/eslint-utils": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", - "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", - "dev": true, - "dependencies": { - "eslint-visitor-keys": "^2.0.0" - }, - "engines": { - "node": "^10.0.0 || ^12.0.0 || >= 14.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - }, - "peerDependencies": { - "eslint": ">=5" - } - }, "node_modules/eslint-visitor-keys": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz", @@ -5382,55 +4738,6 @@ "node": ">=10" } }, - "node_modules/eslint/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/eslint/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/eslint/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/eslint/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, "node_modules/eslint/node_modules/escape-string-regexp": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", @@ -5444,9 +4751,9 @@ } }, "node_modules/eslint/node_modules/eslint-scope": { - "version": "7.1.1", - "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.1.1.tgz", - "integrity": "sha512-QKQM/UXpIiHcLqJ5AOyIW7XZmzjkzQXYE54n1++wb0u9V/abW3l9uQnxX8Z5Xd18xyKIMTUAyQ0k1e8pz6LUrw==", + "version": "7.2.2", + "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz", + "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==", "dev": true, "dependencies": { "esrecurse": "^4.3.0", @@ -5454,15 +4761,21 @@ }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint/node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/eslint/node_modules/estraverse": { @@ -5487,9 +4800,9 @@ } }, "node_modules/eslint/node_modules/globals": { - "version": "13.18.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-13.18.0.tgz", - "integrity": "sha512-/mR4KI8Ps2spmoc0Ulu9L7agOF0du1CZNQ3dke8yItYlyKNmGrkONemBbd6V8UTc1Wgcqn21t3WYB7dbRmh6/A==", + "version": "13.24.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz", + "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==", "dev": true, "dependencies": { "type-fest": "^0.20.2" @@ -5501,27 +4814,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/eslint/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/eslint/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/eslint/node_modules/type-fest": { "version": "0.20.2", "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", @@ -5535,14 +4827,14 @@ } }, "node_modules/espree": { - "version": "9.4.1", - "resolved": "https://registry.npmjs.org/espree/-/espree-9.4.1.tgz", - "integrity": "sha512-XwctdmTO6SIvCzd9810yyNzIrOrqNYV9Koizx4C/mRhf9uq0o4yHoCEU/670pOxOL/MSraektvSAji79kX90Vg==", + "version": "9.6.1", + "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz", + "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==", "dev": true, "dependencies": { - "acorn": "^8.8.0", + "acorn": "^8.9.0", "acorn-jsx": "^5.3.2", - "eslint-visitor-keys": "^3.3.0" + "eslint-visitor-keys": "^3.4.1" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -5552,12 +4844,15 @@ } }, "node_modules/espree/node_modules/eslint-visitor-keys": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.3.0.tgz", - "integrity": "sha512-mQ+suqKJVyeuwGYHAdjMFqjCyfl8+Ldnxuyp3ldiMBFKkvytrXUZWaiPCEav8qDHKty44bD+qV1IP4T+w+xXRA==", + "version": "3.4.3", + "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz", + "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + }, + "funding": { + "url": "https://opencollective.com/eslint" } }, "node_modules/esprima": { @@ -5574,9 +4869,9 @@ } }, "node_modules/esquery": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.4.0.tgz", - "integrity": "sha512-cCDispWt5vHHtwMY2YrAQ4ibFkAL8RbH5YGBnZBc90MolvvfkkQcJro/aZiAQUlQ3qgrYS6D6v8Gc5G5CQsc9w==", + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz", + "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==", "dev": true, "dependencies": { "estraverse": "^5.1.0" @@ -5633,35 +4928,20 @@ "node": ">=0.10.0" } }, - "node_modules/events": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/events/-/events-3.3.0.tgz", - "integrity": "sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==", - "dev": true, - "engines": { - "node": ">=0.8.x" - } - }, - "node_modules/exec-sh": { - "version": "0.3.6", - "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.3.6.tgz", - "integrity": "sha512-nQn+hI3yp+oD0huYhKwvYI32+JFeq+XkNcD1GAo3Y/MjxsfVGmrrzrnzjWiNY6f+pUCP440fThsFh5gZrRAU/w==", - "dev": true - }, "node_modules/execa": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-4.1.0.tgz", - "integrity": "sha512-j5W0//W7f8UxAn8hXVnwG8tLwdiUy4FJLcSupCg6maBYZDpyBvTApK7KyuI4bKj8KOh1r2YH+6ucuYtJv1bTZA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", + "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, "dependencies": { - "cross-spawn": "^7.0.0", - "get-stream": "^5.0.0", - "human-signals": "^1.1.1", + "cross-spawn": "^7.0.3", + "get-stream": "^6.0.0", + "human-signals": "^2.1.0", "is-stream": "^2.0.0", "merge-stream": "^2.0.0", - "npm-run-path": "^4.0.0", - "onetime": "^5.1.0", - "signal-exit": "^3.0.2", + "npm-run-path": "^4.0.1", + "onetime": "^5.1.2", + "signal-exit": "^3.0.3", "strip-final-newline": "^2.0.0" }, "engines": { @@ -5674,323 +4954,68 @@ "node_modules/exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true, "engines": { "node": ">= 0.8.0" } }, - "node_modules/expand-brackets": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/expand-brackets/-/expand-brackets-2.1.4.tgz", - "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", + "node_modules/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", "dev": true, "dependencies": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": ">=0.10.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/expand-brackets/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } + "node_modules/expect.js": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/expect.js/-/expect.js-0.3.1.tgz", + "integrity": "sha1-sKWaDS7/VDdUTr8M6qYBWEHQm1s=", + "dev": true }, - "node_modules/expand-brackets/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "dev": true }, - "node_modules/expand-brackets/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "node_modules/fast-glob": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz", + "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==", "dev": true, "dependencies": { - "is-extendable": "^0.1.0" + "@nodelib/fs.stat": "^2.0.2", + "@nodelib/fs.walk": "^1.2.3", + "glob-parent": "^5.1.2", + "merge2": "^1.3.0", + "micromatch": "^4.0.8" }, "engines": { - "node": ">=0.10.0" + "node": ">=8.6.0" } }, - "node_modules/expand-brackets/node_modules/is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-brackets/node_modules/is-accessor-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-brackets/node_modules/is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-brackets/node_modules/is-data-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-brackets/node_modules/is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-brackets/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-brackets/node_modules/kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/expand-brackets/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/expect": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/expect/-/expect-26.6.2.tgz", - "integrity": "sha512-9/hlOBkQl2l/PLHJx6JjoDF6xPKcJEsUlWKb23rKE7KzeDqUZKXKNMW27KIue5JMdBV9HgmoJPcc8HtO85t9IA==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "ansi-styles": "^4.0.0", - "jest-get-type": "^26.3.0", - "jest-matcher-utils": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-regex-util": "^26.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/expect.js": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/expect.js/-/expect.js-0.3.1.tgz", - "integrity": "sha1-sKWaDS7/VDdUTr8M6qYBWEHQm1s=", - "dev": true - }, - "node_modules/expect/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/expect/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/expect/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/extend-shallow": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-3.0.2.tgz", - "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", - "dev": true, - "dependencies": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/external-editor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/external-editor/-/external-editor-3.1.0.tgz", - "integrity": "sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew==", - "dev": true, - "dependencies": { - "chardet": "^0.7.0", - "iconv-lite": "^0.4.24", - "tmp": "^0.0.33" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/extglob": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/extglob/-/extglob-2.0.4.tgz", - "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", - "dev": true, - "dependencies": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extglob/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extglob/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/extglob/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/fast-deep-equal": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", - "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "dev": true - }, - "node_modules/fast-glob": { - "version": "3.2.12", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz", - "integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==", - "dev": true, - "dependencies": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.2", - "merge2": "^1.3.0", - "micromatch": "^4.0.4" - }, - "engines": { - "node": ">=8.6.0" - } - }, - "node_modules/fast-json-stable-stringify": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", - "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", - "dev": true + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", + "dev": true }, "node_modules/fast-levenshtein": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", + "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==", "dev": true }, - "node_modules/fast-safe-stringify": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", - "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" - }, "node_modules/fastq": { "version": "1.13.0", "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.13.0.tgz", @@ -6009,21 +5034,6 @@ "bser": "2.1.1" } }, - "node_modules/figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^1.0.5" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -6036,10 +5046,40 @@ "node": "^10.12.0 || >=12.0.0" } }, + "node_modules/filelist": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", + "integrity": "sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q==", + "dev": true, + "dependencies": { + "minimatch": "^5.0.1" + } + }, + "node_modules/filelist/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/filelist/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", + "dev": true, + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "dependencies": { "to-regex-range": "^5.0.1" @@ -6106,6 +5146,25 @@ "integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==", "dev": true }, + "node_modules/follow-redirects": { + "version": "1.15.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", + "integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, "node_modules/for-each": { "version": "0.3.3", "resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz", @@ -6115,20 +5174,10 @@ "is-callable": "^1.1.3" } }, - "node_modules/for-in": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", - "integrity": "sha1-gQaNKVqBQuwKxybG4iAMMPttXoA=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dev": true, + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.1.tgz", + "integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", @@ -6138,41 +5187,6 @@ "node": ">= 6" } }, - "node_modules/formidable": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.1.tgz", - "integrity": "sha512-0EcS9wCFEzLvfiks7omJ+SiYJAiD+TzK4Pcw1UlUoGnhUxDcMKjt0P7x8wEb0u6OHu8Nb98WG3nxtlF5C7bvUQ==", - "dependencies": { - "dezalgo": "^1.0.4", - "hexoid": "^1.0.0", - "once": "^1.4.0", - "qs": "^6.11.0" - }, - "funding": { - "url": "https://ko-fi.com/tunnckoCore/commissions" - } - }, - "node_modules/formidable/node_modules/dezalgo": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/dezalgo/-/dezalgo-1.0.4.tgz", - "integrity": "sha512-rXSP0bf+5n0Qonsb+SVVfNfIsimO4HEtmnIpPHY8Q1UCzKlQrDMfdobr8nJOOsRgWCyMRqeSBQzmWUMq7zvVig==", - "dependencies": { - "asap": "^2.0.0", - "wrappy": "1" - } - }, - "node_modules/fragment-cache": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/fragment-cache/-/fragment-cache-0.2.1.tgz", - "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", - "dev": true, - "dependencies": { - "map-cache": "^0.2.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/fs-readdir-recursive": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", @@ -6284,15 +5298,12 @@ } }, "node_modules/get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", + "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, - "dependencies": { - "pump": "^3.0.0" - }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -6314,15 +5325,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/get-value": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", - "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", @@ -6379,39 +5381,10 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/globby": { - "version": "11.1.0", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz", - "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==", - "dev": true, - "dependencies": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.2.9", - "ignore": "^5.2.0", - "merge2": "^1.4.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/globby/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/gopd": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", - "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", + "node_modules/gopd": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.0.1.tgz", + "integrity": "sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA==", "dev": true, "dependencies": { "get-intrinsic": "^1.1.3" @@ -6426,28 +5399,12 @@ "integrity": "sha512-9ByhssR2fPVsNZj478qUUbKfmL0+t5BDVyjShtyZZLiK7ZDAArFFfopyOTj0M05wE2tJPisA4iTnnXl2YoPvOA==", "dev": true }, - "node_modules/grapheme-splitter": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/grapheme-splitter/-/grapheme-splitter-1.0.4.tgz", - "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", + "node_modules/graphemer": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz", + "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==", "dev": true }, - "node_modules/graphql": { - "version": "16.8.1", - "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.8.1.tgz", - "integrity": "sha512-59LZHPdGZVh695Ud9lRzPBVTtlX9ZCV150Er2W43ro37wVof0ctenSaskPPjN7lVTIN8mSZt8PHUNKZuNQUuxw==", - "dev": true, - "engines": { - "node": "^12.22.0 || ^14.16.0 || ^16.0.0 || >=17.0.0" - } - }, - "node_modules/growly": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/growly/-/growly-1.3.0.tgz", - "integrity": "sha1-8QdIy+dq+WS3yWyTxrzCivEgwIE=", - "dev": true, - "optional": true - }, "node_modules/has": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", @@ -6527,69 +5484,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", - "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", - "dev": true, - "dependencies": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", - "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", - "dev": true, - "dependencies": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values/node_modules/is-number/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/has-values/node_modules/kind-of": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", - "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", @@ -6599,116 +5493,25 @@ "he": "bin/he" } }, - "node_modules/headers-polyfill": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/headers-polyfill/-/headers-polyfill-3.1.2.tgz", - "integrity": "sha512-tWCK4biJ6hcLqTviLXVR9DTRfYGQMXEIUj3gwJ2rZ5wO/at3XtkI4g8mCvFdUF9l1KMBNCfmNAdnahm1cgavQA==", - "dev": true - }, - "node_modules/hexoid": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", - "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==", - "engines": { - "node": ">=8" - } - }, - "node_modules/hosted-git-info": { - "version": "2.8.9", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", - "integrity": "sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==", - "dev": true - }, - "node_modules/html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", - "dev": true, - "dependencies": { - "whatwg-encoding": "^1.0.5" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, - "node_modules/http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "dev": true, - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/https-proxy-agent": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", - "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/human-signals": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-1.1.1.tgz", - "integrity": "sha512-SEQu7vl8KjNL2eoGBLF3+wAjpsNfA9XMlXAYj/3EdaNfAlxKthD1xjEQfGOUhllCGGJVNY34bRr6lPINhNjyZw==", - "dev": true, - "engines": { - "node": ">=8.12.0" - } - }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", + "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, "engines": { - "node": ">=0.10.0" + "node": ">=10.17.0" } }, - "node_modules/ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, "node_modules/ignore": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.0.tgz", - "integrity": "sha512-CmxgYGiEPCLhfLnpPp1MoRmifwEIOgjcHXxOBjv7mY96c+eWScsOP9c112ZyLdWHi0FxHjI+4uVhKYp/gcdRmQ==", + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", "dev": true, "engines": { "node": ">= 4" @@ -6731,9 +5534,9 @@ } }, "node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", "dev": true, "dependencies": { "pkg-dir": "^4.2.0", @@ -6844,250 +5647,92 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "dev": true }, - "node_modules/inquirer": { - "version": "8.2.5", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-8.2.5.tgz", - "integrity": "sha512-QAgPDQMEgrDssk1XiwwHoOGYF9BAbUcc1+j+FhEvaOt8/cKRqyLn0U5qA6F74fGhTMGxf92pOvPBeh29jQJDTQ==", + "node_modules/internal-slot": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.4.tgz", + "integrity": "sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==", "dev": true, "dependencies": { - "ansi-escapes": "^4.2.1", - "chalk": "^4.1.1", - "cli-cursor": "^3.1.0", - "cli-width": "^3.0.0", - "external-editor": "^3.0.3", - "figures": "^3.0.0", - "lodash": "^4.17.21", - "mute-stream": "0.0.8", - "ora": "^5.4.1", - "run-async": "^2.4.0", - "rxjs": "^7.5.5", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0", - "through": "^2.3.6", - "wrap-ansi": "^7.0.0" + "get-intrinsic": "^1.1.3", + "has": "^1.0.3", + "side-channel": "^1.0.4" }, "engines": { - "node": ">=12.0.0" + "node": ">= 0.4" } }, - "node_modules/inquirer/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/interpret": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", + "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">= 0.10" } }, - "node_modules/inquirer/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/is-array-buffer": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.1.tgz", + "integrity": "sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" + "call-bind": "^1.0.2", + "get-intrinsic": "^1.1.3", + "is-typed-array": "^1.1.10" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/inquirer/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/inquirer/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/inquirer/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true }, - "node_modules/inquirer/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/inquirer/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "node_modules/is-bigint": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", + "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "has-bigints": "^1.0.1" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/inquirer/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "node_modules/is-binary-path": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", + "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "dev": true, "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" + "binary-extensions": "^2.0.0" }, "engines": { "node": ">=8" } }, - "node_modules/inquirer/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/is-boolean-object": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", + "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "call-bind": "^1.0.2", + "has-tostringtag": "^1.0.0" }, "engines": { - "node": ">=8" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/internal-slot": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.4.tgz", - "integrity": "sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==", - "dev": true, - "dependencies": { - "get-intrinsic": "^1.1.3", - "has": "^1.0.3", - "side-channel": "^1.0.4" - }, - "engines": { - "node": ">= 0.4" - } - }, - "node_modules/interpret": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz", - "integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==", - "dev": true, - "engines": { - "node": ">= 0.10" - } - }, - "node_modules/is-accessor-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", - "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-arguments": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz", - "integrity": "sha512-8Q7EARjzEnKpt/PCD7e1cgUS0a6X8u5tdSiMqXhojOdoV9TsMsiO+9VLC5vAmO8N7/GmXn7yjR8qnA6bVAEzfA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-array-buffer": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/is-array-buffer/-/is-array-buffer-3.0.1.tgz", - "integrity": "sha512-ASfLknmY8Xa2XtB4wmbz13Wu202baeA18cJBCeCy0wXUHZF0IPyVEXqKEcd+t2fNSLLL1vC6k7lxZEojNbISXQ==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "get-intrinsic": "^1.1.3", - "is-typed-array": "^1.1.10" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "node_modules/is-bigint": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/is-bigint/-/is-bigint-1.0.4.tgz", - "integrity": "sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg==", - "dev": true, - "dependencies": { - "has-bigints": "^1.0.1" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "dependencies": { - "binary-extensions": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/is-boolean-object": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/is-boolean-object/-/is-boolean-object-1.1.2.tgz", - "integrity": "sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA==", - "dev": true, - "dependencies": { - "call-bind": "^1.0.2", - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/is-buffer": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", - "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", - "dev": true - }, "node_modules/is-callable": { "version": "1.2.7", "resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.7.tgz", @@ -7100,18 +5745,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "dev": true, - "dependencies": { - "ci-info": "^2.0.0" - }, - "bin": { - "is-ci": "bin.js" - } - }, "node_modules/is-core-module": { "version": "2.11.0", "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", @@ -7124,18 +5757,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-data-descriptor": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", - "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", - "dev": true, - "dependencies": { - "kind-of": "^6.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/is-date-object": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.5.tgz", @@ -7151,48 +5772,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-descriptor": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", - "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-docker": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz", - "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==", - "dev": true, - "optional": true, - "bin": { - "is-docker": "cli.js" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/is-extendable": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", - "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", - "dev": true, - "dependencies": { - "is-plain-object": "^2.0.4" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/is-extglob": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", @@ -7223,21 +5802,6 @@ "node": ">=6" } }, - "node_modules/is-generator-function": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/is-generator-function/-/is-generator-function-1.0.10.tgz", - "integrity": "sha512-jsEjy9l3yiXEQ+PsXdmBwEPcOxaXWLspKdplFUVI9vq1iZgIekeC0L167qeu86czQaxed3q/Uzuw0swL0irL8A==", - "dev": true, - "dependencies": { - "has-tostringtag": "^1.0.0" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, "node_modules/is-glob": { "version": "4.0.3", "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", @@ -7250,15 +5814,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-interactive": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", - "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/is-negative-zero": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/is-negative-zero/-/is-negative-zero-2.0.2.tgz", @@ -7271,12 +5826,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-node-process": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-node-process/-/is-node-process-1.0.1.tgz", - "integrity": "sha512-5IcdXuf++TTNt3oGl9EBdkvndXA8gmc4bz/Y+mdEpWh3Mcn/+kOw6hI7LD5CocqJWMzeb0I0ClndRVNdEPuJXQ==", - "dev": true - }, "node_modules/is-number": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", @@ -7331,12 +5880,6 @@ "node": ">=0.10.0" } }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true - }, "node_modules/is-regex": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz", @@ -7426,12 +5969,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, "node_modules/is-unicode-supported": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", @@ -7456,28 +5993,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-windows": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", - "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/is-wsl": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz", - "integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==", - "dev": true, - "optional": true, - "dependencies": { - "is-docker": "^2.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/isarray": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", @@ -7509,32 +6024,45 @@ } }, "node_modules/istanbul-lib-instrument": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-4.0.3.tgz", - "integrity": "sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", "dev": true, "dependencies": { - "@babel/core": "^7.7.5", - "@istanbuljs/schema": "^0.1.2", - "istanbul-lib-coverage": "^3.0.0", - "semver": "^6.3.0" + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^7.5.4" }, "engines": { - "node": ">=8" + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, "dependencies": { "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", + "make-dir": "^4.0.0", "supports-color": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=10" } }, "node_modules/istanbul-lib-report/node_modules/has-flag": { @@ -7547,20 +6075,32 @@ } }, "node_modules/istanbul-lib-report/node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", "dev": true, "dependencies": { - "semver": "^6.0.0" + "semver": "^7.5.3" }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/istanbul-lib-report/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", + "dev": true, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/istanbul-lib-report/node_modules/supports-color": { "version": "7.2.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", @@ -7588,9 +6128,9 @@ } }, "node_modules/istanbul-reports": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.5.tgz", - "integrity": "sha512-nUsEMa9pBt/NOHqbcbeJEgqIlY/K7rVWUX6Lql2orY5e9roQOthbR3vtY4zzf2orPELg80fnxxk9zUyPlgwD1w==", + "version": "3.1.7", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.7.tgz", + "integrity": "sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g==", "dev": true, "dependencies": { "html-escaper": "^2.0.0", @@ -7600,1821 +6140,814 @@ "node": ">=8" } }, + "node_modules/jake": { + "version": "10.9.2", + "resolved": "https://registry.npmjs.org/jake/-/jake-10.9.2.tgz", + "integrity": "sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA==", + "dev": true, + "dependencies": { + "async": "^3.2.3", + "chalk": "^4.0.2", + "filelist": "^1.0.4", + "minimatch": "^3.1.2" + }, + "bin": { + "jake": "bin/cli.js" + }, + "engines": { + "node": ">=10" + } + }, "node_modules/jest": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest/-/jest-26.6.3.tgz", - "integrity": "sha512-lGS5PXGAzR4RF7V5+XObhqz2KZIDUA1yD0DG6pBVmy10eh0ZIXQImRuzocsI/N2XZ1GrLFwTS27In2i2jlpq1Q==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, "dependencies": { - "@jest/core": "^26.6.3", + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", "import-local": "^3.0.2", - "jest-cli": "^26.6.3" + "jest-cli": "^29.7.0" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, "node_modules/jest-changed-files": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-26.6.2.tgz", - "integrity": "sha512-fDS7szLcY9sCtIip8Fjry9oGf3I2ht/QT21bAHm5Dmf0mD4X3ReNUf17y+bO6fR8WgbIZTlbyG1ak/53cbRzKQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", "dev": true, "dependencies": { - "@jest/types": "^26.6.2", - "execa": "^4.0.0", - "throat": "^5.0.0" + "execa": "^5.0.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-cli": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-26.6.3.tgz", - "integrity": "sha512-GF9noBSa9t08pSyl3CY4frMrqp+aQXFGFkf5hEPbh/pIUFYWMK6ZLTfbmadxJVcJrdRoChlWQsA2VkJcDFK8hg==", + "node_modules/jest-circus": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", "dev": true, "dependencies": { - "@jest/core": "^26.6.3", - "@jest/test-result": "^26.6.2", - "@jest/types": "^26.6.2", + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", "chalk": "^4.0.0", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "import-local": "^3.0.2", - "is-ci": "^2.0.0", - "jest-config": "^26.6.3", - "jest-util": "^26.6.2", - "jest-validate": "^26.6.2", - "prompts": "^2.0.1", - "yargs": "^15.4.1" - }, - "bin": { - "jest": "bin/jest.js" + "co": "^4.6.0", + "dedent": "^1.0.0", + "is-generator-fn": "^2.0.0", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-cli/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, + "node_modules/jest-circus/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, "engines": { "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/jest-cli/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-cli": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "create-jest": "^29.7.0", + "exit": "^0.1.2", + "import-local": "^3.0.2", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-cli/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" + "bin": { + "jest": "bin/jest.js" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-cli/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-cli/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-cli/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, - "engines": { - "node": ">=8" + "peerDependencies": { + "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" + }, + "peerDependenciesMeta": { + "node-notifier": { + "optional": true + } } }, "node_modules/jest-config": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-26.6.3.tgz", - "integrity": "sha512-t5qdIj/bCj2j7NFVHb2nFB4aUdfucDn3JRKgrZnplb8nieAirAzRSHP8uDEd+qV6ygzg9Pz4YG7UTJf94LPSyg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", "dev": true, "dependencies": { - "@babel/core": "^7.1.0", - "@jest/test-sequencer": "^26.6.3", - "@jest/types": "^26.6.2", - "babel-jest": "^26.6.3", + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", "chalk": "^4.0.0", + "ci-info": "^3.2.0", "deepmerge": "^4.2.2", - "glob": "^7.1.1", - "graceful-fs": "^4.2.4", - "jest-environment-jsdom": "^26.6.2", - "jest-environment-node": "^26.6.2", - "jest-get-type": "^26.3.0", - "jest-jasmine2": "^26.6.3", - "jest-regex-util": "^26.0.0", - "jest-resolve": "^26.6.2", - "jest-util": "^26.6.2", - "jest-validate": "^26.6.2", - "micromatch": "^4.0.2", - "pretty-format": "^26.6.2" + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "micromatch": "^4.0.4", + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { + "@types/node": "*", "ts-node": ">=9.0.0" }, "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, "ts-node": { "optional": true } } }, - "node_modules/jest-config/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-config/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-config/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-config/node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": ">=7.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-config/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-config/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/jest-config/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, "engines": { "node": ">=8" } }, - "node_modules/jest-config/node_modules/jest-environment-node": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-26.6.2.tgz", - "integrity": "sha512-zhtMio3Exty18dy8ee8eJ9kjnRyZC1N4C1Nt/VShN1apyXc8rWGtJ9lI7vqiWcyyXS4BVSEn9lxAM2D+07/Tag==", + "node_modules/jest-diff": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", "dev": true, "dependencies": { - "@jest/environment": "^26.6.2", - "@jest/fake-timers": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "jest-mock": "^26.6.2", - "jest-util": "^26.6.2" + "chalk": "^4.0.0", + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-config/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-docblock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "detect-newline": "^3.0.0" }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-diff": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-26.6.2.tgz", - "integrity": "sha512-6m+9Z3Gv9wN0WFVasqjCL/06+EFCMTqDEUl/b87HYK2rAPTyfz4ZIuSlPhY51PIQRWx5TaxeF1qmXKe9gfN3sA==", + "node_modules/jest-each": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", "dev": true, "dependencies": { + "@jest/types": "^29.6.3", "chalk": "^4.0.0", - "diff-sequences": "^26.6.2", - "jest-get-type": "^26.3.0", - "pretty-format": "^26.6.2" + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-diff/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-environment-node": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", + "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "@jest/environment": "^27.5.1", + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-diff/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-environment-node/node_modules/@jest/environment": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", + "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@jest/fake-timers": "^27.5.1", + "@jest/types": "^27.5.1", + "@types/node": "*", + "jest-mock": "^27.5.1" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-diff/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-environment-node/node_modules/@jest/fake-timers": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", + "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^27.5.1", + "@sinonjs/fake-timers": "^8.0.1", + "@types/node": "*", + "jest-message-util": "^27.5.1", + "jest-mock": "^27.5.1", + "jest-util": "^27.5.1" }, "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-diff/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-diff/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-diff/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-environment-node/node_modules/@jest/types": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", + "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^16.0.0", + "chalk": "^4.0.0" }, "engines": { - "node": ">=8" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-docblock": { - "version": "26.0.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-26.0.0.tgz", - "integrity": "sha512-RDZ4Iz3QbtRWycd8bUEPxQsTlYazfYn/h5R65Fc6gOfwozFhoImx+affzky/FFBuqISPTqjXomoIGJVKBWoo0w==", + "node_modules/jest-environment-node/node_modules/@sinonjs/fake-timers": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", + "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", "dev": true, "dependencies": { - "detect-newline": "^3.0.0" - }, - "engines": { - "node": ">= 10.14.2" + "@sinonjs/commons": "^1.7.0" } }, - "node_modules/jest-each": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-26.6.2.tgz", - "integrity": "sha512-Mer/f0KaATbjl8MCJ+0GEpNdqmnVmDYqCTJYTvoo7rqmRiDllmp2AYN+06F93nXcY3ur9ShIjS+CO/uD+BbH4A==", + "node_modules/jest-environment-node/node_modules/@types/yargs": { + "version": "16.0.4", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", + "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", "dev": true, "dependencies": { - "@jest/types": "^26.6.2", - "chalk": "^4.0.0", - "jest-get-type": "^26.3.0", - "jest-util": "^26.6.2", - "pretty-format": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" + "@types/yargs-parser": "*" } }, - "node_modules/jest-each/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-environment-node/node_modules/jest-message-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", + "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "@babel/code-frame": "^7.12.13", + "@jest/types": "^27.5.1", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^27.5.1", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-each/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-each/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-each/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-each/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-each/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-environment-jsdom": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-26.6.2.tgz", - "integrity": "sha512-jgPqCruTlt3Kwqg5/WVFyHIOJHsiAvhcp2qiR2QQstuG9yWox5+iHpU3ZrcBxW14T4fe5Z68jAfLRh7joCSP2Q==", - "dev": true, - "dependencies": { - "@jest/environment": "^26.6.2", - "@jest/fake-timers": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "jest-mock": "^26.6.2", - "jest-util": "^26.6.2", - "jsdom": "^16.4.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-environment-node": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.5.1.tgz", - "integrity": "sha512-Jt4ZUnxdOsTGwSRAfKEnE6BcwsSPNOijjwifq5sDFSA2kesnXTvNqKHYgM0hDq3549Uf/KzdXNYn4wMZJPlFLw==", - "dev": true, - "dependencies": { - "@jest/environment": "^27.5.1", - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node/node_modules/@jest/environment": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.5.1.tgz", - "integrity": "sha512-/WQjhPJe3/ghaol/4Bq480JKXV/Rfw8nQdN7f41fM8VDHLcxKXou6QyXAh3EFr9/bVG3x74z1NWDkP87EiY8gA==", - "dev": true, - "dependencies": { - "@jest/fake-timers": "^27.5.1", - "@jest/types": "^27.5.1", - "@types/node": "*", - "jest-mock": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node/node_modules/@jest/fake-timers": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.5.1.tgz", - "integrity": "sha512-/aPowoolwa07k7/oM3aASneNeBGCmGQsc3ugN4u6s4C/+s5M64MFo/+djTdiwcbQlRfFElGuDXWzaWj6QgKObQ==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "@sinonjs/fake-timers": "^8.0.1", - "@types/node": "*", - "jest-message-util": "^27.5.1", - "jest-mock": "^27.5.1", - "jest-util": "^27.5.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node/node_modules/@jest/types": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.5.1.tgz", - "integrity": "sha512-Cx46iJ9QpwQTjIdq5VJu2QTMMs3QlEjI0x1QbBP5W1+nMzyc2XmimiRR/CbX9TO0cPTeUlxWMOu8mslYsJ8DEw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node/node_modules/@sinonjs/fake-timers": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", - "dev": true, - "dependencies": { - "@sinonjs/commons": "^1.7.0" - } - }, - "node_modules/jest-environment-node/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/jest-environment-node/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-environment-node/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-environment-node/node_modules/ci-info": { - "version": "3.6.2", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.6.2.tgz", - "integrity": "sha512-lVZdhvbEudris15CLytp2u6Y0p5EKfztae9Fqa189MfNmln9F33XuH69v5fvNfiRN5/0eAUz2yJL3mo+nhaRKg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-environment-node/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-environment-node/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-environment-node/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-environment-node/node_modules/jest-message-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.5.1.tgz", - "integrity": "sha512-rMyFe1+jnyAAf+NHwTclDz0eAaLkVDdKVHHBFWsBWHnnh5YeJMNWWsv7AbFYXfK3oTqvL7VTWkhNLu1jX24D+g==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.5.1", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.9", - "micromatch": "^4.0.4", - "pretty-format": "^27.5.1", - "slash": "^3.0.0", - "stack-utils": "^2.0.3" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node/node_modules/jest-mock": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", - "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node/node_modules/jest-util": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", - "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", - "dev": true, - "dependencies": { - "@jest/types": "^27.5.1", - "@types/node": "*", - "chalk": "^4.0.0", - "ci-info": "^3.2.0", - "graceful-fs": "^4.2.9", - "picomatch": "^2.2.3" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node/node_modules/pretty-format": { - "version": "27.5.1", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", - "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", - "dev": true, - "dependencies": { - "ansi-regex": "^5.0.1", - "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node/node_modules/pretty-format/node_modules/ansi-styles": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", - "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-environment-node/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-environment-node/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-get-type": { - "version": "26.3.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-26.3.0.tgz", - "integrity": "sha512-TpfaviN1R2pQWkIihlfEanwOXK0zcxrKEE4MlU6Tn7keoXdN6/3gK/xl0yEh8DOunn5pOVGKf8hB4R9gVh04ig==", - "dev": true, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-haste-map": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-26.6.2.tgz", - "integrity": "sha512-easWIJXIw71B2RdR8kgqpjQrbMRWQBgiBwXYEhtGUTaX+doCjBheluShdDMeR8IMfJiTqH4+zfhtg29apJf/8w==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "@types/graceful-fs": "^4.1.2", - "@types/node": "*", - "anymatch": "^3.0.3", - "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-regex-util": "^26.0.0", - "jest-serializer": "^26.6.2", - "jest-util": "^26.6.2", - "jest-worker": "^26.6.2", - "micromatch": "^4.0.2", - "sane": "^4.0.3", - "walker": "^1.0.7" - }, - "engines": { - "node": ">= 10.14.2" - }, - "optionalDependencies": { - "fsevents": "^2.1.2" - } - }, - "node_modules/jest-jasmine2": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-26.6.3.tgz", - "integrity": "sha512-kPKUrQtc8aYwBV7CqBg5pu+tmYXlvFlSFYn18ev4gPFtrRzB15N2gW/Roew3187q2w2eHuu0MU9TJz6w0/nPEg==", - "dev": true, - "dependencies": { - "@babel/traverse": "^7.23.2", - "@jest/environment": "^26.6.2", - "@jest/source-map": "^26.6.2", - "@jest/test-result": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^26.6.2", - "is-generator-fn": "^2.0.0", - "jest-each": "^26.6.2", - "jest-matcher-utils": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-runtime": "^26.6.3", - "jest-snapshot": "^26.6.2", - "jest-util": "^26.6.2", - "pretty-format": "^26.6.2", - "throat": "^5.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-jasmine2/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-jasmine2/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-jasmine2/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-jasmine2/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-jasmine2/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-jasmine2/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-leak-detector": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-26.6.2.tgz", - "integrity": "sha512-i4xlXpsVSMeKvg2cEKdfhh0H39qlJlP5Ex1yQxwF9ubahboQYMgTtz5oML35AVA3B4Eu+YsmwaiKVev9KCvLxg==", - "dev": true, - "dependencies": { - "jest-get-type": "^26.3.0", - "pretty-format": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-matcher-utils": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-26.6.2.tgz", - "integrity": "sha512-llnc8vQgYcNqDrqRDXWwMr9i7rS5XFiCwvh6DTP7Jqa2mqpcCBBlpCbn+trkG0KNhPu/h8rzyBkriOtBstvWhw==", - "dev": true, - "dependencies": { - "chalk": "^4.0.0", - "jest-diff": "^26.6.2", - "jest-get-type": "^26.3.0", - "pretty-format": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-matcher-utils/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-matcher-utils/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-matcher-utils/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-matcher-utils/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-matcher-utils/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-matcher-utils/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-message-util": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-26.6.2.tgz", - "integrity": "sha512-rGiLePzQ3AzwUshu2+Rn+UMFk0pHN58sOG+IaJbk5Jxuqo3NYO1U2/MIR4S1sKgsoYSXSzdtSa0TgrmtUwEbmA==", - "dev": true, - "dependencies": { - "@babel/code-frame": "^7.0.0", - "@jest/types": "^26.6.2", - "@types/stack-utils": "^2.0.0", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "micromatch": "^4.0.2", - "pretty-format": "^26.6.2", - "slash": "^3.0.0", - "stack-utils": "^2.0.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-message-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-message-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-message-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-message-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-message-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-message-util/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-message-util/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-mock": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-26.6.2.tgz", - "integrity": "sha512-YyFjePHHp1LzpzYcmgqkJ0nm0gg/lJx2aZFzFy1S6eUqNjXsOqTK10zNRff2dNfssgokjkG65OlWNcIlgd3zew==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "@types/node": "*" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-pnp-resolver": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", - "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", - "dev": true, - "engines": { - "node": ">=6" - }, - "peerDependencies": { - "jest-resolve": "*" - }, - "peerDependenciesMeta": { - "jest-resolve": { - "optional": true - } - } - }, - "node_modules/jest-regex-util": { - "version": "26.0.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-26.0.0.tgz", - "integrity": "sha512-Gv3ZIs/nA48/Zvjrl34bf+oD76JHiGDUxNOVgUjh3j890sblXryjY4rss71fPtD/njchl6PSE2hIhvyWa1eT0A==", - "dev": true, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-resolve": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-26.6.2.tgz", - "integrity": "sha512-sOxsZOq25mT1wRsfHcbtkInS+Ek7Q8jCHUB0ZUTP0tc/c41QHriU/NunqMfCUWsL4H3MHpvQD4QR9kSYhS7UvQ==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "jest-pnp-resolver": "^1.2.2", - "jest-util": "^26.6.2", - "read-pkg-up": "^7.0.1", - "resolve": "^1.18.1", - "slash": "^3.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-resolve-dependencies": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-26.6.3.tgz", - "integrity": "sha512-pVwUjJkxbhe4RY8QEWzN3vns2kqyuldKpxlxJlzEYfKSvY6/bMvxoFrYYzUO1Gx28yKWN37qyV7rIoIp2h8fTg==", - "dev": true, - "dependencies": { - "@jest/types": "^26.6.2", - "jest-regex-util": "^26.0.0", - "jest-snapshot": "^26.6.2" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-resolve/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-resolve/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-resolve/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-resolve/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-resolve/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-resolve/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-resolve/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runner": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-26.6.3.tgz", - "integrity": "sha512-atgKpRHnaA2OvByG/HpGA4g6CSPS/1LK0jK3gATJAoptC1ojltpmVlYC3TYgdmGp+GLuhzpH30Gvs36szSL2JQ==", - "dev": true, - "dependencies": { - "@jest/console": "^26.6.2", - "@jest/environment": "^26.6.2", - "@jest/test-result": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "chalk": "^4.0.0", - "emittery": "^0.7.1", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "jest-config": "^26.6.3", - "jest-docblock": "^26.0.0", - "jest-haste-map": "^26.6.2", - "jest-leak-detector": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-resolve": "^26.6.2", - "jest-runtime": "^26.6.3", - "jest-util": "^26.6.2", - "jest-worker": "^26.6.2", - "source-map-support": "^0.5.6", - "throat": "^5.0.0" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-runner/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-runner/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-runner/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-runner/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-runner/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runner/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runtime": { - "version": "26.6.3", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-26.6.3.tgz", - "integrity": "sha512-lrzyR3N8sacTAMeonbqpnSka1dHNux2uk0qqDXVkMv2c/A3wYnvQ4EXuI013Y6+gSKSCxdaczvf4HF0mVXHRdw==", - "dev": true, - "dependencies": { - "@jest/console": "^26.6.2", - "@jest/environment": "^26.6.2", - "@jest/fake-timers": "^26.6.2", - "@jest/globals": "^26.6.2", - "@jest/source-map": "^26.6.2", - "@jest/test-result": "^26.6.2", - "@jest/transform": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/yargs": "^15.0.0", - "chalk": "^4.0.0", - "cjs-module-lexer": "^0.6.0", - "collect-v8-coverage": "^1.0.0", - "exit": "^0.1.2", - "glob": "^7.1.3", - "graceful-fs": "^4.2.4", - "jest-config": "^26.6.3", - "jest-haste-map": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-mock": "^26.6.2", - "jest-regex-util": "^26.0.0", - "jest-resolve": "^26.6.2", - "jest-snapshot": "^26.6.2", - "jest-util": "^26.6.2", - "jest-validate": "^26.6.2", - "slash": "^3.0.0", - "strip-bom": "^4.0.0", - "yargs": "^15.4.1" - }, - "bin": { - "jest-runtime": "bin/jest-runtime.js" - }, - "engines": { - "node": ">= 10.14.2" - } - }, - "node_modules/jest-runtime/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/jest-runtime/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/jest-runtime/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/jest-runtime/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-runtime/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runtime/node_modules/slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/jest-runtime/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-serializer": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-26.6.2.tgz", - "integrity": "sha512-S5wqyz0DXnNJPd/xfIzZ5Xnp1HrJWBczg8mMfMpN78OJ5eDxXyf+Ygld9wX1DnUWbIbhM1YDY95NjR4CBXkb2g==", + "node_modules/jest-environment-node/node_modules/jest-mock": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.5.1.tgz", + "integrity": "sha512-K4jKbY1d4ENhbrG2zuPWaQBvDly+iZ2yAW+T1fATN78hc0sInwn7wZB8XtlNnvHug5RMwV897Xm4LqmPM4e2Og==", "dev": true, "dependencies": { - "@types/node": "*", - "graceful-fs": "^4.2.4" + "@jest/types": "^27.5.1", + "@types/node": "*" }, "engines": { - "node": ">= 10.14.2" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-snapshot": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-26.6.2.tgz", - "integrity": "sha512-OLhxz05EzUtsAmOMzuupt1lHYXCNib0ECyuZ/PZOx9TrZcC8vL0x+DUG3TL+GLX3yHG45e6YGjIm0XwDc3q3og==", + "node_modules/jest-environment-node/node_modules/jest-util": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.5.1.tgz", + "integrity": "sha512-Kv2o/8jNvX1MQ0KGtw480E/w4fBCDOnH6+6DmeKi6LZUIlKA5kwY0YNdlzaWTiVgxqAqik11QyxDOKk543aKXw==", "dev": true, "dependencies": { - "@babel/types": "^7.0.0", - "@jest/types": "^26.6.2", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.0.0", + "@jest/types": "^27.5.1", + "@types/node": "*", "chalk": "^4.0.0", - "expect": "^26.6.2", - "graceful-fs": "^4.2.4", - "jest-diff": "^26.6.2", - "jest-get-type": "^26.3.0", - "jest-haste-map": "^26.6.2", - "jest-matcher-utils": "^26.6.2", - "jest-message-util": "^26.6.2", - "jest-resolve": "^26.6.2", - "natural-compare": "^1.4.0", - "pretty-format": "^26.6.2", - "semver": "^7.3.2" + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" }, "engines": { - "node": ">= 10.14.2" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-snapshot/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-environment-node/node_modules/pretty-format": { + "version": "27.5.1", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.5.1.tgz", + "integrity": "sha512-Qb1gy5OrP5+zDf2Bvnzdl3jsTf1qXVMazbvCoKhtKqVs4/YK4ozX4gKQJJVyNe+cajNPn0KoC0MC3FUmaHWEmQ==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "ansi-regex": "^5.0.1", + "ansi-styles": "^5.0.0", + "react-is": "^17.0.1" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" } }, - "node_modules/jest-snapshot/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-environment-node/node_modules/pretty-format/node_modules/ansi-styles": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, "engines": { "node": ">=10" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/jest-snapshot/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-environment-node/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, "engines": { - "node": ">=7.0.0" + "node": ">=8" } }, - "node_modules/jest-snapshot/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-snapshot/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/jest-get-type": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", "dev": true, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz", - "integrity": "sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==", + "node_modules/jest-haste-map": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", "dev": true, "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", + "@types/node": "*", + "anymatch": "^3.0.3", + "fb-watchman": "^2.0.0", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", + "micromatch": "^4.0.4", + "walker": "^1.0.8" }, "engines": { - "node": ">=10" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + }, + "optionalDependencies": { + "fsevents": "^2.3.2" } }, - "node_modules/jest-snapshot/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-leak-detector": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-util": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-26.6.2.tgz", - "integrity": "sha512-MDW0fKfsn0OI7MS7Euz6h8HNDXVQ0gaM9uW6RjfDmd1DAFcaxX9OqIakHIqhbnmF08Cf2DLDG+ulq8YQQ0Lp0Q==", + "node_modules/jest-matcher-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", "dev": true, "dependencies": { - "@jest/types": "^26.6.2", - "@types/node": "*", "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "is-ci": "^2.0.0", - "micromatch": "^4.0.2" + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-util/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-message-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "@babel/code-frame": "^7.12.13", + "@jest/types": "^29.6.3", + "@types/stack-utils": "^2.0.0", + "chalk": "^4.0.0", + "graceful-fs": "^4.2.9", + "micromatch": "^4.0.4", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "stack-utils": "^2.0.3" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-util/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-message-util/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": ">=8" } }, - "node_modules/jest-util/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-mock": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" }, "engines": { - "node": ">=7.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-util/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-util/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/jest-pnp-resolver": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, "engines": { - "node": ">=8" + "node": ">=6" + }, + "peerDependencies": { + "jest-resolve": "*" + }, + "peerDependenciesMeta": { + "jest-resolve": { + "optional": true + } } }, - "node_modules/jest-util/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-regex-util": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-validate": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-26.6.2.tgz", - "integrity": "sha512-NEYZ9Aeyj0i5rQqbq+tpIOom0YS1u2MVu6+euBsvpgIme+FOfRmoC4R5p0JiAUpaFvFy24xgrpMknarR/93XjQ==", + "node_modules/jest-resolve": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", "dev": true, "dependencies": { - "@jest/types": "^26.6.2", - "camelcase": "^6.0.0", "chalk": "^4.0.0", - "jest-get-type": "^26.3.0", - "leven": "^3.1.0", - "pretty-format": "^26.6.2" + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-pnp-resolver": "^1.2.2", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "resolve": "^1.20.0", + "resolve.exports": "^2.0.0", + "slash": "^3.0.0" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-validate/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-resolve-dependencies": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", "dev": true, "dependencies": { - "color-convert": "^2.0.1" + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-validate/node_modules/camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", + "node_modules/jest-resolve/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" + "node": ">=8" } }, - "node_modules/jest-validate/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-runner": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-validate/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-runner/node_modules/jest-environment-node": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": ">=7.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-validate/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-validate/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/jest-runner/node_modules/source-map-support": { + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, - "engines": { - "node": ">=8" + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" } }, - "node_modules/jest-validate/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" + "node_modules/jest-runtime": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", + "dev": true, + "dependencies": { + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "cjs-module-lexer": "^1.0.0", + "collect-v8-coverage": "^1.0.0", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "slash": "^3.0.0", + "strip-bom": "^4.0.0" }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" + } + }, + "node_modules/jest-runtime/node_modules/slash": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", + "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", + "dev": true, "engines": { "node": ">=8" } }, - "node_modules/jest-watcher": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-26.6.2.tgz", - "integrity": "sha512-WKJob0P/Em2csiVthsI68p6aGKTIcsfjH9Gsx1f0A3Italz43e3ho0geSAVsmj09RWOELP1AZ/DXyJgOgDKxXQ==", + "node_modules/jest-snapshot": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", "dev": true, "dependencies": { - "@jest/test-result": "^26.6.2", - "@jest/types": "^26.6.2", - "@types/node": "*", - "ansi-escapes": "^4.2.1", + "@babel/core": "^7.11.6", + "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", + "@babel/plugin-syntax-typescript": "^7.7.2", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "jest-util": "^26.6.2", - "string-length": "^4.0.1" + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "natural-compare": "^1.4.0", + "pretty-format": "^29.7.0", + "semver": "^7.5.3" }, "engines": { - "node": ">= 10.14.2" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-watcher/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "node_modules/jest-snapshot/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" + "node": ">=10" } }, - "node_modules/jest-watcher/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "node_modules/jest-util": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", "dev": true, "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "@jest/types": "^29.6.3", + "@types/node": "*", + "chalk": "^4.0.0", + "ci-info": "^3.2.0", + "graceful-fs": "^4.2.9", + "picomatch": "^2.2.3" }, "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-watcher/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/jest-validate": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", "dev": true, "dependencies": { - "color-name": "~1.1.4" + "@jest/types": "^29.6.3", + "camelcase": "^6.2.0", + "chalk": "^4.0.0", + "jest-get-type": "^29.6.3", + "leven": "^3.1.0", + "pretty-format": "^29.7.0" }, "engines": { - "node": ">=7.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/jest-watcher/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/jest-watcher/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "node_modules/jest-validate/node_modules/camelcase": { + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", + "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, "engines": { - "node": ">=8" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/jest-watcher/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/jest-watcher": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", + "ansi-escapes": "^4.2.1", + "chalk": "^4.0.0", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", + "string-length": "^4.0.1" }, "engines": { - "node": ">=8" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-worker": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-26.6.2.tgz", - "integrity": "sha512-KWYVV1c4i+jbMpaBC+U++4Va0cp8OisU185o73T1vo99hqi7w8tSJfUXYswwqqrjzwxa6KpRK54WhPvwf5w6PQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", "dev": true, "dependencies": { "@types/node": "*", + "jest-util": "^29.7.0", "merge-stream": "^2.0.0", - "supports-color": "^7.0.0" + "supports-color": "^8.0.0" }, "engines": { - "node": ">= 10.13.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-worker/node_modules/has-flag": { @@ -9427,34 +6960,18 @@ } }, "node_modules/jest-worker/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "dependencies": { "has-flag": "^4.0.0" }, "engines": { - "node": ">=8" - } - }, - "node_modules/js-levenshtein": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/js-levenshtein/-/js-levenshtein-1.1.6.tgz", - "integrity": "sha512-X2BB11YZtrRqY4EnQcLX5Rh373zbK4alC1FW7D7MBhL2gtcC17cTnr6DmfHZeS0s2rTHjUTMMHfG7gO8SSdw+g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/js-sdsl": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.2.0.tgz", - "integrity": "sha512-dyBIzQBDkCqCu+0upx25Y2jGdbTGxE9fshMsCdK0ViOongpV+n5tXRcZY9v7CaVQ79AGS9KA1KHtojxiM7aXSQ==", - "dev": true, + "node": ">=10" + }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/js-sdsl" + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, "node_modules/js-tokens": { @@ -9475,62 +6992,16 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dev": true, - "dependencies": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/json-parse-even-better-errors": { @@ -9551,6 +7022,13 @@ "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==", "dev": true }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==", + "dev": true, + "license": "ISC" + }, "node_modules/json5": { "version": "2.2.3", "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", @@ -9686,18 +7164,6 @@ "url": "https://github.com/sindresorhus/execa?sponsor=1" } }, - "node_modules/lint-staged/node_modules/get-stream": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", - "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/lint-staged/node_modules/human-signals": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-3.0.1.tgz", @@ -9812,21 +7278,6 @@ } } }, - "node_modules/listr2/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, "node_modules/listr2/node_modules/cli-truncate": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", @@ -9843,24 +7294,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/listr2/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/listr2/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, "node_modules/listr2/node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -9922,7 +7355,8 @@ "node_modules/lodash": { "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", + "dev": true }, "node_modules/lodash.debounce": { "version": "4.0.8", @@ -9930,6 +7364,12 @@ "integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168=", "dev": true }, + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==", + "dev": true + }, "node_modules/lodash.merge": { "version": "4.6.2", "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz", @@ -9952,127 +7392,24 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/log-symbols/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/log-symbols/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/log-symbols/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/log-symbols/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/log-update": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/log-update/-/log-update-4.0.0.tgz", "integrity": "sha512-9fkkDevMefjg0mmzWFBW8YkFP91OrizzkW3diF7CpG+S2EYdy4+TVfGwz1zeF8x7hCx1ovSPTOE9Ngib74qqUg==", "dev": true, "dependencies": { - "ansi-escapes": "^4.3.0", - "cli-cursor": "^3.1.0", - "slice-ansi": "^4.0.0", - "wrap-ansi": "^6.2.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/log-update/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/log-update/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" + "ansi-escapes": "^4.3.0", + "cli-cursor": "^3.1.0", + "slice-ansi": "^4.0.0", + "wrap-ansi": "^6.2.0" }, "engines": { - "node": ">=7.0.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/log-update/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, "node_modules/log-update/node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -10139,17 +7476,6 @@ "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", "dev": true }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/make-dir": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", @@ -10172,6 +7498,12 @@ "semver": "bin/semver" } }, + "node_modules/make-error": { + "version": "1.3.6", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", + "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==", + "dev": true + }, "node_modules/makeerror": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", @@ -10181,27 +7513,6 @@ "tmpl": "1.0.5" } }, - "node_modules/map-cache": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", - "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/map-visit": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", - "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", - "dev": true, - "dependencies": { - "object-visit": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", @@ -10217,38 +7528,19 @@ "node": ">= 8" } }, - "node_modules/methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha1-VSmk1nZUE07cxSZmVoNbD4Ua/O4=", - "engines": { - "node": ">= 0.6" - } - }, "node_modules/micromatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz", - "integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "dependencies": { - "braces": "^3.0.2", + "braces": "^3.0.3", "picomatch": "^2.3.1" }, "engines": { "node": ">=8.6" } }, - "node_modules/mime": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/mime-db": { "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", @@ -10298,46 +7590,32 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/mixin-deep": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.2.tgz", - "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", + "node_modules/mocha": { + "version": "10.8.2", + "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.8.2.tgz", + "integrity": "sha512-VZlYo/WE8t1tstuRmqgeyBgCbJc/lEdopaa+axcKzTBJ+UIdlAB9XnmvTCAH4pwR4ElNInaedhEBmZD8iCSVEg==", "dev": true, "dependencies": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/mocha": { - "version": "10.2.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-10.2.0.tgz", - "integrity": "sha512-IDY7fl/BecMwFHzoqF2sg/SHHANeBoMMXFlS9r0OXKDssYE1M5O43wUY/9BVPeIvfH2zmEbBfseqN9gBQZzXkg==", - "dev": true, - "dependencies": { - "ansi-colors": "4.1.1", - "browser-stdout": "1.3.1", - "chokidar": "3.5.3", - "debug": "4.3.4", - "diff": "5.0.0", - "escape-string-regexp": "4.0.0", - "find-up": "5.0.0", - "glob": "7.2.0", - "he": "1.2.0", - "js-yaml": "4.1.0", - "log-symbols": "4.1.0", - "minimatch": "5.0.1", - "ms": "2.1.3", - "nanoid": "3.3.3", - "serialize-javascript": "6.0.0", - "strip-json-comments": "3.1.1", - "supports-color": "8.1.1", - "workerpool": "6.2.1", - "yargs": "16.2.0", - "yargs-parser": "20.2.4", - "yargs-unparser": "2.0.0" + "ansi-colors": "^4.1.3", + "browser-stdout": "^1.3.1", + "chokidar": "^3.5.3", + "debug": "^4.3.5", + "diff": "^5.2.0", + "escape-string-regexp": "^4.0.0", + "find-up": "^5.0.0", + "glob": "^8.1.0", + "he": "^1.2.0", + "js-yaml": "^4.1.0", + "log-symbols": "^4.1.0", + "minimatch": "^5.1.6", + "ms": "^2.1.3", + "serialize-javascript": "^6.0.2", + "strip-json-comments": "^3.1.1", + "supports-color": "^8.1.1", + "workerpool": "^6.5.1", + "yargs": "^16.2.0", + "yargs-parser": "^20.2.9", + "yargs-unparser": "^2.0.0" }, "bin": { "_mocha": "bin/_mocha", @@ -10345,10 +7623,15 @@ }, "engines": { "node": ">= 14.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mochajs" + } + }, + "node_modules/mocha/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" } }, "node_modules/mocha/node_modules/cliui": { @@ -10381,37 +7664,25 @@ } }, "node_modules/mocha/node_modules/glob": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.0.tgz", - "integrity": "sha512-lmLf6gtyrPq8tTjSmrO94wBeQbFR3HbLHbuyD69wuyQkImp2hWqMGB47OX65FBkPffO641IP9jWa1z4ivqG26Q==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/glob/-/glob-8.1.0.tgz", + "integrity": "sha512-r8hpEjiQEYlF2QU0df3dS+nxxSIreXQS1qRhMJM0Q5NDdR386C7jb7Hwwod8Fgiuex+k0GFjgft18yvxm5XoCQ==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "minimatch": "^5.0.1", + "once": "^1.3.0" }, "engines": { - "node": "*" + "node": ">=12" }, "funding": { "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/mocha/node_modules/glob/node_modules/minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "dev": true, - "dependencies": { - "brace-expansion": "^1.1.7" - }, - "engines": { - "node": "*" - } - }, "node_modules/mocha/node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", @@ -10431,9 +7702,9 @@ } }, "node_modules/mocha/node_modules/minimatch": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.0.1.tgz", - "integrity": "sha512-nLDxIFRyhDblz3qMuq+SoRZED4+miJ/G+tdDrjkkkRnjAsBexeGpgjLEQ0blJy7rHhR2b93rhQY4SvyWu9v03g==", + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", "dev": true, "dependencies": { "brace-expansion": "^2.0.1" @@ -10442,21 +7713,6 @@ "node": ">=10" } }, - "node_modules/mocha/node_modules/minimatch/node_modules/brace-expansion": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", - "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", - "dev": true, - "dependencies": { - "balanced-match": "^1.0.0" - } - }, - "node_modules/mocha/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, "node_modules/mocha/node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -10474,309 +7730,57 @@ "node_modules/mocha/node_modules/supports-color": { "version": "8.1.1", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, - "node_modules/mocha/node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/mocha/node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "dependencies": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/msw": { - "version": "0.48.3", - "resolved": "https://registry.npmjs.org/msw/-/msw-0.48.3.tgz", - "integrity": "sha512-8ENBcX7JVWPA5v9WTeOnCWCMOVtyBiXZyD/0+AKlhOysJRB1ZdBAcMGLIiQ2/VpQ2lC0Yd7SFKg9aviAQSVeaw==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "@mswjs/cookies": "^0.2.2", - "@mswjs/interceptors": "^0.17.5", - "@open-draft/until": "^1.0.3", - "@types/cookie": "^0.4.1", - "@types/js-levenshtein": "^1.1.1", - "chalk": "4.1.1", - "chokidar": "^3.4.2", - "cookie": "^0.4.2", - "graphql": "^15.0.0 || ^16.0.0", - "headers-polyfill": "^3.1.0", - "inquirer": "^8.2.0", - "is-node-process": "^1.0.1", - "js-levenshtein": "^1.1.6", - "node-fetch": "^2.6.7", - "outvariant": "^1.3.0", - "path-to-regexp": "^6.2.0", - "strict-event-emitter": "^0.2.6", - "type-fest": "^2.19.0", - "yargs": "^17.3.1" - }, - "bin": { - "msw": "cli/index.js" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/mswjs" - }, - "peerDependencies": { - "typescript": ">= 4.2.x <= 4.8.x" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/msw/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/msw/node_modules/chalk": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.1.tgz", - "integrity": "sha512-diHzdDKxcU+bAsUboHLPEDQiw0qEe0qd7SYUn3HgcFlWgbDcfLGswOHYeGrHKzG9z6UYf01d9VFMfZxPM1xZSg==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/msw/node_modules/cliui": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", - "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.1", - "wrap-ansi": "^7.0.0" - }, - "engines": { - "node": ">=12" - } - }, - "node_modules/msw/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/msw/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/msw/node_modules/emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "node_modules/msw/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/msw/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/msw/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/msw/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, "dependencies": { "has-flag": "^4.0.0" }, "engines": { - "node": ">=8" - } - }, - "node_modules/msw/node_modules/type-fest": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", - "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==", - "dev": true, - "engines": { - "node": ">=12.20" + "node": ">=10" }, "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/msw/node_modules/y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true, - "engines": { - "node": ">=10" + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, - "node_modules/msw/node_modules/yargs": { - "version": "17.6.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.6.2.tgz", - "integrity": "sha512-1/9UrdHjDZc0eOU0HxOHoS78C69UD3JRMvzlJ7S79S2nTaWRA/whGCTV8o9e/N/1Va9YIV7Q4sOxD8VV4pCWOw==", + "node_modules/mocha/node_modules/yargs": { + "version": "16.2.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", + "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, "dependencies": { - "cliui": "^8.0.1", + "cliui": "^7.0.2", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "string-width": "^4.2.3", + "string-width": "^4.2.0", "y18n": "^5.0.5", - "yargs-parser": "^21.1.1" + "yargs-parser": "^20.2.2" }, "engines": { - "node": ">=12" + "node": ">=10" } }, - "node_modules/msw/node_modules/yargs-parser": { - "version": "21.1.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", - "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "node_modules/mocha/node_modules/yargs-parser": { + "version": "20.2.9", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", + "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", "dev": true, "engines": { - "node": ">=12" + "node": ">=10" } }, - "node_modules/mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==", + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true }, - "node_modules/nanoid": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.3.tgz", - "integrity": "sha512-p1sjXuopFs0xg+fPASzQ28agW1oHD7xDsd9Xkf3T15H3c/cifrFHVwrh74PdoklAPi+i7MdRsE47vm2r6JoB+w==", - "dev": true, - "bin": { - "nanoid": "bin/nanoid.cjs" - }, - "engines": { - "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" - } - }, - "node_modules/nanomatch": { - "version": "1.2.13", - "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", - "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", - "dev": true, - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", "dev": true }, - "node_modules/nice-try": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz", - "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ==", - "dev": true - }, "node_modules/nise": { "version": "1.5.3", "resolved": "https://registry.npmjs.org/nise/-/nise-1.5.3.tgz", @@ -10806,120 +7810,41 @@ } }, "node_modules/nise/node_modules/path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.9.0.tgz", + "integrity": "sha512-xIp7/apCFJuUHdDLWe8O1HIkb0kQrOMb/0u6FXQjemHn/ii5LrIzU6bdECnsiTF/GjZkMEKg1xdiZwNqDYlZ6g==", "dev": true, "dependencies": { "isarray": "0.0.1" } }, - "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "node_modules/nock": { + "version": "13.5.6", + "resolved": "https://registry.npmjs.org/nock/-/nock-13.5.6.tgz", + "integrity": "sha512-o2zOYiCpzRqSzPj0Zt/dQ/DqZeYoaQ7TUonc/xUPjCGl9WeHpNbxgVvOquXYAaJzI0M9BXV3HTzG0p8IUAbBTQ==", "dev": true, + "license": "MIT", "dependencies": { - "whatwg-url": "^5.0.0" + "debug": "^4.1.0", + "json-stringify-safe": "^5.0.1", + "propagate": "^2.0.0" }, "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/node-fetch/node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==", - "dev": true - }, - "node_modules/node-fetch/node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==", - "dev": true - }, - "node_modules/node-fetch/node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dev": true, - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" + "node": ">= 10.13" } }, "node_modules/node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", "dev": true }, - "node_modules/node-notifier": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/node-notifier/-/node-notifier-8.0.2.tgz", - "integrity": "sha512-oJP/9NAdd9+x2Q+rfphB2RJCHjod70RcRLjosiPMMu5gjIfwVnOUGq2nbTjTUbmy0DJ/tFIVT30+Qe3nzl4TJg==", - "dev": true, - "optional": true, - "dependencies": { - "growly": "^1.3.0", - "is-wsl": "^2.2.0", - "semver": "^7.3.2", - "shellwords": "^0.1.1", - "uuid": "^8.3.0", - "which": "^2.0.2" - } - }, - "node_modules/node-notifier/node_modules/semver": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz", - "integrity": "sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==", - "dev": true, - "optional": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/node-releases": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==", + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", "dev": true }, - "node_modules/normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "dependencies": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - } - }, - "node_modules/normalize-package-data/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -10941,97 +7866,6 @@ "node": ">=8" } }, - "node_modules/nwsapi": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.2.tgz", - "integrity": "sha512-90yv+6538zuvUMnN+zCr8LuV6bPFdq50304114vJYJ8RDyK8D5O9Phpbd6SZWgI7PwzmmfN1upeOJlvybDSgCw==", - "dev": true - }, - "node_modules/object-copy": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", - "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", - "dev": true, - "dependencies": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-copy/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-copy/node_modules/is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-copy/node_modules/is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-copy/node_modules/is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-copy/node_modules/is-descriptor/node_modules/kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/object-copy/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/object-inspect": { "version": "1.12.2", "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", @@ -11049,18 +7883,6 @@ "node": ">= 0.4" } }, - "node_modules/object-visit": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", - "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", - "dev": true, - "dependencies": { - "isobject": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/object.assign": { "version": "4.1.4", "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.4.tgz", @@ -11079,18 +7901,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/object.pick": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", - "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", - "dev": true, - "dependencies": { - "isobject": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/object.values": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/object.values/-/object.values-1.1.6.tgz", @@ -11098,163 +7908,55 @@ "dev": true, "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.4", - "es-abstract": "^1.20.4" - }, - "engines": { - "node": ">= 0.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dependencies": { - "wrappy": "1" - } - }, - "node_modules/onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "dependencies": { - "mimic-fn": "^2.1.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/optionator": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.1.tgz", - "integrity": "sha512-74RlY5FCnhq4jRxVUPKDaRwrVNXMqsGsiW6AJw4XK8hmtm10wC0ypZBLw5IIp85NZMr91+qd1RvvENwg7jjRFw==", - "dev": true, - "dependencies": { - "deep-is": "^0.1.3", - "fast-levenshtein": "^2.0.6", - "levn": "^0.4.1", - "prelude-ls": "^1.2.1", - "type-check": "^0.4.0", - "word-wrap": "^1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, - "node_modules/ora": { - "version": "5.4.1", - "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.1.tgz", - "integrity": "sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ==", - "dev": true, - "dependencies": { - "bl": "^4.1.0", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.5.0", - "is-interactive": "^1.0.0", - "is-unicode-supported": "^0.1.0", - "log-symbols": "^4.1.0", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/ora/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/ora/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" + "define-properties": "^1.1.4", + "es-abstract": "^1.20.4" }, "engines": { - "node": ">=10" + "node": ">= 0.4" }, "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/ora/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/ora/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/ora/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" + "wrappy": "1" } }, - "node_modules/ora/node_modules/log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", + "node_modules/onetime": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", + "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, "dependencies": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" + "mimic-fn": "^2.1.0" }, "engines": { - "node": ">=10" + "node": ">=6" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/ora/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "node_modules/optionator": { + "version": "0.9.4", + "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz", + "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==", "dev": true, "dependencies": { - "has-flag": "^4.0.0" + "deep-is": "^0.1.3", + "fast-levenshtein": "^2.0.6", + "levn": "^0.4.1", + "prelude-ls": "^1.2.1", + "type-check": "^0.4.0", + "word-wrap": "^1.2.5" }, "engines": { - "node": ">=8" + "node": ">= 0.8.0" } }, "node_modules/os-shim": { @@ -11266,42 +7968,6 @@ "node": ">= 0.4.0" } }, - "node_modules/os-tmpdir": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", - "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/outvariant": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/outvariant/-/outvariant-1.3.0.tgz", - "integrity": "sha512-yeWM9k6UPfG/nzxdaPlJkB2p08hCg4xP6Lx99F+vP8YF7xyZVfTmJjrrNalkmzudD4WFvNLVudQikqUmF8zhVQ==", - "dev": true - }, - "node_modules/p-each-series": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-each-series/-/p-each-series-2.2.0.tgz", - "integrity": "sha512-ycIL2+1V32th+8scbpTvyHNaHe02z0sjgh91XXjAk+ZeXoPN4Z46DVUnzdso0aX4KckKw0FNNFHdjZ2UsZvxiA==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true, - "engines": { - "node": ">=4" - } - }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -11386,21 +8052,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true - }, - "node_modules/pascalcase": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", - "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -11434,25 +8085,10 @@ "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", "dev": true }, - "node_modules/path-to-regexp": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-6.2.1.tgz", - "integrity": "sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==", - "dev": true - }, - "node_modules/path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "dev": true }, "node_modules/picomatch": { @@ -11570,15 +8206,6 @@ "node": ">=4" } }, - "node_modules/posix-character-classes": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", - "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/pre-commit": { "version": "1.2.2", "resolved": "https://registry.npmjs.org/pre-commit/-/pre-commit-1.2.2.tgz", @@ -11661,51 +8288,35 @@ } }, "node_modules/pretty-format": { - "version": "26.6.2", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-26.6.2.tgz", - "integrity": "sha512-7AeGuCYNGmycyQbCqd/3PWH4eOoX/OiCa0uphp57NVTeAGdJGaAliecxwBDHYQCIvrW7aDBZCYeNTP/WX69mkg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", "dev": true, "dependencies": { - "@jest/types": "^26.6.2", - "ansi-regex": "^5.0.0", - "ansi-styles": "^4.0.0", - "react-is": "^17.0.1" + "@jest/schemas": "^29.6.3", + "ansi-styles": "^5.0.0", + "react-is": "^18.0.0" }, "engines": { - "node": ">= 10" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/pretty-format/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", + "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, "engines": { - "node": ">=8" + "node": ">=10" }, "funding": { "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/pretty-format/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/pretty-format/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "node_modules/pretty-format/node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", "dev": true }, "node_modules/process-nextick-args": { @@ -11727,37 +8338,52 @@ "node": ">= 6" } }, + "node_modules/propagate": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/propagate/-/propagate-2.0.1.tgz", + "integrity": "sha512-vGrhOavPSTz4QVNuBNdcNXePNdNMaO1xj9yBeH1ScQPjk/rhg9sSlCXPhMkFuaNNW/syTvYqsnbIJxMBfRbbag==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 8" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/pseudomap": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", "integrity": "sha512-b/YwNhb8lk1Zz2+bXXpS/LK9OisiZZ1SNsSLxN1x2OXVEhW2Ckr/7mWE5vrC1ZTiJlD9g19jWszTmJsB+oEpFQ==", "dev": true }, - "node_modules/psl": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", - "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==", - "dev": true - }, - "node_modules/pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "dependencies": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", "dev": true, "engines": { "node": ">=6" } }, + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", + "dev": true, + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ] + }, "node_modules/qs": { "version": "6.11.0", "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", @@ -11772,12 +8398,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/querystringify": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz", - "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ==", - "dev": true - }, "node_modules/queue-microtask": { "version": "1.2.3", "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", @@ -11813,121 +8433,6 @@ "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", "dev": true }, - "node_modules/read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "dependencies": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-7.0.1.tgz", - "integrity": "sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==", - "dev": true, - "dependencies": { - "find-up": "^4.1.0", - "read-pkg": "^5.2.0", - "type-fest": "^0.8.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-pkg-up/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/read-pkg-up/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg-up/node_modules/type-fest": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", - "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/read-pkg/node_modules/type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } - }, "node_modules/readdirp": { "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", @@ -11959,9 +8464,9 @@ "dev": true }, "node_modules/regenerate-unicode-properties": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", - "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz", + "integrity": "sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA==", "dev": true, "dependencies": { "regenerate": "^1.4.2" @@ -11973,30 +8478,18 @@ "node_modules/regenerator-runtime": { "version": "0.13.11", "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz", - "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==" + "integrity": "sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg==", + "dev": true }, "node_modules/regenerator-transform": { - "version": "0.15.1", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.1.tgz", - "integrity": "sha512-knzmNAcuyxV+gQCufkYcvOqX/qIIfHLv0u5x79kRxuGojfYVky1f15TzZEu2Avte8QGepvUNTnLskf8E6X6Vyg==", + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", + "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", "dev": true, "dependencies": { "@babel/runtime": "^7.8.4" } }, - "node_modules/regex-not": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", - "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", - "dev": true, - "dependencies": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/regexp.prototype.flags": { "version": "1.4.3", "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", @@ -12014,28 +8507,16 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/regexpp": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/regexpp/-/regexpp-3.2.0.tgz", - "integrity": "sha512-pq2bWo9mVD43nbts2wGv17XLiNLya+GklZ8kaDLV2Z08gDCsGpnKn9BFMepvWuHCbyVvY7J5o5+BVvoQbmlJLg==", - "dev": true, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/mysticatea" - } - }, "node_modules/regexpu-core": { - "version": "5.2.2", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.2.2.tgz", - "integrity": "sha512-T0+1Zp2wjF/juXMrMxHxidqGYn8U4R+zleSJhX9tQ1PUsS8a9UtYfbsF9LdiVgNX3kiX8RNaKM42nfSgvFJjmw==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.2.0.tgz", + "integrity": "sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA==", "dev": true, "dependencies": { "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsgen": "^0.7.1", - "regjsparser": "^0.9.1", + "regenerate-unicode-properties": "^10.2.0", + "regjsgen": "^0.8.0", + "regjsparser": "^0.12.0", "unicode-match-property-ecmascript": "^2.0.0", "unicode-match-property-value-ecmascript": "^2.1.0" }, @@ -12044,54 +8525,33 @@ } }, "node_modules/regjsgen": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.7.1.tgz", - "integrity": "sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==", "dev": true }, "node_modules/regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.12.0.tgz", + "integrity": "sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==", "dev": true, "dependencies": { - "jsesc": "~0.5.0" + "jsesc": "~3.0.2" }, "bin": { "regjsparser": "bin/parser" } }, "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", + "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", "dev": true, "bin": { "jsesc": "bin/jsesc" - } - }, - "node_modules/remove-trailing-separator": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", - "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", - "dev": true - }, - "node_modules/repeat-element": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.4.tgz", - "integrity": "sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/repeat-string": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", - "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", - "dev": true, + }, "engines": { - "node": ">=0.10" + "node": ">=6" } }, "node_modules/require-directory": { @@ -12103,18 +8563,6 @@ "node": ">=0.10.0" } }, - "node_modules/require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "node_modules/requires-port": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz", - "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ==", - "dev": true - }, "node_modules/resolve": { "version": "1.22.1", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", @@ -12162,12 +8610,14 @@ "node": ">=4" } }, - "node_modules/resolve-url": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", - "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", - "deprecated": "https://github.com/lydell/resolve-url#deprecated", - "dev": true + "node_modules/resolve.exports": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", + "dev": true, + "engines": { + "node": ">=10" + } }, "node_modules/restore-cursor": { "version": "3.1.0", @@ -12182,15 +8632,6 @@ "node": ">=8" } }, - "node_modules/ret": { - "version": "0.1.15", - "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", - "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", - "dev": true, - "engines": { - "node": ">=0.12" - } - }, "node_modules/reusify": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", @@ -12222,24 +8663,6 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/rsvp": { - "version": "4.8.5", - "resolved": "https://registry.npmjs.org/rsvp/-/rsvp-4.8.5.tgz", - "integrity": "sha512-nfMOlASu9OnRJo1mbEk2cz0D56a1MBNrJ7orjRZQG10XDyuvwksKbuXNp6qa+kbn839HwjwhBzhFmdsaEAfauA==", - "dev": true, - "engines": { - "node": "6.* || >= 7.*" - } - }, - "node_modules/run-async": { - "version": "2.4.1", - "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.4.1.tgz", - "integrity": "sha512-tvVnVv01b8c1RrA6Ep7JkStj85Guv/YrMcwqYQnwjsAS2cTmmPGBBjAjpCW7RrSodNSoE2/qg9O4bceNvUuDgQ==", - "dev": true, - "engines": { - "node": ">=0.12.0" - } - }, "node_modules/run-parallel": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", @@ -12276,6 +8699,7 @@ "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", + "dev": true, "funding": [ { "type": "github", @@ -12291,15 +8715,6 @@ } ] }, - "node_modules/safe-regex": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", - "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", - "dev": true, - "dependencies": { - "ret": "~0.1.10" - } - }, "node_modules/safe-regex-test": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz", @@ -12309,321 +8724,9 @@ "call-bind": "^1.0.2", "get-intrinsic": "^1.1.3", "is-regex": "^1.1.4" - }, - "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/sane": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/sane/-/sane-4.1.0.tgz", - "integrity": "sha512-hhbzAgTIX8O7SHfp2c8/kREfEn4qO/9q8C9beyY6+tvZ87EpoZ3i1RIEvp27YBswnNbY9mWd6paKVmKbAgLfZA==", - "deprecated": "some dependency vulnerabilities fixed, support for node < 10 dropped, and newer ECMAScript syntax/features added", - "dev": true, - "dependencies": { - "@cnakazawa/watch": "^1.0.3", - "anymatch": "^2.0.0", - "capture-exit": "^2.0.0", - "exec-sh": "^0.3.2", - "execa": "^1.0.0", - "fb-watchman": "^2.0.0", - "micromatch": "^3.1.4", - "minimist": "^1.1.1", - "walker": "~1.0.5" - }, - "bin": { - "sane": "src/cli.js" - }, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/sane/node_modules/anymatch": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-2.0.0.tgz", - "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", - "dev": true, - "dependencies": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" - } - }, - "node_modules/sane/node_modules/braces": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-2.3.2.tgz", - "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", - "dev": true, - "dependencies": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/braces/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/cross-spawn": { - "version": "6.0.5", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz", - "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==", - "dev": true, - "dependencies": { - "nice-try": "^1.0.4", - "path-key": "^2.0.1", - "semver": "^5.5.0", - "shebang-command": "^1.2.0", - "which": "^1.2.9" - }, - "engines": { - "node": ">=4.8" - } - }, - "node_modules/sane/node_modules/execa": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/execa/-/execa-1.0.0.tgz", - "integrity": "sha512-adbxcyWV46qiHyvSp50TKt05tB4tK3HcmF7/nxfAdhnox83seTDbwnaqKO4sXRy7roHAIFqJP/Rw/AuEbX61LA==", - "dev": true, - "dependencies": { - "cross-spawn": "^6.0.0", - "get-stream": "^4.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/sane/node_modules/fill-range": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-4.0.0.tgz", - "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", - "dev": true, - "dependencies": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/fill-range/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "dependencies": { - "pump": "^3.0.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/sane/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/is-number": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", - "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/is-number/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/is-stream": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz", - "integrity": "sha512-uQPm8kcs47jx38atAcWTVxyltQYoPT68y9aWYdV6yWXSyW8mzSat0TL6CiWdZeCdF3KrAvpVtnHbTv4RN+rqdQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/micromatch": { - "version": "3.1.10", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", - "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", - "dev": true, - "dependencies": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/normalize-path": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", - "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", - "dev": true, - "dependencies": { - "remove-trailing-separator": "^1.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/npm-run-path": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz", - "integrity": "sha512-lJxZYlT4DW/bRUtFh1MQIWqmLwQfAxnqWG4HhEdjMlkrJYnJn0Jrr2u3mgxqaWsdiBc76TYkTG/mhrnYTuzfHw==", - "dev": true, - "dependencies": { - "path-key": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/sane/node_modules/path-key": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz", - "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/sane/node_modules/semver": { - "version": "5.7.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", - "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", - "dev": true, - "bin": { - "semver": "bin/semver" - } - }, - "node_modules/sane/node_modules/shebang-command": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz", - "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==", - "dev": true, - "dependencies": { - "shebang-regex": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/shebang-regex": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz", - "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/to-regex-range": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", - "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", - "dev": true, - "dependencies": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sane/node_modules/which": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", - "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", - "dev": true, - "dependencies": { - "isexe": "^2.0.0" - }, - "bin": { - "which": "bin/which" - } - }, - "node_modules/saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dev": true, - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/semver": { @@ -12636,62 +8739,14 @@ } }, "node_modules/serialize-javascript": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", - "integrity": "sha512-Qr3TosvguFt8ePWqsvRfrKyQXIiW+nGbYpy8XK24NQHE83caxWt+mIymTT19DGFbNWNLfEwsrkSmN64lVWB9ag==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.2.tgz", + "integrity": "sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g==", "dev": true, "dependencies": { "randombytes": "^2.1.0" } }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, - "node_modules/set-cookie-parser": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/set-cookie-parser/-/set-cookie-parser-2.5.1.tgz", - "integrity": "sha512-1jeBGaKNGdEq4FgIrORu/N570dwoPYio8lSoYLWmX7sQ//0JY08Xh9o5pBcgmHQ/MbsYp/aZnOe1s1lIsbLprQ==", - "dev": true - }, - "node_modules/set-value": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.1.tgz", - "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", - "dev": true, - "dependencies": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/set-value/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/set-value/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/shallow-clone": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", @@ -12742,13 +8797,6 @@ "node": ">=4" } }, - "node_modules/shellwords": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/shellwords/-/shellwords-0.1.1.tgz", - "integrity": "sha512-vFwSUfQvqybiICwZY5+DAWIPLKsWO31Q91JSKl3UYv+K5c2QRPzn0qzec6QPu1Qc9eHYItiP3NdJqNVqetYAww==", - "dev": true, - "optional": true - }, "node_modules/side-channel": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", @@ -12835,203 +8883,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/snapdragon": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", - "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", - "dev": true, - "dependencies": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", - "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", - "dev": true, - "dependencies": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-node/node_modules/define-property": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", - "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", - "dev": true, - "dependencies": { - "is-descriptor": "^1.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-util": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", - "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", - "dev": true, - "dependencies": { - "kind-of": "^3.2.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon-util/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dev": true, - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/snapdragon/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/extend-shallow": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", - "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", - "dev": true, - "dependencies": { - "is-extendable": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/is-accessor-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/is-data-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", - "dev": true, - "dependencies": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/snapdragon/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true - }, - "node_modules/snapdragon/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/source-map": { "version": "0.6.1", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", @@ -13041,20 +8892,6 @@ "node": ">=0.10.0" } }, - "node_modules/source-map-resolve": { - "version": "0.5.3", - "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.3.tgz", - "integrity": "sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw==", - "deprecated": "See https://github.com/lydell/source-map-resolve#deprecated", - "dev": true, - "dependencies": { - "atob": "^2.1.2", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" - } - }, "node_modules/source-map-support": { "version": "0.5.21", "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", @@ -13065,206 +8902,42 @@ "source-map": "^0.6.0" } }, - "node_modules/source-map-url": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.1.tgz", - "integrity": "sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw==", - "deprecated": "See https://github.com/lydell/source-map-url#deprecated", - "dev": true - }, "node_modules/spawn-sync": { "version": "1.0.15", "resolved": "https://registry.npmjs.org/spawn-sync/-/spawn-sync-1.0.15.tgz", - "integrity": "sha512-9DWBgrgYZzNghseho0JOuh+5fg9u6QWhAWa51QC7+U5rCheZ/j1DrEZnyE0RBBRqZ9uEXGPgSSM0nky6burpVw==", - "dev": true, - "hasInstallScript": true, - "dependencies": { - "concat-stream": "^1.4.7", - "os-shim": "^0.1.2" - } - }, - "node_modules/spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", - "dev": true, - "dependencies": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true - }, - "node_modules/spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", - "dev": true, - "dependencies": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" - } - }, - "node_modules/spdx-license-ids": { - "version": "3.0.12", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.12.tgz", - "integrity": "sha512-rr+VVSXtRhO4OHbXUiAF7xW3Bo9DuuF6C5jH+q/x15j2jniycgKbxU09Hr0WqlSLUs4i4ltHGXqTe7VHclYWyA==", - "dev": true - }, - "node_modules/split-string": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", - "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", - "dev": true, - "dependencies": { - "extend-shallow": "^3.0.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true - }, - "node_modules/stack-utils": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", - "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", - "dev": true, - "dependencies": { - "escape-string-regexp": "^2.0.0" - }, - "engines": { - "node": ">=10" - } - }, - "node_modules/stack-utils/node_modules/escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/static-extend": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", - "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", - "dev": true, - "dependencies": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/static-extend/node_modules/define-property": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", - "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", - "dev": true, - "dependencies": { - "is-descriptor": "^0.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/static-extend/node_modules/is-accessor-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", - "integrity": "sha512-e1BM1qnDbMRG3ll2U9dSK0UMHuWOs3pY3AtcFsmvwPtKL3MML/Q86i+GilLfvqEs4GW+ExB91tQ3Ig9noDIZ+A==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/static-extend/node_modules/is-accessor-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/static-extend/node_modules/is-data-descriptor": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", - "integrity": "sha512-+w9D5ulSoBNlmw9OHn3U2v51SyoCd0he+bB3xMl62oijhrspxowjU+AIcDY0N3iEJbUEkB15IlMASQsxYigvXg==", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/static-extend/node_modules/is-data-descriptor/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ==", + "integrity": "sha512-9DWBgrgYZzNghseho0JOuh+5fg9u6QWhAWa51QC7+U5rCheZ/j1DrEZnyE0RBBRqZ9uEXGPgSSM0nky6burpVw==", "dev": true, + "hasInstallScript": true, "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" + "concat-stream": "^1.4.7", + "os-shim": "^0.1.2" } }, - "node_modules/static-extend/node_modules/is-descriptor": { - "version": "0.1.6", - "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", - "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "node_modules/sprintf-js": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", + "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "dev": true + }, + "node_modules/stack-utils": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, "dependencies": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" + "escape-string-regexp": "^2.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=10" } }, - "node_modules/static-extend/node_modules/kind-of": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", - "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "node_modules/stack-utils/node_modules/escape-string-regexp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", + "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/strict-event-emitter": { - "version": "0.2.8", - "resolved": "https://registry.npmjs.org/strict-event-emitter/-/strict-event-emitter-0.2.8.tgz", - "integrity": "sha512-KDf/ujU8Zud3YaLtMCcTI4xkZlZVIYxTLr+XIULexP+77EEVWixeXroLUXQXiVtH4XH2W7jr/3PT1v3zBuvc3A==", - "dev": true, - "dependencies": { - "events": "^3.3.0" - } - }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dependencies": { - "safe-buffer": "~5.2.0" + "node": ">=8" } }, "node_modules/string-argv": { @@ -13382,15 +9055,6 @@ "node": ">=8" } }, - "node_modules/strip-eof": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/strip-eof/-/strip-eof-1.0.0.tgz", - "integrity": "sha1-u0P/VZim6wXYm1n80SnJgzE2Br8=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/strip-final-newline": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", @@ -13412,54 +9076,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/superagent": { - "version": "7.1.5", - "resolved": "https://registry.npmjs.org/superagent/-/superagent-7.1.5.tgz", - "integrity": "sha512-HQYyGuDRFGmZ6GNC4hq2f37KnsY9Lr0/R1marNZTgMweVDQLTLJJ6DGQ9Tj/xVVs5HEnop9EMmTbywb5P30aqw==", - "dependencies": { - "component-emitter": "^1.3.0", - "cookiejar": "^2.1.3", - "debug": "^4.3.4", - "fast-safe-stringify": "^2.1.1", - "form-data": "^4.0.0", - "formidable": "^2.0.1", - "methods": "^1.1.2", - "mime": "^2.5.0", - "qs": "^6.10.3", - "readable-stream": "^3.6.0", - "semver": "^7.3.7" - }, - "engines": { - "node": ">=6.4.0 <13 || >=14" - } - }, - "node_modules/superagent/node_modules/form-data": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", - "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/superagent/node_modules/semver": { - "version": "7.5.2", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz", - "integrity": "sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ==", - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/supports-color": { "version": "5.5.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", @@ -13472,40 +9088,6 @@ "node": ">=4" } }, - "node_modules/supports-hyperlinks": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz", - "integrity": "sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-hyperlinks/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/supports-hyperlinks/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", @@ -13518,28 +9100,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "node_modules/terminal-link": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", - "dev": true, - "dependencies": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -13560,84 +9120,18 @@ "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==", "dev": true }, - "node_modules/throat": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/throat/-/throat-5.0.0.tgz", - "integrity": "sha512-fcwX4mndzpLQKBS1DVYhGAcYaYt7vsHNIvQV+WXMvnow5cgjPphq5CaayLaGsjRdSCKZFNGt7/GYAuXaNOiYCA==", - "dev": true - }, "node_modules/through": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", "dev": true }, - "node_modules/tmp": { - "version": "0.0.33", - "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz", - "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", - "dev": true, - "dependencies": { - "os-tmpdir": "~1.0.2" - }, - "engines": { - "node": ">=0.6.0" - } - }, "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/to-object-path": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", - "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", - "dev": true, - "dependencies": { - "kind-of": "^3.0.2" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-object-path/node_modules/kind-of": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", - "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", - "dev": true, - "dependencies": { - "is-buffer": "^1.1.5" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/to-regex": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", - "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", - "dev": true, - "dependencies": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -13650,31 +9144,76 @@ "node": ">=8.0" } }, - "node_modules/tough-cookie": { - "version": "4.1.3", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz", - "integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==", + "node_modules/ts-api-utils": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.0.0.tgz", + "integrity": "sha512-xCt/TOAc+EOHS1XPnijD3/yzpH6qg2xppZO1YDqGoVsNXfQfzHpOdNuXwrwOU8u4ITXJyDCTyt8w5g1sZv9ynQ==", + "dev": true, + "engines": { + "node": ">=18.12" + }, + "peerDependencies": { + "typescript": ">=4.8.4" + } + }, + "node_modules/ts-jest": { + "version": "29.2.5", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.2.5.tgz", + "integrity": "sha512-KD8zB2aAZrcKIdGk4OwpJggeLcH1FgrICqDSROWqlnJXGCXK4Mn6FcdK2B6670Xr73lHMG1kHw8R87A0ecZ+vA==", "dev": true, "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.2.0", - "url-parse": "^1.5.3" + "bs-logger": "^0.2.6", + "ejs": "^3.1.10", + "fast-json-stable-stringify": "^2.1.0", + "jest-util": "^29.0.0", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.6.3", + "yargs-parser": "^21.1.1" + }, + "bin": { + "ts-jest": "cli.js" }, "engines": { - "node": ">=6" + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" + }, + "peerDependencies": { + "@babel/core": ">=7.0.0-beta.0 <8", + "@jest/transform": "^29.0.0", + "@jest/types": "^29.0.0", + "babel-jest": "^29.0.0", + "jest": "^29.0.0", + "typescript": ">=4.3 <6" + }, + "peerDependenciesMeta": { + "@babel/core": { + "optional": true + }, + "@jest/transform": { + "optional": true + }, + "@jest/types": { + "optional": true + }, + "babel-jest": { + "optional": true + }, + "esbuild": { + "optional": true + } } }, - "node_modules/tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", + "node_modules/ts-jest/node_modules/semver": { + "version": "7.6.3", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.3.tgz", + "integrity": "sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A==", "dev": true, - "dependencies": { - "punycode": "^2.1.1" + "bin": { + "semver": "bin/semver.js" }, "engines": { - "node": ">=8" + "node": ">=10" } }, "node_modules/tsconfig-paths": { @@ -13716,27 +9255,6 @@ "integrity": "sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==", "dev": true }, - "node_modules/tsutils": { - "version": "3.21.0", - "resolved": "https://registry.npmjs.org/tsutils/-/tsutils-3.21.0.tgz", - "integrity": "sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==", - "dev": true, - "dependencies": { - "tslib": "^1.8.1" - }, - "engines": { - "node": ">= 6" - }, - "peerDependencies": { - "typescript": ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" - } - }, - "node_modules/tsutils/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==", - "dev": true - }, "node_modules/type-check": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz", @@ -13790,21 +9308,11 @@ "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", "dev": true }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, "node_modules/typescript": { - "version": "4.8.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", - "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, - "peer": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -13813,6 +9321,28 @@ "node": ">=4.2.0" } }, + "node_modules/typescript-eslint": { + "version": "8.22.0", + "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.22.0.tgz", + "integrity": "sha512-Y2rj210FW1Wb6TWXzQc5+P+EWI9/zdS57hLEc0gnyuvdzWo8+Y8brKlbj0muejonhMI/xAZCnZZwjbIfv1CkOw==", + "dev": true, + "dependencies": { + "@typescript-eslint/eslint-plugin": "8.22.0", + "@typescript-eslint/parser": "8.22.0", + "@typescript-eslint/utils": "8.22.0" + }, + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/typescript-eslint" + }, + "peerDependencies": { + "eslint": "^8.57.0 || ^9.0.0", + "typescript": ">=4.8.4 <5.8.0" + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -13825,134 +9355,59 @@ "which-boxed-primitive": "^1.0.2" }, "funding": { - "url": "https://github.com/sponsors/ljharb" - } - }, - "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dev": true, - "dependencies": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz", - "integrity": "sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/union-value": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.1.tgz", - "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", - "dev": true, - "dependencies": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^2.0.1" - }, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/union-value/node_modules/is-extendable": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", - "integrity": "sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw==", - "dev": true, - "engines": { - "node": ">=0.10.0" + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/universalify": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz", - "integrity": "sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" - } + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==", + "dev": true }, - "node_modules/unset-value": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", - "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "node_modules/unicode-canonical-property-names-ecmascript": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", + "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", "dev": true, - "dependencies": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" - }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/unset-value/node_modules/has-value": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", - "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "node_modules/unicode-match-property-ecmascript": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", + "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", "dev": true, "dependencies": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" + "unicode-canonical-property-names-ecmascript": "^2.0.0", + "unicode-property-aliases-ecmascript": "^2.0.0" }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/unset-value/node_modules/has-value/node_modules/isobject": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", - "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "node_modules/unicode-match-property-value-ecmascript": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz", + "integrity": "sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg==", "dev": true, - "dependencies": { - "isarray": "1.0.0" - }, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, - "node_modules/unset-value/node_modules/has-values": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", - "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "node_modules/unicode-property-aliases-ecmascript": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", + "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", "dev": true, "engines": { - "node": ">=0.10.0" + "node": ">=4" } }, "node_modules/update-browserslist-db": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", - "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.2.tgz", + "integrity": "sha512-PPypAm5qvlD7XMZC3BujecnaOxwhrtoFR+Dqkk5Aa/6DssiH0ibKoketaj9w8LP7Bont1rYeoV5plxD7RTEPRg==", "dev": true, "funding": [ { @@ -13962,14 +9417,18 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" + "escalade": "^3.2.0", + "picocolors": "^1.1.1" }, "bin": { - "browserslist-lint": "cli.js" + "update-browserslist-db": "cli.js" }, "peerDependencies": { "browserslist": ">= 4.21.0" @@ -13984,114 +9443,31 @@ "punycode": "^2.1.0" } }, - "node_modules/urix": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", - "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", - "deprecated": "Please see https://github.com/lydell/urix#deprecated", - "dev": true - }, - "node_modules/url-parse": { - "version": "1.5.10", - "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz", - "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==", - "dev": true, - "dependencies": { - "querystringify": "^2.1.1", - "requires-port": "^1.0.0" - } - }, - "node_modules/use": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", - "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, - "node_modules/util": { - "version": "0.12.5", - "resolved": "https://registry.npmjs.org/util/-/util-0.12.5.tgz", - "integrity": "sha512-kZf/K6hEIrWHI6XqOFUiiMa+79wE/D8Q+NCNAWclkyg3b4d2k7s0QGepNjiABc+aR3N1PAyHL7p6UcLY6LmrnA==", - "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "is-arguments": "^1.0.4", - "is-generator-function": "^1.0.7", - "is-typed-array": "^1.1.3", - "which-typed-array": "^1.1.2" - } - }, "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" - }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true, - "optional": true, - "bin": { - "uuid": "dist/bin/uuid" - } + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true }, "node_modules/v8-to-istanbul": { - "version": "7.1.2", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-7.1.2.tgz", - "integrity": "sha512-TxNb7YEUwkLXCQYeudi6lgQ/SZrzNO4kMdlqVxaZPUIUjCv6iSSypUQX70kNBSERpQ8fk48+d61FXk+tgqcWow==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", "dev": true, "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" + "convert-source-map": "^2.0.0" }, "engines": { - "node": ">=10.10.0" - } - }, - "node_modules/v8-to-istanbul/node_modules/source-map": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.4.tgz", - "integrity": "sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "dependencies": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "node_modules/w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "deprecated": "Use your platform's native performance.now() and performance.timeOrigin.", - "dev": true, - "dependencies": { - "browser-process-hrtime": "^1.0.0" + "node": ">=10.12.0" } }, - "node_modules/w3c-xmlserializer": { + "node_modules/v8-to-istanbul/node_modules/convert-source-map": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "dev": true, - "dependencies": { - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - } + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "dev": true }, "node_modules/walker": { "version": "1.0.8", @@ -14102,65 +9478,6 @@ "makeerror": "1.0.12" } }, - "node_modules/wcwidth": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", - "integrity": "sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg==", - "dev": true, - "dependencies": { - "defaults": "^1.0.3" - } - }, - "node_modules/web-encoding": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/web-encoding/-/web-encoding-1.1.5.tgz", - "integrity": "sha512-HYLeVCdJ0+lBYV2FvNZmv3HJ2Nt0QYXqZojk3d9FJOLkwnuhzM9tmamh8d7HPM8QqjKH8DeHkFTx+CFlWpZZDA==", - "dev": true, - "dependencies": { - "util": "^0.12.3" - }, - "optionalDependencies": { - "@zxing/text-encoding": "0.9.0" - } - }, - "node_modules/webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "dev": true, - "engines": { - "node": ">=10.4" - } - }, - "node_modules/whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dev": true, - "dependencies": { - "iconv-lite": "0.4.24" - } - }, - "node_modules/whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true - }, - "node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dev": true, - "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -14192,12 +9509,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, "node_modules/which-typed-array": { "version": "1.1.9", "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.9.tgz", @@ -14228,9 +9539,9 @@ } }, "node_modules/workerpool": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.2.1.tgz", - "integrity": "sha512-ILEIE97kDZvF9Wb9f6h5aXK4swSlKGUcOEGiIYb2OOu/IrDU9iwj0fD//SsA6E5ibwJxpEvhullJY4Sl4GcpAw==", + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.5.1.tgz", + "integrity": "sha512-Fs4dNYcsdpYSAfVxhnl1L5zTksjvOJxtC5hzMNl+1t9B8hTJTdKDyZ5ju7ztgPy+ft9tBFXoOlDNiOT9WUXZlA==", "dev": true }, "node_modules/wrap-ansi": { @@ -14250,39 +9561,6 @@ "url": "https://github.com/chalk/wrap-ansi?sponsor=1" } }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, "node_modules/wrap-ansi/node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", @@ -14315,64 +9593,31 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=" + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true }, "node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "dependencies": { "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" + "signal-exit": "^3.0.7" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } + "node": ">=10" } }, - "node_modules/xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, - "node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, "node_modules/yaml": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.3.2.tgz", @@ -14383,34 +9628,30 @@ } }, "node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "dev": true, "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" }, "engines": { - "node": ">=8" + "node": ">=12" } }, "node_modules/yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", "dev": true, "engines": { - "node": ">=10" + "node": ">=12" } }, "node_modules/yargs-unparser": { @@ -14458,19 +9699,6 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", "dev": true }, - "node_modules/yargs/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/yargs/node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", @@ -14480,45 +9708,6 @@ "node": ">=8" } }, - "node_modules/yargs/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/yargs/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/yargs/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/yargs/node_modules/string-width": { "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", @@ -14533,19 +9722,6 @@ "node": ">=8" } }, - "node_modules/yargs/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/yocto-queue": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", diff --git a/package.json b/package.json index 8cedcf1f..c5a240a1 100644 --- a/package.json +++ b/package.json @@ -3,19 +3,29 @@ "version": "23.4.3", "description": "Pipedrive REST client for NodeJS", "license": "MIT", - "main": "dist/index.js", "homepage": "https://developers.pipedrive.com", "repository": { "type": "git", "url": "git+https://github.com/pipedrive/client-nodejs" }, + "main": "./dist/index.js", + "exports": { + ".": "./dist/index.js", + "./v1": "./dist/versions/v1/index.js", + "./v2": "./dist/versions/v2/index.js" + }, + "files": [ + "dist" + ], + "types": "./dist/index.d.ts", + "sideEffects": false, "scripts": { - "build": "babel src -d dist", - "prepack": "npm run build", + "build": "tsc && tsc -p tsconfig.esm.json", + "prepare": "npm run build", "test": "npm run test:functional", "test:functional:start": "npm run test:functional -- --start-environment", "test:functional:stop": "npm run test:functional -- --stop-environment", - "test:functional": "node ./test/functional/environment.js", + "test:functional": "node ./test/config/environment.js", "test:coverage": "npm run test:functional -- --collectCoverage", "sonar": "pipedrive-sonar-scanner", "lint-staged": "lint-staged", @@ -25,9 +35,8 @@ "fs": false }, "dependencies": { - "lodash": "^4.17.21", - "superagent": "^7.1.3", - "@babel/runtime": "^7.20.1" + "axios": "^1.3.3", + "qs": "^6.11.0" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -50,39 +59,43 @@ "@babel/plugin-syntax-dynamic-import": "^7.0.0", "@babel/plugin-syntax-import-meta": "^7.0.0", "@babel/plugin-transform-runtime": "^7.12.1", - "@babel/preset-env": "^7.0.0", + "@babel/preset-env": "^7.23.5", "@babel/register": "^7.0.0", + "@types/jest": "^29.5.14", + "@types/node": "^18.13.0", + "@types/qs": "^6.9.7", "babel-eslint": "^10.1.0", + "babel-jest": "^29.7.0", "changelog-updater": "^2.0.3", "eslint": "^8.27.0", "eslint-config-pipedrive": "^13.0.0", "eslint-plugin-import": "^2.27.5", - "eslint-plugin-jest": "^27.1.5", + "eslint-plugin-jest": "^28.11.0", "expect.js": "^0.3.1", "get-port": "^5.1.1", - "jest": "^26.6.3", + "jest": "^29.7.0", "jest-environment-node": "^27.4.4", "lint-staged": "^13.0.3", "minimist": "^1.2.5", "mocha": "^10.2.0", - "msw": "^0.48.2", + "nock": "^13.5.6", "pre-commit": "^1.2.2", "regenerator-runtime": "^0.13.7", "shelljs": "^0.8.4", - "sinon": "^7.2.0" + "sinon": "^7.2.0", + "ts-jest": "^29.2.5", + "typescript": "^4.9.5", + "typescript-eslint": "^8.22.0" }, - "files": [ - "dist" - ], "lint-staged": { "*.{ts,js}": [ "eslint --fix" ] }, "pre-commit": [ + "build", "lint-staged", - "test", - "build" + "test" ], "publishConfig": { "access": "public" diff --git a/src/ApiClient.js b/src/ApiClient.js deleted file mode 100644 index b3e625a4..00000000 --- a/src/ApiClient.js +++ /dev/null @@ -1,1012 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import superagent from "superagent"; -import querystring from "querystring"; -import { snakeCase } from "lodash"; -import UnauthorizedException from "./exceptions/UnauthorizedException"; -import OAuthProviderException from "./exceptions/OAuthProviderException"; -import NotFoundException from "./exceptions/NotFoundException"; -import FailResponseException from "./exceptions/FailResponseException"; - -/** -* @module ApiClient -* @version 1.0.0 -*/ - -/** -* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an -* application to use this class directly - the *Api and model classes provide the public API for the service. The -* contents of this file should be regarded as internal but are documented for completeness. -* @alias module:ApiClient -* @class -*/ -class ApiClient { - constructor() { - /** - * The base URL against which to resolve every API call's (relative) path. - * @type {String} - * @default https://api.pipedrive.com/v1 - */ - this.basePath = 'https://api.pipedrive.com/v1'.replace(/\/+$/, ''); - - /** - * The authentication methods to be included for all API calls. - * @type {Object} - */ - this.authentications = { - 'api_key': { - type: 'apiKey', - in: 'query', - name: 'api_token', - apiKey: '' - }, - 'basic_authentication': {type: 'basic'}, - 'oauth2': { - type: 'oauth2', - host: 'https://oauth.pipedrive.com', - accessToken: '', - refreshToken: '', - // The access token expiration value in seconds sent by the oauth server. - expiresIn: 0, - // The access token expiration time as number of milliseconds elapsed since January 1, 1970 00:00:00 UTC. - expiresAt: 0, - scope: '', - clientId: '', - clientSecret: '', - redirectUri: '', - tokenUpdateCallback: null - } - } - - /** - * The default HTTP headers to be included for all API calls. - * @type {Object} - * @default {} - */ - this.defaultHeaders = { - 'User-Agent': this.getUserAgent() - }; - - /** - * The default HTTP timeout for all API calls. - * @type {Number} - * @default 60000 - */ - this.timeout = 60000; - - /** - * If set to false an additional timestamp parameter is added to all API GET calls to - * prevent browser caching - * @type {Boolean} - * @default true - */ - this.cache = true; - - /** - * If set to true, the client will save the cookies from each server - * response, and return them in the next request. - * @default false - */ - this.enableCookies = false; - - /* - * Used to save and return cookies in a node.js (non-browser) setting, - * if this.enableCookies is set to true. - */ - if (typeof window === 'undefined') { - this.agent = new superagent.agent(); - } - - /* - * Allow user to override superagent agent - */ - this.requestAgent = null; - - /* - * Allow user to add superagent plugins - */ - this.plugins = null; - - } - - /** - * Returns a string representation for an actual parameter. - * @param param The actual parameter. - * @returns {String} The string representation of param. - */ - paramToString(param) { - if (param == undefined || param == null) { - return ''; - } - if (param instanceof Date) { - return param.toJSON(); - } - if (ApiClient.canBeJsonified(param)) { - return JSON.stringify(param); - } - - return param.toString(); - } - - /** - * Returns a boolean indicating if the parameter could be JSON.stringified - * @param param The actual parameter - * @returns {Boolean} Flag indicating if param can be JSON.stringified - */ - static canBeJsonified(str) { - if (typeof str !== 'string' && typeof str !== 'object') return false; - try { - const type = str.toString(); - return type === '[object Object]' - || type === '[object Array]'; - } catch (err) { - return false; - } - }; - - /** - * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. - * NOTE: query parameters are not handled here. - * @param {String} path The path to append to the base URL. - * @param {Object} pathParams The parameter values to append. - * @param {String} apiBasePath Base path defined in the path, operation level to override the default one - * @returns {String} The encoded path with parameter values substituted. - */ - buildUrl(path, pathParams, apiBasePath) { - if (!path.match(/^\//)) { - path = '/' + path; - } - - var url = this.basePath + path; - - // use API (operation, path) base path if defined - if (apiBasePath !== null && apiBasePath !== undefined) { - url = apiBasePath + path; - } - - url = url.replace(/\{([\w-]+)\}/g, (fullMatch, key) => { - var value; - if (pathParams.hasOwnProperty(key)) { - value = this.paramToString(pathParams[key]); - } else { - value = fullMatch; - } - - return encodeURIComponent(value); - }); - - return url; - } - - /** - * Checks whether the given content type represents JSON.
- * JSON content type examples:
- * - * @param {String} contentType The MIME content type to check. - * @returns {Boolean} true if contentType represents JSON, otherwise false. - */ - isJsonMime(contentType) { - return Boolean(contentType != null && contentType.match(/^application\/json(;.*)?$/i)); - } - - /** - * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. - * @param {Array.} contentTypes - * @returns {String} The chosen content type, preferring JSON. - */ - jsonPreferredMime(contentTypes) { - for (var i = 0; i < contentTypes.length; i++) { - if (this.isJsonMime(contentTypes[i])) { - return contentTypes[i]; - } - } - - return contentTypes[0]; - } - - /** - * Checks whether the given parameter value represents file-like content. - * @param param The parameter to check. - * @returns {Boolean} true if param represents a file. - */ - isFileParam(param) { - // fs.ReadStream in Node.js and Electron (but not in runtime like browserify) - if (typeof require === 'function') { - let fs; - try { - fs = require('fs'); - } catch (err) {} - if (fs && fs.ReadStream && param instanceof fs.ReadStream) { - return true; - } - } - - // Buffer in Node.js - if (typeof Buffer === 'function' && param instanceof Buffer) { - return true; - } - - // Blob in browser - if (typeof Blob === 'function' && param instanceof Blob) { - return true; - } - - // File in browser (it seems File object is also instance of Blob, but keep this for safe) - if (typeof File === 'function' && param instanceof File) { - return true; - } - - return false; - } - - /** - * Normalizes parameter values: - * - * @param {Object.} params The parameters as object properties. - * @returns {Object.} normalized parameters. - */ - normalizeParams(params) { - var newParams = {}; - for (var key in params) { - if (params.hasOwnProperty(key) && params[key] != undefined && params[key] != null) { - var value = params[key]; - if (this.isFileParam(value) || Array.isArray(value)) { - newParams[key] = value; - } else { - newParams[key] = this.paramToString(value); - } - } - } - - return newParams; - } - - /** - * Builds a string representation of an array-type actual parameter, according to the given collection format. - * @param {Array} param An array parameter. - * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. - * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns - * param as is if collectionFormat is multi. - */ - buildCollectionParam(param, collectionFormat) { - if (param == null) { - return null; - } - switch (collectionFormat) { - case 'csv': - return param.map(this.paramToString).join(','); - case 'ssv': - return param.map(this.paramToString).join(' '); - case 'tsv': - return param.map(this.paramToString).join('\t'); - case 'pipes': - return param.map(this.paramToString).join('|'); - case 'multi': - //return the array directly as SuperAgent will handle it as expected - return param.map(this.paramToString); - default: - throw new Error('Unknown collection format: ' + collectionFormat); - } - } - - /** - * Applies authentication headers to the request. - * @param {Object} request The request object created by a superagent() call. - * @param {Array.} authNames An array of authentication method names. - */ - applyAuthToRequest(request, authNames) { - authNames.forEach((authName) => { - var auth = this.authentications[authName]; - switch (auth.type) { - case 'basic': - if (auth.username || auth.password) { - request.auth(auth.username || '', auth.password || ''); - } - - break; - case 'bearer': - if (auth.accessToken) { - request.set({'Authorization': 'Bearer ' + auth.accessToken}); - } - - break; - case 'apiKey': - if (auth.apiKey) { - var data = {}; - if (auth.apiKeyPrefix) { - data[auth.name] = auth.apiKeyPrefix + ' ' + auth.apiKey; - } else { - data[auth.name] = auth.apiKey; - } - - if (auth['in'] === 'header') { - request.set(data); - } else { - request.query(data); - } - } - - break; - case 'oauth2': - if (auth.accessToken) { - request.set({'Authorization': 'Bearer ' + auth.accessToken}); - } - - break; - default: - throw new Error('Unknown authentication type: ' + auth.type); - } - }); - } - - /** - * Deserializes an HTTP response body into a value of the specified type. - * @param {Object} response A SuperAgent response object. - * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns A value of the specified type. - */ - deserialize(response, returnType) { - if (response == null || returnType == null || response.status == 204) { - return null; - } - - // Rely on SuperAgent for parsing response body. - // See http://visionmedia.github.io/superagent/#parsing-response-bodies - var data = response.body; - if (data == null || (typeof data === 'object' && typeof data.length === 'undefined' && !Object.keys(data).length)) { - // SuperAgent does not always produce a body; use the unparsed response as a fallback - data = response.text; - } - - return ApiClient.convertToType(data, returnType); - } - - /** - * Invokes the REST service using the supplied settings and parameters. - * @param {String} path The base URL to invoke. - * @param {String} httpMethod The HTTP method to use. - * @param {Object.} pathParams A map of path parameters and their values. - * @param {Object.} queryParams A map of query parameters and their values. - * @param {Object.} headerParams A map of header parameters and their values. - * @param {Object.} formParams A map of form parameters and their values. - * @param {Object} bodyParam The value to pass as the request body. - * @param {Array.} authNames An array of authentication type names. - * @param {Array.} contentTypes An array of request MIME types. - * @param {Array.} accepts An array of acceptable response MIME types. - * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the - * constructor for a complex type. - * @param {String} apiBasePath base path defined in the operation/path level to override the default one - * @param {Boolean} secondRequest Indicates whether this api call is done for the first or second time (this can happen after automatic access token refresh). - * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. - */ - async callApi(path, httpMethod, pathParams, - queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, - returnType, apiBasePath, secondRequest = false) { - - var url = this.buildUrl(path, pathParams, apiBasePath); - var request = superagent(httpMethod, url); - - if (this.plugins !== null) { - for (var index in this.plugins) { - if (this.plugins.hasOwnProperty(index)) { - request.use(this.plugins[index]) - } - } - } - - // apply authentications - this.applyAuthToRequest(request, authNames); - - // set query parameters - if (httpMethod.toUpperCase() === 'GET' && this.cache === false) { - queryParams['_'] = new Date().getTime(); - } - - request.query(this.normalizeParams(queryParams)); - - // set header parameters - request.set(this.defaultHeaders).set(this.normalizeParams(headerParams)); - - // set requestAgent if it is set by user - if (this.requestAgent) { - request.agent(this.requestAgent); - } - - // set request timeout - request.timeout(this.timeout); - - var contentType = this.jsonPreferredMime(contentTypes); - if (contentType) { - // Issue with superagent and multipart/form-data (https://github.com/visionmedia/superagent/issues/746) - if (contentType !== 'multipart/form-data') { - request.type(contentType); - } - } - - if (contentType === 'application/x-www-form-urlencoded') { - request.send(querystring.stringify(this.normalizeParams(formParams))); - } else if (contentType === 'multipart/form-data') { - var _formParams = this.normalizeParams(formParams); - for (var key in _formParams) { - if (_formParams.hasOwnProperty(key)) { - if (key === 'file' || this.isFileParam(_formParams[key])) { - // file field - request.attach(key, _formParams[key]); - } else { - request.field(key, _formParams[key]); - } - } - } - } else if (bodyParam !== null && bodyParam !== undefined) { - if (!request.header['Content-Type']) { - request.type('application/json'); - } - - const normalizeBodyParams = this.replaceCamelCaseObj(bodyParam) - - request.send(normalizeBodyParams); - } - - var accept = this.jsonPreferredMime(accepts); - if (accept) { - request.accept(accept); - } - - if (returnType === 'Blob') { - request.responseType('blob'); - } else if (returnType === 'String') { - request.responseType('string'); - } - - // Attach previously saved cookies, if enabled - if (this.enableCookies){ - if (typeof window === 'undefined') { - this.agent._attachCookies(request); - } else { - request.withCredentials(); - } - } - - if (this.shouldRefreshToken()) { - await this.refreshToken(); - } - - let response; - - try { - response = await request; - } catch (error) { - const shouldRefreshTokenAndRetry = !!( - !this.isApiTokenSet() && - !secondRequest && - error.status === 401 && - this.isOauth2Supported() - ); - - if (shouldRefreshTokenAndRetry) { - await this.refreshToken(); - - return await this.callApi(path, httpMethod, pathParams, - queryParams, headerParams, formParams, bodyParam, authNames, contentTypes, accepts, - returnType, apiBasePath, true); - } - - if (error.status === 401) { - let exception = new UnauthorizedException(); - - if (error.response.body.error_info) { - exception.errorInfo = error.response.body.error_info; - } - - exception.context = error.response; - - throw exception; - } - - if (error.status === 404) { - let exception = new NotFoundException(); - - if (error.response.body.error_info) { - exception.errorInfo = error.response.body.error_info; - } - - exception.context = error.response; - - throw exception; - } - - let exception = new FailResponseException(); - let exceptionMessage = (error.response && error.response.res.statusMessage) || error.message; - - exception.message = exceptionMessage; - exception.errorCode = error.status; - - if (error.response && error.response.body.error_info) { - exception.errorInfo = error.response.body.error_info; - } - - exception.context = error.response; - - throw exception; - } - - const data = this.deserialize(response, returnType); - if (this.enableCookies && typeof window === 'undefined'){ - this.agent._saveCookies(response); - } - - return data; - } - /** - * Converts CamelCase attributes of an object to snake_case and returns it - */ - replaceCamelCaseObj(obj) { - const snakeCased = {}; - - for (const key in obj) { - let keyValue = obj[key]; - const isArray = Array.isArray(keyValue); - const isNull = keyValue === null; - const isObject = typeof keyValue === 'object' && !isArray && !isNull; - const isHash = /^[a-f0-9]{40}$|^[a-f0-9]{40}_[a-z0-9]+$/i.test(key); - - if (isArray) keyValue = keyValue.map(kv => typeof kv === 'object' ? this.replaceCamelCaseObj(kv) : kv); - - if (isHash) { - snakeCased[key] = isObject ? key : keyValue; - } else { - snakeCased[snakeCase(key)] = isObject ? this.replaceCamelCaseObj(keyValue) : keyValue; - } - } - - return snakeCased - } - - /** - * Checks whether the API supports oauth2 type authorization. - * @returns {Boolean} Whether oauth2 type authorization is supported by the API. - */ - isOauth2Supported() { - return !!(this.authentications && this.authentications.oauth2); - } - - /** - * Checks whether the API token is set for the API calls. - * @returns {Boolean} Whether API token is set for authorization. - */ - isApiTokenSet() { - return !!( - this.authentications && - this.authentications.api_key && - this.authentications.api_key.apiKey - ); - } - - /** - * Checks whether the oauth2 type authorizations is set for the API calls and if the access token is expired. - * @returns {Boolean} Whether the OAuth access token is expired. - */ - shouldRefreshToken() { - return ( - !this.isApiTokenSet() && - this.isOauth2Supported() && - !!this.authentications.oauth2.expiresAt && - Date.now() > this.authentications.oauth2.expiresAt - ); - } - - /** - * Checks if the given property is set in the this.authentications.oauth2 object. - * Error is thrown if the property is not set. - * @param {String} property The OAuth 2 property to receive. - * @returns The value of the given property. - */ - getOAuth2Property(property) { - const value = this.authentications.oauth2[property]; - - if (!value) { - throw new Error(`OAuth 2 property ${property} is not set.`); - } - - return value; - } - - /** - * Creates the url for authorizing the client. - * @returns {String} The authorization url. - */ - buildAuthorizationUrl() { - if (!this.isOauth2Supported()) { - throw new Error('Could not create authorization url. OAuth 2 is not supported.'); - } - - const host = this.getOAuth2Property('host'); - const clientId = this.getOAuth2Property('clientId'); - const redirectUri = this.getOAuth2Property('redirectUri'); - - return `${host}/oauth/authorize?client_id=${clientId}&redirect_uri=${encodeURIComponent(redirectUri)}`; - } - - /** - * Authorizes the authorization code sent by the server and returns OAuth 2 token. - * @param {String} code The authorization code sent by the oauth server. - * @returns {Object} The OAuth 2 token. - */ - async authorize(code) { - if (!this.isOauth2Supported()) { - throw new Error('Could not authorize the client. OAuth 2 is not supported.'); - } - - if (!code) { - throw new Error('Authorization failed. Authorization code is not set.'); - } - - const clientId = this.getOAuth2Property('clientId'); - const clientSecret = this.getOAuth2Property('clientSecret'); - const redirectUri = this.getOAuth2Property('redirectUri'); - const host = this.getOAuth2Property('host'); - const authorizationUrl = `${host}/oauth/token`; - const clientIdAndSecretInBase64 = Buffer.from(`${clientId}:${clientSecret}`).toString('base64'); - - try { - const response = await superagent - .post(authorizationUrl) - .set('User-Agent', this.getUserAgent()) - .set('Authorization', `Basic ${clientIdAndSecretInBase64}`) - .send(`code=${code}`) - .send(`redirect_uri=${redirectUri}`) - .send('grant_type=authorization_code') - - this.updateToken(response.body); - - return response.body; - } catch (error) { - let exception = new OAuthProviderException(); - - exception.message = error.response.res.statusMessage; - exception.errorCode = error.status; - exception.context = error.response; - - throw exception; - } - } - - /** - * Refreshes the OAuth 2 access token. - * @returns {Object} The OAuth 2 token. - */ - async refreshToken() { - if (!this.isOauth2Supported()) { - throw new Error('Could not refresh the token. OAuth 2 is not supported.'); - } - - const refreshToken = this.getOAuth2Property('refreshToken'); - const clientId = this.getOAuth2Property('clientId'); - const clientSecret = this.getOAuth2Property('clientSecret'); - const host = this.getOAuth2Property('host'); - const refreshUrl = `${host}/oauth/token`; - const clientIdAndSecretInBase64 = Buffer.from(`${clientId}:${clientSecret}`).toString('base64'); - - try { - const response = await superagent - .post(refreshUrl) - .set('User-Agent', this.getUserAgent()) - .set('Authorization', `Basic ${clientIdAndSecretInBase64}`) - .send(`refresh_token=${refreshToken}`) - .send('grant_type=refresh_token'); - - this.updateToken(response.body); - - return response.body; - } catch (error) { - let exception = new OAuthProviderException(); - - exception.message = error.response.res.statusMessage; - exception.errorCode = error.status; - exception.context = error.response; - - throw exception; - } - } - - /** - * Updates the ApiClient oauth2 authentication properties and invokes the token update callback if it is set. - * Besides extracting all the values from the provided OAuth 2 token, - * the expiration time of access token is calculated and set as expiresAt property. - * @param {Object} token The OAuth 2 token got from the oauth server. - */ - updateToken(token) { - if (!this.isOauth2Supported()) { - throw new Error('Could not update the token. OAuth 2 is not supported.'); - } - - let oauth2 = this.authentications.oauth2; - - if (!!token.access_token) { - oauth2.accessToken = token.access_token; - } - - if (!!token.refresh_token) { - oauth2.refreshToken = token.refresh_token; - } - - if (!!token.expires_in) { - oauth2.expiresIn = token.expires_in; - oauth2.expiresAt = Date.now() + token.expires_in * 1000; - } - - if (!!token.scope) { - oauth2.scope = token.scope; - } - - if (!!token.api_domain) { - this.basePath = `${token.api_domain}/api/v1`; - } - - if (typeof (oauth2.tokenUpdateCallback) === 'function') { - oauth2.tokenUpdateCallback(token); - } - } - - /** - * Revoke Refresh Token aka marking an app uninstalled or revoke the Access Token. - * @param {Object} optional opts object with tokenTypeHint param, values can be: 'access_token' or 'refresh_token'. - */ - async revokeToken(opts = {}) { - const tokenTypeHint = opts.tokenTypeHint; - - if (!this.isOauth2Supported()) { - throw new Error('Could not revoke the token. OAuth 2 is not supported.'); - } - - const token = tokenTypeHint === 'refresh_token' - ? this.getOAuth2Property('refreshToken') : encodeURIComponent(this.getOAuth2Property('accessToken')); - - const clientId = this.getOAuth2Property('clientId'); - const clientSecret = this.getOAuth2Property('clientSecret'); - const host = this.getOAuth2Property('host'); - const revokeUrl = `${host}/oauth/revoke`; - const clientIdAndSecretInBase64 = Buffer.from(`${clientId}:${clientSecret}`).toString('base64'); - - try { - let request = superagent - .post(revokeUrl) - .set('User-Agent', this.getUserAgent()) - .set('Authorization', `Basic ${clientIdAndSecretInBase64}`) - .send(`token=${token}`); - - if (tokenTypeHint) { - request = request.send(`token_type_hint=${tokenTypeHint}`); - } - - const response = await request; - - return response.body; - } catch (error) { - let exception = new OAuthProviderException(); - - exception.message = error.response.res.statusMessage; - exception.errorCode = error.status; - exception.context = error.response; - - throw exception; - } - - } - - /** - * Parses an ISO-8601 string representation or epoch representation of a date value. - * @param {String} str The date value as a string. - * @returns {Date} The parsed date object. - */ - static parseDate(str) { - if (isNaN(str)) { - return new Date(str); - } - return new Date(+str); - } - - /** - * Converts a value to the specified type. - * @param {(String|Object)} data The data to convert, as a string or object. - * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types - * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To - * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: - * all properties on data will be converted to this type. - * @returns An instance of the specified type or null or undefined if data is null or undefined. - */ - static convertToType(data, type) { - if (data === null || data === undefined) - return data - - switch (type) { - case 'Boolean': - return Boolean(data); - case 'Integer': - return parseInt(data, 10); - case 'Number': - return parseFloat(data); - case 'String': - return String(data); - case 'Date': - if (typeof data === 'string') { - return String(data); - } else { - return ApiClient.parseDate(String(data)); - } - case 'Blob': - return data; - default: - if (type === Object) { - // generic object, return directly - return data; - } else if (typeof type.constructFromObject === 'function') { - // for model type like User and enum class - return type.constructFromObject(data); - } else if (Array.isArray(type)) { - // for array type like: ['String'] - var itemType = type[0]; - - return data.map((item) => { - return ApiClient.convertToType(item, itemType); - }); - } else if (typeof type === 'object') { - // for plain object type like: {'String': 'Integer'} - var keyType, valueType; - for (var k in type) { - if (type.hasOwnProperty(k)) { - keyType = k; - valueType = type[k]; - break; - } - } - - var result = {}; - for (var k in data) { - if (data.hasOwnProperty(k)) { - var key = ApiClient.convertToType(k, keyType); - var value = ApiClient.convertToType(data[k], valueType); - result[key] = value; - } - } - - return result; - } else { - // for unknown type, return the data directly - return data; - } - } - } - - /** - * Gets the string to be used for User-Agent request header - * @returns User-Agent request header value - */ - getUserAgent() { - const version = require('../package.json').version; - - return `Pipedrive-SDK-Javascript-${version}`; - } - - /** - * Gets an array of host settings - * @returns An array of host settings - */ - hostSettings() { - return [ - { - 'url': "https://api.pipedrive.com/v1", - 'description': "No description provided", - } - ]; - } - - getBasePathFromSettings(index, variables={}) { - var servers = this.hostSettings(); - - // check array index out of bound - if (index < 0 || index >= servers.length) { - throw new Error("Invalid index " + index + " when selecting the host settings. Must be less than " + servers.length); - } - - var server = servers[index]; - var url = server['url']; - - // go through variable and assign a value - for (var variable_name in server['variables']) { - if (variable_name in variables) { - let variable = server['variables'][variable_name]; - if ( !('enum_values' in variable) || variable['enum_values'].includes(variables[variable_name]) ) { - url = url.replace("{" + variable_name + "}", variables[variable_name]); - } else { - throw new Error("The variable `" + variable_name + "` in the host URL has invalid value " + variables[variable_name] + ". Must be " + server['variables'][variable_name]['enum_values'] + "."); - } - } else { - // use default value - url = url.replace("{" + variable_name + "}", server['variables'][variable_name]['default_value']) - } - } - return url; - } - - /** - * Constructs a new map or array model from REST data. - * @param data {Object|Array} The REST data. - * @param obj {Object|Array} The target object or array. - */ - static constructFromObject(data, obj, itemType) { - if (Array.isArray(data)) { - for (var i = 0; i < data.length; i++) { - if (data.hasOwnProperty(i)) - obj[i] = ApiClient.convertToType(data[i], itemType); - } - } else { - for (var k in data) { - if (data.hasOwnProperty(k)) - obj[k] = ApiClient.convertToType(data[k], itemType); - } - } - }; -} - -/** - * Enumeration of collection format separator strategies. - * @enum {String} - * @readonly - */ -ApiClient.CollectionFormatEnum = { - /** - * Comma-separated values. Value: csv - * @const - */ - CSV: ',', - - /** - * Space-separated values. Value: ssv - * @const - */ - SSV: ' ', - - /** - * Tab-separated values. Value: tsv - * @const - */ - TSV: '\t', - - /** - * Pipe(|)-separated values. Value: pipes - * @const - */ - PIPES: '|', - - /** - * Native array. Value: multi - * @const - */ - MULTI: 'multi' -}; - -export default ApiClient; diff --git a/src/api/ActivitiesApi.js b/src/api/ActivitiesApi.js deleted file mode 100644 index 64a1ab7b..00000000 --- a/src/api/ActivitiesApi.js +++ /dev/null @@ -1,560 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import ActivityPostObject from '../model/ActivityPostObject'; -import ActivityPutObject from '../model/ActivityPutObject'; -import AddActivityResponse from '../model/AddActivityResponse'; -import DeleteActivitiesResponse from '../model/DeleteActivitiesResponse'; -import DeleteActivityResponse from '../model/DeleteActivityResponse'; -import FailResponse from '../model/FailResponse'; -import GetActivitiesCollectionResponse from '../model/GetActivitiesCollectionResponse'; -import GetActivitiesResponse from '../model/GetActivitiesResponse'; -import GetActivityResponse from '../model/GetActivityResponse'; -import NumberBoolean from '../model/NumberBoolean'; -import UpdateActivityResponse from '../model/UpdateActivityResponse'; - -/** -* Activities service. -* @module api/ActivitiesApi -* @version 1.0.0 -*/ -export default class ActivitiesApi { - - /** - * Constructs a new ActivitiesApi. - * @alias module:api/ActivitiesApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add an activity - * Adds a new activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information, see the tutorial for adding an activity.

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @param {Object} opts Optional parameters - * @param {module:model/ActivityPostObject} opts.activityPostObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddActivityResponse} and HTTP response - */ - addActivityWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['activityPostObject']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = AddActivityResponse; - return this.apiClient.callApi( - '/activities', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add an activity - * Adds a new activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information, see the tutorial for adding an activity.

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @param {Object} opts Optional parameters - * @param {module:model/ActivityPostObject} opts.activityPostObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddActivityResponse} - */ - addActivity(opts) { - return this.addActivityWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete multiple activities in bulk - * Marks multiple activities as deleted. After 30 days, the activities will be permanently deleted. - * @param {String} ids The comma-separated IDs of activities that will be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteActivitiesResponse} and HTTP response - */ - deleteActivitiesWithHttpInfo(ids) { - const opts = {} - let postBody = null; - - // verify the required parameter 'ids' is set - if (ids === undefined || ids === null) { - throw new Error("Missing the required parameter 'ids' when calling deleteActivities"); - } - - let pathParams = { - }; - let queryParams = { - 'ids': ids, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteActivitiesResponse; - return this.apiClient.callApi( - '/activities', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete multiple activities in bulk - * Marks multiple activities as deleted. After 30 days, the activities will be permanently deleted. - * @param {String} ids The comma-separated IDs of activities that will be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteActivitiesResponse} - */ - deleteActivities(ids) { - return this.deleteActivitiesWithHttpInfo(ids) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete an activity - * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. - * @param {Number} id The ID of the activity - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteActivityResponse} and HTTP response - */ - deleteActivityWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteActivity"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteActivityResponse; - return this.apiClient.callApi( - '/activities/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete an activity - * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. - * @param {Number} id The ID of the activity - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteActivityResponse} - */ - deleteActivity(id) { - return this.deleteActivityWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all activities assigned to a particular user - * Returns all activities assigned to a particular user. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId The ID of the user whose activities will be fetched. If omitted, the user associated with the API token will be used. If 0, activities for all company users will be fetched based on the permission sets. - * @param {Number} opts.filterId The ID of the filter to use (will narrow down results if used together with `user_id` parameter) - * @param {String} opts.type The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - * @param {Number} opts.start For pagination, the position that represents the first result for the page - * @param {Date} opts.startDate Use the activity due date where you wish to begin fetching activities from. Insert due date in YYYY-MM-DD format. - * @param {Date} opts.endDate Use the activity due date where you wish to stop fetching activities from. Insert due date in YYYY-MM-DD format. - * @param {module:model/NumberBoolean} opts.done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both done and not done activities. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetActivitiesResponse} and HTTP response - */ - getActivitiesWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - - - let pathParams = { - }; - let queryParams = { - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], - 'type': opts['type'] === undefined ? opts['type'] : opts['type'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'start_date': opts['start_date'] === undefined ? opts['startDate'] : opts['start_date'], - 'end_date': opts['end_date'] === undefined ? opts['endDate'] : opts['end_date'], - 'done': opts['done'] === undefined ? opts['done'] : opts['done'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetActivitiesResponse; - return this.apiClient.callApi( - '/activities', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all activities assigned to a particular user - * Returns all activities assigned to a particular user. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId The ID of the user whose activities will be fetched. If omitted, the user associated with the API token will be used. If 0, activities for all company users will be fetched based on the permission sets. - * @param {Number} opts.filterId The ID of the filter to use (will narrow down results if used together with `user_id` parameter) - * @param {String} opts.type The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - * @param {Number} opts.start For pagination, the position that represents the first result for the page - * @param {Date} opts.startDate Use the activity due date where you wish to begin fetching activities from. Insert due date in YYYY-MM-DD format. - * @param {Date} opts.endDate Use the activity due date where you wish to stop fetching activities from. Insert due date in YYYY-MM-DD format. - * @param {module:model/NumberBoolean} opts.done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both done and not done activities. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetActivitiesResponse} - */ - getActivities(opts) { - return this.getActivitiesWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all activities (BETA) - * Returns all activities. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {String} opts.since The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {String} opts.until The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {Number} opts.userId The ID of the user whose activities will be fetched. If omitted, all activities are returned. - * @param {Boolean} opts.done Whether the activity is done or not. `false` = Not done, `true` = Done. If omitted, returns both done and not done activities. - * @param {String} opts.type The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetActivitiesCollectionResponse} and HTTP response - */ - getActivitiesCollectionWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - - let pathParams = { - }; - let queryParams = { - 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'since': opts['since'] === undefined ? opts['since'] : opts['since'], - 'until': opts['until'] === undefined ? opts['until'] : opts['until'], - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'done': opts['done'] === undefined ? opts['done'] : opts['done'], - 'type': opts['type'] === undefined ? opts['type'] : opts['type'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetActivitiesCollectionResponse; - return this.apiClient.callApi( - '/activities/collection', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all activities (BETA) - * Returns all activities. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {String} opts.since The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {String} opts.until The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {Number} opts.userId The ID of the user whose activities will be fetched. If omitted, all activities are returned. - * @param {Boolean} opts.done Whether the activity is done or not. `false` = Not done, `true` = Done. If omitted, returns both done and not done activities. - * @param {String} opts.type The type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the `key_string` parameter of ActivityTypes. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetActivitiesCollectionResponse} - */ - getActivitiesCollection(opts) { - return this.getActivitiesCollectionWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get details of an activity - * Returns the details of a specific activity. - * @param {Number} id The ID of the activity - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetActivityResponse} and HTTP response - */ - getActivityWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getActivity"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetActivityResponse; - return this.apiClient.callApi( - '/activities/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get details of an activity - * Returns the details of a specific activity. - * @param {Number} id The ID of the activity - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetActivityResponse} - */ - getActivity(id) { - return this.getActivityWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update an activity - * Updates an activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data).

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @param {Number} id The ID of the activity - * @param {Object} opts Optional parameters - * @param {module:model/ActivityPutObject} opts.activityPutObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateActivityResponse} and HTTP response - */ - updateActivityWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['activityPutObject']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateActivity"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpdateActivityResponse; - return this.apiClient.callApi( - '/activities/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update an activity - * Updates an activity. Includes `more_activities_scheduled_in_context` property in response's `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data).

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** - * @param {Number} id The ID of the activity - * @param {Object} opts Optional parameters - * @param {module:model/ActivityPutObject} opts.activityPutObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateActivityResponse} - */ - updateActivity(id, opts) { - return this.updateActivityWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/ActivityFieldsApi.js b/src/api/ActivityFieldsApi.js deleted file mode 100644 index 955f3a5c..00000000 --- a/src/api/ActivityFieldsApi.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import FieldsResponse from '../model/FieldsResponse'; - -/** -* ActivityFields service. -* @module api/ActivityFieldsApi -* @version 1.0.0 -*/ -export default class ActivityFieldsApi { - - /** - * Constructs a new ActivityFieldsApi. - * @alias module:api/ActivityFieldsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Get all activity fields - * Returns all activity fields. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldsResponse} and HTTP response - */ - getActivityFieldsWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldsResponse; - return this.apiClient.callApi( - '/activityFields', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all activity fields - * Returns all activity fields. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldsResponse} - */ - getActivityFields() { - return this.getActivityFieldsWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/ActivityTypesApi.js b/src/api/ActivityTypesApi.js deleted file mode 100644 index 839f13fa..00000000 --- a/src/api/ActivityTypesApi.js +++ /dev/null @@ -1,372 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import ActivityTypeBulkDeleteResponse from '../model/ActivityTypeBulkDeleteResponse'; -import ActivityTypeCreateRequest from '../model/ActivityTypeCreateRequest'; -import ActivityTypeCreateUpdateDeleteResponse from '../model/ActivityTypeCreateUpdateDeleteResponse'; -import ActivityTypeListResponse from '../model/ActivityTypeListResponse'; -import ActivityTypeUpdateRequest from '../model/ActivityTypeUpdateRequest'; - -/** -* ActivityTypes service. -* @module api/ActivityTypesApi -* @version 1.0.0 -*/ -export default class ActivityTypesApi { - - /** - * Constructs a new ActivityTypesApi. - * @alias module:api/ActivityTypesApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add new activity type - * Adds a new activity type. - * @param {Object} opts Optional parameters - * @param {module:model/ActivityTypeCreateRequest} opts.activityTypeCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ActivityTypeCreateUpdateDeleteResponse} and HTTP response - */ - addActivityTypeWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['activityTypeCreateRequest']; - - if (opts['name'] === undefined || opts['name'] === null) { - throw new Error("Missing the required parameter 'name' when calling addActivityType"); - } - if (opts['icon_key'] === undefined || opts['icon_key'] === null) { - throw new Error("Missing the required parameter 'icon_key' when calling addActivityType"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ActivityTypeCreateUpdateDeleteResponse; - return this.apiClient.callApi( - '/activityTypes', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add new activity type - * Adds a new activity type. - * @param {Object} opts Optional parameters - * @param {module:model/ActivityTypeCreateRequest} opts.activityTypeCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ActivityTypeCreateUpdateDeleteResponse} - */ - addActivityType(opts) { - return this.addActivityTypeWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete an activity type - * Marks an activity type as deleted. - * @param {Number} id The ID of the activity type - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ActivityTypeCreateUpdateDeleteResponse} and HTTP response - */ - deleteActivityTypeWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteActivityType"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ActivityTypeCreateUpdateDeleteResponse; - return this.apiClient.callApi( - '/activityTypes/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete an activity type - * Marks an activity type as deleted. - * @param {Number} id The ID of the activity type - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ActivityTypeCreateUpdateDeleteResponse} - */ - deleteActivityType(id) { - return this.deleteActivityTypeWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete multiple activity types in bulk - * Marks multiple activity types as deleted. - * @param {String} ids The comma-separated activity type IDs - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ActivityTypeBulkDeleteResponse} and HTTP response - */ - deleteActivityTypesWithHttpInfo(ids) { - const opts = {} - let postBody = null; - - // verify the required parameter 'ids' is set - if (ids === undefined || ids === null) { - throw new Error("Missing the required parameter 'ids' when calling deleteActivityTypes"); - } - - let pathParams = { - }; - let queryParams = { - 'ids': ids, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ActivityTypeBulkDeleteResponse; - return this.apiClient.callApi( - '/activityTypes', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete multiple activity types in bulk - * Marks multiple activity types as deleted. - * @param {String} ids The comma-separated activity type IDs - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ActivityTypeBulkDeleteResponse} - */ - deleteActivityTypes(ids) { - return this.deleteActivityTypesWithHttpInfo(ids) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all activity types - * Returns all activity types. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ActivityTypeListResponse} and HTTP response - */ - getActivityTypesWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ActivityTypeListResponse; - return this.apiClient.callApi( - '/activityTypes', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all activity types - * Returns all activity types. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ActivityTypeListResponse} - */ - getActivityTypes() { - return this.getActivityTypesWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update an activity type - * Updates an activity type. - * @param {Number} id The ID of the activity type - * @param {Object} opts Optional parameters - * @param {module:model/ActivityTypeUpdateRequest} opts.activityTypeUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ActivityTypeCreateUpdateDeleteResponse} and HTTP response - */ - updateActivityTypeWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['activityTypeUpdateRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateActivityType"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ActivityTypeCreateUpdateDeleteResponse; - return this.apiClient.callApi( - '/activityTypes/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update an activity type - * Updates an activity type. - * @param {Number} id The ID of the activity type - * @param {Object} opts Optional parameters - * @param {module:model/ActivityTypeUpdateRequest} opts.activityTypeUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ActivityTypeCreateUpdateDeleteResponse} - */ - updateActivityType(id, opts) { - return this.updateActivityTypeWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/BillingApi.js b/src/api/BillingApi.js deleted file mode 100644 index 063e3d6e..00000000 --- a/src/api/BillingApi.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import SubscriptionAddonsResponse from '../model/SubscriptionAddonsResponse'; - -/** -* Billing service. -* @module api/BillingApi -* @version 1.0.0 -*/ -export default class BillingApi { - - /** - * Constructs a new BillingApi. - * @alias module:api/BillingApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Get all add-ons for a single company - * Returns the add-ons for a single company. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubscriptionAddonsResponse} and HTTP response - */ - getCompanyAddonsWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = SubscriptionAddonsResponse; - return this.apiClient.callApi( - '/billing/subscriptions/addons', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all add-ons for a single company - * Returns the add-ons for a single company. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubscriptionAddonsResponse} - */ - getCompanyAddons() { - return this.getCompanyAddonsWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/CallLogsApi.js b/src/api/CallLogsApi.js deleted file mode 100644 index 8d34c63b..00000000 --- a/src/api/CallLogsApi.js +++ /dev/null @@ -1,397 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import BaseResponse from '../model/BaseResponse'; -import CallLogBadRequestResponse from '../model/CallLogBadRequestResponse'; -import CallLogConflictResponse from '../model/CallLogConflictResponse'; -import CallLogForbiddenResponse from '../model/CallLogForbiddenResponse'; -import CallLogGoneResponse from '../model/CallLogGoneResponse'; -import CallLogInternalErrorResponse from '../model/CallLogInternalErrorResponse'; -import CallLogNotFoundResponse from '../model/CallLogNotFoundResponse'; -import CallLogObject from '../model/CallLogObject'; -import CallLogResponse200 from '../model/CallLogResponse200'; -import CallLogsResponse from '../model/CallLogsResponse'; - -/** -* CallLogs service. -* @module api/CallLogsApi -* @version 1.0.0 -*/ -export default class CallLogsApi { - - /** - * Constructs a new CallLogsApi. - * @alias module:api/CallLogsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a call log - * Adds a new call log. - * @param {Object} opts Optional parameters - * @param {module:model/CallLogObject} opts.callLogObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CallLogResponse200} and HTTP response - */ - addCallLogWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['callLogObject']; - - if (opts['outcome'] === undefined || opts['outcome'] === null) { - throw new Error("Missing the required parameter 'outcome' when calling addCallLog"); - } - if (opts['to_phone_number'] === undefined || opts['to_phone_number'] === null) { - throw new Error("Missing the required parameter 'to_phone_number' when calling addCallLog"); - } - if (opts['start_time'] === undefined || opts['start_time'] === null) { - throw new Error("Missing the required parameter 'start_time' when calling addCallLog"); - } - if (opts['end_time'] === undefined || opts['end_time'] === null) { - throw new Error("Missing the required parameter 'end_time' when calling addCallLog"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = CallLogResponse200; - return this.apiClient.callApi( - '/callLogs', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a call log - * Adds a new call log. - * @param {Object} opts Optional parameters - * @param {module:model/CallLogObject} opts.callLogObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CallLogResponse200} - */ - addCallLog(opts) { - return this.addCallLogWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Attach an audio file to the call log - * Adds an audio recording to the call log. That audio can be played by those who have access to the call log object. - * @param {String} id The ID received when you create the call log - * @param {File} file Audio file supported by the HTML5 specification - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BaseResponse} and HTTP response - */ - addCallLogAudioFileWithHttpInfo(id, file) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addCallLogAudioFile"); - } - - // verify the required parameter 'file' is set - if (file === undefined || file === null) { - throw new Error("Missing the required parameter 'file' when calling addCallLogAudioFile"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'file': file, - }; - - let formParamArray = [ - 'file', - ]; - - let contentTypes = ['multipart/form-data', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = BaseResponse; - return this.apiClient.callApi( - '/callLogs/{id}/recordings', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Attach an audio file to the call log - * Adds an audio recording to the call log. That audio can be played by those who have access to the call log object. - * @param {String} id The ID received when you create the call log - * @param {File} file Audio file supported by the HTML5 specification - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BaseResponse} - */ - addCallLogAudioFile(id, file) { - return this.addCallLogAudioFileWithHttpInfo(id, file) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a call log - * Deletes a call log. If there is an audio recording attached to it, it will also be deleted. The related activity will not be removed by this request. If you want to remove the related activities, please use the endpoint which is specific for activities. - * @param {String} id The ID received when you create the call log - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BaseResponse} and HTTP response - */ - deleteCallLogWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteCallLog"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = BaseResponse; - return this.apiClient.callApi( - '/callLogs/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a call log - * Deletes a call log. If there is an audio recording attached to it, it will also be deleted. The related activity will not be removed by this request. If you want to remove the related activities, please use the endpoint which is specific for activities. - * @param {String} id The ID received when you create the call log - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BaseResponse} - */ - deleteCallLog(id) { - return this.deleteCallLogWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get details of a call log - * Returns details of a specific call log. - * @param {String} id The ID received when you create the call log - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CallLogResponse200} and HTTP response - */ - getCallLogWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getCallLog"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = CallLogResponse200; - return this.apiClient.callApi( - '/callLogs/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get details of a call log - * Returns details of a specific call log. - * @param {String} id The ID received when you create the call log - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CallLogResponse200} - */ - getCallLog(id) { - return this.getCallLogWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all call logs assigned to a particular user - * Returns all call logs assigned to a particular user. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit For pagination, the limit of entries to be returned. The upper limit is 50. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CallLogsResponse} and HTTP response - */ - getUserCallLogsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - let pathParams = { - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = CallLogsResponse; - return this.apiClient.callApi( - '/callLogs', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all call logs assigned to a particular user - * Returns all call logs assigned to a particular user. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit For pagination, the limit of entries to be returned. The upper limit is 50. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CallLogsResponse} - */ - getUserCallLogs(opts) { - return this.getUserCallLogsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/ChannelsApi.js b/src/api/ChannelsApi.js deleted file mode 100644 index 2d2ae3f3..00000000 --- a/src/api/ChannelsApi.js +++ /dev/null @@ -1,341 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import ChannelObject from '../model/ChannelObject'; -import ChannelObjectResponse from '../model/ChannelObjectResponse'; -import DeleteChannelSuccess from '../model/DeleteChannelSuccess'; -import DeleteConversationSuccess from '../model/DeleteConversationSuccess'; -import InlineResponse200 from '../model/InlineResponse200'; -import InlineResponse400 from '../model/InlineResponse400'; -import InlineResponse4001 from '../model/InlineResponse4001'; -import InlineResponse403 from '../model/InlineResponse403'; -import InlineResponse4031 from '../model/InlineResponse4031'; -import InlineResponse404 from '../model/InlineResponse404'; -import MessageObject from '../model/MessageObject'; - -/** -* Channels service. -* @module api/ChannelsApi -* @version 1.0.0 -*/ -export default class ChannelsApi { - - /** - * Constructs a new ChannelsApi. - * @alias module:api/ChannelsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a channel - * Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - * @param {Object} opts Optional parameters - * @param {module:model/ChannelObject} opts.channelObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChannelObjectResponse} and HTTP response - */ - addChannelWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['channelObject']; - - if (opts['name'] === undefined || opts['name'] === null) { - throw new Error("Missing the required parameter 'name' when calling addChannel"); - } - if (opts['provider_channel_id'] === undefined || opts['provider_channel_id'] === null) { - throw new Error("Missing the required parameter 'provider_channel_id' when calling addChannel"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ChannelObjectResponse; - return this.apiClient.callApi( - '/channels', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a channel - * Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - * @param {Object} opts Optional parameters - * @param {module:model/ChannelObject} opts.channelObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChannelObjectResponse} - */ - addChannel(opts) { - return this.addChannelWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a channel - * Deletes an existing messenger’s channel and all related entities (conversations and messages). To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - * @param {String} id The ID of the channel provided by the integration - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteChannelSuccess} and HTTP response - */ - deleteChannelWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteChannel"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteChannelSuccess; - return this.apiClient.callApi( - '/channels/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a channel - * Deletes an existing messenger’s channel and all related entities (conversations and messages). To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - * @param {String} id The ID of the channel provided by the integration - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteChannelSuccess} - */ - deleteChannel(id) { - return this.deleteChannelWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a conversation - * Deletes an existing conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - * @param {String} channelId The ID of the channel provided by the integration - * @param {String} conversationId The ID of the conversation provided by the integration - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteConversationSuccess} and HTTP response - */ - deleteConversationWithHttpInfo(channelId, conversationId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'channelId' is set - if (channelId === undefined || channelId === null) { - throw new Error("Missing the required parameter 'channelId' when calling deleteConversation"); - } - - // verify the required parameter 'conversationId' is set - if (conversationId === undefined || conversationId === null) { - throw new Error("Missing the required parameter 'conversationId' when calling deleteConversation"); - } - - let pathParams = { - 'channel-id': channelId, - 'conversation-id': conversationId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteConversationSuccess; - return this.apiClient.callApi( - '/channels/{channel-id}/conversations/{conversation-id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a conversation - * Deletes an existing conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - * @param {String} channelId The ID of the channel provided by the integration - * @param {String} conversationId The ID of the conversation provided by the integration - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteConversationSuccess} - */ - deleteConversation(channelId, conversationId) { - return this.deleteConversationWithHttpInfo(channelId, conversationId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Receives an incoming message - * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - * @param {Object} opts Optional parameters - * @param {module:model/MessageObject} opts.messageObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse200} and HTTP response - */ - receiveMessageWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['messageObject']; - - if (opts['id'] === undefined || opts['id'] === null) { - throw new Error("Missing the required parameter 'id' when calling receiveMessage"); - } - if (opts['channel_id'] === undefined || opts['channel_id'] === null) { - throw new Error("Missing the required parameter 'channel_id' when calling receiveMessage"); - } - if (opts['sender_id'] === undefined || opts['sender_id'] === null) { - throw new Error("Missing the required parameter 'sender_id' when calling receiveMessage"); - } - if (opts['conversation_id'] === undefined || opts['conversation_id'] === null) { - throw new Error("Missing the required parameter 'conversation_id' when calling receiveMessage"); - } - if (opts['message'] === undefined || opts['message'] === null) { - throw new Error("Missing the required parameter 'message' when calling receiveMessage"); - } - if (opts['status'] === undefined || opts['status'] === null) { - throw new Error("Missing the required parameter 'status' when calling receiveMessage"); - } - if (opts['created_at'] === undefined || opts['created_at'] === null) { - throw new Error("Missing the required parameter 'created_at' when calling receiveMessage"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = InlineResponse200; - return this.apiClient.callApi( - '/channels/messages/receive', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Receives an incoming message - * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). - * @param {Object} opts Optional parameters - * @param {module:model/MessageObject} opts.messageObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse200} - */ - receiveMessage(opts) { - return this.receiveMessageWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/CurrenciesApi.js b/src/api/CurrenciesApi.js deleted file mode 100644 index 1680549c..00000000 --- a/src/api/CurrenciesApi.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import Currencies from '../model/Currencies'; - -/** -* Currencies service. -* @module api/CurrenciesApi -* @version 1.0.0 -*/ -export default class CurrenciesApi { - - /** - * Constructs a new CurrenciesApi. - * @alias module:api/CurrenciesApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Get all supported currencies - * Returns all supported currencies in given account which should be used when saving monetary values with other objects. The `code` parameter of the returning objects is the currency code according to ISO 4217 for all non-custom currencies. - * @param {Object} opts Optional parameters - * @param {String} opts.term Optional search term that is searched for from currency's name and/or code - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Currencies} and HTTP response - */ - getCurrenciesWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - let pathParams = { - }; - let queryParams = { - 'term': opts['term'] === undefined ? opts['term'] : opts['term'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Currencies; - return this.apiClient.callApi( - '/currencies', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all supported currencies - * Returns all supported currencies in given account which should be used when saving monetary values with other objects. The `code` parameter of the returning objects is the currency code according to ISO 4217 for all non-custom currencies. - * @param {Object} opts Optional parameters - * @param {String} opts.term Optional search term that is searched for from currency's name and/or code - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Currencies} - */ - getCurrencies(opts) { - return this.getCurrenciesWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/DealFieldsApi.js b/src/api/DealFieldsApi.js deleted file mode 100644 index 8793d89e..00000000 --- a/src/api/DealFieldsApi.js +++ /dev/null @@ -1,443 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import BulkDeleteResponse from '../model/BulkDeleteResponse'; -import DeleteResponse from '../model/DeleteResponse'; -import FieldCreateRequest from '../model/FieldCreateRequest'; -import FieldResponse from '../model/FieldResponse'; -import FieldUpdateRequest from '../model/FieldUpdateRequest'; -import FieldsResponse from '../model/FieldsResponse'; - -/** -* DealFields service. -* @module api/DealFieldsApi -* @version 1.0.0 -*/ -export default class DealFieldsApi { - - /** - * Constructs a new DealFieldsApi. - * @alias module:api/DealFieldsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a new deal field - * Adds a new deal field. For more information, see the tutorial for adding a new custom field. - * @param {Object} opts Optional parameters - * @param {module:model/FieldCreateRequest} opts.fieldCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldResponse} and HTTP response - */ - addDealFieldWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['fieldCreateRequest']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldResponse; - return this.apiClient.callApi( - '/dealFields', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new deal field - * Adds a new deal field. For more information, see the tutorial for adding a new custom field. - * @param {Object} opts Optional parameters - * @param {module:model/FieldCreateRequest} opts.fieldCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldResponse} - */ - addDealField(opts) { - return this.addDealFieldWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a deal field - * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteResponse} and HTTP response - */ - deleteDealFieldWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteDealField"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteResponse; - return this.apiClient.callApi( - '/dealFields/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a deal field - * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteResponse} - */ - deleteDealField(id) { - return this.deleteDealFieldWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete multiple deal fields in bulk - * Marks multiple deal fields as deleted. - * @param {String} ids The comma-separated field IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BulkDeleteResponse} and HTTP response - */ - deleteDealFieldsWithHttpInfo(ids) { - const opts = {} - let postBody = null; - - // verify the required parameter 'ids' is set - if (ids === undefined || ids === null) { - throw new Error("Missing the required parameter 'ids' when calling deleteDealFields"); - } - - let pathParams = { - }; - let queryParams = { - 'ids': ids, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = BulkDeleteResponse; - return this.apiClient.callApi( - '/dealFields', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete multiple deal fields in bulk - * Marks multiple deal fields as deleted. - * @param {String} ids The comma-separated field IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BulkDeleteResponse} - */ - deleteDealFields(ids) { - return this.deleteDealFieldsWithHttpInfo(ids) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one deal field - * Returns data about a specific deal field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldResponse} and HTTP response - */ - getDealFieldWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealField"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldResponse; - return this.apiClient.callApi( - '/dealFields/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one deal field - * Returns data about a specific deal field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldResponse} - */ - getDealField(id) { - return this.getDealFieldWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all deal fields - * Returns data about all deal fields. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldsResponse} and HTTP response - */ - getDealFieldsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - let pathParams = { - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldsResponse; - return this.apiClient.callApi( - '/dealFields', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all deal fields - * Returns data about all deal fields. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldsResponse} - */ - getDealFields(opts) { - return this.getDealFieldsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a deal field - * Updates a deal field. For more information, see the tutorial for updating custom fields' values. - * @param {Number} id The ID of the field - * @param {Object} opts Optional parameters - * @param {module:model/FieldUpdateRequest} opts.fieldUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldResponse} and HTTP response - */ - updateDealFieldWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['fieldUpdateRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateDealField"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldResponse; - return this.apiClient.callApi( - '/dealFields/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a deal field - * Updates a deal field. For more information, see the tutorial for updating custom fields' values. - * @param {Number} id The ID of the field - * @param {Object} opts Optional parameters - * @param {module:model/FieldUpdateRequest} opts.fieldUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldResponse} - */ - updateDealField(id, opts) { - return this.updateDealFieldWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/DealsApi.js b/src/api/DealsApi.js deleted file mode 100644 index 90bc7236..00000000 --- a/src/api/DealsApi.js +++ /dev/null @@ -1,2375 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddDealFollowerRequest from '../model/AddDealFollowerRequest'; -import AddDealParticipantRequest from '../model/AddDealParticipantRequest'; -import AddedDealFollower from '../model/AddedDealFollower'; -import ChangelogResponse from '../model/ChangelogResponse'; -import DealFlowResponse from '../model/DealFlowResponse'; -import DealListActivitiesResponse from '../model/DealListActivitiesResponse'; -import DealParticipants from '../model/DealParticipants'; -import DealSearchResponse from '../model/DealSearchResponse'; -import DeleteDeal from '../model/DeleteDeal'; -import DeleteDealFollower from '../model/DeleteDealFollower'; -import DeleteDealParticipant from '../model/DeleteDealParticipant'; -import DeleteDealProduct from '../model/DeleteDealProduct'; -import DeleteMultipleDeals from '../model/DeleteMultipleDeals'; -import FailResponse from '../model/FailResponse'; -import GetAddProductAttachmentDetails from '../model/GetAddProductAttachmentDetails'; -import GetAddedDeal from '../model/GetAddedDeal'; -import GetDeal from '../model/GetDeal'; -import GetDeals from '../model/GetDeals'; -import GetDealsCollection from '../model/GetDealsCollection'; -import GetDealsSummary from '../model/GetDealsSummary'; -import GetDealsTimeline from '../model/GetDealsTimeline'; -import GetDuplicatedDeal from '../model/GetDuplicatedDeal'; -import GetMergedDeal from '../model/GetMergedDeal'; -import GetProductAttachmentDetails from '../model/GetProductAttachmentDetails'; -import ListFilesResponse from '../model/ListFilesResponse'; -import ListFollowersResponse from '../model/ListFollowersResponse'; -import ListMailMessagesResponse from '../model/ListMailMessagesResponse'; -import ListPermittedUsersResponse from '../model/ListPermittedUsersResponse'; -import ListPersonsResponse from '../model/ListPersonsResponse'; -import ListProductsResponse from '../model/ListProductsResponse'; -import MergeDealsRequest from '../model/MergeDealsRequest'; -import NewDeal from '../model/NewDeal'; -import NewDealProduct from '../model/NewDealProduct'; -import NumberBoolean from '../model/NumberBoolean'; -import ParticipantsChangelog from '../model/ParticipantsChangelog'; -import PostDealParticipants from '../model/PostDealParticipants'; -import UpdateDealProduct from '../model/UpdateDealProduct'; -import UpdateDealRequest from '../model/UpdateDealRequest'; - -/** -* Deals service. -* @module api/DealsApi -* @version 1.0.0 -*/ -export default class DealsApi { - - /** - * Constructs a new DealsApi. - * @alias module:api/DealsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a deal - * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for adding a deal. - * @param {Object} opts Optional parameters - * @param {module:model/NewDeal} opts.newDeal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAddedDeal} and HTTP response - */ - addDealWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['newDeal']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetAddedDeal; - return this.apiClient.callApi( - '/deals', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a deal - * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for adding a deal. - * @param {Object} opts Optional parameters - * @param {module:model/NewDeal} opts.newDeal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAddedDeal} - */ - addDeal(opts) { - return this.addDealWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add a follower to a deal - * Adds a follower to a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {module:model/AddDealFollowerRequest} opts.addDealFollowerRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddedDealFollower} and HTTP response - */ - addDealFollowerWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['addDealFollowerRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addDealFollower"); - } - - if (opts['user_id'] === undefined || opts['user_id'] === null) { - throw new Error("Missing the required parameter 'user_id' when calling addDealFollower"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = AddedDealFollower; - return this.apiClient.callApi( - '/deals/{id}/followers', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a follower to a deal - * Adds a follower to a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {module:model/AddDealFollowerRequest} opts.addDealFollowerRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddedDealFollower} - */ - addDealFollower(id, opts) { - return this.addDealFollowerWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add a participant to a deal - * Adds a participant to a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {module:model/AddDealParticipantRequest} opts.addDealParticipantRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostDealParticipants} and HTTP response - */ - addDealParticipantWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['addDealParticipantRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addDealParticipant"); - } - - if (opts['person_id'] === undefined || opts['person_id'] === null) { - throw new Error("Missing the required parameter 'person_id' when calling addDealParticipant"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PostDealParticipants; - return this.apiClient.callApi( - '/deals/{id}/participants', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a participant to a deal - * Adds a participant to a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {module:model/AddDealParticipantRequest} opts.addDealParticipantRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostDealParticipants} - */ - addDealParticipant(id, opts) { - return this.addDealParticipantWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add a product to a deal - * Adds a product to a deal, creating a new item called a deal-product. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {module:model/NewDealProduct} opts.newDealProduct - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAddProductAttachmentDetails} and HTTP response - */ - addDealProductWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['newDealProduct']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addDealProduct"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetAddProductAttachmentDetails; - return this.apiClient.callApi( - '/deals/{id}/products', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a product to a deal - * Adds a product to a deal, creating a new item called a deal-product. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {module:model/NewDealProduct} opts.newDealProduct - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAddProductAttachmentDetails} - */ - addDealProduct(id, opts) { - return this.addDealProductWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a deal - * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. - * @param {Number} id The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDeal} and HTTP response - */ - deleteDealWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteDeal"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteDeal; - return this.apiClient.callApi( - '/deals/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a deal - * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. - * @param {Number} id The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDeal} - */ - deleteDeal(id) { - return this.deleteDealWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a follower from a deal - * Deletes a follower from a deal. - * @param {Number} id The ID of the deal - * @param {Number} followerId The ID of the follower - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDealFollower} and HTTP response - */ - deleteDealFollowerWithHttpInfo(id, followerId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteDealFollower"); - } - - // verify the required parameter 'followerId' is set - if (followerId === undefined || followerId === null) { - throw new Error("Missing the required parameter 'followerId' when calling deleteDealFollower"); - } - - let pathParams = { - 'id': id, - 'follower_id': followerId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteDealFollower; - return this.apiClient.callApi( - '/deals/{id}/followers/{follower_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a follower from a deal - * Deletes a follower from a deal. - * @param {Number} id The ID of the deal - * @param {Number} followerId The ID of the follower - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDealFollower} - */ - deleteDealFollower(id, followerId) { - return this.deleteDealFollowerWithHttpInfo(id, followerId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a participant from a deal - * Deletes a participant from a deal. - * @param {Number} id The ID of the deal - * @param {Number} dealParticipantId The ID of the participant of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDealParticipant} and HTTP response - */ - deleteDealParticipantWithHttpInfo(id, dealParticipantId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteDealParticipant"); - } - - // verify the required parameter 'dealParticipantId' is set - if (dealParticipantId === undefined || dealParticipantId === null) { - throw new Error("Missing the required parameter 'dealParticipantId' when calling deleteDealParticipant"); - } - - let pathParams = { - 'id': id, - 'deal_participant_id': dealParticipantId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteDealParticipant; - return this.apiClient.callApi( - '/deals/{id}/participants/{deal_participant_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a participant from a deal - * Deletes a participant from a deal. - * @param {Number} id The ID of the deal - * @param {Number} dealParticipantId The ID of the participant of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDealParticipant} - */ - deleteDealParticipant(id, dealParticipantId) { - return this.deleteDealParticipantWithHttpInfo(id, dealParticipantId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete an attached product from a deal - * Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled - * @param {Number} id The ID of the deal - * @param {Number} productAttachmentId The product attachment ID - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteDealProduct} and HTTP response - */ - deleteDealProductWithHttpInfo(id, productAttachmentId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteDealProduct"); - } - - // verify the required parameter 'productAttachmentId' is set - if (productAttachmentId === undefined || productAttachmentId === null) { - throw new Error("Missing the required parameter 'productAttachmentId' when calling deleteDealProduct"); - } - - let pathParams = { - 'id': id, - 'product_attachment_id': productAttachmentId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteDealProduct; - return this.apiClient.callApi( - '/deals/{id}/products/{product_attachment_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete an attached product from a deal - * Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled - * @param {Number} id The ID of the deal - * @param {Number} productAttachmentId The product attachment ID - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteDealProduct} - */ - deleteDealProduct(id, productAttachmentId) { - return this.deleteDealProductWithHttpInfo(id, productAttachmentId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete multiple deals in bulk - * Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted. - * @param {String} ids The comma-separated IDs that will be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteMultipleDeals} and HTTP response - */ - deleteDealsWithHttpInfo(ids) { - const opts = {} - let postBody = null; - - // verify the required parameter 'ids' is set - if (ids === undefined || ids === null) { - throw new Error("Missing the required parameter 'ids' when calling deleteDeals"); - } - - let pathParams = { - }; - let queryParams = { - 'ids': ids, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteMultipleDeals; - return this.apiClient.callApi( - '/deals', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete multiple deals in bulk - * Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted. - * @param {String} ids The comma-separated IDs that will be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteMultipleDeals} - */ - deleteDeals(ids) { - return this.deleteDealsWithHttpInfo(ids) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Duplicate deal - * Duplicates a deal. - * @param {Number} id The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDuplicatedDeal} and HTTP response - */ - duplicateDealWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling duplicateDeal"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetDuplicatedDeal; - return this.apiClient.callApi( - '/deals/{id}/duplicate', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Duplicate deal - * Duplicates a deal. - * @param {Number} id The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDuplicatedDeal} - */ - duplicateDeal(id) { - return this.duplicateDealWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get details of a deal - * Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for getting details of a deal. - * @param {Number} id The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeal} and HTTP response - */ - getDealWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDeal"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetDeal; - return this.apiClient.callApi( - '/deals/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get details of a deal - * Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for getting details of a deal. - * @param {Number} id The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeal} - */ - getDeal(id) { - return this.getDealWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List activities associated with a deal - * Lists activities associated with a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - * @param {String} opts.exclude A comma-separated string of activity IDs to exclude from result - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DealListActivitiesResponse} and HTTP response - */ - getDealActivitiesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealActivities"); - } - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'done': opts['done'] === undefined ? opts['done'] : opts['done'], - 'exclude': opts['exclude'] === undefined ? opts['exclude'] : opts['exclude'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DealListActivitiesResponse; - return this.apiClient.callApi( - '/deals/{id}/activities', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List activities associated with a deal - * Lists activities associated with a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - * @param {String} opts.exclude A comma-separated string of activity IDs to exclude from result - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DealListActivitiesResponse} - */ - getDealActivities(id, opts) { - return this.getDealActivitiesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List updates about deal field values - * Lists updates about field values of a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChangelogResponse} and HTTP response - */ - getDealChangelogWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealChangelog"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ChangelogResponse; - return this.apiClient.callApi( - '/deals/{id}/changelog', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List updates about deal field values - * Lists updates about field values of a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChangelogResponse} - */ - getDealChangelog(id, opts) { - return this.getDealChangelogWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List files attached to a deal - * Lists files associated with a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListFilesResponse} and HTTP response - */ - getDealFilesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealFiles"); - } - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListFilesResponse; - return this.apiClient.callApi( - '/deals/{id}/files', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List files attached to a deal - * Lists files associated with a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListFilesResponse} - */ - getDealFiles(id, opts) { - return this.getDealFilesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List followers of a deal - * Lists the followers of a deal. - * @param {Number} id The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListFollowersResponse} and HTTP response - */ - getDealFollowersWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealFollowers"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListFollowersResponse; - return this.apiClient.callApi( - '/deals/{id}/followers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List followers of a deal - * Lists the followers of a deal. - * @param {Number} id The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListFollowersResponse} - */ - getDealFollowers(id) { - return this.getDealFollowersWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List mail messages associated with a deal - * Lists mail messages associated with a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMailMessagesResponse} and HTTP response - */ - getDealMailMessagesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealMailMessages"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListMailMessagesResponse; - return this.apiClient.callApi( - '/deals/{id}/mailMessages', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List mail messages associated with a deal - * Lists mail messages associated with a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMailMessagesResponse} - */ - getDealMailMessages(id, opts) { - return this.getDealMailMessagesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List participants of a deal - * Lists the participants associated with a deal.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DealParticipants} and HTTP response - */ - getDealParticipantsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealParticipants"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DealParticipants; - return this.apiClient.callApi( - '/deals/{id}/participants', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List participants of a deal - * Lists the participants associated with a deal.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DealParticipants} - */ - getDealParticipants(id, opts) { - return this.getDealParticipantsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List updates about participants of a deal - * List updates about participants of a deal. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.limit Items shown per page - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ParticipantsChangelog} and HTTP response - */ - getDealParticipantsChangelogWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealParticipantsChangelog"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ParticipantsChangelog; - return this.apiClient.callApi( - '/deals/{id}/participantsChangelog', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List updates about participants of a deal - * List updates about participants of a deal. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.limit Items shown per page - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ParticipantsChangelog} - */ - getDealParticipantsChangelog(id, opts) { - return this.getDealParticipantsChangelogWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List all persons associated with a deal - * Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPersonsResponse} and HTTP response - */ - getDealPersonsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealPersons"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListPersonsResponse; - return this.apiClient.callApi( - '/deals/{id}/persons', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List all persons associated with a deal - * Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPersonsResponse} - */ - getDealPersons(id, opts) { - return this.getDealPersonsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List products attached to a deal - * Lists products attached to a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.includeProductData Whether to fetch product data along with each attached product (1) or not (0, default) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListProductsResponse} and HTTP response - */ - getDealProductsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealProducts"); - } - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'include_product_data': opts['include_product_data'] === undefined ? opts['includeProductData'] : opts['include_product_data'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListProductsResponse; - return this.apiClient.callApi( - '/deals/{id}/products', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List products attached to a deal - * Lists products attached to a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.includeProductData Whether to fetch product data along with each attached product (1) or not (0, default) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListProductsResponse} - */ - getDealProducts(id, opts) { - return this.getDealProductsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List updates about a deal - * Lists updates about a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {String} opts.allChanges Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. - * @param {String} opts.items A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DealFlowResponse} and HTTP response - */ - getDealUpdatesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealUpdates"); - } - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'all_changes': opts['all_changes'] === undefined ? opts['allChanges'] : opts['all_changes'], - 'items': opts['items'] === undefined ? opts['items'] : opts['items'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DealFlowResponse; - return this.apiClient.callApi( - '/deals/{id}/flow', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List updates about a deal - * Lists updates about a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {String} opts.allChanges Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. - * @param {String} opts.items A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DealFlowResponse} - */ - getDealUpdates(id, opts) { - return this.getDealUpdatesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List permitted users - * Lists the users permitted to access a deal. - * @param {Number} id The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPermittedUsersResponse} and HTTP response - */ - getDealUsersWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getDealUsers"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListPermittedUsersResponse; - return this.apiClient.callApi( - '/deals/{id}/permittedUsers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List permitted users - * Lists the users permitted to access a deal. - * @param {Number} id The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPermittedUsersResponse} - */ - getDealUsers(id) { - return this.getDealUsersWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all deals - * Returns all deals. For more information, see the tutorial for getting all deals. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied. - * @param {Number} opts.filterId The ID of the filter to use - * @param {Number} opts.stageId If supplied, only deals within the given stage will be returned - * @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') - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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). - * @param {module:model/NumberBoolean} opts.ownedByYou When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDeals} and HTTP response - */ - getDealsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - - - let pathParams = { - }; - let queryParams = { - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], - 'stage_id': opts['stage_id'] === undefined ? opts['stageId'] : opts['stage_id'], - 'status': opts['status'] === undefined ? opts['status'] : opts['status'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - 'owned_by_you': opts['owned_by_you'] === undefined ? opts['ownedByYou'] : opts['owned_by_you'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetDeals; - return this.apiClient.callApi( - '/deals', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all deals - * Returns all deals. For more information, see the tutorial for getting all deals. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied. - * @param {Number} opts.filterId The ID of the filter to use - * @param {Number} opts.stageId If supplied, only deals within the given stage will be returned - * @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') - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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). - * @param {module:model/NumberBoolean} opts.ownedByYou When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDeals} - */ - getDeals(opts) { - return this.getDealsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all deals (BETA) - * Returns all deals. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {String} opts.since The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {String} opts.until The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {Number} opts.userId If supplied, only deals matching the given user will be returned - * @param {Number} opts.stageId If supplied, only deals within the given stage will be returned - * @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. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDealsCollection} and HTTP response - */ - getDealsCollectionWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - - let pathParams = { - }; - let queryParams = { - 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'since': opts['since'] === undefined ? opts['since'] : opts['since'], - 'until': opts['until'] === undefined ? opts['until'] : opts['until'], - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'stage_id': opts['stage_id'] === undefined ? opts['stageId'] : opts['stage_id'], - 'status': opts['status'] === undefined ? opts['status'] : opts['status'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetDealsCollection; - return this.apiClient.callApi( - '/deals/collection', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all deals (BETA) - * Returns all deals. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {String} opts.since The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {String} opts.until The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {Number} opts.userId If supplied, only deals matching the given user will be returned - * @param {Number} opts.stageId If supplied, only deals within the given stage will be returned - * @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. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDealsCollection} - */ - getDealsCollection(opts) { - return this.getDealsCollectionWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get deals summary - * Returns a summary of all the deals. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.status Only fetch deals with a specific status. open = Open, won = Won, lost = Lost. - * @param {Number} opts.filterId user_id will not be considered. Only deals matching the given filter will be returned. - * @param {Number} opts.userId Only deals matching the given user will be returned. `user_id` will not be considered if you use `filter_id`. - * @param {Number} opts.stageId Only deals within the given stage will be returned - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDealsSummary} and HTTP response - */ - getDealsSummaryWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - let pathParams = { - }; - let queryParams = { - 'status': opts['status'] === undefined ? opts['status'] : opts['status'], - 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'stage_id': opts['stage_id'] === undefined ? opts['stageId'] : opts['stage_id'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetDealsSummary; - return this.apiClient.callApi( - '/deals/summary', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get deals summary - * Returns a summary of all the deals. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.status Only fetch deals with a specific status. open = Open, won = Won, lost = Lost. - * @param {Number} opts.filterId user_id will not be considered. Only deals matching the given filter will be returned. - * @param {Number} opts.userId Only deals matching the given user will be returned. `user_id` will not be considered if you use `filter_id`. - * @param {Number} opts.stageId Only deals within the given stage will be returned - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDealsSummary} - */ - getDealsSummary(opts) { - return this.getDealsSummaryWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get deals timeline - * Returns open and won deals, grouped by a defined interval of time set in a date-type dealField (`field_key`) — e.g. when month is the chosen interval, and 3 months are asked starting from January 1st, 2012, deals are returned grouped into 3 groups — January, February and March — based on the value of the given `field_key`. - * @param {Date} startDate The date when the first interval starts. Format: YYYY-MM-DD. - * @param {module:model/String} interval The type of the interval
ValueDescription
`day`Day
`week`A full week (7 days) starting from `start_date`
`month`A full month (depending on the number of days in given month) starting from `start_date`
`quarter`A full quarter (3 months) starting from `start_date`
- * @param {Number} amount The number of given intervals, starting from `start_date`, to fetch. E.g. 3 (months). - * @param {String} fieldKey The date field key which deals will be retrieved from - * @param {Object} opts Optional parameters - * @param {Number} opts.userId If supplied, only deals matching the given user will be returned - * @param {Number} opts.pipelineId If supplied, only deals matching the given pipeline will be returned - * @param {Number} opts.filterId If supplied, only deals matching the given filter will be returned - * @param {module:model/NumberBoolean} opts.excludeDeals Whether to exclude deals list (1) or not (0). Note that when deals are excluded, the timeline summary (counts and values) is still returned. - * @param {String} opts.totalsConvertCurrency The 3-letter currency code of any of the supported currencies. When supplied, `totals_converted` is returned per each interval which contains the currency-converted total amounts in the given currency. You may also set this parameter to `default_currency` in which case the user's default currency is used. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDealsTimeline} and HTTP response - */ - getDealsTimelineWithHttpInfo(startDate, interval, amount, fieldKey, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'startDate' is set - if (startDate === undefined || startDate === null) { - throw new Error("Missing the required parameter 'startDate' when calling getDealsTimeline"); - } - - // verify the required parameter 'interval' is set - if (interval === undefined || interval === null) { - throw new Error("Missing the required parameter 'interval' when calling getDealsTimeline"); - } - - // verify the required parameter 'amount' is set - if (amount === undefined || amount === null) { - throw new Error("Missing the required parameter 'amount' when calling getDealsTimeline"); - } - - // verify the required parameter 'fieldKey' is set - if (fieldKey === undefined || fieldKey === null) { - throw new Error("Missing the required parameter 'fieldKey' when calling getDealsTimeline"); - } - - - - - - - let pathParams = { - }; - let queryParams = { - 'start_date': startDate, - 'interval': interval, - 'amount': amount, - 'field_key': fieldKey, - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'pipeline_id': opts['pipeline_id'] === undefined ? opts['pipelineId'] : opts['pipeline_id'], - 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], - 'exclude_deals': opts['exclude_deals'] === undefined ? opts['excludeDeals'] : opts['exclude_deals'], - 'totals_convert_currency': opts['totals_convert_currency'] === undefined ? opts['totalsConvertCurrency'] : opts['totals_convert_currency'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetDealsTimeline; - return this.apiClient.callApi( - '/deals/timeline', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get deals timeline - * Returns open and won deals, grouped by a defined interval of time set in a date-type dealField (`field_key`) — e.g. when month is the chosen interval, and 3 months are asked starting from January 1st, 2012, deals are returned grouped into 3 groups — January, February and March — based on the value of the given `field_key`. - * @param {Date} startDate The date when the first interval starts. Format: YYYY-MM-DD. - * @param {module:model/String} interval The type of the interval
ValueDescription
`day`Day
`week`A full week (7 days) starting from `start_date`
`month`A full month (depending on the number of days in given month) starting from `start_date`
`quarter`A full quarter (3 months) starting from `start_date`
- * @param {Number} amount The number of given intervals, starting from `start_date`, to fetch. E.g. 3 (months). - * @param {String} fieldKey The date field key which deals will be retrieved from - * @param {Object} opts Optional parameters - * @param {Number} opts.userId If supplied, only deals matching the given user will be returned - * @param {Number} opts.pipelineId If supplied, only deals matching the given pipeline will be returned - * @param {Number} opts.filterId If supplied, only deals matching the given filter will be returned - * @param {module:model/NumberBoolean} opts.excludeDeals Whether to exclude deals list (1) or not (0). Note that when deals are excluded, the timeline summary (counts and values) is still returned. - * @param {String} opts.totalsConvertCurrency The 3-letter currency code of any of the supported currencies. When supplied, `totals_converted` is returned per each interval which contains the currency-converted total amounts in the given currency. You may also set this parameter to `default_currency` in which case the user's default currency is used. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDealsTimeline} - */ - getDealsTimeline(startDate, interval, amount, fieldKey, opts) { - return this.getDealsTimelineWithHttpInfo(startDate, interval, amount, fieldKey, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Merge two deals - * Merges a deal with another deal. For more information, see the tutorial for merging two deals. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {module:model/MergeDealsRequest} opts.mergeDealsRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetMergedDeal} and HTTP response - */ - mergeDealsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['mergeDealsRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling mergeDeals"); - } - - if (opts['merge_with_id'] === undefined || opts['merge_with_id'] === null) { - throw new Error("Missing the required parameter 'merge_with_id' when calling mergeDeals"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetMergedDeal; - return this.apiClient.callApi( - '/deals/{id}/merge', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Merge two deals - * Merges a deal with another deal. For more information, see the tutorial for merging two deals. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {module:model/MergeDealsRequest} opts.mergeDealsRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetMergedDeal} - */ - mergeDeals(id, opts) { - return this.mergeDealsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Search deals - * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {Number} opts.personId Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. - * @param {Number} opts.organizationId Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. - * @param {module:model/String} opts.status Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. - * @param {module:model/String} opts.includeFields Supports including optional fields in the results which are not provided by default - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DealSearchResponse} and HTTP response - */ - searchDealsWithHttpInfo(term, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'term' is set - if (term === undefined || term === null) { - throw new Error("Missing the required parameter 'term' when calling searchDeals"); - } - - - - - - - - - - let pathParams = { - }; - let queryParams = { - 'term': term, - 'fields': opts['fields'] === undefined ? opts['fields'] : opts['fields'], - 'exact_match': opts['exact_match'] === undefined ? opts['exactMatch'] : opts['exact_match'], - 'person_id': opts['person_id'] === undefined ? opts['personId'] : opts['person_id'], - 'organization_id': opts['organization_id'] === undefined ? opts['organizationId'] : opts['organization_id'], - 'status': opts['status'] === undefined ? opts['status'] : opts['status'], - 'include_fields': opts['include_fields'] === undefined ? opts['includeFields'] : opts['include_fields'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DealSearchResponse; - return this.apiClient.callApi( - '/deals/search', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Search deals - * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {Number} opts.personId Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. - * @param {Number} opts.organizationId Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. - * @param {module:model/String} opts.status Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. - * @param {module:model/String} opts.includeFields Supports including optional fields in the results which are not provided by default - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DealSearchResponse} - */ - searchDeals(term, opts) { - return this.searchDealsWithHttpInfo(term, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a deal - * Updates the properties of a deal. For more information, see the tutorial for updating a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {module:model/UpdateDealRequest} opts.updateDealRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAddedDeal} and HTTP response - */ - updateDealWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updateDealRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateDeal"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetAddedDeal; - return this.apiClient.callApi( - '/deals/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a deal - * Updates the properties of a deal. For more information, see the tutorial for updating a deal. - * @param {Number} id The ID of the deal - * @param {Object} opts Optional parameters - * @param {module:model/UpdateDealRequest} opts.updateDealRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAddedDeal} - */ - updateDeal(id, opts) { - return this.updateDealWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update the product attached to a deal - * Updates the details of the product that has been attached to a deal. - * @param {Number} id The ID of the deal - * @param {Number} productAttachmentId The ID of the deal-product (the ID of the product attached to the deal) - * @param {Object} opts Optional parameters - * @param {module:model/UpdateDealProduct} opts.updateDealProduct - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProductAttachmentDetails} and HTTP response - */ - updateDealProductWithHttpInfo(id, productAttachmentId, opts) { - opts = opts || {}; - let postBody = opts['updateDealProduct']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateDealProduct"); - } - - // verify the required parameter 'productAttachmentId' is set - if (productAttachmentId === undefined || productAttachmentId === null) { - throw new Error("Missing the required parameter 'productAttachmentId' when calling updateDealProduct"); - } - - - let pathParams = { - 'id': id, - 'product_attachment_id': productAttachmentId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProductAttachmentDetails; - return this.apiClient.callApi( - '/deals/{id}/products/{product_attachment_id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update the product attached to a deal - * Updates the details of the product that has been attached to a deal. - * @param {Number} id The ID of the deal - * @param {Number} productAttachmentId The ID of the deal-product (the ID of the product attached to the deal) - * @param {Object} opts Optional parameters - * @param {module:model/UpdateDealProduct} opts.updateDealProduct - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProductAttachmentDetails} - */ - updateDealProduct(id, productAttachmentId, opts) { - return this.updateDealProductWithHttpInfo(id, productAttachmentId, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/FilesApi.js b/src/api/FilesApi.js deleted file mode 100644 index b423082c..00000000 --- a/src/api/FilesApi.js +++ /dev/null @@ -1,688 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddFile from '../model/AddFile'; -import CreateRemoteFileAndLinkItToItem from '../model/CreateRemoteFileAndLinkItToItem'; -import DeleteFile from '../model/DeleteFile'; -import GetAllFiles from '../model/GetAllFiles'; -import GetOneFile from '../model/GetOneFile'; -import LinkRemoteFileToItem from '../model/LinkRemoteFileToItem'; -import UpdateFile from '../model/UpdateFile'; - -/** -* Files service. -* @module api/FilesApi -* @version 1.0.0 -*/ -export default class FilesApi { - - /** - * Constructs a new FilesApi. - * @alias module:api/FilesApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add file - * Lets you upload a file and associate it with a deal, person, organization, activity, product or lead. For more information, see the tutorial for adding a file. - * @param {File} file A single file, supplied in the multipart/form-data encoding and contained within the given boundaries - * @param {Object} opts Optional parameters - * @param {Number} opts.dealId The ID of the deal to associate file(s) with - * @param {Number} opts.personId The ID of the person to associate file(s) with - * @param {Number} opts.orgId The ID of the organization to associate file(s) with - * @param {Number} opts.productId The ID of the product to associate file(s) with - * @param {Number} opts.activityId The ID of the activity to associate file(s) with - * @param {String} opts.leadId The ID of the lead to associate file(s) with - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddFile} and HTTP response - */ - addFileWithHttpInfo(file, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'file' is set - if (file === undefined || file === null) { - throw new Error("Missing the required parameter 'file' when calling addFile"); - } - - - - - - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'file': file, - 'deal_id': opts['dealId'], - 'person_id': opts['personId'], - 'org_id': opts['orgId'], - 'product_id': opts['productId'], - 'activity_id': opts['activityId'], - 'lead_id': opts['leadId'], - }; - - let formParamArray = [ - 'file', - 'dealId', - 'personId', - 'orgId', - 'productId', - 'activityId', - 'leadId', - ]; - - let contentTypes = ['multipart/form-data', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = AddFile; - return this.apiClient.callApi( - '/files', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add file - * Lets you upload a file and associate it with a deal, person, organization, activity, product or lead. For more information, see the tutorial for adding a file. - * @param {File} file A single file, supplied in the multipart/form-data encoding and contained within the given boundaries - * @param {Object} opts Optional parameters - * @param {Number} opts.dealId The ID of the deal to associate file(s) with - * @param {Number} opts.personId The ID of the person to associate file(s) with - * @param {Number} opts.orgId The ID of the organization to associate file(s) with - * @param {Number} opts.productId The ID of the product to associate file(s) with - * @param {Number} opts.activityId The ID of the activity to associate file(s) with - * @param {String} opts.leadId The ID of the lead to associate file(s) with - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddFile} - */ - addFile(file, opts) { - return this.addFileWithHttpInfo(file, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Create a remote file and link it to an item - * Creates a new empty file in the remote location (`googledrive`) that will be linked to the item you supply. For more information, see the tutorial for adding a remote file. - * @param {module:model/String} fileType The file type - * @param {String} title The title of the file - * @param {module:model/String} itemType The item type - * @param {Number} itemId The ID of the item to associate the file with - * @param {module:model/String} remoteLocation The location type to send the file to. Only `googledrive` is supported at the moment. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateRemoteFileAndLinkItToItem} and HTTP response - */ - addFileAndLinkItWithHttpInfo(fileType, title, itemType, itemId, remoteLocation) { - const opts = {} - let postBody = null; - - // verify the required parameter 'fileType' is set - if (fileType === undefined || fileType === null) { - throw new Error("Missing the required parameter 'fileType' when calling addFileAndLinkIt"); - } - - // verify the required parameter 'title' is set - if (title === undefined || title === null) { - throw new Error("Missing the required parameter 'title' when calling addFileAndLinkIt"); - } - - // verify the required parameter 'itemType' is set - if (itemType === undefined || itemType === null) { - throw new Error("Missing the required parameter 'itemType' when calling addFileAndLinkIt"); - } - - // verify the required parameter 'itemId' is set - if (itemId === undefined || itemId === null) { - throw new Error("Missing the required parameter 'itemId' when calling addFileAndLinkIt"); - } - - // verify the required parameter 'remoteLocation' is set - if (remoteLocation === undefined || remoteLocation === null) { - throw new Error("Missing the required parameter 'remoteLocation' when calling addFileAndLinkIt"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'file_type': fileType, - 'title': title, - 'item_type': itemType, - 'item_id': itemId, - 'remote_location': remoteLocation, - }; - - let formParamArray = [ - 'fileType', - 'title', - 'itemType', - 'itemId', - 'remoteLocation', - ]; - - let contentTypes = ['application/x-www-form-urlencoded', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = CreateRemoteFileAndLinkItToItem; - return this.apiClient.callApi( - '/files/remote', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Create a remote file and link it to an item - * Creates a new empty file in the remote location (`googledrive`) that will be linked to the item you supply. For more information, see the tutorial for adding a remote file. - * @param {module:model/String} fileType The file type - * @param {String} title The title of the file - * @param {module:model/String} itemType The item type - * @param {Number} itemId The ID of the item to associate the file with - * @param {module:model/String} remoteLocation The location type to send the file to. Only `googledrive` is supported at the moment. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateRemoteFileAndLinkItToItem} - */ - addFileAndLinkIt(fileType, title, itemType, itemId, remoteLocation) { - return this.addFileAndLinkItWithHttpInfo(fileType, title, itemType, itemId, remoteLocation) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a file - * Marks a file as deleted. After 30 days, the file will be permanently deleted. - * @param {Number} id The ID of the file - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteFile} and HTTP response - */ - deleteFileWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteFile"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteFile; - return this.apiClient.callApi( - '/files/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a file - * Marks a file as deleted. After 30 days, the file will be permanently deleted. - * @param {Number} id The ID of the file - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteFile} - */ - deleteFile(id) { - return this.deleteFileWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Download one file - * Initializes a file download. - * @param {Number} id The ID of the file - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Blob} and HTTP response - */ - downloadFileWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling downloadFile"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/octet-stream', ]; - let returnType = 'Blob'; - return this.apiClient.callApi( - '/files/{id}/download', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Download one file - * Initializes a file download. - * @param {Number} id The ID of the file - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Blob} - */ - downloadFile(id) { - return this.downloadFileWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one file - * Returns data about a specific file. - * @param {Number} id The ID of the file - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOneFile} and HTTP response - */ - getFileWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getFile"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetOneFile; - return this.apiClient.callApi( - '/files/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one file - * Returns data about a specific file. - * @param {Number} id The ID of the file - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOneFile} - */ - getFile(id) { - return this.getFileWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all files - * Returns data about all files. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAllFiles} and HTTP response - */ - getFilesWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - let pathParams = { - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetAllFiles; - return this.apiClient.callApi( - '/files', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all files - * Returns data about all files. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAllFiles} - */ - getFiles(opts) { - return this.getFilesWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Link a remote file to an item - * Links an existing remote file (`googledrive`) to the item you supply. For more information, see the tutorial for adding a remote file. - * @param {module:model/String} itemType The item type - * @param {Number} itemId The ID of the item to associate the file with - * @param {String} remoteId The remote item ID - * @param {module:model/String} remoteLocation The location type to send the file to. Only `googledrive` is supported at the moment. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/LinkRemoteFileToItem} and HTTP response - */ - linkFileToItemWithHttpInfo(itemType, itemId, remoteId, remoteLocation) { - const opts = {} - let postBody = null; - - // verify the required parameter 'itemType' is set - if (itemType === undefined || itemType === null) { - throw new Error("Missing the required parameter 'itemType' when calling linkFileToItem"); - } - - // verify the required parameter 'itemId' is set - if (itemId === undefined || itemId === null) { - throw new Error("Missing the required parameter 'itemId' when calling linkFileToItem"); - } - - // verify the required parameter 'remoteId' is set - if (remoteId === undefined || remoteId === null) { - throw new Error("Missing the required parameter 'remoteId' when calling linkFileToItem"); - } - - // verify the required parameter 'remoteLocation' is set - if (remoteLocation === undefined || remoteLocation === null) { - throw new Error("Missing the required parameter 'remoteLocation' when calling linkFileToItem"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'item_type': itemType, - 'item_id': itemId, - 'remote_id': remoteId, - 'remote_location': remoteLocation, - }; - - let formParamArray = [ - 'itemType', - 'itemId', - 'remoteId', - 'remoteLocation', - ]; - - let contentTypes = ['application/x-www-form-urlencoded', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = LinkRemoteFileToItem; - return this.apiClient.callApi( - '/files/remoteLink', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Link a remote file to an item - * Links an existing remote file (`googledrive`) to the item you supply. For more information, see the tutorial for adding a remote file. - * @param {module:model/String} itemType The item type - * @param {Number} itemId The ID of the item to associate the file with - * @param {String} remoteId The remote item ID - * @param {module:model/String} remoteLocation The location type to send the file to. Only `googledrive` is supported at the moment. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LinkRemoteFileToItem} - */ - linkFileToItem(itemType, itemId, remoteId, remoteLocation) { - return this.linkFileToItemWithHttpInfo(itemType, itemId, remoteId, remoteLocation) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update file details - * Updates the properties of a file. - * @param {Number} id The ID of the file - * @param {Object} opts Optional parameters - * @param {String} opts.name The visible name of the file - * @param {String} opts.description The description of the file - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateFile} and HTTP response - */ - updateFileWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateFile"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'name': opts['name'], - 'description': opts['description'], - }; - - let formParamArray = [ - 'name', - 'description', - ]; - - let contentTypes = ['application/x-www-form-urlencoded', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpdateFile; - return this.apiClient.callApi( - '/files/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update file details - * Updates the properties of a file. - * @param {Number} id The ID of the file - * @param {Object} opts Optional parameters - * @param {String} opts.name The visible name of the file - * @param {String} opts.description The description of the file - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateFile} - */ - updateFile(id, opts) { - return this.updateFileWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/FiltersApi.js b/src/api/FiltersApi.js deleted file mode 100644 index f40652c2..00000000 --- a/src/api/FiltersApi.js +++ /dev/null @@ -1,511 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddFilterRequest from '../model/AddFilterRequest'; -import FilterType from '../model/FilterType'; -import FiltersBulkDeleteResponse from '../model/FiltersBulkDeleteResponse'; -import FiltersBulkGetResponse from '../model/FiltersBulkGetResponse'; -import FiltersDeleteResponse from '../model/FiltersDeleteResponse'; -import FiltersGetResponse from '../model/FiltersGetResponse'; -import FiltersPostResponse from '../model/FiltersPostResponse'; -import UpdateFilterRequest from '../model/UpdateFilterRequest'; - -/** -* Filters service. -* @module api/FiltersApi -* @version 1.0.0 -*/ -export default class FiltersApi { - - /** - * Constructs a new FiltersApi. - * @alias module:api/FiltersApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a new filter - * Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with 'AND', and only two second level condition groups are supported of which one must be glued with 'AND' and the second with 'OR'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for adding a filter. - * @param {Object} opts Optional parameters - * @param {module:model/AddFilterRequest} opts.addFilterRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FiltersPostResponse} and HTTP response - */ - addFilterWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['addFilterRequest']; - - if (opts['name'] === undefined || opts['name'] === null) { - throw new Error("Missing the required parameter 'name' when calling addFilter"); - } - if (opts['conditions'] === undefined || opts['conditions'] === null) { - throw new Error("Missing the required parameter 'conditions' when calling addFilter"); - } - if (opts['type'] === undefined || opts['type'] === null) { - throw new Error("Missing the required parameter 'type' when calling addFilter"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FiltersPostResponse; - return this.apiClient.callApi( - '/filters', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new filter - * Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with 'AND', and only two second level condition groups are supported of which one must be glued with 'AND' and the second with 'OR'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for adding a filter. - * @param {Object} opts Optional parameters - * @param {module:model/AddFilterRequest} opts.addFilterRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FiltersPostResponse} - */ - addFilter(opts) { - return this.addFilterWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a filter - * Marks a filter as deleted. - * @param {Number} id The ID of the filter - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FiltersDeleteResponse} and HTTP response - */ - deleteFilterWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteFilter"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FiltersDeleteResponse; - return this.apiClient.callApi( - '/filters/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a filter - * Marks a filter as deleted. - * @param {Number} id The ID of the filter - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FiltersDeleteResponse} - */ - deleteFilter(id) { - return this.deleteFilterWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete multiple filters in bulk - * Marks multiple filters as deleted. - * @param {String} ids The comma-separated filter IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FiltersBulkDeleteResponse} and HTTP response - */ - deleteFiltersWithHttpInfo(ids) { - const opts = {} - let postBody = null; - - // verify the required parameter 'ids' is set - if (ids === undefined || ids === null) { - throw new Error("Missing the required parameter 'ids' when calling deleteFilters"); - } - - let pathParams = { - }; - let queryParams = { - 'ids': ids, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FiltersBulkDeleteResponse; - return this.apiClient.callApi( - '/filters', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete multiple filters in bulk - * Marks multiple filters as deleted. - * @param {String} ids The comma-separated filter IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FiltersBulkDeleteResponse} - */ - deleteFilters(ids) { - return this.deleteFiltersWithHttpInfo(ids) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one filter - * Returns data about a specific filter. Note that this also returns the condition lines of the filter. - * @param {Number} id The ID of the filter - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FiltersGetResponse} and HTTP response - */ - getFilterWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getFilter"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FiltersGetResponse; - return this.apiClient.callApi( - '/filters/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one filter - * Returns data about a specific filter. Note that this also returns the condition lines of the filter. - * @param {Number} id The ID of the filter - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FiltersGetResponse} - */ - getFilter(id) { - return this.getFilterWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all filter helpers - * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to add or update filters. For more information, see the tutorial for adding a filter. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - getFilterHelpersWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Object; - return this.apiClient.callApi( - '/filters/helpers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all filter helpers - * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to add or update filters. For more information, see the tutorial for adding a filter. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - getFilterHelpers() { - return this.getFilterHelpersWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all filters - * Returns data about all filters. - * @param {Object} opts Optional parameters - * @param {module:model/FilterType} opts.type The types of filters to fetch - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FiltersBulkGetResponse} and HTTP response - */ - getFiltersWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - let pathParams = { - }; - let queryParams = { - 'type': opts['type'] === undefined ? opts['type'] : opts['type'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FiltersBulkGetResponse; - return this.apiClient.callApi( - '/filters', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all filters - * Returns data about all filters. - * @param {Object} opts Optional parameters - * @param {module:model/FilterType} opts.type The types of filters to fetch - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FiltersBulkGetResponse} - */ - getFilters(opts) { - return this.getFiltersWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update filter - * Updates an existing filter. - * @param {Number} id The ID of the filter - * @param {Object} opts Optional parameters - * @param {module:model/UpdateFilterRequest} opts.updateFilterRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FiltersPostResponse} and HTTP response - */ - updateFilterWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updateFilterRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateFilter"); - } - - if (opts['conditions'] === undefined || opts['conditions'] === null) { - throw new Error("Missing the required parameter 'conditions' when calling updateFilter"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FiltersPostResponse; - return this.apiClient.callApi( - '/filters/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update filter - * Updates an existing filter. - * @param {Number} id The ID of the filter - * @param {Object} opts Optional parameters - * @param {module:model/UpdateFilterRequest} opts.updateFilterRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FiltersPostResponse} - */ - updateFilter(id, opts) { - return this.updateFilterWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/GlobalMessagesApi.js b/src/api/GlobalMessagesApi.js deleted file mode 100644 index 09e8c27d..00000000 --- a/src/api/GlobalMessagesApi.js +++ /dev/null @@ -1,169 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import GlobalMessageDelete from '../model/GlobalMessageDelete'; -import GlobalMessageGet from '../model/GlobalMessageGet'; - -/** -* GlobalMessages service. -* @module api/GlobalMessagesApi -* @version 1.0.0 -*/ -export default class GlobalMessagesApi { - - /** - * Constructs a new GlobalMessagesApi. - * @alias module:api/GlobalMessagesApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - - /** - * Dismiss a global message - * Removes a global message from being shown if the message is dismissible. - * @param {Number} id The ID of the global message to be dismissed - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GlobalMessageDelete} and HTTP response - */ - deleteGlobalMessageWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteGlobalMessage"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', ]; - let accepts = ['application/json', ]; - let returnType = GlobalMessageDelete; - return this.apiClient.callApi( - '/globalMessages/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Dismiss a global message - * Removes a global message from being shown if the message is dismissible. - * @param {Number} id The ID of the global message to be dismissed - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GlobalMessageDelete} - */ - deleteGlobalMessage(id) { - return this.deleteGlobalMessageWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get global messages - * Returns data about the global messages to display for the authorized user. - * @param {Object} opts Optional parameters - * @param {Number} opts.limit The number of messages to get from 1 to 100. The message number 1 is returned by default. (default to 1) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GlobalMessageGet} and HTTP response - */ - getGlobalMessagesWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - let pathParams = { - }; - let queryParams = { - 'limit': opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', ]; - let accepts = ['application/json', ]; - let returnType = GlobalMessageGet; - return this.apiClient.callApi( - '/globalMessages', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get global messages - * Returns data about the global messages to display for the authorized user. - * @param {Object} opts Optional parameters - * @param {Number} opts.limit The number of messages to get from 1 to 100. The message number 1 is returned by default. (default to 1) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GlobalMessageGet} - */ - getGlobalMessages(opts) { - return this.getGlobalMessagesWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/GoalsApi.js b/src/api/GoalsApi.js deleted file mode 100644 index edc74a3e..00000000 --- a/src/api/GoalsApi.js +++ /dev/null @@ -1,452 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import BasicGoal from '../model/BasicGoal'; -import DeleteGoalResponse from '../model/DeleteGoalResponse'; -import GetGoalResultResponse from '../model/GetGoalResultResponse'; -import GetGoalsResponse from '../model/GetGoalsResponse'; -import NewGoal from '../model/NewGoal'; -import UpsertGoalResponse from '../model/UpsertGoalResponse'; - -/** -* Goals service. -* @module api/GoalsApi -* @version 1.0.0 -*/ -export default class GoalsApi { - - /** - * Constructs a new GoalsApi. - * @alias module:api/GoalsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a new goal - * Adds a new goal. Along with adding a new goal, a report is created to track the progress of your goal. - * @param {Object} opts Optional parameters - * @param {module:model/NewGoal} opts.newGoal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpsertGoalResponse} and HTTP response - */ - addGoalWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['newGoal']; - - if (opts['assignee'] === undefined || opts['assignee'] === null) { - throw new Error("Missing the required parameter 'assignee' when calling addGoal"); - } - if (opts['type'] === undefined || opts['type'] === null) { - throw new Error("Missing the required parameter 'type' when calling addGoal"); - } - if (opts['expected_outcome'] === undefined || opts['expected_outcome'] === null) { - throw new Error("Missing the required parameter 'expected_outcome' when calling addGoal"); - } - if (opts['duration'] === undefined || opts['duration'] === null) { - throw new Error("Missing the required parameter 'duration' when calling addGoal"); - } - if (opts['interval'] === undefined || opts['interval'] === null) { - throw new Error("Missing the required parameter 'interval' when calling addGoal"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpsertGoalResponse; - return this.apiClient.callApi( - '/goals', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new goal - * Adds a new goal. Along with adding a new goal, a report is created to track the progress of your goal. - * @param {Object} opts Optional parameters - * @param {module:model/NewGoal} opts.newGoal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpsertGoalResponse} - */ - addGoal(opts) { - return this.addGoalWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete existing goal - * Marks a goal as deleted. - * @param {String} id The ID of the goal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteGoalResponse} and HTTP response - */ - deleteGoalWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteGoal"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteGoalResponse; - return this.apiClient.callApi( - '/goals/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete existing goal - * Marks a goal as deleted. - * @param {String} id The ID of the goal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteGoalResponse} - */ - deleteGoal(id) { - return this.deleteGoalWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get result of a goal - * Gets the progress of a goal for the specified period. - * @param {String} id The ID of the goal that the results are looked for - * @param {Date} periodStart The start date of the period for which to find the goal's progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date. - * @param {Date} periodEnd The end date of the period for which to find the goal's progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetGoalResultResponse} and HTTP response - */ - getGoalResultWithHttpInfo(id, periodStart, periodEnd) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getGoalResult"); - } - - // verify the required parameter 'periodStart' is set - if (periodStart === undefined || periodStart === null) { - throw new Error("Missing the required parameter 'periodStart' when calling getGoalResult"); - } - - // verify the required parameter 'periodEnd' is set - if (periodEnd === undefined || periodEnd === null) { - throw new Error("Missing the required parameter 'periodEnd' when calling getGoalResult"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'period.start': periodStart, - 'period.end': periodEnd, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetGoalResultResponse; - return this.apiClient.callApi( - '/goals/{id}/results', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get result of a goal - * Gets the progress of a goal for the specified period. - * @param {String} id The ID of the goal that the results are looked for - * @param {Date} periodStart The start date of the period for which to find the goal's progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date. - * @param {Date} periodEnd The end date of the period for which to find the goal's progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetGoalResultResponse} - */ - getGoalResult(id, periodStart, periodEnd) { - return this.getGoalResultWithHttpInfo(id, periodStart, periodEnd) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Find goals - * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.typeName The type of the goal. If provided, everyone's goals will be returned. - * @param {String} opts.title The title of the goal - * @param {Boolean} opts.isActive Whether the goal is active or not (default to true) - * @param {Number} opts.assigneeId The ID of the user who's goal to fetch. When omitted, only your goals will be returned. - * @param {module:model/String} opts.assigneeType The type of the goal's assignee. If provided, everyone's goals will be returned. - * @param {Number} opts.expectedOutcomeTarget The numeric value of the outcome. If provided, everyone's goals will be returned. - * @param {module:model/String} opts.expectedOutcomeTrackingMetric The tracking metric of the expected outcome of the goal. If provided, everyone's goals will be returned. - * @param {Number} opts.expectedOutcomeCurrencyId The numeric ID of the goal's currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone's goals will be returned. - * @param {Array.} opts.typeParamsPipelineId An array of pipeline IDs or `null` for all pipelines. If provided, everyone's goals will be returned. - * @param {Number} opts.typeParamsStageId The ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone's goals will be returned. - * @param {Array.} opts.typeParamsActivityTypeId An array of IDs or `null` for all activity types. Only applicable for `activities_completed` and/or `activities_added` types of goals. If provided, everyone's goals will be returned. - * @param {Date} opts.periodStart The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too. - * @param {Date} opts.periodEnd The end date of the period for which to find goals. Date in format of YYYY-MM-DD. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetGoalsResponse} and HTTP response - */ - getGoalsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - - - - - - - - let pathParams = { - }; - let queryParams = { - 'type.name': opts['type.name'] === undefined ? opts['typeName'] : opts['type.name'], - 'title': opts['title'] === undefined ? opts['title'] : opts['title'], - 'is_active': opts['is_active'] === undefined ? opts['isActive'] : opts['is_active'], - 'assignee.id': opts['assignee.id'] === undefined ? opts['assigneeId'] : opts['assignee.id'], - 'assignee.type': opts['assignee.type'] === undefined ? opts['assigneeType'] : opts['assignee.type'], - 'expected_outcome.target': opts['expected_outcome.target'] === undefined ? opts['expectedOutcomeTarget'] : opts['expected_outcome.target'], - 'expected_outcome.tracking_metric': opts['expected_outcome.tracking_metric'] === undefined ? opts['expectedOutcomeTrackingMetric'] : opts['expected_outcome.tracking_metric'], - 'expected_outcome.currency_id': opts['expected_outcome.currency_id'] === undefined ? opts['expectedOutcomeCurrencyId'] : opts['expected_outcome.currency_id'], - 'type.params.pipeline_id': this.apiClient.buildCollectionParam(opts['typeParamsPipelineId'], 'csv'), - 'type.params.stage_id': opts['type.params.stage_id'] === undefined ? opts['typeParamsStageId'] : opts['type.params.stage_id'], - 'type.params.activity_type_id': this.apiClient.buildCollectionParam(opts['typeParamsActivityTypeId'], 'csv'), - 'period.start': opts['period.start'] === undefined ? opts['periodStart'] : opts['period.start'], - 'period.end': opts['period.end'] === undefined ? opts['periodEnd'] : opts['period.end'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetGoalsResponse; - return this.apiClient.callApi( - '/goals/find', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Find goals - * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.typeName The type of the goal. If provided, everyone's goals will be returned. - * @param {String} opts.title The title of the goal - * @param {Boolean} opts.isActive Whether the goal is active or not (default to true) - * @param {Number} opts.assigneeId The ID of the user who's goal to fetch. When omitted, only your goals will be returned. - * @param {module:model/String} opts.assigneeType The type of the goal's assignee. If provided, everyone's goals will be returned. - * @param {Number} opts.expectedOutcomeTarget The numeric value of the outcome. If provided, everyone's goals will be returned. - * @param {module:model/String} opts.expectedOutcomeTrackingMetric The tracking metric of the expected outcome of the goal. If provided, everyone's goals will be returned. - * @param {Number} opts.expectedOutcomeCurrencyId The numeric ID of the goal's currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone's goals will be returned. - * @param {Array.} opts.typeParamsPipelineId An array of pipeline IDs or `null` for all pipelines. If provided, everyone's goals will be returned. - * @param {Number} opts.typeParamsStageId The ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone's goals will be returned. - * @param {Array.} opts.typeParamsActivityTypeId An array of IDs or `null` for all activity types. Only applicable for `activities_completed` and/or `activities_added` types of goals. If provided, everyone's goals will be returned. - * @param {Date} opts.periodStart The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too. - * @param {Date} opts.periodEnd The end date of the period for which to find goals. Date in format of YYYY-MM-DD. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetGoalsResponse} - */ - getGoals(opts) { - return this.getGoalsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update existing goal - * Updates an existing goal. - * @param {String} id The ID of the goal - * @param {Object} opts Optional parameters - * @param {module:model/BasicGoal} opts.basicGoal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpsertGoalResponse} and HTTP response - */ - updateGoalWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['basicGoal']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateGoal"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpsertGoalResponse; - return this.apiClient.callApi( - '/goals/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update existing goal - * Updates an existing goal. - * @param {String} id The ID of the goal - * @param {Object} opts Optional parameters - * @param {module:model/BasicGoal} opts.basicGoal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpsertGoalResponse} - */ - updateGoal(id, opts) { - return this.updateGoalWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/ItemSearchApi.js b/src/api/ItemSearchApi.js deleted file mode 100644 index 7a8216cd..00000000 --- a/src/api/ItemSearchApi.js +++ /dev/null @@ -1,235 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import ItemSearchFieldResponse from '../model/ItemSearchFieldResponse'; -import ItemSearchResponse from '../model/ItemSearchResponse'; - -/** -* ItemSearch service. -* @module api/ItemSearchApi -* @version 1.0.0 -*/ -export default class ItemSearchApi { - - /** - * Constructs a new ItemSearchApi. - * @alias module:api/ItemSearchApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Perform a search from multiple item types - * Performs a search from your choice of item types and fields. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.itemTypes A comma-separated string array. The type of items to perform the search from. Defaults to all. - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:
Item typeField
Deal`custom_fields`, `notes`, `title`
Person`custom_fields`, `email`, `name`, `notes`, `phone`
Organization`address`, `custom_fields`, `name`, `notes`
Product`code`, `custom_fields`, `name`
Lead`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`
File`name`
Mail attachment`name`
Project `custom_fields`, `notes`, `title`, `description`

Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here.
When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. - * @param {Boolean} opts.searchForRelatedItems When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {module:model/String} opts.includeFields A comma-separated string array. Supports including optional fields in the results which are not provided by default. - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ItemSearchResponse} and HTTP response - */ - searchItemWithHttpInfo(term, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'term' is set - if (term === undefined || term === null) { - throw new Error("Missing the required parameter 'term' when calling searchItem"); - } - - - - - - - - - let pathParams = { - }; - let queryParams = { - 'term': term, - 'item_types': opts['item_types'] === undefined ? opts['itemTypes'] : opts['item_types'], - 'fields': opts['fields'] === undefined ? opts['fields'] : opts['fields'], - 'search_for_related_items': opts['search_for_related_items'] === undefined ? opts['searchForRelatedItems'] : opts['search_for_related_items'], - 'exact_match': opts['exact_match'] === undefined ? opts['exactMatch'] : opts['exact_match'], - 'include_fields': opts['include_fields'] === undefined ? opts['includeFields'] : opts['include_fields'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ItemSearchResponse; - return this.apiClient.callApi( - '/itemSearch', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Perform a search from multiple item types - * Performs a search from your choice of item types and fields. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.itemTypes A comma-separated string array. The type of items to perform the search from. Defaults to all. - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:
Item typeField
Deal`custom_fields`, `notes`, `title`
Person`custom_fields`, `email`, `name`, `notes`, `phone`
Organization`address`, `custom_fields`, `name`, `notes`
Product`code`, `custom_fields`, `name`
Lead`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`
File`name`
Mail attachment`name`
Project `custom_fields`, `notes`, `title`, `description`

Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here.
When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. - * @param {Boolean} opts.searchForRelatedItems When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {module:model/String} opts.includeFields A comma-separated string array. Supports including optional fields in the results which are not provided by default. - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ItemSearchResponse} - */ - searchItem(term, opts) { - return this.searchItemWithHttpInfo(term, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Perform a search using a specific field from an item type - * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {module:model/String} fieldType The type of the field to perform the search from - * @param {String} fieldKey The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. The search is case sensitive. (default to false) - * @param {Boolean} opts.returnItemIds Whether to return the IDs of the matching items or not. When not set or set to `0` or `false`, only distinct values of the searched field are returned. When set to `1` or `true`, the ID of each found item is returned. - * @param {Number} opts.start Pagination start - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ItemSearchFieldResponse} and HTTP response - */ - searchItemByFieldWithHttpInfo(term, fieldType, fieldKey, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'term' is set - if (term === undefined || term === null) { - throw new Error("Missing the required parameter 'term' when calling searchItemByField"); - } - - // verify the required parameter 'fieldType' is set - if (fieldType === undefined || fieldType === null) { - throw new Error("Missing the required parameter 'fieldType' when calling searchItemByField"); - } - - // verify the required parameter 'fieldKey' is set - if (fieldKey === undefined || fieldKey === null) { - throw new Error("Missing the required parameter 'fieldKey' when calling searchItemByField"); - } - - - - - - let pathParams = { - }; - let queryParams = { - 'term': term, - 'field_type': fieldType, - 'exact_match': opts['exact_match'] === undefined ? opts['exactMatch'] : opts['exact_match'], - 'field_key': fieldKey, - 'return_item_ids': opts['return_item_ids'] === undefined ? opts['returnItemIds'] : opts['return_item_ids'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ItemSearchFieldResponse; - return this.apiClient.callApi( - '/itemSearch/field', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Perform a search using a specific field from an item type - * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {module:model/String} fieldType The type of the field to perform the search from - * @param {String} fieldKey The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - * @param {Object} opts Optional parameters - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. The search is case sensitive. (default to false) - * @param {Boolean} opts.returnItemIds Whether to return the IDs of the matching items or not. When not set or set to `0` or `false`, only distinct values of the searched field are returned. When set to `1` or `true`, the ID of each found item is returned. - * @param {Number} opts.start Pagination start - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ItemSearchFieldResponse} - */ - searchItemByField(term, fieldType, fieldKey, opts) { - return this.searchItemByFieldWithHttpInfo(term, fieldType, fieldKey, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/LeadLabelsApi.js b/src/api/LeadLabelsApi.js deleted file mode 100644 index 372c7738..00000000 --- a/src/api/LeadLabelsApi.js +++ /dev/null @@ -1,307 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddLeadLabelRequest from '../model/AddLeadLabelRequest'; -import DeleteLeadIdResponse from '../model/DeleteLeadIdResponse'; -import GetLeadLabelsResponse from '../model/GetLeadLabelsResponse'; -import LeadNotFoundResponse from '../model/LeadNotFoundResponse'; -import UpdateLeadLabelRequest from '../model/UpdateLeadLabelRequest'; -import UpsertLeadLabelResponse from '../model/UpsertLeadLabelResponse'; - -/** -* LeadLabels service. -* @module api/LeadLabelsApi -* @version 1.0.0 -*/ -export default class LeadLabelsApi { - - /** - * Constructs a new LeadLabelsApi. - * @alias module:api/LeadLabelsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a lead label - * Creates a lead label. - * @param {Object} opts Optional parameters - * @param {module:model/AddLeadLabelRequest} opts.addLeadLabelRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpsertLeadLabelResponse} and HTTP response - */ - addLeadLabelWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['addLeadLabelRequest']; - - if (opts['name'] === undefined || opts['name'] === null) { - throw new Error("Missing the required parameter 'name' when calling addLeadLabel"); - } - if (opts['color'] === undefined || opts['color'] === null) { - throw new Error("Missing the required parameter 'color' when calling addLeadLabel"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpsertLeadLabelResponse; - return this.apiClient.callApi( - '/leadLabels', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a lead label - * Creates a lead label. - * @param {Object} opts Optional parameters - * @param {module:model/AddLeadLabelRequest} opts.addLeadLabelRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpsertLeadLabelResponse} - */ - addLeadLabel(opts) { - return this.addLeadLabelWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a lead label - * Deletes a specific lead label. - * @param {String} id The ID of the lead label - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteLeadIdResponse} and HTTP response - */ - deleteLeadLabelWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteLeadLabel"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteLeadIdResponse; - return this.apiClient.callApi( - '/leadLabels/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a lead label - * Deletes a specific lead label. - * @param {String} id The ID of the lead label - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteLeadIdResponse} - */ - deleteLeadLabel(id) { - return this.deleteLeadLabelWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all lead labels - * Returns details of all lead labels. This endpoint does not support pagination and all labels are always returned. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLeadLabelsResponse} and HTTP response - */ - getLeadLabelsWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetLeadLabelsResponse; - return this.apiClient.callApi( - '/leadLabels', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all lead labels - * Returns details of all lead labels. This endpoint does not support pagination and all labels are always returned. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLeadLabelsResponse} - */ - getLeadLabels() { - return this.getLeadLabelsWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a lead label - * Updates one or more properties of a lead label. Only properties included in the request will be updated. - * @param {String} id The ID of the lead label - * @param {Object} opts Optional parameters - * @param {module:model/UpdateLeadLabelRequest} opts.updateLeadLabelRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpsertLeadLabelResponse} and HTTP response - */ - updateLeadLabelWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updateLeadLabelRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateLeadLabel"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpsertLeadLabelResponse; - return this.apiClient.callApi( - '/leadLabels/{id}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a lead label - * Updates one or more properties of a lead label. Only properties included in the request will be updated. - * @param {String} id The ID of the lead label - * @param {Object} opts Optional parameters - * @param {module:model/UpdateLeadLabelRequest} opts.updateLeadLabelRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpsertLeadLabelResponse} - */ - updateLeadLabel(id, opts) { - return this.updateLeadLabelWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/LeadSourcesApi.js b/src/api/LeadSourcesApi.js deleted file mode 100644 index c54da6b9..00000000 --- a/src/api/LeadSourcesApi.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import GetLeadsSourceResponse from '../model/GetLeadsSourceResponse'; - -/** -* LeadSources service. -* @module api/LeadSourcesApi -* @version 1.0.0 -*/ -export default class LeadSourcesApi { - - /** - * Constructs a new LeadSourcesApi. - * @alias module:api/LeadSourcesApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Get all lead sources - * Returns all lead sources. Please note that the list of lead sources is fixed, it cannot be modified. All leads created through the Pipedrive API will have a lead source `API` assigned. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLeadsSourceResponse} and HTTP response - */ - getLeadSourcesWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetLeadsSourceResponse; - return this.apiClient.callApi( - '/leadSources', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all lead sources - * Returns all lead sources. Please note that the list of lead sources is fixed, it cannot be modified. All leads created through the Pipedrive API will have a lead source `API` assigned. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLeadsSourceResponse} - */ - getLeadSources() { - return this.getLeadSourcesWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/LeadsApi.js b/src/api/LeadsApi.js deleted file mode 100644 index be2fa1fb..00000000 --- a/src/api/LeadsApi.js +++ /dev/null @@ -1,568 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddLeadRequest from '../model/AddLeadRequest'; -import GetLeadIdResponse from '../model/GetLeadIdResponse'; -import GetLeadResponse from '../model/GetLeadResponse'; -import GetLeadsResponse from '../model/GetLeadsResponse'; -import LeadNotFoundResponse from '../model/LeadNotFoundResponse'; -import LeadSearchResponse from '../model/LeadSearchResponse'; -import UpdateLeadRequest from '../model/UpdateLeadRequest'; -import UserIDs from '../model/UserIDs'; - -/** -* Leads service. -* @module api/LeadsApi -* @version 1.0.0 -*/ -export default class LeadsApi { - - /** - * Constructs a new LeadsApi. - * @alias module:api/LeadsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a lead - * Creates a lead. A lead always has to be linked to a person or an organization or both. All leads created through the Pipedrive API will have a lead source and origin set to `API`. Here's the tutorial for adding a lead. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals. See an example given in the updating custom fields' values tutorial. - * @param {Object} opts Optional parameters - * @param {module:model/AddLeadRequest} opts.addLeadRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLeadResponse} and HTTP response - */ - addLeadWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['addLeadRequest']; - - if (opts['title'] === undefined || opts['title'] === null) { - throw new Error("Missing the required parameter 'title' when calling addLead"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetLeadResponse; - return this.apiClient.callApi( - '/leads', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a lead - * Creates a lead. A lead always has to be linked to a person or an organization or both. All leads created through the Pipedrive API will have a lead source and origin set to `API`. Here's the tutorial for adding a lead. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals. See an example given in the updating custom fields' values tutorial. - * @param {Object} opts Optional parameters - * @param {module:model/AddLeadRequest} opts.addLeadRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLeadResponse} - */ - addLead(opts) { - return this.addLeadWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a lead - * Deletes a specific lead. - * @param {String} id The ID of the lead - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLeadIdResponse} and HTTP response - */ - deleteLeadWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteLead"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetLeadIdResponse; - return this.apiClient.callApi( - '/leads/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a lead - * Deletes a specific lead. - * @param {String} id The ID of the lead - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLeadIdResponse} - */ - deleteLead(id) { - return this.deleteLeadWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one lead - * Returns details of a specific lead. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. - * @param {String} id The ID of the lead - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLeadResponse} and HTTP response - */ - getLeadWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getLead"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetLeadResponse; - return this.apiClient.callApi( - '/leads/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one lead - * Returns details of a specific lead. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. - * @param {String} id The ID of the lead - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLeadResponse} - */ - getLead(id) { - return this.getLeadWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List permitted users - * Lists the users permitted to access a lead. - * @param {String} id The ID of the lead - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserIDs} and HTTP response - */ - getLeadUsersWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getLeadUsers"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserIDs; - return this.apiClient.callApi( - '/leads/{id}/permittedUsers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List permitted users - * Lists the users permitted to access a lead. - * @param {String} id The ID of the lead - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserIDs} - */ - getLeadUsers(id) { - return this.getLeadUsersWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all leads - * Returns multiple leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals. - * @param {Object} opts Optional parameters - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - * @param {Number} opts.start For pagination, the position that represents the first result for the page - * @param {module:model/String} opts.archivedStatus Filtering based on the archived status of a lead. If not provided, `All` is used. - * @param {Number} opts.ownerId If supplied, only leads matching the given user will be returned. However, `filter_id` takes precedence over `owner_id` when supplied. - * @param {Number} opts.personId If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied. - * @param {Number} opts.organizationId If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied. - * @param {Number} opts.filterId The ID of the filter to use - * @param {module:model/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). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLeadsResponse} and HTTP response - */ - getLeadsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - - - let pathParams = { - }; - let queryParams = { - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'archived_status': opts['archived_status'] === undefined ? opts['archivedStatus'] : opts['archived_status'], - 'owner_id': opts['owner_id'] === undefined ? opts['ownerId'] : opts['owner_id'], - 'person_id': opts['person_id'] === undefined ? opts['personId'] : opts['person_id'], - 'organization_id': opts['organization_id'] === undefined ? opts['organizationId'] : opts['organization_id'], - 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetLeadsResponse; - return this.apiClient.callApi( - '/leads', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all leads - * Returns multiple leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields' structure from deals. - * @param {Object} opts Optional parameters - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - * @param {Number} opts.start For pagination, the position that represents the first result for the page - * @param {module:model/String} opts.archivedStatus Filtering based on the archived status of a lead. If not provided, `All` is used. - * @param {Number} opts.ownerId If supplied, only leads matching the given user will be returned. However, `filter_id` takes precedence over `owner_id` when supplied. - * @param {Number} opts.personId If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied. - * @param {Number} opts.organizationId If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied. - * @param {Number} opts.filterId The ID of the filter to use - * @param {module:model/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). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLeadsResponse} - */ - getLeads(opts) { - return this.getLeadsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Search leads - * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them. - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {Number} opts.personId Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. - * @param {Number} opts.organizationId Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. - * @param {module:model/String} opts.includeFields Supports including optional fields in the results which are not provided by default - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/LeadSearchResponse} and HTTP response - */ - searchLeadsWithHttpInfo(term, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'term' is set - if (term === undefined || term === null) { - throw new Error("Missing the required parameter 'term' when calling searchLeads"); - } - - - - - - - - - let pathParams = { - }; - let queryParams = { - 'term': term, - 'fields': opts['fields'] === undefined ? opts['fields'] : opts['fields'], - 'exact_match': opts['exact_match'] === undefined ? opts['exactMatch'] : opts['exact_match'], - 'person_id': opts['person_id'] === undefined ? opts['personId'] : opts['person_id'], - 'organization_id': opts['organization_id'] === undefined ? opts['organizationId'] : opts['organization_id'], - 'include_fields': opts['include_fields'] === undefined ? opts['includeFields'] : opts['include_fields'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = LeadSearchResponse; - return this.apiClient.callApi( - '/leads/search', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Search leads - * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them. - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {Number} opts.personId Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. - * @param {Number} opts.organizationId Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. - * @param {module:model/String} opts.includeFields Supports including optional fields in the results which are not provided by default - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/LeadSearchResponse} - */ - searchLeads(term, opts) { - return this.searchLeadsWithHttpInfo(term, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a lead - * Updates one or more properties of a lead. Only properties included in the request will be updated. Send `null` to unset a property (applicable for example for `value`, `person_id` or `organization_id`). If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. See an example given in the updating custom fields’ values tutorial. - * @param {String} id The ID of the lead - * @param {Object} opts Optional parameters - * @param {module:model/UpdateLeadRequest} opts.updateLeadRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLeadResponse} and HTTP response - */ - updateLeadWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updateLeadRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateLead"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetLeadResponse; - return this.apiClient.callApi( - '/leads/{id}', 'PATCH', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a lead - * Updates one or more properties of a lead. Only properties included in the request will be updated. Send `null` to unset a property (applicable for example for `value`, `person_id` or `organization_id`). If a lead contains custom fields, the fields' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field's value hasn't been set for the lead, it won't appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. See an example given in the updating custom fields’ values tutorial. - * @param {String} id The ID of the lead - * @param {Object} opts Optional parameters - * @param {module:model/UpdateLeadRequest} opts.updateLeadRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLeadResponse} - */ - updateLead(id, opts) { - return this.updateLeadWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/LegacyTeamsApi.js b/src/api/LegacyTeamsApi.js deleted file mode 100644 index d38ca269..00000000 --- a/src/api/LegacyTeamsApi.js +++ /dev/null @@ -1,610 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddTeamUserRequest from '../model/AddTeamUserRequest'; -import CreateTeam from '../model/CreateTeam'; -import DeleteTeamUserRequest from '../model/DeleteTeamUserRequest'; -import FailResponse from '../model/FailResponse'; -import NumberBooleanDefault0 from '../model/NumberBooleanDefault0'; -import Team from '../model/Team'; -import Teams from '../model/Teams'; -import UpdateTeam from '../model/UpdateTeam'; -import UserIDs from '../model/UserIDs'; - -/** -* LegacyTeams service. -* @module api/LegacyTeamsApi -* @version 1.0.0 -*/ -export default class LegacyTeamsApi { - - /** - * Constructs a new LegacyTeamsApi. - * @alias module:api/LegacyTeamsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a new team - * Adds a new team to the company and returns the created object. - * @param {Object} opts Optional parameters - * @param {module:model/CreateTeam} opts.createTeam - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Team} and HTTP response - */ - addTeamWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['createTeam']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Team; - return this.apiClient.callApi( - '/legacyTeams', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new team - * Adds a new team to the company and returns the created object. - * @param {Object} opts Optional parameters - * @param {module:model/CreateTeam} opts.createTeam - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Team} - */ - addTeam(opts) { - return this.addTeamWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add users to a team - * Adds users to an existing team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/AddTeamUserRequest} opts.addTeamUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserIDs} and HTTP response - */ - addTeamUserWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['addTeamUserRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addTeamUser"); - } - - if (opts['users'] === undefined || opts['users'] === null) { - throw new Error("Missing the required parameter 'users' when calling addTeamUser"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserIDs; - return this.apiClient.callApi( - '/legacyTeams/{id}/users', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add users to a team - * Adds users to an existing team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/AddTeamUserRequest} opts.addTeamUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserIDs} - */ - addTeamUser(id, opts) { - return this.addTeamUserWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete users from a team - * Deletes users from an existing team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/DeleteTeamUserRequest} opts.deleteTeamUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserIDs} and HTTP response - */ - deleteTeamUserWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['deleteTeamUserRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteTeamUser"); - } - - if (opts['users'] === undefined || opts['users'] === null) { - throw new Error("Missing the required parameter 'users' when calling deleteTeamUser"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserIDs; - return this.apiClient.callApi( - '/legacyTeams/{id}/users', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete users from a team - * Deletes users from an existing team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/DeleteTeamUserRequest} opts.deleteTeamUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserIDs} - */ - deleteTeamUser(id, opts) { - return this.deleteTeamUserWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get a single team - * Returns data about a specific team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Team} and HTTP response - */ - getTeamWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getTeam"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'skip_users': opts['skip_users'] === undefined ? opts['skipUsers'] : opts['skip_users'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Team; - return this.apiClient.callApi( - '/legacyTeams/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get a single team - * Returns data about a specific team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Team} - */ - getTeam(id, opts) { - return this.getTeamWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all users in a team - * Returns a list of all user IDs within a team. - * @param {Number} id The ID of the team - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserIDs} and HTTP response - */ - getTeamUsersWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getTeamUsers"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserIDs; - return this.apiClient.callApi( - '/legacyTeams/{id}/users', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all users in a team - * Returns a list of all user IDs within a team. - * @param {Number} id The ID of the team - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserIDs} - */ - getTeamUsers(id) { - return this.getTeamUsersWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all teams - * Returns data about teams within the company. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.orderBy The field name to sort returned teams by (default to 'id') - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Teams} and HTTP response - */ - getTeamsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - let pathParams = { - }; - let queryParams = { - 'order_by': opts['order_by'] === undefined ? opts['orderBy'] : opts['order_by'], - 'skip_users': opts['skip_users'] === undefined ? opts['skipUsers'] : opts['skip_users'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Teams; - return this.apiClient.callApi( - '/legacyTeams', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all teams - * Returns data about teams within the company. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.orderBy The field name to sort returned teams by (default to 'id') - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Teams} - */ - getTeams(opts) { - return this.getTeamsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all teams of a user - * Returns data about all teams which have the specified user as a member. - * @param {Number} id The ID of the user - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.orderBy The field name to sort returned teams by (default to 'id') - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Teams} and HTTP response - */ - getUserTeamsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getUserTeams"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'order_by': opts['order_by'] === undefined ? opts['orderBy'] : opts['order_by'], - 'skip_users': opts['skip_users'] === undefined ? opts['skipUsers'] : opts['skip_users'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Teams; - return this.apiClient.callApi( - '/legacyTeams/user/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all teams of a user - * Returns data about all teams which have the specified user as a member. - * @param {Number} id The ID of the user - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.orderBy The field name to sort returned teams by (default to 'id') - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Teams} - */ - getUserTeams(id, opts) { - return this.getUserTeamsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a team - * Updates an existing team and returns the updated object. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/UpdateTeam} opts.updateTeam - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Team} and HTTP response - */ - updateTeamWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updateTeam']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateTeam"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Team; - return this.apiClient.callApi( - '/legacyTeams/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a team - * Updates an existing team and returns the updated object. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/UpdateTeam} opts.updateTeam - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Team} - */ - updateTeam(id, opts) { - return this.updateTeamWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/MailboxApi.js b/src/api/MailboxApi.js deleted file mode 100644 index 1abfe205..00000000 --- a/src/api/MailboxApi.js +++ /dev/null @@ -1,484 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import MailMessage from '../model/MailMessage'; -import MailThread from '../model/MailThread'; -import MailThreadDelete from '../model/MailThreadDelete'; -import MailThreadMessages from '../model/MailThreadMessages'; -import MailThreadOne from '../model/MailThreadOne'; -import MailThreadPut from '../model/MailThreadPut'; -import NumberBoolean from '../model/NumberBoolean'; -import NumberBooleanDefault0 from '../model/NumberBooleanDefault0'; - -/** -* Mailbox service. -* @module api/MailboxApi -* @version 1.0.0 -*/ -export default class MailboxApi { - - /** - * Constructs a new MailboxApi. - * @alias module:api/MailboxApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Delete mail thread - * Marks a mail thread as deleted. - * @param {Number} id The ID of the mail thread - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MailThreadDelete} and HTTP response - */ - deleteMailThreadWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteMailThread"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = MailThreadDelete; - return this.apiClient.callApi( - '/mailbox/mailThreads/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete mail thread - * Marks a mail thread as deleted. - * @param {Number} id The ID of the mail thread - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MailThreadDelete} - */ - deleteMailThread(id) { - return this.deleteMailThreadWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one mail message - * Returns data about a specific mail message. - * @param {Number} id The ID of the mail message to fetch - * @param {Object} opts Optional parameters - * @param {module:model/NumberBooleanDefault0} opts.includeBody Whether to include the full message body or not. `0` = Don't include, `1` = Include. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MailMessage} and HTTP response - */ - getMailMessageWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getMailMessage"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'include_body': opts['include_body'] === undefined ? opts['includeBody'] : opts['include_body'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = MailMessage; - return this.apiClient.callApi( - '/mailbox/mailMessages/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one mail message - * Returns data about a specific mail message. - * @param {Number} id The ID of the mail message to fetch - * @param {Object} opts Optional parameters - * @param {module:model/NumberBooleanDefault0} opts.includeBody Whether to include the full message body or not. `0` = Don't include, `1` = Include. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MailMessage} - */ - getMailMessage(id, opts) { - return this.getMailMessageWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one mail thread - * Returns a specific mail thread. - * @param {Number} id The ID of the mail thread - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MailThreadOne} and HTTP response - */ - getMailThreadWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getMailThread"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = MailThreadOne; - return this.apiClient.callApi( - '/mailbox/mailThreads/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one mail thread - * Returns a specific mail thread. - * @param {Number} id The ID of the mail thread - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MailThreadOne} - */ - getMailThread(id) { - return this.getMailThreadWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all mail messages of mail thread - * Returns all the mail messages inside a specified mail thread. - * @param {Number} id The ID of the mail thread - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MailThreadMessages} and HTTP response - */ - getMailThreadMessagesWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getMailThreadMessages"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = MailThreadMessages; - return this.apiClient.callApi( - '/mailbox/mailThreads/{id}/mailMessages', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all mail messages of mail thread - * Returns all the mail messages inside a specified mail thread. - * @param {Number} id The ID of the mail thread - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MailThreadMessages} - */ - getMailThreadMessages(id) { - return this.getMailThreadMessagesWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get mail threads - * Returns mail threads in a specified folder ordered by the most recent message within. - * @param {module:model/String} folder The type of folder to fetch - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MailThread} and HTTP response - */ - getMailThreadsWithHttpInfo(folder, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'folder' is set - if (folder === undefined || folder === null) { - throw new Error("Missing the required parameter 'folder' when calling getMailThreads"); - } - - - - let pathParams = { - }; - let queryParams = { - 'folder': folder, - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = MailThread; - return this.apiClient.callApi( - '/mailbox/mailThreads', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get mail threads - * Returns mail threads in a specified folder ordered by the most recent message within. - * @param {module:model/String} folder The type of folder to fetch - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MailThread} - */ - getMailThreads(folder, opts) { - return this.getMailThreadsWithHttpInfo(folder, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update mail thread details - * Updates the properties of a mail thread. - * @param {Number} id The ID of the mail thread - * @param {Object} opts Optional parameters - * @param {Number} opts.dealId The ID of the deal this thread is associated with - * @param {String} opts.leadId The ID of the lead this thread is associated with - * @param {module:model/NumberBoolean} opts.sharedFlag Whether this thread is shared with other users in your company - * @param {module:model/NumberBoolean} opts.readFlag Whether this thread is read or unread - * @param {module:model/NumberBoolean} opts.archivedFlag Whether this thread is archived or not. You can only archive threads that belong to Inbox folder. Archived threads will disappear from Inbox. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MailThreadPut} and HTTP response - */ - updateMailThreadDetailsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateMailThreadDetails"); - } - - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'deal_id': opts['dealId'], - 'lead_id': opts['leadId'], - 'shared_flag': opts['sharedFlag'], - 'read_flag': opts['readFlag'], - 'archived_flag': opts['archivedFlag'], - }; - - let formParamArray = [ - 'dealId', - 'leadId', - 'sharedFlag', - 'readFlag', - 'archivedFlag', - ]; - - let contentTypes = ['application/x-www-form-urlencoded', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = MailThreadPut; - return this.apiClient.callApi( - '/mailbox/mailThreads/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update mail thread details - * Updates the properties of a mail thread. - * @param {Number} id The ID of the mail thread - * @param {Object} opts Optional parameters - * @param {Number} opts.dealId The ID of the deal this thread is associated with - * @param {String} opts.leadId The ID of the lead this thread is associated with - * @param {module:model/NumberBoolean} opts.sharedFlag Whether this thread is shared with other users in your company - * @param {module:model/NumberBoolean} opts.readFlag Whether this thread is read or unread - * @param {module:model/NumberBoolean} opts.archivedFlag Whether this thread is archived or not. You can only archive threads that belong to Inbox folder. Archived threads will disappear from Inbox. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MailThreadPut} - */ - updateMailThreadDetails(id, opts) { - return this.updateMailThreadDetailsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/MeetingsApi.js b/src/api/MeetingsApi.js deleted file mode 100644 index d8f16252..00000000 --- a/src/api/MeetingsApi.js +++ /dev/null @@ -1,181 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import UserProviderLinkCreateRequest from '../model/UserProviderLinkCreateRequest'; -import UserProviderLinkErrorResponse from '../model/UserProviderLinkErrorResponse'; -import UserProviderLinkSuccessResponse from '../model/UserProviderLinkSuccessResponse'; - -/** -* Meetings service. -* @module api/MeetingsApi -* @version 1.0.0 -*/ -export default class MeetingsApi { - - /** - * Constructs a new MeetingsApi. - * @alias module:api/MeetingsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Delete the link between a user and the installed video call integration - * A video calling provider must call this endpoint to remove the link between a user and the installed video calling app. - * @param {String} id Unique identifier linking a user to the installed integration - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserProviderLinkSuccessResponse} and HTTP response - */ - deleteUserProviderLinkWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteUserProviderLink"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserProviderLinkSuccessResponse; - return this.apiClient.callApi( - '/meetings/userProviderLinks/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete the link between a user and the installed video call integration - * A video calling provider must call this endpoint to remove the link between a user and the installed video calling app. - * @param {String} id Unique identifier linking a user to the installed integration - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserProviderLinkSuccessResponse} - */ - deleteUserProviderLink(id) { - return this.deleteUserProviderLinkWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Link a user with the installed video call integration - * A video calling provider must call this endpoint after a user has installed the video calling app so that the new user's information is sent. - * @param {Object} opts Optional parameters - * @param {module:model/UserProviderLinkCreateRequest} opts.userProviderLinkCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserProviderLinkSuccessResponse} and HTTP response - */ - saveUserProviderLinkWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['userProviderLinkCreateRequest']; - - if (opts['user_provider_id'] === undefined || opts['user_provider_id'] === null) { - throw new Error("Missing the required parameter 'user_provider_id' when calling saveUserProviderLink"); - } - if (opts['user_id'] === undefined || opts['user_id'] === null) { - throw new Error("Missing the required parameter 'user_id' when calling saveUserProviderLink"); - } - if (opts['company_id'] === undefined || opts['company_id'] === null) { - throw new Error("Missing the required parameter 'company_id' when calling saveUserProviderLink"); - } - if (opts['marketplace_client_id'] === undefined || opts['marketplace_client_id'] === null) { - throw new Error("Missing the required parameter 'marketplace_client_id' when calling saveUserProviderLink"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserProviderLinkSuccessResponse; - return this.apiClient.callApi( - '/meetings/userProviderLinks', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Link a user with the installed video call integration - * A video calling provider must call this endpoint after a user has installed the video calling app so that the new user's information is sent. - * @param {Object} opts Optional parameters - * @param {module:model/UserProviderLinkCreateRequest} opts.userProviderLinkCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserProviderLinkSuccessResponse} - */ - saveUserProviderLink(opts) { - return this.saveUserProviderLinkWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/NoteFieldsApi.js b/src/api/NoteFieldsApi.js deleted file mode 100644 index 6b867eb3..00000000 --- a/src/api/NoteFieldsApi.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import NoteFieldsResponse from '../model/NoteFieldsResponse'; - -/** -* NoteFields service. -* @module api/NoteFieldsApi -* @version 1.0.0 -*/ -export default class NoteFieldsApi { - - /** - * Constructs a new NoteFieldsApi. - * @alias module:api/NoteFieldsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Get all note fields - * Returns data about all note fields. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NoteFieldsResponse} and HTTP response - */ - getNoteFieldsWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = NoteFieldsResponse; - return this.apiClient.callApi( - '/noteFields', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all note fields - * Returns data about all note fields. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NoteFieldsResponse} - */ - getNoteFields() { - return this.getNoteFieldsWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/NotesApi.js b/src/api/NotesApi.js deleted file mode 100644 index 3fc1cc80..00000000 --- a/src/api/NotesApi.js +++ /dev/null @@ -1,809 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddNoteRequest from '../model/AddNoteRequest'; -import CommentPostPutObject from '../model/CommentPostPutObject'; -import DeleteComment from '../model/DeleteComment'; -import DeleteNote from '../model/DeleteNote'; -import GetComments from '../model/GetComments'; -import GetNotes from '../model/GetNotes'; -import Note from '../model/Note'; -import NumberBoolean from '../model/NumberBoolean'; -import PostComment from '../model/PostComment'; -import PostNote from '../model/PostNote'; - -/** -* Notes service. -* @module api/NotesApi -* @version 1.0.0 -*/ -export default class NotesApi { - - /** - * Constructs a new NotesApi. - * @alias module:api/NotesApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a note - * Adds a new note. - * @param {Object} opts Optional parameters - * @param {module:model/AddNoteRequest} opts.addNoteRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostNote} and HTTP response - */ - addNoteWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['addNoteRequest']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PostNote; - return this.apiClient.callApi( - '/notes', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a note - * Adds a new note. - * @param {Object} opts Optional parameters - * @param {module:model/AddNoteRequest} opts.addNoteRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostNote} - */ - addNote(opts) { - return this.addNoteWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add a comment to a note - * Adds a new comment to a note. - * @param {Number} id The ID of the note - * @param {Object} opts Optional parameters - * @param {module:model/CommentPostPutObject} opts.commentPostPutObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostComment} and HTTP response - */ - addNoteCommentWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['commentPostPutObject']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addNoteComment"); - } - - if (opts['content'] === undefined || opts['content'] === null) { - throw new Error("Missing the required parameter 'content' when calling addNoteComment"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PostComment; - return this.apiClient.callApi( - '/notes/{id}/comments', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a comment to a note - * Adds a new comment to a note. - * @param {Number} id The ID of the note - * @param {Object} opts Optional parameters - * @param {module:model/CommentPostPutObject} opts.commentPostPutObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostComment} - */ - addNoteComment(id, opts) { - return this.addNoteCommentWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a comment related to a note - * Deletes a comment. - * @param {Number} id The ID of the note - * @param {String} commentId The ID of the comment - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteComment} and HTTP response - */ - deleteCommentWithHttpInfo(id, commentId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteComment"); - } - - // verify the required parameter 'commentId' is set - if (commentId === undefined || commentId === null) { - throw new Error("Missing the required parameter 'commentId' when calling deleteComment"); - } - - let pathParams = { - 'id': id, - 'commentId': commentId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteComment; - return this.apiClient.callApi( - '/notes/{id}/comments/{commentId}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a comment related to a note - * Deletes a comment. - * @param {Number} id The ID of the note - * @param {String} commentId The ID of the comment - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteComment} - */ - deleteComment(id, commentId) { - return this.deleteCommentWithHttpInfo(id, commentId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a note - * Deletes a specific note. - * @param {Number} id The ID of the note - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteNote} and HTTP response - */ - deleteNoteWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteNote"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteNote; - return this.apiClient.callApi( - '/notes/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a note - * Deletes a specific note. - * @param {Number} id The ID of the note - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteNote} - */ - deleteNote(id) { - return this.deleteNoteWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one comment - * Returns the details of a comment. - * @param {Number} id The ID of the note - * @param {String} commentId The ID of the comment - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostComment} and HTTP response - */ - getCommentWithHttpInfo(id, commentId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getComment"); - } - - // verify the required parameter 'commentId' is set - if (commentId === undefined || commentId === null) { - throw new Error("Missing the required parameter 'commentId' when calling getComment"); - } - - let pathParams = { - 'id': id, - 'commentId': commentId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PostComment; - return this.apiClient.callApi( - '/notes/{id}/comments/{commentId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one comment - * Returns the details of a comment. - * @param {Number} id The ID of the note - * @param {String} commentId The ID of the comment - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostComment} - */ - getComment(id, commentId) { - return this.getCommentWithHttpInfo(id, commentId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one note - * Returns details about a specific note. - * @param {Number} id The ID of the note - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostNote} and HTTP response - */ - getNoteWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getNote"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PostNote; - return this.apiClient.callApi( - '/notes/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one note - * Returns details about a specific note. - * @param {Number} id The ID of the note - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostNote} - */ - getNote(id) { - return this.getNoteWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all comments for a note - * Returns all comments associated with a note. - * @param {Number} id The ID of the note - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetComments} and HTTP response - */ - getNoteCommentsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getNoteComments"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetComments; - return this.apiClient.callApi( - '/notes/{id}/comments', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all comments for a note - * Returns all comments associated with a note. - * @param {Number} id The ID of the note - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetComments} - */ - getNoteComments(id, opts) { - return this.getNoteCommentsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all notes - * Returns all notes. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId The ID of the user whose notes to fetch. If omitted, notes by all users will be returned. - * @param {String} opts.leadId The ID of the lead which notes to fetch. If omitted, notes about all leads will be returned. - * @param {Number} opts.dealId The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. - * @param {Number} opts.personId The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. - * @param {Number} opts.orgId The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned. - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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`, `content`, `add_time`, `update_time`. - * @param {Date} opts.startDate The date in format of YYYY-MM-DD from which notes to fetch - * @param {Date} opts.endDate The date in format of YYYY-MM-DD until which notes to fetch to - * @param {module:model/NumberBoolean} opts.pinnedToLeadFlag If set, the results are filtered by note to lead pinning state - * @param {module:model/NumberBoolean} opts.pinnedToDealFlag If set, the results are filtered by note to deal pinning state - * @param {module:model/NumberBoolean} opts.pinnedToOrganizationFlag If set, the results are filtered by note to organization pinning state - * @param {module:model/NumberBoolean} opts.pinnedToPersonFlag If set, the results are filtered by note to person pinning state - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetNotes} and HTTP response - */ - getNotesWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - - - - - - - - - let pathParams = { - }; - let queryParams = { - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'lead_id': opts['lead_id'] === undefined ? opts['leadId'] : opts['lead_id'], - 'deal_id': opts['deal_id'] === undefined ? opts['dealId'] : opts['deal_id'], - 'person_id': opts['person_id'] === undefined ? opts['personId'] : opts['person_id'], - 'org_id': opts['org_id'] === undefined ? opts['orgId'] : opts['org_id'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - 'start_date': opts['start_date'] === undefined ? opts['startDate'] : opts['start_date'], - 'end_date': opts['end_date'] === undefined ? opts['endDate'] : opts['end_date'], - 'pinned_to_lead_flag': opts['pinned_to_lead_flag'] === undefined ? opts['pinnedToLeadFlag'] : opts['pinned_to_lead_flag'], - 'pinned_to_deal_flag': opts['pinned_to_deal_flag'] === undefined ? opts['pinnedToDealFlag'] : opts['pinned_to_deal_flag'], - 'pinned_to_organization_flag': opts['pinned_to_organization_flag'] === undefined ? opts['pinnedToOrganizationFlag'] : opts['pinned_to_organization_flag'], - 'pinned_to_person_flag': opts['pinned_to_person_flag'] === undefined ? opts['pinnedToPersonFlag'] : opts['pinned_to_person_flag'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetNotes; - return this.apiClient.callApi( - '/notes', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all notes - * Returns all notes. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId The ID of the user whose notes to fetch. If omitted, notes by all users will be returned. - * @param {String} opts.leadId The ID of the lead which notes to fetch. If omitted, notes about all leads will be returned. - * @param {Number} opts.dealId The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. - * @param {Number} opts.personId The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. - * @param {Number} opts.orgId The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned. - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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`, `content`, `add_time`, `update_time`. - * @param {Date} opts.startDate The date in format of YYYY-MM-DD from which notes to fetch - * @param {Date} opts.endDate The date in format of YYYY-MM-DD until which notes to fetch to - * @param {module:model/NumberBoolean} opts.pinnedToLeadFlag If set, the results are filtered by note to lead pinning state - * @param {module:model/NumberBoolean} opts.pinnedToDealFlag If set, the results are filtered by note to deal pinning state - * @param {module:model/NumberBoolean} opts.pinnedToOrganizationFlag If set, the results are filtered by note to organization pinning state - * @param {module:model/NumberBoolean} opts.pinnedToPersonFlag If set, the results are filtered by note to person pinning state - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetNotes} - */ - getNotes(opts) { - return this.getNotesWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a comment related to a note - * Updates a comment related to a note. - * @param {Number} id The ID of the note - * @param {String} commentId The ID of the comment - * @param {Object} opts Optional parameters - * @param {module:model/CommentPostPutObject} opts.commentPostPutObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostComment} and HTTP response - */ - updateCommentForNoteWithHttpInfo(id, commentId, opts) { - opts = opts || {}; - let postBody = opts['commentPostPutObject']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateCommentForNote"); - } - - // verify the required parameter 'commentId' is set - if (commentId === undefined || commentId === null) { - throw new Error("Missing the required parameter 'commentId' when calling updateCommentForNote"); - } - - if (opts['content'] === undefined || opts['content'] === null) { - throw new Error("Missing the required parameter 'content' when calling updateCommentForNote"); - } - - let pathParams = { - 'id': id, - 'commentId': commentId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PostComment; - return this.apiClient.callApi( - '/notes/{id}/comments/{commentId}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a comment related to a note - * Updates a comment related to a note. - * @param {Number} id The ID of the note - * @param {String} commentId The ID of the comment - * @param {Object} opts Optional parameters - * @param {module:model/CommentPostPutObject} opts.commentPostPutObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostComment} - */ - updateCommentForNote(id, commentId, opts) { - return this.updateCommentForNoteWithHttpInfo(id, commentId, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a note - * Updates a note. - * @param {Number} id The ID of the note - * @param {Object} opts Optional parameters - * @param {module:model/Note} opts.note - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostNote} and HTTP response - */ - updateNoteWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['note']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateNote"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PostNote; - return this.apiClient.callApi( - '/notes/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a note - * Updates a note. - * @param {Number} id The ID of the note - * @param {Object} opts Optional parameters - * @param {module:model/Note} opts.note - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostNote} - */ - updateNote(id, opts) { - return this.updateNoteWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/OrganizationFieldsApi.js b/src/api/OrganizationFieldsApi.js deleted file mode 100644 index 33afc83d..00000000 --- a/src/api/OrganizationFieldsApi.js +++ /dev/null @@ -1,443 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import BulkDeleteResponse from '../model/BulkDeleteResponse'; -import DeleteResponse from '../model/DeleteResponse'; -import FieldCreateRequest from '../model/FieldCreateRequest'; -import FieldResponse from '../model/FieldResponse'; -import FieldUpdateRequest from '../model/FieldUpdateRequest'; -import FieldsResponse from '../model/FieldsResponse'; - -/** -* OrganizationFields service. -* @module api/OrganizationFieldsApi -* @version 1.0.0 -*/ -export default class OrganizationFieldsApi { - - /** - * Constructs a new OrganizationFieldsApi. - * @alias module:api/OrganizationFieldsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a new organization field - * Adds a new organization field. For more information, see the tutorial for adding a new custom field. - * @param {Object} opts Optional parameters - * @param {module:model/FieldCreateRequest} opts.fieldCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldResponse} and HTTP response - */ - addOrganizationFieldWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['fieldCreateRequest']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldResponse; - return this.apiClient.callApi( - '/organizationFields', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new organization field - * Adds a new organization field. For more information, see the tutorial for adding a new custom field. - * @param {Object} opts Optional parameters - * @param {module:model/FieldCreateRequest} opts.fieldCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldResponse} - */ - addOrganizationField(opts) { - return this.addOrganizationFieldWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete an organization field - * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteResponse} and HTTP response - */ - deleteOrganizationFieldWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteOrganizationField"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteResponse; - return this.apiClient.callApi( - '/organizationFields/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete an organization field - * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteResponse} - */ - deleteOrganizationField(id) { - return this.deleteOrganizationFieldWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete multiple organization fields in bulk - * Marks multiple fields as deleted. - * @param {String} ids The comma-separated field IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BulkDeleteResponse} and HTTP response - */ - deleteOrganizationFieldsWithHttpInfo(ids) { - const opts = {} - let postBody = null; - - // verify the required parameter 'ids' is set - if (ids === undefined || ids === null) { - throw new Error("Missing the required parameter 'ids' when calling deleteOrganizationFields"); - } - - let pathParams = { - }; - let queryParams = { - 'ids': ids, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = BulkDeleteResponse; - return this.apiClient.callApi( - '/organizationFields', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete multiple organization fields in bulk - * Marks multiple fields as deleted. - * @param {String} ids The comma-separated field IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BulkDeleteResponse} - */ - deleteOrganizationFields(ids) { - return this.deleteOrganizationFieldsWithHttpInfo(ids) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one organization field - * Returns data about a specific organization field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldResponse} and HTTP response - */ - getOrganizationFieldWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganizationField"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldResponse; - return this.apiClient.callApi( - '/organizationFields/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one organization field - * Returns data about a specific organization field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldResponse} - */ - getOrganizationField(id) { - return this.getOrganizationFieldWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all organization fields - * Returns data about all organization fields. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldsResponse} and HTTP response - */ - getOrganizationFieldsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - let pathParams = { - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldsResponse; - return this.apiClient.callApi( - '/organizationFields', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all organization fields - * Returns data about all organization fields. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldsResponse} - */ - getOrganizationFields(opts) { - return this.getOrganizationFieldsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update an organization field - * Updates an organization field. For more information, see the tutorial for updating custom fields' values. - * @param {Number} id The ID of the field - * @param {Object} opts Optional parameters - * @param {module:model/FieldUpdateRequest} opts.fieldUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldResponse} and HTTP response - */ - updateOrganizationFieldWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['fieldUpdateRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateOrganizationField"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldResponse; - return this.apiClient.callApi( - '/organizationFields/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update an organization field - * Updates an organization field. For more information, see the tutorial for updating custom fields' values. - * @param {Number} id The ID of the field - * @param {Object} opts Optional parameters - * @param {module:model/FieldUpdateRequest} opts.fieldUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldResponse} - */ - updateOrganizationField(id, opts) { - return this.updateOrganizationFieldWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/OrganizationRelationshipsApi.js b/src/api/OrganizationRelationshipsApi.js deleted file mode 100644 index 75d23d1d..00000000 --- a/src/api/OrganizationRelationshipsApi.js +++ /dev/null @@ -1,391 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddOrganizationRelationshipRequest from '../model/AddOrganizationRelationshipRequest'; -import AllOrganizationRelationshipsGetResponse from '../model/AllOrganizationRelationshipsGetResponse'; -import OrganizationRelationship from '../model/OrganizationRelationship'; -import OrganizationRelationshipDeleteResponse from '../model/OrganizationRelationshipDeleteResponse'; -import OrganizationRelationshipGetResponse from '../model/OrganizationRelationshipGetResponse'; -import OrganizationRelationshipPostResponse from '../model/OrganizationRelationshipPostResponse'; -import OrganizationRelationshipUpdateResponse from '../model/OrganizationRelationshipUpdateResponse'; - -/** -* OrganizationRelationships service. -* @module api/OrganizationRelationshipsApi -* @version 1.0.0 -*/ -export default class OrganizationRelationshipsApi { - - /** - * Constructs a new OrganizationRelationshipsApi. - * @alias module:api/OrganizationRelationshipsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Create an organization relationship - * Creates and returns an organization relationship. - * @param {Object} opts Optional parameters - * @param {module:model/AddOrganizationRelationshipRequest} opts.addOrganizationRelationshipRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationRelationshipPostResponse} and HTTP response - */ - addOrganizationRelationshipWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['addOrganizationRelationshipRequest']; - - if (opts['type'] === undefined || opts['type'] === null) { - throw new Error("Missing the required parameter 'type' when calling addOrganizationRelationship"); - } - if (opts['rel_owner_org_id'] === undefined || opts['rel_owner_org_id'] === null) { - throw new Error("Missing the required parameter 'rel_owner_org_id' when calling addOrganizationRelationship"); - } - if (opts['rel_linked_org_id'] === undefined || opts['rel_linked_org_id'] === null) { - throw new Error("Missing the required parameter 'rel_linked_org_id' when calling addOrganizationRelationship"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationRelationshipPostResponse; - return this.apiClient.callApi( - '/organizationRelationships', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Create an organization relationship - * Creates and returns an organization relationship. - * @param {Object} opts Optional parameters - * @param {module:model/AddOrganizationRelationshipRequest} opts.addOrganizationRelationshipRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationRelationshipPostResponse} - */ - addOrganizationRelationship(opts) { - return this.addOrganizationRelationshipWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete an organization relationship - * Deletes an organization relationship and returns the deleted ID. - * @param {Number} id The ID of the organization relationship - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationRelationshipDeleteResponse} and HTTP response - */ - deleteOrganizationRelationshipWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteOrganizationRelationship"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationRelationshipDeleteResponse; - return this.apiClient.callApi( - '/organizationRelationships/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete an organization relationship - * Deletes an organization relationship and returns the deleted ID. - * @param {Number} id The ID of the organization relationship - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationRelationshipDeleteResponse} - */ - deleteOrganizationRelationship(id) { - return this.deleteOrganizationRelationshipWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one organization relationship - * Finds and returns an organization relationship from its ID. - * @param {Number} id The ID of the organization relationship - * @param {Object} opts Optional parameters - * @param {Number} opts.orgId The ID of the base organization for the returned calculated values - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationRelationshipGetResponse} and HTTP response - */ - getOrganizationRelationshipWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganizationRelationship"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'org_id': opts['org_id'] === undefined ? opts['orgId'] : opts['org_id'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationRelationshipGetResponse; - return this.apiClient.callApi( - '/organizationRelationships/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one organization relationship - * Finds and returns an organization relationship from its ID. - * @param {Number} id The ID of the organization relationship - * @param {Object} opts Optional parameters - * @param {Number} opts.orgId The ID of the base organization for the returned calculated values - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationRelationshipGetResponse} - */ - getOrganizationRelationship(id, opts) { - return this.getOrganizationRelationshipWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all relationships for organization - * Gets all of the relationships for a supplied organization ID. - * @param {Number} orgId The ID of the organization to get relationships for - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllOrganizationRelationshipsGetResponse} and HTTP response - */ - getOrganizationRelationshipsWithHttpInfo(orgId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'orgId' is set - if (orgId === undefined || orgId === null) { - throw new Error("Missing the required parameter 'orgId' when calling getOrganizationRelationships"); - } - - let pathParams = { - }; - let queryParams = { - 'org_id': orgId, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = AllOrganizationRelationshipsGetResponse; - return this.apiClient.callApi( - '/organizationRelationships', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all relationships for organization - * Gets all of the relationships for a supplied organization ID. - * @param {Number} orgId The ID of the organization to get relationships for - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllOrganizationRelationshipsGetResponse} - */ - getOrganizationRelationships(orgId) { - return this.getOrganizationRelationshipsWithHttpInfo(orgId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update an organization relationship - * Updates and returns an organization relationship. - * @param {Number} id The ID of the organization relationship - * @param {Object} opts Optional parameters - * @param {module:model/OrganizationRelationship} opts.organizationRelationship - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationRelationshipUpdateResponse} and HTTP response - */ - updateOrganizationRelationshipWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['organizationRelationship']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateOrganizationRelationship"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationRelationshipUpdateResponse; - return this.apiClient.callApi( - '/organizationRelationships/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update an organization relationship - * Updates and returns an organization relationship. - * @param {Number} id The ID of the organization relationship - * @param {Object} opts Optional parameters - * @param {module:model/OrganizationRelationship} opts.organizationRelationship - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationRelationshipUpdateResponse} - */ - updateOrganizationRelationship(id, opts) { - return this.updateOrganizationRelationshipWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/OrganizationsApi.js b/src/api/OrganizationsApi.js deleted file mode 100644 index 3c5414cd..00000000 --- a/src/api/OrganizationsApi.js +++ /dev/null @@ -1,1565 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddOrganizationFollowerRequest from '../model/AddOrganizationFollowerRequest'; -import AllOrganizationsGetResponse from '../model/AllOrganizationsGetResponse'; -import ChangelogResponse from '../model/ChangelogResponse'; -import FailResponse from '../model/FailResponse'; -import InlineResponse2001 from '../model/InlineResponse2001'; -import ListActivitiesResponse from '../model/ListActivitiesResponse'; -import ListDealsResponse from '../model/ListDealsResponse'; -import ListFilesResponse from '../model/ListFilesResponse'; -import ListMailMessagesResponse from '../model/ListMailMessagesResponse'; -import ListPermittedUsersResponse1 from '../model/ListPermittedUsersResponse1'; -import ListPersonsResponse from '../model/ListPersonsResponse'; -import MergeOrganizationsRequest from '../model/MergeOrganizationsRequest'; -import NewOrganization from '../model/NewOrganization'; -import NumberBoolean from '../model/NumberBoolean'; -import OrganizationDeleteResponse from '../model/OrganizationDeleteResponse'; -import OrganizationDetailsGetResponse from '../model/OrganizationDetailsGetResponse'; -import OrganizationFlowResponse from '../model/OrganizationFlowResponse'; -import OrganizationFollowerDeleteResponse from '../model/OrganizationFollowerDeleteResponse'; -import OrganizationFollowerPostResponse from '../model/OrganizationFollowerPostResponse'; -import OrganizationFollowersListResponse from '../model/OrganizationFollowersListResponse'; -import OrganizationPostResponse from '../model/OrganizationPostResponse'; -import OrganizationSearchResponse from '../model/OrganizationSearchResponse'; -import OrganizationUpdateResponse from '../model/OrganizationUpdateResponse'; -import OrganizationsDeleteResponse from '../model/OrganizationsDeleteResponse'; -import OrganizationsMergeResponse from '../model/OrganizationsMergeResponse'; -import UpdateOrganization from '../model/UpdateOrganization'; - -/** -* Organizations service. -* @module api/OrganizationsApi -* @version 1.0.0 -*/ -export default class OrganizationsApi { - - /** - * Constructs a new OrganizationsApi. - * @alias module:api/OrganizationsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add an organization - * Adds a new organization. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the organizationFields and look for `key` values. For more information, see the tutorial for adding an organization. - * @param {Object} opts Optional parameters - * @param {module:model/NewOrganization} opts.newOrganization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationPostResponse} and HTTP response - */ - addOrganizationWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['newOrganization']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationPostResponse; - return this.apiClient.callApi( - '/organizations', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add an organization - * Adds a new organization. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the organizationFields and look for `key` values. For more information, see the tutorial for adding an organization. - * @param {Object} opts Optional parameters - * @param {module:model/NewOrganization} opts.newOrganization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationPostResponse} - */ - addOrganization(opts) { - return this.addOrganizationWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add a follower to an organization - * Adds a follower to an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {module:model/AddOrganizationFollowerRequest} opts.addOrganizationFollowerRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationFollowerPostResponse} and HTTP response - */ - addOrganizationFollowerWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['addOrganizationFollowerRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addOrganizationFollower"); - } - - if (opts['user_id'] === undefined || opts['user_id'] === null) { - throw new Error("Missing the required parameter 'user_id' when calling addOrganizationFollower"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationFollowerPostResponse; - return this.apiClient.callApi( - '/organizations/{id}/followers', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a follower to an organization - * Adds a follower to an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {module:model/AddOrganizationFollowerRequest} opts.addOrganizationFollowerRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationFollowerPostResponse} - */ - addOrganizationFollower(id, opts) { - return this.addOrganizationFollowerWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete an organization - * Marks an organization as deleted. After 30 days, the organization will be permanently deleted. - * @param {Number} id The ID of the organization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationDeleteResponse} and HTTP response - */ - deleteOrganizationWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteOrganization"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationDeleteResponse; - return this.apiClient.callApi( - '/organizations/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete an organization - * Marks an organization as deleted. After 30 days, the organization will be permanently deleted. - * @param {Number} id The ID of the organization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationDeleteResponse} - */ - deleteOrganization(id) { - return this.deleteOrganizationWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a follower from an organization - * Deletes a follower from an organization. You can retrieve the `follower_id` from the List followers of an organization endpoint. - * @param {Number} id The ID of the organization - * @param {Number} followerId The ID of the follower - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationFollowerDeleteResponse} and HTTP response - */ - deleteOrganizationFollowerWithHttpInfo(id, followerId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteOrganizationFollower"); - } - - // verify the required parameter 'followerId' is set - if (followerId === undefined || followerId === null) { - throw new Error("Missing the required parameter 'followerId' when calling deleteOrganizationFollower"); - } - - let pathParams = { - 'id': id, - 'follower_id': followerId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationFollowerDeleteResponse; - return this.apiClient.callApi( - '/organizations/{id}/followers/{follower_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a follower from an organization - * Deletes a follower from an organization. You can retrieve the `follower_id` from the List followers of an organization endpoint. - * @param {Number} id The ID of the organization - * @param {Number} followerId The ID of the follower - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationFollowerDeleteResponse} - */ - deleteOrganizationFollower(id, followerId) { - return this.deleteOrganizationFollowerWithHttpInfo(id, followerId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete multiple organizations in bulk - * Marks multiple organizations as deleted. After 30 days, the organizations will be permanently deleted. - * @param {String} ids The comma-separated IDs that will be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationsDeleteResponse} and HTTP response - */ - deleteOrganizationsWithHttpInfo(ids) { - const opts = {} - let postBody = null; - - // verify the required parameter 'ids' is set - if (ids === undefined || ids === null) { - throw new Error("Missing the required parameter 'ids' when calling deleteOrganizations"); - } - - let pathParams = { - }; - let queryParams = { - 'ids': ids, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationsDeleteResponse; - return this.apiClient.callApi( - '/organizations', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete multiple organizations in bulk - * Marks multiple organizations as deleted. After 30 days, the organizations will be permanently deleted. - * @param {String} ids The comma-separated IDs that will be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationsDeleteResponse} - */ - deleteOrganizations(ids) { - return this.deleteOrganizationsWithHttpInfo(ids) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get details of an organization - * 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. - * @param {Number} id The ID of the organization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationDetailsGetResponse} and HTTP response - */ - getOrganizationWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganization"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationDetailsGetResponse; - return this.apiClient.callApi( - '/organizations/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get details of an organization - * 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. - * @param {Number} id The ID of the organization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationDetailsGetResponse} - */ - getOrganization(id) { - return this.getOrganizationWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List activities associated with an organization - * Lists activities associated with an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities. - * @param {String} opts.exclude A comma-separated string of activity IDs to exclude from result - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListActivitiesResponse} and HTTP response - */ - getOrganizationActivitiesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganizationActivities"); - } - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'done': opts['done'] === undefined ? opts['done'] : opts['done'], - 'exclude': opts['exclude'] === undefined ? opts['exclude'] : opts['exclude'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListActivitiesResponse; - return this.apiClient.callApi( - '/organizations/{id}/activities', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List activities associated with an organization - * Lists activities associated with an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities. - * @param {String} opts.exclude A comma-separated string of activity IDs to exclude from result - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListActivitiesResponse} - */ - getOrganizationActivities(id, opts) { - return this.getOrganizationActivitiesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List updates about organization field values - * Lists updates about field values of an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChangelogResponse} and HTTP response - */ - getOrganizationChangelogWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganizationChangelog"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ChangelogResponse; - return this.apiClient.callApi( - '/organizations/{id}/changelog', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List updates about organization field values - * Lists updates about field values of an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChangelogResponse} - */ - getOrganizationChangelog(id, opts) { - return this.getOrganizationChangelogWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List deals associated with an organization - * Lists deals associated with an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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') - * @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). - * @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. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDealsResponse} and HTTP response - */ - getOrganizationDealsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganizationDeals"); - } - - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'status': opts['status'] === undefined ? opts['status'] : opts['status'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - 'only_primary_association': opts['only_primary_association'] === undefined ? opts['onlyPrimaryAssociation'] : opts['only_primary_association'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListDealsResponse; - return this.apiClient.callApi( - '/organizations/{id}/deals', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List deals associated with an organization - * Lists deals associated with an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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') - * @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). - * @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. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDealsResponse} - */ - getOrganizationDeals(id, opts) { - return this.getOrganizationDealsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List files attached to an organization - * Lists files associated with an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListFilesResponse} and HTTP response - */ - getOrganizationFilesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganizationFiles"); - } - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListFilesResponse; - return this.apiClient.callApi( - '/organizations/{id}/files', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List files attached to an organization - * Lists files associated with an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListFilesResponse} - */ - getOrganizationFiles(id, opts) { - return this.getOrganizationFilesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List followers of an organization - * Lists the followers of an organization. - * @param {Number} id The ID of the organization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationFollowersListResponse} and HTTP response - */ - getOrganizationFollowersWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganizationFollowers"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationFollowersListResponse; - return this.apiClient.callApi( - '/organizations/{id}/followers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List followers of an organization - * Lists the followers of an organization. - * @param {Number} id The ID of the organization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationFollowersListResponse} - */ - getOrganizationFollowers(id) { - return this.getOrganizationFollowersWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List mail messages associated with an organization - * Lists mail messages associated with an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMailMessagesResponse} and HTTP response - */ - getOrganizationMailMessagesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganizationMailMessages"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListMailMessagesResponse; - return this.apiClient.callApi( - '/organizations/{id}/mailMessages', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List mail messages associated with an organization - * Lists mail messages associated with an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMailMessagesResponse} - */ - getOrganizationMailMessages(id, opts) { - return this.getOrganizationMailMessagesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List persons of an organization - * Lists persons associated with an organization.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPersonsResponse} and HTTP response - */ - getOrganizationPersonsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganizationPersons"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListPersonsResponse; - return this.apiClient.callApi( - '/organizations/{id}/persons', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List persons of an organization - * Lists persons associated with an organization.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPersonsResponse} - */ - getOrganizationPersons(id, opts) { - return this.getOrganizationPersonsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List updates about an organization - * Lists updates about an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {String} opts.allChanges Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. - * @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). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationFlowResponse} and HTTP response - */ - getOrganizationUpdatesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganizationUpdates"); - } - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'all_changes': opts['all_changes'] === undefined ? opts['allChanges'] : opts['all_changes'], - 'items': opts['items'] === undefined ? opts['items'] : opts['items'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationFlowResponse; - return this.apiClient.callApi( - '/organizations/{id}/flow', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List updates about an organization - * Lists updates about an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {String} opts.allChanges Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. - * @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). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationFlowResponse} - */ - getOrganizationUpdates(id, opts) { - return this.getOrganizationUpdatesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List permitted users - * List users permitted to access an organization. - * @param {Number} id The ID of the organization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPermittedUsersResponse1} and HTTP response - */ - getOrganizationUsersWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getOrganizationUsers"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListPermittedUsersResponse1; - return this.apiClient.callApi( - '/organizations/{id}/permittedUsers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List permitted users - * List users permitted to access an organization. - * @param {Number} id The ID of the organization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPermittedUsersResponse1} - */ - getOrganizationUsers(id) { - return this.getOrganizationUsersWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all organizations - * Returns all organizations. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId If supplied, only organizations owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - * @param {Number} opts.filterId The ID of the filter to use - * @param {String} opts.firstChar If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AllOrganizationsGetResponse} and HTTP response - */ - getOrganizationsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - let pathParams = { - }; - let queryParams = { - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], - 'first_char': opts['first_char'] === undefined ? opts['firstChar'] : opts['first_char'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = AllOrganizationsGetResponse; - return this.apiClient.callApi( - '/organizations', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all organizations - * Returns all organizations. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId If supplied, only organizations owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - * @param {Number} opts.filterId The ID of the filter to use - * @param {String} opts.firstChar If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AllOrganizationsGetResponse} - */ - getOrganizations(opts) { - return this.getOrganizationsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all organizations (BETA) - * Returns all organizations. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {String} opts.since The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {String} opts.until The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {Number} opts.ownerId If supplied, only organizations owned by the given user will be returned - * @param {String} opts.firstChar If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2001} and HTTP response - */ - getOrganizationsCollectionWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - let pathParams = { - }; - let queryParams = { - 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'since': opts['since'] === undefined ? opts['since'] : opts['since'], - 'until': opts['until'] === undefined ? opts['until'] : opts['until'], - 'owner_id': opts['owner_id'] === undefined ? opts['ownerId'] : opts['owner_id'], - 'first_char': opts['first_char'] === undefined ? opts['firstChar'] : opts['first_char'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = InlineResponse2001; - return this.apiClient.callApi( - '/organizations/collection', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all organizations (BETA) - * Returns all organizations. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {String} opts.since The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {String} opts.until The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {Number} opts.ownerId If supplied, only organizations owned by the given user will be returned - * @param {String} opts.firstChar If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2001} - */ - getOrganizationsCollection(opts) { - return this.getOrganizationsCollectionWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Merge two organizations - * Merges an organization with another organization. For more information, see the tutorial for merging two organizations. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {module:model/MergeOrganizationsRequest} opts.mergeOrganizationsRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationsMergeResponse} and HTTP response - */ - mergeOrganizationsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['mergeOrganizationsRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling mergeOrganizations"); - } - - if (opts['merge_with_id'] === undefined || opts['merge_with_id'] === null) { - throw new Error("Missing the required parameter 'merge_with_id' when calling mergeOrganizations"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationsMergeResponse; - return this.apiClient.callApi( - '/organizations/{id}/merge', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Merge two organizations - * Merges an organization with another organization. For more information, see the tutorial for merging two organizations. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {module:model/MergeOrganizationsRequest} opts.mergeOrganizationsRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationsMergeResponse} - */ - mergeOrganizations(id, opts) { - return this.mergeOrganizationsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Search organizations - * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationSearchResponse} and HTTP response - */ - searchOrganizationWithHttpInfo(term, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'term' is set - if (term === undefined || term === null) { - throw new Error("Missing the required parameter 'term' when calling searchOrganization"); - } - - - - - - let pathParams = { - }; - let queryParams = { - 'term': term, - 'fields': opts['fields'] === undefined ? opts['fields'] : opts['fields'], - 'exact_match': opts['exact_match'] === undefined ? opts['exactMatch'] : opts['exact_match'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationSearchResponse; - return this.apiClient.callApi( - '/organizations/search', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Search organizations - * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationSearchResponse} - */ - searchOrganization(term, opts) { - return this.searchOrganizationWithHttpInfo(term, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update an organization - * Updates the properties of an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {module:model/UpdateOrganization} opts.updateOrganization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OrganizationUpdateResponse} and HTTP response - */ - updateOrganizationWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updateOrganization']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateOrganization"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = OrganizationUpdateResponse; - return this.apiClient.callApi( - '/organizations/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update an organization - * Updates the properties of an organization. - * @param {Number} id The ID of the organization - * @param {Object} opts Optional parameters - * @param {module:model/UpdateOrganization} opts.updateOrganization - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OrganizationUpdateResponse} - */ - updateOrganization(id, opts) { - return this.updateOrganizationWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/PermissionSetsApi.js b/src/api/PermissionSetsApi.js deleted file mode 100644 index 4c0c6e5c..00000000 --- a/src/api/PermissionSetsApi.js +++ /dev/null @@ -1,246 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import PermissionSets from '../model/PermissionSets'; -import SinglePermissionSetsItem from '../model/SinglePermissionSetsItem'; -import UserAssignmentsToPermissionSet from '../model/UserAssignmentsToPermissionSet'; - -/** -* PermissionSets service. -* @module api/PermissionSetsApi -* @version 1.0.0 -*/ -export default class PermissionSetsApi { - - /** - * Constructs a new PermissionSetsApi. - * @alias module:api/PermissionSetsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Get one permission set - * Returns data about a specific permission set. - * @param {String} id The ID of the permission set - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SinglePermissionSetsItem} and HTTP response - */ - getPermissionSetWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPermissionSet"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = SinglePermissionSetsItem; - return this.apiClient.callApi( - '/permissionSets/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one permission set - * Returns data about a specific permission set. - * @param {String} id The ID of the permission set - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SinglePermissionSetsItem} - */ - getPermissionSet(id) { - return this.getPermissionSetWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List permission set assignments - * Returns the list of assignments for a permission set. - * @param {String} id The ID of the permission set - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserAssignmentsToPermissionSet} and HTTP response - */ - getPermissionSetAssignmentsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPermissionSetAssignments"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserAssignmentsToPermissionSet; - return this.apiClient.callApi( - '/permissionSets/{id}/assignments', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List permission set assignments - * Returns the list of assignments for a permission set. - * @param {String} id The ID of the permission set - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserAssignmentsToPermissionSet} - */ - getPermissionSetAssignments(id, opts) { - return this.getPermissionSetAssignmentsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all permission sets - * Returns data about all permission sets. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.app The app to filter the permission sets by - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PermissionSets} and HTTP response - */ - getPermissionSetsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - let pathParams = { - }; - let queryParams = { - 'app': opts['app'] === undefined ? opts['app'] : opts['app'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PermissionSets; - return this.apiClient.callApi( - '/permissionSets', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all permission sets - * Returns data about all permission sets. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.app The app to filter the permission sets by - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PermissionSets} - */ - getPermissionSets(opts) { - return this.getPermissionSetsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/PersonFieldsApi.js b/src/api/PersonFieldsApi.js deleted file mode 100644 index 7a736380..00000000 --- a/src/api/PersonFieldsApi.js +++ /dev/null @@ -1,443 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import BulkDeleteResponse from '../model/BulkDeleteResponse'; -import DeleteResponse from '../model/DeleteResponse'; -import FieldCreateRequest from '../model/FieldCreateRequest'; -import FieldResponse from '../model/FieldResponse'; -import FieldUpdateRequest from '../model/FieldUpdateRequest'; -import FieldsResponse from '../model/FieldsResponse'; - -/** -* PersonFields service. -* @module api/PersonFieldsApi -* @version 1.0.0 -*/ -export default class PersonFieldsApi { - - /** - * Constructs a new PersonFieldsApi. - * @alias module:api/PersonFieldsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a new person field - * Adds a new person field. For more information, see the tutorial for adding a new custom field. - * @param {Object} opts Optional parameters - * @param {module:model/FieldCreateRequest} opts.fieldCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldResponse} and HTTP response - */ - addPersonFieldWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['fieldCreateRequest']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldResponse; - return this.apiClient.callApi( - '/personFields', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new person field - * Adds a new person field. For more information, see the tutorial for adding a new custom field. - * @param {Object} opts Optional parameters - * @param {module:model/FieldCreateRequest} opts.fieldCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldResponse} - */ - addPersonField(opts) { - return this.addPersonFieldWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a person field - * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteResponse} and HTTP response - */ - deletePersonFieldWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deletePersonField"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteResponse; - return this.apiClient.callApi( - '/personFields/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a person field - * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteResponse} - */ - deletePersonField(id) { - return this.deletePersonFieldWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete multiple person fields in bulk - * Marks multiple fields as deleted. - * @param {String} ids The comma-separated field IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BulkDeleteResponse} and HTTP response - */ - deletePersonFieldsWithHttpInfo(ids) { - const opts = {} - let postBody = null; - - // verify the required parameter 'ids' is set - if (ids === undefined || ids === null) { - throw new Error("Missing the required parameter 'ids' when calling deletePersonFields"); - } - - let pathParams = { - }; - let queryParams = { - 'ids': ids, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = BulkDeleteResponse; - return this.apiClient.callApi( - '/personFields', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete multiple person fields in bulk - * Marks multiple fields as deleted. - * @param {String} ids The comma-separated field IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BulkDeleteResponse} - */ - deletePersonFields(ids) { - return this.deletePersonFieldsWithHttpInfo(ids) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one person field - * Returns data about a specific person field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldResponse} and HTTP response - */ - getPersonFieldWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPersonField"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldResponse; - return this.apiClient.callApi( - '/personFields/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one person field - * Returns data about a specific person field. - * @param {Number} id The ID of the field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldResponse} - */ - getPersonField(id) { - return this.getPersonFieldWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all person fields - * Returns data about all person fields.
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. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldsResponse} and HTTP response - */ - getPersonFieldsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - let pathParams = { - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldsResponse; - return this.apiClient.callApi( - '/personFields', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all person fields - * Returns data about all person fields.
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. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldsResponse} - */ - getPersonFields(opts) { - return this.getPersonFieldsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a person field - * Updates a person field. For more information, see the tutorial for updating custom fields' values. - * @param {Number} id The ID of the field - * @param {Object} opts Optional parameters - * @param {module:model/FieldUpdateRequest} opts.fieldUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/FieldResponse} and HTTP response - */ - updatePersonFieldWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['fieldUpdateRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updatePersonField"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = FieldResponse; - return this.apiClient.callApi( - '/personFields/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a person field - * Updates a person field. For more information, see the tutorial for updating custom fields' values. - * @param {Number} id The ID of the field - * @param {Object} opts Optional parameters - * @param {module:model/FieldUpdateRequest} opts.fieldUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/FieldResponse} - */ - updatePersonField(id, opts) { - return this.updatePersonFieldWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/PersonsApi.js b/src/api/PersonsApi.js deleted file mode 100644 index 15838f8c..00000000 --- a/src/api/PersonsApi.js +++ /dev/null @@ -1,1732 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddFollowerToPersonResponse from '../model/AddFollowerToPersonResponse'; -import AddPersonFollowerRequest from '../model/AddPersonFollowerRequest'; -import AddPersonPictureResponse from '../model/AddPersonPictureResponse'; -import AddPersonResponse from '../model/AddPersonResponse'; -import ChangelogResponse from '../model/ChangelogResponse'; -import DeletePersonResponse from '../model/DeletePersonResponse'; -import DeletePersonsInBulkResponse from '../model/DeletePersonsInBulkResponse'; -import FailResponse from '../model/FailResponse'; -import GetAllPersonsResponse from '../model/GetAllPersonsResponse'; -import GetPersonDetailsResponse from '../model/GetPersonDetailsResponse'; -import InlineResponse2002 from '../model/InlineResponse2002'; -import ListActivitiesResponse from '../model/ListActivitiesResponse'; -import ListDealsResponse from '../model/ListDealsResponse'; -import ListFilesResponse from '../model/ListFilesResponse'; -import ListFollowersResponse from '../model/ListFollowersResponse'; -import ListMailMessagesResponse from '../model/ListMailMessagesResponse'; -import ListPermittedUsersResponse1 from '../model/ListPermittedUsersResponse1'; -import ListPersonProductsResponse from '../model/ListPersonProductsResponse'; -import MergePersonsRequest from '../model/MergePersonsRequest'; -import MergePersonsResponse from '../model/MergePersonsResponse'; -import NewPerson from '../model/NewPerson'; -import NumberBoolean from '../model/NumberBoolean'; -import PersonFlowResponse from '../model/PersonFlowResponse'; -import PersonSearchResponse from '../model/PersonSearchResponse'; -import UpdatePerson from '../model/UpdatePerson'; -import UpdatePersonResponse from '../model/UpdatePersonResponse'; - -/** -* Persons service. -* @module api/PersonsApi -* @version 1.0.0 -*/ -export default class PersonsApi { - - /** - * Constructs a new PersonsApi. - * @alias module:api/PersonsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a person - * Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for `key` values.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @param {Object} opts Optional parameters - * @param {module:model/NewPerson} opts.newPerson - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddPersonResponse} and HTTP response - */ - addPersonWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['newPerson']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = AddPersonResponse; - return this.apiClient.callApi( - '/persons', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a person - * Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for `key` values.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @param {Object} opts Optional parameters - * @param {module:model/NewPerson} opts.newPerson - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddPersonResponse} - */ - addPerson(opts) { - return this.addPersonWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add a follower to a person - * Adds a follower to a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {module:model/AddPersonFollowerRequest} opts.addPersonFollowerRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddFollowerToPersonResponse} and HTTP response - */ - addPersonFollowerWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['addPersonFollowerRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addPersonFollower"); - } - - if (opts['user_id'] === undefined || opts['user_id'] === null) { - throw new Error("Missing the required parameter 'user_id' when calling addPersonFollower"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = AddFollowerToPersonResponse; - return this.apiClient.callApi( - '/persons/{id}/followers', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a follower to a person - * Adds a follower to a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {module:model/AddPersonFollowerRequest} opts.addPersonFollowerRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddFollowerToPersonResponse} - */ - addPersonFollower(id, opts) { - return this.addPersonFollowerWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add person picture - * Adds a picture to a person. If a picture is already set, the old picture will be replaced. Added image (or the cropping parameters supplied with the request) should have an equal width and height and should be at least 128 pixels. GIF, JPG and PNG are accepted. All added images will be resized to 128 and 512 pixel wide squares. - * @param {Number} id The ID of the person - * @param {File} file One image supplied in the multipart/form-data encoding - * @param {Object} opts Optional parameters - * @param {Number} opts.cropX X coordinate to where start cropping form (in pixels) - * @param {Number} opts.cropY Y coordinate to where start cropping form (in pixels) - * @param {Number} opts.cropWidth The width of the cropping area (in pixels) - * @param {Number} opts.cropHeight The height of the cropping area (in pixels) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddPersonPictureResponse} and HTTP response - */ - addPersonPictureWithHttpInfo(id, file, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addPersonPicture"); - } - - // verify the required parameter 'file' is set - if (file === undefined || file === null) { - throw new Error("Missing the required parameter 'file' when calling addPersonPicture"); - } - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - 'file': file, - 'crop_x': opts['cropX'], - 'crop_y': opts['cropY'], - 'crop_width': opts['cropWidth'], - 'crop_height': opts['cropHeight'], - }; - - let formParamArray = [ - 'file', - 'cropX', - 'cropY', - 'cropWidth', - 'cropHeight', - ]; - - let contentTypes = ['multipart/form-data', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = AddPersonPictureResponse; - return this.apiClient.callApi( - '/persons/{id}/picture', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add person picture - * Adds a picture to a person. If a picture is already set, the old picture will be replaced. Added image (or the cropping parameters supplied with the request) should have an equal width and height and should be at least 128 pixels. GIF, JPG and PNG are accepted. All added images will be resized to 128 and 512 pixel wide squares. - * @param {Number} id The ID of the person - * @param {File} file One image supplied in the multipart/form-data encoding - * @param {Object} opts Optional parameters - * @param {Number} opts.cropX X coordinate to where start cropping form (in pixels) - * @param {Number} opts.cropY Y coordinate to where start cropping form (in pixels) - * @param {Number} opts.cropWidth The width of the cropping area (in pixels) - * @param {Number} opts.cropHeight The height of the cropping area (in pixels) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddPersonPictureResponse} - */ - addPersonPicture(id, file, opts) { - return this.addPersonPictureWithHttpInfo(id, file, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a person - * Marks a person as deleted. After 30 days, the person will be permanently deleted. - * @param {Number} id The ID of the person - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePersonResponse} and HTTP response - */ - deletePersonWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deletePerson"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeletePersonResponse; - return this.apiClient.callApi( - '/persons/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a person - * Marks a person as deleted. After 30 days, the person will be permanently deleted. - * @param {Number} id The ID of the person - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePersonResponse} - */ - deletePerson(id) { - return this.deletePersonWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a follower from a person - * Deletes a follower from a person. - * @param {Number} id The ID of the person - * @param {Number} followerId The ID of the follower - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePersonResponse} and HTTP response - */ - deletePersonFollowerWithHttpInfo(id, followerId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deletePersonFollower"); - } - - // verify the required parameter 'followerId' is set - if (followerId === undefined || followerId === null) { - throw new Error("Missing the required parameter 'followerId' when calling deletePersonFollower"); - } - - let pathParams = { - 'id': id, - 'follower_id': followerId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeletePersonResponse; - return this.apiClient.callApi( - '/persons/{id}/followers/{follower_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a follower from a person - * Deletes a follower from a person. - * @param {Number} id The ID of the person - * @param {Number} followerId The ID of the follower - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePersonResponse} - */ - deletePersonFollower(id, followerId) { - return this.deletePersonFollowerWithHttpInfo(id, followerId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete person picture - * Deletes a person’s picture. - * @param {Number} id The ID of the person - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePersonResponse} and HTTP response - */ - deletePersonPictureWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deletePersonPicture"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeletePersonResponse; - return this.apiClient.callApi( - '/persons/{id}/picture', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete person picture - * Deletes a person’s picture. - * @param {Number} id The ID of the person - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePersonResponse} - */ - deletePersonPicture(id) { - return this.deletePersonPictureWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete multiple persons in bulk - * Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted. - * @param {String} ids The comma-separated IDs that will be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePersonsInBulkResponse} and HTTP response - */ - deletePersonsWithHttpInfo(ids) { - const opts = {} - let postBody = null; - - // verify the required parameter 'ids' is set - if (ids === undefined || ids === null) { - throw new Error("Missing the required parameter 'ids' when calling deletePersons"); - } - - let pathParams = { - }; - let queryParams = { - 'ids': ids, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeletePersonsInBulkResponse; - return this.apiClient.callApi( - '/persons', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete multiple persons in bulk - * Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted. - * @param {String} ids The comma-separated IDs that will be deleted - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePersonsInBulkResponse} - */ - deletePersons(ids) { - return this.deletePersonsWithHttpInfo(ids) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get details of a person - * Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @param {Number} id The ID of the person - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetPersonDetailsResponse} and HTTP response - */ - getPersonWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPerson"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetPersonDetailsResponse; - return this.apiClient.callApi( - '/persons/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get details of a person - * Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. - * @param {Number} id The ID of the person - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetPersonDetailsResponse} - */ - getPerson(id) { - return this.getPersonWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List activities associated with a person - * Lists activities associated with a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - * @param {String} opts.exclude A comma-separated string of activity IDs to exclude from result - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListActivitiesResponse} and HTTP response - */ - getPersonActivitiesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPersonActivities"); - } - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'done': opts['done'] === undefined ? opts['done'] : opts['done'], - 'exclude': opts['exclude'] === undefined ? opts['exclude'] : opts['exclude'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListActivitiesResponse; - return this.apiClient.callApi( - '/persons/{id}/activities', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List activities associated with a person - * Lists activities associated with a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. - * @param {String} opts.exclude A comma-separated string of activity IDs to exclude from result - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListActivitiesResponse} - */ - getPersonActivities(id, opts) { - return this.getPersonActivitiesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List updates about person field values - * Lists updates about field values of a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChangelogResponse} and HTTP response - */ - getPersonChangelogWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPersonChangelog"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ChangelogResponse; - return this.apiClient.callApi( - '/persons/{id}/changelog', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List updates about person field values - * Lists updates about field values of a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChangelogResponse} - */ - getPersonChangelog(id, opts) { - return this.getPersonChangelogWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List deals associated with a person - * Lists deals associated with a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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') - * @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). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDealsResponse} and HTTP response - */ - getPersonDealsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPersonDeals"); - } - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'status': opts['status'] === undefined ? opts['status'] : opts['status'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListDealsResponse; - return this.apiClient.callApi( - '/persons/{id}/deals', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List deals associated with a person - * Lists deals associated with a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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') - * @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). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDealsResponse} - */ - getPersonDeals(id, opts) { - return this.getPersonDealsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List files attached to a person - * Lists files associated with a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListFilesResponse} and HTTP response - */ - getPersonFilesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPersonFiles"); - } - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListFilesResponse; - return this.apiClient.callApi( - '/persons/{id}/files', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List files attached to a person - * Lists files associated with a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListFilesResponse} - */ - getPersonFiles(id, opts) { - return this.getPersonFilesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List followers of a person - * Lists the followers of a person. - * @param {Number} id The ID of the person - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListFollowersResponse} and HTTP response - */ - getPersonFollowersWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPersonFollowers"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListFollowersResponse; - return this.apiClient.callApi( - '/persons/{id}/followers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List followers of a person - * Lists the followers of a person. - * @param {Number} id The ID of the person - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListFollowersResponse} - */ - getPersonFollowers(id) { - return this.getPersonFollowersWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List mail messages associated with a person - * Lists mail messages associated with a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMailMessagesResponse} and HTTP response - */ - getPersonMailMessagesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPersonMailMessages"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListMailMessagesResponse; - return this.apiClient.callApi( - '/persons/{id}/mailMessages', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List mail messages associated with a person - * Lists mail messages associated with a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMailMessagesResponse} - */ - getPersonMailMessages(id, opts) { - return this.getPersonMailMessagesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List products associated with a person - * Lists products associated with a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPersonProductsResponse} and HTTP response - */ - getPersonProductsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPersonProducts"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListPersonProductsResponse; - return this.apiClient.callApi( - '/persons/{id}/products', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List products associated with a person - * Lists products associated with a person. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPersonProductsResponse} - */ - getPersonProducts(id, opts) { - return this.getPersonProductsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List updates about a person - * Lists updates about a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint's response will also include updates for the `marketing_status` field. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {String} opts.allChanges Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. - * @param {String} opts.items A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PersonFlowResponse} and HTTP response - */ - getPersonUpdatesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPersonUpdates"); - } - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'all_changes': opts['all_changes'] === undefined ? opts['allChanges'] : opts['all_changes'], - 'items': opts['items'] === undefined ? opts['items'] : opts['items'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PersonFlowResponse; - return this.apiClient.callApi( - '/persons/{id}/flow', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List updates about a person - * Lists updates about a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint's response will also include updates for the `marketing_status` field. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {String} opts.allChanges Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. - * @param {String} opts.items A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PersonFlowResponse} - */ - getPersonUpdates(id, opts) { - return this.getPersonUpdatesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List permitted users - * List users permitted to access a person. - * @param {Number} id The ID of the person - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPermittedUsersResponse1} and HTTP response - */ - getPersonUsersWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPersonUsers"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListPermittedUsersResponse1; - return this.apiClient.callApi( - '/persons/{id}/permittedUsers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List permitted users - * List users permitted to access a person. - * @param {Number} id The ID of the person - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPermittedUsersResponse1} - */ - getPersonUsers(id) { - return this.getPersonUsersWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all persons - * Returns all persons. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId If supplied, only persons owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - * @param {Number} opts.filterId The ID of the filter to use - * @param {String} opts.firstChar If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAllPersonsResponse} and HTTP response - */ - getPersonsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - let pathParams = { - }; - let queryParams = { - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], - 'first_char': opts['first_char'] === undefined ? opts['firstChar'] : opts['first_char'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetAllPersonsResponse; - return this.apiClient.callApi( - '/persons', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all persons - * Returns all persons. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId If supplied, only persons owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. - * @param {Number} opts.filterId The ID of the filter to use - * @param {String} opts.firstChar If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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). - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAllPersonsResponse} - */ - getPersons(opts) { - return this.getPersonsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all persons (BETA) - * Returns all persons. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {String} opts.since The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {String} opts.until The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {Number} opts.ownerId If supplied, only persons owned by the given user will be returned - * @param {String} opts.firstChar If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InlineResponse2002} and HTTP response - */ - getPersonsCollectionWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - let pathParams = { - }; - let queryParams = { - 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'since': opts['since'] === undefined ? opts['since'] : opts['since'], - 'until': opts['until'] === undefined ? opts['until'] : opts['until'], - 'owner_id': opts['owner_id'] === undefined ? opts['ownerId'] : opts['owner_id'], - 'first_char': opts['first_char'] === undefined ? opts['firstChar'] : opts['first_char'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = InlineResponse2002; - return this.apiClient.callApi( - '/persons/collection', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all persons (BETA) - * Returns all persons. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. - * @param {String} opts.since The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {String} opts.until The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. - * @param {Number} opts.ownerId If supplied, only persons owned by the given user will be returned - * @param {String} opts.firstChar If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InlineResponse2002} - */ - getPersonsCollection(opts) { - return this.getPersonsCollectionWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Merge two persons - * Merges a person with another person. For more information, see the tutorial for merging two persons. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {module:model/MergePersonsRequest} opts.mergePersonsRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/MergePersonsResponse} and HTTP response - */ - mergePersonsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['mergePersonsRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling mergePersons"); - } - - if (opts['merge_with_id'] === undefined || opts['merge_with_id'] === null) { - throw new Error("Missing the required parameter 'merge_with_id' when calling mergePersons"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = MergePersonsResponse; - return this.apiClient.callApi( - '/persons/{id}/merge', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Merge two persons - * Merges a person with another person. For more information, see the tutorial for merging two persons. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {module:model/MergePersonsRequest} opts.mergePersonsRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/MergePersonsResponse} - */ - mergePersons(id, opts) { - return this.mergePersonsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Search persons - * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {Number} opts.organizationId Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. - * @param {module:model/String} opts.includeFields Supports including optional fields in the results which are not provided by default - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PersonSearchResponse} and HTTP response - */ - searchPersonsWithHttpInfo(term, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'term' is set - if (term === undefined || term === null) { - throw new Error("Missing the required parameter 'term' when calling searchPersons"); - } - - - - - - - - let pathParams = { - }; - let queryParams = { - 'term': term, - 'fields': opts['fields'] === undefined ? opts['fields'] : opts['fields'], - 'exact_match': opts['exact_match'] === undefined ? opts['exactMatch'] : opts['exact_match'], - 'organization_id': opts['organization_id'] === undefined ? opts['organizationId'] : opts['organization_id'], - 'include_fields': opts['include_fields'] === undefined ? opts['includeFields'] : opts['include_fields'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PersonSearchResponse; - return this.apiClient.callApi( - '/persons/search', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Search persons - * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {Number} opts.organizationId Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. - * @param {module:model/String} opts.includeFields Supports including optional fields in the results which are not provided by default - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PersonSearchResponse} - */ - searchPersons(term, opts) { - return this.searchPersonsWithHttpInfo(term, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a person - * Updates the properties of a person. For more information, see the tutorial for updating a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {module:model/UpdatePerson} opts.updatePerson - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePersonResponse} and HTTP response - */ - updatePersonWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updatePerson']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updatePerson"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpdatePersonResponse; - return this.apiClient.callApi( - '/persons/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a person - * Updates the properties of a person. For more information, see the tutorial for updating a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. - * @param {Number} id The ID of the person - * @param {Object} opts Optional parameters - * @param {module:model/UpdatePerson} opts.updatePerson - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePersonResponse} - */ - updatePerson(id, opts) { - return this.updatePersonWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/PipelinesApi.js b/src/api/PipelinesApi.js deleted file mode 100644 index 98f6e91c..00000000 --- a/src/api/PipelinesApi.js +++ /dev/null @@ -1,653 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddNewPipeline from '../model/AddNewPipeline'; -import DeletePipelineResponse from '../model/DeletePipelineResponse'; -import EditPipeline from '../model/EditPipeline'; -import GetAllPipelines from '../model/GetAllPipelines'; -import GetDealsConversionRatesInPipeline from '../model/GetDealsConversionRatesInPipeline'; -import GetDealsMovementsInPipeline from '../model/GetDealsMovementsInPipeline'; -import GetOnePipeline from '../model/GetOnePipeline'; -import GetStageDeals from '../model/GetStageDeals'; -import NumberBoolean from '../model/NumberBoolean'; -import Pipeline from '../model/Pipeline'; - -/** -* Pipelines service. -* @module api/PipelinesApi -* @version 1.0.0 -*/ -export default class PipelinesApi { - - /** - * Constructs a new PipelinesApi. - * @alias module:api/PipelinesApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a new pipeline - * Adds a new pipeline. - * @param {Object} opts Optional parameters - * @param {module:model/Pipeline} opts.pipeline - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddNewPipeline} and HTTP response - */ - addPipelineWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['pipeline']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = AddNewPipeline; - return this.apiClient.callApi( - '/pipelines', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new pipeline - * Adds a new pipeline. - * @param {Object} opts Optional parameters - * @param {module:model/Pipeline} opts.pipeline - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddNewPipeline} - */ - addPipeline(opts) { - return this.addPipelineWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a pipeline - * Marks a pipeline as deleted. - * @param {Number} id The ID of the pipeline - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeletePipelineResponse} and HTTP response - */ - deletePipelineWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deletePipeline"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeletePipelineResponse; - return this.apiClient.callApi( - '/pipelines/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a pipeline - * Marks a pipeline as deleted. - * @param {Number} id The ID of the pipeline - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeletePipelineResponse} - */ - deletePipeline(id) { - return this.deletePipelineWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one pipeline - * Returns data about a specific pipeline. Also returns the summary of the deals in this pipeline across its stages. - * @param {Number} id The ID of the pipeline - * @param {Object} opts Optional parameters - * @param {String} opts.totalsConvertCurrency The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned in `deals_summary` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOnePipeline} and HTTP response - */ - getPipelineWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPipeline"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'totals_convert_currency': opts['totals_convert_currency'] === undefined ? opts['totalsConvertCurrency'] : opts['totals_convert_currency'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetOnePipeline; - return this.apiClient.callApi( - '/pipelines/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one pipeline - * Returns data about a specific pipeline. Also returns the summary of the deals in this pipeline across its stages. - * @param {Number} id The ID of the pipeline - * @param {Object} opts Optional parameters - * @param {String} opts.totalsConvertCurrency The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned in `deals_summary` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOnePipeline} - */ - getPipeline(id, opts) { - return this.getPipelineWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get deals conversion rates in pipeline - * Returns all stage-to-stage conversion and pipeline-to-close rates for the given time period. - * @param {Number} id The ID of the pipeline - * @param {Date} startDate The start of the period. Date in format of YYYY-MM-DD. - * @param {Date} endDate The end of the period. Date in format of YYYY-MM-DD. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId The ID of the user who's pipeline metrics statistics to fetch. If omitted, the authorized user will be used. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDealsConversionRatesInPipeline} and HTTP response - */ - getPipelineConversionStatisticsWithHttpInfo(id, startDate, endDate, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPipelineConversionStatistics"); - } - - // verify the required parameter 'startDate' is set - if (startDate === undefined || startDate === null) { - throw new Error("Missing the required parameter 'startDate' when calling getPipelineConversionStatistics"); - } - - // verify the required parameter 'endDate' is set - if (endDate === undefined || endDate === null) { - throw new Error("Missing the required parameter 'endDate' when calling getPipelineConversionStatistics"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start_date': startDate, - 'end_date': endDate, - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetDealsConversionRatesInPipeline; - return this.apiClient.callApi( - '/pipelines/{id}/conversion_statistics', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get deals conversion rates in pipeline - * Returns all stage-to-stage conversion and pipeline-to-close rates for the given time period. - * @param {Number} id The ID of the pipeline - * @param {Date} startDate The start of the period. Date in format of YYYY-MM-DD. - * @param {Date} endDate The end of the period. Date in format of YYYY-MM-DD. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId The ID of the user who's pipeline metrics statistics to fetch. If omitted, the authorized user will be used. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDealsConversionRatesInPipeline} - */ - getPipelineConversionStatistics(id, startDate, endDate, opts) { - return this.getPipelineConversionStatisticsWithHttpInfo(id, startDate, endDate, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get deals in a pipeline - * Lists deals in a specific pipeline across all its stages. If no parameters are provided open deals owned by the authorized user will be returned. - * @param {Number} id The ID of the pipeline - * @param {Object} opts Optional parameters - * @param {Number} opts.filterId If supplied, only deals matching the given filter will be returned - * @param {Number} opts.userId If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. - * @param {module:model/NumberBoolean} opts.everyone If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned - * @param {Number} opts.stageId If supplied, only deals within the given stage will be returned - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.getSummary Whether to include a summary of the pipeline in the `additional_data` or not - * @param {String} opts.totalsConvertCurrency The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned inside `deals_summary` inside `additional_data` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. Only works when `get_summary` parameter flag is enabled. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetStageDeals} and HTTP response - */ - getPipelineDealsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPipelineDeals"); - } - - - - - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'everyone': opts['everyone'] === undefined ? opts['everyone'] : opts['everyone'], - 'stage_id': opts['stage_id'] === undefined ? opts['stageId'] : opts['stage_id'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'get_summary': opts['get_summary'] === undefined ? opts['getSummary'] : opts['get_summary'], - 'totals_convert_currency': opts['totals_convert_currency'] === undefined ? opts['totalsConvertCurrency'] : opts['totals_convert_currency'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetStageDeals; - return this.apiClient.callApi( - '/pipelines/{id}/deals', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get deals in a pipeline - * Lists deals in a specific pipeline across all its stages. If no parameters are provided open deals owned by the authorized user will be returned. - * @param {Number} id The ID of the pipeline - * @param {Object} opts Optional parameters - * @param {Number} opts.filterId If supplied, only deals matching the given filter will be returned - * @param {Number} opts.userId If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. - * @param {module:model/NumberBoolean} opts.everyone If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned - * @param {Number} opts.stageId If supplied, only deals within the given stage will be returned - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.getSummary Whether to include a summary of the pipeline in the `additional_data` or not - * @param {String} opts.totalsConvertCurrency The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned inside `deals_summary` inside `additional_data` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. Only works when `get_summary` parameter flag is enabled. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetStageDeals} - */ - getPipelineDeals(id, opts) { - return this.getPipelineDealsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get deals movements in pipeline - * Returns statistics for deals movements for the given time period. - * @param {Number} id The ID of the pipeline - * @param {Date} startDate The start of the period. Date in format of YYYY-MM-DD. - * @param {Date} endDate The end of the period. Date in format of YYYY-MM-DD. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId The ID of the user who's pipeline statistics to fetch. If omitted, the authorized user will be used. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDealsMovementsInPipeline} and HTTP response - */ - getPipelineMovementStatisticsWithHttpInfo(id, startDate, endDate, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getPipelineMovementStatistics"); - } - - // verify the required parameter 'startDate' is set - if (startDate === undefined || startDate === null) { - throw new Error("Missing the required parameter 'startDate' when calling getPipelineMovementStatistics"); - } - - // verify the required parameter 'endDate' is set - if (endDate === undefined || endDate === null) { - throw new Error("Missing the required parameter 'endDate' when calling getPipelineMovementStatistics"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start_date': startDate, - 'end_date': endDate, - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetDealsMovementsInPipeline; - return this.apiClient.callApi( - '/pipelines/{id}/movement_statistics', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get deals movements in pipeline - * Returns statistics for deals movements for the given time period. - * @param {Number} id The ID of the pipeline - * @param {Date} startDate The start of the period. Date in format of YYYY-MM-DD. - * @param {Date} endDate The end of the period. Date in format of YYYY-MM-DD. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId The ID of the user who's pipeline statistics to fetch. If omitted, the authorized user will be used. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDealsMovementsInPipeline} - */ - getPipelineMovementStatistics(id, startDate, endDate, opts) { - return this.getPipelineMovementStatisticsWithHttpInfo(id, startDate, endDate, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all pipelines - * Returns data about all pipelines. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAllPipelines} and HTTP response - */ - getPipelinesWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetAllPipelines; - return this.apiClient.callApi( - '/pipelines', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all pipelines - * Returns data about all pipelines. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAllPipelines} - */ - getPipelines() { - return this.getPipelinesWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a pipeline - * Updates the properties of a pipeline. - * @param {Number} id The ID of the pipeline - * @param {Object} opts Optional parameters - * @param {module:model/Pipeline} opts.pipeline - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EditPipeline} and HTTP response - */ - updatePipelineWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['pipeline']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updatePipeline"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = EditPipeline; - return this.apiClient.callApi( - '/pipelines/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a pipeline - * Updates the properties of a pipeline. - * @param {Number} id The ID of the pipeline - * @param {Object} opts Optional parameters - * @param {module:model/Pipeline} opts.pipeline - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EditPipeline} - */ - updatePipeline(id, opts) { - return this.updatePipelineWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/ProductFieldsApi.js b/src/api/ProductFieldsApi.js deleted file mode 100644 index 69a25cd0..00000000 --- a/src/api/ProductFieldsApi.js +++ /dev/null @@ -1,450 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import DeleteMultipleProductFieldsResponse from '../model/DeleteMultipleProductFieldsResponse'; -import DeleteProductFieldResponse from '../model/DeleteProductFieldResponse'; -import FailResponse from '../model/FailResponse'; -import GetAllProductFieldsResponse from '../model/GetAllProductFieldsResponse'; -import GetProductFieldResponse from '../model/GetProductFieldResponse'; -import NewProductField from '../model/NewProductField'; -import UpdateProductField from '../model/UpdateProductField'; - -/** -* ProductFields service. -* @module api/ProductFieldsApi -* @version 1.0.0 -*/ -export default class ProductFieldsApi { - - /** - * Constructs a new ProductFieldsApi. - * @alias module:api/ProductFieldsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a new product field - * Adds a new product field. For more information, see the tutorial for adding a new custom field. - * @param {Object} opts Optional parameters - * @param {module:model/NewProductField} opts.newProductField - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProductFieldResponse} and HTTP response - */ - addProductFieldWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['newProductField']; - - if (opts['name'] === undefined || opts['name'] === null) { - throw new Error("Missing the required parameter 'name' when calling addProductField"); - } - if (opts['field_type'] === undefined || opts['field_type'] === null) { - throw new Error("Missing the required parameter 'field_type' when calling addProductField"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProductFieldResponse; - return this.apiClient.callApi( - '/productFields', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new product field - * Adds a new product field. For more information, see the tutorial for adding a new custom field. - * @param {Object} opts Optional parameters - * @param {module:model/NewProductField} opts.newProductField - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProductFieldResponse} - */ - addProductField(opts) { - return this.addProductFieldWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a product field - * Marks a product field as deleted. For more information, see the tutorial for deleting a custom field. - * @param {Number} id The ID of the product field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteProductFieldResponse} and HTTP response - */ - deleteProductFieldWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteProductField"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteProductFieldResponse; - return this.apiClient.callApi( - '/productFields/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a product field - * Marks a product field as deleted. For more information, see the tutorial for deleting a custom field. - * @param {Number} id The ID of the product field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteProductFieldResponse} - */ - deleteProductField(id) { - return this.deleteProductFieldWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete multiple product fields in bulk - * Marks multiple fields as deleted. - * @param {String} ids The comma-separated field IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteMultipleProductFieldsResponse} and HTTP response - */ - deleteProductFieldsWithHttpInfo(ids) { - const opts = {} - let postBody = null; - - // verify the required parameter 'ids' is set - if (ids === undefined || ids === null) { - throw new Error("Missing the required parameter 'ids' when calling deleteProductFields"); - } - - let pathParams = { - }; - let queryParams = { - 'ids': ids, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteMultipleProductFieldsResponse; - return this.apiClient.callApi( - '/productFields', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete multiple product fields in bulk - * Marks multiple fields as deleted. - * @param {String} ids The comma-separated field IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteMultipleProductFieldsResponse} - */ - deleteProductFields(ids) { - return this.deleteProductFieldsWithHttpInfo(ids) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one product field - * Returns data about a specific product field. - * @param {Number} id The ID of the product field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProductFieldResponse} and HTTP response - */ - getProductFieldWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProductField"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProductFieldResponse; - return this.apiClient.callApi( - '/productFields/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one product field - * Returns data about a specific product field. - * @param {Number} id The ID of the product field - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProductFieldResponse} - */ - getProductField(id) { - return this.getProductFieldWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all product fields - * Returns data about all product fields. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAllProductFieldsResponse} and HTTP response - */ - getProductFieldsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - let pathParams = { - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetAllProductFieldsResponse; - return this.apiClient.callApi( - '/productFields', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all product fields - * Returns data about all product fields. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAllProductFieldsResponse} - */ - getProductFields(opts) { - return this.getProductFieldsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a product field - * Updates a product field. For more information, see the tutorial for updating custom fields' values. - * @param {Number} id The ID of the product field - * @param {Object} opts Optional parameters - * @param {module:model/UpdateProductField} opts.updateProductField - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProductFieldResponse} and HTTP response - */ - updateProductFieldWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updateProductField']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateProductField"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProductFieldResponse; - return this.apiClient.callApi( - '/productFields/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a product field - * Updates a product field. For more information, see the tutorial for updating custom fields' values. - * @param {Number} id The ID of the product field - * @param {Object} opts Optional parameters - * @param {module:model/UpdateProductField} opts.updateProductField - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProductFieldResponse} - */ - updateProductField(id, opts) { - return this.updateProductFieldWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/ProductsApi.js b/src/api/ProductsApi.js deleted file mode 100644 index f1e74c43..00000000 --- a/src/api/ProductsApi.js +++ /dev/null @@ -1,943 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddProductFollowerRequest from '../model/AddProductFollowerRequest'; -import AddProductRequestBody from '../model/AddProductRequestBody'; -import DeleteProductFollowerResponse from '../model/DeleteProductFollowerResponse'; -import DeleteProductResponse from '../model/DeleteProductResponse'; -import ListDealsResponse from '../model/ListDealsResponse'; -import ListProductFilesResponse from '../model/ListProductFilesResponse'; -import ListProductFollowersResponse from '../model/ListProductFollowersResponse'; -import NewFollowerResponse from '../model/NewFollowerResponse'; -import ProductResponse from '../model/ProductResponse'; -import ProductSearchResponse from '../model/ProductSearchResponse'; -import ProductsResponse from '../model/ProductsResponse'; -import UpdateProductRequestBody from '../model/UpdateProductRequestBody'; -import UpdateProductResponse from '../model/UpdateProductResponse'; -import UserIDs from '../model/UserIDs'; - -/** -* Products service. -* @module api/ProductsApi -* @version 1.0.0 -*/ -export default class ProductsApi { - - /** - * Constructs a new ProductsApi. - * @alias module:api/ProductsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a product - * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. - * @param {Object} opts Optional parameters - * @param {module:model/AddProductRequestBody} opts.addProductRequestBody - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProductResponse} and HTTP response - */ - addProductWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['addProductRequestBody']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ProductResponse; - return this.apiClient.callApi( - '/products', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a product - * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. - * @param {Object} opts Optional parameters - * @param {module:model/AddProductRequestBody} opts.addProductRequestBody - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProductResponse} - */ - addProduct(opts) { - return this.addProductWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add a follower to a product - * Adds a follower to a product. - * @param {Number} id The ID of the product - * @param {Object} opts Optional parameters - * @param {module:model/AddProductFollowerRequest} opts.addProductFollowerRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NewFollowerResponse} and HTTP response - */ - addProductFollowerWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['addProductFollowerRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addProductFollower"); - } - - if (opts['user_id'] === undefined || opts['user_id'] === null) { - throw new Error("Missing the required parameter 'user_id' when calling addProductFollower"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = NewFollowerResponse; - return this.apiClient.callApi( - '/products/{id}/followers', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a follower to a product - * Adds a follower to a product. - * @param {Number} id The ID of the product - * @param {Object} opts Optional parameters - * @param {module:model/AddProductFollowerRequest} opts.addProductFollowerRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NewFollowerResponse} - */ - addProductFollower(id, opts) { - return this.addProductFollowerWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a product - * Marks a product as deleted. After 30 days, the product will be permanently deleted. - * @param {Number} id The ID of the product - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteProductResponse} and HTTP response - */ - deleteProductWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteProduct"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteProductResponse; - return this.apiClient.callApi( - '/products/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a product - * Marks a product as deleted. After 30 days, the product will be permanently deleted. - * @param {Number} id The ID of the product - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteProductResponse} - */ - deleteProduct(id) { - return this.deleteProductWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a follower from a product - * Deletes a follower from a product. - * @param {Number} id The ID of the product - * @param {Number} followerId The ID of the relationship between the follower and the product - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteProductFollowerResponse} and HTTP response - */ - deleteProductFollowerWithHttpInfo(id, followerId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteProductFollower"); - } - - // verify the required parameter 'followerId' is set - if (followerId === undefined || followerId === null) { - throw new Error("Missing the required parameter 'followerId' when calling deleteProductFollower"); - } - - let pathParams = { - 'id': id, - 'follower_id': followerId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteProductFollowerResponse; - return this.apiClient.callApi( - '/products/{id}/followers/{follower_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a follower from a product - * Deletes a follower from a product. - * @param {Number} id The ID of the product - * @param {Number} followerId The ID of the relationship between the follower and the product - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteProductFollowerResponse} - */ - deleteProductFollower(id, followerId) { - return this.deleteProductFollowerWithHttpInfo(id, followerId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one product - * Returns data about a specific product. - * @param {Number} id The ID of the product - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProductResponse} and HTTP response - */ - getProductWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProduct"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ProductResponse; - return this.apiClient.callApi( - '/products/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one product - * Returns data about a specific product. - * @param {Number} id The ID of the product - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProductResponse} - */ - getProduct(id) { - return this.getProductWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get deals where a product is attached to - * Returns data about deals that have a product attached to it. - * @param {Number} id The ID of the product - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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') - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDealsResponse} and HTTP response - */ - getProductDealsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProductDeals"); - } - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'status': opts['status'] === undefined ? opts['status'] : opts['status'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListDealsResponse; - return this.apiClient.callApi( - '/products/{id}/deals', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get deals where a product is attached to - * Returns data about deals that have a product attached to it. - * @param {Number} id The ID of the product - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @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') - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDealsResponse} - */ - getProductDeals(id, opts) { - return this.getProductDealsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List files attached to a product - * Lists files associated with a product. - * @param {Number} id The ID of the product - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {String} opts.sort The field name and sorting mode (`field_name_1 ASC` or `field_name_1 DESC`). Supported fields: `update_time`, `id`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListProductFilesResponse} and HTTP response - */ - getProductFilesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProductFiles"); - } - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'sort': opts['sort'] === undefined ? opts['sort'] : opts['sort'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListProductFilesResponse; - return this.apiClient.callApi( - '/products/{id}/files', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List files attached to a product - * Lists files associated with a product. - * @param {Number} id The ID of the product - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {String} opts.sort The field name and sorting mode (`field_name_1 ASC` or `field_name_1 DESC`). Supported fields: `update_time`, `id`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListProductFilesResponse} - */ - getProductFiles(id, opts) { - return this.getProductFilesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List followers of a product - * Lists the followers of a product. - * @param {Number} id The ID of the product - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListProductFollowersResponse} and HTTP response - */ - getProductFollowersWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProductFollowers"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ListProductFollowersResponse; - return this.apiClient.callApi( - '/products/{id}/followers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List followers of a product - * Lists the followers of a product. - * @param {Number} id The ID of the product - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListProductFollowersResponse} - */ - getProductFollowers(id, opts) { - return this.getProductFollowersWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List permitted users - * Lists users permitted to access a product. - * @param {Number} id The ID of the product - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserIDs} and HTTP response - */ - getProductUsersWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProductUsers"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserIDs; - return this.apiClient.callApi( - '/products/{id}/permittedUsers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List permitted users - * Lists users permitted to access a product. - * @param {Number} id The ID of the product - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserIDs} - */ - getProductUsers(id) { - return this.getProductUsersWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all products - * Returns data about all products. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId If supplied, only products owned by the given user will be returned - * @param {Number} opts.filterId The ID of the filter to use - * @param {Array.} opts.ids An array of integers with the IDs of the products that should be returned in the response - * @param {String} opts.firstChar If supplied, only products whose name starts with the specified letter will be returned (case-insensitive) - * @param {Boolean} opts.getSummary If supplied, the response will return the total numbers of products in the `additional_data.summary.total_count` property - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProductsResponse} and HTTP response - */ - getProductsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - - let pathParams = { - }; - let queryParams = { - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], - 'ids': this.apiClient.buildCollectionParam(opts['ids'], 'csv'), - 'first_char': opts['first_char'] === undefined ? opts['firstChar'] : opts['first_char'], - 'get_summary': opts['get_summary'] === undefined ? opts['getSummary'] : opts['get_summary'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ProductsResponse; - return this.apiClient.callApi( - '/products', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all products - * Returns data about all products. - * @param {Object} opts Optional parameters - * @param {Number} opts.userId If supplied, only products owned by the given user will be returned - * @param {Number} opts.filterId The ID of the filter to use - * @param {Array.} opts.ids An array of integers with the IDs of the products that should be returned in the response - * @param {String} opts.firstChar If supplied, only products whose name starts with the specified letter will be returned (case-insensitive) - * @param {Boolean} opts.getSummary If supplied, the response will return the total numbers of products in the `additional_data.summary.total_count` property - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProductsResponse} - */ - getProducts(opts) { - return this.getProductsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Search products - * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {module:model/String} opts.includeFields Supports including optional fields in the results which are not provided by default - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ProductSearchResponse} and HTTP response - */ - searchProductsWithHttpInfo(term, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'term' is set - if (term === undefined || term === null) { - throw new Error("Missing the required parameter 'term' when calling searchProducts"); - } - - - - - - - let pathParams = { - }; - let queryParams = { - 'term': term, - 'fields': opts['fields'] === undefined ? opts['fields'] : opts['fields'], - 'exact_match': opts['exact_match'] === undefined ? opts['exactMatch'] : opts['exact_match'], - 'include_fields': opts['include_fields'] === undefined ? opts['includeFields'] : opts['include_fields'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = ProductSearchResponse; - return this.apiClient.callApi( - '/products/search', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Search products - * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. - * @param {String} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.fields A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields here. - * @param {Boolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. It is not case sensitive. - * @param {module:model/String} opts.includeFields Supports including optional fields in the results which are not provided by default - * @param {Number} opts.start Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ProductSearchResponse} - */ - searchProducts(term, opts) { - return this.searchProductsWithHttpInfo(term, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a product - * Updates product data. - * @param {Number} id The ID of the product - * @param {Object} opts Optional parameters - * @param {module:model/UpdateProductRequestBody} opts.updateProductRequestBody - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateProductResponse} and HTTP response - */ - updateProductWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updateProductRequestBody']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateProduct"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpdateProductResponse; - return this.apiClient.callApi( - '/products/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a product - * Updates product data. - * @param {Number} id The ID of the product - * @param {Object} opts Optional parameters - * @param {module:model/UpdateProductRequestBody} opts.updateProductRequestBody - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateProductResponse} - */ - updateProduct(id, opts) { - return this.updateProductWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/ProjectTemplatesApi.js b/src/api/ProjectTemplatesApi.js deleted file mode 100644 index a71dd413..00000000 --- a/src/api/ProjectTemplatesApi.js +++ /dev/null @@ -1,307 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import GetProjectBoardResponse from '../model/GetProjectBoardResponse'; -import GetProjectPhaseResponse from '../model/GetProjectPhaseResponse'; -import GetProjectTemplateResponse from '../model/GetProjectTemplateResponse'; -import GetProjectTemplatesResponse from '../model/GetProjectTemplatesResponse'; - -/** -* ProjectTemplates service. -* @module api/ProjectTemplatesApi -* @version 1.0.0 -*/ -export default class ProjectTemplatesApi { - - /** - * Constructs a new ProjectTemplatesApi. - * @alias module:api/ProjectTemplatesApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Get details of a template - * Returns the details of a specific project template. - * @param {Number} id The ID of the project template - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectTemplateResponse} and HTTP response - */ - getProjectTemplateWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProjectTemplate"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProjectTemplateResponse; - return this.apiClient.callApi( - '/projectTemplates/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get details of a template - * Returns the details of a specific project template. - * @param {Number} id The ID of the project template - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectTemplateResponse} - */ - getProjectTemplate(id) { - return this.getProjectTemplateWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all project templates - * Returns all not deleted project templates. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectTemplatesResponse} and HTTP response - */ - getProjectTemplatesWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - let pathParams = { - }; - let queryParams = { - 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProjectTemplatesResponse; - return this.apiClient.callApi( - '/projectTemplates', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all project templates - * Returns all not deleted project templates. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectTemplatesResponse} - */ - getProjectTemplates(opts) { - return this.getProjectTemplatesWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get details of a board - * Returns the details of a specific project board. - * @param {Number} id The ID of the project board - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectBoardResponse} and HTTP response - */ - getProjectsBoardWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProjectsBoard"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProjectBoardResponse; - return this.apiClient.callApi( - '/projects/boards/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get details of a board - * Returns the details of a specific project board. - * @param {Number} id The ID of the project board - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectBoardResponse} - */ - getProjectsBoard(id) { - return this.getProjectsBoardWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get details of a phase - * Returns the details of a specific project phase. - * @param {Number} id The ID of the project phase - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectPhaseResponse} and HTTP response - */ - getProjectsPhaseWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProjectsPhase"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProjectPhaseResponse; - return this.apiClient.callApi( - '/projects/phases/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get details of a phase - * Returns the details of a specific project phase. - * @param {Number} id The ID of the project phase - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectPhaseResponse} - */ - getProjectsPhase(id) { - return this.getProjectsPhaseWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/ProjectsApi.js b/src/api/ProjectsApi.js deleted file mode 100644 index eb91194b..00000000 --- a/src/api/ProjectsApi.js +++ /dev/null @@ -1,1015 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddProjectResponse from '../model/AddProjectResponse'; -import DeleteProjectResponse from '../model/DeleteProjectResponse'; -import GetActivitiesCollectionResponse from '../model/GetActivitiesCollectionResponse'; -import GetProjectBoardsResponse from '../model/GetProjectBoardsResponse'; -import GetProjectGroupsResponse from '../model/GetProjectGroupsResponse'; -import GetProjectPhasesResponse from '../model/GetProjectPhasesResponse'; -import GetProjectPlanResponse from '../model/GetProjectPlanResponse'; -import GetProjectResponse from '../model/GetProjectResponse'; -import GetProjectsResponse from '../model/GetProjectsResponse'; -import GetTasksResponse from '../model/GetTasksResponse'; -import ProjectPostObject from '../model/ProjectPostObject'; -import ProjectPutObject from '../model/ProjectPutObject'; -import ProjectPutPlanItemBodyObject from '../model/ProjectPutPlanItemBodyObject'; -import UpdateActivityPlanItemResponse from '../model/UpdateActivityPlanItemResponse'; -import UpdateProjectResponse from '../model/UpdateProjectResponse'; -import UpdateTaskPlanItemResponse from '../model/UpdateTaskPlanItemResponse'; - -/** -* Projects service. -* @module api/ProjectsApi -* @version 1.0.0 -*/ -export default class ProjectsApi { - - /** - * Constructs a new ProjectsApi. - * @alias module:api/ProjectsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a project - * Adds a new project. 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. - * @param {Object} opts Optional parameters - * @param {module:model/ProjectPostObject} opts.projectPostObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddProjectResponse} and HTTP response - */ - addProjectWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['projectPostObject']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = AddProjectResponse; - return this.apiClient.callApi( - '/projects', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a project - * Adds a new project. 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. - * @param {Object} opts Optional parameters - * @param {module:model/ProjectPostObject} opts.projectPostObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddProjectResponse} - */ - addProject(opts) { - return this.addProjectWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Archive a project - * Archives a project. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateProjectResponse} and HTTP response - */ - archiveProjectWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling archiveProject"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpdateProjectResponse; - return this.apiClient.callApi( - '/projects/{id}/archive', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Archive a project - * Archives a project. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateProjectResponse} - */ - archiveProject(id) { - return this.archiveProjectWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a project - * Marks a project as deleted. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteProjectResponse} and HTTP response - */ - deleteProjectWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteProject"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteProjectResponse; - return this.apiClient.callApi( - '/projects/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a project - * Marks a project as deleted. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteProjectResponse} - */ - deleteProject(id) { - return this.deleteProjectWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get details of a project - * Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectResponse} and HTTP response - */ - getProjectWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProject"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProjectResponse; - return this.apiClient.callApi( - '/projects/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get details of a project - * Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectResponse} - */ - getProject(id) { - return this.getProjectWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Returns project activities - * Returns activities linked to a specific project. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetActivitiesCollectionResponse} and HTTP response - */ - getProjectActivitiesWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProjectActivities"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetActivitiesCollectionResponse; - return this.apiClient.callApi( - '/projects/{id}/activities', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Returns project activities - * Returns activities linked to a specific project. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetActivitiesCollectionResponse} - */ - getProjectActivities(id) { - return this.getProjectActivitiesWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Returns project groups - * Returns all active groups under a specific project. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectGroupsResponse} and HTTP response - */ - getProjectGroupsWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProjectGroups"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProjectGroupsResponse; - return this.apiClient.callApi( - '/projects/{id}/groups', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Returns project groups - * Returns all active groups under a specific project. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectGroupsResponse} - */ - getProjectGroups(id) { - return this.getProjectGroupsWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Returns project plan - * Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectPlanResponse} and HTTP response - */ - getProjectPlanWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProjectPlan"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProjectPlanResponse; - return this.apiClient.callApi( - '/projects/{id}/plan', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Returns project plan - * Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectPlanResponse} - */ - getProjectPlan(id) { - return this.getProjectPlanWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Returns project tasks - * Returns tasks linked to a specific project. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTasksResponse} and HTTP response - */ - getProjectTasksWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getProjectTasks"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetTasksResponse; - return this.apiClient.callApi( - '/projects/{id}/tasks', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Returns project tasks - * Returns tasks linked to a specific project. - * @param {Number} id The ID of the project - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTasksResponse} - */ - getProjectTasks(id) { - return this.getProjectTasksWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all projects - * Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - * @param {Number} opts.filterId The ID of the filter to use - * @param {String} opts.status If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned. - * @param {Number} opts.phaseId If supplied, only projects in specified phase are returned - * @param {Boolean} opts.includeArchived If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectsResponse} and HTTP response - */ - getProjectsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - let pathParams = { - }; - let queryParams = { - 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], - 'status': opts['status'] === undefined ? opts['status'] : opts['status'], - 'phase_id': opts['phase_id'] === undefined ? opts['phaseId'] : opts['phase_id'], - 'include_archived': opts['include_archived'] === undefined ? opts['includeArchived'] : opts['include_archived'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProjectsResponse; - return this.apiClient.callApi( - '/projects', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all projects - * Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. - * @param {Number} opts.filterId The ID of the filter to use - * @param {String} opts.status If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned. - * @param {Number} opts.phaseId If supplied, only projects in specified phase are returned - * @param {Boolean} opts.includeArchived If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectsResponse} - */ - getProjects(opts) { - return this.getProjectsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all project boards - * Returns all projects boards that are not deleted. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectBoardsResponse} and HTTP response - */ - getProjectsBoardsWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProjectBoardsResponse; - return this.apiClient.callApi( - '/projects/boards', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all project boards - * Returns all projects boards that are not deleted. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectBoardsResponse} - */ - getProjectsBoards() { - return this.getProjectsBoardsWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get project phases - * Returns all active project phases under a specific board. - * @param {Number} boardId ID of the board for which phases are requested - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProjectPhasesResponse} and HTTP response - */ - getProjectsPhasesWithHttpInfo(boardId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'boardId' is set - if (boardId === undefined || boardId === null) { - throw new Error("Missing the required parameter 'boardId' when calling getProjectsPhases"); - } - - let pathParams = { - }; - let queryParams = { - 'board_id': boardId, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetProjectPhasesResponse; - return this.apiClient.callApi( - '/projects/phases', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get project phases - * Returns all active project phases under a specific board. - * @param {Number} boardId ID of the board for which phases are requested - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProjectPhasesResponse} - */ - getProjectsPhases(boardId) { - return this.getProjectsPhasesWithHttpInfo(boardId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update activity in project plan - * Updates an activity phase or group in a project. - * @param {Number} id The ID of the project - * @param {Number} activityId The ID of the activity - * @param {Object} opts Optional parameters - * @param {module:model/ProjectPutPlanItemBodyObject} opts.projectPutPlanItemBodyObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateActivityPlanItemResponse} and HTTP response - */ - putProjectPlanActivityWithHttpInfo(id, activityId, opts) { - opts = opts || {}; - let postBody = opts['projectPutPlanItemBodyObject']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling putProjectPlanActivity"); - } - - // verify the required parameter 'activityId' is set - if (activityId === undefined || activityId === null) { - throw new Error("Missing the required parameter 'activityId' when calling putProjectPlanActivity"); - } - - - let pathParams = { - 'id': id, - 'activityId': activityId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpdateActivityPlanItemResponse; - return this.apiClient.callApi( - '/projects/{id}/plan/activities/{activityId}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update activity in project plan - * Updates an activity phase or group in a project. - * @param {Number} id The ID of the project - * @param {Number} activityId The ID of the activity - * @param {Object} opts Optional parameters - * @param {module:model/ProjectPutPlanItemBodyObject} opts.projectPutPlanItemBodyObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateActivityPlanItemResponse} - */ - putProjectPlanActivity(id, activityId, opts) { - return this.putProjectPlanActivityWithHttpInfo(id, activityId, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update task in project plan - * Updates a task phase or group in a project. - * @param {Number} id The ID of the project - * @param {Number} taskId The ID of the task - * @param {Object} opts Optional parameters - * @param {module:model/ProjectPutPlanItemBodyObject} opts.projectPutPlanItemBodyObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTaskPlanItemResponse} and HTTP response - */ - putProjectPlanTaskWithHttpInfo(id, taskId, opts) { - opts = opts || {}; - let postBody = opts['projectPutPlanItemBodyObject']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling putProjectPlanTask"); - } - - // verify the required parameter 'taskId' is set - if (taskId === undefined || taskId === null) { - throw new Error("Missing the required parameter 'taskId' when calling putProjectPlanTask"); - } - - - let pathParams = { - 'id': id, - 'taskId': taskId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpdateTaskPlanItemResponse; - return this.apiClient.callApi( - '/projects/{id}/plan/tasks/{taskId}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update task in project plan - * Updates a task phase or group in a project. - * @param {Number} id The ID of the project - * @param {Number} taskId The ID of the task - * @param {Object} opts Optional parameters - * @param {module:model/ProjectPutPlanItemBodyObject} opts.projectPutPlanItemBodyObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTaskPlanItemResponse} - */ - putProjectPlanTask(id, taskId, opts) { - return this.putProjectPlanTaskWithHttpInfo(id, taskId, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a project - * Updates a project. - * @param {Number} id The ID of the project - * @param {Object} opts Optional parameters - * @param {module:model/ProjectPutObject} opts.projectPutObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateProjectResponse} and HTTP response - */ - updateProjectWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['projectPutObject']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateProject"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpdateProjectResponse; - return this.apiClient.callApi( - '/projects/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a project - * Updates a project. - * @param {Number} id The ID of the project - * @param {Object} opts Optional parameters - * @param {module:model/ProjectPutObject} opts.projectPutObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateProjectResponse} - */ - updateProject(id, opts) { - return this.updateProjectWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/RecentsApi.js b/src/api/RecentsApi.js deleted file mode 100644 index a9f86f31..00000000 --- a/src/api/RecentsApi.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import GetRecents from '../model/GetRecents'; - -/** -* Recents service. -* @module api/RecentsApi -* @version 1.0.0 -*/ -export default class RecentsApi { - - /** - * Constructs a new RecentsApi. - * @alias module:api/RecentsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Get recents - * Returns data about all recent changes occurred after the given timestamp. - * @param {String} sinceTimestamp The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.items Multiple selection of item types to include in the query (optional) - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRecents} and HTTP response - */ - getRecentsWithHttpInfo(sinceTimestamp, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'sinceTimestamp' is set - if (sinceTimestamp === undefined || sinceTimestamp === null) { - throw new Error("Missing the required parameter 'sinceTimestamp' when calling getRecents"); - } - - - - - let pathParams = { - }; - let queryParams = { - 'since_timestamp': sinceTimestamp, - 'items': opts['items'] === undefined ? opts['items'] : opts['items'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetRecents; - return this.apiClient.callApi( - '/recents', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get recents - * Returns data about all recent changes occurred after the given timestamp. - * @param {String} sinceTimestamp The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.items Multiple selection of item types to include in the query (optional) - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRecents} - */ - getRecents(sinceTimestamp, opts) { - return this.getRecentsWithHttpInfo(sinceTimestamp, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/RolesApi.js b/src/api/RolesApi.js deleted file mode 100644 index 970abc3e..00000000 --- a/src/api/RolesApi.js +++ /dev/null @@ -1,904 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddOrUpdateRoleSettingRequest from '../model/AddOrUpdateRoleSettingRequest'; -import AddRole from '../model/AddRole'; -import AddRoleAssignmentRequest from '../model/AddRoleAssignmentRequest'; -import BaseRole from '../model/BaseRole'; -import DeleteRole from '../model/DeleteRole'; -import DeleteRoleAssignment from '../model/DeleteRoleAssignment'; -import DeleteRoleAssignmentRequest from '../model/DeleteRoleAssignmentRequest'; -import GetRole from '../model/GetRole'; -import GetRoleAssignments from '../model/GetRoleAssignments'; -import GetRolePipelines from '../model/GetRolePipelines'; -import GetRoleSettings from '../model/GetRoleSettings'; -import GetRoles from '../model/GetRoles'; -import PostRoleAssignment from '../model/PostRoleAssignment'; -import PostRoleSettings from '../model/PostRoleSettings'; -import PostRoles from '../model/PostRoles'; -import PutRole from '../model/PutRole'; -import PutRolePipelinesBody from '../model/PutRolePipelinesBody'; - -/** -* Roles service. -* @module api/RolesApi -* @version 1.0.0 -*/ -export default class RolesApi { - - /** - * Constructs a new RolesApi. - * @alias module:api/RolesApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add or update role setting - * Adds or updates the visibility setting for a role. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {module:model/AddOrUpdateRoleSettingRequest} opts.addOrUpdateRoleSettingRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostRoleSettings} and HTTP response - */ - addOrUpdateRoleSettingWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['addOrUpdateRoleSettingRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addOrUpdateRoleSetting"); - } - - if (opts['setting_key'] === undefined || opts['setting_key'] === null) { - throw new Error("Missing the required parameter 'setting_key' when calling addOrUpdateRoleSetting"); - } - if (opts['value'] === undefined || opts['value'] === null) { - throw new Error("Missing the required parameter 'value' when calling addOrUpdateRoleSetting"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PostRoleSettings; - return this.apiClient.callApi( - '/roles/{id}/settings', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add or update role setting - * Adds or updates the visibility setting for a role. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {module:model/AddOrUpdateRoleSettingRequest} opts.addOrUpdateRoleSettingRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostRoleSettings} - */ - addOrUpdateRoleSetting(id, opts) { - return this.addOrUpdateRoleSettingWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add a role - * Adds a new role. - * @param {Object} opts Optional parameters - * @param {module:model/AddRole} opts.addRole - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostRoles} and HTTP response - */ - addRoleWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['addRole']; - - if (opts['name'] === undefined || opts['name'] === null) { - throw new Error("Missing the required parameter 'name' when calling addRole"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PostRoles; - return this.apiClient.callApi( - '/roles', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a role - * Adds a new role. - * @param {Object} opts Optional parameters - * @param {module:model/AddRole} opts.addRole - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostRoles} - */ - addRole(opts) { - return this.addRoleWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add role assignment - * Assigns a user to a role. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {module:model/AddRoleAssignmentRequest} opts.addRoleAssignmentRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PostRoleAssignment} and HTTP response - */ - addRoleAssignmentWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['addRoleAssignmentRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addRoleAssignment"); - } - - if (opts['user_id'] === undefined || opts['user_id'] === null) { - throw new Error("Missing the required parameter 'user_id' when calling addRoleAssignment"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PostRoleAssignment; - return this.apiClient.callApi( - '/roles/{id}/assignments', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add role assignment - * Assigns a user to a role. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {module:model/AddRoleAssignmentRequest} opts.addRoleAssignmentRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PostRoleAssignment} - */ - addRoleAssignment(id, opts) { - return this.addRoleAssignmentWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a role - * Marks a role as deleted. - * @param {Number} id The ID of the role - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteRole} and HTTP response - */ - deleteRoleWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteRole"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteRole; - return this.apiClient.callApi( - '/roles/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a role - * Marks a role as deleted. - * @param {Number} id The ID of the role - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteRole} - */ - deleteRole(id) { - return this.deleteRoleWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a role assignment - * Removes the assigned user from a role and adds to the default role. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {module:model/DeleteRoleAssignmentRequest} opts.deleteRoleAssignmentRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteRoleAssignment} and HTTP response - */ - deleteRoleAssignmentWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['deleteRoleAssignmentRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteRoleAssignment"); - } - - if (opts['user_id'] === undefined || opts['user_id'] === null) { - throw new Error("Missing the required parameter 'user_id' when calling deleteRoleAssignment"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteRoleAssignment; - return this.apiClient.callApi( - '/roles/{id}/assignments', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a role assignment - * Removes the assigned user from a role and adds to the default role. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {module:model/DeleteRoleAssignmentRequest} opts.deleteRoleAssignmentRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteRoleAssignment} - */ - deleteRoleAssignment(id, opts) { - return this.deleteRoleAssignmentWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one role - * Returns the details of a specific role. - * @param {Number} id The ID of the role - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRole} and HTTP response - */ - getRoleWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getRole"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetRole; - return this.apiClient.callApi( - '/roles/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one role - * Returns the details of a specific role. - * @param {Number} id The ID of the role - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRole} - */ - getRole(id) { - return this.getRoleWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List role assignments - * Returns all users assigned to a role. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRoleAssignments} and HTTP response - */ - getRoleAssignmentsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getRoleAssignments"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetRoleAssignments; - return this.apiClient.callApi( - '/roles/{id}/assignments', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List role assignments - * Returns all users assigned to a role. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRoleAssignments} - */ - getRoleAssignments(id, opts) { - return this.getRoleAssignmentsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List pipeline visibility for a role - * Returns the list of either visible or hidden pipeline IDs for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {Boolean} opts.visible Whether to return the visible or hidden pipelines for the role (default to true) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRolePipelines} and HTTP response - */ - getRolePipelinesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getRolePipelines"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'visible': opts['visible'] === undefined ? opts['visible'] : opts['visible'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetRolePipelines; - return this.apiClient.callApi( - '/roles/{id}/pipelines', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List pipeline visibility for a role - * Returns the list of either visible or hidden pipeline IDs for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {Boolean} opts.visible Whether to return the visible or hidden pipelines for the role (default to true) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRolePipelines} - */ - getRolePipelines(id, opts) { - return this.getRolePipelinesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List role settings - * Returns the visibility settings of a specific role. - * @param {Number} id The ID of the role - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRoleSettings} and HTTP response - */ - getRoleSettingsWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getRoleSettings"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetRoleSettings; - return this.apiClient.callApi( - '/roles/{id}/settings', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List role settings - * Returns the visibility settings of a specific role. - * @param {Number} id The ID of the role - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRoleSettings} - */ - getRoleSettings(id) { - return this.getRoleSettingsWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all roles - * Returns all the roles within the company. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRoles} and HTTP response - */ - getRolesWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - let pathParams = { - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetRoles; - return this.apiClient.callApi( - '/roles', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all roles - * Returns all the roles within the company. - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRoles} - */ - getRoles(opts) { - return this.getRolesWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update role details - * Updates the parent role and/or the name of a specific role. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {module:model/BaseRole} opts.baseRole - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PutRole} and HTTP response - */ - updateRoleWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['baseRole']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateRole"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PutRole; - return this.apiClient.callApi( - '/roles/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update role details - * Updates the parent role and/or the name of a specific role. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {module:model/BaseRole} opts.baseRole - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PutRole} - */ - updateRole(id, opts) { - return this.updateRoleWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update pipeline visibility for a role - * Updates the specified pipelines to be visible and/or hidden for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {module:model/PutRolePipelinesBody} opts.putRolePipelinesBody - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRolePipelines} and HTTP response - */ - updateRolePipelinesWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['putRolePipelinesBody']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateRolePipelines"); - } - - if (opts['visible_pipeline_ids'] === undefined || opts['visible_pipeline_ids'] === null) { - throw new Error("Missing the required parameter 'visible_pipeline_ids' when calling updateRolePipelines"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetRolePipelines; - return this.apiClient.callApi( - '/roles/{id}/pipelines', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update pipeline visibility for a role - * Updates the specified pipelines to be visible and/or hidden for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. - * @param {Number} id The ID of the role - * @param {Object} opts Optional parameters - * @param {module:model/PutRolePipelinesBody} opts.putRolePipelinesBody - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRolePipelines} - */ - updateRolePipelines(id, opts) { - return this.updateRolePipelinesWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/SearchResultsApi.js b/src/api/SearchResultsApi.js deleted file mode 100644 index 75970186..00000000 --- a/src/api/SearchResultsApi.js +++ /dev/null @@ -1,213 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import NumberBoolean from '../model/NumberBoolean'; - -/** -* SearchResults service. -* @module api/SearchResultsApi -* @version 1.0.0 -*/ -export default class SearchResultsApi { - - /** - * Constructs a new SearchResultsApi. - * @alias module:api/SearchResultsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - - /** - * Perform a search - * This endpoint is deprecated. Please use /v1/itemSearch instead.
Performs a search across the account and returns SearchResults. - * @param {String} term Search term to look for, minimum 2 characters. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.itemType Search for items of exact type. If omitted, all types of items are searched. - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. The minimum 2 character limit for the term is discarded when exact_match is enabled. It will only work if search term is 30 characters or less. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - searchWithHttpInfo(term, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'term' is set - if (term === undefined || term === null) { - throw new Error("Missing the required parameter 'term' when calling search"); - } - - let pathParams = { - }; - let queryParams = { - 'term': term, - 'item_type': opts['itemType'], - 'start': opts['start'], - 'limit': opts['limit'], - 'exact_match': opts['exactMatch'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Object; - return this.apiClient.callApi( - '/searchResults', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Perform a search - * This endpoint is deprecated. Please use /v1/itemSearch instead.
Performs a search across the account and returns SearchResults. - * @param {String} term Search term to look for, minimum 2 characters. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.itemType Search for items of exact type. If omitted, all types of items are searched. - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @param {module:model/NumberBoolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. The minimum 2 character limit for the term is discarded when exact_match is enabled. It will only work if search term is 30 characters or less. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - search(term, opts) { - return this.searchWithHttpInfo(term, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Perform a search using a specific field value - * This endpoint is deprecated. Please use /v1/itemSearch/field instead.
Performs a search from a specific field's values. Results can be either the distinct values of the field (useful for searching autocomplete field values), or actual items IDs (deals, persons, organizations or products). - * @param {String} term Search term to look for, minimum 2 characters. - * @param {module:model/String} fieldType Type of the field to perform the search from. - * @param {String} fieldKey Key of the field to search from. Field key can be obtained by fetching the list of fields using any of fields API GET methods (dealFields, personFields, ..). - * @param {Object} opts Optional parameters - * @param {module:model/NumberBoolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. By default, term can be present anywhere in the resulting field values to be considered a match. The minimum 2 character limit for the term is discarded when exact_match is enabled. - * @param {String} opts.returnFieldKey Name of the field in search results from which the search was performed. When omitted, 'value' will be used. You may want to set this parameter to match the field_key. - * @param {module:model/NumberBoolean} opts.returnItemIds Whether to return matching items IDs in search results. When omitted or set to 0, only distinct values of the searched field are returned. When enabled, the return_field_key parameter is ignored and the results include the searched field as its own key. - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - searchByFieldWithHttpInfo(term, fieldType, fieldKey, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'term' is set - if (term === undefined || term === null) { - throw new Error("Missing the required parameter 'term' when calling searchByField"); - } - // verify the required parameter 'fieldType' is set - if (fieldType === undefined || fieldType === null) { - throw new Error("Missing the required parameter 'fieldType' when calling searchByField"); - } - // verify the required parameter 'fieldKey' is set - if (fieldKey === undefined || fieldKey === null) { - throw new Error("Missing the required parameter 'fieldKey' when calling searchByField"); - } - - let pathParams = { - }; - let queryParams = { - 'term': term, - 'exact_match': opts['exactMatch'], - 'field_type': fieldType, - 'field_key': fieldKey, - 'return_field_key': opts['returnFieldKey'], - 'return_item_ids': opts['returnItemIds'], - 'start': opts['start'], - 'limit': opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Object; - return this.apiClient.callApi( - '/searchResults/field', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Perform a search using a specific field value - * This endpoint is deprecated. Please use /v1/itemSearch/field instead.
Performs a search from a specific field's values. Results can be either the distinct values of the field (useful for searching autocomplete field values), or actual items IDs (deals, persons, organizations or products). - * @param {String} term Search term to look for, minimum 2 characters. - * @param {module:model/String} fieldType Type of the field to perform the search from. - * @param {String} fieldKey Key of the field to search from. Field key can be obtained by fetching the list of fields using any of fields API GET methods (dealFields, personFields, ..). - * @param {Object} opts Optional parameters - * @param {module:model/NumberBoolean} opts.exactMatch When enabled, only full exact matches against the given term are returned. By default, term can be present anywhere in the resulting field values to be considered a match. The minimum 2 character limit for the term is discarded when exact_match is enabled. - * @param {String} opts.returnFieldKey Name of the field in search results from which the search was performed. When omitted, 'value' will be used. You may want to set this parameter to match the field_key. - * @param {module:model/NumberBoolean} opts.returnItemIds Whether to return matching items IDs in search results. When omitted or set to 0, only distinct values of the searched field are returned. When enabled, the return_field_key parameter is ignored and the results include the searched field as its own key. - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - searchByField(term, fieldType, fieldKey, opts) { - return this.searchByFieldWithHttpInfo(term, fieldType, fieldKey, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/StagesApi.js b/src/api/StagesApi.js deleted file mode 100644 index 1053883d..00000000 --- a/src/api/StagesApi.js +++ /dev/null @@ -1,544 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import DeleteStageResponse from '../model/DeleteStageResponse'; -import DeleteStagesResponse from '../model/DeleteStagesResponse'; -import GetAddUpdateStage from '../model/GetAddUpdateStage'; -import GetOneStage from '../model/GetOneStage'; -import GetStageDeals from '../model/GetStageDeals'; -import GetStages from '../model/GetStages'; -import NumberBoolean from '../model/NumberBoolean'; -import Stage from '../model/Stage'; -import UpdateStageRequest from '../model/UpdateStageRequest'; - -/** -* Stages service. -* @module api/StagesApi -* @version 1.0.0 -*/ -export default class StagesApi { - - /** - * Constructs a new StagesApi. - * @alias module:api/StagesApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a new stage - * Adds a new stage, returns the ID upon success. - * @param {Object} opts Optional parameters - * @param {module:model/Stage} opts.stage - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAddUpdateStage} and HTTP response - */ - addStageWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['stage']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetAddUpdateStage; - return this.apiClient.callApi( - '/stages', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new stage - * Adds a new stage, returns the ID upon success. - * @param {Object} opts Optional parameters - * @param {module:model/Stage} opts.stage - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAddUpdateStage} - */ - addStage(opts) { - return this.addStageWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a stage - * Marks a stage as deleted. - * @param {Number} id The ID of the stage - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteStageResponse} and HTTP response - */ - deleteStageWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteStage"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteStageResponse; - return this.apiClient.callApi( - '/stages/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a stage - * Marks a stage as deleted. - * @param {Number} id The ID of the stage - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteStageResponse} - */ - deleteStage(id) { - return this.deleteStageWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete multiple stages in bulk - * Marks multiple stages as deleted. - * @param {String} ids The comma-separated stage IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteStagesResponse} and HTTP response - */ - deleteStagesWithHttpInfo(ids) { - const opts = {} - let postBody = null; - - // verify the required parameter 'ids' is set - if (ids === undefined || ids === null) { - throw new Error("Missing the required parameter 'ids' when calling deleteStages"); - } - - let pathParams = { - }; - let queryParams = { - 'ids': ids, - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteStagesResponse; - return this.apiClient.callApi( - '/stages', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete multiple stages in bulk - * Marks multiple stages as deleted. - * @param {String} ids The comma-separated stage IDs to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteStagesResponse} - */ - deleteStages(ids) { - return this.deleteStagesWithHttpInfo(ids) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one stage - * Returns data about a specific stage. - * @param {Number} id The ID of the stage - * @param {Object} opts Optional parameters - * @param {module:model/NumberBoolean} opts.everyone If `everyone=1` is provided, deals summary will return deals owned by every user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetOneStage} and HTTP response - */ - getStageWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getStage"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'everyone': opts['everyone'] === undefined ? opts['everyone'] : opts['everyone'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetOneStage; - return this.apiClient.callApi( - '/stages/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one stage - * Returns data about a specific stage. - * @param {Number} id The ID of the stage - * @param {Object} opts Optional parameters - * @param {module:model/NumberBoolean} opts.everyone If `everyone=1` is provided, deals summary will return deals owned by every user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetOneStage} - */ - getStage(id, opts) { - return this.getStageWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get deals in a stage - * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned. - * @param {Number} id The ID of the stage - * @param {Object} opts Optional parameters - * @param {Number} opts.filterId If supplied, only deals matching the given filter will be returned - * @param {Number} opts.userId If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. - * @param {module:model/NumberBoolean} opts.everyone If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetStageDeals} and HTTP response - */ - getStageDealsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getStageDeals"); - } - - - - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'filter_id': opts['filter_id'] === undefined ? opts['filterId'] : opts['filter_id'], - 'user_id': opts['user_id'] === undefined ? opts['userId'] : opts['user_id'], - 'everyone': opts['everyone'] === undefined ? opts['everyone'] : opts['everyone'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetStageDeals; - return this.apiClient.callApi( - '/stages/{id}/deals', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get deals in a stage - * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned. - * @param {Number} id The ID of the stage - * @param {Object} opts Optional parameters - * @param {Number} opts.filterId If supplied, only deals matching the given filter will be returned - * @param {Number} opts.userId If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. - * @param {module:model/NumberBoolean} opts.everyone If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetStageDeals} - */ - getStageDeals(id, opts) { - return this.getStageDealsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all stages - * Returns data about all stages. - * @param {Object} opts Optional parameters - * @param {Number} opts.pipelineId The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetStages} and HTTP response - */ - getStagesWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - let pathParams = { - }; - let queryParams = { - 'pipeline_id': opts['pipeline_id'] === undefined ? opts['pipelineId'] : opts['pipeline_id'], - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetStages; - return this.apiClient.callApi( - '/stages', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all stages - * Returns data about all stages. - * @param {Object} opts Optional parameters - * @param {Number} opts.pipelineId The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetStages} - */ - getStages(opts) { - return this.getStagesWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update stage details - * Updates the properties of a stage. - * @param {Number} id The ID of the stage - * @param {Object} opts Optional parameters - * @param {module:model/UpdateStageRequest} opts.updateStageRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAddUpdateStage} and HTTP response - */ - updateStageWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updateStageRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateStage"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetAddUpdateStage; - return this.apiClient.callApi( - '/stages/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update stage details - * Updates the properties of a stage. - * @param {Number} id The ID of the stage - * @param {Object} opts Optional parameters - * @param {module:model/UpdateStageRequest} opts.updateStageRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAddUpdateStage} - */ - updateStage(id, opts) { - return this.updateStageWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/SubscriptionsApi.js b/src/api/SubscriptionsApi.js deleted file mode 100644 index adf7baa1..00000000 --- a/src/api/SubscriptionsApi.js +++ /dev/null @@ -1,677 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import PaymentsResponse from '../model/PaymentsResponse'; -import SubscriptionInstallmentCreateRequest from '../model/SubscriptionInstallmentCreateRequest'; -import SubscriptionInstallmentUpdateRequest from '../model/SubscriptionInstallmentUpdateRequest'; -import SubscriptionRecurringCancelRequest from '../model/SubscriptionRecurringCancelRequest'; -import SubscriptionRecurringCreateRequest from '../model/SubscriptionRecurringCreateRequest'; -import SubscriptionRecurringUpdateRequest from '../model/SubscriptionRecurringUpdateRequest'; -import SubscriptionsIdResponse from '../model/SubscriptionsIdResponse'; - -/** -* Subscriptions service. -* @module api/SubscriptionsApi -* @version 1.0.0 -*/ -export default class SubscriptionsApi { - - /** - * Constructs a new SubscriptionsApi. - * @alias module:api/SubscriptionsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a recurring subscription - * Adds a new recurring subscription. - * @param {Object} opts Optional parameters - * @param {module:model/SubscriptionRecurringCreateRequest} opts.subscriptionRecurringCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubscriptionsIdResponse} and HTTP response - */ - addRecurringSubscriptionWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['subscriptionRecurringCreateRequest']; - - if (opts['deal_id'] === undefined || opts['deal_id'] === null) { - throw new Error("Missing the required parameter 'deal_id' when calling addRecurringSubscription"); - } - if (opts['currency'] === undefined || opts['currency'] === null) { - throw new Error("Missing the required parameter 'currency' when calling addRecurringSubscription"); - } - if (opts['cadence_type'] === undefined || opts['cadence_type'] === null) { - throw new Error("Missing the required parameter 'cadence_type' when calling addRecurringSubscription"); - } - if (opts['cycle_amount'] === undefined || opts['cycle_amount'] === null) { - throw new Error("Missing the required parameter 'cycle_amount' when calling addRecurringSubscription"); - } - if (opts['start_date'] === undefined || opts['start_date'] === null) { - throw new Error("Missing the required parameter 'start_date' when calling addRecurringSubscription"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = SubscriptionsIdResponse; - return this.apiClient.callApi( - '/subscriptions/recurring', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a recurring subscription - * Adds a new recurring subscription. - * @param {Object} opts Optional parameters - * @param {module:model/SubscriptionRecurringCreateRequest} opts.subscriptionRecurringCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubscriptionsIdResponse} - */ - addRecurringSubscription(opts) { - return this.addRecurringSubscriptionWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add an installment subscription - * Adds a new installment subscription. - * @param {Object} opts Optional parameters - * @param {module:model/SubscriptionInstallmentCreateRequest} opts.subscriptionInstallmentCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubscriptionsIdResponse} and HTTP response - */ - addSubscriptionInstallmentWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['subscriptionInstallmentCreateRequest']; - - if (opts['deal_id'] === undefined || opts['deal_id'] === null) { - throw new Error("Missing the required parameter 'deal_id' when calling addSubscriptionInstallment"); - } - if (opts['currency'] === undefined || opts['currency'] === null) { - throw new Error("Missing the required parameter 'currency' when calling addSubscriptionInstallment"); - } - if (opts['payments'] === undefined || opts['payments'] === null) { - throw new Error("Missing the required parameter 'payments' when calling addSubscriptionInstallment"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = SubscriptionsIdResponse; - return this.apiClient.callApi( - '/subscriptions/installment', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add an installment subscription - * Adds a new installment subscription. - * @param {Object} opts Optional parameters - * @param {module:model/SubscriptionInstallmentCreateRequest} opts.subscriptionInstallmentCreateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubscriptionsIdResponse} - */ - addSubscriptionInstallment(opts) { - return this.addSubscriptionInstallmentWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Cancel a recurring subscription - * Cancels a recurring subscription. - * @param {Number} id The ID of the subscription - * @param {Object} opts Optional parameters - * @param {module:model/SubscriptionRecurringCancelRequest} opts.subscriptionRecurringCancelRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubscriptionsIdResponse} and HTTP response - */ - cancelRecurringSubscriptionWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['subscriptionRecurringCancelRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling cancelRecurringSubscription"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = SubscriptionsIdResponse; - return this.apiClient.callApi( - '/subscriptions/recurring/{id}/cancel', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Cancel a recurring subscription - * Cancels a recurring subscription. - * @param {Number} id The ID of the subscription - * @param {Object} opts Optional parameters - * @param {module:model/SubscriptionRecurringCancelRequest} opts.subscriptionRecurringCancelRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubscriptionsIdResponse} - */ - cancelRecurringSubscription(id, opts) { - return this.cancelRecurringSubscriptionWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a subscription - * Marks an installment or a recurring subscription as deleted. - * @param {Number} id The ID of the subscription - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubscriptionsIdResponse} and HTTP response - */ - deleteSubscriptionWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteSubscription"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = SubscriptionsIdResponse; - return this.apiClient.callApi( - '/subscriptions/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a subscription - * Marks an installment or a recurring subscription as deleted. - * @param {Number} id The ID of the subscription - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubscriptionsIdResponse} - */ - deleteSubscription(id) { - return this.deleteSubscriptionWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Find subscription by deal - * Returns details of an installment or a recurring subscription by the deal ID. - * @param {Number} dealId The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubscriptionsIdResponse} and HTTP response - */ - findSubscriptionByDealWithHttpInfo(dealId) { - const opts = {} - let postBody = null; - - // verify the required parameter 'dealId' is set - if (dealId === undefined || dealId === null) { - throw new Error("Missing the required parameter 'dealId' when calling findSubscriptionByDeal"); - } - - let pathParams = { - 'dealId': dealId, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = SubscriptionsIdResponse; - return this.apiClient.callApi( - '/subscriptions/find/{dealId}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Find subscription by deal - * Returns details of an installment or a recurring subscription by the deal ID. - * @param {Number} dealId The ID of the deal - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubscriptionsIdResponse} - */ - findSubscriptionByDeal(dealId) { - return this.findSubscriptionByDealWithHttpInfo(dealId) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get details of a subscription - * Returns details of an installment or a recurring subscription. - * @param {Number} id The ID of the subscription - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubscriptionsIdResponse} and HTTP response - */ - getSubscriptionWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getSubscription"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = SubscriptionsIdResponse; - return this.apiClient.callApi( - '/subscriptions/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get details of a subscription - * Returns details of an installment or a recurring subscription. - * @param {Number} id The ID of the subscription - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubscriptionsIdResponse} - */ - getSubscription(id) { - return this.getSubscriptionWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all payments of a subscription - * Returns all payments of an installment or recurring subscription. - * @param {Number} id The ID of the subscription - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PaymentsResponse} and HTTP response - */ - getSubscriptionPaymentsWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getSubscriptionPayments"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = PaymentsResponse; - return this.apiClient.callApi( - '/subscriptions/{id}/payments', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all payments of a subscription - * Returns all payments of an installment or recurring subscription. - * @param {Number} id The ID of the subscription - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PaymentsResponse} - */ - getSubscriptionPayments(id) { - return this.getSubscriptionPaymentsWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a recurring subscription - * Updates a recurring subscription. - * @param {Number} id The ID of the subscription - * @param {Object} opts Optional parameters - * @param {module:model/SubscriptionRecurringUpdateRequest} opts.subscriptionRecurringUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubscriptionsIdResponse} and HTTP response - */ - updateRecurringSubscriptionWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['subscriptionRecurringUpdateRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateRecurringSubscription"); - } - - if (opts['effective_date'] === undefined || opts['effective_date'] === null) { - throw new Error("Missing the required parameter 'effective_date' when calling updateRecurringSubscription"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = SubscriptionsIdResponse; - return this.apiClient.callApi( - '/subscriptions/recurring/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a recurring subscription - * Updates a recurring subscription. - * @param {Number} id The ID of the subscription - * @param {Object} opts Optional parameters - * @param {module:model/SubscriptionRecurringUpdateRequest} opts.subscriptionRecurringUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubscriptionsIdResponse} - */ - updateRecurringSubscription(id, opts) { - return this.updateRecurringSubscriptionWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update an installment subscription - * Updates an installment subscription. - * @param {Number} id The ID of the subscription - * @param {Object} opts Optional parameters - * @param {module:model/SubscriptionInstallmentUpdateRequest} opts.subscriptionInstallmentUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SubscriptionsIdResponse} and HTTP response - */ - updateSubscriptionInstallmentWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['subscriptionInstallmentUpdateRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateSubscriptionInstallment"); - } - - if (opts['payments'] === undefined || opts['payments'] === null) { - throw new Error("Missing the required parameter 'payments' when calling updateSubscriptionInstallment"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = SubscriptionsIdResponse; - return this.apiClient.callApi( - '/subscriptions/installment/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update an installment subscription - * Updates an installment subscription. - * @param {Number} id The ID of the subscription - * @param {Object} opts Optional parameters - * @param {module:model/SubscriptionInstallmentUpdateRequest} opts.subscriptionInstallmentUpdateRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SubscriptionsIdResponse} - */ - updateSubscriptionInstallment(id, opts) { - return this.updateSubscriptionInstallmentWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/TasksApi.js b/src/api/TasksApi.js deleted file mode 100644 index 59929be8..00000000 --- a/src/api/TasksApi.js +++ /dev/null @@ -1,395 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddTaskResponse from '../model/AddTaskResponse'; -import DeleteTaskResponse from '../model/DeleteTaskResponse'; -import GetTaskResponse from '../model/GetTaskResponse'; -import GetTasksResponse from '../model/GetTasksResponse'; -import NumberBoolean from '../model/NumberBoolean'; -import TaskPostObject from '../model/TaskPostObject'; -import TaskPutObject from '../model/TaskPutObject'; -import UpdateTaskResponse from '../model/UpdateTaskResponse'; - -/** -* Tasks service. -* @module api/TasksApi -* @version 1.0.0 -*/ -export default class TasksApi { - - /** - * Constructs a new TasksApi. - * @alias module:api/TasksApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a task - * Adds a new task. - * @param {Object} opts Optional parameters - * @param {module:model/TaskPostObject} opts.taskPostObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddTaskResponse} and HTTP response - */ - addTaskWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['taskPostObject']; - - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = AddTaskResponse; - return this.apiClient.callApi( - '/tasks', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a task - * Adds a new task. - * @param {Object} opts Optional parameters - * @param {module:model/TaskPostObject} opts.taskPostObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddTaskResponse} - */ - addTask(opts) { - return this.addTaskWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete a task - * Marks a task as deleted. If the task has subtasks then those will also be deleted. - * @param {Number} id The ID of the task - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteTaskResponse} and HTTP response - */ - deleteTaskWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteTask"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = DeleteTaskResponse; - return this.apiClient.callApi( - '/tasks/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a task - * Marks a task as deleted. If the task has subtasks then those will also be deleted. - * @param {Number} id The ID of the task - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteTaskResponse} - */ - deleteTask(id) { - return this.deleteTaskWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get details of a task - * Returns the details of a specific task. - * @param {Number} id The ID of the task - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTaskResponse} and HTTP response - */ - getTaskWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getTask"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetTaskResponse; - return this.apiClient.callApi( - '/tasks/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get details of a task - * Returns the details of a specific task. - * @param {Number} id The ID of the task - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTaskResponse} - */ - getTask(id) { - return this.getTaskWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all tasks - * Returns all tasks. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. - * @param {Number} opts.assigneeId If supplied, only tasks that are assigned to this user are returned - * @param {Number} opts.projectId If supplied, only tasks that are assigned to this project are returned - * @param {Number} opts.parentTaskId If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are returned. - * @param {module:model/NumberBoolean} opts.done Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTasksResponse} and HTTP response - */ - getTasksWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - - - - - let pathParams = { - }; - let queryParams = { - 'cursor': opts['cursor'] === undefined ? opts['cursor'] : opts['cursor'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - 'assignee_id': opts['assignee_id'] === undefined ? opts['assigneeId'] : opts['assignee_id'], - 'project_id': opts['project_id'] === undefined ? opts['projectId'] : opts['project_id'], - 'parent_task_id': opts['parent_task_id'] === undefined ? opts['parentTaskId'] : opts['parent_task_id'], - 'done': opts['done'] === undefined ? opts['done'] : opts['done'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetTasksResponse; - return this.apiClient.callApi( - '/tasks', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all tasks - * Returns all tasks. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. - * @param {Object} opts Optional parameters - * @param {String} opts.cursor For pagination, the marker (an opaque string value) representing the first item on the next page - * @param {Number} opts.limit For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. - * @param {Number} opts.assigneeId If supplied, only tasks that are assigned to this user are returned - * @param {Number} opts.projectId If supplied, only tasks that are assigned to this project are returned - * @param {Number} opts.parentTaskId If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are returned. - * @param {module:model/NumberBoolean} opts.done Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTasksResponse} - */ - getTasks(opts) { - return this.getTasksWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a task - * Updates a task. - * @param {Number} id The ID of the task - * @param {Object} opts Optional parameters - * @param {module:model/TaskPutObject} opts.taskPutObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateTaskResponse} and HTTP response - */ - updateTaskWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['taskPutObject']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateTask"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UpdateTaskResponse; - return this.apiClient.callApi( - '/tasks/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a task - * Updates a task. - * @param {Number} id The ID of the task - * @param {Object} opts Optional parameters - * @param {module:model/TaskPutObject} opts.taskPutObject - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateTaskResponse} - */ - updateTask(id, opts) { - return this.updateTaskWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/TeamsApi.js b/src/api/TeamsApi.js deleted file mode 100644 index da4c6c13..00000000 --- a/src/api/TeamsApi.js +++ /dev/null @@ -1,616 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddTeamUserRequest from '../model/AddTeamUserRequest'; -import CreateTeam from '../model/CreateTeam'; -import DeleteTeamUserRequest from '../model/DeleteTeamUserRequest'; -import FailResponse from '../model/FailResponse'; -import NumberBooleanDefault0 from '../model/NumberBooleanDefault0'; -import Team from '../model/Team'; -import Teams from '../model/Teams'; -import UpdateTeam from '../model/UpdateTeam'; -import UserIDs from '../model/UserIDs'; - -/** -* Teams service. -* @module api/TeamsApi -* @version 1.0.0 -*/ -export default class TeamsApi { - - /** - * Constructs a new TeamsApi. - * @alias module:api/TeamsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - - /** - * Add a new team - * Adds a new team to the company and returns the created object. - * @param {Object} opts Optional parameters - * @param {module:model/CreateTeam} opts.createTeam - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Team} and HTTP response - */ - addTeamWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['createTeam']; - - if (opts['name'] === undefined || opts['name'] === null) { - throw new Error("Missing the required parameter 'name' when calling addTeam"); - } - if (opts['manager_id'] === undefined || opts['manager_id'] === null) { - throw new Error("Missing the required parameter 'manager_id' when calling addTeam"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Team; - return this.apiClient.callApi( - '/teams', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new team - * Adds a new team to the company and returns the created object. - * @param {Object} opts Optional parameters - * @param {module:model/CreateTeam} opts.createTeam - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Team} - */ - addTeam(opts) { - return this.addTeamWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Add users to a team - * Adds users to an existing team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/AddTeamUserRequest} opts.addTeamUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserIDs} and HTTP response - */ - addTeamUserWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['addTeamUserRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling addTeamUser"); - } - - if (opts['users'] === undefined || opts['users'] === null) { - throw new Error("Missing the required parameter 'users' when calling addTeamUser"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserIDs; - return this.apiClient.callApi( - '/teams/{id}/users', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add users to a team - * Adds users to an existing team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/AddTeamUserRequest} opts.addTeamUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserIDs} - */ - addTeamUser(id, opts) { - return this.addTeamUserWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete users from a team - * Deletes users from an existing team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/DeleteTeamUserRequest} opts.deleteTeamUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserIDs} and HTTP response - */ - deleteTeamUserWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['deleteTeamUserRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteTeamUser"); - } - - if (opts['users'] === undefined || opts['users'] === null) { - throw new Error("Missing the required parameter 'users' when calling deleteTeamUser"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserIDs; - return this.apiClient.callApi( - '/teams/{id}/users', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete users from a team - * Deletes users from an existing team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/DeleteTeamUserRequest} opts.deleteTeamUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserIDs} - */ - deleteTeamUser(id, opts) { - return this.deleteTeamUserWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get a single team - * Returns data about a specific team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Team} and HTTP response - */ - getTeamWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getTeam"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'skip_users': opts['skipUsers'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Team; - return this.apiClient.callApi( - '/teams/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get a single team - * Returns data about a specific team. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Team} - */ - getTeam(id, opts) { - return this.getTeamWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all users in a team - * Returns a list of all user IDs within a team. - * @param {Number} id The ID of the team - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserIDs} and HTTP response - */ - getTeamUsersWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getTeamUsers"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserIDs; - return this.apiClient.callApi( - '/teams/{id}/users', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all users in a team - * Returns a list of all user IDs within a team. - * @param {Number} id The ID of the team - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserIDs} - */ - getTeamUsers(id) { - return this.getTeamUsersWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all teams - * Returns data about teams within the company. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.orderBy The field name to sort returned teams by (default to 'id') - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Teams} and HTTP response - */ - getTeamsWithHttpInfo(opts) { - opts = opts || {}; - let postBody = null; - - - - let pathParams = { - }; - let queryParams = { - 'order_by': opts['orderBy'], - 'skip_users': opts['skipUsers'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Teams; - return this.apiClient.callApi( - '/teams', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all teams - * Returns data about teams within the company. - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.orderBy The field name to sort returned teams by (default to 'id') - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Teams} - */ - getTeams(opts) { - return this.getTeamsWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all teams of a user - * Returns data about all teams which have the specified user as a member. - * @param {Number} id The ID of the user - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.orderBy The field name to sort returned teams by (default to 'id') - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Teams} and HTTP response - */ - getUserTeamsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getUserTeams"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'order_by': opts['orderBy'], - 'skip_users': opts['skipUsers'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Teams; - return this.apiClient.callApi( - '/teams/user/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all teams of a user - * Returns data about all teams which have the specified user as a member. - * @param {Number} id The ID of the user - * @param {Object} opts Optional parameters - * @param {module:model/String} opts.orderBy The field name to sort returned teams by (default to 'id') - * @param {module:model/NumberBooleanDefault0} opts.skipUsers When enabled, the teams will not include IDs of member users - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Teams} - */ - getUserTeams(id, opts) { - return this.getUserTeamsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update a team - * Updates an existing team and returns the updated object. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/UpdateTeam} opts.updateTeam - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Team} and HTTP response - */ - updateTeamWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updateTeam']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateTeam"); - } - - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Team; - return this.apiClient.callApi( - '/teams/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a team - * Updates an existing team and returns the updated object. - * @param {Number} id The ID of the team - * @param {Object} opts Optional parameters - * @param {module:model/UpdateTeam} opts.updateTeam - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Team} - */ - updateTeam(id, opts) { - return this.updateTeamWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/UserConnectionsApi.js b/src/api/UserConnectionsApi.js deleted file mode 100644 index 763fca7b..00000000 --- a/src/api/UserConnectionsApi.js +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import Unauthorized from '../model/Unauthorized'; -import UserConnections from '../model/UserConnections'; - -/** -* UserConnections service. -* @module api/UserConnectionsApi -* @version 1.0.0 -*/ -export default class UserConnectionsApi { - - /** - * Constructs a new UserConnectionsApi. - * @alias module:api/UserConnectionsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Get all user connections - * Returns data about all connections for the authorized user. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserConnections} and HTTP response - */ - getUserConnectionsWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserConnections; - return this.apiClient.callApi( - '/userConnections', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all user connections - * Returns data about all connections for the authorized user. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserConnections} - */ - getUserConnections() { - return this.getUserConnectionsWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/UserSettingsApi.js b/src/api/UserSettingsApi.js deleted file mode 100644 index 239c50cd..00000000 --- a/src/api/UserSettingsApi.js +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import Unauthorized from '../model/Unauthorized'; -import UserSettings from '../model/UserSettings'; - -/** -* UserSettings service. -* @module api/UserSettingsApi -* @version 1.0.0 -*/ -export default class UserSettingsApi { - - /** - * Constructs a new UserSettingsApi. - * @alias module:api/UserSettingsApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * List settings of an authorized user - * Lists the settings of an authorized user. Example response contains a shortened list of settings. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserSettings} and HTTP response - */ - getUserSettingsWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserSettings; - return this.apiClient.callApi( - '/userSettings', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List settings of an authorized user - * Lists the settings of an authorized user. Example response contains a shortened list of settings. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserSettings} - */ - getUserSettings() { - return this.getUserSettingsWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/UsersApi.js b/src/api/UsersApi.js deleted file mode 100644 index 6fbeeec0..00000000 --- a/src/api/UsersApi.js +++ /dev/null @@ -1,717 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddUserRequest from '../model/AddUserRequest'; -import FailResponse from '../model/FailResponse'; -import GetRoleAssignments from '../model/GetRoleAssignments'; -import GetRoleSettings from '../model/GetRoleSettings'; -import NumberBooleanDefault0 from '../model/NumberBooleanDefault0'; -import Unauthorized from '../model/Unauthorized'; -import UpdateUserRequest from '../model/UpdateUserRequest'; -import User from '../model/User'; -import UserIDs from '../model/UserIDs'; -import UserMe from '../model/UserMe'; -import UserPermissions from '../model/UserPermissions'; -import Users from '../model/Users'; - -/** -* Users service. -* @module api/UsersApi -* @version 1.0.0 -*/ -export default class UsersApi { - - /** - * Constructs a new UsersApi. - * @alias module:api/UsersApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Add a new user - * Adds a new user to the company, returns the ID upon success. - * @param {Object} opts Optional parameters - * @param {module:model/AddUserRequest} opts.addUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/User} and HTTP response - */ - addUserWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['addUserRequest']; - - if (opts['email'] === undefined || opts['email'] === null) { - throw new Error("Missing the required parameter 'email' when calling addUser"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = User; - return this.apiClient.callApi( - '/users', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a new user - * Adds a new user to the company, returns the ID upon success. - * @param {Object} opts Optional parameters - * @param {module:model/AddUserRequest} opts.addUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User} - */ - addUser(opts) { - return this.addUserWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Find users by name - * Finds users by their name. - * @param {String} term The search term to look for - * @param {Object} opts Optional parameters - * @param {module:model/NumberBooleanDefault0} opts.searchByEmail When enabled, the term will only be matched against email addresses of users. Default: `false`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Users} and HTTP response - */ - findUsersByNameWithHttpInfo(term, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'term' is set - if (term === undefined || term === null) { - throw new Error("Missing the required parameter 'term' when calling findUsersByName"); - } - - - let pathParams = { - }; - let queryParams = { - 'term': term, - 'search_by_email': opts['search_by_email'] === undefined ? opts['searchByEmail'] : opts['search_by_email'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Users; - return this.apiClient.callApi( - '/users/find', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Find users by name - * Finds users by their name. - * @param {String} term The search term to look for - * @param {Object} opts Optional parameters - * @param {module:model/NumberBooleanDefault0} opts.searchByEmail When enabled, the term will only be matched against email addresses of users. Default: `false`. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Users} - */ - findUsersByName(term, opts) { - return this.findUsersByNameWithHttpInfo(term, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get current user data - * Returns data about an authorized user within the company with bound company data: company ID, company name, and domain. Note that the `locale` property means 'Date/number format' in the Pipedrive account settings, not the chosen language. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserMe} and HTTP response - */ - getCurrentUserWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserMe; - return this.apiClient.callApi( - '/users/me', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get current user data - * Returns data about an authorized user within the company with bound company data: company ID, company name, and domain. Note that the `locale` property means 'Date/number format' in the Pipedrive account settings, not the chosen language. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserMe} - */ - getCurrentUser() { - return this.getCurrentUserWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get one user - * Returns data about a specific user within the company. - * @param {Number} id The ID of the user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/User} and HTTP response - */ - getUserWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getUser"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = User; - return this.apiClient.callApi( - '/users/{id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get one user - * Returns data about a specific user within the company. - * @param {Number} id The ID of the user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User} - */ - getUser(id) { - return this.getUserWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List followers of a user - * Lists the followers of a specific user. - * @param {Number} id The ID of the user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserIDs} and HTTP response - */ - getUserFollowersWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getUserFollowers"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserIDs; - return this.apiClient.callApi( - '/users/{id}/followers', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List followers of a user - * Lists the followers of a specific user. - * @param {Number} id The ID of the user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserIDs} - */ - getUserFollowers(id) { - return this.getUserFollowersWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List user permissions - * Lists aggregated permissions over all assigned permission sets for a user. - * @param {Number} id The ID of the user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserPermissions} and HTTP response - */ - getUserPermissionsWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getUserPermissions"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = UserPermissions; - return this.apiClient.callApi( - '/users/{id}/permissions', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List user permissions - * Lists aggregated permissions over all assigned permission sets for a user. - * @param {Number} id The ID of the user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserPermissions} - */ - getUserPermissions(id) { - return this.getUserPermissionsWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List role assignments - * Lists role assignments for a user. - * @param {Number} id The ID of the user - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRoleAssignments} and HTTP response - */ - getUserRoleAssignmentsWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getUserRoleAssignments"); - } - - - - let pathParams = { - 'id': id, - }; - let queryParams = { - 'start': opts['start'] === undefined ? opts['start'] : opts['start'], - 'limit': opts['limit'] === undefined ? opts['limit'] : opts['limit'], - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetRoleAssignments; - return this.apiClient.callApi( - '/users/{id}/roleAssignments', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List role assignments - * Lists role assignments for a user. - * @param {Number} id The ID of the user - * @param {Object} opts Optional parameters - * @param {Number} opts.start Pagination start (default to 0) - * @param {Number} opts.limit Items shown per page - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRoleAssignments} - */ - getUserRoleAssignments(id, opts) { - return this.getUserRoleAssignmentsWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * List user role settings - * Lists the settings of user's assigned role. - * @param {Number} id The ID of the user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetRoleSettings} and HTTP response - */ - getUserRoleSettingsWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling getUserRoleSettings"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = GetRoleSettings; - return this.apiClient.callApi( - '/users/{id}/roleSettings', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List user role settings - * Lists the settings of user's assigned role. - * @param {Number} id The ID of the user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetRoleSettings} - */ - getUserRoleSettings(id) { - return this.getUserRoleSettingsWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all users - * Returns data about all users within the company. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Users} and HTTP response - */ - getUsersWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Users; - return this.apiClient.callApi( - '/users', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all users - * Returns data about all users within the company. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Users} - */ - getUsers() { - return this.getUsersWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Update user details - * Updates the properties of a user. Currently, only `active_flag` can be updated. - * @param {Number} id The ID of the user - * @param {Object} opts Optional parameters - * @param {module:model/UpdateUserRequest} opts.updateUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/User} and HTTP response - */ - updateUserWithHttpInfo(id, opts) { - opts = opts || {}; - let postBody = opts['updateUserRequest']; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling updateUser"); - } - - if (opts['active_flag'] === undefined || opts['active_flag'] === null) { - throw new Error("Missing the required parameter 'active_flag' when calling updateUser"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = User; - return this.apiClient.callApi( - '/users/{id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update user details - * Updates the properties of a user. Currently, only `active_flag` can be updated. - * @param {Number} id The ID of the user - * @param {Object} opts Optional parameters - * @param {module:model/UpdateUserRequest} opts.updateUserRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/User} - */ - updateUser(id, opts) { - return this.updateUserWithHttpInfo(id, opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/api/WebhooksApi.js b/src/api/WebhooksApi.js deleted file mode 100644 index 9574defb..00000000 --- a/src/api/WebhooksApi.js +++ /dev/null @@ -1,240 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddWebhookRequest from '../model/AddWebhookRequest'; -import BaseResponseWithStatus from '../model/BaseResponseWithStatus'; -import Unauthorized from '../model/Unauthorized'; -import Webhook from '../model/Webhook'; -import WebhookBadRequest from '../model/WebhookBadRequest'; -import Webhooks from '../model/Webhooks'; -import WebhooksDeleteForbiddenSchema from '../model/WebhooksDeleteForbiddenSchema'; - -/** -* Webhooks service. -* @module api/WebhooksApi -* @version 1.0.0 -*/ -export default class WebhooksApi { - - /** - * Constructs a new WebhooksApi. - * @alias module:api/WebhooksApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient; - } - - - - /** - * Create a new Webhook - * Creates a new Webhook and returns its details. Note that specifying an event which triggers the Webhook combines 2 parameters - `event_action` and `event_object`. E.g., use `*.*` for getting notifications about all events, `added.deal` for any newly added deals, `deleted.persons` for any deleted persons, etc. See the guide for Webhooks for more details. - * @param {Object} opts Optional parameters - * @param {module:model/AddWebhookRequest} opts.addWebhookRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Webhook} and HTTP response - */ - addWebhookWithHttpInfo(opts) { - opts = opts || {}; - let postBody = opts['addWebhookRequest']; - - if (opts['subscription_url'] === undefined || opts['subscription_url'] === null) { - throw new Error("Missing the required parameter 'subscription_url' when calling addWebhook"); - } - if (opts['event_action'] === undefined || opts['event_action'] === null) { - throw new Error("Missing the required parameter 'event_action' when calling addWebhook"); - } - if (opts['event_object'] === undefined || opts['event_object'] === null) { - throw new Error("Missing the required parameter 'event_object' when calling addWebhook"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = ['application/json', ]; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Webhook; - return this.apiClient.callApi( - '/webhooks', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Create a new Webhook - * Creates a new Webhook and returns its details. Note that specifying an event which triggers the Webhook combines 2 parameters - `event_action` and `event_object`. E.g., use `*.*` for getting notifications about all events, `added.deal` for any newly added deals, `deleted.persons` for any deleted persons, etc. See the guide for Webhooks for more details. - * @param {Object} opts Optional parameters - * @param {module:model/AddWebhookRequest} opts.addWebhookRequest - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Webhook} - */ - addWebhook(opts) { - return this.addWebhookWithHttpInfo(opts) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Delete existing Webhook - * Deletes the specified Webhook. - * @param {Number} id The ID of the Webhook to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BaseResponseWithStatus} and HTTP response - */ - deleteWebhookWithHttpInfo(id) { - const opts = {} - let postBody = null; - - // verify the required parameter 'id' is set - if (id === undefined || id === null) { - throw new Error("Missing the required parameter 'id' when calling deleteWebhook"); - } - - let pathParams = { - 'id': id, - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = BaseResponseWithStatus; - return this.apiClient.callApi( - '/webhooks/{id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete existing Webhook - * Deletes the specified Webhook. - * @param {Number} id The ID of the Webhook to delete - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BaseResponseWithStatus} - */ - deleteWebhook(id) { - return this.deleteWebhookWithHttpInfo(id) - .then(function(response_and_data) { - return response_and_data; - }); - } - - - /** - * Get all Webhooks - * Returns data about all the Webhooks of a company. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Webhooks} and HTTP response - */ - getWebhooksWithHttpInfo() { - const opts = {} - let postBody = null; - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - }; - let formParams = { - }; - - let formParamArray = [ - ]; - - let contentTypes = []; - const isURLEncoded = contentTypes.includes('application/x-www-form-urlencoded'); - const isJSON = contentTypes.includes('application/json'); - - if (isJSON) { - postBody = { ...postBody, ...opts }; - } else if (isURLEncoded) { - for (let key in opts) { - if (opts.hasOwnProperty(key) && !formParamArray.includes(key)) { - formParams[key] = opts[key]; - } - } - } - - let authNames = ['api_key', 'oauth2', ]; - let accepts = ['application/json', ]; - let returnType = Webhooks; - return this.apiClient.callApi( - '/webhooks', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get all Webhooks - * Returns data about all the Webhooks of a company. - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Webhooks} - */ - getWebhooks() { - return this.getWebhooksWithHttpInfo() - .then(function(response_and_data) { - return response_and_data; - }); - } - - -} diff --git a/src/exceptions/FailResponseException.js b/src/exceptions/FailResponseException.js deleted file mode 100644 index b717fe72..00000000 --- a/src/exceptions/FailResponseException.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Creates an instance of FailResponseException - */ -class FailResponseException { - constructor() { - /** - * If the response is successful or not - */ - this.success = false; - - /** - * The error message - */ - this.message = null; - - /** - * The response error code - */ - this.errorCode = null; - - /** - * The context of the error - */ - this.context = null; - } -} - -export default FailResponseException; diff --git a/src/exceptions/NotFoundException.js b/src/exceptions/NotFoundException.js deleted file mode 100644 index bcd0fff2..00000000 --- a/src/exceptions/NotFoundException.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Creates an instance of NotFoundException - */ -class NotFoundException { - constructor() { - /** - * If the response is successful or not - */ - this.success = false; - - /** - * The error message - */ - this.message = 'Not found'; - - /** - * The response error code - */ - this.errorCode = 404; - - /** - * The context of the error - */ - this.context = null; - } -} - -export default NotFoundException; diff --git a/src/exceptions/OAuthProviderException.js b/src/exceptions/OAuthProviderException.js deleted file mode 100644 index 1fca855a..00000000 --- a/src/exceptions/OAuthProviderException.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Creates an instance of OAuthProviderException - */ -class OAuthProviderException { - constructor() { - /** - * If the response is successful or not - */ - this.success = false; - - /** - * The error message - */ - this.message = null; - - /** - * The response error code - */ - this.errorCode = null; - - /** - * The context of the error - */ - this.context = null; - } -} - -export default OAuthProviderException; diff --git a/src/exceptions/UnauthorizedException.js b/src/exceptions/UnauthorizedException.js deleted file mode 100644 index 41f997f5..00000000 --- a/src/exceptions/UnauthorizedException.js +++ /dev/null @@ -1,28 +0,0 @@ -/** - * Creates an instance of UnauthorizedException - */ -class UnauthorizedException { - constructor() { - /** - * If the response is successful or not - */ - this.success = false; - - /** - * The error message - */ - this.message = 'Unauthorized access'; - - /** - * The response error code - */ - this.errorCode = 401; - - /** - * The context of the error - */ - this.context = null; - } -} - -export default UnauthorizedException; diff --git a/src/index.js b/src/index.js deleted file mode 100644 index 55748bef..00000000 --- a/src/index.js +++ /dev/null @@ -1,5998 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from './ApiClient'; -import ActivityCollectionResponseObject from './model/ActivityCollectionResponseObject'; -import ActivityCollectionResponseObjectAllOf from './model/ActivityCollectionResponseObjectAllOf'; -import ActivityDistributionData from './model/ActivityDistributionData'; -import ActivityDistributionDataActivityDistribution from './model/ActivityDistributionDataActivityDistribution'; -import ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID from './model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID'; -import ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities from './model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities'; -import ActivityDistributionDataWithAdditionalData from './model/ActivityDistributionDataWithAdditionalData'; -import ActivityInfo from './model/ActivityInfo'; -import ActivityObjectFragment from './model/ActivityObjectFragment'; -import ActivityPostObject from './model/ActivityPostObject'; -import ActivityPostObjectAllOf from './model/ActivityPostObjectAllOf'; -import ActivityPutObject from './model/ActivityPutObject'; -import ActivityPutObjectAllOf from './model/ActivityPutObjectAllOf'; -import ActivityRecordAdditionalData from './model/ActivityRecordAdditionalData'; -import ActivityResponseObject from './model/ActivityResponseObject'; -import ActivityResponseObjectAllOf from './model/ActivityResponseObjectAllOf'; -import ActivityTypeBulkDeleteResponse from './model/ActivityTypeBulkDeleteResponse'; -import ActivityTypeBulkDeleteResponseAllOf from './model/ActivityTypeBulkDeleteResponseAllOf'; -import ActivityTypeBulkDeleteResponseAllOfData from './model/ActivityTypeBulkDeleteResponseAllOfData'; -import ActivityTypeCreateRequest from './model/ActivityTypeCreateRequest'; -import ActivityTypeCreateUpdateDeleteResponse from './model/ActivityTypeCreateUpdateDeleteResponse'; -import ActivityTypeCreateUpdateDeleteResponseAllOf from './model/ActivityTypeCreateUpdateDeleteResponseAllOf'; -import ActivityTypeListResponse from './model/ActivityTypeListResponse'; -import ActivityTypeListResponseAllOf from './model/ActivityTypeListResponseAllOf'; -import ActivityTypeObjectResponse from './model/ActivityTypeObjectResponse'; -import ActivityTypeUpdateRequest from './model/ActivityTypeUpdateRequest'; -import AddActivityResponse from './model/AddActivityResponse'; -import AddActivityResponseRelatedObjects from './model/AddActivityResponseRelatedObjects'; -import AddDealFollowerRequest from './model/AddDealFollowerRequest'; -import AddDealParticipantRequest from './model/AddDealParticipantRequest'; -import AddFile from './model/AddFile'; -import AddFilterRequest from './model/AddFilterRequest'; -import AddFollowerToPersonResponse from './model/AddFollowerToPersonResponse'; -import AddFollowerToPersonResponseAllOf from './model/AddFollowerToPersonResponseAllOf'; -import AddFollowerToPersonResponseAllOfData from './model/AddFollowerToPersonResponseAllOfData'; -import AddLeadLabelRequest from './model/AddLeadLabelRequest'; -import AddLeadRequest from './model/AddLeadRequest'; -import AddNewPipeline from './model/AddNewPipeline'; -import AddNewPipelineAllOf from './model/AddNewPipelineAllOf'; -import AddNoteRequest from './model/AddNoteRequest'; -import AddNoteRequestAllOf from './model/AddNoteRequestAllOf'; -import AddOrUpdateRoleSettingRequest from './model/AddOrUpdateRoleSettingRequest'; -import AddOrganizationFollowerRequest from './model/AddOrganizationFollowerRequest'; -import AddOrganizationRelationshipRequest from './model/AddOrganizationRelationshipRequest'; -import AddPersonFollowerRequest from './model/AddPersonFollowerRequest'; -import AddPersonPictureResponse from './model/AddPersonPictureResponse'; -import AddPersonPictureResponseAllOf from './model/AddPersonPictureResponseAllOf'; -import AddPersonResponse from './model/AddPersonResponse'; -import AddPersonResponseAllOf from './model/AddPersonResponseAllOf'; -import AddProductAttachmentDetails from './model/AddProductAttachmentDetails'; -import AddProductAttachmentDetailsAllOf from './model/AddProductAttachmentDetailsAllOf'; -import AddProductFollowerRequest from './model/AddProductFollowerRequest'; -import AddProductRequestBody from './model/AddProductRequestBody'; -import AddProductRequestBodyAllOf from './model/AddProductRequestBodyAllOf'; -import AddProjectResponse from './model/AddProjectResponse'; -import AddRole from './model/AddRole'; -import AddRoleAssignmentRequest from './model/AddRoleAssignmentRequest'; -import AddTaskResponse from './model/AddTaskResponse'; -import AddTeamUserRequest from './model/AddTeamUserRequest'; -import AddUserRequest from './model/AddUserRequest'; -import AddWebhookRequest from './model/AddWebhookRequest'; -import AddedDealFollower from './model/AddedDealFollower'; -import AddedDealFollowerData from './model/AddedDealFollowerData'; -import AdditionalBaseOrganizationItemInfo from './model/AdditionalBaseOrganizationItemInfo'; -import AdditionalData from './model/AdditionalData'; -import AdditionalDataWithCursorPagination from './model/AdditionalDataWithCursorPagination'; -import AdditionalDataWithOffsetPagination from './model/AdditionalDataWithOffsetPagination'; -import AdditionalDataWithPaginationDetails from './model/AdditionalDataWithPaginationDetails'; -import AdditionalMergePersonInfo from './model/AdditionalMergePersonInfo'; -import AdditionalPersonInfo from './model/AdditionalPersonInfo'; -import AllOrganizationRelationshipsGetResponse from './model/AllOrganizationRelationshipsGetResponse'; -import AllOrganizationRelationshipsGetResponseAllOf from './model/AllOrganizationRelationshipsGetResponseAllOf'; -import AllOrganizationRelationshipsGetResponseAllOfRelatedObjects from './model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects'; -import AllOrganizationsGetResponse from './model/AllOrganizationsGetResponse'; -import AllOrganizationsGetResponseAllOf from './model/AllOrganizationsGetResponseAllOf'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './model/AllOrganizationsGetResponseAllOfRelatedObjects'; -import ArrayPrices from './model/ArrayPrices'; -import Assignee from './model/Assignee'; -import BaseComment from './model/BaseComment'; -import BaseCurrency from './model/BaseCurrency'; -import BaseDeal from './model/BaseDeal'; -import BaseFollowerItem from './model/BaseFollowerItem'; -import BaseMailThread from './model/BaseMailThread'; -import BaseMailThreadAllOf from './model/BaseMailThreadAllOf'; -import BaseMailThreadAllOfParties from './model/BaseMailThreadAllOfParties'; -import BaseMailThreadMessages from './model/BaseMailThreadMessages'; -import BaseMailThreadMessagesAllOf from './model/BaseMailThreadMessagesAllOf'; -import BaseNote from './model/BaseNote'; -import BaseNoteDealTitle from './model/BaseNoteDealTitle'; -import BaseNoteOrganization from './model/BaseNoteOrganization'; -import BaseNotePerson from './model/BaseNotePerson'; -import BaseOrganizationItem from './model/BaseOrganizationItem'; -import BaseOrganizationItemFields from './model/BaseOrganizationItemFields'; -import BaseOrganizationItemWithEditNameFlag from './model/BaseOrganizationItemWithEditNameFlag'; -import BaseOrganizationItemWithEditNameFlagAllOf from './model/BaseOrganizationItemWithEditNameFlagAllOf'; -import BaseOrganizationRelationshipItem from './model/BaseOrganizationRelationshipItem'; -import BasePersonItem from './model/BasePersonItem'; -import BasePersonItemEmail from './model/BasePersonItemEmail'; -import BasePersonItemPhone from './model/BasePersonItemPhone'; -import BasePipeline from './model/BasePipeline'; -import BasePipelineWithSelectedFlag from './model/BasePipelineWithSelectedFlag'; -import BasePipelineWithSelectedFlagAllOf from './model/BasePipelineWithSelectedFlagAllOf'; -import BaseProduct from './model/BaseProduct'; -import BaseResponse from './model/BaseResponse'; -import BaseResponseWithStatus from './model/BaseResponseWithStatus'; -import BaseResponseWithStatusAllOf from './model/BaseResponseWithStatusAllOf'; -import BaseRole from './model/BaseRole'; -import BaseStage from './model/BaseStage'; -import BaseTeam from './model/BaseTeam'; -import BaseTeamAdditionalProperties from './model/BaseTeamAdditionalProperties'; -import BaseUser from './model/BaseUser'; -import BaseUserMe from './model/BaseUserMe'; -import BaseUserMeAllOf from './model/BaseUserMeAllOf'; -import BaseUserMeAllOfLanguage from './model/BaseUserMeAllOfLanguage'; -import BaseWebhook from './model/BaseWebhook'; -import BasicDeal from './model/BasicDeal'; -import BasicDealProduct from './model/BasicDealProduct'; -import BasicDealProductAllOf from './model/BasicDealProductAllOf'; -import BasicGoal from './model/BasicGoal'; -import BasicOrganization from './model/BasicOrganization'; -import BasicPerson from './model/BasicPerson'; -import BasicPersonEmail from './model/BasicPersonEmail'; -import BillingFrequency from './model/BillingFrequency'; -import BillingFrequency1 from './model/BillingFrequency1'; -import BulkDeleteResponse from './model/BulkDeleteResponse'; -import BulkDeleteResponseAllOf from './model/BulkDeleteResponseAllOf'; -import BulkDeleteResponseAllOfData from './model/BulkDeleteResponseAllOfData'; -import CalculatedFields from './model/CalculatedFields'; -import CallLogBadRequestResponse from './model/CallLogBadRequestResponse'; -import CallLogConflictResponse from './model/CallLogConflictResponse'; -import CallLogForbiddenResponse from './model/CallLogForbiddenResponse'; -import CallLogGoneResponse from './model/CallLogGoneResponse'; -import CallLogInternalErrorResponse from './model/CallLogInternalErrorResponse'; -import CallLogNotFoundResponse from './model/CallLogNotFoundResponse'; -import CallLogObject from './model/CallLogObject'; -import CallLogResponse200 from './model/CallLogResponse200'; -import CallLogsResponse from './model/CallLogsResponse'; -import CallLogsResponseAdditionalData from './model/CallLogsResponseAdditionalData'; -import ChangelogResponse from './model/ChangelogResponse'; -import ChangelogResponseAllOf from './model/ChangelogResponseAllOf'; -import ChangelogResponseAllOfData from './model/ChangelogResponseAllOfData'; -import ChannelObject from './model/ChannelObject'; -import ChannelObjectResponse from './model/ChannelObjectResponse'; -import ChannelObjectResponseData from './model/ChannelObjectResponseData'; -import CommentPostPutObject from './model/CommentPostPutObject'; -import CommonMailThread from './model/CommonMailThread'; -import CreateRemoteFileAndLinkItToItem from './model/CreateRemoteFileAndLinkItToItem'; -import CreateTeam from './model/CreateTeam'; -import Currencies from './model/Currencies'; -import DealCollectionResponseObject from './model/DealCollectionResponseObject'; -import DealCountAndActivityInfo from './model/DealCountAndActivityInfo'; -import DealFlowResponse from './model/DealFlowResponse'; -import DealFlowResponseAllOf from './model/DealFlowResponseAllOf'; -import DealFlowResponseAllOfData from './model/DealFlowResponseAllOfData'; -import DealFlowResponseAllOfRelatedObjects from './model/DealFlowResponseAllOfRelatedObjects'; -import DealListActivitiesResponse from './model/DealListActivitiesResponse'; -import DealListActivitiesResponseAllOf from './model/DealListActivitiesResponseAllOf'; -import DealListActivitiesResponseAllOfRelatedObjects from './model/DealListActivitiesResponseAllOfRelatedObjects'; -import DealNonStrict from './model/DealNonStrict'; -import DealNonStrictModeFields from './model/DealNonStrictModeFields'; -import DealNonStrictModeFieldsCreatorUserId from './model/DealNonStrictModeFieldsCreatorUserId'; -import DealNonStrictWithDetails from './model/DealNonStrictWithDetails'; -import DealNonStrictWithDetailsAllOf from './model/DealNonStrictWithDetailsAllOf'; -import DealNonStrictWithDetailsAllOfAge from './model/DealNonStrictWithDetailsAllOfAge'; -import DealNonStrictWithDetailsAllOfAverageTimeToWon from './model/DealNonStrictWithDetailsAllOfAverageTimeToWon'; -import DealNonStrictWithDetailsAllOfStayInPipelineStages from './model/DealNonStrictWithDetailsAllOfStayInPipelineStages'; -import DealOrganizationData from './model/DealOrganizationData'; -import DealOrganizationDataWithId from './model/DealOrganizationDataWithId'; -import DealOrganizationDataWithIdAllOf from './model/DealOrganizationDataWithIdAllOf'; -import DealParticipantCountInfo from './model/DealParticipantCountInfo'; -import DealParticipants from './model/DealParticipants'; -import DealParticipantsChangelog from './model/DealParticipantsChangelog'; -import DealPersonData from './model/DealPersonData'; -import DealPersonDataEmail from './model/DealPersonDataEmail'; -import DealPersonDataPhone from './model/DealPersonDataPhone'; -import DealPersonDataWithId from './model/DealPersonDataWithId'; -import DealPersonDataWithIdAllOf from './model/DealPersonDataWithIdAllOf'; -import DealProductRequestBody from './model/DealProductRequestBody'; -import DealSearchItem from './model/DealSearchItem'; -import DealSearchItemItem from './model/DealSearchItemItem'; -import DealSearchItemItemOrganization from './model/DealSearchItemItemOrganization'; -import DealSearchItemItemOwner from './model/DealSearchItemItemOwner'; -import DealSearchItemItemPerson from './model/DealSearchItemItemPerson'; -import DealSearchItemItemStage from './model/DealSearchItemItemStage'; -import DealSearchResponse from './model/DealSearchResponse'; -import DealSearchResponseAllOf from './model/DealSearchResponseAllOf'; -import DealSearchResponseAllOfData from './model/DealSearchResponseAllOfData'; -import DealStrict from './model/DealStrict'; -import DealStrictModeFields from './model/DealStrictModeFields'; -import DealStrictWithMergeId from './model/DealStrictWithMergeId'; -import DealStrictWithMergeIdAllOf from './model/DealStrictWithMergeIdAllOf'; -import DealSummary from './model/DealSummary'; -import DealSummaryPerCurrency from './model/DealSummaryPerCurrency'; -import DealSummaryPerCurrencyFull from './model/DealSummaryPerCurrencyFull'; -import DealSummaryPerCurrencyFullCURRENCYID from './model/DealSummaryPerCurrencyFullCURRENCYID'; -import DealSummaryPerStages from './model/DealSummaryPerStages'; -import DealSummaryPerStagesSTAGEID from './model/DealSummaryPerStagesSTAGEID'; -import DealSummaryPerStagesSTAGEIDCURRENCYID from './model/DealSummaryPerStagesSTAGEIDCURRENCYID'; -import DealTitleParameter from './model/DealTitleParameter'; -import DealUserData from './model/DealUserData'; -import DealUserDataWithId from './model/DealUserDataWithId'; -import DealUserDataWithIdAllOf from './model/DealUserDataWithIdAllOf'; -import DealsCountAndActivityInfo from './model/DealsCountAndActivityInfo'; -import DealsCountInfo from './model/DealsCountInfo'; -import DealsMovementsInfo from './model/DealsMovementsInfo'; -import DealsMovementsInfoFormattedValues from './model/DealsMovementsInfoFormattedValues'; -import DealsMovementsInfoValues from './model/DealsMovementsInfoValues'; -import DeleteActivitiesResponse from './model/DeleteActivitiesResponse'; -import DeleteActivitiesResponseData from './model/DeleteActivitiesResponseData'; -import DeleteActivityResponse from './model/DeleteActivityResponse'; -import DeleteActivityResponseData from './model/DeleteActivityResponseData'; -import DeleteChannelSuccess from './model/DeleteChannelSuccess'; -import DeleteComment from './model/DeleteComment'; -import DeleteConversationSuccess from './model/DeleteConversationSuccess'; -import DeleteDeal from './model/DeleteDeal'; -import DeleteDealData from './model/DeleteDealData'; -import DeleteDealFollower from './model/DeleteDealFollower'; -import DeleteDealFollowerData from './model/DeleteDealFollowerData'; -import DeleteDealParticipant from './model/DeleteDealParticipant'; -import DeleteDealParticipantData from './model/DeleteDealParticipantData'; -import DeleteDealProduct from './model/DeleteDealProduct'; -import DeleteDealProductData from './model/DeleteDealProductData'; -import DeleteFile from './model/DeleteFile'; -import DeleteFileData from './model/DeleteFileData'; -import DeleteGoalResponse from './model/DeleteGoalResponse'; -import DeleteLeadIdResponse from './model/DeleteLeadIdResponse'; -import DeleteMultipleDeals from './model/DeleteMultipleDeals'; -import DeleteMultipleDealsData from './model/DeleteMultipleDealsData'; -import DeleteMultipleProductFieldsResponse from './model/DeleteMultipleProductFieldsResponse'; -import DeleteMultipleProductFieldsResponseData from './model/DeleteMultipleProductFieldsResponseData'; -import DeleteNote from './model/DeleteNote'; -import DeletePersonResponse from './model/DeletePersonResponse'; -import DeletePersonResponseAllOf from './model/DeletePersonResponseAllOf'; -import DeletePersonResponseAllOfData from './model/DeletePersonResponseAllOfData'; -import DeletePersonsInBulkResponse from './model/DeletePersonsInBulkResponse'; -import DeletePersonsInBulkResponseAllOf from './model/DeletePersonsInBulkResponseAllOf'; -import DeletePersonsInBulkResponseAllOfData from './model/DeletePersonsInBulkResponseAllOfData'; -import DeletePipelineResponse from './model/DeletePipelineResponse'; -import DeletePipelineResponseData from './model/DeletePipelineResponseData'; -import DeleteProductFieldResponse from './model/DeleteProductFieldResponse'; -import DeleteProductFieldResponseData from './model/DeleteProductFieldResponseData'; -import DeleteProductFollowerResponse from './model/DeleteProductFollowerResponse'; -import DeleteProductFollowerResponseData from './model/DeleteProductFollowerResponseData'; -import DeleteProductResponse from './model/DeleteProductResponse'; -import DeleteProductResponseData from './model/DeleteProductResponseData'; -import DeleteProject from './model/DeleteProject'; -import DeleteProjectData from './model/DeleteProjectData'; -import DeleteProjectResponse from './model/DeleteProjectResponse'; -import DeleteResponse from './model/DeleteResponse'; -import DeleteResponseAllOf from './model/DeleteResponseAllOf'; -import DeleteResponseAllOfData from './model/DeleteResponseAllOfData'; -import DeleteRole from './model/DeleteRole'; -import DeleteRoleAllOf from './model/DeleteRoleAllOf'; -import DeleteRoleAllOfData from './model/DeleteRoleAllOfData'; -import DeleteRoleAssignment from './model/DeleteRoleAssignment'; -import DeleteRoleAssignmentAllOf from './model/DeleteRoleAssignmentAllOf'; -import DeleteRoleAssignmentAllOfData from './model/DeleteRoleAssignmentAllOfData'; -import DeleteRoleAssignmentRequest from './model/DeleteRoleAssignmentRequest'; -import DeleteStageResponse from './model/DeleteStageResponse'; -import DeleteStageResponseData from './model/DeleteStageResponseData'; -import DeleteStagesResponse from './model/DeleteStagesResponse'; -import DeleteStagesResponseData from './model/DeleteStagesResponseData'; -import DeleteTask from './model/DeleteTask'; -import DeleteTaskData from './model/DeleteTaskData'; -import DeleteTaskResponse from './model/DeleteTaskResponse'; -import DeleteTeamUserRequest from './model/DeleteTeamUserRequest'; -import Duration from './model/Duration'; -import EditPipeline from './model/EditPipeline'; -import EditPipelineAllOf from './model/EditPipelineAllOf'; -import EmailInfo from './model/EmailInfo'; -import ExpectedOutcome from './model/ExpectedOutcome'; -import FailResponse from './model/FailResponse'; -import Field from './model/Field'; -import FieldCreateRequest from './model/FieldCreateRequest'; -import FieldCreateRequestAllOf from './model/FieldCreateRequestAllOf'; -import FieldResponse from './model/FieldResponse'; -import FieldResponseAllOf from './model/FieldResponseAllOf'; -import FieldType from './model/FieldType'; -import FieldTypeAsString from './model/FieldTypeAsString'; -import FieldUpdateRequest from './model/FieldUpdateRequest'; -import FieldsResponse from './model/FieldsResponse'; -import FieldsResponseAllOf from './model/FieldsResponseAllOf'; -import FileData from './model/FileData'; -import FileItem from './model/FileItem'; -import FilterGetItem from './model/FilterGetItem'; -import FilterType from './model/FilterType'; -import FiltersBulkDeleteResponse from './model/FiltersBulkDeleteResponse'; -import FiltersBulkDeleteResponseAllOf from './model/FiltersBulkDeleteResponseAllOf'; -import FiltersBulkDeleteResponseAllOfData from './model/FiltersBulkDeleteResponseAllOfData'; -import FiltersBulkGetResponse from './model/FiltersBulkGetResponse'; -import FiltersBulkGetResponseAllOf from './model/FiltersBulkGetResponseAllOf'; -import FiltersDeleteResponse from './model/FiltersDeleteResponse'; -import FiltersDeleteResponseAllOf from './model/FiltersDeleteResponseAllOf'; -import FiltersDeleteResponseAllOfData from './model/FiltersDeleteResponseAllOfData'; -import FiltersGetResponse from './model/FiltersGetResponse'; -import FiltersGetResponseAllOf from './model/FiltersGetResponseAllOf'; -import FiltersPostResponse from './model/FiltersPostResponse'; -import FiltersPostResponseAllOf from './model/FiltersPostResponseAllOf'; -import FiltersPostResponseAllOfData from './model/FiltersPostResponseAllOfData'; -import FindGoalResponse from './model/FindGoalResponse'; -import FollowerData from './model/FollowerData'; -import FollowerDataWithID from './model/FollowerDataWithID'; -import FollowerDataWithIDAllOf from './model/FollowerDataWithIDAllOf'; -import FullProjectObject from './model/FullProjectObject'; -import FullRole from './model/FullRole'; -import FullRoleAllOf from './model/FullRoleAllOf'; -import FullTaskObject from './model/FullTaskObject'; -import GetActivitiesCollectionResponse from './model/GetActivitiesCollectionResponse'; -import GetActivitiesResponse from './model/GetActivitiesResponse'; -import GetActivitiesResponseRelatedObjects from './model/GetActivitiesResponseRelatedObjects'; -import GetActivityResponse from './model/GetActivityResponse'; -import GetAddProductAttachmentDetails from './model/GetAddProductAttachmentDetails'; -import GetAddUpdateStage from './model/GetAddUpdateStage'; -import GetAddedDeal from './model/GetAddedDeal'; -import GetAllFiles from './model/GetAllFiles'; -import GetAllPersonsResponse from './model/GetAllPersonsResponse'; -import GetAllPersonsResponseAllOf from './model/GetAllPersonsResponseAllOf'; -import GetAllPipelines from './model/GetAllPipelines'; -import GetAllPipelinesAllOf from './model/GetAllPipelinesAllOf'; -import GetAllProductFieldsResponse from './model/GetAllProductFieldsResponse'; -import GetComments from './model/GetComments'; -import GetDeal from './model/GetDeal'; -import GetDealAdditionalData from './model/GetDealAdditionalData'; -import GetDealRelatedObjects from './model/GetDealRelatedObjects'; -import GetDeals from './model/GetDeals'; -import GetDealsCollection from './model/GetDealsCollection'; -import GetDealsConversionRatesInPipeline from './model/GetDealsConversionRatesInPipeline'; -import GetDealsConversionRatesInPipelineAllOf from './model/GetDealsConversionRatesInPipelineAllOf'; -import GetDealsConversionRatesInPipelineAllOfData from './model/GetDealsConversionRatesInPipelineAllOfData'; -import GetDealsMovementsInPipeline from './model/GetDealsMovementsInPipeline'; -import GetDealsMovementsInPipelineAllOf from './model/GetDealsMovementsInPipelineAllOf'; -import GetDealsMovementsInPipelineAllOfData from './model/GetDealsMovementsInPipelineAllOfData'; -import GetDealsMovementsInPipelineAllOfDataAverageAgeInDays from './model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays'; -import GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages from './model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages'; -import GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages from './model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages'; -import GetDealsRelatedObjects from './model/GetDealsRelatedObjects'; -import GetDealsSummary from './model/GetDealsSummary'; -import GetDealsSummaryData from './model/GetDealsSummaryData'; -import GetDealsSummaryDataValuesTotal from './model/GetDealsSummaryDataValuesTotal'; -import GetDealsSummaryDataWeightedValuesTotal from './model/GetDealsSummaryDataWeightedValuesTotal'; -import GetDealsTimeline from './model/GetDealsTimeline'; -import GetDealsTimelineData from './model/GetDealsTimelineData'; -import GetDealsTimelineDataTotals from './model/GetDealsTimelineDataTotals'; -import GetDuplicatedDeal from './model/GetDuplicatedDeal'; -import GetField from './model/GetField'; -import GetFieldAllOf from './model/GetFieldAllOf'; -import GetGoalResultResponse from './model/GetGoalResultResponse'; -import GetGoalsResponse from './model/GetGoalsResponse'; -import GetLeadIdResponse from './model/GetLeadIdResponse'; -import GetLeadIdResponseData from './model/GetLeadIdResponseData'; -import GetLeadLabelsResponse from './model/GetLeadLabelsResponse'; -import GetLeadResponse from './model/GetLeadResponse'; -import GetLeadsResponse from './model/GetLeadsResponse'; -import GetLeadsSourceResponse from './model/GetLeadsSourceResponse'; -import GetLeadsSourceResponseData from './model/GetLeadsSourceResponseData'; -import GetMergedDeal from './model/GetMergedDeal'; -import GetNoteField from './model/GetNoteField'; -import GetNotes from './model/GetNotes'; -import GetOneFile from './model/GetOneFile'; -import GetOnePipeline from './model/GetOnePipeline'; -import GetOnePipelineAllOf from './model/GetOnePipelineAllOf'; -import GetOneStage from './model/GetOneStage'; -import GetPersonDetailsResponse from './model/GetPersonDetailsResponse'; -import GetPersonDetailsResponseAllOf from './model/GetPersonDetailsResponseAllOf'; -import GetPersonDetailsResponseAllOfAdditionalData from './model/GetPersonDetailsResponseAllOfAdditionalData'; -import GetProductAttachmentDetails from './model/GetProductAttachmentDetails'; -import GetProductField from './model/GetProductField'; -import GetProductFieldResponse from './model/GetProductFieldResponse'; -import GetProjectBoardResponse from './model/GetProjectBoardResponse'; -import GetProjectBoardsResponse from './model/GetProjectBoardsResponse'; -import GetProjectGroupsResponse from './model/GetProjectGroupsResponse'; -import GetProjectPhaseResponse from './model/GetProjectPhaseResponse'; -import GetProjectPhasesResponse from './model/GetProjectPhasesResponse'; -import GetProjectPlanResponse from './model/GetProjectPlanResponse'; -import GetProjectResponse from './model/GetProjectResponse'; -import GetProjectTemplateResponse from './model/GetProjectTemplateResponse'; -import GetProjectTemplatesResponse from './model/GetProjectTemplatesResponse'; -import GetProjectsResponse from './model/GetProjectsResponse'; -import GetRecents from './model/GetRecents'; -import GetRecentsAdditionalData from './model/GetRecentsAdditionalData'; -import GetRole from './model/GetRole'; -import GetRoleAllOf from './model/GetRoleAllOf'; -import GetRoleAllOfAdditionalData from './model/GetRoleAllOfAdditionalData'; -import GetRoleAssignments from './model/GetRoleAssignments'; -import GetRoleAssignmentsAllOf from './model/GetRoleAssignmentsAllOf'; -import GetRolePipelines from './model/GetRolePipelines'; -import GetRolePipelinesAllOf from './model/GetRolePipelinesAllOf'; -import GetRolePipelinesAllOfData from './model/GetRolePipelinesAllOfData'; -import GetRoleSettings from './model/GetRoleSettings'; -import GetRoleSettingsAllOf from './model/GetRoleSettingsAllOf'; -import GetRoles from './model/GetRoles'; -import GetRolesAllOf from './model/GetRolesAllOf'; -import GetStageDeals from './model/GetStageDeals'; -import GetStages from './model/GetStages'; -import GetTaskResponse from './model/GetTaskResponse'; -import GetTasksResponse from './model/GetTasksResponse'; -import GoalResults from './model/GoalResults'; -import GoalType from './model/GoalType'; -import GoalsResponseComponent from './model/GoalsResponseComponent'; -import IconKey from './model/IconKey'; -import InlineResponse200 from './model/InlineResponse200'; -import InlineResponse2001 from './model/InlineResponse2001'; -import InlineResponse2002 from './model/InlineResponse2002'; -import InlineResponse400 from './model/InlineResponse400'; -import InlineResponse4001 from './model/InlineResponse4001'; -import InlineResponse4001AdditionalData from './model/InlineResponse4001AdditionalData'; -import InlineResponse400AdditionalData from './model/InlineResponse400AdditionalData'; -import InlineResponse403 from './model/InlineResponse403'; -import InlineResponse4031 from './model/InlineResponse4031'; -import InlineResponse4031AdditionalData from './model/InlineResponse4031AdditionalData'; -import InlineResponse403AdditionalData from './model/InlineResponse403AdditionalData'; -import InlineResponse404 from './model/InlineResponse404'; -import InlineResponse404AdditionalData from './model/InlineResponse404AdditionalData'; -import InternalFieldType from './model/InternalFieldType'; -import ItemSearchAdditionalData from './model/ItemSearchAdditionalData'; -import ItemSearchAdditionalDataPagination from './model/ItemSearchAdditionalDataPagination'; -import ItemSearchFieldResponse from './model/ItemSearchFieldResponse'; -import ItemSearchFieldResponseAllOf from './model/ItemSearchFieldResponseAllOf'; -import ItemSearchFieldResponseAllOfData from './model/ItemSearchFieldResponseAllOfData'; -import ItemSearchItem from './model/ItemSearchItem'; -import ItemSearchResponse from './model/ItemSearchResponse'; -import ItemSearchResponseAllOf from './model/ItemSearchResponseAllOf'; -import ItemSearchResponseAllOfData from './model/ItemSearchResponseAllOfData'; -import LeadLabelColor from './model/LeadLabelColor'; -import LeadLabelResponse from './model/LeadLabelResponse'; -import LeadNotFoundResponse from './model/LeadNotFoundResponse'; -import LeadResponse from './model/LeadResponse'; -import LeadSearchItem from './model/LeadSearchItem'; -import LeadSearchItemItem from './model/LeadSearchItemItem'; -import LeadSearchItemItemOrganization from './model/LeadSearchItemItemOrganization'; -import LeadSearchItemItemOwner from './model/LeadSearchItemItemOwner'; -import LeadSearchItemItemPerson from './model/LeadSearchItemItemPerson'; -import LeadSearchResponse from './model/LeadSearchResponse'; -import LeadSearchResponseAllOf from './model/LeadSearchResponseAllOf'; -import LeadSearchResponseAllOfData from './model/LeadSearchResponseAllOfData'; -import LeadValue from './model/LeadValue'; -import LinkRemoteFileToItem from './model/LinkRemoteFileToItem'; -import ListActivitiesResponse from './model/ListActivitiesResponse'; -import ListActivitiesResponseAllOf from './model/ListActivitiesResponseAllOf'; -import ListDealsResponse from './model/ListDealsResponse'; -import ListDealsResponseAllOf from './model/ListDealsResponseAllOf'; -import ListDealsResponseAllOfRelatedObjects from './model/ListDealsResponseAllOfRelatedObjects'; -import ListFilesResponse from './model/ListFilesResponse'; -import ListFilesResponseAllOf from './model/ListFilesResponseAllOf'; -import ListFollowersResponse from './model/ListFollowersResponse'; -import ListFollowersResponseAllOf from './model/ListFollowersResponseAllOf'; -import ListFollowersResponseAllOfData from './model/ListFollowersResponseAllOfData'; -import ListMailMessagesResponse from './model/ListMailMessagesResponse'; -import ListMailMessagesResponseAllOf from './model/ListMailMessagesResponseAllOf'; -import ListMailMessagesResponseAllOfData from './model/ListMailMessagesResponseAllOfData'; -import ListPermittedUsersResponse from './model/ListPermittedUsersResponse'; -import ListPermittedUsersResponse1 from './model/ListPermittedUsersResponse1'; -import ListPermittedUsersResponse1AllOf from './model/ListPermittedUsersResponse1AllOf'; -import ListPersonProductsResponse from './model/ListPersonProductsResponse'; -import ListPersonProductsResponseAllOf from './model/ListPersonProductsResponseAllOf'; -import ListPersonProductsResponseAllOfDEALID from './model/ListPersonProductsResponseAllOfDEALID'; -import ListPersonProductsResponseAllOfData from './model/ListPersonProductsResponseAllOfData'; -import ListPersonsResponse from './model/ListPersonsResponse'; -import ListPersonsResponseAllOf from './model/ListPersonsResponseAllOf'; -import ListPersonsResponseAllOfRelatedObjects from './model/ListPersonsResponseAllOfRelatedObjects'; -import ListProductAdditionalData from './model/ListProductAdditionalData'; -import ListProductAdditionalDataAllOf from './model/ListProductAdditionalDataAllOf'; -import ListProductFilesResponse from './model/ListProductFilesResponse'; -import ListProductFilesResponseAllOf from './model/ListProductFilesResponseAllOf'; -import ListProductFollowersResponse from './model/ListProductFollowersResponse'; -import ListProductFollowersResponseAllOf from './model/ListProductFollowersResponseAllOf'; -import ListProductFollowersResponseAllOfData from './model/ListProductFollowersResponseAllOfData'; -import ListProductsResponse from './model/ListProductsResponse'; -import ListProductsResponseAllOf from './model/ListProductsResponseAllOf'; -import ListProductsResponseAllOfRelatedObjects from './model/ListProductsResponseAllOfRelatedObjects'; -import MailMessage from './model/MailMessage'; -import MailMessageAllOf from './model/MailMessageAllOf'; -import MailMessageData from './model/MailMessageData'; -import MailMessageItemForList from './model/MailMessageItemForList'; -import MailMessageItemForListAllOf from './model/MailMessageItemForListAllOf'; -import MailParticipant from './model/MailParticipant'; -import MailServiceBaseResponse from './model/MailServiceBaseResponse'; -import MailThread from './model/MailThread'; -import MailThreadAllOf from './model/MailThreadAllOf'; -import MailThreadDelete from './model/MailThreadDelete'; -import MailThreadDeleteAllOf from './model/MailThreadDeleteAllOf'; -import MailThreadDeleteAllOfData from './model/MailThreadDeleteAllOfData'; -import MailThreadMessages from './model/MailThreadMessages'; -import MailThreadMessagesAllOf from './model/MailThreadMessagesAllOf'; -import MailThreadOne from './model/MailThreadOne'; -import MailThreadOneAllOf from './model/MailThreadOneAllOf'; -import MailThreadParticipant from './model/MailThreadParticipant'; -import MailThreadPut from './model/MailThreadPut'; -import MailThreadPutAllOf from './model/MailThreadPutAllOf'; -import MarketingStatus from './model/MarketingStatus'; -import MergeDealsRequest from './model/MergeDealsRequest'; -import MergeOrganizationsRequest from './model/MergeOrganizationsRequest'; -import MergePersonDealRelatedInfo from './model/MergePersonDealRelatedInfo'; -import MergePersonItem from './model/MergePersonItem'; -import MergePersonsRequest from './model/MergePersonsRequest'; -import MergePersonsResponse from './model/MergePersonsResponse'; -import MergePersonsResponseAllOf from './model/MergePersonsResponseAllOf'; -import MessageObject from './model/MessageObject'; -import MessageObjectAttachments from './model/MessageObjectAttachments'; -import NameObject from './model/NameObject'; -import NewDeal from './model/NewDeal'; -import NewDealParameters from './model/NewDealParameters'; -import NewDealProduct from './model/NewDealProduct'; -import NewDealProductAllOf from './model/NewDealProductAllOf'; -import NewDealProductAllOf1 from './model/NewDealProductAllOf1'; -import NewDealProductAllOf2 from './model/NewDealProductAllOf2'; -import NewFollowerResponse from './model/NewFollowerResponse'; -import NewFollowerResponseData from './model/NewFollowerResponseData'; -import NewGoal from './model/NewGoal'; -import NewOrganization from './model/NewOrganization'; -import NewOrganizationAllOf from './model/NewOrganizationAllOf'; -import NewPerson from './model/NewPerson'; -import NewPersonAllOf from './model/NewPersonAllOf'; -import NewProductField from './model/NewProductField'; -import Note from './model/Note'; -import NoteAllOf from './model/NoteAllOf'; -import NoteConnectToParams from './model/NoteConnectToParams'; -import NoteCreatorUser from './model/NoteCreatorUser'; -import NoteField from './model/NoteField'; -import NoteFieldOptions from './model/NoteFieldOptions'; -import NoteFieldsResponse from './model/NoteFieldsResponse'; -import NoteFieldsResponseAllOf from './model/NoteFieldsResponseAllOf'; -import NoteParams from './model/NoteParams'; -import NumberBoolean from './model/NumberBoolean'; -import NumberBooleanDefault0 from './model/NumberBooleanDefault0'; -import NumberBooleanDefault1 from './model/NumberBooleanDefault1'; -import OrgAndOwnerId from './model/OrgAndOwnerId'; -import OrganizationAddressInfo from './model/OrganizationAddressInfo'; -import OrganizationCountAndAddressInfo from './model/OrganizationCountAndAddressInfo'; -import OrganizationCountInfo from './model/OrganizationCountInfo'; -import OrganizationData from './model/OrganizationData'; -import OrganizationDataWithId from './model/OrganizationDataWithId'; -import OrganizationDataWithIdAllOf from './model/OrganizationDataWithIdAllOf'; -import OrganizationDataWithIdAndActiveFlag from './model/OrganizationDataWithIdAndActiveFlag'; -import OrganizationDataWithIdAndActiveFlagAllOf from './model/OrganizationDataWithIdAndActiveFlagAllOf'; -import OrganizationDeleteResponse from './model/OrganizationDeleteResponse'; -import OrganizationDeleteResponseData from './model/OrganizationDeleteResponseData'; -import OrganizationDetailsGetResponse from './model/OrganizationDetailsGetResponse'; -import OrganizationDetailsGetResponseAllOf from './model/OrganizationDetailsGetResponseAllOf'; -import OrganizationDetailsGetResponseAllOfAdditionalData from './model/OrganizationDetailsGetResponseAllOfAdditionalData'; -import OrganizationFlowResponse from './model/OrganizationFlowResponse'; -import OrganizationFlowResponseAllOf from './model/OrganizationFlowResponseAllOf'; -import OrganizationFlowResponseAllOfData from './model/OrganizationFlowResponseAllOfData'; -import OrganizationFlowResponseAllOfRelatedObjects from './model/OrganizationFlowResponseAllOfRelatedObjects'; -import OrganizationFollowerDeleteResponse from './model/OrganizationFollowerDeleteResponse'; -import OrganizationFollowerDeleteResponseData from './model/OrganizationFollowerDeleteResponseData'; -import OrganizationFollowerItem from './model/OrganizationFollowerItem'; -import OrganizationFollowerItemAllOf from './model/OrganizationFollowerItemAllOf'; -import OrganizationFollowerPostResponse from './model/OrganizationFollowerPostResponse'; -import OrganizationFollowersListResponse from './model/OrganizationFollowersListResponse'; -import OrganizationItem from './model/OrganizationItem'; -import OrganizationItemAllOf from './model/OrganizationItemAllOf'; -import OrganizationPostResponse from './model/OrganizationPostResponse'; -import OrganizationPostResponseAllOf from './model/OrganizationPostResponseAllOf'; -import OrganizationRelationship from './model/OrganizationRelationship'; -import OrganizationRelationshipDeleteResponse from './model/OrganizationRelationshipDeleteResponse'; -import OrganizationRelationshipDeleteResponseAllOf from './model/OrganizationRelationshipDeleteResponseAllOf'; -import OrganizationRelationshipDeleteResponseAllOfData from './model/OrganizationRelationshipDeleteResponseAllOfData'; -import OrganizationRelationshipDetails from './model/OrganizationRelationshipDetails'; -import OrganizationRelationshipGetResponse from './model/OrganizationRelationshipGetResponse'; -import OrganizationRelationshipGetResponseAllOf from './model/OrganizationRelationshipGetResponseAllOf'; -import OrganizationRelationshipPostResponse from './model/OrganizationRelationshipPostResponse'; -import OrganizationRelationshipPostResponseAllOf from './model/OrganizationRelationshipPostResponseAllOf'; -import OrganizationRelationshipUpdateResponse from './model/OrganizationRelationshipUpdateResponse'; -import OrganizationRelationshipWithCalculatedFields from './model/OrganizationRelationshipWithCalculatedFields'; -import OrganizationSearchItem from './model/OrganizationSearchItem'; -import OrganizationSearchItemItem from './model/OrganizationSearchItemItem'; -import OrganizationSearchResponse from './model/OrganizationSearchResponse'; -import OrganizationSearchResponseAllOf from './model/OrganizationSearchResponseAllOf'; -import OrganizationSearchResponseAllOfData from './model/OrganizationSearchResponseAllOfData'; -import OrganizationUpdateResponse from './model/OrganizationUpdateResponse'; -import OrganizationUpdateResponseAllOf from './model/OrganizationUpdateResponseAllOf'; -import OrganizationsCollectionResponseObject from './model/OrganizationsCollectionResponseObject'; -import OrganizationsCollectionResponseObjectAllOf from './model/OrganizationsCollectionResponseObjectAllOf'; -import OrganizationsDeleteResponse from './model/OrganizationsDeleteResponse'; -import OrganizationsDeleteResponseData from './model/OrganizationsDeleteResponseData'; -import OrganizationsMergeResponse from './model/OrganizationsMergeResponse'; -import OrganizationsMergeResponseData from './model/OrganizationsMergeResponseData'; -import Owner from './model/Owner'; -import OwnerAllOf from './model/OwnerAllOf'; -import PaginationDetails from './model/PaginationDetails'; -import PaginationDetailsAllOf from './model/PaginationDetailsAllOf'; -import Params from './model/Params'; -import ParticipantsChangelog from './model/ParticipantsChangelog'; -import ParticipantsChangelogItem from './model/ParticipantsChangelogItem'; -import PaymentItem from './model/PaymentItem'; -import PaymentsResponse from './model/PaymentsResponse'; -import PaymentsResponseAllOf from './model/PaymentsResponseAllOf'; -import PermissionSets from './model/PermissionSets'; -import PermissionSetsAllOf from './model/PermissionSetsAllOf'; -import PermissionSetsItem from './model/PermissionSetsItem'; -import PersonCountAndEmailInfo from './model/PersonCountAndEmailInfo'; -import PersonCountEmailDealAndActivityInfo from './model/PersonCountEmailDealAndActivityInfo'; -import PersonCountInfo from './model/PersonCountInfo'; -import PersonData from './model/PersonData'; -import PersonDataEmail from './model/PersonDataEmail'; -import PersonDataPhone from './model/PersonDataPhone'; -import PersonDataWithActiveFlag from './model/PersonDataWithActiveFlag'; -import PersonDataWithActiveFlagAllOf from './model/PersonDataWithActiveFlagAllOf'; -import PersonFlowResponse from './model/PersonFlowResponse'; -import PersonFlowResponseAllOf from './model/PersonFlowResponseAllOf'; -import PersonFlowResponseAllOfData from './model/PersonFlowResponseAllOfData'; -import PersonItem from './model/PersonItem'; -import PersonListProduct from './model/PersonListProduct'; -import PersonNameCountAndEmailInfo from './model/PersonNameCountAndEmailInfo'; -import PersonNameCountAndEmailInfoWithIds from './model/PersonNameCountAndEmailInfoWithIds'; -import PersonNameCountAndEmailInfoWithIdsAllOf from './model/PersonNameCountAndEmailInfoWithIdsAllOf'; -import PersonNameInfo from './model/PersonNameInfo'; -import PersonNameInfoWithOrgAndOwnerId from './model/PersonNameInfoWithOrgAndOwnerId'; -import PersonSearchItem from './model/PersonSearchItem'; -import PersonSearchItemItem from './model/PersonSearchItemItem'; -import PersonSearchItemItemOrganization from './model/PersonSearchItemItemOrganization'; -import PersonSearchItemItemOwner from './model/PersonSearchItemItemOwner'; -import PersonSearchResponse from './model/PersonSearchResponse'; -import PersonSearchResponseAllOf from './model/PersonSearchResponseAllOf'; -import PersonSearchResponseAllOfData from './model/PersonSearchResponseAllOfData'; -import PersonsCollectionResponseObject from './model/PersonsCollectionResponseObject'; -import PictureData from './model/PictureData'; -import PictureDataPictures from './model/PictureDataPictures'; -import PictureDataWithID from './model/PictureDataWithID'; -import PictureDataWithIDAllOf from './model/PictureDataWithIDAllOf'; -import PictureDataWithValue from './model/PictureDataWithValue'; -import PictureDataWithValueAllOf from './model/PictureDataWithValueAllOf'; -import Pipeline from './model/Pipeline'; -import PipelineDetails from './model/PipelineDetails'; -import PipelineDetailsAllOf from './model/PipelineDetailsAllOf'; -import PostComment from './model/PostComment'; -import PostDealParticipants from './model/PostDealParticipants'; -import PostDealParticipantsRelatedObjects from './model/PostDealParticipantsRelatedObjects'; -import PostGoalResponse from './model/PostGoalResponse'; -import PostNote from './model/PostNote'; -import PostRoleAssignment from './model/PostRoleAssignment'; -import PostRoleAssignmentAllOf from './model/PostRoleAssignmentAllOf'; -import PostRoleAssignmentAllOfData from './model/PostRoleAssignmentAllOfData'; -import PostRoleSettings from './model/PostRoleSettings'; -import PostRoleSettingsAllOf from './model/PostRoleSettingsAllOf'; -import PostRoleSettingsAllOfData from './model/PostRoleSettingsAllOfData'; -import PostRoles from './model/PostRoles'; -import PostRolesAllOf from './model/PostRolesAllOf'; -import PostRolesAllOfData from './model/PostRolesAllOfData'; -import ProductAttachementFields from './model/ProductAttachementFields'; -import ProductAttachmentDetails from './model/ProductAttachmentDetails'; -import ProductBaseDeal from './model/ProductBaseDeal'; -import ProductField from './model/ProductField'; -import ProductFieldAllOf from './model/ProductFieldAllOf'; -import ProductFileItem from './model/ProductFileItem'; -import ProductListItem from './model/ProductListItem'; -import ProductRequest from './model/ProductRequest'; -import ProductResponse from './model/ProductResponse'; -import ProductSearchItem from './model/ProductSearchItem'; -import ProductSearchItemItem from './model/ProductSearchItemItem'; -import ProductSearchItemItemOwner from './model/ProductSearchItemItemOwner'; -import ProductSearchResponse from './model/ProductSearchResponse'; -import ProductSearchResponseAllOf from './model/ProductSearchResponseAllOf'; -import ProductSearchResponseAllOfData from './model/ProductSearchResponseAllOfData'; -import ProductWithArrayPrices from './model/ProductWithArrayPrices'; -import ProductsResponse from './model/ProductsResponse'; -import ProjectBoardObject from './model/ProjectBoardObject'; -import ProjectGroupsObject from './model/ProjectGroupsObject'; -import ProjectId from './model/ProjectId'; -import ProjectMandatoryObjectFragment from './model/ProjectMandatoryObjectFragment'; -import ProjectNotChangeableObjectFragment from './model/ProjectNotChangeableObjectFragment'; -import ProjectObjectFragment from './model/ProjectObjectFragment'; -import ProjectPhaseObject from './model/ProjectPhaseObject'; -import ProjectPlanItemObject from './model/ProjectPlanItemObject'; -import ProjectPostObject from './model/ProjectPostObject'; -import ProjectPostObjectAllOf from './model/ProjectPostObjectAllOf'; -import ProjectPutObject from './model/ProjectPutObject'; -import ProjectPutPlanItemBodyObject from './model/ProjectPutPlanItemBodyObject'; -import ProjectResponseObject from './model/ProjectResponseObject'; -import PutRole from './model/PutRole'; -import PutRoleAllOf from './model/PutRoleAllOf'; -import PutRoleAllOfData from './model/PutRoleAllOfData'; -import PutRolePipelinesBody from './model/PutRolePipelinesBody'; -import RecentDataProduct from './model/RecentDataProduct'; -import RecentsActivity from './model/RecentsActivity'; -import RecentsActivityType from './model/RecentsActivityType'; -import RecentsDeal from './model/RecentsDeal'; -import RecentsFile from './model/RecentsFile'; -import RecentsFilter from './model/RecentsFilter'; -import RecentsNote from './model/RecentsNote'; -import RecentsOrganization from './model/RecentsOrganization'; -import RecentsPerson from './model/RecentsPerson'; -import RecentsPipeline from './model/RecentsPipeline'; -import RecentsProduct from './model/RecentsProduct'; -import RecentsStage from './model/RecentsStage'; -import RecentsUser from './model/RecentsUser'; -import RelatedDealData from './model/RelatedDealData'; -import RelatedDealDataDEALID from './model/RelatedDealDataDEALID'; -import RelatedFollowerData from './model/RelatedFollowerData'; -import RelatedOrganizationData from './model/RelatedOrganizationData'; -import RelatedOrganizationDataWithActiveFlag from './model/RelatedOrganizationDataWithActiveFlag'; -import RelatedOrganizationName from './model/RelatedOrganizationName'; -import RelatedPersonData from './model/RelatedPersonData'; -import RelatedPersonDataWithActiveFlag from './model/RelatedPersonDataWithActiveFlag'; -import RelatedPictureData from './model/RelatedPictureData'; -import RelatedUserData from './model/RelatedUserData'; -import RelationshipOrganizationInfoItem from './model/RelationshipOrganizationInfoItem'; -import RelationshipOrganizationInfoItemAllOf from './model/RelationshipOrganizationInfoItemAllOf'; -import RelationshipOrganizationInfoItemWithActiveFlag from './model/RelationshipOrganizationInfoItemWithActiveFlag'; -import RequiredPostProjectParameters from './model/RequiredPostProjectParameters'; -import RequiredPostTaskParameters from './model/RequiredPostTaskParameters'; -import RequredTitleParameter from './model/RequredTitleParameter'; -import ResponseCallLogObject from './model/ResponseCallLogObject'; -import ResponseCallLogObjectAllOf from './model/ResponseCallLogObjectAllOf'; -import RoleAssignment from './model/RoleAssignment'; -import RoleAssignmentAllOf from './model/RoleAssignmentAllOf'; -import RoleSettings from './model/RoleSettings'; -import RolesAdditionalData from './model/RolesAdditionalData'; -import RolesAdditionalDataPagination from './model/RolesAdditionalDataPagination'; -import SinglePermissionSetsItem from './model/SinglePermissionSetsItem'; -import SinglePermissionSetsItemAllOf from './model/SinglePermissionSetsItemAllOf'; -import Stage from './model/Stage'; -import StageConversions from './model/StageConversions'; -import StageDetails from './model/StageDetails'; -import StageWithPipelineInfo from './model/StageWithPipelineInfo'; -import StageWithPipelineInfoAllOf from './model/StageWithPipelineInfoAllOf'; -import SubRole from './model/SubRole'; -import SubRoleAllOf from './model/SubRoleAllOf'; -import SubscriptionAddonsResponse from './model/SubscriptionAddonsResponse'; -import SubscriptionAddonsResponseAllOf from './model/SubscriptionAddonsResponseAllOf'; -import SubscriptionInstallmentCreateRequest from './model/SubscriptionInstallmentCreateRequest'; -import SubscriptionInstallmentUpdateRequest from './model/SubscriptionInstallmentUpdateRequest'; -import SubscriptionItem from './model/SubscriptionItem'; -import SubscriptionRecurringCancelRequest from './model/SubscriptionRecurringCancelRequest'; -import SubscriptionRecurringCreateRequest from './model/SubscriptionRecurringCreateRequest'; -import SubscriptionRecurringUpdateRequest from './model/SubscriptionRecurringUpdateRequest'; -import SubscriptionsIdResponse from './model/SubscriptionsIdResponse'; -import SubscriptionsIdResponseAllOf from './model/SubscriptionsIdResponseAllOf'; -import TaskId from './model/TaskId'; -import TaskMandatoryObjectFragment from './model/TaskMandatoryObjectFragment'; -import TaskNotChangeableObjectFragment from './model/TaskNotChangeableObjectFragment'; -import TaskObjectFragment from './model/TaskObjectFragment'; -import TaskPostObject from './model/TaskPostObject'; -import TaskPutObject from './model/TaskPutObject'; -import TaskResponseObject from './model/TaskResponseObject'; -import Team from './model/Team'; -import TeamAllOf from './model/TeamAllOf'; -import TeamId from './model/TeamId'; -import Teams from './model/Teams'; -import TeamsAllOf from './model/TeamsAllOf'; -import TemplateObject from './model/TemplateObject'; -import TemplateResponseObject from './model/TemplateResponseObject'; -import Unauthorized from './model/Unauthorized'; -import UpdateActivityPlanItemResponse from './model/UpdateActivityPlanItemResponse'; -import UpdateActivityResponse from './model/UpdateActivityResponse'; -import UpdateDealParameters from './model/UpdateDealParameters'; -import UpdateDealProduct from './model/UpdateDealProduct'; -import UpdateDealRequest from './model/UpdateDealRequest'; -import UpdateFile from './model/UpdateFile'; -import UpdateFilterRequest from './model/UpdateFilterRequest'; -import UpdateLeadLabelRequest from './model/UpdateLeadLabelRequest'; -import UpdateLeadRequest from './model/UpdateLeadRequest'; -import UpdateOrganization from './model/UpdateOrganization'; -import UpdateOrganizationAllOf from './model/UpdateOrganizationAllOf'; -import UpdatePerson from './model/UpdatePerson'; -import UpdatePersonAllOf from './model/UpdatePersonAllOf'; -import UpdatePersonResponse from './model/UpdatePersonResponse'; -import UpdateProductField from './model/UpdateProductField'; -import UpdateProductRequestBody from './model/UpdateProductRequestBody'; -import UpdateProductResponse from './model/UpdateProductResponse'; -import UpdateProjectResponse from './model/UpdateProjectResponse'; -import UpdateStageRequest from './model/UpdateStageRequest'; -import UpdateStageRequestAllOf from './model/UpdateStageRequestAllOf'; -import UpdateTaskPlanItemResponse from './model/UpdateTaskPlanItemResponse'; -import UpdateTaskResponse from './model/UpdateTaskResponse'; -import UpdateTeam from './model/UpdateTeam'; -import UpdateTeamAllOf from './model/UpdateTeamAllOf'; -import UpdateTeamWithAdditionalProperties from './model/UpdateTeamWithAdditionalProperties'; -import UpdateUserRequest from './model/UpdateUserRequest'; -import UpsertGoalResponse from './model/UpsertGoalResponse'; -import UpsertLeadLabelResponse from './model/UpsertLeadLabelResponse'; -import User from './model/User'; -import UserAccess from './model/UserAccess'; -import UserAllOf from './model/UserAllOf'; -import UserAssignmentToPermissionSet from './model/UserAssignmentToPermissionSet'; -import UserAssignmentsToPermissionSet from './model/UserAssignmentsToPermissionSet'; -import UserAssignmentsToPermissionSetAllOf from './model/UserAssignmentsToPermissionSetAllOf'; -import UserConnections from './model/UserConnections'; -import UserConnectionsAllOf from './model/UserConnectionsAllOf'; -import UserConnectionsAllOfData from './model/UserConnectionsAllOfData'; -import UserData from './model/UserData'; -import UserDataWithId from './model/UserDataWithId'; -import UserIDs from './model/UserIDs'; -import UserIDsAllOf from './model/UserIDsAllOf'; -import UserMe from './model/UserMe'; -import UserMeAllOf from './model/UserMeAllOf'; -import UserPermissions from './model/UserPermissions'; -import UserPermissionsAllOf from './model/UserPermissionsAllOf'; -import UserPermissionsItem from './model/UserPermissionsItem'; -import UserProviderLinkCreateRequest from './model/UserProviderLinkCreateRequest'; -import UserProviderLinkErrorResponse from './model/UserProviderLinkErrorResponse'; -import UserProviderLinkSuccessResponse from './model/UserProviderLinkSuccessResponse'; -import UserProviderLinkSuccessResponseData from './model/UserProviderLinkSuccessResponseData'; -import UserSettings from './model/UserSettings'; -import UserSettingsAllOf from './model/UserSettingsAllOf'; -import UserSettingsItem from './model/UserSettingsItem'; -import Users from './model/Users'; -import UsersAllOf from './model/UsersAllOf'; -import VisibleTo from './model/VisibleTo'; -import Webhook from './model/Webhook'; -import WebhookAllOf from './model/WebhookAllOf'; -import WebhookBadRequest from './model/WebhookBadRequest'; -import WebhookBadRequestAllOf from './model/WebhookBadRequestAllOf'; -import Webhooks from './model/Webhooks'; -import WebhooksAllOf from './model/WebhooksAllOf'; -import WebhooksDeleteForbiddenSchema from './model/WebhooksDeleteForbiddenSchema'; -import WebhooksDeleteForbiddenSchemaAllOf from './model/WebhooksDeleteForbiddenSchemaAllOf'; -import ActivitiesApi from './api/ActivitiesApi'; -import ActivityFieldsApi from './api/ActivityFieldsApi'; -import ActivityTypesApi from './api/ActivityTypesApi'; -import BillingApi from './api/BillingApi'; -import CallLogsApi from './api/CallLogsApi'; -import ChannelsApi from './api/ChannelsApi'; -import CurrenciesApi from './api/CurrenciesApi'; -import DealFieldsApi from './api/DealFieldsApi'; -import DealsApi from './api/DealsApi'; -import FilesApi from './api/FilesApi'; -import FiltersApi from './api/FiltersApi'; -import GoalsApi from './api/GoalsApi'; -import ItemSearchApi from './api/ItemSearchApi'; -import LeadLabelsApi from './api/LeadLabelsApi'; -import LeadSourcesApi from './api/LeadSourcesApi'; -import LeadsApi from './api/LeadsApi'; -import LegacyTeamsApi from './api/LegacyTeamsApi'; -import MailboxApi from './api/MailboxApi'; -import MeetingsApi from './api/MeetingsApi'; -import NoteFieldsApi from './api/NoteFieldsApi'; -import NotesApi from './api/NotesApi'; -import OrganizationFieldsApi from './api/OrganizationFieldsApi'; -import OrganizationRelationshipsApi from './api/OrganizationRelationshipsApi'; -import OrganizationsApi from './api/OrganizationsApi'; -import PermissionSetsApi from './api/PermissionSetsApi'; -import PersonFieldsApi from './api/PersonFieldsApi'; -import PersonsApi from './api/PersonsApi'; -import PipelinesApi from './api/PipelinesApi'; -import ProductFieldsApi from './api/ProductFieldsApi'; -import ProductsApi from './api/ProductsApi'; -import ProjectTemplatesApi from './api/ProjectTemplatesApi'; -import ProjectsApi from './api/ProjectsApi'; -import RecentsApi from './api/RecentsApi'; -import RolesApi from './api/RolesApi'; -import StagesApi from './api/StagesApi'; -import SubscriptionsApi from './api/SubscriptionsApi'; -import TasksApi from './api/TasksApi'; -import UserConnectionsApi from './api/UserConnectionsApi'; -import UserSettingsApi from './api/UserSettingsApi'; -import UsersApi from './api/UsersApi'; -import WebhooksApi from './api/WebhooksApi'; - - -/** -* JS API client generated by OpenAPI Generator.
-* The index module provides access to constructors for all the classes which comprise the public API. -*

-* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: -*

-* var Pipedrive = require('index'); // See note below*.
-* var xxxSvc = new Pipedrive.XxxApi(); // Allocate the API class we're going to use.
-* var yyyModel = new Pipedrive.Yyy(); // Construct a model instance.
-* yyyModel.someProperty = 'someValue';
-* ...
-* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-* ...
-* 
-* *NOTE: For a top-level AMD script, use require(['index'], function(){...}) -* and put the application logic within the callback function. -*

-*

-* A non-AMD browser application (discouraged) might do something like this: -*

-* var xxxSvc = new Pipedrive.XxxApi(); // Allocate the API class we're going to use.
-* var yyy = new Pipedrive.Yyy(); // Construct a model instance.
-* yyyModel.someProperty = 'someValue';
-* ...
-* var zzz = xxxSvc.doSomething(yyyModel); // Invoke the service.
-* ...
-* 
-*

-* @module index -* @version 1.0.0 -*/ -export { - /** - * The ApiClient constructor. - * @property {module:ApiClient} - */ - ApiClient, - - /** - * The ActivityCollectionResponseObject model constructor. - * @property {module:model/ActivityCollectionResponseObject} - */ - ActivityCollectionResponseObject, - - /** - * The ActivityCollectionResponseObjectAllOf model constructor. - * @property {module:model/ActivityCollectionResponseObjectAllOf} - */ - ActivityCollectionResponseObjectAllOf, - - /** - * The ActivityDistributionData model constructor. - * @property {module:model/ActivityDistributionData} - */ - ActivityDistributionData, - - /** - * The ActivityDistributionDataActivityDistribution model constructor. - * @property {module:model/ActivityDistributionDataActivityDistribution} - */ - ActivityDistributionDataActivityDistribution, - - /** - * The ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID model constructor. - * @property {module:model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID} - */ - ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID, - - /** - * The ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities model constructor. - * @property {module:model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities} - */ - ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities, - - /** - * The ActivityDistributionDataWithAdditionalData model constructor. - * @property {module:model/ActivityDistributionDataWithAdditionalData} - */ - ActivityDistributionDataWithAdditionalData, - - /** - * The ActivityInfo model constructor. - * @property {module:model/ActivityInfo} - */ - ActivityInfo, - - /** - * The ActivityObjectFragment model constructor. - * @property {module:model/ActivityObjectFragment} - */ - ActivityObjectFragment, - - /** - * The ActivityPostObject model constructor. - * @property {module:model/ActivityPostObject} - */ - ActivityPostObject, - - /** - * The ActivityPostObjectAllOf model constructor. - * @property {module:model/ActivityPostObjectAllOf} - */ - ActivityPostObjectAllOf, - - /** - * The ActivityPutObject model constructor. - * @property {module:model/ActivityPutObject} - */ - ActivityPutObject, - - /** - * The ActivityPutObjectAllOf model constructor. - * @property {module:model/ActivityPutObjectAllOf} - */ - ActivityPutObjectAllOf, - - /** - * The ActivityRecordAdditionalData model constructor. - * @property {module:model/ActivityRecordAdditionalData} - */ - ActivityRecordAdditionalData, - - /** - * The ActivityResponseObject model constructor. - * @property {module:model/ActivityResponseObject} - */ - ActivityResponseObject, - - /** - * The ActivityResponseObjectAllOf model constructor. - * @property {module:model/ActivityResponseObjectAllOf} - */ - ActivityResponseObjectAllOf, - - /** - * The ActivityTypeBulkDeleteResponse model constructor. - * @property {module:model/ActivityTypeBulkDeleteResponse} - */ - ActivityTypeBulkDeleteResponse, - - /** - * The ActivityTypeBulkDeleteResponseAllOf model constructor. - * @property {module:model/ActivityTypeBulkDeleteResponseAllOf} - */ - ActivityTypeBulkDeleteResponseAllOf, - - /** - * The ActivityTypeBulkDeleteResponseAllOfData model constructor. - * @property {module:model/ActivityTypeBulkDeleteResponseAllOfData} - */ - ActivityTypeBulkDeleteResponseAllOfData, - - /** - * The ActivityTypeCreateRequest model constructor. - * @property {module:model/ActivityTypeCreateRequest} - */ - ActivityTypeCreateRequest, - - /** - * The ActivityTypeCreateUpdateDeleteResponse model constructor. - * @property {module:model/ActivityTypeCreateUpdateDeleteResponse} - */ - ActivityTypeCreateUpdateDeleteResponse, - - /** - * The ActivityTypeCreateUpdateDeleteResponseAllOf model constructor. - * @property {module:model/ActivityTypeCreateUpdateDeleteResponseAllOf} - */ - ActivityTypeCreateUpdateDeleteResponseAllOf, - - /** - * The ActivityTypeListResponse model constructor. - * @property {module:model/ActivityTypeListResponse} - */ - ActivityTypeListResponse, - - /** - * The ActivityTypeListResponseAllOf model constructor. - * @property {module:model/ActivityTypeListResponseAllOf} - */ - ActivityTypeListResponseAllOf, - - /** - * The ActivityTypeObjectResponse model constructor. - * @property {module:model/ActivityTypeObjectResponse} - */ - ActivityTypeObjectResponse, - - /** - * The ActivityTypeUpdateRequest model constructor. - * @property {module:model/ActivityTypeUpdateRequest} - */ - ActivityTypeUpdateRequest, - - /** - * The AddActivityResponse model constructor. - * @property {module:model/AddActivityResponse} - */ - AddActivityResponse, - - /** - * The AddActivityResponseRelatedObjects model constructor. - * @property {module:model/AddActivityResponseRelatedObjects} - */ - AddActivityResponseRelatedObjects, - - /** - * The AddDealFollowerRequest model constructor. - * @property {module:model/AddDealFollowerRequest} - */ - AddDealFollowerRequest, - - /** - * The AddDealParticipantRequest model constructor. - * @property {module:model/AddDealParticipantRequest} - */ - AddDealParticipantRequest, - - /** - * The AddFile model constructor. - * @property {module:model/AddFile} - */ - AddFile, - - /** - * The AddFilterRequest model constructor. - * @property {module:model/AddFilterRequest} - */ - AddFilterRequest, - - /** - * The AddFollowerToPersonResponse model constructor. - * @property {module:model/AddFollowerToPersonResponse} - */ - AddFollowerToPersonResponse, - - /** - * The AddFollowerToPersonResponseAllOf model constructor. - * @property {module:model/AddFollowerToPersonResponseAllOf} - */ - AddFollowerToPersonResponseAllOf, - - /** - * The AddFollowerToPersonResponseAllOfData model constructor. - * @property {module:model/AddFollowerToPersonResponseAllOfData} - */ - AddFollowerToPersonResponseAllOfData, - - /** - * The AddLeadLabelRequest model constructor. - * @property {module:model/AddLeadLabelRequest} - */ - AddLeadLabelRequest, - - /** - * The AddLeadRequest model constructor. - * @property {module:model/AddLeadRequest} - */ - AddLeadRequest, - - /** - * The AddNewPipeline model constructor. - * @property {module:model/AddNewPipeline} - */ - AddNewPipeline, - - /** - * The AddNewPipelineAllOf model constructor. - * @property {module:model/AddNewPipelineAllOf} - */ - AddNewPipelineAllOf, - - /** - * The AddNoteRequest model constructor. - * @property {module:model/AddNoteRequest} - */ - AddNoteRequest, - - /** - * The AddNoteRequestAllOf model constructor. - * @property {module:model/AddNoteRequestAllOf} - */ - AddNoteRequestAllOf, - - /** - * The AddOrUpdateRoleSettingRequest model constructor. - * @property {module:model/AddOrUpdateRoleSettingRequest} - */ - AddOrUpdateRoleSettingRequest, - - /** - * The AddOrganizationFollowerRequest model constructor. - * @property {module:model/AddOrganizationFollowerRequest} - */ - AddOrganizationFollowerRequest, - - /** - * The AddOrganizationRelationshipRequest model constructor. - * @property {module:model/AddOrganizationRelationshipRequest} - */ - AddOrganizationRelationshipRequest, - - /** - * The AddPersonFollowerRequest model constructor. - * @property {module:model/AddPersonFollowerRequest} - */ - AddPersonFollowerRequest, - - /** - * The AddPersonPictureResponse model constructor. - * @property {module:model/AddPersonPictureResponse} - */ - AddPersonPictureResponse, - - /** - * The AddPersonPictureResponseAllOf model constructor. - * @property {module:model/AddPersonPictureResponseAllOf} - */ - AddPersonPictureResponseAllOf, - - /** - * The AddPersonResponse model constructor. - * @property {module:model/AddPersonResponse} - */ - AddPersonResponse, - - /** - * The AddPersonResponseAllOf model constructor. - * @property {module:model/AddPersonResponseAllOf} - */ - AddPersonResponseAllOf, - - /** - * The AddProductAttachmentDetails model constructor. - * @property {module:model/AddProductAttachmentDetails} - */ - AddProductAttachmentDetails, - - /** - * The AddProductAttachmentDetailsAllOf model constructor. - * @property {module:model/AddProductAttachmentDetailsAllOf} - */ - AddProductAttachmentDetailsAllOf, - - /** - * The AddProductFollowerRequest model constructor. - * @property {module:model/AddProductFollowerRequest} - */ - AddProductFollowerRequest, - - /** - * The AddProductRequestBody model constructor. - * @property {module:model/AddProductRequestBody} - */ - AddProductRequestBody, - - /** - * The AddProductRequestBodyAllOf model constructor. - * @property {module:model/AddProductRequestBodyAllOf} - */ - AddProductRequestBodyAllOf, - - /** - * The AddProjectResponse model constructor. - * @property {module:model/AddProjectResponse} - */ - AddProjectResponse, - - /** - * The AddRole model constructor. - * @property {module:model/AddRole} - */ - AddRole, - - /** - * The AddRoleAssignmentRequest model constructor. - * @property {module:model/AddRoleAssignmentRequest} - */ - AddRoleAssignmentRequest, - - /** - * The AddTaskResponse model constructor. - * @property {module:model/AddTaskResponse} - */ - AddTaskResponse, - - /** - * The AddTeamUserRequest model constructor. - * @property {module:model/AddTeamUserRequest} - */ - AddTeamUserRequest, - - /** - * The AddUserRequest model constructor. - * @property {module:model/AddUserRequest} - */ - AddUserRequest, - - /** - * The AddWebhookRequest model constructor. - * @property {module:model/AddWebhookRequest} - */ - AddWebhookRequest, - - /** - * The AddedDealFollower model constructor. - * @property {module:model/AddedDealFollower} - */ - AddedDealFollower, - - /** - * The AddedDealFollowerData model constructor. - * @property {module:model/AddedDealFollowerData} - */ - AddedDealFollowerData, - - /** - * The AdditionalBaseOrganizationItemInfo model constructor. - * @property {module:model/AdditionalBaseOrganizationItemInfo} - */ - AdditionalBaseOrganizationItemInfo, - - /** - * The AdditionalData model constructor. - * @property {module:model/AdditionalData} - */ - AdditionalData, - - /** - * The AdditionalDataWithCursorPagination model constructor. - * @property {module:model/AdditionalDataWithCursorPagination} - */ - AdditionalDataWithCursorPagination, - - /** - * The AdditionalDataWithOffsetPagination model constructor. - * @property {module:model/AdditionalDataWithOffsetPagination} - */ - AdditionalDataWithOffsetPagination, - - /** - * The AdditionalDataWithPaginationDetails model constructor. - * @property {module:model/AdditionalDataWithPaginationDetails} - */ - AdditionalDataWithPaginationDetails, - - /** - * The AdditionalMergePersonInfo model constructor. - * @property {module:model/AdditionalMergePersonInfo} - */ - AdditionalMergePersonInfo, - - /** - * The AdditionalPersonInfo model constructor. - * @property {module:model/AdditionalPersonInfo} - */ - AdditionalPersonInfo, - - /** - * The AllOrganizationRelationshipsGetResponse model constructor. - * @property {module:model/AllOrganizationRelationshipsGetResponse} - */ - AllOrganizationRelationshipsGetResponse, - - /** - * The AllOrganizationRelationshipsGetResponseAllOf model constructor. - * @property {module:model/AllOrganizationRelationshipsGetResponseAllOf} - */ - AllOrganizationRelationshipsGetResponseAllOf, - - /** - * The AllOrganizationRelationshipsGetResponseAllOfRelatedObjects model constructor. - * @property {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} - */ - AllOrganizationRelationshipsGetResponseAllOfRelatedObjects, - - /** - * The AllOrganizationsGetResponse model constructor. - * @property {module:model/AllOrganizationsGetResponse} - */ - AllOrganizationsGetResponse, - - /** - * The AllOrganizationsGetResponseAllOf model constructor. - * @property {module:model/AllOrganizationsGetResponseAllOf} - */ - AllOrganizationsGetResponseAllOf, - - /** - * The AllOrganizationsGetResponseAllOfRelatedObjects model constructor. - * @property {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} - */ - AllOrganizationsGetResponseAllOfRelatedObjects, - - /** - * The ArrayPrices model constructor. - * @property {module:model/ArrayPrices} - */ - ArrayPrices, - - /** - * The Assignee model constructor. - * @property {module:model/Assignee} - */ - Assignee, - - /** - * The BaseComment model constructor. - * @property {module:model/BaseComment} - */ - BaseComment, - - /** - * The BaseCurrency model constructor. - * @property {module:model/BaseCurrency} - */ - BaseCurrency, - - /** - * The BaseDeal model constructor. - * @property {module:model/BaseDeal} - */ - BaseDeal, - - /** - * The BaseFollowerItem model constructor. - * @property {module:model/BaseFollowerItem} - */ - BaseFollowerItem, - - /** - * The BaseMailThread model constructor. - * @property {module:model/BaseMailThread} - */ - BaseMailThread, - - /** - * The BaseMailThreadAllOf model constructor. - * @property {module:model/BaseMailThreadAllOf} - */ - BaseMailThreadAllOf, - - /** - * The BaseMailThreadAllOfParties model constructor. - * @property {module:model/BaseMailThreadAllOfParties} - */ - BaseMailThreadAllOfParties, - - /** - * The BaseMailThreadMessages model constructor. - * @property {module:model/BaseMailThreadMessages} - */ - BaseMailThreadMessages, - - /** - * The BaseMailThreadMessagesAllOf model constructor. - * @property {module:model/BaseMailThreadMessagesAllOf} - */ - BaseMailThreadMessagesAllOf, - - /** - * The BaseNote model constructor. - * @property {module:model/BaseNote} - */ - BaseNote, - - /** - * The BaseNoteDealTitle model constructor. - * @property {module:model/BaseNoteDealTitle} - */ - BaseNoteDealTitle, - - /** - * The BaseNoteOrganization model constructor. - * @property {module:model/BaseNoteOrganization} - */ - BaseNoteOrganization, - - /** - * The BaseNotePerson model constructor. - * @property {module:model/BaseNotePerson} - */ - BaseNotePerson, - - /** - * The BaseOrganizationItem model constructor. - * @property {module:model/BaseOrganizationItem} - */ - BaseOrganizationItem, - - /** - * The BaseOrganizationItemFields model constructor. - * @property {module:model/BaseOrganizationItemFields} - */ - BaseOrganizationItemFields, - - /** - * The BaseOrganizationItemWithEditNameFlag model constructor. - * @property {module:model/BaseOrganizationItemWithEditNameFlag} - */ - BaseOrganizationItemWithEditNameFlag, - - /** - * The BaseOrganizationItemWithEditNameFlagAllOf model constructor. - * @property {module:model/BaseOrganizationItemWithEditNameFlagAllOf} - */ - BaseOrganizationItemWithEditNameFlagAllOf, - - /** - * The BaseOrganizationRelationshipItem model constructor. - * @property {module:model/BaseOrganizationRelationshipItem} - */ - BaseOrganizationRelationshipItem, - - /** - * The BasePersonItem model constructor. - * @property {module:model/BasePersonItem} - */ - BasePersonItem, - - /** - * The BasePersonItemEmail model constructor. - * @property {module:model/BasePersonItemEmail} - */ - BasePersonItemEmail, - - /** - * The BasePersonItemPhone model constructor. - * @property {module:model/BasePersonItemPhone} - */ - BasePersonItemPhone, - - /** - * The BasePipeline model constructor. - * @property {module:model/BasePipeline} - */ - BasePipeline, - - /** - * The BasePipelineWithSelectedFlag model constructor. - * @property {module:model/BasePipelineWithSelectedFlag} - */ - BasePipelineWithSelectedFlag, - - /** - * The BasePipelineWithSelectedFlagAllOf model constructor. - * @property {module:model/BasePipelineWithSelectedFlagAllOf} - */ - BasePipelineWithSelectedFlagAllOf, - - /** - * The BaseProduct model constructor. - * @property {module:model/BaseProduct} - */ - BaseProduct, - - /** - * The BaseResponse model constructor. - * @property {module:model/BaseResponse} - */ - BaseResponse, - - /** - * The BaseResponseWithStatus model constructor. - * @property {module:model/BaseResponseWithStatus} - */ - BaseResponseWithStatus, - - /** - * The BaseResponseWithStatusAllOf model constructor. - * @property {module:model/BaseResponseWithStatusAllOf} - */ - BaseResponseWithStatusAllOf, - - /** - * The BaseRole model constructor. - * @property {module:model/BaseRole} - */ - BaseRole, - - /** - * The BaseStage model constructor. - * @property {module:model/BaseStage} - */ - BaseStage, - - /** - * The BaseTeam model constructor. - * @property {module:model/BaseTeam} - */ - BaseTeam, - - /** - * The BaseTeamAdditionalProperties model constructor. - * @property {module:model/BaseTeamAdditionalProperties} - */ - BaseTeamAdditionalProperties, - - /** - * The BaseUser model constructor. - * @property {module:model/BaseUser} - */ - BaseUser, - - /** - * The BaseUserMe model constructor. - * @property {module:model/BaseUserMe} - */ - BaseUserMe, - - /** - * The BaseUserMeAllOf model constructor. - * @property {module:model/BaseUserMeAllOf} - */ - BaseUserMeAllOf, - - /** - * The BaseUserMeAllOfLanguage model constructor. - * @property {module:model/BaseUserMeAllOfLanguage} - */ - BaseUserMeAllOfLanguage, - - /** - * The BaseWebhook model constructor. - * @property {module:model/BaseWebhook} - */ - BaseWebhook, - - /** - * The BasicDeal model constructor. - * @property {module:model/BasicDeal} - */ - BasicDeal, - - /** - * The BasicDealProduct model constructor. - * @property {module:model/BasicDealProduct} - */ - BasicDealProduct, - - /** - * The BasicDealProductAllOf model constructor. - * @property {module:model/BasicDealProductAllOf} - */ - BasicDealProductAllOf, - - /** - * The BasicGoal model constructor. - * @property {module:model/BasicGoal} - */ - BasicGoal, - - /** - * The BasicOrganization model constructor. - * @property {module:model/BasicOrganization} - */ - BasicOrganization, - - /** - * The BasicPerson model constructor. - * @property {module:model/BasicPerson} - */ - BasicPerson, - - /** - * The BasicPersonEmail model constructor. - * @property {module:model/BasicPersonEmail} - */ - BasicPersonEmail, - - /** - * The BillingFrequency model constructor. - * @property {module:model/BillingFrequency} - */ - BillingFrequency, - - /** - * The BillingFrequency1 model constructor. - * @property {module:model/BillingFrequency1} - */ - BillingFrequency1, - - /** - * The BulkDeleteResponse model constructor. - * @property {module:model/BulkDeleteResponse} - */ - BulkDeleteResponse, - - /** - * The BulkDeleteResponseAllOf model constructor. - * @property {module:model/BulkDeleteResponseAllOf} - */ - BulkDeleteResponseAllOf, - - /** - * The BulkDeleteResponseAllOfData model constructor. - * @property {module:model/BulkDeleteResponseAllOfData} - */ - BulkDeleteResponseAllOfData, - - /** - * The CalculatedFields model constructor. - * @property {module:model/CalculatedFields} - */ - CalculatedFields, - - /** - * The CallLogBadRequestResponse model constructor. - * @property {module:model/CallLogBadRequestResponse} - */ - CallLogBadRequestResponse, - - /** - * The CallLogConflictResponse model constructor. - * @property {module:model/CallLogConflictResponse} - */ - CallLogConflictResponse, - - /** - * The CallLogForbiddenResponse model constructor. - * @property {module:model/CallLogForbiddenResponse} - */ - CallLogForbiddenResponse, - - /** - * The CallLogGoneResponse model constructor. - * @property {module:model/CallLogGoneResponse} - */ - CallLogGoneResponse, - - /** - * The CallLogInternalErrorResponse model constructor. - * @property {module:model/CallLogInternalErrorResponse} - */ - CallLogInternalErrorResponse, - - /** - * The CallLogNotFoundResponse model constructor. - * @property {module:model/CallLogNotFoundResponse} - */ - CallLogNotFoundResponse, - - /** - * The CallLogObject model constructor. - * @property {module:model/CallLogObject} - */ - CallLogObject, - - /** - * The CallLogResponse200 model constructor. - * @property {module:model/CallLogResponse200} - */ - CallLogResponse200, - - /** - * The CallLogsResponse model constructor. - * @property {module:model/CallLogsResponse} - */ - CallLogsResponse, - - /** - * The CallLogsResponseAdditionalData model constructor. - * @property {module:model/CallLogsResponseAdditionalData} - */ - CallLogsResponseAdditionalData, - - /** - * The ChangelogResponse model constructor. - * @property {module:model/ChangelogResponse} - */ - ChangelogResponse, - - /** - * The ChangelogResponseAllOf model constructor. - * @property {module:model/ChangelogResponseAllOf} - */ - ChangelogResponseAllOf, - - /** - * The ChangelogResponseAllOfData model constructor. - * @property {module:model/ChangelogResponseAllOfData} - */ - ChangelogResponseAllOfData, - - /** - * The ChannelObject model constructor. - * @property {module:model/ChannelObject} - */ - ChannelObject, - - /** - * The ChannelObjectResponse model constructor. - * @property {module:model/ChannelObjectResponse} - */ - ChannelObjectResponse, - - /** - * The ChannelObjectResponseData model constructor. - * @property {module:model/ChannelObjectResponseData} - */ - ChannelObjectResponseData, - - /** - * The CommentPostPutObject model constructor. - * @property {module:model/CommentPostPutObject} - */ - CommentPostPutObject, - - /** - * The CommonMailThread model constructor. - * @property {module:model/CommonMailThread} - */ - CommonMailThread, - - /** - * The CreateRemoteFileAndLinkItToItem model constructor. - * @property {module:model/CreateRemoteFileAndLinkItToItem} - */ - CreateRemoteFileAndLinkItToItem, - - /** - * The CreateTeam model constructor. - * @property {module:model/CreateTeam} - */ - CreateTeam, - - /** - * The Currencies model constructor. - * @property {module:model/Currencies} - */ - Currencies, - - /** - * The DealCollectionResponseObject model constructor. - * @property {module:model/DealCollectionResponseObject} - */ - DealCollectionResponseObject, - - /** - * The DealCountAndActivityInfo model constructor. - * @property {module:model/DealCountAndActivityInfo} - */ - DealCountAndActivityInfo, - - /** - * The DealFlowResponse model constructor. - * @property {module:model/DealFlowResponse} - */ - DealFlowResponse, - - /** - * The DealFlowResponseAllOf model constructor. - * @property {module:model/DealFlowResponseAllOf} - */ - DealFlowResponseAllOf, - - /** - * The DealFlowResponseAllOfData model constructor. - * @property {module:model/DealFlowResponseAllOfData} - */ - DealFlowResponseAllOfData, - - /** - * The DealFlowResponseAllOfRelatedObjects model constructor. - * @property {module:model/DealFlowResponseAllOfRelatedObjects} - */ - DealFlowResponseAllOfRelatedObjects, - - /** - * The DealListActivitiesResponse model constructor. - * @property {module:model/DealListActivitiesResponse} - */ - DealListActivitiesResponse, - - /** - * The DealListActivitiesResponseAllOf model constructor. - * @property {module:model/DealListActivitiesResponseAllOf} - */ - DealListActivitiesResponseAllOf, - - /** - * The DealListActivitiesResponseAllOfRelatedObjects model constructor. - * @property {module:model/DealListActivitiesResponseAllOfRelatedObjects} - */ - DealListActivitiesResponseAllOfRelatedObjects, - - /** - * The DealNonStrict model constructor. - * @property {module:model/DealNonStrict} - */ - DealNonStrict, - - /** - * The DealNonStrictModeFields model constructor. - * @property {module:model/DealNonStrictModeFields} - */ - DealNonStrictModeFields, - - /** - * The DealNonStrictModeFieldsCreatorUserId model constructor. - * @property {module:model/DealNonStrictModeFieldsCreatorUserId} - */ - DealNonStrictModeFieldsCreatorUserId, - - /** - * The DealNonStrictWithDetails model constructor. - * @property {module:model/DealNonStrictWithDetails} - */ - DealNonStrictWithDetails, - - /** - * The DealNonStrictWithDetailsAllOf model constructor. - * @property {module:model/DealNonStrictWithDetailsAllOf} - */ - DealNonStrictWithDetailsAllOf, - - /** - * The DealNonStrictWithDetailsAllOfAge model constructor. - * @property {module:model/DealNonStrictWithDetailsAllOfAge} - */ - DealNonStrictWithDetailsAllOfAge, - - /** - * The DealNonStrictWithDetailsAllOfAverageTimeToWon model constructor. - * @property {module:model/DealNonStrictWithDetailsAllOfAverageTimeToWon} - */ - DealNonStrictWithDetailsAllOfAverageTimeToWon, - - /** - * The DealNonStrictWithDetailsAllOfStayInPipelineStages model constructor. - * @property {module:model/DealNonStrictWithDetailsAllOfStayInPipelineStages} - */ - DealNonStrictWithDetailsAllOfStayInPipelineStages, - - /** - * The DealOrganizationData model constructor. - * @property {module:model/DealOrganizationData} - */ - DealOrganizationData, - - /** - * The DealOrganizationDataWithId model constructor. - * @property {module:model/DealOrganizationDataWithId} - */ - DealOrganizationDataWithId, - - /** - * The DealOrganizationDataWithIdAllOf model constructor. - * @property {module:model/DealOrganizationDataWithIdAllOf} - */ - DealOrganizationDataWithIdAllOf, - - /** - * The DealParticipantCountInfo model constructor. - * @property {module:model/DealParticipantCountInfo} - */ - DealParticipantCountInfo, - - /** - * The DealParticipants model constructor. - * @property {module:model/DealParticipants} - */ - DealParticipants, - - /** - * The DealParticipantsChangelog model constructor. - * @property {module:model/DealParticipantsChangelog} - */ - DealParticipantsChangelog, - - /** - * The DealPersonData model constructor. - * @property {module:model/DealPersonData} - */ - DealPersonData, - - /** - * The DealPersonDataEmail model constructor. - * @property {module:model/DealPersonDataEmail} - */ - DealPersonDataEmail, - - /** - * The DealPersonDataPhone model constructor. - * @property {module:model/DealPersonDataPhone} - */ - DealPersonDataPhone, - - /** - * The DealPersonDataWithId model constructor. - * @property {module:model/DealPersonDataWithId} - */ - DealPersonDataWithId, - - /** - * The DealPersonDataWithIdAllOf model constructor. - * @property {module:model/DealPersonDataWithIdAllOf} - */ - DealPersonDataWithIdAllOf, - - /** - * The DealProductRequestBody model constructor. - * @property {module:model/DealProductRequestBody} - */ - DealProductRequestBody, - - /** - * The DealSearchItem model constructor. - * @property {module:model/DealSearchItem} - */ - DealSearchItem, - - /** - * The DealSearchItemItem model constructor. - * @property {module:model/DealSearchItemItem} - */ - DealSearchItemItem, - - /** - * The DealSearchItemItemOrganization model constructor. - * @property {module:model/DealSearchItemItemOrganization} - */ - DealSearchItemItemOrganization, - - /** - * The DealSearchItemItemOwner model constructor. - * @property {module:model/DealSearchItemItemOwner} - */ - DealSearchItemItemOwner, - - /** - * The DealSearchItemItemPerson model constructor. - * @property {module:model/DealSearchItemItemPerson} - */ - DealSearchItemItemPerson, - - /** - * The DealSearchItemItemStage model constructor. - * @property {module:model/DealSearchItemItemStage} - */ - DealSearchItemItemStage, - - /** - * The DealSearchResponse model constructor. - * @property {module:model/DealSearchResponse} - */ - DealSearchResponse, - - /** - * The DealSearchResponseAllOf model constructor. - * @property {module:model/DealSearchResponseAllOf} - */ - DealSearchResponseAllOf, - - /** - * The DealSearchResponseAllOfData model constructor. - * @property {module:model/DealSearchResponseAllOfData} - */ - DealSearchResponseAllOfData, - - /** - * The DealStrict model constructor. - * @property {module:model/DealStrict} - */ - DealStrict, - - /** - * The DealStrictModeFields model constructor. - * @property {module:model/DealStrictModeFields} - */ - DealStrictModeFields, - - /** - * The DealStrictWithMergeId model constructor. - * @property {module:model/DealStrictWithMergeId} - */ - DealStrictWithMergeId, - - /** - * The DealStrictWithMergeIdAllOf model constructor. - * @property {module:model/DealStrictWithMergeIdAllOf} - */ - DealStrictWithMergeIdAllOf, - - /** - * The DealSummary model constructor. - * @property {module:model/DealSummary} - */ - DealSummary, - - /** - * The DealSummaryPerCurrency model constructor. - * @property {module:model/DealSummaryPerCurrency} - */ - DealSummaryPerCurrency, - - /** - * The DealSummaryPerCurrencyFull model constructor. - * @property {module:model/DealSummaryPerCurrencyFull} - */ - DealSummaryPerCurrencyFull, - - /** - * The DealSummaryPerCurrencyFullCURRENCYID model constructor. - * @property {module:model/DealSummaryPerCurrencyFullCURRENCYID} - */ - DealSummaryPerCurrencyFullCURRENCYID, - - /** - * The DealSummaryPerStages model constructor. - * @property {module:model/DealSummaryPerStages} - */ - DealSummaryPerStages, - - /** - * The DealSummaryPerStagesSTAGEID model constructor. - * @property {module:model/DealSummaryPerStagesSTAGEID} - */ - DealSummaryPerStagesSTAGEID, - - /** - * The DealSummaryPerStagesSTAGEIDCURRENCYID model constructor. - * @property {module:model/DealSummaryPerStagesSTAGEIDCURRENCYID} - */ - DealSummaryPerStagesSTAGEIDCURRENCYID, - - /** - * The DealTitleParameter model constructor. - * @property {module:model/DealTitleParameter} - */ - DealTitleParameter, - - /** - * The DealUserData model constructor. - * @property {module:model/DealUserData} - */ - DealUserData, - - /** - * The DealUserDataWithId model constructor. - * @property {module:model/DealUserDataWithId} - */ - DealUserDataWithId, - - /** - * The DealUserDataWithIdAllOf model constructor. - * @property {module:model/DealUserDataWithIdAllOf} - */ - DealUserDataWithIdAllOf, - - /** - * The DealsCountAndActivityInfo model constructor. - * @property {module:model/DealsCountAndActivityInfo} - */ - DealsCountAndActivityInfo, - - /** - * The DealsCountInfo model constructor. - * @property {module:model/DealsCountInfo} - */ - DealsCountInfo, - - /** - * The DealsMovementsInfo model constructor. - * @property {module:model/DealsMovementsInfo} - */ - DealsMovementsInfo, - - /** - * The DealsMovementsInfoFormattedValues model constructor. - * @property {module:model/DealsMovementsInfoFormattedValues} - */ - DealsMovementsInfoFormattedValues, - - /** - * The DealsMovementsInfoValues model constructor. - * @property {module:model/DealsMovementsInfoValues} - */ - DealsMovementsInfoValues, - - /** - * The DeleteActivitiesResponse model constructor. - * @property {module:model/DeleteActivitiesResponse} - */ - DeleteActivitiesResponse, - - /** - * The DeleteActivitiesResponseData model constructor. - * @property {module:model/DeleteActivitiesResponseData} - */ - DeleteActivitiesResponseData, - - /** - * The DeleteActivityResponse model constructor. - * @property {module:model/DeleteActivityResponse} - */ - DeleteActivityResponse, - - /** - * The DeleteActivityResponseData model constructor. - * @property {module:model/DeleteActivityResponseData} - */ - DeleteActivityResponseData, - - /** - * The DeleteChannelSuccess model constructor. - * @property {module:model/DeleteChannelSuccess} - */ - DeleteChannelSuccess, - - /** - * The DeleteComment model constructor. - * @property {module:model/DeleteComment} - */ - DeleteComment, - - /** - * The DeleteConversationSuccess model constructor. - * @property {module:model/DeleteConversationSuccess} - */ - DeleteConversationSuccess, - - /** - * The DeleteDeal model constructor. - * @property {module:model/DeleteDeal} - */ - DeleteDeal, - - /** - * The DeleteDealData model constructor. - * @property {module:model/DeleteDealData} - */ - DeleteDealData, - - /** - * The DeleteDealFollower model constructor. - * @property {module:model/DeleteDealFollower} - */ - DeleteDealFollower, - - /** - * The DeleteDealFollowerData model constructor. - * @property {module:model/DeleteDealFollowerData} - */ - DeleteDealFollowerData, - - /** - * The DeleteDealParticipant model constructor. - * @property {module:model/DeleteDealParticipant} - */ - DeleteDealParticipant, - - /** - * The DeleteDealParticipantData model constructor. - * @property {module:model/DeleteDealParticipantData} - */ - DeleteDealParticipantData, - - /** - * The DeleteDealProduct model constructor. - * @property {module:model/DeleteDealProduct} - */ - DeleteDealProduct, - - /** - * The DeleteDealProductData model constructor. - * @property {module:model/DeleteDealProductData} - */ - DeleteDealProductData, - - /** - * The DeleteFile model constructor. - * @property {module:model/DeleteFile} - */ - DeleteFile, - - /** - * The DeleteFileData model constructor. - * @property {module:model/DeleteFileData} - */ - DeleteFileData, - - /** - * The DeleteGoalResponse model constructor. - * @property {module:model/DeleteGoalResponse} - */ - DeleteGoalResponse, - - /** - * The DeleteLeadIdResponse model constructor. - * @property {module:model/DeleteLeadIdResponse} - */ - DeleteLeadIdResponse, - - /** - * The DeleteMultipleDeals model constructor. - * @property {module:model/DeleteMultipleDeals} - */ - DeleteMultipleDeals, - - /** - * The DeleteMultipleDealsData model constructor. - * @property {module:model/DeleteMultipleDealsData} - */ - DeleteMultipleDealsData, - - /** - * The DeleteMultipleProductFieldsResponse model constructor. - * @property {module:model/DeleteMultipleProductFieldsResponse} - */ - DeleteMultipleProductFieldsResponse, - - /** - * The DeleteMultipleProductFieldsResponseData model constructor. - * @property {module:model/DeleteMultipleProductFieldsResponseData} - */ - DeleteMultipleProductFieldsResponseData, - - /** - * The DeleteNote model constructor. - * @property {module:model/DeleteNote} - */ - DeleteNote, - - /** - * The DeletePersonResponse model constructor. - * @property {module:model/DeletePersonResponse} - */ - DeletePersonResponse, - - /** - * The DeletePersonResponseAllOf model constructor. - * @property {module:model/DeletePersonResponseAllOf} - */ - DeletePersonResponseAllOf, - - /** - * The DeletePersonResponseAllOfData model constructor. - * @property {module:model/DeletePersonResponseAllOfData} - */ - DeletePersonResponseAllOfData, - - /** - * The DeletePersonsInBulkResponse model constructor. - * @property {module:model/DeletePersonsInBulkResponse} - */ - DeletePersonsInBulkResponse, - - /** - * The DeletePersonsInBulkResponseAllOf model constructor. - * @property {module:model/DeletePersonsInBulkResponseAllOf} - */ - DeletePersonsInBulkResponseAllOf, - - /** - * The DeletePersonsInBulkResponseAllOfData model constructor. - * @property {module:model/DeletePersonsInBulkResponseAllOfData} - */ - DeletePersonsInBulkResponseAllOfData, - - /** - * The DeletePipelineResponse model constructor. - * @property {module:model/DeletePipelineResponse} - */ - DeletePipelineResponse, - - /** - * The DeletePipelineResponseData model constructor. - * @property {module:model/DeletePipelineResponseData} - */ - DeletePipelineResponseData, - - /** - * The DeleteProductFieldResponse model constructor. - * @property {module:model/DeleteProductFieldResponse} - */ - DeleteProductFieldResponse, - - /** - * The DeleteProductFieldResponseData model constructor. - * @property {module:model/DeleteProductFieldResponseData} - */ - DeleteProductFieldResponseData, - - /** - * The DeleteProductFollowerResponse model constructor. - * @property {module:model/DeleteProductFollowerResponse} - */ - DeleteProductFollowerResponse, - - /** - * The DeleteProductFollowerResponseData model constructor. - * @property {module:model/DeleteProductFollowerResponseData} - */ - DeleteProductFollowerResponseData, - - /** - * The DeleteProductResponse model constructor. - * @property {module:model/DeleteProductResponse} - */ - DeleteProductResponse, - - /** - * The DeleteProductResponseData model constructor. - * @property {module:model/DeleteProductResponseData} - */ - DeleteProductResponseData, - - /** - * The DeleteProject model constructor. - * @property {module:model/DeleteProject} - */ - DeleteProject, - - /** - * The DeleteProjectData model constructor. - * @property {module:model/DeleteProjectData} - */ - DeleteProjectData, - - /** - * The DeleteProjectResponse model constructor. - * @property {module:model/DeleteProjectResponse} - */ - DeleteProjectResponse, - - /** - * The DeleteResponse model constructor. - * @property {module:model/DeleteResponse} - */ - DeleteResponse, - - /** - * The DeleteResponseAllOf model constructor. - * @property {module:model/DeleteResponseAllOf} - */ - DeleteResponseAllOf, - - /** - * The DeleteResponseAllOfData model constructor. - * @property {module:model/DeleteResponseAllOfData} - */ - DeleteResponseAllOfData, - - /** - * The DeleteRole model constructor. - * @property {module:model/DeleteRole} - */ - DeleteRole, - - /** - * The DeleteRoleAllOf model constructor. - * @property {module:model/DeleteRoleAllOf} - */ - DeleteRoleAllOf, - - /** - * The DeleteRoleAllOfData model constructor. - * @property {module:model/DeleteRoleAllOfData} - */ - DeleteRoleAllOfData, - - /** - * The DeleteRoleAssignment model constructor. - * @property {module:model/DeleteRoleAssignment} - */ - DeleteRoleAssignment, - - /** - * The DeleteRoleAssignmentAllOf model constructor. - * @property {module:model/DeleteRoleAssignmentAllOf} - */ - DeleteRoleAssignmentAllOf, - - /** - * The DeleteRoleAssignmentAllOfData model constructor. - * @property {module:model/DeleteRoleAssignmentAllOfData} - */ - DeleteRoleAssignmentAllOfData, - - /** - * The DeleteRoleAssignmentRequest model constructor. - * @property {module:model/DeleteRoleAssignmentRequest} - */ - DeleteRoleAssignmentRequest, - - /** - * The DeleteStageResponse model constructor. - * @property {module:model/DeleteStageResponse} - */ - DeleteStageResponse, - - /** - * The DeleteStageResponseData model constructor. - * @property {module:model/DeleteStageResponseData} - */ - DeleteStageResponseData, - - /** - * The DeleteStagesResponse model constructor. - * @property {module:model/DeleteStagesResponse} - */ - DeleteStagesResponse, - - /** - * The DeleteStagesResponseData model constructor. - * @property {module:model/DeleteStagesResponseData} - */ - DeleteStagesResponseData, - - /** - * The DeleteTask model constructor. - * @property {module:model/DeleteTask} - */ - DeleteTask, - - /** - * The DeleteTaskData model constructor. - * @property {module:model/DeleteTaskData} - */ - DeleteTaskData, - - /** - * The DeleteTaskResponse model constructor. - * @property {module:model/DeleteTaskResponse} - */ - DeleteTaskResponse, - - /** - * The DeleteTeamUserRequest model constructor. - * @property {module:model/DeleteTeamUserRequest} - */ - DeleteTeamUserRequest, - - /** - * The Duration model constructor. - * @property {module:model/Duration} - */ - Duration, - - /** - * The EditPipeline model constructor. - * @property {module:model/EditPipeline} - */ - EditPipeline, - - /** - * The EditPipelineAllOf model constructor. - * @property {module:model/EditPipelineAllOf} - */ - EditPipelineAllOf, - - /** - * The EmailInfo model constructor. - * @property {module:model/EmailInfo} - */ - EmailInfo, - - /** - * The ExpectedOutcome model constructor. - * @property {module:model/ExpectedOutcome} - */ - ExpectedOutcome, - - /** - * The FailResponse model constructor. - * @property {module:model/FailResponse} - */ - FailResponse, - - /** - * The Field model constructor. - * @property {module:model/Field} - */ - Field, - - /** - * The FieldCreateRequest model constructor. - * @property {module:model/FieldCreateRequest} - */ - FieldCreateRequest, - - /** - * The FieldCreateRequestAllOf model constructor. - * @property {module:model/FieldCreateRequestAllOf} - */ - FieldCreateRequestAllOf, - - /** - * The FieldResponse model constructor. - * @property {module:model/FieldResponse} - */ - FieldResponse, - - /** - * The FieldResponseAllOf model constructor. - * @property {module:model/FieldResponseAllOf} - */ - FieldResponseAllOf, - - /** - * The FieldType model constructor. - * @property {module:model/FieldType} - */ - FieldType, - - /** - * The FieldTypeAsString model constructor. - * @property {module:model/FieldTypeAsString} - */ - FieldTypeAsString, - - /** - * The FieldUpdateRequest model constructor. - * @property {module:model/FieldUpdateRequest} - */ - FieldUpdateRequest, - - /** - * The FieldsResponse model constructor. - * @property {module:model/FieldsResponse} - */ - FieldsResponse, - - /** - * The FieldsResponseAllOf model constructor. - * @property {module:model/FieldsResponseAllOf} - */ - FieldsResponseAllOf, - - /** - * The FileData model constructor. - * @property {module:model/FileData} - */ - FileData, - - /** - * The FileItem model constructor. - * @property {module:model/FileItem} - */ - FileItem, - - /** - * The FilterGetItem model constructor. - * @property {module:model/FilterGetItem} - */ - FilterGetItem, - - /** - * The FilterType model constructor. - * @property {module:model/FilterType} - */ - FilterType, - - /** - * The FiltersBulkDeleteResponse model constructor. - * @property {module:model/FiltersBulkDeleteResponse} - */ - FiltersBulkDeleteResponse, - - /** - * The FiltersBulkDeleteResponseAllOf model constructor. - * @property {module:model/FiltersBulkDeleteResponseAllOf} - */ - FiltersBulkDeleteResponseAllOf, - - /** - * The FiltersBulkDeleteResponseAllOfData model constructor. - * @property {module:model/FiltersBulkDeleteResponseAllOfData} - */ - FiltersBulkDeleteResponseAllOfData, - - /** - * The FiltersBulkGetResponse model constructor. - * @property {module:model/FiltersBulkGetResponse} - */ - FiltersBulkGetResponse, - - /** - * The FiltersBulkGetResponseAllOf model constructor. - * @property {module:model/FiltersBulkGetResponseAllOf} - */ - FiltersBulkGetResponseAllOf, - - /** - * The FiltersDeleteResponse model constructor. - * @property {module:model/FiltersDeleteResponse} - */ - FiltersDeleteResponse, - - /** - * The FiltersDeleteResponseAllOf model constructor. - * @property {module:model/FiltersDeleteResponseAllOf} - */ - FiltersDeleteResponseAllOf, - - /** - * The FiltersDeleteResponseAllOfData model constructor. - * @property {module:model/FiltersDeleteResponseAllOfData} - */ - FiltersDeleteResponseAllOfData, - - /** - * The FiltersGetResponse model constructor. - * @property {module:model/FiltersGetResponse} - */ - FiltersGetResponse, - - /** - * The FiltersGetResponseAllOf model constructor. - * @property {module:model/FiltersGetResponseAllOf} - */ - FiltersGetResponseAllOf, - - /** - * The FiltersPostResponse model constructor. - * @property {module:model/FiltersPostResponse} - */ - FiltersPostResponse, - - /** - * The FiltersPostResponseAllOf model constructor. - * @property {module:model/FiltersPostResponseAllOf} - */ - FiltersPostResponseAllOf, - - /** - * The FiltersPostResponseAllOfData model constructor. - * @property {module:model/FiltersPostResponseAllOfData} - */ - FiltersPostResponseAllOfData, - - /** - * The FindGoalResponse model constructor. - * @property {module:model/FindGoalResponse} - */ - FindGoalResponse, - - /** - * The FollowerData model constructor. - * @property {module:model/FollowerData} - */ - FollowerData, - - /** - * The FollowerDataWithID model constructor. - * @property {module:model/FollowerDataWithID} - */ - FollowerDataWithID, - - /** - * The FollowerDataWithIDAllOf model constructor. - * @property {module:model/FollowerDataWithIDAllOf} - */ - FollowerDataWithIDAllOf, - - /** - * The FullProjectObject model constructor. - * @property {module:model/FullProjectObject} - */ - FullProjectObject, - - /** - * The FullRole model constructor. - * @property {module:model/FullRole} - */ - FullRole, - - /** - * The FullRoleAllOf model constructor. - * @property {module:model/FullRoleAllOf} - */ - FullRoleAllOf, - - /** - * The FullTaskObject model constructor. - * @property {module:model/FullTaskObject} - */ - FullTaskObject, - - /** - * The GetActivitiesCollectionResponse model constructor. - * @property {module:model/GetActivitiesCollectionResponse} - */ - GetActivitiesCollectionResponse, - - /** - * The GetActivitiesResponse model constructor. - * @property {module:model/GetActivitiesResponse} - */ - GetActivitiesResponse, - - /** - * The GetActivitiesResponseRelatedObjects model constructor. - * @property {module:model/GetActivitiesResponseRelatedObjects} - */ - GetActivitiesResponseRelatedObjects, - - /** - * The GetActivityResponse model constructor. - * @property {module:model/GetActivityResponse} - */ - GetActivityResponse, - - /** - * The GetAddProductAttachmentDetails model constructor. - * @property {module:model/GetAddProductAttachmentDetails} - */ - GetAddProductAttachmentDetails, - - /** - * The GetAddUpdateStage model constructor. - * @property {module:model/GetAddUpdateStage} - */ - GetAddUpdateStage, - - /** - * The GetAddedDeal model constructor. - * @property {module:model/GetAddedDeal} - */ - GetAddedDeal, - - /** - * The GetAllFiles model constructor. - * @property {module:model/GetAllFiles} - */ - GetAllFiles, - - /** - * The GetAllPersonsResponse model constructor. - * @property {module:model/GetAllPersonsResponse} - */ - GetAllPersonsResponse, - - /** - * The GetAllPersonsResponseAllOf model constructor. - * @property {module:model/GetAllPersonsResponseAllOf} - */ - GetAllPersonsResponseAllOf, - - /** - * The GetAllPipelines model constructor. - * @property {module:model/GetAllPipelines} - */ - GetAllPipelines, - - /** - * The GetAllPipelinesAllOf model constructor. - * @property {module:model/GetAllPipelinesAllOf} - */ - GetAllPipelinesAllOf, - - /** - * The GetAllProductFieldsResponse model constructor. - * @property {module:model/GetAllProductFieldsResponse} - */ - GetAllProductFieldsResponse, - - /** - * The GetComments model constructor. - * @property {module:model/GetComments} - */ - GetComments, - - /** - * The GetDeal model constructor. - * @property {module:model/GetDeal} - */ - GetDeal, - - /** - * The GetDealAdditionalData model constructor. - * @property {module:model/GetDealAdditionalData} - */ - GetDealAdditionalData, - - /** - * The GetDealRelatedObjects model constructor. - * @property {module:model/GetDealRelatedObjects} - */ - GetDealRelatedObjects, - - /** - * The GetDeals model constructor. - * @property {module:model/GetDeals} - */ - GetDeals, - - /** - * The GetDealsCollection model constructor. - * @property {module:model/GetDealsCollection} - */ - GetDealsCollection, - - /** - * The GetDealsConversionRatesInPipeline model constructor. - * @property {module:model/GetDealsConversionRatesInPipeline} - */ - GetDealsConversionRatesInPipeline, - - /** - * The GetDealsConversionRatesInPipelineAllOf model constructor. - * @property {module:model/GetDealsConversionRatesInPipelineAllOf} - */ - GetDealsConversionRatesInPipelineAllOf, - - /** - * The GetDealsConversionRatesInPipelineAllOfData model constructor. - * @property {module:model/GetDealsConversionRatesInPipelineAllOfData} - */ - GetDealsConversionRatesInPipelineAllOfData, - - /** - * The GetDealsMovementsInPipeline model constructor. - * @property {module:model/GetDealsMovementsInPipeline} - */ - GetDealsMovementsInPipeline, - - /** - * The GetDealsMovementsInPipelineAllOf model constructor. - * @property {module:model/GetDealsMovementsInPipelineAllOf} - */ - GetDealsMovementsInPipelineAllOf, - - /** - * The GetDealsMovementsInPipelineAllOfData model constructor. - * @property {module:model/GetDealsMovementsInPipelineAllOfData} - */ - GetDealsMovementsInPipelineAllOfData, - - /** - * The GetDealsMovementsInPipelineAllOfDataAverageAgeInDays model constructor. - * @property {module:model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays} - */ - GetDealsMovementsInPipelineAllOfDataAverageAgeInDays, - - /** - * The GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages model constructor. - * @property {module:model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages} - */ - GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages, - - /** - * The GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages model constructor. - * @property {module:model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages} - */ - GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages, - - /** - * The GetDealsRelatedObjects model constructor. - * @property {module:model/GetDealsRelatedObjects} - */ - GetDealsRelatedObjects, - - /** - * The GetDealsSummary model constructor. - * @property {module:model/GetDealsSummary} - */ - GetDealsSummary, - - /** - * The GetDealsSummaryData model constructor. - * @property {module:model/GetDealsSummaryData} - */ - GetDealsSummaryData, - - /** - * The GetDealsSummaryDataValuesTotal model constructor. - * @property {module:model/GetDealsSummaryDataValuesTotal} - */ - GetDealsSummaryDataValuesTotal, - - /** - * The GetDealsSummaryDataWeightedValuesTotal model constructor. - * @property {module:model/GetDealsSummaryDataWeightedValuesTotal} - */ - GetDealsSummaryDataWeightedValuesTotal, - - /** - * The GetDealsTimeline model constructor. - * @property {module:model/GetDealsTimeline} - */ - GetDealsTimeline, - - /** - * The GetDealsTimelineData model constructor. - * @property {module:model/GetDealsTimelineData} - */ - GetDealsTimelineData, - - /** - * The GetDealsTimelineDataTotals model constructor. - * @property {module:model/GetDealsTimelineDataTotals} - */ - GetDealsTimelineDataTotals, - - /** - * The GetDuplicatedDeal model constructor. - * @property {module:model/GetDuplicatedDeal} - */ - GetDuplicatedDeal, - - /** - * The GetField model constructor. - * @property {module:model/GetField} - */ - GetField, - - /** - * The GetFieldAllOf model constructor. - * @property {module:model/GetFieldAllOf} - */ - GetFieldAllOf, - - /** - * The GetGoalResultResponse model constructor. - * @property {module:model/GetGoalResultResponse} - */ - GetGoalResultResponse, - - /** - * The GetGoalsResponse model constructor. - * @property {module:model/GetGoalsResponse} - */ - GetGoalsResponse, - - /** - * The GetLeadIdResponse model constructor. - * @property {module:model/GetLeadIdResponse} - */ - GetLeadIdResponse, - - /** - * The GetLeadIdResponseData model constructor. - * @property {module:model/GetLeadIdResponseData} - */ - GetLeadIdResponseData, - - /** - * The GetLeadLabelsResponse model constructor. - * @property {module:model/GetLeadLabelsResponse} - */ - GetLeadLabelsResponse, - - /** - * The GetLeadResponse model constructor. - * @property {module:model/GetLeadResponse} - */ - GetLeadResponse, - - /** - * The GetLeadsResponse model constructor. - * @property {module:model/GetLeadsResponse} - */ - GetLeadsResponse, - - /** - * The GetLeadsSourceResponse model constructor. - * @property {module:model/GetLeadsSourceResponse} - */ - GetLeadsSourceResponse, - - /** - * The GetLeadsSourceResponseData model constructor. - * @property {module:model/GetLeadsSourceResponseData} - */ - GetLeadsSourceResponseData, - - /** - * The GetMergedDeal model constructor. - * @property {module:model/GetMergedDeal} - */ - GetMergedDeal, - - /** - * The GetNoteField model constructor. - * @property {module:model/GetNoteField} - */ - GetNoteField, - - /** - * The GetNotes model constructor. - * @property {module:model/GetNotes} - */ - GetNotes, - - /** - * The GetOneFile model constructor. - * @property {module:model/GetOneFile} - */ - GetOneFile, - - /** - * The GetOnePipeline model constructor. - * @property {module:model/GetOnePipeline} - */ - GetOnePipeline, - - /** - * The GetOnePipelineAllOf model constructor. - * @property {module:model/GetOnePipelineAllOf} - */ - GetOnePipelineAllOf, - - /** - * The GetOneStage model constructor. - * @property {module:model/GetOneStage} - */ - GetOneStage, - - /** - * The GetPersonDetailsResponse model constructor. - * @property {module:model/GetPersonDetailsResponse} - */ - GetPersonDetailsResponse, - - /** - * The GetPersonDetailsResponseAllOf model constructor. - * @property {module:model/GetPersonDetailsResponseAllOf} - */ - GetPersonDetailsResponseAllOf, - - /** - * The GetPersonDetailsResponseAllOfAdditionalData model constructor. - * @property {module:model/GetPersonDetailsResponseAllOfAdditionalData} - */ - GetPersonDetailsResponseAllOfAdditionalData, - - /** - * The GetProductAttachmentDetails model constructor. - * @property {module:model/GetProductAttachmentDetails} - */ - GetProductAttachmentDetails, - - /** - * The GetProductField model constructor. - * @property {module:model/GetProductField} - */ - GetProductField, - - /** - * The GetProductFieldResponse model constructor. - * @property {module:model/GetProductFieldResponse} - */ - GetProductFieldResponse, - - /** - * The GetProjectBoardResponse model constructor. - * @property {module:model/GetProjectBoardResponse} - */ - GetProjectBoardResponse, - - /** - * The GetProjectBoardsResponse model constructor. - * @property {module:model/GetProjectBoardsResponse} - */ - GetProjectBoardsResponse, - - /** - * The GetProjectGroupsResponse model constructor. - * @property {module:model/GetProjectGroupsResponse} - */ - GetProjectGroupsResponse, - - /** - * The GetProjectPhaseResponse model constructor. - * @property {module:model/GetProjectPhaseResponse} - */ - GetProjectPhaseResponse, - - /** - * The GetProjectPhasesResponse model constructor. - * @property {module:model/GetProjectPhasesResponse} - */ - GetProjectPhasesResponse, - - /** - * The GetProjectPlanResponse model constructor. - * @property {module:model/GetProjectPlanResponse} - */ - GetProjectPlanResponse, - - /** - * The GetProjectResponse model constructor. - * @property {module:model/GetProjectResponse} - */ - GetProjectResponse, - - /** - * The GetProjectTemplateResponse model constructor. - * @property {module:model/GetProjectTemplateResponse} - */ - GetProjectTemplateResponse, - - /** - * The GetProjectTemplatesResponse model constructor. - * @property {module:model/GetProjectTemplatesResponse} - */ - GetProjectTemplatesResponse, - - /** - * The GetProjectsResponse model constructor. - * @property {module:model/GetProjectsResponse} - */ - GetProjectsResponse, - - /** - * The GetRecents model constructor. - * @property {module:model/GetRecents} - */ - GetRecents, - - /** - * The GetRecentsAdditionalData model constructor. - * @property {module:model/GetRecentsAdditionalData} - */ - GetRecentsAdditionalData, - - /** - * The GetRole model constructor. - * @property {module:model/GetRole} - */ - GetRole, - - /** - * The GetRoleAllOf model constructor. - * @property {module:model/GetRoleAllOf} - */ - GetRoleAllOf, - - /** - * The GetRoleAllOfAdditionalData model constructor. - * @property {module:model/GetRoleAllOfAdditionalData} - */ - GetRoleAllOfAdditionalData, - - /** - * The GetRoleAssignments model constructor. - * @property {module:model/GetRoleAssignments} - */ - GetRoleAssignments, - - /** - * The GetRoleAssignmentsAllOf model constructor. - * @property {module:model/GetRoleAssignmentsAllOf} - */ - GetRoleAssignmentsAllOf, - - /** - * The GetRolePipelines model constructor. - * @property {module:model/GetRolePipelines} - */ - GetRolePipelines, - - /** - * The GetRolePipelinesAllOf model constructor. - * @property {module:model/GetRolePipelinesAllOf} - */ - GetRolePipelinesAllOf, - - /** - * The GetRolePipelinesAllOfData model constructor. - * @property {module:model/GetRolePipelinesAllOfData} - */ - GetRolePipelinesAllOfData, - - /** - * The GetRoleSettings model constructor. - * @property {module:model/GetRoleSettings} - */ - GetRoleSettings, - - /** - * The GetRoleSettingsAllOf model constructor. - * @property {module:model/GetRoleSettingsAllOf} - */ - GetRoleSettingsAllOf, - - /** - * The GetRoles model constructor. - * @property {module:model/GetRoles} - */ - GetRoles, - - /** - * The GetRolesAllOf model constructor. - * @property {module:model/GetRolesAllOf} - */ - GetRolesAllOf, - - /** - * The GetStageDeals model constructor. - * @property {module:model/GetStageDeals} - */ - GetStageDeals, - - /** - * The GetStages model constructor. - * @property {module:model/GetStages} - */ - GetStages, - - /** - * The GetTaskResponse model constructor. - * @property {module:model/GetTaskResponse} - */ - GetTaskResponse, - - /** - * The GetTasksResponse model constructor. - * @property {module:model/GetTasksResponse} - */ - GetTasksResponse, - - /** - * The GoalResults model constructor. - * @property {module:model/GoalResults} - */ - GoalResults, - - /** - * The GoalType model constructor. - * @property {module:model/GoalType} - */ - GoalType, - - /** - * The GoalsResponseComponent model constructor. - * @property {module:model/GoalsResponseComponent} - */ - GoalsResponseComponent, - - /** - * The IconKey model constructor. - * @property {module:model/IconKey} - */ - IconKey, - - /** - * The InlineResponse200 model constructor. - * @property {module:model/InlineResponse200} - */ - InlineResponse200, - - /** - * The InlineResponse2001 model constructor. - * @property {module:model/InlineResponse2001} - */ - InlineResponse2001, - - /** - * The InlineResponse2002 model constructor. - * @property {module:model/InlineResponse2002} - */ - InlineResponse2002, - - /** - * The InlineResponse400 model constructor. - * @property {module:model/InlineResponse400} - */ - InlineResponse400, - - /** - * The InlineResponse4001 model constructor. - * @property {module:model/InlineResponse4001} - */ - InlineResponse4001, - - /** - * The InlineResponse4001AdditionalData model constructor. - * @property {module:model/InlineResponse4001AdditionalData} - */ - InlineResponse4001AdditionalData, - - /** - * The InlineResponse400AdditionalData model constructor. - * @property {module:model/InlineResponse400AdditionalData} - */ - InlineResponse400AdditionalData, - - /** - * The InlineResponse403 model constructor. - * @property {module:model/InlineResponse403} - */ - InlineResponse403, - - /** - * The InlineResponse4031 model constructor. - * @property {module:model/InlineResponse4031} - */ - InlineResponse4031, - - /** - * The InlineResponse4031AdditionalData model constructor. - * @property {module:model/InlineResponse4031AdditionalData} - */ - InlineResponse4031AdditionalData, - - /** - * The InlineResponse403AdditionalData model constructor. - * @property {module:model/InlineResponse403AdditionalData} - */ - InlineResponse403AdditionalData, - - /** - * The InlineResponse404 model constructor. - * @property {module:model/InlineResponse404} - */ - InlineResponse404, - - /** - * The InlineResponse404AdditionalData model constructor. - * @property {module:model/InlineResponse404AdditionalData} - */ - InlineResponse404AdditionalData, - - /** - * The InternalFieldType model constructor. - * @property {module:model/InternalFieldType} - */ - InternalFieldType, - - /** - * The ItemSearchAdditionalData model constructor. - * @property {module:model/ItemSearchAdditionalData} - */ - ItemSearchAdditionalData, - - /** - * The ItemSearchAdditionalDataPagination model constructor. - * @property {module:model/ItemSearchAdditionalDataPagination} - */ - ItemSearchAdditionalDataPagination, - - /** - * The ItemSearchFieldResponse model constructor. - * @property {module:model/ItemSearchFieldResponse} - */ - ItemSearchFieldResponse, - - /** - * The ItemSearchFieldResponseAllOf model constructor. - * @property {module:model/ItemSearchFieldResponseAllOf} - */ - ItemSearchFieldResponseAllOf, - - /** - * The ItemSearchFieldResponseAllOfData model constructor. - * @property {module:model/ItemSearchFieldResponseAllOfData} - */ - ItemSearchFieldResponseAllOfData, - - /** - * The ItemSearchItem model constructor. - * @property {module:model/ItemSearchItem} - */ - ItemSearchItem, - - /** - * The ItemSearchResponse model constructor. - * @property {module:model/ItemSearchResponse} - */ - ItemSearchResponse, - - /** - * The ItemSearchResponseAllOf model constructor. - * @property {module:model/ItemSearchResponseAllOf} - */ - ItemSearchResponseAllOf, - - /** - * The ItemSearchResponseAllOfData model constructor. - * @property {module:model/ItemSearchResponseAllOfData} - */ - ItemSearchResponseAllOfData, - - /** - * The LeadLabelColor model constructor. - * @property {module:model/LeadLabelColor} - */ - LeadLabelColor, - - /** - * The LeadLabelResponse model constructor. - * @property {module:model/LeadLabelResponse} - */ - LeadLabelResponse, - - /** - * The LeadNotFoundResponse model constructor. - * @property {module:model/LeadNotFoundResponse} - */ - LeadNotFoundResponse, - - /** - * The LeadResponse model constructor. - * @property {module:model/LeadResponse} - */ - LeadResponse, - - /** - * The LeadSearchItem model constructor. - * @property {module:model/LeadSearchItem} - */ - LeadSearchItem, - - /** - * The LeadSearchItemItem model constructor. - * @property {module:model/LeadSearchItemItem} - */ - LeadSearchItemItem, - - /** - * The LeadSearchItemItemOrganization model constructor. - * @property {module:model/LeadSearchItemItemOrganization} - */ - LeadSearchItemItemOrganization, - - /** - * The LeadSearchItemItemOwner model constructor. - * @property {module:model/LeadSearchItemItemOwner} - */ - LeadSearchItemItemOwner, - - /** - * The LeadSearchItemItemPerson model constructor. - * @property {module:model/LeadSearchItemItemPerson} - */ - LeadSearchItemItemPerson, - - /** - * The LeadSearchResponse model constructor. - * @property {module:model/LeadSearchResponse} - */ - LeadSearchResponse, - - /** - * The LeadSearchResponseAllOf model constructor. - * @property {module:model/LeadSearchResponseAllOf} - */ - LeadSearchResponseAllOf, - - /** - * The LeadSearchResponseAllOfData model constructor. - * @property {module:model/LeadSearchResponseAllOfData} - */ - LeadSearchResponseAllOfData, - - /** - * The LeadValue model constructor. - * @property {module:model/LeadValue} - */ - LeadValue, - - /** - * The LinkRemoteFileToItem model constructor. - * @property {module:model/LinkRemoteFileToItem} - */ - LinkRemoteFileToItem, - - /** - * The ListActivitiesResponse model constructor. - * @property {module:model/ListActivitiesResponse} - */ - ListActivitiesResponse, - - /** - * The ListActivitiesResponseAllOf model constructor. - * @property {module:model/ListActivitiesResponseAllOf} - */ - ListActivitiesResponseAllOf, - - /** - * The ListDealsResponse model constructor. - * @property {module:model/ListDealsResponse} - */ - ListDealsResponse, - - /** - * The ListDealsResponseAllOf model constructor. - * @property {module:model/ListDealsResponseAllOf} - */ - ListDealsResponseAllOf, - - /** - * The ListDealsResponseAllOfRelatedObjects model constructor. - * @property {module:model/ListDealsResponseAllOfRelatedObjects} - */ - ListDealsResponseAllOfRelatedObjects, - - /** - * The ListFilesResponse model constructor. - * @property {module:model/ListFilesResponse} - */ - ListFilesResponse, - - /** - * The ListFilesResponseAllOf model constructor. - * @property {module:model/ListFilesResponseAllOf} - */ - ListFilesResponseAllOf, - - /** - * The ListFollowersResponse model constructor. - * @property {module:model/ListFollowersResponse} - */ - ListFollowersResponse, - - /** - * The ListFollowersResponseAllOf model constructor. - * @property {module:model/ListFollowersResponseAllOf} - */ - ListFollowersResponseAllOf, - - /** - * The ListFollowersResponseAllOfData model constructor. - * @property {module:model/ListFollowersResponseAllOfData} - */ - ListFollowersResponseAllOfData, - - /** - * The ListMailMessagesResponse model constructor. - * @property {module:model/ListMailMessagesResponse} - */ - ListMailMessagesResponse, - - /** - * The ListMailMessagesResponseAllOf model constructor. - * @property {module:model/ListMailMessagesResponseAllOf} - */ - ListMailMessagesResponseAllOf, - - /** - * The ListMailMessagesResponseAllOfData model constructor. - * @property {module:model/ListMailMessagesResponseAllOfData} - */ - ListMailMessagesResponseAllOfData, - - /** - * The ListPermittedUsersResponse model constructor. - * @property {module:model/ListPermittedUsersResponse} - */ - ListPermittedUsersResponse, - - /** - * The ListPermittedUsersResponse1 model constructor. - * @property {module:model/ListPermittedUsersResponse1} - */ - ListPermittedUsersResponse1, - - /** - * The ListPermittedUsersResponse1AllOf model constructor. - * @property {module:model/ListPermittedUsersResponse1AllOf} - */ - ListPermittedUsersResponse1AllOf, - - /** - * The ListPersonProductsResponse model constructor. - * @property {module:model/ListPersonProductsResponse} - */ - ListPersonProductsResponse, - - /** - * The ListPersonProductsResponseAllOf model constructor. - * @property {module:model/ListPersonProductsResponseAllOf} - */ - ListPersonProductsResponseAllOf, - - /** - * The ListPersonProductsResponseAllOfDEALID model constructor. - * @property {module:model/ListPersonProductsResponseAllOfDEALID} - */ - ListPersonProductsResponseAllOfDEALID, - - /** - * The ListPersonProductsResponseAllOfData model constructor. - * @property {module:model/ListPersonProductsResponseAllOfData} - */ - ListPersonProductsResponseAllOfData, - - /** - * The ListPersonsResponse model constructor. - * @property {module:model/ListPersonsResponse} - */ - ListPersonsResponse, - - /** - * The ListPersonsResponseAllOf model constructor. - * @property {module:model/ListPersonsResponseAllOf} - */ - ListPersonsResponseAllOf, - - /** - * The ListPersonsResponseAllOfRelatedObjects model constructor. - * @property {module:model/ListPersonsResponseAllOfRelatedObjects} - */ - ListPersonsResponseAllOfRelatedObjects, - - /** - * The ListProductAdditionalData model constructor. - * @property {module:model/ListProductAdditionalData} - */ - ListProductAdditionalData, - - /** - * The ListProductAdditionalDataAllOf model constructor. - * @property {module:model/ListProductAdditionalDataAllOf} - */ - ListProductAdditionalDataAllOf, - - /** - * The ListProductFilesResponse model constructor. - * @property {module:model/ListProductFilesResponse} - */ - ListProductFilesResponse, - - /** - * The ListProductFilesResponseAllOf model constructor. - * @property {module:model/ListProductFilesResponseAllOf} - */ - ListProductFilesResponseAllOf, - - /** - * The ListProductFollowersResponse model constructor. - * @property {module:model/ListProductFollowersResponse} - */ - ListProductFollowersResponse, - - /** - * The ListProductFollowersResponseAllOf model constructor. - * @property {module:model/ListProductFollowersResponseAllOf} - */ - ListProductFollowersResponseAllOf, - - /** - * The ListProductFollowersResponseAllOfData model constructor. - * @property {module:model/ListProductFollowersResponseAllOfData} - */ - ListProductFollowersResponseAllOfData, - - /** - * The ListProductsResponse model constructor. - * @property {module:model/ListProductsResponse} - */ - ListProductsResponse, - - /** - * The ListProductsResponseAllOf model constructor. - * @property {module:model/ListProductsResponseAllOf} - */ - ListProductsResponseAllOf, - - /** - * The ListProductsResponseAllOfRelatedObjects model constructor. - * @property {module:model/ListProductsResponseAllOfRelatedObjects} - */ - ListProductsResponseAllOfRelatedObjects, - - /** - * The MailMessage model constructor. - * @property {module:model/MailMessage} - */ - MailMessage, - - /** - * The MailMessageAllOf model constructor. - * @property {module:model/MailMessageAllOf} - */ - MailMessageAllOf, - - /** - * The MailMessageData model constructor. - * @property {module:model/MailMessageData} - */ - MailMessageData, - - /** - * The MailMessageItemForList model constructor. - * @property {module:model/MailMessageItemForList} - */ - MailMessageItemForList, - - /** - * The MailMessageItemForListAllOf model constructor. - * @property {module:model/MailMessageItemForListAllOf} - */ - MailMessageItemForListAllOf, - - /** - * The MailParticipant model constructor. - * @property {module:model/MailParticipant} - */ - MailParticipant, - - /** - * The MailServiceBaseResponse model constructor. - * @property {module:model/MailServiceBaseResponse} - */ - MailServiceBaseResponse, - - /** - * The MailThread model constructor. - * @property {module:model/MailThread} - */ - MailThread, - - /** - * The MailThreadAllOf model constructor. - * @property {module:model/MailThreadAllOf} - */ - MailThreadAllOf, - - /** - * The MailThreadDelete model constructor. - * @property {module:model/MailThreadDelete} - */ - MailThreadDelete, - - /** - * The MailThreadDeleteAllOf model constructor. - * @property {module:model/MailThreadDeleteAllOf} - */ - MailThreadDeleteAllOf, - - /** - * The MailThreadDeleteAllOfData model constructor. - * @property {module:model/MailThreadDeleteAllOfData} - */ - MailThreadDeleteAllOfData, - - /** - * The MailThreadMessages model constructor. - * @property {module:model/MailThreadMessages} - */ - MailThreadMessages, - - /** - * The MailThreadMessagesAllOf model constructor. - * @property {module:model/MailThreadMessagesAllOf} - */ - MailThreadMessagesAllOf, - - /** - * The MailThreadOne model constructor. - * @property {module:model/MailThreadOne} - */ - MailThreadOne, - - /** - * The MailThreadOneAllOf model constructor. - * @property {module:model/MailThreadOneAllOf} - */ - MailThreadOneAllOf, - - /** - * The MailThreadParticipant model constructor. - * @property {module:model/MailThreadParticipant} - */ - MailThreadParticipant, - - /** - * The MailThreadPut model constructor. - * @property {module:model/MailThreadPut} - */ - MailThreadPut, - - /** - * The MailThreadPutAllOf model constructor. - * @property {module:model/MailThreadPutAllOf} - */ - MailThreadPutAllOf, - - /** - * The MarketingStatus model constructor. - * @property {module:model/MarketingStatus} - */ - MarketingStatus, - - /** - * The MergeDealsRequest model constructor. - * @property {module:model/MergeDealsRequest} - */ - MergeDealsRequest, - - /** - * The MergeOrganizationsRequest model constructor. - * @property {module:model/MergeOrganizationsRequest} - */ - MergeOrganizationsRequest, - - /** - * The MergePersonDealRelatedInfo model constructor. - * @property {module:model/MergePersonDealRelatedInfo} - */ - MergePersonDealRelatedInfo, - - /** - * The MergePersonItem model constructor. - * @property {module:model/MergePersonItem} - */ - MergePersonItem, - - /** - * The MergePersonsRequest model constructor. - * @property {module:model/MergePersonsRequest} - */ - MergePersonsRequest, - - /** - * The MergePersonsResponse model constructor. - * @property {module:model/MergePersonsResponse} - */ - MergePersonsResponse, - - /** - * The MergePersonsResponseAllOf model constructor. - * @property {module:model/MergePersonsResponseAllOf} - */ - MergePersonsResponseAllOf, - - /** - * The MessageObject model constructor. - * @property {module:model/MessageObject} - */ - MessageObject, - - /** - * The MessageObjectAttachments model constructor. - * @property {module:model/MessageObjectAttachments} - */ - MessageObjectAttachments, - - /** - * The NameObject model constructor. - * @property {module:model/NameObject} - */ - NameObject, - - /** - * The NewDeal model constructor. - * @property {module:model/NewDeal} - */ - NewDeal, - - /** - * The NewDealParameters model constructor. - * @property {module:model/NewDealParameters} - */ - NewDealParameters, - - /** - * The NewDealProduct model constructor. - * @property {module:model/NewDealProduct} - */ - NewDealProduct, - - /** - * The NewDealProductAllOf model constructor. - * @property {module:model/NewDealProductAllOf} - */ - NewDealProductAllOf, - - /** - * The NewDealProductAllOf1 model constructor. - * @property {module:model/NewDealProductAllOf1} - */ - NewDealProductAllOf1, - - /** - * The NewDealProductAllOf2 model constructor. - * @property {module:model/NewDealProductAllOf2} - */ - NewDealProductAllOf2, - - /** - * The NewFollowerResponse model constructor. - * @property {module:model/NewFollowerResponse} - */ - NewFollowerResponse, - - /** - * The NewFollowerResponseData model constructor. - * @property {module:model/NewFollowerResponseData} - */ - NewFollowerResponseData, - - /** - * The NewGoal model constructor. - * @property {module:model/NewGoal} - */ - NewGoal, - - /** - * The NewOrganization model constructor. - * @property {module:model/NewOrganization} - */ - NewOrganization, - - /** - * The NewOrganizationAllOf model constructor. - * @property {module:model/NewOrganizationAllOf} - */ - NewOrganizationAllOf, - - /** - * The NewPerson model constructor. - * @property {module:model/NewPerson} - */ - NewPerson, - - /** - * The NewPersonAllOf model constructor. - * @property {module:model/NewPersonAllOf} - */ - NewPersonAllOf, - - /** - * The NewProductField model constructor. - * @property {module:model/NewProductField} - */ - NewProductField, - - /** - * The Note model constructor. - * @property {module:model/Note} - */ - Note, - - /** - * The NoteAllOf model constructor. - * @property {module:model/NoteAllOf} - */ - NoteAllOf, - - /** - * The NoteConnectToParams model constructor. - * @property {module:model/NoteConnectToParams} - */ - NoteConnectToParams, - - /** - * The NoteCreatorUser model constructor. - * @property {module:model/NoteCreatorUser} - */ - NoteCreatorUser, - - /** - * The NoteField model constructor. - * @property {module:model/NoteField} - */ - NoteField, - - /** - * The NoteFieldOptions model constructor. - * @property {module:model/NoteFieldOptions} - */ - NoteFieldOptions, - - /** - * The NoteFieldsResponse model constructor. - * @property {module:model/NoteFieldsResponse} - */ - NoteFieldsResponse, - - /** - * The NoteFieldsResponseAllOf model constructor. - * @property {module:model/NoteFieldsResponseAllOf} - */ - NoteFieldsResponseAllOf, - - /** - * The NoteParams model constructor. - * @property {module:model/NoteParams} - */ - NoteParams, - - /** - * The NumberBoolean model constructor. - * @property {module:model/NumberBoolean} - */ - NumberBoolean, - - /** - * The NumberBooleanDefault0 model constructor. - * @property {module:model/NumberBooleanDefault0} - */ - NumberBooleanDefault0, - - /** - * The NumberBooleanDefault1 model constructor. - * @property {module:model/NumberBooleanDefault1} - */ - NumberBooleanDefault1, - - /** - * The OrgAndOwnerId model constructor. - * @property {module:model/OrgAndOwnerId} - */ - OrgAndOwnerId, - - /** - * The OrganizationAddressInfo model constructor. - * @property {module:model/OrganizationAddressInfo} - */ - OrganizationAddressInfo, - - /** - * The OrganizationCountAndAddressInfo model constructor. - * @property {module:model/OrganizationCountAndAddressInfo} - */ - OrganizationCountAndAddressInfo, - - /** - * The OrganizationCountInfo model constructor. - * @property {module:model/OrganizationCountInfo} - */ - OrganizationCountInfo, - - /** - * The OrganizationData model constructor. - * @property {module:model/OrganizationData} - */ - OrganizationData, - - /** - * The OrganizationDataWithId model constructor. - * @property {module:model/OrganizationDataWithId} - */ - OrganizationDataWithId, - - /** - * The OrganizationDataWithIdAllOf model constructor. - * @property {module:model/OrganizationDataWithIdAllOf} - */ - OrganizationDataWithIdAllOf, - - /** - * The OrganizationDataWithIdAndActiveFlag model constructor. - * @property {module:model/OrganizationDataWithIdAndActiveFlag} - */ - OrganizationDataWithIdAndActiveFlag, - - /** - * The OrganizationDataWithIdAndActiveFlagAllOf model constructor. - * @property {module:model/OrganizationDataWithIdAndActiveFlagAllOf} - */ - OrganizationDataWithIdAndActiveFlagAllOf, - - /** - * The OrganizationDeleteResponse model constructor. - * @property {module:model/OrganizationDeleteResponse} - */ - OrganizationDeleteResponse, - - /** - * The OrganizationDeleteResponseData model constructor. - * @property {module:model/OrganizationDeleteResponseData} - */ - OrganizationDeleteResponseData, - - /** - * The OrganizationDetailsGetResponse model constructor. - * @property {module:model/OrganizationDetailsGetResponse} - */ - OrganizationDetailsGetResponse, - - /** - * The OrganizationDetailsGetResponseAllOf model constructor. - * @property {module:model/OrganizationDetailsGetResponseAllOf} - */ - OrganizationDetailsGetResponseAllOf, - - /** - * The OrganizationDetailsGetResponseAllOfAdditionalData model constructor. - * @property {module:model/OrganizationDetailsGetResponseAllOfAdditionalData} - */ - OrganizationDetailsGetResponseAllOfAdditionalData, - - /** - * The OrganizationFlowResponse model constructor. - * @property {module:model/OrganizationFlowResponse} - */ - OrganizationFlowResponse, - - /** - * The OrganizationFlowResponseAllOf model constructor. - * @property {module:model/OrganizationFlowResponseAllOf} - */ - OrganizationFlowResponseAllOf, - - /** - * The OrganizationFlowResponseAllOfData model constructor. - * @property {module:model/OrganizationFlowResponseAllOfData} - */ - OrganizationFlowResponseAllOfData, - - /** - * The OrganizationFlowResponseAllOfRelatedObjects model constructor. - * @property {module:model/OrganizationFlowResponseAllOfRelatedObjects} - */ - OrganizationFlowResponseAllOfRelatedObjects, - - /** - * The OrganizationFollowerDeleteResponse model constructor. - * @property {module:model/OrganizationFollowerDeleteResponse} - */ - OrganizationFollowerDeleteResponse, - - /** - * The OrganizationFollowerDeleteResponseData model constructor. - * @property {module:model/OrganizationFollowerDeleteResponseData} - */ - OrganizationFollowerDeleteResponseData, - - /** - * The OrganizationFollowerItem model constructor. - * @property {module:model/OrganizationFollowerItem} - */ - OrganizationFollowerItem, - - /** - * The OrganizationFollowerItemAllOf model constructor. - * @property {module:model/OrganizationFollowerItemAllOf} - */ - OrganizationFollowerItemAllOf, - - /** - * The OrganizationFollowerPostResponse model constructor. - * @property {module:model/OrganizationFollowerPostResponse} - */ - OrganizationFollowerPostResponse, - - /** - * The OrganizationFollowersListResponse model constructor. - * @property {module:model/OrganizationFollowersListResponse} - */ - OrganizationFollowersListResponse, - - /** - * The OrganizationItem model constructor. - * @property {module:model/OrganizationItem} - */ - OrganizationItem, - - /** - * The OrganizationItemAllOf model constructor. - * @property {module:model/OrganizationItemAllOf} - */ - OrganizationItemAllOf, - - /** - * The OrganizationPostResponse model constructor. - * @property {module:model/OrganizationPostResponse} - */ - OrganizationPostResponse, - - /** - * The OrganizationPostResponseAllOf model constructor. - * @property {module:model/OrganizationPostResponseAllOf} - */ - OrganizationPostResponseAllOf, - - /** - * The OrganizationRelationship model constructor. - * @property {module:model/OrganizationRelationship} - */ - OrganizationRelationship, - - /** - * The OrganizationRelationshipDeleteResponse model constructor. - * @property {module:model/OrganizationRelationshipDeleteResponse} - */ - OrganizationRelationshipDeleteResponse, - - /** - * The OrganizationRelationshipDeleteResponseAllOf model constructor. - * @property {module:model/OrganizationRelationshipDeleteResponseAllOf} - */ - OrganizationRelationshipDeleteResponseAllOf, - - /** - * The OrganizationRelationshipDeleteResponseAllOfData model constructor. - * @property {module:model/OrganizationRelationshipDeleteResponseAllOfData} - */ - OrganizationRelationshipDeleteResponseAllOfData, - - /** - * The OrganizationRelationshipDetails model constructor. - * @property {module:model/OrganizationRelationshipDetails} - */ - OrganizationRelationshipDetails, - - /** - * The OrganizationRelationshipGetResponse model constructor. - * @property {module:model/OrganizationRelationshipGetResponse} - */ - OrganizationRelationshipGetResponse, - - /** - * The OrganizationRelationshipGetResponseAllOf model constructor. - * @property {module:model/OrganizationRelationshipGetResponseAllOf} - */ - OrganizationRelationshipGetResponseAllOf, - - /** - * The OrganizationRelationshipPostResponse model constructor. - * @property {module:model/OrganizationRelationshipPostResponse} - */ - OrganizationRelationshipPostResponse, - - /** - * The OrganizationRelationshipPostResponseAllOf model constructor. - * @property {module:model/OrganizationRelationshipPostResponseAllOf} - */ - OrganizationRelationshipPostResponseAllOf, - - /** - * The OrganizationRelationshipUpdateResponse model constructor. - * @property {module:model/OrganizationRelationshipUpdateResponse} - */ - OrganizationRelationshipUpdateResponse, - - /** - * The OrganizationRelationshipWithCalculatedFields model constructor. - * @property {module:model/OrganizationRelationshipWithCalculatedFields} - */ - OrganizationRelationshipWithCalculatedFields, - - /** - * The OrganizationSearchItem model constructor. - * @property {module:model/OrganizationSearchItem} - */ - OrganizationSearchItem, - - /** - * The OrganizationSearchItemItem model constructor. - * @property {module:model/OrganizationSearchItemItem} - */ - OrganizationSearchItemItem, - - /** - * The OrganizationSearchResponse model constructor. - * @property {module:model/OrganizationSearchResponse} - */ - OrganizationSearchResponse, - - /** - * The OrganizationSearchResponseAllOf model constructor. - * @property {module:model/OrganizationSearchResponseAllOf} - */ - OrganizationSearchResponseAllOf, - - /** - * The OrganizationSearchResponseAllOfData model constructor. - * @property {module:model/OrganizationSearchResponseAllOfData} - */ - OrganizationSearchResponseAllOfData, - - /** - * The OrganizationUpdateResponse model constructor. - * @property {module:model/OrganizationUpdateResponse} - */ - OrganizationUpdateResponse, - - /** - * The OrganizationUpdateResponseAllOf model constructor. - * @property {module:model/OrganizationUpdateResponseAllOf} - */ - OrganizationUpdateResponseAllOf, - - /** - * The OrganizationsCollectionResponseObject model constructor. - * @property {module:model/OrganizationsCollectionResponseObject} - */ - OrganizationsCollectionResponseObject, - - /** - * The OrganizationsCollectionResponseObjectAllOf model constructor. - * @property {module:model/OrganizationsCollectionResponseObjectAllOf} - */ - OrganizationsCollectionResponseObjectAllOf, - - /** - * The OrganizationsDeleteResponse model constructor. - * @property {module:model/OrganizationsDeleteResponse} - */ - OrganizationsDeleteResponse, - - /** - * The OrganizationsDeleteResponseData model constructor. - * @property {module:model/OrganizationsDeleteResponseData} - */ - OrganizationsDeleteResponseData, - - /** - * The OrganizationsMergeResponse model constructor. - * @property {module:model/OrganizationsMergeResponse} - */ - OrganizationsMergeResponse, - - /** - * The OrganizationsMergeResponseData model constructor. - * @property {module:model/OrganizationsMergeResponseData} - */ - OrganizationsMergeResponseData, - - /** - * The Owner model constructor. - * @property {module:model/Owner} - */ - Owner, - - /** - * The OwnerAllOf model constructor. - * @property {module:model/OwnerAllOf} - */ - OwnerAllOf, - - /** - * The PaginationDetails model constructor. - * @property {module:model/PaginationDetails} - */ - PaginationDetails, - - /** - * The PaginationDetailsAllOf model constructor. - * @property {module:model/PaginationDetailsAllOf} - */ - PaginationDetailsAllOf, - - /** - * The Params model constructor. - * @property {module:model/Params} - */ - Params, - - /** - * The ParticipantsChangelog model constructor. - * @property {module:model/ParticipantsChangelog} - */ - ParticipantsChangelog, - - /** - * The ParticipantsChangelogItem model constructor. - * @property {module:model/ParticipantsChangelogItem} - */ - ParticipantsChangelogItem, - - /** - * The PaymentItem model constructor. - * @property {module:model/PaymentItem} - */ - PaymentItem, - - /** - * The PaymentsResponse model constructor. - * @property {module:model/PaymentsResponse} - */ - PaymentsResponse, - - /** - * The PaymentsResponseAllOf model constructor. - * @property {module:model/PaymentsResponseAllOf} - */ - PaymentsResponseAllOf, - - /** - * The PermissionSets model constructor. - * @property {module:model/PermissionSets} - */ - PermissionSets, - - /** - * The PermissionSetsAllOf model constructor. - * @property {module:model/PermissionSetsAllOf} - */ - PermissionSetsAllOf, - - /** - * The PermissionSetsItem model constructor. - * @property {module:model/PermissionSetsItem} - */ - PermissionSetsItem, - - /** - * The PersonCountAndEmailInfo model constructor. - * @property {module:model/PersonCountAndEmailInfo} - */ - PersonCountAndEmailInfo, - - /** - * The PersonCountEmailDealAndActivityInfo model constructor. - * @property {module:model/PersonCountEmailDealAndActivityInfo} - */ - PersonCountEmailDealAndActivityInfo, - - /** - * The PersonCountInfo model constructor. - * @property {module:model/PersonCountInfo} - */ - PersonCountInfo, - - /** - * The PersonData model constructor. - * @property {module:model/PersonData} - */ - PersonData, - - /** - * The PersonDataEmail model constructor. - * @property {module:model/PersonDataEmail} - */ - PersonDataEmail, - - /** - * The PersonDataPhone model constructor. - * @property {module:model/PersonDataPhone} - */ - PersonDataPhone, - - /** - * The PersonDataWithActiveFlag model constructor. - * @property {module:model/PersonDataWithActiveFlag} - */ - PersonDataWithActiveFlag, - - /** - * The PersonDataWithActiveFlagAllOf model constructor. - * @property {module:model/PersonDataWithActiveFlagAllOf} - */ - PersonDataWithActiveFlagAllOf, - - /** - * The PersonFlowResponse model constructor. - * @property {module:model/PersonFlowResponse} - */ - PersonFlowResponse, - - /** - * The PersonFlowResponseAllOf model constructor. - * @property {module:model/PersonFlowResponseAllOf} - */ - PersonFlowResponseAllOf, - - /** - * The PersonFlowResponseAllOfData model constructor. - * @property {module:model/PersonFlowResponseAllOfData} - */ - PersonFlowResponseAllOfData, - - /** - * The PersonItem model constructor. - * @property {module:model/PersonItem} - */ - PersonItem, - - /** - * The PersonListProduct model constructor. - * @property {module:model/PersonListProduct} - */ - PersonListProduct, - - /** - * The PersonNameCountAndEmailInfo model constructor. - * @property {module:model/PersonNameCountAndEmailInfo} - */ - PersonNameCountAndEmailInfo, - - /** - * The PersonNameCountAndEmailInfoWithIds model constructor. - * @property {module:model/PersonNameCountAndEmailInfoWithIds} - */ - PersonNameCountAndEmailInfoWithIds, - - /** - * The PersonNameCountAndEmailInfoWithIdsAllOf model constructor. - * @property {module:model/PersonNameCountAndEmailInfoWithIdsAllOf} - */ - PersonNameCountAndEmailInfoWithIdsAllOf, - - /** - * The PersonNameInfo model constructor. - * @property {module:model/PersonNameInfo} - */ - PersonNameInfo, - - /** - * The PersonNameInfoWithOrgAndOwnerId model constructor. - * @property {module:model/PersonNameInfoWithOrgAndOwnerId} - */ - PersonNameInfoWithOrgAndOwnerId, - - /** - * The PersonSearchItem model constructor. - * @property {module:model/PersonSearchItem} - */ - PersonSearchItem, - - /** - * The PersonSearchItemItem model constructor. - * @property {module:model/PersonSearchItemItem} - */ - PersonSearchItemItem, - - /** - * The PersonSearchItemItemOrganization model constructor. - * @property {module:model/PersonSearchItemItemOrganization} - */ - PersonSearchItemItemOrganization, - - /** - * The PersonSearchItemItemOwner model constructor. - * @property {module:model/PersonSearchItemItemOwner} - */ - PersonSearchItemItemOwner, - - /** - * The PersonSearchResponse model constructor. - * @property {module:model/PersonSearchResponse} - */ - PersonSearchResponse, - - /** - * The PersonSearchResponseAllOf model constructor. - * @property {module:model/PersonSearchResponseAllOf} - */ - PersonSearchResponseAllOf, - - /** - * The PersonSearchResponseAllOfData model constructor. - * @property {module:model/PersonSearchResponseAllOfData} - */ - PersonSearchResponseAllOfData, - - /** - * The PersonsCollectionResponseObject model constructor. - * @property {module:model/PersonsCollectionResponseObject} - */ - PersonsCollectionResponseObject, - - /** - * The PictureData model constructor. - * @property {module:model/PictureData} - */ - PictureData, - - /** - * The PictureDataPictures model constructor. - * @property {module:model/PictureDataPictures} - */ - PictureDataPictures, - - /** - * The PictureDataWithID model constructor. - * @property {module:model/PictureDataWithID} - */ - PictureDataWithID, - - /** - * The PictureDataWithIDAllOf model constructor. - * @property {module:model/PictureDataWithIDAllOf} - */ - PictureDataWithIDAllOf, - - /** - * The PictureDataWithValue model constructor. - * @property {module:model/PictureDataWithValue} - */ - PictureDataWithValue, - - /** - * The PictureDataWithValueAllOf model constructor. - * @property {module:model/PictureDataWithValueAllOf} - */ - PictureDataWithValueAllOf, - - /** - * The Pipeline model constructor. - * @property {module:model/Pipeline} - */ - Pipeline, - - /** - * The PipelineDetails model constructor. - * @property {module:model/PipelineDetails} - */ - PipelineDetails, - - /** - * The PipelineDetailsAllOf model constructor. - * @property {module:model/PipelineDetailsAllOf} - */ - PipelineDetailsAllOf, - - /** - * The PostComment model constructor. - * @property {module:model/PostComment} - */ - PostComment, - - /** - * The PostDealParticipants model constructor. - * @property {module:model/PostDealParticipants} - */ - PostDealParticipants, - - /** - * The PostDealParticipantsRelatedObjects model constructor. - * @property {module:model/PostDealParticipantsRelatedObjects} - */ - PostDealParticipantsRelatedObjects, - - /** - * The PostGoalResponse model constructor. - * @property {module:model/PostGoalResponse} - */ - PostGoalResponse, - - /** - * The PostNote model constructor. - * @property {module:model/PostNote} - */ - PostNote, - - /** - * The PostRoleAssignment model constructor. - * @property {module:model/PostRoleAssignment} - */ - PostRoleAssignment, - - /** - * The PostRoleAssignmentAllOf model constructor. - * @property {module:model/PostRoleAssignmentAllOf} - */ - PostRoleAssignmentAllOf, - - /** - * The PostRoleAssignmentAllOfData model constructor. - * @property {module:model/PostRoleAssignmentAllOfData} - */ - PostRoleAssignmentAllOfData, - - /** - * The PostRoleSettings model constructor. - * @property {module:model/PostRoleSettings} - */ - PostRoleSettings, - - /** - * The PostRoleSettingsAllOf model constructor. - * @property {module:model/PostRoleSettingsAllOf} - */ - PostRoleSettingsAllOf, - - /** - * The PostRoleSettingsAllOfData model constructor. - * @property {module:model/PostRoleSettingsAllOfData} - */ - PostRoleSettingsAllOfData, - - /** - * The PostRoles model constructor. - * @property {module:model/PostRoles} - */ - PostRoles, - - /** - * The PostRolesAllOf model constructor. - * @property {module:model/PostRolesAllOf} - */ - PostRolesAllOf, - - /** - * The PostRolesAllOfData model constructor. - * @property {module:model/PostRolesAllOfData} - */ - PostRolesAllOfData, - - /** - * The ProductAttachementFields model constructor. - * @property {module:model/ProductAttachementFields} - */ - ProductAttachementFields, - - /** - * The ProductAttachmentDetails model constructor. - * @property {module:model/ProductAttachmentDetails} - */ - ProductAttachmentDetails, - - /** - * The ProductBaseDeal model constructor. - * @property {module:model/ProductBaseDeal} - */ - ProductBaseDeal, - - /** - * The ProductField model constructor. - * @property {module:model/ProductField} - */ - ProductField, - - /** - * The ProductFieldAllOf model constructor. - * @property {module:model/ProductFieldAllOf} - */ - ProductFieldAllOf, - - /** - * The ProductFileItem model constructor. - * @property {module:model/ProductFileItem} - */ - ProductFileItem, - - /** - * The ProductListItem model constructor. - * @property {module:model/ProductListItem} - */ - ProductListItem, - - /** - * The ProductRequest model constructor. - * @property {module:model/ProductRequest} - */ - ProductRequest, - - /** - * The ProductResponse model constructor. - * @property {module:model/ProductResponse} - */ - ProductResponse, - - /** - * The ProductSearchItem model constructor. - * @property {module:model/ProductSearchItem} - */ - ProductSearchItem, - - /** - * The ProductSearchItemItem model constructor. - * @property {module:model/ProductSearchItemItem} - */ - ProductSearchItemItem, - - /** - * The ProductSearchItemItemOwner model constructor. - * @property {module:model/ProductSearchItemItemOwner} - */ - ProductSearchItemItemOwner, - - /** - * The ProductSearchResponse model constructor. - * @property {module:model/ProductSearchResponse} - */ - ProductSearchResponse, - - /** - * The ProductSearchResponseAllOf model constructor. - * @property {module:model/ProductSearchResponseAllOf} - */ - ProductSearchResponseAllOf, - - /** - * The ProductSearchResponseAllOfData model constructor. - * @property {module:model/ProductSearchResponseAllOfData} - */ - ProductSearchResponseAllOfData, - - /** - * The ProductWithArrayPrices model constructor. - * @property {module:model/ProductWithArrayPrices} - */ - ProductWithArrayPrices, - - /** - * The ProductsResponse model constructor. - * @property {module:model/ProductsResponse} - */ - ProductsResponse, - - /** - * The ProjectBoardObject model constructor. - * @property {module:model/ProjectBoardObject} - */ - ProjectBoardObject, - - /** - * The ProjectGroupsObject model constructor. - * @property {module:model/ProjectGroupsObject} - */ - ProjectGroupsObject, - - /** - * The ProjectId model constructor. - * @property {module:model/ProjectId} - */ - ProjectId, - - /** - * The ProjectMandatoryObjectFragment model constructor. - * @property {module:model/ProjectMandatoryObjectFragment} - */ - ProjectMandatoryObjectFragment, - - /** - * The ProjectNotChangeableObjectFragment model constructor. - * @property {module:model/ProjectNotChangeableObjectFragment} - */ - ProjectNotChangeableObjectFragment, - - /** - * The ProjectObjectFragment model constructor. - * @property {module:model/ProjectObjectFragment} - */ - ProjectObjectFragment, - - /** - * The ProjectPhaseObject model constructor. - * @property {module:model/ProjectPhaseObject} - */ - ProjectPhaseObject, - - /** - * The ProjectPlanItemObject model constructor. - * @property {module:model/ProjectPlanItemObject} - */ - ProjectPlanItemObject, - - /** - * The ProjectPostObject model constructor. - * @property {module:model/ProjectPostObject} - */ - ProjectPostObject, - - /** - * The ProjectPostObjectAllOf model constructor. - * @property {module:model/ProjectPostObjectAllOf} - */ - ProjectPostObjectAllOf, - - /** - * The ProjectPutObject model constructor. - * @property {module:model/ProjectPutObject} - */ - ProjectPutObject, - - /** - * The ProjectPutPlanItemBodyObject model constructor. - * @property {module:model/ProjectPutPlanItemBodyObject} - */ - ProjectPutPlanItemBodyObject, - - /** - * The ProjectResponseObject model constructor. - * @property {module:model/ProjectResponseObject} - */ - ProjectResponseObject, - - /** - * The PutRole model constructor. - * @property {module:model/PutRole} - */ - PutRole, - - /** - * The PutRoleAllOf model constructor. - * @property {module:model/PutRoleAllOf} - */ - PutRoleAllOf, - - /** - * The PutRoleAllOfData model constructor. - * @property {module:model/PutRoleAllOfData} - */ - PutRoleAllOfData, - - /** - * The PutRolePipelinesBody model constructor. - * @property {module:model/PutRolePipelinesBody} - */ - PutRolePipelinesBody, - - /** - * The RecentDataProduct model constructor. - * @property {module:model/RecentDataProduct} - */ - RecentDataProduct, - - /** - * The RecentsActivity model constructor. - * @property {module:model/RecentsActivity} - */ - RecentsActivity, - - /** - * The RecentsActivityType model constructor. - * @property {module:model/RecentsActivityType} - */ - RecentsActivityType, - - /** - * The RecentsDeal model constructor. - * @property {module:model/RecentsDeal} - */ - RecentsDeal, - - /** - * The RecentsFile model constructor. - * @property {module:model/RecentsFile} - */ - RecentsFile, - - /** - * The RecentsFilter model constructor. - * @property {module:model/RecentsFilter} - */ - RecentsFilter, - - /** - * The RecentsNote model constructor. - * @property {module:model/RecentsNote} - */ - RecentsNote, - - /** - * The RecentsOrganization model constructor. - * @property {module:model/RecentsOrganization} - */ - RecentsOrganization, - - /** - * The RecentsPerson model constructor. - * @property {module:model/RecentsPerson} - */ - RecentsPerson, - - /** - * The RecentsPipeline model constructor. - * @property {module:model/RecentsPipeline} - */ - RecentsPipeline, - - /** - * The RecentsProduct model constructor. - * @property {module:model/RecentsProduct} - */ - RecentsProduct, - - /** - * The RecentsStage model constructor. - * @property {module:model/RecentsStage} - */ - RecentsStage, - - /** - * The RecentsUser model constructor. - * @property {module:model/RecentsUser} - */ - RecentsUser, - - /** - * The RelatedDealData model constructor. - * @property {module:model/RelatedDealData} - */ - RelatedDealData, - - /** - * The RelatedDealDataDEALID model constructor. - * @property {module:model/RelatedDealDataDEALID} - */ - RelatedDealDataDEALID, - - /** - * The RelatedFollowerData model constructor. - * @property {module:model/RelatedFollowerData} - */ - RelatedFollowerData, - - /** - * The RelatedOrganizationData model constructor. - * @property {module:model/RelatedOrganizationData} - */ - RelatedOrganizationData, - - /** - * The RelatedOrganizationDataWithActiveFlag model constructor. - * @property {module:model/RelatedOrganizationDataWithActiveFlag} - */ - RelatedOrganizationDataWithActiveFlag, - - /** - * The RelatedOrganizationName model constructor. - * @property {module:model/RelatedOrganizationName} - */ - RelatedOrganizationName, - - /** - * The RelatedPersonData model constructor. - * @property {module:model/RelatedPersonData} - */ - RelatedPersonData, - - /** - * The RelatedPersonDataWithActiveFlag model constructor. - * @property {module:model/RelatedPersonDataWithActiveFlag} - */ - RelatedPersonDataWithActiveFlag, - - /** - * The RelatedPictureData model constructor. - * @property {module:model/RelatedPictureData} - */ - RelatedPictureData, - - /** - * The RelatedUserData model constructor. - * @property {module:model/RelatedUserData} - */ - RelatedUserData, - - /** - * The RelationshipOrganizationInfoItem model constructor. - * @property {module:model/RelationshipOrganizationInfoItem} - */ - RelationshipOrganizationInfoItem, - - /** - * The RelationshipOrganizationInfoItemAllOf model constructor. - * @property {module:model/RelationshipOrganizationInfoItemAllOf} - */ - RelationshipOrganizationInfoItemAllOf, - - /** - * The RelationshipOrganizationInfoItemWithActiveFlag model constructor. - * @property {module:model/RelationshipOrganizationInfoItemWithActiveFlag} - */ - RelationshipOrganizationInfoItemWithActiveFlag, - - /** - * The RequiredPostProjectParameters model constructor. - * @property {module:model/RequiredPostProjectParameters} - */ - RequiredPostProjectParameters, - - /** - * The RequiredPostTaskParameters model constructor. - * @property {module:model/RequiredPostTaskParameters} - */ - RequiredPostTaskParameters, - - /** - * The RequredTitleParameter model constructor. - * @property {module:model/RequredTitleParameter} - */ - RequredTitleParameter, - - /** - * The ResponseCallLogObject model constructor. - * @property {module:model/ResponseCallLogObject} - */ - ResponseCallLogObject, - - /** - * The ResponseCallLogObjectAllOf model constructor. - * @property {module:model/ResponseCallLogObjectAllOf} - */ - ResponseCallLogObjectAllOf, - - /** - * The RoleAssignment model constructor. - * @property {module:model/RoleAssignment} - */ - RoleAssignment, - - /** - * The RoleAssignmentAllOf model constructor. - * @property {module:model/RoleAssignmentAllOf} - */ - RoleAssignmentAllOf, - - /** - * The RoleSettings model constructor. - * @property {module:model/RoleSettings} - */ - RoleSettings, - - /** - * The RolesAdditionalData model constructor. - * @property {module:model/RolesAdditionalData} - */ - RolesAdditionalData, - - /** - * The RolesAdditionalDataPagination model constructor. - * @property {module:model/RolesAdditionalDataPagination} - */ - RolesAdditionalDataPagination, - - /** - * The SinglePermissionSetsItem model constructor. - * @property {module:model/SinglePermissionSetsItem} - */ - SinglePermissionSetsItem, - - /** - * The SinglePermissionSetsItemAllOf model constructor. - * @property {module:model/SinglePermissionSetsItemAllOf} - */ - SinglePermissionSetsItemAllOf, - - /** - * The Stage model constructor. - * @property {module:model/Stage} - */ - Stage, - - /** - * The StageConversions model constructor. - * @property {module:model/StageConversions} - */ - StageConversions, - - /** - * The StageDetails model constructor. - * @property {module:model/StageDetails} - */ - StageDetails, - - /** - * The StageWithPipelineInfo model constructor. - * @property {module:model/StageWithPipelineInfo} - */ - StageWithPipelineInfo, - - /** - * The StageWithPipelineInfoAllOf model constructor. - * @property {module:model/StageWithPipelineInfoAllOf} - */ - StageWithPipelineInfoAllOf, - - /** - * The SubRole model constructor. - * @property {module:model/SubRole} - */ - SubRole, - - /** - * The SubRoleAllOf model constructor. - * @property {module:model/SubRoleAllOf} - */ - SubRoleAllOf, - - /** - * The SubscriptionAddonsResponse model constructor. - * @property {module:model/SubscriptionAddonsResponse} - */ - SubscriptionAddonsResponse, - - /** - * The SubscriptionAddonsResponseAllOf model constructor. - * @property {module:model/SubscriptionAddonsResponseAllOf} - */ - SubscriptionAddonsResponseAllOf, - - /** - * The SubscriptionInstallmentCreateRequest model constructor. - * @property {module:model/SubscriptionInstallmentCreateRequest} - */ - SubscriptionInstallmentCreateRequest, - - /** - * The SubscriptionInstallmentUpdateRequest model constructor. - * @property {module:model/SubscriptionInstallmentUpdateRequest} - */ - SubscriptionInstallmentUpdateRequest, - - /** - * The SubscriptionItem model constructor. - * @property {module:model/SubscriptionItem} - */ - SubscriptionItem, - - /** - * The SubscriptionRecurringCancelRequest model constructor. - * @property {module:model/SubscriptionRecurringCancelRequest} - */ - SubscriptionRecurringCancelRequest, - - /** - * The SubscriptionRecurringCreateRequest model constructor. - * @property {module:model/SubscriptionRecurringCreateRequest} - */ - SubscriptionRecurringCreateRequest, - - /** - * The SubscriptionRecurringUpdateRequest model constructor. - * @property {module:model/SubscriptionRecurringUpdateRequest} - */ - SubscriptionRecurringUpdateRequest, - - /** - * The SubscriptionsIdResponse model constructor. - * @property {module:model/SubscriptionsIdResponse} - */ - SubscriptionsIdResponse, - - /** - * The SubscriptionsIdResponseAllOf model constructor. - * @property {module:model/SubscriptionsIdResponseAllOf} - */ - SubscriptionsIdResponseAllOf, - - /** - * The TaskId model constructor. - * @property {module:model/TaskId} - */ - TaskId, - - /** - * The TaskMandatoryObjectFragment model constructor. - * @property {module:model/TaskMandatoryObjectFragment} - */ - TaskMandatoryObjectFragment, - - /** - * The TaskNotChangeableObjectFragment model constructor. - * @property {module:model/TaskNotChangeableObjectFragment} - */ - TaskNotChangeableObjectFragment, - - /** - * The TaskObjectFragment model constructor. - * @property {module:model/TaskObjectFragment} - */ - TaskObjectFragment, - - /** - * The TaskPostObject model constructor. - * @property {module:model/TaskPostObject} - */ - TaskPostObject, - - /** - * The TaskPutObject model constructor. - * @property {module:model/TaskPutObject} - */ - TaskPutObject, - - /** - * The TaskResponseObject model constructor. - * @property {module:model/TaskResponseObject} - */ - TaskResponseObject, - - /** - * The Team model constructor. - * @property {module:model/Team} - */ - Team, - - /** - * The TeamAllOf model constructor. - * @property {module:model/TeamAllOf} - */ - TeamAllOf, - - /** - * The TeamId model constructor. - * @property {module:model/TeamId} - */ - TeamId, - - /** - * The Teams model constructor. - * @property {module:model/Teams} - */ - Teams, - - /** - * The TeamsAllOf model constructor. - * @property {module:model/TeamsAllOf} - */ - TeamsAllOf, - - /** - * The TemplateObject model constructor. - * @property {module:model/TemplateObject} - */ - TemplateObject, - - /** - * The TemplateResponseObject model constructor. - * @property {module:model/TemplateResponseObject} - */ - TemplateResponseObject, - - /** - * The Unauthorized model constructor. - * @property {module:model/Unauthorized} - */ - Unauthorized, - - /** - * The UpdateActivityPlanItemResponse model constructor. - * @property {module:model/UpdateActivityPlanItemResponse} - */ - UpdateActivityPlanItemResponse, - - /** - * The UpdateActivityResponse model constructor. - * @property {module:model/UpdateActivityResponse} - */ - UpdateActivityResponse, - - /** - * The UpdateDealParameters model constructor. - * @property {module:model/UpdateDealParameters} - */ - UpdateDealParameters, - - /** - * The UpdateDealProduct model constructor. - * @property {module:model/UpdateDealProduct} - */ - UpdateDealProduct, - - /** - * The UpdateDealRequest model constructor. - * @property {module:model/UpdateDealRequest} - */ - UpdateDealRequest, - - /** - * The UpdateFile model constructor. - * @property {module:model/UpdateFile} - */ - UpdateFile, - - /** - * The UpdateFilterRequest model constructor. - * @property {module:model/UpdateFilterRequest} - */ - UpdateFilterRequest, - - /** - * The UpdateLeadLabelRequest model constructor. - * @property {module:model/UpdateLeadLabelRequest} - */ - UpdateLeadLabelRequest, - - /** - * The UpdateLeadRequest model constructor. - * @property {module:model/UpdateLeadRequest} - */ - UpdateLeadRequest, - - /** - * The UpdateOrganization model constructor. - * @property {module:model/UpdateOrganization} - */ - UpdateOrganization, - - /** - * The UpdateOrganizationAllOf model constructor. - * @property {module:model/UpdateOrganizationAllOf} - */ - UpdateOrganizationAllOf, - - /** - * The UpdatePerson model constructor. - * @property {module:model/UpdatePerson} - */ - UpdatePerson, - - /** - * The UpdatePersonAllOf model constructor. - * @property {module:model/UpdatePersonAllOf} - */ - UpdatePersonAllOf, - - /** - * The UpdatePersonResponse model constructor. - * @property {module:model/UpdatePersonResponse} - */ - UpdatePersonResponse, - - /** - * The UpdateProductField model constructor. - * @property {module:model/UpdateProductField} - */ - UpdateProductField, - - /** - * The UpdateProductRequestBody model constructor. - * @property {module:model/UpdateProductRequestBody} - */ - UpdateProductRequestBody, - - /** - * The UpdateProductResponse model constructor. - * @property {module:model/UpdateProductResponse} - */ - UpdateProductResponse, - - /** - * The UpdateProjectResponse model constructor. - * @property {module:model/UpdateProjectResponse} - */ - UpdateProjectResponse, - - /** - * The UpdateStageRequest model constructor. - * @property {module:model/UpdateStageRequest} - */ - UpdateStageRequest, - - /** - * The UpdateStageRequestAllOf model constructor. - * @property {module:model/UpdateStageRequestAllOf} - */ - UpdateStageRequestAllOf, - - /** - * The UpdateTaskPlanItemResponse model constructor. - * @property {module:model/UpdateTaskPlanItemResponse} - */ - UpdateTaskPlanItemResponse, - - /** - * The UpdateTaskResponse model constructor. - * @property {module:model/UpdateTaskResponse} - */ - UpdateTaskResponse, - - /** - * The UpdateTeam model constructor. - * @property {module:model/UpdateTeam} - */ - UpdateTeam, - - /** - * The UpdateTeamAllOf model constructor. - * @property {module:model/UpdateTeamAllOf} - */ - UpdateTeamAllOf, - - /** - * The UpdateTeamWithAdditionalProperties model constructor. - * @property {module:model/UpdateTeamWithAdditionalProperties} - */ - UpdateTeamWithAdditionalProperties, - - /** - * The UpdateUserRequest model constructor. - * @property {module:model/UpdateUserRequest} - */ - UpdateUserRequest, - - /** - * The UpsertGoalResponse model constructor. - * @property {module:model/UpsertGoalResponse} - */ - UpsertGoalResponse, - - /** - * The UpsertLeadLabelResponse model constructor. - * @property {module:model/UpsertLeadLabelResponse} - */ - UpsertLeadLabelResponse, - - /** - * The User model constructor. - * @property {module:model/User} - */ - User, - - /** - * The UserAccess model constructor. - * @property {module:model/UserAccess} - */ - UserAccess, - - /** - * The UserAllOf model constructor. - * @property {module:model/UserAllOf} - */ - UserAllOf, - - /** - * The UserAssignmentToPermissionSet model constructor. - * @property {module:model/UserAssignmentToPermissionSet} - */ - UserAssignmentToPermissionSet, - - /** - * The UserAssignmentsToPermissionSet model constructor. - * @property {module:model/UserAssignmentsToPermissionSet} - */ - UserAssignmentsToPermissionSet, - - /** - * The UserAssignmentsToPermissionSetAllOf model constructor. - * @property {module:model/UserAssignmentsToPermissionSetAllOf} - */ - UserAssignmentsToPermissionSetAllOf, - - /** - * The UserConnections model constructor. - * @property {module:model/UserConnections} - */ - UserConnections, - - /** - * The UserConnectionsAllOf model constructor. - * @property {module:model/UserConnectionsAllOf} - */ - UserConnectionsAllOf, - - /** - * The UserConnectionsAllOfData model constructor. - * @property {module:model/UserConnectionsAllOfData} - */ - UserConnectionsAllOfData, - - /** - * The UserData model constructor. - * @property {module:model/UserData} - */ - UserData, - - /** - * The UserDataWithId model constructor. - * @property {module:model/UserDataWithId} - */ - UserDataWithId, - - /** - * The UserIDs model constructor. - * @property {module:model/UserIDs} - */ - UserIDs, - - /** - * The UserIDsAllOf model constructor. - * @property {module:model/UserIDsAllOf} - */ - UserIDsAllOf, - - /** - * The UserMe model constructor. - * @property {module:model/UserMe} - */ - UserMe, - - /** - * The UserMeAllOf model constructor. - * @property {module:model/UserMeAllOf} - */ - UserMeAllOf, - - /** - * The UserPermissions model constructor. - * @property {module:model/UserPermissions} - */ - UserPermissions, - - /** - * The UserPermissionsAllOf model constructor. - * @property {module:model/UserPermissionsAllOf} - */ - UserPermissionsAllOf, - - /** - * The UserPermissionsItem model constructor. - * @property {module:model/UserPermissionsItem} - */ - UserPermissionsItem, - - /** - * The UserProviderLinkCreateRequest model constructor. - * @property {module:model/UserProviderLinkCreateRequest} - */ - UserProviderLinkCreateRequest, - - /** - * The UserProviderLinkErrorResponse model constructor. - * @property {module:model/UserProviderLinkErrorResponse} - */ - UserProviderLinkErrorResponse, - - /** - * The UserProviderLinkSuccessResponse model constructor. - * @property {module:model/UserProviderLinkSuccessResponse} - */ - UserProviderLinkSuccessResponse, - - /** - * The UserProviderLinkSuccessResponseData model constructor. - * @property {module:model/UserProviderLinkSuccessResponseData} - */ - UserProviderLinkSuccessResponseData, - - /** - * The UserSettings model constructor. - * @property {module:model/UserSettings} - */ - UserSettings, - - /** - * The UserSettingsAllOf model constructor. - * @property {module:model/UserSettingsAllOf} - */ - UserSettingsAllOf, - - /** - * The UserSettingsItem model constructor. - * @property {module:model/UserSettingsItem} - */ - UserSettingsItem, - - /** - * The Users model constructor. - * @property {module:model/Users} - */ - Users, - - /** - * The UsersAllOf model constructor. - * @property {module:model/UsersAllOf} - */ - UsersAllOf, - - /** - * The VisibleTo model constructor. - * @property {module:model/VisibleTo} - */ - VisibleTo, - - /** - * The Webhook model constructor. - * @property {module:model/Webhook} - */ - Webhook, - - /** - * The WebhookAllOf model constructor. - * @property {module:model/WebhookAllOf} - */ - WebhookAllOf, - - /** - * The WebhookBadRequest model constructor. - * @property {module:model/WebhookBadRequest} - */ - WebhookBadRequest, - - /** - * The WebhookBadRequestAllOf model constructor. - * @property {module:model/WebhookBadRequestAllOf} - */ - WebhookBadRequestAllOf, - - /** - * The Webhooks model constructor. - * @property {module:model/Webhooks} - */ - Webhooks, - - /** - * The WebhooksAllOf model constructor. - * @property {module:model/WebhooksAllOf} - */ - WebhooksAllOf, - - /** - * The WebhooksDeleteForbiddenSchema model constructor. - * @property {module:model/WebhooksDeleteForbiddenSchema} - */ - WebhooksDeleteForbiddenSchema, - - /** - * The WebhooksDeleteForbiddenSchemaAllOf model constructor. - * @property {module:model/WebhooksDeleteForbiddenSchemaAllOf} - */ - WebhooksDeleteForbiddenSchemaAllOf, - - /** - * The ActivitiesApi service constructor. - * @property {module:api/ActivitiesApi} - */ - ActivitiesApi, - - /** - * The ActivityFieldsApi service constructor. - * @property {module:api/ActivityFieldsApi} - */ - ActivityFieldsApi, - - /** - * The ActivityTypesApi service constructor. - * @property {module:api/ActivityTypesApi} - */ - ActivityTypesApi, - - /** - * The BillingApi service constructor. - * @property {module:api/BillingApi} - */ - BillingApi, - - /** - * The CallLogsApi service constructor. - * @property {module:api/CallLogsApi} - */ - CallLogsApi, - - /** - * The ChannelsApi service constructor. - * @property {module:api/ChannelsApi} - */ - ChannelsApi, - - /** - * The CurrenciesApi service constructor. - * @property {module:api/CurrenciesApi} - */ - CurrenciesApi, - - /** - * The DealFieldsApi service constructor. - * @property {module:api/DealFieldsApi} - */ - DealFieldsApi, - - /** - * The DealsApi service constructor. - * @property {module:api/DealsApi} - */ - DealsApi, - - /** - * The FilesApi service constructor. - * @property {module:api/FilesApi} - */ - FilesApi, - - /** - * The FiltersApi service constructor. - * @property {module:api/FiltersApi} - */ - FiltersApi, - - /** - * The GoalsApi service constructor. - * @property {module:api/GoalsApi} - */ - GoalsApi, - - /** - * The ItemSearchApi service constructor. - * @property {module:api/ItemSearchApi} - */ - ItemSearchApi, - - /** - * The LeadLabelsApi service constructor. - * @property {module:api/LeadLabelsApi} - */ - LeadLabelsApi, - - /** - * The LeadSourcesApi service constructor. - * @property {module:api/LeadSourcesApi} - */ - LeadSourcesApi, - - /** - * The LeadsApi service constructor. - * @property {module:api/LeadsApi} - */ - LeadsApi, - - /** - * The LegacyTeamsApi service constructor. - * @property {module:api/LegacyTeamsApi} - */ - LegacyTeamsApi, - - /** - * The MailboxApi service constructor. - * @property {module:api/MailboxApi} - */ - MailboxApi, - - /** - * The MeetingsApi service constructor. - * @property {module:api/MeetingsApi} - */ - MeetingsApi, - - /** - * The NoteFieldsApi service constructor. - * @property {module:api/NoteFieldsApi} - */ - NoteFieldsApi, - - /** - * The NotesApi service constructor. - * @property {module:api/NotesApi} - */ - NotesApi, - - /** - * The OrganizationFieldsApi service constructor. - * @property {module:api/OrganizationFieldsApi} - */ - OrganizationFieldsApi, - - /** - * The OrganizationRelationshipsApi service constructor. - * @property {module:api/OrganizationRelationshipsApi} - */ - OrganizationRelationshipsApi, - - /** - * The OrganizationsApi service constructor. - * @property {module:api/OrganizationsApi} - */ - OrganizationsApi, - - /** - * The PermissionSetsApi service constructor. - * @property {module:api/PermissionSetsApi} - */ - PermissionSetsApi, - - /** - * The PersonFieldsApi service constructor. - * @property {module:api/PersonFieldsApi} - */ - PersonFieldsApi, - - /** - * The PersonsApi service constructor. - * @property {module:api/PersonsApi} - */ - PersonsApi, - - /** - * The PipelinesApi service constructor. - * @property {module:api/PipelinesApi} - */ - PipelinesApi, - - /** - * The ProductFieldsApi service constructor. - * @property {module:api/ProductFieldsApi} - */ - ProductFieldsApi, - - /** - * The ProductsApi service constructor. - * @property {module:api/ProductsApi} - */ - ProductsApi, - - /** - * The ProjectTemplatesApi service constructor. - * @property {module:api/ProjectTemplatesApi} - */ - ProjectTemplatesApi, - - /** - * The ProjectsApi service constructor. - * @property {module:api/ProjectsApi} - */ - ProjectsApi, - - /** - * The RecentsApi service constructor. - * @property {module:api/RecentsApi} - */ - RecentsApi, - - /** - * The RolesApi service constructor. - * @property {module:api/RolesApi} - */ - RolesApi, - - /** - * The StagesApi service constructor. - * @property {module:api/StagesApi} - */ - StagesApi, - - /** - * The SubscriptionsApi service constructor. - * @property {module:api/SubscriptionsApi} - */ - SubscriptionsApi, - - /** - * The TasksApi service constructor. - * @property {module:api/TasksApi} - */ - TasksApi, - - /** - * The UserConnectionsApi service constructor. - * @property {module:api/UserConnectionsApi} - */ - UserConnectionsApi, - - /** - * The UserSettingsApi service constructor. - * @property {module:api/UserSettingsApi} - */ - UserSettingsApi, - - /** - * The UsersApi service constructor. - * @property {module:api/UsersApi} - */ - UsersApi, - - /** - * The WebhooksApi service constructor. - * @property {module:api/WebhooksApi} - */ - WebhooksApi -}; diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 00000000..a59f66b3 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,2 @@ +export * as v1 from './versions/v1'; +export * as v2 from './versions/v2'; \ No newline at end of file diff --git a/src/model/ActivityCollectionResponseObject.js b/src/model/ActivityCollectionResponseObject.js deleted file mode 100644 index 2f746a52..00000000 --- a/src/model/ActivityCollectionResponseObject.js +++ /dev/null @@ -1,652 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityCollectionResponseObjectAllOf from './ActivityCollectionResponseObjectAllOf'; -import ActivityObjectFragment from './ActivityObjectFragment'; - -/** - * The ActivityCollectionResponseObject model module. - * @module model/ActivityCollectionResponseObject - * @version 1.0.0 - */ -class ActivityCollectionResponseObject { - /** - * Constructs a new ActivityCollectionResponseObject. - * @alias module:model/ActivityCollectionResponseObject - * @implements module:model/ActivityObjectFragment - * @implements module:model/ActivityCollectionResponseObjectAllOf - */ - constructor() { - ActivityObjectFragment.initialize(this);ActivityCollectionResponseObjectAllOf.initialize(this); - ActivityCollectionResponseObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityCollectionResponseObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityCollectionResponseObject} obj Optional instance to populate. - * @return {module:model/ActivityCollectionResponseObject} The populated ActivityCollectionResponseObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityCollectionResponseObject(); - ActivityObjectFragment.constructFromObject(data, obj); - ActivityCollectionResponseObjectAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('due_date')) { - obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); - - delete data['due_date']; - } - if (data.hasOwnProperty('due_time')) { - obj['due_time'] = ApiClient.convertToType(data['due_time'], 'String'); - - delete data['due_time']; - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'String'); - - delete data['duration']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('project_id')) { - obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); - - delete data['project_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('location')) { - obj['location'] = ApiClient.convertToType(data['location'], 'String'); - - delete data['location']; - } - if (data.hasOwnProperty('public_description')) { - obj['public_description'] = ApiClient.convertToType(data['public_description'], 'String'); - - delete data['public_description']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], 'Boolean'); - - delete data['done']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('busy_flag')) { - obj['busy_flag'] = ApiClient.convertToType(data['busy_flag'], 'Boolean'); - - delete data['busy_flag']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('conference_meeting_client')) { - obj['conference_meeting_client'] = ApiClient.convertToType(data['conference_meeting_client'], 'String'); - - delete data['conference_meeting_client']; - } - if (data.hasOwnProperty('conference_meeting_url')) { - obj['conference_meeting_url'] = ApiClient.convertToType(data['conference_meeting_url'], 'String'); - - delete data['conference_meeting_url']; - } - if (data.hasOwnProperty('conference_meeting_id')) { - obj['conference_meeting_id'] = ApiClient.convertToType(data['conference_meeting_id'], 'String'); - - delete data['conference_meeting_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('marked_as_done_time')) { - obj['marked_as_done_time'] = ApiClient.convertToType(data['marked_as_done_time'], 'String'); - - delete data['marked_as_done_time']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('update_user_id')) { - obj['update_user_id'] = ApiClient.convertToType(data['update_user_id'], 'Number'); - - delete data['update_user_id']; - } - if (data.hasOwnProperty('source_timezone')) { - obj['source_timezone'] = ApiClient.convertToType(data['source_timezone'], 'String'); - - delete data['source_timezone']; - } - if (data.hasOwnProperty('location_subpremise')) { - obj['location_subpremise'] = ApiClient.convertToType(data['location_subpremise'], 'String'); - - delete data['location_subpremise']; - } - if (data.hasOwnProperty('location_street_number')) { - obj['location_street_number'] = ApiClient.convertToType(data['location_street_number'], 'String'); - - delete data['location_street_number']; - } - if (data.hasOwnProperty('location_route')) { - obj['location_route'] = ApiClient.convertToType(data['location_route'], 'String'); - - delete data['location_route']; - } - if (data.hasOwnProperty('location_sublocality')) { - obj['location_sublocality'] = ApiClient.convertToType(data['location_sublocality'], 'String'); - - delete data['location_sublocality']; - } - if (data.hasOwnProperty('location_locality')) { - obj['location_locality'] = ApiClient.convertToType(data['location_locality'], 'String'); - - delete data['location_locality']; - } - if (data.hasOwnProperty('location_admin_area_level_1')) { - obj['location_admin_area_level_1'] = ApiClient.convertToType(data['location_admin_area_level_1'], 'String'); - - delete data['location_admin_area_level_1']; - } - if (data.hasOwnProperty('location_admin_area_level_2')) { - obj['location_admin_area_level_2'] = ApiClient.convertToType(data['location_admin_area_level_2'], 'String'); - - delete data['location_admin_area_level_2']; - } - if (data.hasOwnProperty('location_country')) { - obj['location_country'] = ApiClient.convertToType(data['location_country'], 'String'); - - delete data['location_country']; - } - if (data.hasOwnProperty('location_postal_code')) { - obj['location_postal_code'] = ApiClient.convertToType(data['location_postal_code'], 'String'); - - delete data['location_postal_code']; - } - if (data.hasOwnProperty('location_formatted_address')) { - obj['location_formatted_address'] = ApiClient.convertToType(data['location_formatted_address'], 'String'); - - delete data['location_formatted_address']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The due date of the activity. Format: YYYY-MM-DD - * @member {Date} due_date - */ -ActivityCollectionResponseObject.prototype['due_date'] = undefined; - -/** - * The due time of the activity in UTC. Format: HH:MM - * @member {String} due_time - */ -ActivityCollectionResponseObject.prototype['due_time'] = undefined; - -/** - * The duration of the activity. Format: HH:MM - * @member {String} duration - */ -ActivityCollectionResponseObject.prototype['duration'] = undefined; - -/** - * The ID of the deal this activity is associated with - * @member {Number} deal_id - */ -ActivityCollectionResponseObject.prototype['deal_id'] = undefined; - -/** - * The ID of the lead in the UUID format this activity is associated with - * @member {String} lead_id - */ -ActivityCollectionResponseObject.prototype['lead_id'] = undefined; - -/** - * The ID of the person this activity is associated with - * @member {Number} person_id - */ -ActivityCollectionResponseObject.prototype['person_id'] = undefined; - -/** - * The ID of the project this activity is associated with - * @member {Number} project_id - */ -ActivityCollectionResponseObject.prototype['project_id'] = undefined; - -/** - * The ID of the organization this activity is associated with - * @member {Number} org_id - */ -ActivityCollectionResponseObject.prototype['org_id'] = undefined; - -/** - * The address of the activity. - * @member {String} location - */ -ActivityCollectionResponseObject.prototype['location'] = undefined; - -/** - * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. - * @member {String} public_description - */ -ActivityCollectionResponseObject.prototype['public_description'] = undefined; - -/** - * The ID of the activity, generated when the activity was created - * @member {Number} id - */ -ActivityCollectionResponseObject.prototype['id'] = undefined; - -/** - * Whether the activity is done or not - * @member {Boolean} done - */ -ActivityCollectionResponseObject.prototype['done'] = undefined; - -/** - * The subject of the activity - * @member {String} subject - */ -ActivityCollectionResponseObject.prototype['subject'] = undefined; - -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @member {String} type - */ -ActivityCollectionResponseObject.prototype['type'] = undefined; - -/** - * The ID of the user whom the activity is assigned to - * @member {Number} user_id - */ -ActivityCollectionResponseObject.prototype['user_id'] = undefined; - -/** - * Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityCollectionResponseObject.prototype['busy_flag'] = undefined; - -/** - * The user's company ID - * @member {Number} company_id - */ -ActivityCollectionResponseObject.prototype['company_id'] = undefined; - -/** - * The ID of the Marketplace app, which is connected to this activity - * @member {String} conference_meeting_client - */ -ActivityCollectionResponseObject.prototype['conference_meeting_client'] = undefined; - -/** - * The link to join the meeting which is associated with this activity - * @member {String} conference_meeting_url - */ -ActivityCollectionResponseObject.prototype['conference_meeting_url'] = undefined; - -/** - * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity - * @member {String} conference_meeting_id - */ -ActivityCollectionResponseObject.prototype['conference_meeting_id'] = undefined; - -/** - * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -ActivityCollectionResponseObject.prototype['add_time'] = undefined; - -/** - * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} marked_as_done_time - */ -ActivityCollectionResponseObject.prototype['marked_as_done_time'] = undefined; - -/** - * Whether the activity is active or not - * @member {Boolean} active_flag - */ -ActivityCollectionResponseObject.prototype['active_flag'] = undefined; - -/** - * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -ActivityCollectionResponseObject.prototype['update_time'] = undefined; - -/** - * The ID of the user who was the last to update this activity - * @member {Number} update_user_id - */ -ActivityCollectionResponseObject.prototype['update_user_id'] = undefined; - -/** - * The timezone the activity was created in an external calendar - * @member {String} source_timezone - */ -ActivityCollectionResponseObject.prototype['source_timezone'] = undefined; - -/** - * A subfield of the location field. Indicates apartment/suite number. - * @member {String} location_subpremise - */ -ActivityCollectionResponseObject.prototype['location_subpremise'] = undefined; - -/** - * A subfield of the location field. Indicates house number. - * @member {String} location_street_number - */ -ActivityCollectionResponseObject.prototype['location_street_number'] = undefined; - -/** - * A subfield of the location field. Indicates street name. - * @member {String} location_route - */ -ActivityCollectionResponseObject.prototype['location_route'] = undefined; - -/** - * A subfield of the location field. Indicates district/sublocality. - * @member {String} location_sublocality - */ -ActivityCollectionResponseObject.prototype['location_sublocality'] = undefined; - -/** - * A subfield of the location field. Indicates city/town/village/locality. - * @member {String} location_locality - */ -ActivityCollectionResponseObject.prototype['location_locality'] = undefined; - -/** - * A subfield of the location field. Indicates state/county. - * @member {String} location_admin_area_level_1 - */ -ActivityCollectionResponseObject.prototype['location_admin_area_level_1'] = undefined; - -/** - * A subfield of the location field. Indicates region. - * @member {String} location_admin_area_level_2 - */ -ActivityCollectionResponseObject.prototype['location_admin_area_level_2'] = undefined; - -/** - * A subfield of the location field. Indicates country. - * @member {String} location_country - */ -ActivityCollectionResponseObject.prototype['location_country'] = undefined; - -/** - * A subfield of the location field. Indicates ZIP/postal code. - * @member {String} location_postal_code - */ -ActivityCollectionResponseObject.prototype['location_postal_code'] = undefined; - -/** - * A subfield of the location field. Indicates full/combined address. - * @member {String} location_formatted_address - */ -ActivityCollectionResponseObject.prototype['location_formatted_address'] = undefined; - - -// Implement ActivityObjectFragment interface: -/** - * The due date of the activity. Format: YYYY-MM-DD - * @member {Date} due_date - */ -ActivityObjectFragment.prototype['due_date'] = undefined; -/** - * The due time of the activity in UTC. Format: HH:MM - * @member {String} due_time - */ -ActivityObjectFragment.prototype['due_time'] = undefined; -/** - * The duration of the activity. Format: HH:MM - * @member {String} duration - */ -ActivityObjectFragment.prototype['duration'] = undefined; -/** - * The ID of the deal this activity is associated with - * @member {Number} deal_id - */ -ActivityObjectFragment.prototype['deal_id'] = undefined; -/** - * The ID of the lead in the UUID format this activity is associated with - * @member {String} lead_id - */ -ActivityObjectFragment.prototype['lead_id'] = undefined; -/** - * The ID of the person this activity is associated with - * @member {Number} person_id - */ -ActivityObjectFragment.prototype['person_id'] = undefined; -/** - * The ID of the project this activity is associated with - * @member {Number} project_id - */ -ActivityObjectFragment.prototype['project_id'] = undefined; -/** - * The ID of the organization this activity is associated with - * @member {Number} org_id - */ -ActivityObjectFragment.prototype['org_id'] = undefined; -/** - * The address of the activity. - * @member {String} location - */ -ActivityObjectFragment.prototype['location'] = undefined; -/** - * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. - * @member {String} public_description - */ -ActivityObjectFragment.prototype['public_description'] = undefined; -// Implement ActivityCollectionResponseObjectAllOf interface: -/** - * The ID of the activity, generated when the activity was created - * @member {Number} id - */ -ActivityCollectionResponseObjectAllOf.prototype['id'] = undefined; -/** - * Whether the activity is done or not - * @member {Boolean} done - */ -ActivityCollectionResponseObjectAllOf.prototype['done'] = undefined; -/** - * The subject of the activity - * @member {String} subject - */ -ActivityCollectionResponseObjectAllOf.prototype['subject'] = undefined; -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @member {String} type - */ -ActivityCollectionResponseObjectAllOf.prototype['type'] = undefined; -/** - * The ID of the user whom the activity is assigned to - * @member {Number} user_id - */ -ActivityCollectionResponseObjectAllOf.prototype['user_id'] = undefined; -/** - * Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityCollectionResponseObjectAllOf.prototype['busy_flag'] = undefined; -/** - * The user's company ID - * @member {Number} company_id - */ -ActivityCollectionResponseObjectAllOf.prototype['company_id'] = undefined; -/** - * The ID of the Marketplace app, which is connected to this activity - * @member {String} conference_meeting_client - */ -ActivityCollectionResponseObjectAllOf.prototype['conference_meeting_client'] = undefined; -/** - * The link to join the meeting which is associated with this activity - * @member {String} conference_meeting_url - */ -ActivityCollectionResponseObjectAllOf.prototype['conference_meeting_url'] = undefined; -/** - * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity - * @member {String} conference_meeting_id - */ -ActivityCollectionResponseObjectAllOf.prototype['conference_meeting_id'] = undefined; -/** - * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -ActivityCollectionResponseObjectAllOf.prototype['add_time'] = undefined; -/** - * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} marked_as_done_time - */ -ActivityCollectionResponseObjectAllOf.prototype['marked_as_done_time'] = undefined; -/** - * Whether the activity is active or not - * @member {Boolean} active_flag - */ -ActivityCollectionResponseObjectAllOf.prototype['active_flag'] = undefined; -/** - * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -ActivityCollectionResponseObjectAllOf.prototype['update_time'] = undefined; -/** - * The ID of the user who was the last to update this activity - * @member {Number} update_user_id - */ -ActivityCollectionResponseObjectAllOf.prototype['update_user_id'] = undefined; -/** - * The timezone the activity was created in an external calendar - * @member {String} source_timezone - */ -ActivityCollectionResponseObjectAllOf.prototype['source_timezone'] = undefined; -/** - * A subfield of the location field. Indicates apartment/suite number. - * @member {String} location_subpremise - */ -ActivityCollectionResponseObjectAllOf.prototype['location_subpremise'] = undefined; -/** - * A subfield of the location field. Indicates house number. - * @member {String} location_street_number - */ -ActivityCollectionResponseObjectAllOf.prototype['location_street_number'] = undefined; -/** - * A subfield of the location field. Indicates street name. - * @member {String} location_route - */ -ActivityCollectionResponseObjectAllOf.prototype['location_route'] = undefined; -/** - * A subfield of the location field. Indicates district/sublocality. - * @member {String} location_sublocality - */ -ActivityCollectionResponseObjectAllOf.prototype['location_sublocality'] = undefined; -/** - * A subfield of the location field. Indicates city/town/village/locality. - * @member {String} location_locality - */ -ActivityCollectionResponseObjectAllOf.prototype['location_locality'] = undefined; -/** - * A subfield of the location field. Indicates state/county. - * @member {String} location_admin_area_level_1 - */ -ActivityCollectionResponseObjectAllOf.prototype['location_admin_area_level_1'] = undefined; -/** - * A subfield of the location field. Indicates region. - * @member {String} location_admin_area_level_2 - */ -ActivityCollectionResponseObjectAllOf.prototype['location_admin_area_level_2'] = undefined; -/** - * A subfield of the location field. Indicates country. - * @member {String} location_country - */ -ActivityCollectionResponseObjectAllOf.prototype['location_country'] = undefined; -/** - * A subfield of the location field. Indicates ZIP/postal code. - * @member {String} location_postal_code - */ -ActivityCollectionResponseObjectAllOf.prototype['location_postal_code'] = undefined; -/** - * A subfield of the location field. Indicates full/combined address. - * @member {String} location_formatted_address - */ -ActivityCollectionResponseObjectAllOf.prototype['location_formatted_address'] = undefined; - - - - -export default ActivityCollectionResponseObject; - diff --git a/src/model/ActivityCollectionResponseObjectAllOf.js b/src/model/ActivityCollectionResponseObjectAllOf.js deleted file mode 100644 index d604015f..00000000 --- a/src/model/ActivityCollectionResponseObjectAllOf.js +++ /dev/null @@ -1,354 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ActivityCollectionResponseObjectAllOf model module. - * @module model/ActivityCollectionResponseObjectAllOf - * @version 1.0.0 - */ -class ActivityCollectionResponseObjectAllOf { - /** - * Constructs a new ActivityCollectionResponseObjectAllOf. - * @alias module:model/ActivityCollectionResponseObjectAllOf - */ - constructor() { - - ActivityCollectionResponseObjectAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityCollectionResponseObjectAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityCollectionResponseObjectAllOf} obj Optional instance to populate. - * @return {module:model/ActivityCollectionResponseObjectAllOf} The populated ActivityCollectionResponseObjectAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityCollectionResponseObjectAllOf(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], 'Boolean'); - - delete data['done']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('busy_flag')) { - obj['busy_flag'] = ApiClient.convertToType(data['busy_flag'], 'Boolean'); - - delete data['busy_flag']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('conference_meeting_client')) { - obj['conference_meeting_client'] = ApiClient.convertToType(data['conference_meeting_client'], 'String'); - - delete data['conference_meeting_client']; - } - if (data.hasOwnProperty('conference_meeting_url')) { - obj['conference_meeting_url'] = ApiClient.convertToType(data['conference_meeting_url'], 'String'); - - delete data['conference_meeting_url']; - } - if (data.hasOwnProperty('conference_meeting_id')) { - obj['conference_meeting_id'] = ApiClient.convertToType(data['conference_meeting_id'], 'String'); - - delete data['conference_meeting_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('marked_as_done_time')) { - obj['marked_as_done_time'] = ApiClient.convertToType(data['marked_as_done_time'], 'String'); - - delete data['marked_as_done_time']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('update_user_id')) { - obj['update_user_id'] = ApiClient.convertToType(data['update_user_id'], 'Number'); - - delete data['update_user_id']; - } - if (data.hasOwnProperty('source_timezone')) { - obj['source_timezone'] = ApiClient.convertToType(data['source_timezone'], 'String'); - - delete data['source_timezone']; - } - if (data.hasOwnProperty('location_subpremise')) { - obj['location_subpremise'] = ApiClient.convertToType(data['location_subpremise'], 'String'); - - delete data['location_subpremise']; - } - if (data.hasOwnProperty('location_street_number')) { - obj['location_street_number'] = ApiClient.convertToType(data['location_street_number'], 'String'); - - delete data['location_street_number']; - } - if (data.hasOwnProperty('location_route')) { - obj['location_route'] = ApiClient.convertToType(data['location_route'], 'String'); - - delete data['location_route']; - } - if (data.hasOwnProperty('location_sublocality')) { - obj['location_sublocality'] = ApiClient.convertToType(data['location_sublocality'], 'String'); - - delete data['location_sublocality']; - } - if (data.hasOwnProperty('location_locality')) { - obj['location_locality'] = ApiClient.convertToType(data['location_locality'], 'String'); - - delete data['location_locality']; - } - if (data.hasOwnProperty('location_admin_area_level_1')) { - obj['location_admin_area_level_1'] = ApiClient.convertToType(data['location_admin_area_level_1'], 'String'); - - delete data['location_admin_area_level_1']; - } - if (data.hasOwnProperty('location_admin_area_level_2')) { - obj['location_admin_area_level_2'] = ApiClient.convertToType(data['location_admin_area_level_2'], 'String'); - - delete data['location_admin_area_level_2']; - } - if (data.hasOwnProperty('location_country')) { - obj['location_country'] = ApiClient.convertToType(data['location_country'], 'String'); - - delete data['location_country']; - } - if (data.hasOwnProperty('location_postal_code')) { - obj['location_postal_code'] = ApiClient.convertToType(data['location_postal_code'], 'String'); - - delete data['location_postal_code']; - } - if (data.hasOwnProperty('location_formatted_address')) { - obj['location_formatted_address'] = ApiClient.convertToType(data['location_formatted_address'], 'String'); - - delete data['location_formatted_address']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the activity, generated when the activity was created - * @member {Number} id - */ -ActivityCollectionResponseObjectAllOf.prototype['id'] = undefined; - -/** - * Whether the activity is done or not - * @member {Boolean} done - */ -ActivityCollectionResponseObjectAllOf.prototype['done'] = undefined; - -/** - * The subject of the activity - * @member {String} subject - */ -ActivityCollectionResponseObjectAllOf.prototype['subject'] = undefined; - -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @member {String} type - */ -ActivityCollectionResponseObjectAllOf.prototype['type'] = undefined; - -/** - * The ID of the user whom the activity is assigned to - * @member {Number} user_id - */ -ActivityCollectionResponseObjectAllOf.prototype['user_id'] = undefined; - -/** - * Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityCollectionResponseObjectAllOf.prototype['busy_flag'] = undefined; - -/** - * The user's company ID - * @member {Number} company_id - */ -ActivityCollectionResponseObjectAllOf.prototype['company_id'] = undefined; - -/** - * The ID of the Marketplace app, which is connected to this activity - * @member {String} conference_meeting_client - */ -ActivityCollectionResponseObjectAllOf.prototype['conference_meeting_client'] = undefined; - -/** - * The link to join the meeting which is associated with this activity - * @member {String} conference_meeting_url - */ -ActivityCollectionResponseObjectAllOf.prototype['conference_meeting_url'] = undefined; - -/** - * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity - * @member {String} conference_meeting_id - */ -ActivityCollectionResponseObjectAllOf.prototype['conference_meeting_id'] = undefined; - -/** - * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -ActivityCollectionResponseObjectAllOf.prototype['add_time'] = undefined; - -/** - * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} marked_as_done_time - */ -ActivityCollectionResponseObjectAllOf.prototype['marked_as_done_time'] = undefined; - -/** - * Whether the activity is active or not - * @member {Boolean} active_flag - */ -ActivityCollectionResponseObjectAllOf.prototype['active_flag'] = undefined; - -/** - * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -ActivityCollectionResponseObjectAllOf.prototype['update_time'] = undefined; - -/** - * The ID of the user who was the last to update this activity - * @member {Number} update_user_id - */ -ActivityCollectionResponseObjectAllOf.prototype['update_user_id'] = undefined; - -/** - * The timezone the activity was created in an external calendar - * @member {String} source_timezone - */ -ActivityCollectionResponseObjectAllOf.prototype['source_timezone'] = undefined; - -/** - * A subfield of the location field. Indicates apartment/suite number. - * @member {String} location_subpremise - */ -ActivityCollectionResponseObjectAllOf.prototype['location_subpremise'] = undefined; - -/** - * A subfield of the location field. Indicates house number. - * @member {String} location_street_number - */ -ActivityCollectionResponseObjectAllOf.prototype['location_street_number'] = undefined; - -/** - * A subfield of the location field. Indicates street name. - * @member {String} location_route - */ -ActivityCollectionResponseObjectAllOf.prototype['location_route'] = undefined; - -/** - * A subfield of the location field. Indicates district/sublocality. - * @member {String} location_sublocality - */ -ActivityCollectionResponseObjectAllOf.prototype['location_sublocality'] = undefined; - -/** - * A subfield of the location field. Indicates city/town/village/locality. - * @member {String} location_locality - */ -ActivityCollectionResponseObjectAllOf.prototype['location_locality'] = undefined; - -/** - * A subfield of the location field. Indicates state/county. - * @member {String} location_admin_area_level_1 - */ -ActivityCollectionResponseObjectAllOf.prototype['location_admin_area_level_1'] = undefined; - -/** - * A subfield of the location field. Indicates region. - * @member {String} location_admin_area_level_2 - */ -ActivityCollectionResponseObjectAllOf.prototype['location_admin_area_level_2'] = undefined; - -/** - * A subfield of the location field. Indicates country. - * @member {String} location_country - */ -ActivityCollectionResponseObjectAllOf.prototype['location_country'] = undefined; - -/** - * A subfield of the location field. Indicates ZIP/postal code. - * @member {String} location_postal_code - */ -ActivityCollectionResponseObjectAllOf.prototype['location_postal_code'] = undefined; - -/** - * A subfield of the location field. Indicates full/combined address. - * @member {String} location_formatted_address - */ -ActivityCollectionResponseObjectAllOf.prototype['location_formatted_address'] = undefined; - - - - - - -export default ActivityCollectionResponseObjectAllOf; - diff --git a/src/model/ActivityDistributionData.js b/src/model/ActivityDistributionData.js deleted file mode 100644 index d165a209..00000000 --- a/src/model/ActivityDistributionData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityDistributionDataActivityDistribution from './ActivityDistributionDataActivityDistribution'; - -/** - * The ActivityDistributionData model module. - * @module model/ActivityDistributionData - * @version 1.0.0 - */ -class ActivityDistributionData { - /** - * Constructs a new ActivityDistributionData. - * @alias module:model/ActivityDistributionData - */ - constructor() { - - ActivityDistributionData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityDistributionData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityDistributionData} obj Optional instance to populate. - * @return {module:model/ActivityDistributionData} The populated ActivityDistributionData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityDistributionData(); - - if (data.hasOwnProperty('activity_distribution')) { - obj['activity_distribution'] = ActivityDistributionDataActivityDistribution.constructFromObject(data['activity_distribution']); - - delete data['activity_distribution']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ActivityDistributionDataActivityDistribution} activity_distribution - */ -ActivityDistributionData.prototype['activity_distribution'] = undefined; - - - - - - -export default ActivityDistributionData; - diff --git a/src/model/ActivityDistributionDataActivityDistribution.js b/src/model/ActivityDistributionDataActivityDistribution.js deleted file mode 100644 index e29b76a4..00000000 --- a/src/model/ActivityDistributionDataActivityDistribution.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID from './ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID'; - -/** - * The ActivityDistributionDataActivityDistribution model module. - * @module model/ActivityDistributionDataActivityDistribution - * @version 1.0.0 - */ -class ActivityDistributionDataActivityDistribution { - /** - * Constructs a new ActivityDistributionDataActivityDistribution. - * The distribution of activities related to the organization grouped by the user ID - * @alias module:model/ActivityDistributionDataActivityDistribution - */ - constructor() { - - ActivityDistributionDataActivityDistribution.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityDistributionDataActivityDistribution from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityDistributionDataActivityDistribution} obj Optional instance to populate. - * @return {module:model/ActivityDistributionDataActivityDistribution} The populated ActivityDistributionDataActivityDistribution instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityDistributionDataActivityDistribution(); - - if (data.hasOwnProperty('ASSIGNED_TO_USER_ID')) { - obj['ASSIGNED_TO_USER_ID'] = ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.constructFromObject(data['ASSIGNED_TO_USER_ID']); - - delete data['ASSIGNED_TO_USER_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID} ASSIGNED_TO_USER_ID - */ -ActivityDistributionDataActivityDistribution.prototype['ASSIGNED_TO_USER_ID'] = undefined; - - - - - - -export default ActivityDistributionDataActivityDistribution; - diff --git a/src/model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.js b/src/model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.js deleted file mode 100644 index 72987f54..00000000 --- a/src/model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities from './ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities'; - -/** - * The ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID model module. - * @module model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID - * @version 1.0.0 - */ -class ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID { - /** - * Constructs a new ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID. - * The ID of the user - * @alias module:model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID - */ - constructor() { - - ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID} obj Optional instance to populate. - * @return {module:model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID} The populated ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID(); - - if (data.hasOwnProperty('activities')) { - obj['activities'] = ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.constructFromObject(data['activities']); - - delete data['activities']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('activity_count')) { - obj['activity_count'] = ApiClient.convertToType(data['activity_count'], 'Number'); - - delete data['activity_count']; - } - if (data.hasOwnProperty('share')) { - obj['share'] = ApiClient.convertToType(data['share'], 'Number'); - - delete data['share']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities} activities - */ -ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.prototype['activities'] = undefined; - -/** - * The name of the user - * @member {String} name - */ -ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.prototype['name'] = undefined; - -/** - * The overall count of activities for the user - * @member {Number} activity_count - */ -ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.prototype['activity_count'] = undefined; - -/** - * The percentage of activities belongs to the user - * @member {Number} share - */ -ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID.prototype['share'] = undefined; - - - - - - -export default ActivityDistributionDataActivityDistributionASSIGNEDTOUSERID; - diff --git a/src/model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.js b/src/model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.js deleted file mode 100644 index 4c5699fc..00000000 --- a/src/model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities model module. - * @module model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities - * @version 1.0.0 - */ -class ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities { - /** - * Constructs a new ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities. - * The count of activities related to the user grouped by activity type - * @alias module:model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities - */ - constructor() { - - ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities} obj Optional instance to populate. - * @return {module:model/ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities} The populated ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities(); - - if (data.hasOwnProperty('ACTIVITY_TYPE_NAME')) { - obj['ACTIVITY_TYPE_NAME'] = ApiClient.convertToType(data['ACTIVITY_TYPE_NAME'], 'Number'); - - delete data['ACTIVITY_TYPE_NAME']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of activities related to a specific type - * @member {Number} ACTIVITY_TYPE_NAME - */ -ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities.prototype['ACTIVITY_TYPE_NAME'] = undefined; - - - - - - -export default ActivityDistributionDataActivityDistributionASSIGNEDTOUSERIDActivities; - diff --git a/src/model/ActivityDistributionDataWithAdditionalData.js b/src/model/ActivityDistributionDataWithAdditionalData.js deleted file mode 100644 index 3e3e2488..00000000 --- a/src/model/ActivityDistributionDataWithAdditionalData.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityDistributionData from './ActivityDistributionData'; -import ActivityDistributionDataActivityDistribution from './ActivityDistributionDataActivityDistribution'; -import AdditionalData from './AdditionalData'; - -/** - * The ActivityDistributionDataWithAdditionalData model module. - * @module model/ActivityDistributionDataWithAdditionalData - * @version 1.0.0 - */ -class ActivityDistributionDataWithAdditionalData { - /** - * Constructs a new ActivityDistributionDataWithAdditionalData. - * @alias module:model/ActivityDistributionDataWithAdditionalData - * @implements module:model/ActivityDistributionData - * @implements module:model/AdditionalData - */ - constructor() { - ActivityDistributionData.initialize(this);AdditionalData.initialize(this); - ActivityDistributionDataWithAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityDistributionDataWithAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityDistributionDataWithAdditionalData} obj Optional instance to populate. - * @return {module:model/ActivityDistributionDataWithAdditionalData} The populated ActivityDistributionDataWithAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityDistributionDataWithAdditionalData(); - ActivityDistributionData.constructFromObject(data, obj); - AdditionalData.constructFromObject(data, obj); - - if (data.hasOwnProperty('activity_distribution')) { - obj['activity_distribution'] = ActivityDistributionDataActivityDistribution.constructFromObject(data['activity_distribution']); - - delete data['activity_distribution']; - } - if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number'); - - delete data['start']; - } - if (data.hasOwnProperty('limit')) { - obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); - - delete data['limit']; - } - if (data.hasOwnProperty('more_items_in_collection')) { - obj['more_items_in_collection'] = ApiClient.convertToType(data['more_items_in_collection'], 'Boolean'); - - delete data['more_items_in_collection']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ActivityDistributionDataActivityDistribution} activity_distribution - */ -ActivityDistributionDataWithAdditionalData.prototype['activity_distribution'] = undefined; - -/** - * Pagination start - * @member {Number} start - */ -ActivityDistributionDataWithAdditionalData.prototype['start'] = undefined; - -/** - * Items shown per page - * @member {Number} limit - */ -ActivityDistributionDataWithAdditionalData.prototype['limit'] = undefined; - -/** - * If there are more list items in the collection than displayed or not - * @member {Boolean} more_items_in_collection - */ -ActivityDistributionDataWithAdditionalData.prototype['more_items_in_collection'] = undefined; - - -// Implement ActivityDistributionData interface: -/** - * @member {module:model/ActivityDistributionDataActivityDistribution} activity_distribution - */ -ActivityDistributionData.prototype['activity_distribution'] = undefined; -// Implement AdditionalData interface: -/** - * Pagination start - * @member {Number} start - */ -AdditionalData.prototype['start'] = undefined; -/** - * Items shown per page - * @member {Number} limit - */ -AdditionalData.prototype['limit'] = undefined; -/** - * If there are more list items in the collection than displayed or not - * @member {Boolean} more_items_in_collection - */ -AdditionalData.prototype['more_items_in_collection'] = undefined; - - - - -export default ActivityDistributionDataWithAdditionalData; - diff --git a/src/model/ActivityInfo.js b/src/model/ActivityInfo.js deleted file mode 100644 index 16ebec66..00000000 --- a/src/model/ActivityInfo.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ActivityInfo model module. - * @module model/ActivityInfo - * @version 1.0.0 - */ -class ActivityInfo { - /** - * Constructs a new ActivityInfo. - * @alias module:model/ActivityInfo - */ - constructor() { - - ActivityInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityInfo} obj Optional instance to populate. - * @return {module:model/ActivityInfo} The populated ActivityInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityInfo(); - - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -ActivityInfo.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -ActivityInfo.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -ActivityInfo.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -ActivityInfo.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -ActivityInfo.prototype['last_activity_date'] = undefined; - - - - - - -export default ActivityInfo; - diff --git a/src/model/ActivityObjectFragment.js b/src/model/ActivityObjectFragment.js deleted file mode 100644 index 19c6f847..00000000 --- a/src/model/ActivityObjectFragment.js +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ActivityObjectFragment model module. - * @module model/ActivityObjectFragment - * @version 1.0.0 - */ -class ActivityObjectFragment { - /** - * Constructs a new ActivityObjectFragment. - * @alias module:model/ActivityObjectFragment - */ - constructor() { - - ActivityObjectFragment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityObjectFragment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityObjectFragment} obj Optional instance to populate. - * @return {module:model/ActivityObjectFragment} The populated ActivityObjectFragment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityObjectFragment(); - - if (data.hasOwnProperty('due_date')) { - obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); - - delete data['due_date']; - } - if (data.hasOwnProperty('due_time')) { - obj['due_time'] = ApiClient.convertToType(data['due_time'], 'String'); - - delete data['due_time']; - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'String'); - - delete data['duration']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('project_id')) { - obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); - - delete data['project_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('location')) { - obj['location'] = ApiClient.convertToType(data['location'], 'String'); - - delete data['location']; - } - if (data.hasOwnProperty('public_description')) { - obj['public_description'] = ApiClient.convertToType(data['public_description'], 'String'); - - delete data['public_description']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The due date of the activity. Format: YYYY-MM-DD - * @member {Date} due_date - */ -ActivityObjectFragment.prototype['due_date'] = undefined; - -/** - * The due time of the activity in UTC. Format: HH:MM - * @member {String} due_time - */ -ActivityObjectFragment.prototype['due_time'] = undefined; - -/** - * The duration of the activity. Format: HH:MM - * @member {String} duration - */ -ActivityObjectFragment.prototype['duration'] = undefined; - -/** - * The ID of the deal this activity is associated with - * @member {Number} deal_id - */ -ActivityObjectFragment.prototype['deal_id'] = undefined; - -/** - * The ID of the lead in the UUID format this activity is associated with - * @member {String} lead_id - */ -ActivityObjectFragment.prototype['lead_id'] = undefined; - -/** - * The ID of the person this activity is associated with - * @member {Number} person_id - */ -ActivityObjectFragment.prototype['person_id'] = undefined; - -/** - * The ID of the project this activity is associated with - * @member {Number} project_id - */ -ActivityObjectFragment.prototype['project_id'] = undefined; - -/** - * The ID of the organization this activity is associated with - * @member {Number} org_id - */ -ActivityObjectFragment.prototype['org_id'] = undefined; - -/** - * The address of the activity. - * @member {String} location - */ -ActivityObjectFragment.prototype['location'] = undefined; - -/** - * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. - * @member {String} public_description - */ -ActivityObjectFragment.prototype['public_description'] = undefined; - - - - - - -export default ActivityObjectFragment; - diff --git a/src/model/ActivityPostObject.js b/src/model/ActivityPostObject.js deleted file mode 100644 index 7c84024f..00000000 --- a/src/model/ActivityPostObject.js +++ /dev/null @@ -1,365 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityObjectFragment from './ActivityObjectFragment'; -import ActivityPostObjectAllOf from './ActivityPostObjectAllOf'; -import NumberBoolean from './NumberBoolean'; - -/** - * The ActivityPostObject model module. - * @module model/ActivityPostObject - * @version 1.0.0 - */ -class ActivityPostObject { - /** - * Constructs a new ActivityPostObject. - * @alias module:model/ActivityPostObject - * @implements module:model/ActivityObjectFragment - * @implements module:model/ActivityPostObjectAllOf - */ - constructor() { - ActivityObjectFragment.initialize(this);ActivityPostObjectAllOf.initialize(this); - ActivityPostObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityPostObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityPostObject} obj Optional instance to populate. - * @return {module:model/ActivityPostObject} The populated ActivityPostObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityPostObject(); - ActivityObjectFragment.constructFromObject(data, obj); - ActivityPostObjectAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('due_date')) { - obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); - - delete data['due_date']; - } - if (data.hasOwnProperty('due_time')) { - obj['due_time'] = ApiClient.convertToType(data['due_time'], 'String'); - - delete data['due_time']; - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'String'); - - delete data['duration']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('project_id')) { - obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); - - delete data['project_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('location')) { - obj['location'] = ApiClient.convertToType(data['location'], 'String'); - - delete data['location']; - } - if (data.hasOwnProperty('public_description')) { - obj['public_description'] = ApiClient.convertToType(data['public_description'], 'String'); - - delete data['public_description']; - } - if (data.hasOwnProperty('note')) { - obj['note'] = ApiClient.convertToType(data['note'], 'String'); - - delete data['note']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('participants')) { - obj['participants'] = ApiClient.convertToType(data['participants'], [Object]); - - delete data['participants']; - } - if (data.hasOwnProperty('busy_flag')) { - obj['busy_flag'] = ApiClient.convertToType(data['busy_flag'], 'Boolean'); - - delete data['busy_flag']; - } - if (data.hasOwnProperty('attendees')) { - obj['attendees'] = ApiClient.convertToType(data['attendees'], [Object]); - - delete data['attendees']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); - - delete data['done']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The due date of the activity. Format: YYYY-MM-DD - * @member {Date} due_date - */ -ActivityPostObject.prototype['due_date'] = undefined; - -/** - * The due time of the activity in UTC. Format: HH:MM - * @member {String} due_time - */ -ActivityPostObject.prototype['due_time'] = undefined; - -/** - * The duration of the activity. Format: HH:MM - * @member {String} duration - */ -ActivityPostObject.prototype['duration'] = undefined; - -/** - * The ID of the deal this activity is associated with - * @member {Number} deal_id - */ -ActivityPostObject.prototype['deal_id'] = undefined; - -/** - * The ID of the lead in the UUID format this activity is associated with - * @member {String} lead_id - */ -ActivityPostObject.prototype['lead_id'] = undefined; - -/** - * The ID of the person this activity is associated with - * @member {Number} person_id - */ -ActivityPostObject.prototype['person_id'] = undefined; - -/** - * The ID of the project this activity is associated with - * @member {Number} project_id - */ -ActivityPostObject.prototype['project_id'] = undefined; - -/** - * The ID of the organization this activity is associated with - * @member {Number} org_id - */ -ActivityPostObject.prototype['org_id'] = undefined; - -/** - * The address of the activity. - * @member {String} location - */ -ActivityPostObject.prototype['location'] = undefined; - -/** - * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. - * @member {String} public_description - */ -ActivityPostObject.prototype['public_description'] = undefined; - -/** - * The note of the activity (HTML format) - * @member {String} note - */ -ActivityPostObject.prototype['note'] = undefined; - -/** - * The subject of the activity. When value for subject is not set, it will be given a default value `Call`. - * @member {String} subject - */ -ActivityPostObject.prototype['subject'] = undefined; - -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. When value for type is not set, it will be given a default value `Call`. - * @member {String} type - */ -ActivityPostObject.prototype['type'] = undefined; - -/** - * The ID of the user whom the activity is assigned to. If omitted, the activity is assigned to the authorized user. - * @member {Number} user_id - */ -ActivityPostObject.prototype['user_id'] = undefined; - -/** - * List of multiple persons (participants) this activity is associated with. If omitted, single participant from `person_id` field is used. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` - * @member {Array.} participants - */ -ActivityPostObject.prototype['participants'] = undefined; - -/** - * Set the activity as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityPostObject.prototype['busy_flag'] = undefined; - -/** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` - * @member {Array.} attendees - */ -ActivityPostObject.prototype['attendees'] = undefined; - -/** - * Whether the activity is done or not. 0 = Not done, 1 = Done - * @member {module:model/NumberBoolean} done - */ -ActivityPostObject.prototype['done'] = undefined; - - -// Implement ActivityObjectFragment interface: -/** - * The due date of the activity. Format: YYYY-MM-DD - * @member {Date} due_date - */ -ActivityObjectFragment.prototype['due_date'] = undefined; -/** - * The due time of the activity in UTC. Format: HH:MM - * @member {String} due_time - */ -ActivityObjectFragment.prototype['due_time'] = undefined; -/** - * The duration of the activity. Format: HH:MM - * @member {String} duration - */ -ActivityObjectFragment.prototype['duration'] = undefined; -/** - * The ID of the deal this activity is associated with - * @member {Number} deal_id - */ -ActivityObjectFragment.prototype['deal_id'] = undefined; -/** - * The ID of the lead in the UUID format this activity is associated with - * @member {String} lead_id - */ -ActivityObjectFragment.prototype['lead_id'] = undefined; -/** - * The ID of the person this activity is associated with - * @member {Number} person_id - */ -ActivityObjectFragment.prototype['person_id'] = undefined; -/** - * The ID of the project this activity is associated with - * @member {Number} project_id - */ -ActivityObjectFragment.prototype['project_id'] = undefined; -/** - * The ID of the organization this activity is associated with - * @member {Number} org_id - */ -ActivityObjectFragment.prototype['org_id'] = undefined; -/** - * The address of the activity. - * @member {String} location - */ -ActivityObjectFragment.prototype['location'] = undefined; -/** - * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. - * @member {String} public_description - */ -ActivityObjectFragment.prototype['public_description'] = undefined; -// Implement ActivityPostObjectAllOf interface: -/** - * The note of the activity (HTML format) - * @member {String} note - */ -ActivityPostObjectAllOf.prototype['note'] = undefined; -/** - * The subject of the activity. When value for subject is not set, it will be given a default value `Call`. - * @member {String} subject - */ -ActivityPostObjectAllOf.prototype['subject'] = undefined; -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. When value for type is not set, it will be given a default value `Call`. - * @member {String} type - */ -ActivityPostObjectAllOf.prototype['type'] = undefined; -/** - * The ID of the user whom the activity is assigned to. If omitted, the activity is assigned to the authorized user. - * @member {Number} user_id - */ -ActivityPostObjectAllOf.prototype['user_id'] = undefined; -/** - * List of multiple persons (participants) this activity is associated with. If omitted, single participant from `person_id` field is used. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` - * @member {Array.} participants - */ -ActivityPostObjectAllOf.prototype['participants'] = undefined; -/** - * Set the activity as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityPostObjectAllOf.prototype['busy_flag'] = undefined; -/** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` - * @member {Array.} attendees - */ -ActivityPostObjectAllOf.prototype['attendees'] = undefined; -/** - * Whether the activity is done or not. 0 = Not done, 1 = Done - * @member {module:model/NumberBoolean} done - */ -ActivityPostObjectAllOf.prototype['done'] = undefined; - - - - -export default ActivityPostObject; - diff --git a/src/model/ActivityPostObjectAllOf.js b/src/model/ActivityPostObjectAllOf.js deleted file mode 100644 index 2fcc9c46..00000000 --- a/src/model/ActivityPostObjectAllOf.js +++ /dev/null @@ -1,157 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBoolean from './NumberBoolean'; - -/** - * The ActivityPostObjectAllOf model module. - * @module model/ActivityPostObjectAllOf - * @version 1.0.0 - */ -class ActivityPostObjectAllOf { - /** - * Constructs a new ActivityPostObjectAllOf. - * @alias module:model/ActivityPostObjectAllOf - */ - constructor() { - - ActivityPostObjectAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityPostObjectAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityPostObjectAllOf} obj Optional instance to populate. - * @return {module:model/ActivityPostObjectAllOf} The populated ActivityPostObjectAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityPostObjectAllOf(); - - if (data.hasOwnProperty('note')) { - obj['note'] = ApiClient.convertToType(data['note'], 'String'); - - delete data['note']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('participants')) { - obj['participants'] = ApiClient.convertToType(data['participants'], [Object]); - - delete data['participants']; - } - if (data.hasOwnProperty('busy_flag')) { - obj['busy_flag'] = ApiClient.convertToType(data['busy_flag'], 'Boolean'); - - delete data['busy_flag']; - } - if (data.hasOwnProperty('attendees')) { - obj['attendees'] = ApiClient.convertToType(data['attendees'], [Object]); - - delete data['attendees']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); - - delete data['done']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The note of the activity (HTML format) - * @member {String} note - */ -ActivityPostObjectAllOf.prototype['note'] = undefined; - -/** - * The subject of the activity. When value for subject is not set, it will be given a default value `Call`. - * @member {String} subject - */ -ActivityPostObjectAllOf.prototype['subject'] = undefined; - -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. When value for type is not set, it will be given a default value `Call`. - * @member {String} type - */ -ActivityPostObjectAllOf.prototype['type'] = undefined; - -/** - * The ID of the user whom the activity is assigned to. If omitted, the activity is assigned to the authorized user. - * @member {Number} user_id - */ -ActivityPostObjectAllOf.prototype['user_id'] = undefined; - -/** - * List of multiple persons (participants) this activity is associated with. If omitted, single participant from `person_id` field is used. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` - * @member {Array.} participants - */ -ActivityPostObjectAllOf.prototype['participants'] = undefined; - -/** - * Set the activity as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityPostObjectAllOf.prototype['busy_flag'] = undefined; - -/** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` - * @member {Array.} attendees - */ -ActivityPostObjectAllOf.prototype['attendees'] = undefined; - -/** - * Whether the activity is done or not. 0 = Not done, 1 = Done - * @member {module:model/NumberBoolean} done - */ -ActivityPostObjectAllOf.prototype['done'] = undefined; - - - - - - -export default ActivityPostObjectAllOf; - diff --git a/src/model/ActivityPutObject.js b/src/model/ActivityPutObject.js deleted file mode 100644 index 92c9d147..00000000 --- a/src/model/ActivityPutObject.js +++ /dev/null @@ -1,365 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityObjectFragment from './ActivityObjectFragment'; -import ActivityPutObjectAllOf from './ActivityPutObjectAllOf'; -import NumberBoolean from './NumberBoolean'; - -/** - * The ActivityPutObject model module. - * @module model/ActivityPutObject - * @version 1.0.0 - */ -class ActivityPutObject { - /** - * Constructs a new ActivityPutObject. - * @alias module:model/ActivityPutObject - * @implements module:model/ActivityObjectFragment - * @implements module:model/ActivityPutObjectAllOf - */ - constructor() { - ActivityObjectFragment.initialize(this);ActivityPutObjectAllOf.initialize(this); - ActivityPutObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityPutObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityPutObject} obj Optional instance to populate. - * @return {module:model/ActivityPutObject} The populated ActivityPutObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityPutObject(); - ActivityObjectFragment.constructFromObject(data, obj); - ActivityPutObjectAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('due_date')) { - obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); - - delete data['due_date']; - } - if (data.hasOwnProperty('due_time')) { - obj['due_time'] = ApiClient.convertToType(data['due_time'], 'String'); - - delete data['due_time']; - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'String'); - - delete data['duration']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('project_id')) { - obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); - - delete data['project_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('location')) { - obj['location'] = ApiClient.convertToType(data['location'], 'String'); - - delete data['location']; - } - if (data.hasOwnProperty('public_description')) { - obj['public_description'] = ApiClient.convertToType(data['public_description'], 'String'); - - delete data['public_description']; - } - if (data.hasOwnProperty('note')) { - obj['note'] = ApiClient.convertToType(data['note'], 'String'); - - delete data['note']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('participants')) { - obj['participants'] = ApiClient.convertToType(data['participants'], [Object]); - - delete data['participants']; - } - if (data.hasOwnProperty('busy_flag')) { - obj['busy_flag'] = ApiClient.convertToType(data['busy_flag'], 'Boolean'); - - delete data['busy_flag']; - } - if (data.hasOwnProperty('attendees')) { - obj['attendees'] = ApiClient.convertToType(data['attendees'], [Object]); - - delete data['attendees']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); - - delete data['done']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The due date of the activity. Format: YYYY-MM-DD - * @member {Date} due_date - */ -ActivityPutObject.prototype['due_date'] = undefined; - -/** - * The due time of the activity in UTC. Format: HH:MM - * @member {String} due_time - */ -ActivityPutObject.prototype['due_time'] = undefined; - -/** - * The duration of the activity. Format: HH:MM - * @member {String} duration - */ -ActivityPutObject.prototype['duration'] = undefined; - -/** - * The ID of the deal this activity is associated with - * @member {Number} deal_id - */ -ActivityPutObject.prototype['deal_id'] = undefined; - -/** - * The ID of the lead in the UUID format this activity is associated with - * @member {String} lead_id - */ -ActivityPutObject.prototype['lead_id'] = undefined; - -/** - * The ID of the person this activity is associated with - * @member {Number} person_id - */ -ActivityPutObject.prototype['person_id'] = undefined; - -/** - * The ID of the project this activity is associated with - * @member {Number} project_id - */ -ActivityPutObject.prototype['project_id'] = undefined; - -/** - * The ID of the organization this activity is associated with - * @member {Number} org_id - */ -ActivityPutObject.prototype['org_id'] = undefined; - -/** - * The address of the activity. - * @member {String} location - */ -ActivityPutObject.prototype['location'] = undefined; - -/** - * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. - * @member {String} public_description - */ -ActivityPutObject.prototype['public_description'] = undefined; - -/** - * The note of the activity (HTML format) - * @member {String} note - */ -ActivityPutObject.prototype['note'] = undefined; - -/** - * The subject of the activity - * @member {String} subject - */ -ActivityPutObject.prototype['subject'] = undefined; - -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @member {String} type - */ -ActivityPutObject.prototype['type'] = undefined; - -/** - * The ID of the user whom the activity is assigned to - * @member {Number} user_id - */ -ActivityPutObject.prototype['user_id'] = undefined; - -/** - * List of multiple persons (participants) this activity is associated with. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` - * @member {Array.} participants - */ -ActivityPutObject.prototype['participants'] = undefined; - -/** - * Set the activity as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityPutObject.prototype['busy_flag'] = undefined; - -/** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` - * @member {Array.} attendees - */ -ActivityPutObject.prototype['attendees'] = undefined; - -/** - * Whether the activity is done or not. 0 = Not done, 1 = Done - * @member {module:model/NumberBoolean} done - */ -ActivityPutObject.prototype['done'] = undefined; - - -// Implement ActivityObjectFragment interface: -/** - * The due date of the activity. Format: YYYY-MM-DD - * @member {Date} due_date - */ -ActivityObjectFragment.prototype['due_date'] = undefined; -/** - * The due time of the activity in UTC. Format: HH:MM - * @member {String} due_time - */ -ActivityObjectFragment.prototype['due_time'] = undefined; -/** - * The duration of the activity. Format: HH:MM - * @member {String} duration - */ -ActivityObjectFragment.prototype['duration'] = undefined; -/** - * The ID of the deal this activity is associated with - * @member {Number} deal_id - */ -ActivityObjectFragment.prototype['deal_id'] = undefined; -/** - * The ID of the lead in the UUID format this activity is associated with - * @member {String} lead_id - */ -ActivityObjectFragment.prototype['lead_id'] = undefined; -/** - * The ID of the person this activity is associated with - * @member {Number} person_id - */ -ActivityObjectFragment.prototype['person_id'] = undefined; -/** - * The ID of the project this activity is associated with - * @member {Number} project_id - */ -ActivityObjectFragment.prototype['project_id'] = undefined; -/** - * The ID of the organization this activity is associated with - * @member {Number} org_id - */ -ActivityObjectFragment.prototype['org_id'] = undefined; -/** - * The address of the activity. - * @member {String} location - */ -ActivityObjectFragment.prototype['location'] = undefined; -/** - * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. - * @member {String} public_description - */ -ActivityObjectFragment.prototype['public_description'] = undefined; -// Implement ActivityPutObjectAllOf interface: -/** - * The note of the activity (HTML format) - * @member {String} note - */ -ActivityPutObjectAllOf.prototype['note'] = undefined; -/** - * The subject of the activity - * @member {String} subject - */ -ActivityPutObjectAllOf.prototype['subject'] = undefined; -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @member {String} type - */ -ActivityPutObjectAllOf.prototype['type'] = undefined; -/** - * The ID of the user whom the activity is assigned to - * @member {Number} user_id - */ -ActivityPutObjectAllOf.prototype['user_id'] = undefined; -/** - * List of multiple persons (participants) this activity is associated with. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` - * @member {Array.} participants - */ -ActivityPutObjectAllOf.prototype['participants'] = undefined; -/** - * Set the activity as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityPutObjectAllOf.prototype['busy_flag'] = undefined; -/** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` - * @member {Array.} attendees - */ -ActivityPutObjectAllOf.prototype['attendees'] = undefined; -/** - * Whether the activity is done or not. 0 = Not done, 1 = Done - * @member {module:model/NumberBoolean} done - */ -ActivityPutObjectAllOf.prototype['done'] = undefined; - - - - -export default ActivityPutObject; - diff --git a/src/model/ActivityPutObjectAllOf.js b/src/model/ActivityPutObjectAllOf.js deleted file mode 100644 index 2e0a92b2..00000000 --- a/src/model/ActivityPutObjectAllOf.js +++ /dev/null @@ -1,157 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBoolean from './NumberBoolean'; - -/** - * The ActivityPutObjectAllOf model module. - * @module model/ActivityPutObjectAllOf - * @version 1.0.0 - */ -class ActivityPutObjectAllOf { - /** - * Constructs a new ActivityPutObjectAllOf. - * @alias module:model/ActivityPutObjectAllOf - */ - constructor() { - - ActivityPutObjectAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityPutObjectAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityPutObjectAllOf} obj Optional instance to populate. - * @return {module:model/ActivityPutObjectAllOf} The populated ActivityPutObjectAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityPutObjectAllOf(); - - if (data.hasOwnProperty('note')) { - obj['note'] = ApiClient.convertToType(data['note'], 'String'); - - delete data['note']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('participants')) { - obj['participants'] = ApiClient.convertToType(data['participants'], [Object]); - - delete data['participants']; - } - if (data.hasOwnProperty('busy_flag')) { - obj['busy_flag'] = ApiClient.convertToType(data['busy_flag'], 'Boolean'); - - delete data['busy_flag']; - } - if (data.hasOwnProperty('attendees')) { - obj['attendees'] = ApiClient.convertToType(data['attendees'], [Object]); - - delete data['attendees']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); - - delete data['done']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The note of the activity (HTML format) - * @member {String} note - */ -ActivityPutObjectAllOf.prototype['note'] = undefined; - -/** - * The subject of the activity - * @member {String} subject - */ -ActivityPutObjectAllOf.prototype['subject'] = undefined; - -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @member {String} type - */ -ActivityPutObjectAllOf.prototype['type'] = undefined; - -/** - * The ID of the user whom the activity is assigned to - * @member {Number} user_id - */ -ActivityPutObjectAllOf.prototype['user_id'] = undefined; - -/** - * List of multiple persons (participants) this activity is associated with. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` - * @member {Array.} participants - */ -ActivityPutObjectAllOf.prototype['participants'] = undefined; - -/** - * Set the activity as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityPutObjectAllOf.prototype['busy_flag'] = undefined; - -/** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` - * @member {Array.} attendees - */ -ActivityPutObjectAllOf.prototype['attendees'] = undefined; - -/** - * Whether the activity is done or not. 0 = Not done, 1 = Done - * @member {module:model/NumberBoolean} done - */ -ActivityPutObjectAllOf.prototype['done'] = undefined; - - - - - - -export default ActivityPutObjectAllOf; - diff --git a/src/model/ActivityRecordAdditionalData.js b/src/model/ActivityRecordAdditionalData.js deleted file mode 100644 index babd3382..00000000 --- a/src/model/ActivityRecordAdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ActivityRecordAdditionalData model module. - * @module model/ActivityRecordAdditionalData - * @version 1.0.0 - */ -class ActivityRecordAdditionalData { - /** - * Constructs a new ActivityRecordAdditionalData. - * @alias module:model/ActivityRecordAdditionalData - */ - constructor() { - - ActivityRecordAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityRecordAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityRecordAdditionalData} obj Optional instance to populate. - * @return {module:model/ActivityRecordAdditionalData} The populated ActivityRecordAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityRecordAdditionalData(); - - if (data.hasOwnProperty('updates_story_id')) { - obj['updates_story_id'] = ApiClient.convertToType(data['updates_story_id'], 'Number'); - - delete data['updates_story_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * This field will be deprecated - * @member {Number} updates_story_id - */ -ActivityRecordAdditionalData.prototype['updates_story_id'] = undefined; - - - - - - -export default ActivityRecordAdditionalData; - diff --git a/src/model/ActivityResponseObject.js b/src/model/ActivityResponseObject.js deleted file mode 100644 index d0bd1f0f..00000000 --- a/src/model/ActivityResponseObject.js +++ /dev/null @@ -1,1052 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityObjectFragment from './ActivityObjectFragment'; -import ActivityResponseObjectAllOf from './ActivityResponseObjectAllOf'; - -/** - * The ActivityResponseObject model module. - * @module model/ActivityResponseObject - * @version 1.0.0 - */ -class ActivityResponseObject { - /** - * Constructs a new ActivityResponseObject. - * @alias module:model/ActivityResponseObject - * @implements module:model/ActivityObjectFragment - * @implements module:model/ActivityResponseObjectAllOf - */ - constructor() { - ActivityObjectFragment.initialize(this);ActivityResponseObjectAllOf.initialize(this); - ActivityResponseObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityResponseObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityResponseObject} obj Optional instance to populate. - * @return {module:model/ActivityResponseObject} The populated ActivityResponseObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityResponseObject(); - ActivityObjectFragment.constructFromObject(data, obj); - ActivityResponseObjectAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('due_date')) { - obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); - - delete data['due_date']; - } - if (data.hasOwnProperty('due_time')) { - obj['due_time'] = ApiClient.convertToType(data['due_time'], 'String'); - - delete data['due_time']; - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'String'); - - delete data['duration']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('project_id')) { - obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); - - delete data['project_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('location')) { - obj['location'] = ApiClient.convertToType(data['location'], 'String'); - - delete data['location']; - } - if (data.hasOwnProperty('public_description')) { - obj['public_description'] = ApiClient.convertToType(data['public_description'], 'String'); - - delete data['public_description']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('note')) { - obj['note'] = ApiClient.convertToType(data['note'], 'String'); - - delete data['note']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], 'Boolean'); - - delete data['done']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('participants')) { - obj['participants'] = ApiClient.convertToType(data['participants'], [Object]); - - delete data['participants']; - } - if (data.hasOwnProperty('busy_flag')) { - obj['busy_flag'] = ApiClient.convertToType(data['busy_flag'], 'Boolean'); - - delete data['busy_flag']; - } - if (data.hasOwnProperty('attendees')) { - obj['attendees'] = ApiClient.convertToType(data['attendees'], [Object]); - - delete data['attendees']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('reference_type')) { - obj['reference_type'] = ApiClient.convertToType(data['reference_type'], 'String'); - - delete data['reference_type']; - } - if (data.hasOwnProperty('reference_id')) { - obj['reference_id'] = ApiClient.convertToType(data['reference_id'], 'Number'); - - delete data['reference_id']; - } - if (data.hasOwnProperty('conference_meeting_client')) { - obj['conference_meeting_client'] = ApiClient.convertToType(data['conference_meeting_client'], 'String'); - - delete data['conference_meeting_client']; - } - if (data.hasOwnProperty('conference_meeting_url')) { - obj['conference_meeting_url'] = ApiClient.convertToType(data['conference_meeting_url'], 'String'); - - delete data['conference_meeting_url']; - } - if (data.hasOwnProperty('conference_meeting_id')) { - obj['conference_meeting_id'] = ApiClient.convertToType(data['conference_meeting_id'], 'String'); - - delete data['conference_meeting_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('marked_as_done_time')) { - obj['marked_as_done_time'] = ApiClient.convertToType(data['marked_as_done_time'], 'String'); - - delete data['marked_as_done_time']; - } - if (data.hasOwnProperty('last_notification_time')) { - obj['last_notification_time'] = ApiClient.convertToType(data['last_notification_time'], 'String'); - - delete data['last_notification_time']; - } - if (data.hasOwnProperty('last_notification_user_id')) { - obj['last_notification_user_id'] = ApiClient.convertToType(data['last_notification_user_id'], 'Number'); - - delete data['last_notification_user_id']; - } - if (data.hasOwnProperty('notification_language_id')) { - obj['notification_language_id'] = ApiClient.convertToType(data['notification_language_id'], 'Number'); - - delete data['notification_language_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('update_user_id')) { - obj['update_user_id'] = ApiClient.convertToType(data['update_user_id'], 'Number'); - - delete data['update_user_id']; - } - if (data.hasOwnProperty('gcal_event_id')) { - obj['gcal_event_id'] = ApiClient.convertToType(data['gcal_event_id'], 'String'); - - delete data['gcal_event_id']; - } - if (data.hasOwnProperty('google_calendar_id')) { - obj['google_calendar_id'] = ApiClient.convertToType(data['google_calendar_id'], 'String'); - - delete data['google_calendar_id']; - } - if (data.hasOwnProperty('google_calendar_etag')) { - obj['google_calendar_etag'] = ApiClient.convertToType(data['google_calendar_etag'], 'String'); - - delete data['google_calendar_etag']; - } - if (data.hasOwnProperty('calendar_sync_include_context')) { - obj['calendar_sync_include_context'] = ApiClient.convertToType(data['calendar_sync_include_context'], 'String'); - - delete data['calendar_sync_include_context']; - } - if (data.hasOwnProperty('source_timezone')) { - obj['source_timezone'] = ApiClient.convertToType(data['source_timezone'], 'String'); - - delete data['source_timezone']; - } - if (data.hasOwnProperty('rec_rule')) { - obj['rec_rule'] = ApiClient.convertToType(data['rec_rule'], 'String'); - - delete data['rec_rule']; - } - if (data.hasOwnProperty('rec_rule_extension')) { - obj['rec_rule_extension'] = ApiClient.convertToType(data['rec_rule_extension'], 'String'); - - delete data['rec_rule_extension']; - } - if (data.hasOwnProperty('rec_master_activity_id')) { - obj['rec_master_activity_id'] = ApiClient.convertToType(data['rec_master_activity_id'], 'Number'); - - delete data['rec_master_activity_id']; - } - if (data.hasOwnProperty('series')) { - obj['series'] = ApiClient.convertToType(data['series'], [Object]); - - delete data['series']; - } - if (data.hasOwnProperty('created_by_user_id')) { - obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); - - delete data['created_by_user_id']; - } - if (data.hasOwnProperty('location_subpremise')) { - obj['location_subpremise'] = ApiClient.convertToType(data['location_subpremise'], 'String'); - - delete data['location_subpremise']; - } - if (data.hasOwnProperty('location_street_number')) { - obj['location_street_number'] = ApiClient.convertToType(data['location_street_number'], 'String'); - - delete data['location_street_number']; - } - if (data.hasOwnProperty('location_route')) { - obj['location_route'] = ApiClient.convertToType(data['location_route'], 'String'); - - delete data['location_route']; - } - if (data.hasOwnProperty('location_sublocality')) { - obj['location_sublocality'] = ApiClient.convertToType(data['location_sublocality'], 'String'); - - delete data['location_sublocality']; - } - if (data.hasOwnProperty('location_locality')) { - obj['location_locality'] = ApiClient.convertToType(data['location_locality'], 'String'); - - delete data['location_locality']; - } - if (data.hasOwnProperty('location_admin_area_level_1')) { - obj['location_admin_area_level_1'] = ApiClient.convertToType(data['location_admin_area_level_1'], 'String'); - - delete data['location_admin_area_level_1']; - } - if (data.hasOwnProperty('location_admin_area_level_2')) { - obj['location_admin_area_level_2'] = ApiClient.convertToType(data['location_admin_area_level_2'], 'String'); - - delete data['location_admin_area_level_2']; - } - if (data.hasOwnProperty('location_country')) { - obj['location_country'] = ApiClient.convertToType(data['location_country'], 'String'); - - delete data['location_country']; - } - if (data.hasOwnProperty('location_postal_code')) { - obj['location_postal_code'] = ApiClient.convertToType(data['location_postal_code'], 'String'); - - delete data['location_postal_code']; - } - if (data.hasOwnProperty('location_formatted_address')) { - obj['location_formatted_address'] = ApiClient.convertToType(data['location_formatted_address'], 'String'); - - delete data['location_formatted_address']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('person_name')) { - obj['person_name'] = ApiClient.convertToType(data['person_name'], 'String'); - - delete data['person_name']; - } - if (data.hasOwnProperty('deal_title')) { - obj['deal_title'] = ApiClient.convertToType(data['deal_title'], 'String'); - - delete data['deal_title']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('person_dropbox_bcc')) { - obj['person_dropbox_bcc'] = ApiClient.convertToType(data['person_dropbox_bcc'], 'String'); - - delete data['person_dropbox_bcc']; - } - if (data.hasOwnProperty('deal_dropbox_bcc')) { - obj['deal_dropbox_bcc'] = ApiClient.convertToType(data['deal_dropbox_bcc'], 'String'); - - delete data['deal_dropbox_bcc']; - } - if (data.hasOwnProperty('assigned_to_user_id')) { - obj['assigned_to_user_id'] = ApiClient.convertToType(data['assigned_to_user_id'], 'Number'); - - delete data['assigned_to_user_id']; - } - if (data.hasOwnProperty('file')) { - obj['file'] = ApiClient.convertToType(data['file'], Object); - - delete data['file']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The due date of the activity. Format: YYYY-MM-DD - * @member {Date} due_date - */ -ActivityResponseObject.prototype['due_date'] = undefined; - -/** - * The due time of the activity in UTC. Format: HH:MM - * @member {String} due_time - */ -ActivityResponseObject.prototype['due_time'] = undefined; - -/** - * The duration of the activity. Format: HH:MM - * @member {String} duration - */ -ActivityResponseObject.prototype['duration'] = undefined; - -/** - * The ID of the deal this activity is associated with - * @member {Number} deal_id - */ -ActivityResponseObject.prototype['deal_id'] = undefined; - -/** - * The ID of the lead in the UUID format this activity is associated with - * @member {String} lead_id - */ -ActivityResponseObject.prototype['lead_id'] = undefined; - -/** - * The ID of the person this activity is associated with - * @member {Number} person_id - */ -ActivityResponseObject.prototype['person_id'] = undefined; - -/** - * The ID of the project this activity is associated with - * @member {Number} project_id - */ -ActivityResponseObject.prototype['project_id'] = undefined; - -/** - * The ID of the organization this activity is associated with - * @member {Number} org_id - */ -ActivityResponseObject.prototype['org_id'] = undefined; - -/** - * The address of the activity. - * @member {String} location - */ -ActivityResponseObject.prototype['location'] = undefined; - -/** - * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. - * @member {String} public_description - */ -ActivityResponseObject.prototype['public_description'] = undefined; - -/** - * The ID of the activity, generated when the activity was created - * @member {Number} id - */ -ActivityResponseObject.prototype['id'] = undefined; - -/** - * The note of the activity (HTML format) - * @member {String} note - */ -ActivityResponseObject.prototype['note'] = undefined; - -/** - * Whether the activity is done or not - * @member {Boolean} done - */ -ActivityResponseObject.prototype['done'] = undefined; - -/** - * The subject of the activity - * @member {String} subject - */ -ActivityResponseObject.prototype['subject'] = undefined; - -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @member {String} type - */ -ActivityResponseObject.prototype['type'] = undefined; - -/** - * The ID of the user whom the activity is assigned to - * @member {Number} user_id - */ -ActivityResponseObject.prototype['user_id'] = undefined; - -/** - * List of multiple persons (participants) this activity is associated with - * @member {Array.} participants - */ -ActivityResponseObject.prototype['participants'] = undefined; - -/** - * Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityResponseObject.prototype['busy_flag'] = undefined; - -/** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. - * @member {Array.} attendees - */ -ActivityResponseObject.prototype['attendees'] = undefined; - -/** - * The user's company ID - * @member {Number} company_id - */ -ActivityResponseObject.prototype['company_id'] = undefined; - -/** - * If the activity references some other object, it is indicated here. For example, value `Salesphone` refers to activities created with Caller. - * @member {String} reference_type - */ -ActivityResponseObject.prototype['reference_type'] = undefined; - -/** - * Together with the `reference_type`, gives the ID of the other object - * @member {Number} reference_id - */ -ActivityResponseObject.prototype['reference_id'] = undefined; - -/** - * The ID of the Marketplace app, which is connected to this activity - * @member {String} conference_meeting_client - */ -ActivityResponseObject.prototype['conference_meeting_client'] = undefined; - -/** - * The link to join the meeting which is associated with this activity - * @member {String} conference_meeting_url - */ -ActivityResponseObject.prototype['conference_meeting_url'] = undefined; - -/** - * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity - * @member {String} conference_meeting_id - */ -ActivityResponseObject.prototype['conference_meeting_id'] = undefined; - -/** - * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -ActivityResponseObject.prototype['add_time'] = undefined; - -/** - * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} marked_as_done_time - */ -ActivityResponseObject.prototype['marked_as_done_time'] = undefined; - -/** - * The date and time of latest notifications sent about this activity to the participants or the attendees of this activity - * @member {String} last_notification_time - */ -ActivityResponseObject.prototype['last_notification_time'] = undefined; - -/** - * The ID of the user who triggered the sending of the latest notifications about this activity to the participants or the attendees of this activity - * @member {Number} last_notification_user_id - */ -ActivityResponseObject.prototype['last_notification_user_id'] = undefined; - -/** - * The ID of the language the notifications are sent in - * @member {Number} notification_language_id - */ -ActivityResponseObject.prototype['notification_language_id'] = undefined; - -/** - * Whether the activity is active or not - * @member {Boolean} active_flag - */ -ActivityResponseObject.prototype['active_flag'] = undefined; - -/** - * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -ActivityResponseObject.prototype['update_time'] = undefined; - -/** - * The ID of the user who was the last to update this activity - * @member {Number} update_user_id - */ -ActivityResponseObject.prototype['update_user_id'] = undefined; - -/** - * For the activity which syncs to Google calendar, this is the Google event ID. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @member {String} gcal_event_id - */ -ActivityResponseObject.prototype['gcal_event_id'] = undefined; - -/** - * The Google calendar ID that this activity syncs to. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @member {String} google_calendar_id - */ -ActivityResponseObject.prototype['google_calendar_id'] = undefined; - -/** - * The Google calendar API etag (version) that is used for syncing this activity. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @member {String} google_calendar_etag - */ -ActivityResponseObject.prototype['google_calendar_etag'] = undefined; - -/** - * For activities that sync to an external calendar, this setting indicates if the activity syncs with context (what are the deals, persons, organizations this activity is related to) - * @member {String} calendar_sync_include_context - */ -ActivityResponseObject.prototype['calendar_sync_include_context'] = undefined; - -/** - * The timezone the activity was created in an external calendar - * @member {String} source_timezone - */ -ActivityResponseObject.prototype['source_timezone'] = undefined; - -/** - * The rule for the recurrence of the activity. Is important for activities synced into Pipedrive from an external calendar. Example: \"RRULE:FREQ=WEEKLY;BYDAY=WE\" - * @member {String} rec_rule - */ -ActivityResponseObject.prototype['rec_rule'] = undefined; - -/** - * Additional rules for the recurrence of the activity, extend the `rec_rule`. Is important for activities synced into Pipedrive from an external calendar. - * @member {String} rec_rule_extension - */ -ActivityResponseObject.prototype['rec_rule_extension'] = undefined; - -/** - * The ID of parent activity for a recurrent activity if the current activity is an exception to recurrence rules - * @member {Number} rec_master_activity_id - */ -ActivityResponseObject.prototype['rec_master_activity_id'] = undefined; - -/** - * The list of recurring activity instances. It is in a structure as follows: `[{due_date: \"2020-06-24\", due_time: \"10:00:00\"}]` - * @member {Array.} series - */ -ActivityResponseObject.prototype['series'] = undefined; - -/** - * The ID of the user who created the activity - * @member {Number} created_by_user_id - */ -ActivityResponseObject.prototype['created_by_user_id'] = undefined; - -/** - * A subfield of the location field. Indicates apartment/suite number. - * @member {String} location_subpremise - */ -ActivityResponseObject.prototype['location_subpremise'] = undefined; - -/** - * A subfield of the location field. Indicates house number. - * @member {String} location_street_number - */ -ActivityResponseObject.prototype['location_street_number'] = undefined; - -/** - * A subfield of the location field. Indicates street name. - * @member {String} location_route - */ -ActivityResponseObject.prototype['location_route'] = undefined; - -/** - * A subfield of the location field. Indicates district/sublocality. - * @member {String} location_sublocality - */ -ActivityResponseObject.prototype['location_sublocality'] = undefined; - -/** - * A subfield of the location field. Indicates city/town/village/locality. - * @member {String} location_locality - */ -ActivityResponseObject.prototype['location_locality'] = undefined; - -/** - * A subfield of the location field. Indicates state/county. - * @member {String} location_admin_area_level_1 - */ -ActivityResponseObject.prototype['location_admin_area_level_1'] = undefined; - -/** - * A subfield of the location field. Indicates region. - * @member {String} location_admin_area_level_2 - */ -ActivityResponseObject.prototype['location_admin_area_level_2'] = undefined; - -/** - * A subfield of the location field. Indicates country. - * @member {String} location_country - */ -ActivityResponseObject.prototype['location_country'] = undefined; - -/** - * A subfield of the location field. Indicates ZIP/postal code. - * @member {String} location_postal_code - */ -ActivityResponseObject.prototype['location_postal_code'] = undefined; - -/** - * A subfield of the location field. Indicates full/combined address. - * @member {String} location_formatted_address - */ -ActivityResponseObject.prototype['location_formatted_address'] = undefined; - -/** - * The name of the organization this activity is associated with - * @member {String} org_name - */ -ActivityResponseObject.prototype['org_name'] = undefined; - -/** - * The name of the person this activity is associated with - * @member {String} person_name - */ -ActivityResponseObject.prototype['person_name'] = undefined; - -/** - * The name of the deal this activity is associated with - * @member {String} deal_title - */ -ActivityResponseObject.prototype['deal_title'] = undefined; - -/** - * The name of the user this activity is owned by - * @member {String} owner_name - */ -ActivityResponseObject.prototype['owner_name'] = undefined; - -/** - * The BCC email address of the person - * @member {String} person_dropbox_bcc - */ -ActivityResponseObject.prototype['person_dropbox_bcc'] = undefined; - -/** - * The BCC email address of the deal - * @member {String} deal_dropbox_bcc - */ -ActivityResponseObject.prototype['deal_dropbox_bcc'] = undefined; - -/** - * The ID of the user to whom the activity is assigned to. Equal to `user_id`. - * @member {Number} assigned_to_user_id - */ -ActivityResponseObject.prototype['assigned_to_user_id'] = undefined; - -/** - * The file that is attached to this activity. For example, this can be a reference to an audio note file generated with Pipedrive mobile app. - * @member {Object} file - */ -ActivityResponseObject.prototype['file'] = undefined; - - -// Implement ActivityObjectFragment interface: -/** - * The due date of the activity. Format: YYYY-MM-DD - * @member {Date} due_date - */ -ActivityObjectFragment.prototype['due_date'] = undefined; -/** - * The due time of the activity in UTC. Format: HH:MM - * @member {String} due_time - */ -ActivityObjectFragment.prototype['due_time'] = undefined; -/** - * The duration of the activity. Format: HH:MM - * @member {String} duration - */ -ActivityObjectFragment.prototype['duration'] = undefined; -/** - * The ID of the deal this activity is associated with - * @member {Number} deal_id - */ -ActivityObjectFragment.prototype['deal_id'] = undefined; -/** - * The ID of the lead in the UUID format this activity is associated with - * @member {String} lead_id - */ -ActivityObjectFragment.prototype['lead_id'] = undefined; -/** - * The ID of the person this activity is associated with - * @member {Number} person_id - */ -ActivityObjectFragment.prototype['person_id'] = undefined; -/** - * The ID of the project this activity is associated with - * @member {Number} project_id - */ -ActivityObjectFragment.prototype['project_id'] = undefined; -/** - * The ID of the organization this activity is associated with - * @member {Number} org_id - */ -ActivityObjectFragment.prototype['org_id'] = undefined; -/** - * The address of the activity. - * @member {String} location - */ -ActivityObjectFragment.prototype['location'] = undefined; -/** - * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. - * @member {String} public_description - */ -ActivityObjectFragment.prototype['public_description'] = undefined; -// Implement ActivityResponseObjectAllOf interface: -/** - * The ID of the activity, generated when the activity was created - * @member {Number} id - */ -ActivityResponseObjectAllOf.prototype['id'] = undefined; -/** - * The note of the activity (HTML format) - * @member {String} note - */ -ActivityResponseObjectAllOf.prototype['note'] = undefined; -/** - * Whether the activity is done or not - * @member {Boolean} done - */ -ActivityResponseObjectAllOf.prototype['done'] = undefined; -/** - * The subject of the activity - * @member {String} subject - */ -ActivityResponseObjectAllOf.prototype['subject'] = undefined; -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @member {String} type - */ -ActivityResponseObjectAllOf.prototype['type'] = undefined; -/** - * The ID of the user whom the activity is assigned to - * @member {Number} user_id - */ -ActivityResponseObjectAllOf.prototype['user_id'] = undefined; -/** - * List of multiple persons (participants) this activity is associated with - * @member {Array.} participants - */ -ActivityResponseObjectAllOf.prototype['participants'] = undefined; -/** - * Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityResponseObjectAllOf.prototype['busy_flag'] = undefined; -/** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. - * @member {Array.} attendees - */ -ActivityResponseObjectAllOf.prototype['attendees'] = undefined; -/** - * The user's company ID - * @member {Number} company_id - */ -ActivityResponseObjectAllOf.prototype['company_id'] = undefined; -/** - * If the activity references some other object, it is indicated here. For example, value `Salesphone` refers to activities created with Caller. - * @member {String} reference_type - */ -ActivityResponseObjectAllOf.prototype['reference_type'] = undefined; -/** - * Together with the `reference_type`, gives the ID of the other object - * @member {Number} reference_id - */ -ActivityResponseObjectAllOf.prototype['reference_id'] = undefined; -/** - * The ID of the Marketplace app, which is connected to this activity - * @member {String} conference_meeting_client - */ -ActivityResponseObjectAllOf.prototype['conference_meeting_client'] = undefined; -/** - * The link to join the meeting which is associated with this activity - * @member {String} conference_meeting_url - */ -ActivityResponseObjectAllOf.prototype['conference_meeting_url'] = undefined; -/** - * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity - * @member {String} conference_meeting_id - */ -ActivityResponseObjectAllOf.prototype['conference_meeting_id'] = undefined; -/** - * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -ActivityResponseObjectAllOf.prototype['add_time'] = undefined; -/** - * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} marked_as_done_time - */ -ActivityResponseObjectAllOf.prototype['marked_as_done_time'] = undefined; -/** - * The date and time of latest notifications sent about this activity to the participants or the attendees of this activity - * @member {String} last_notification_time - */ -ActivityResponseObjectAllOf.prototype['last_notification_time'] = undefined; -/** - * The ID of the user who triggered the sending of the latest notifications about this activity to the participants or the attendees of this activity - * @member {Number} last_notification_user_id - */ -ActivityResponseObjectAllOf.prototype['last_notification_user_id'] = undefined; -/** - * The ID of the language the notifications are sent in - * @member {Number} notification_language_id - */ -ActivityResponseObjectAllOf.prototype['notification_language_id'] = undefined; -/** - * Whether the activity is active or not - * @member {Boolean} active_flag - */ -ActivityResponseObjectAllOf.prototype['active_flag'] = undefined; -/** - * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -ActivityResponseObjectAllOf.prototype['update_time'] = undefined; -/** - * The ID of the user who was the last to update this activity - * @member {Number} update_user_id - */ -ActivityResponseObjectAllOf.prototype['update_user_id'] = undefined; -/** - * For the activity which syncs to Google calendar, this is the Google event ID. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @member {String} gcal_event_id - */ -ActivityResponseObjectAllOf.prototype['gcal_event_id'] = undefined; -/** - * The Google calendar ID that this activity syncs to. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @member {String} google_calendar_id - */ -ActivityResponseObjectAllOf.prototype['google_calendar_id'] = undefined; -/** - * The Google calendar API etag (version) that is used for syncing this activity. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @member {String} google_calendar_etag - */ -ActivityResponseObjectAllOf.prototype['google_calendar_etag'] = undefined; -/** - * For activities that sync to an external calendar, this setting indicates if the activity syncs with context (what are the deals, persons, organizations this activity is related to) - * @member {String} calendar_sync_include_context - */ -ActivityResponseObjectAllOf.prototype['calendar_sync_include_context'] = undefined; -/** - * The timezone the activity was created in an external calendar - * @member {String} source_timezone - */ -ActivityResponseObjectAllOf.prototype['source_timezone'] = undefined; -/** - * The rule for the recurrence of the activity. Is important for activities synced into Pipedrive from an external calendar. Example: \"RRULE:FREQ=WEEKLY;BYDAY=WE\" - * @member {String} rec_rule - */ -ActivityResponseObjectAllOf.prototype['rec_rule'] = undefined; -/** - * Additional rules for the recurrence of the activity, extend the `rec_rule`. Is important for activities synced into Pipedrive from an external calendar. - * @member {String} rec_rule_extension - */ -ActivityResponseObjectAllOf.prototype['rec_rule_extension'] = undefined; -/** - * The ID of parent activity for a recurrent activity if the current activity is an exception to recurrence rules - * @member {Number} rec_master_activity_id - */ -ActivityResponseObjectAllOf.prototype['rec_master_activity_id'] = undefined; -/** - * The list of recurring activity instances. It is in a structure as follows: `[{due_date: \"2020-06-24\", due_time: \"10:00:00\"}]` - * @member {Array.} series - */ -ActivityResponseObjectAllOf.prototype['series'] = undefined; -/** - * The ID of the user who created the activity - * @member {Number} created_by_user_id - */ -ActivityResponseObjectAllOf.prototype['created_by_user_id'] = undefined; -/** - * A subfield of the location field. Indicates apartment/suite number. - * @member {String} location_subpremise - */ -ActivityResponseObjectAllOf.prototype['location_subpremise'] = undefined; -/** - * A subfield of the location field. Indicates house number. - * @member {String} location_street_number - */ -ActivityResponseObjectAllOf.prototype['location_street_number'] = undefined; -/** - * A subfield of the location field. Indicates street name. - * @member {String} location_route - */ -ActivityResponseObjectAllOf.prototype['location_route'] = undefined; -/** - * A subfield of the location field. Indicates district/sublocality. - * @member {String} location_sublocality - */ -ActivityResponseObjectAllOf.prototype['location_sublocality'] = undefined; -/** - * A subfield of the location field. Indicates city/town/village/locality. - * @member {String} location_locality - */ -ActivityResponseObjectAllOf.prototype['location_locality'] = undefined; -/** - * A subfield of the location field. Indicates state/county. - * @member {String} location_admin_area_level_1 - */ -ActivityResponseObjectAllOf.prototype['location_admin_area_level_1'] = undefined; -/** - * A subfield of the location field. Indicates region. - * @member {String} location_admin_area_level_2 - */ -ActivityResponseObjectAllOf.prototype['location_admin_area_level_2'] = undefined; -/** - * A subfield of the location field. Indicates country. - * @member {String} location_country - */ -ActivityResponseObjectAllOf.prototype['location_country'] = undefined; -/** - * A subfield of the location field. Indicates ZIP/postal code. - * @member {String} location_postal_code - */ -ActivityResponseObjectAllOf.prototype['location_postal_code'] = undefined; -/** - * A subfield of the location field. Indicates full/combined address. - * @member {String} location_formatted_address - */ -ActivityResponseObjectAllOf.prototype['location_formatted_address'] = undefined; -/** - * The name of the organization this activity is associated with - * @member {String} org_name - */ -ActivityResponseObjectAllOf.prototype['org_name'] = undefined; -/** - * The name of the person this activity is associated with - * @member {String} person_name - */ -ActivityResponseObjectAllOf.prototype['person_name'] = undefined; -/** - * The name of the deal this activity is associated with - * @member {String} deal_title - */ -ActivityResponseObjectAllOf.prototype['deal_title'] = undefined; -/** - * The name of the user this activity is owned by - * @member {String} owner_name - */ -ActivityResponseObjectAllOf.prototype['owner_name'] = undefined; -/** - * The BCC email address of the person - * @member {String} person_dropbox_bcc - */ -ActivityResponseObjectAllOf.prototype['person_dropbox_bcc'] = undefined; -/** - * The BCC email address of the deal - * @member {String} deal_dropbox_bcc - */ -ActivityResponseObjectAllOf.prototype['deal_dropbox_bcc'] = undefined; -/** - * The ID of the user to whom the activity is assigned to. Equal to `user_id`. - * @member {Number} assigned_to_user_id - */ -ActivityResponseObjectAllOf.prototype['assigned_to_user_id'] = undefined; -/** - * The file that is attached to this activity. For example, this can be a reference to an audio note file generated with Pipedrive mobile app. - * @member {Object} file - */ -ActivityResponseObjectAllOf.prototype['file'] = undefined; - - - - -export default ActivityResponseObject; - diff --git a/src/model/ActivityResponseObjectAllOf.js b/src/model/ActivityResponseObjectAllOf.js deleted file mode 100644 index e79050fa..00000000 --- a/src/model/ActivityResponseObjectAllOf.js +++ /dev/null @@ -1,629 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ActivityResponseObjectAllOf model module. - * @module model/ActivityResponseObjectAllOf - * @version 1.0.0 - */ -class ActivityResponseObjectAllOf { - /** - * Constructs a new ActivityResponseObjectAllOf. - * @alias module:model/ActivityResponseObjectAllOf - */ - constructor() { - - ActivityResponseObjectAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityResponseObjectAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityResponseObjectAllOf} obj Optional instance to populate. - * @return {module:model/ActivityResponseObjectAllOf} The populated ActivityResponseObjectAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityResponseObjectAllOf(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('note')) { - obj['note'] = ApiClient.convertToType(data['note'], 'String'); - - delete data['note']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], 'Boolean'); - - delete data['done']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('participants')) { - obj['participants'] = ApiClient.convertToType(data['participants'], [Object]); - - delete data['participants']; - } - if (data.hasOwnProperty('busy_flag')) { - obj['busy_flag'] = ApiClient.convertToType(data['busy_flag'], 'Boolean'); - - delete data['busy_flag']; - } - if (data.hasOwnProperty('attendees')) { - obj['attendees'] = ApiClient.convertToType(data['attendees'], [Object]); - - delete data['attendees']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('reference_type')) { - obj['reference_type'] = ApiClient.convertToType(data['reference_type'], 'String'); - - delete data['reference_type']; - } - if (data.hasOwnProperty('reference_id')) { - obj['reference_id'] = ApiClient.convertToType(data['reference_id'], 'Number'); - - delete data['reference_id']; - } - if (data.hasOwnProperty('conference_meeting_client')) { - obj['conference_meeting_client'] = ApiClient.convertToType(data['conference_meeting_client'], 'String'); - - delete data['conference_meeting_client']; - } - if (data.hasOwnProperty('conference_meeting_url')) { - obj['conference_meeting_url'] = ApiClient.convertToType(data['conference_meeting_url'], 'String'); - - delete data['conference_meeting_url']; - } - if (data.hasOwnProperty('conference_meeting_id')) { - obj['conference_meeting_id'] = ApiClient.convertToType(data['conference_meeting_id'], 'String'); - - delete data['conference_meeting_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('marked_as_done_time')) { - obj['marked_as_done_time'] = ApiClient.convertToType(data['marked_as_done_time'], 'String'); - - delete data['marked_as_done_time']; - } - if (data.hasOwnProperty('last_notification_time')) { - obj['last_notification_time'] = ApiClient.convertToType(data['last_notification_time'], 'String'); - - delete data['last_notification_time']; - } - if (data.hasOwnProperty('last_notification_user_id')) { - obj['last_notification_user_id'] = ApiClient.convertToType(data['last_notification_user_id'], 'Number'); - - delete data['last_notification_user_id']; - } - if (data.hasOwnProperty('notification_language_id')) { - obj['notification_language_id'] = ApiClient.convertToType(data['notification_language_id'], 'Number'); - - delete data['notification_language_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('update_user_id')) { - obj['update_user_id'] = ApiClient.convertToType(data['update_user_id'], 'Number'); - - delete data['update_user_id']; - } - if (data.hasOwnProperty('gcal_event_id')) { - obj['gcal_event_id'] = ApiClient.convertToType(data['gcal_event_id'], 'String'); - - delete data['gcal_event_id']; - } - if (data.hasOwnProperty('google_calendar_id')) { - obj['google_calendar_id'] = ApiClient.convertToType(data['google_calendar_id'], 'String'); - - delete data['google_calendar_id']; - } - if (data.hasOwnProperty('google_calendar_etag')) { - obj['google_calendar_etag'] = ApiClient.convertToType(data['google_calendar_etag'], 'String'); - - delete data['google_calendar_etag']; - } - if (data.hasOwnProperty('calendar_sync_include_context')) { - obj['calendar_sync_include_context'] = ApiClient.convertToType(data['calendar_sync_include_context'], 'String'); - - delete data['calendar_sync_include_context']; - } - if (data.hasOwnProperty('source_timezone')) { - obj['source_timezone'] = ApiClient.convertToType(data['source_timezone'], 'String'); - - delete data['source_timezone']; - } - if (data.hasOwnProperty('rec_rule')) { - obj['rec_rule'] = ApiClient.convertToType(data['rec_rule'], 'String'); - - delete data['rec_rule']; - } - if (data.hasOwnProperty('rec_rule_extension')) { - obj['rec_rule_extension'] = ApiClient.convertToType(data['rec_rule_extension'], 'String'); - - delete data['rec_rule_extension']; - } - if (data.hasOwnProperty('rec_master_activity_id')) { - obj['rec_master_activity_id'] = ApiClient.convertToType(data['rec_master_activity_id'], 'Number'); - - delete data['rec_master_activity_id']; - } - if (data.hasOwnProperty('series')) { - obj['series'] = ApiClient.convertToType(data['series'], [Object]); - - delete data['series']; - } - if (data.hasOwnProperty('created_by_user_id')) { - obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); - - delete data['created_by_user_id']; - } - if (data.hasOwnProperty('location_subpremise')) { - obj['location_subpremise'] = ApiClient.convertToType(data['location_subpremise'], 'String'); - - delete data['location_subpremise']; - } - if (data.hasOwnProperty('location_street_number')) { - obj['location_street_number'] = ApiClient.convertToType(data['location_street_number'], 'String'); - - delete data['location_street_number']; - } - if (data.hasOwnProperty('location_route')) { - obj['location_route'] = ApiClient.convertToType(data['location_route'], 'String'); - - delete data['location_route']; - } - if (data.hasOwnProperty('location_sublocality')) { - obj['location_sublocality'] = ApiClient.convertToType(data['location_sublocality'], 'String'); - - delete data['location_sublocality']; - } - if (data.hasOwnProperty('location_locality')) { - obj['location_locality'] = ApiClient.convertToType(data['location_locality'], 'String'); - - delete data['location_locality']; - } - if (data.hasOwnProperty('location_admin_area_level_1')) { - obj['location_admin_area_level_1'] = ApiClient.convertToType(data['location_admin_area_level_1'], 'String'); - - delete data['location_admin_area_level_1']; - } - if (data.hasOwnProperty('location_admin_area_level_2')) { - obj['location_admin_area_level_2'] = ApiClient.convertToType(data['location_admin_area_level_2'], 'String'); - - delete data['location_admin_area_level_2']; - } - if (data.hasOwnProperty('location_country')) { - obj['location_country'] = ApiClient.convertToType(data['location_country'], 'String'); - - delete data['location_country']; - } - if (data.hasOwnProperty('location_postal_code')) { - obj['location_postal_code'] = ApiClient.convertToType(data['location_postal_code'], 'String'); - - delete data['location_postal_code']; - } - if (data.hasOwnProperty('location_formatted_address')) { - obj['location_formatted_address'] = ApiClient.convertToType(data['location_formatted_address'], 'String'); - - delete data['location_formatted_address']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('person_name')) { - obj['person_name'] = ApiClient.convertToType(data['person_name'], 'String'); - - delete data['person_name']; - } - if (data.hasOwnProperty('deal_title')) { - obj['deal_title'] = ApiClient.convertToType(data['deal_title'], 'String'); - - delete data['deal_title']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('person_dropbox_bcc')) { - obj['person_dropbox_bcc'] = ApiClient.convertToType(data['person_dropbox_bcc'], 'String'); - - delete data['person_dropbox_bcc']; - } - if (data.hasOwnProperty('deal_dropbox_bcc')) { - obj['deal_dropbox_bcc'] = ApiClient.convertToType(data['deal_dropbox_bcc'], 'String'); - - delete data['deal_dropbox_bcc']; - } - if (data.hasOwnProperty('assigned_to_user_id')) { - obj['assigned_to_user_id'] = ApiClient.convertToType(data['assigned_to_user_id'], 'Number'); - - delete data['assigned_to_user_id']; - } - if (data.hasOwnProperty('file')) { - obj['file'] = ApiClient.convertToType(data['file'], Object); - - delete data['file']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the activity, generated when the activity was created - * @member {Number} id - */ -ActivityResponseObjectAllOf.prototype['id'] = undefined; - -/** - * The note of the activity (HTML format) - * @member {String} note - */ -ActivityResponseObjectAllOf.prototype['note'] = undefined; - -/** - * Whether the activity is done or not - * @member {Boolean} done - */ -ActivityResponseObjectAllOf.prototype['done'] = undefined; - -/** - * The subject of the activity - * @member {String} subject - */ -ActivityResponseObjectAllOf.prototype['subject'] = undefined; - -/** - * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. - * @member {String} type - */ -ActivityResponseObjectAllOf.prototype['type'] = undefined; - -/** - * The ID of the user whom the activity is assigned to - * @member {Number} user_id - */ -ActivityResponseObjectAllOf.prototype['user_id'] = undefined; - -/** - * List of multiple persons (participants) this activity is associated with - * @member {Array.} participants - */ -ActivityResponseObjectAllOf.prototype['participants'] = undefined; - -/** - * Marks if the activity is set as 'Busy' or 'Free'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to 'Busy' if it has a time set, and 'Free' if it is an all-day event without specified time. - * @member {Boolean} busy_flag - */ -ActivityResponseObjectAllOf.prototype['busy_flag'] = undefined; - -/** - * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. - * @member {Array.} attendees - */ -ActivityResponseObjectAllOf.prototype['attendees'] = undefined; - -/** - * The user's company ID - * @member {Number} company_id - */ -ActivityResponseObjectAllOf.prototype['company_id'] = undefined; - -/** - * If the activity references some other object, it is indicated here. For example, value `Salesphone` refers to activities created with Caller. - * @member {String} reference_type - */ -ActivityResponseObjectAllOf.prototype['reference_type'] = undefined; - -/** - * Together with the `reference_type`, gives the ID of the other object - * @member {Number} reference_id - */ -ActivityResponseObjectAllOf.prototype['reference_id'] = undefined; - -/** - * The ID of the Marketplace app, which is connected to this activity - * @member {String} conference_meeting_client - */ -ActivityResponseObjectAllOf.prototype['conference_meeting_client'] = undefined; - -/** - * The link to join the meeting which is associated with this activity - * @member {String} conference_meeting_url - */ -ActivityResponseObjectAllOf.prototype['conference_meeting_url'] = undefined; - -/** - * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity - * @member {String} conference_meeting_id - */ -ActivityResponseObjectAllOf.prototype['conference_meeting_id'] = undefined; - -/** - * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -ActivityResponseObjectAllOf.prototype['add_time'] = undefined; - -/** - * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} marked_as_done_time - */ -ActivityResponseObjectAllOf.prototype['marked_as_done_time'] = undefined; - -/** - * The date and time of latest notifications sent about this activity to the participants or the attendees of this activity - * @member {String} last_notification_time - */ -ActivityResponseObjectAllOf.prototype['last_notification_time'] = undefined; - -/** - * The ID of the user who triggered the sending of the latest notifications about this activity to the participants or the attendees of this activity - * @member {Number} last_notification_user_id - */ -ActivityResponseObjectAllOf.prototype['last_notification_user_id'] = undefined; - -/** - * The ID of the language the notifications are sent in - * @member {Number} notification_language_id - */ -ActivityResponseObjectAllOf.prototype['notification_language_id'] = undefined; - -/** - * Whether the activity is active or not - * @member {Boolean} active_flag - */ -ActivityResponseObjectAllOf.prototype['active_flag'] = undefined; - -/** - * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -ActivityResponseObjectAllOf.prototype['update_time'] = undefined; - -/** - * The ID of the user who was the last to update this activity - * @member {Number} update_user_id - */ -ActivityResponseObjectAllOf.prototype['update_user_id'] = undefined; - -/** - * For the activity which syncs to Google calendar, this is the Google event ID. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @member {String} gcal_event_id - */ -ActivityResponseObjectAllOf.prototype['gcal_event_id'] = undefined; - -/** - * The Google calendar ID that this activity syncs to. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @member {String} google_calendar_id - */ -ActivityResponseObjectAllOf.prototype['google_calendar_id'] = undefined; - -/** - * The Google calendar API etag (version) that is used for syncing this activity. NB! This field is related to old Google calendar sync and will be deprecated soon. - * @member {String} google_calendar_etag - */ -ActivityResponseObjectAllOf.prototype['google_calendar_etag'] = undefined; - -/** - * For activities that sync to an external calendar, this setting indicates if the activity syncs with context (what are the deals, persons, organizations this activity is related to) - * @member {String} calendar_sync_include_context - */ -ActivityResponseObjectAllOf.prototype['calendar_sync_include_context'] = undefined; - -/** - * The timezone the activity was created in an external calendar - * @member {String} source_timezone - */ -ActivityResponseObjectAllOf.prototype['source_timezone'] = undefined; - -/** - * The rule for the recurrence of the activity. Is important for activities synced into Pipedrive from an external calendar. Example: \"RRULE:FREQ=WEEKLY;BYDAY=WE\" - * @member {String} rec_rule - */ -ActivityResponseObjectAllOf.prototype['rec_rule'] = undefined; - -/** - * Additional rules for the recurrence of the activity, extend the `rec_rule`. Is important for activities synced into Pipedrive from an external calendar. - * @member {String} rec_rule_extension - */ -ActivityResponseObjectAllOf.prototype['rec_rule_extension'] = undefined; - -/** - * The ID of parent activity for a recurrent activity if the current activity is an exception to recurrence rules - * @member {Number} rec_master_activity_id - */ -ActivityResponseObjectAllOf.prototype['rec_master_activity_id'] = undefined; - -/** - * The list of recurring activity instances. It is in a structure as follows: `[{due_date: \"2020-06-24\", due_time: \"10:00:00\"}]` - * @member {Array.} series - */ -ActivityResponseObjectAllOf.prototype['series'] = undefined; - -/** - * The ID of the user who created the activity - * @member {Number} created_by_user_id - */ -ActivityResponseObjectAllOf.prototype['created_by_user_id'] = undefined; - -/** - * A subfield of the location field. Indicates apartment/suite number. - * @member {String} location_subpremise - */ -ActivityResponseObjectAllOf.prototype['location_subpremise'] = undefined; - -/** - * A subfield of the location field. Indicates house number. - * @member {String} location_street_number - */ -ActivityResponseObjectAllOf.prototype['location_street_number'] = undefined; - -/** - * A subfield of the location field. Indicates street name. - * @member {String} location_route - */ -ActivityResponseObjectAllOf.prototype['location_route'] = undefined; - -/** - * A subfield of the location field. Indicates district/sublocality. - * @member {String} location_sublocality - */ -ActivityResponseObjectAllOf.prototype['location_sublocality'] = undefined; - -/** - * A subfield of the location field. Indicates city/town/village/locality. - * @member {String} location_locality - */ -ActivityResponseObjectAllOf.prototype['location_locality'] = undefined; - -/** - * A subfield of the location field. Indicates state/county. - * @member {String} location_admin_area_level_1 - */ -ActivityResponseObjectAllOf.prototype['location_admin_area_level_1'] = undefined; - -/** - * A subfield of the location field. Indicates region. - * @member {String} location_admin_area_level_2 - */ -ActivityResponseObjectAllOf.prototype['location_admin_area_level_2'] = undefined; - -/** - * A subfield of the location field. Indicates country. - * @member {String} location_country - */ -ActivityResponseObjectAllOf.prototype['location_country'] = undefined; - -/** - * A subfield of the location field. Indicates ZIP/postal code. - * @member {String} location_postal_code - */ -ActivityResponseObjectAllOf.prototype['location_postal_code'] = undefined; - -/** - * A subfield of the location field. Indicates full/combined address. - * @member {String} location_formatted_address - */ -ActivityResponseObjectAllOf.prototype['location_formatted_address'] = undefined; - -/** - * The name of the organization this activity is associated with - * @member {String} org_name - */ -ActivityResponseObjectAllOf.prototype['org_name'] = undefined; - -/** - * The name of the person this activity is associated with - * @member {String} person_name - */ -ActivityResponseObjectAllOf.prototype['person_name'] = undefined; - -/** - * The name of the deal this activity is associated with - * @member {String} deal_title - */ -ActivityResponseObjectAllOf.prototype['deal_title'] = undefined; - -/** - * The name of the user this activity is owned by - * @member {String} owner_name - */ -ActivityResponseObjectAllOf.prototype['owner_name'] = undefined; - -/** - * The BCC email address of the person - * @member {String} person_dropbox_bcc - */ -ActivityResponseObjectAllOf.prototype['person_dropbox_bcc'] = undefined; - -/** - * The BCC email address of the deal - * @member {String} deal_dropbox_bcc - */ -ActivityResponseObjectAllOf.prototype['deal_dropbox_bcc'] = undefined; - -/** - * The ID of the user to whom the activity is assigned to. Equal to `user_id`. - * @member {Number} assigned_to_user_id - */ -ActivityResponseObjectAllOf.prototype['assigned_to_user_id'] = undefined; - -/** - * The file that is attached to this activity. For example, this can be a reference to an audio note file generated with Pipedrive mobile app. - * @member {Object} file - */ -ActivityResponseObjectAllOf.prototype['file'] = undefined; - - - - - - -export default ActivityResponseObjectAllOf; - diff --git a/src/model/ActivityTypeBulkDeleteResponse.js b/src/model/ActivityTypeBulkDeleteResponse.js deleted file mode 100644 index 18d6e473..00000000 --- a/src/model/ActivityTypeBulkDeleteResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityTypeBulkDeleteResponseAllOf from './ActivityTypeBulkDeleteResponseAllOf'; -import ActivityTypeBulkDeleteResponseAllOfData from './ActivityTypeBulkDeleteResponseAllOfData'; -import BaseResponse from './BaseResponse'; - -/** - * The ActivityTypeBulkDeleteResponse model module. - * @module model/ActivityTypeBulkDeleteResponse - * @version 1.0.0 - */ -class ActivityTypeBulkDeleteResponse { - /** - * Constructs a new ActivityTypeBulkDeleteResponse. - * @alias module:model/ActivityTypeBulkDeleteResponse - * @implements module:model/BaseResponse - * @implements module:model/ActivityTypeBulkDeleteResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ActivityTypeBulkDeleteResponseAllOf.initialize(this); - ActivityTypeBulkDeleteResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityTypeBulkDeleteResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityTypeBulkDeleteResponse} obj Optional instance to populate. - * @return {module:model/ActivityTypeBulkDeleteResponse} The populated ActivityTypeBulkDeleteResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityTypeBulkDeleteResponse(); - BaseResponse.constructFromObject(data, obj); - ActivityTypeBulkDeleteResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityTypeBulkDeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ActivityTypeBulkDeleteResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ActivityTypeBulkDeleteResponseAllOfData} data - */ -ActivityTypeBulkDeleteResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ActivityTypeBulkDeleteResponseAllOf interface: -/** - * @member {module:model/ActivityTypeBulkDeleteResponseAllOfData} data - */ -ActivityTypeBulkDeleteResponseAllOf.prototype['data'] = undefined; - - - - -export default ActivityTypeBulkDeleteResponse; - diff --git a/src/model/ActivityTypeBulkDeleteResponseAllOf.js b/src/model/ActivityTypeBulkDeleteResponseAllOf.js deleted file mode 100644 index ad7202ee..00000000 --- a/src/model/ActivityTypeBulkDeleteResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityTypeBulkDeleteResponseAllOfData from './ActivityTypeBulkDeleteResponseAllOfData'; - -/** - * The ActivityTypeBulkDeleteResponseAllOf model module. - * @module model/ActivityTypeBulkDeleteResponseAllOf - * @version 1.0.0 - */ -class ActivityTypeBulkDeleteResponseAllOf { - /** - * Constructs a new ActivityTypeBulkDeleteResponseAllOf. - * @alias module:model/ActivityTypeBulkDeleteResponseAllOf - */ - constructor() { - - ActivityTypeBulkDeleteResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityTypeBulkDeleteResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityTypeBulkDeleteResponseAllOf} obj Optional instance to populate. - * @return {module:model/ActivityTypeBulkDeleteResponseAllOf} The populated ActivityTypeBulkDeleteResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityTypeBulkDeleteResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityTypeBulkDeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ActivityTypeBulkDeleteResponseAllOfData} data - */ -ActivityTypeBulkDeleteResponseAllOf.prototype['data'] = undefined; - - - - - - -export default ActivityTypeBulkDeleteResponseAllOf; - diff --git a/src/model/ActivityTypeBulkDeleteResponseAllOfData.js b/src/model/ActivityTypeBulkDeleteResponseAllOfData.js deleted file mode 100644 index c0fb2341..00000000 --- a/src/model/ActivityTypeBulkDeleteResponseAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ActivityTypeBulkDeleteResponseAllOfData model module. - * @module model/ActivityTypeBulkDeleteResponseAllOfData - * @version 1.0.0 - */ -class ActivityTypeBulkDeleteResponseAllOfData { - /** - * Constructs a new ActivityTypeBulkDeleteResponseAllOfData. - * @alias module:model/ActivityTypeBulkDeleteResponseAllOfData - */ - constructor() { - - ActivityTypeBulkDeleteResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityTypeBulkDeleteResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityTypeBulkDeleteResponseAllOfData} obj Optional instance to populate. - * @return {module:model/ActivityTypeBulkDeleteResponseAllOfData} The populated ActivityTypeBulkDeleteResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityTypeBulkDeleteResponseAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The IDs of the deleted activity types - * @member {Array.} id - */ -ActivityTypeBulkDeleteResponseAllOfData.prototype['id'] = undefined; - - - - - - -export default ActivityTypeBulkDeleteResponseAllOfData; - diff --git a/src/model/ActivityTypeCreateRequest.js b/src/model/ActivityTypeCreateRequest.js deleted file mode 100644 index 0af7675a..00000000 --- a/src/model/ActivityTypeCreateRequest.js +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import IconKey from './IconKey'; - -/** - * The ActivityTypeCreateRequest model module. - * @module model/ActivityTypeCreateRequest - * @version 1.0.0 - */ -class ActivityTypeCreateRequest { - /** - * Constructs a new ActivityTypeCreateRequest. - * @alias module:model/ActivityTypeCreateRequest - * @param name {String} The name of the activity type - * @param iconKey {module:model/IconKey} - */ - constructor(name, iconKey) { - - ActivityTypeCreateRequest.initialize(this, name, iconKey); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name, iconKey) { - obj['name'] = name; - obj['icon_key'] = iconKey; - } - - /** - * Constructs a ActivityTypeCreateRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityTypeCreateRequest} obj Optional instance to populate. - * @return {module:model/ActivityTypeCreateRequest} The populated ActivityTypeCreateRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityTypeCreateRequest(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('icon_key')) { - obj['icon_key'] = IconKey.constructFromObject(data['icon_key']); - - delete data['icon_key']; - } - if (data.hasOwnProperty('color')) { - obj['color'] = ApiClient.convertToType(data['color'], 'String'); - - delete data['color']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the activity type - * @member {String} name - */ -ActivityTypeCreateRequest.prototype['name'] = undefined; - -/** - * @member {module:model/IconKey} icon_key - */ -ActivityTypeCreateRequest.prototype['icon_key'] = undefined; - -/** - * A designated color for the activity type in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black) - * @member {String} color - */ -ActivityTypeCreateRequest.prototype['color'] = undefined; - - - - - - -export default ActivityTypeCreateRequest; - diff --git a/src/model/ActivityTypeCreateUpdateDeleteResponse.js b/src/model/ActivityTypeCreateUpdateDeleteResponse.js deleted file mode 100644 index 2bc0a9b5..00000000 --- a/src/model/ActivityTypeCreateUpdateDeleteResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityTypeCreateUpdateDeleteResponseAllOf from './ActivityTypeCreateUpdateDeleteResponseAllOf'; -import ActivityTypeObjectResponse from './ActivityTypeObjectResponse'; -import BaseResponse from './BaseResponse'; - -/** - * The ActivityTypeCreateUpdateDeleteResponse model module. - * @module model/ActivityTypeCreateUpdateDeleteResponse - * @version 1.0.0 - */ -class ActivityTypeCreateUpdateDeleteResponse { - /** - * Constructs a new ActivityTypeCreateUpdateDeleteResponse. - * @alias module:model/ActivityTypeCreateUpdateDeleteResponse - * @implements module:model/BaseResponse - * @implements module:model/ActivityTypeCreateUpdateDeleteResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ActivityTypeCreateUpdateDeleteResponseAllOf.initialize(this); - ActivityTypeCreateUpdateDeleteResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityTypeCreateUpdateDeleteResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityTypeCreateUpdateDeleteResponse} obj Optional instance to populate. - * @return {module:model/ActivityTypeCreateUpdateDeleteResponse} The populated ActivityTypeCreateUpdateDeleteResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityTypeCreateUpdateDeleteResponse(); - BaseResponse.constructFromObject(data, obj); - ActivityTypeCreateUpdateDeleteResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityTypeObjectResponse.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ActivityTypeCreateUpdateDeleteResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ActivityTypeObjectResponse} data - */ -ActivityTypeCreateUpdateDeleteResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ActivityTypeCreateUpdateDeleteResponseAllOf interface: -/** - * @member {module:model/ActivityTypeObjectResponse} data - */ -ActivityTypeCreateUpdateDeleteResponseAllOf.prototype['data'] = undefined; - - - - -export default ActivityTypeCreateUpdateDeleteResponse; - diff --git a/src/model/ActivityTypeCreateUpdateDeleteResponseAllOf.js b/src/model/ActivityTypeCreateUpdateDeleteResponseAllOf.js deleted file mode 100644 index a49ec1e9..00000000 --- a/src/model/ActivityTypeCreateUpdateDeleteResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityTypeObjectResponse from './ActivityTypeObjectResponse'; - -/** - * The ActivityTypeCreateUpdateDeleteResponseAllOf model module. - * @module model/ActivityTypeCreateUpdateDeleteResponseAllOf - * @version 1.0.0 - */ -class ActivityTypeCreateUpdateDeleteResponseAllOf { - /** - * Constructs a new ActivityTypeCreateUpdateDeleteResponseAllOf. - * @alias module:model/ActivityTypeCreateUpdateDeleteResponseAllOf - */ - constructor() { - - ActivityTypeCreateUpdateDeleteResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityTypeCreateUpdateDeleteResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityTypeCreateUpdateDeleteResponseAllOf} obj Optional instance to populate. - * @return {module:model/ActivityTypeCreateUpdateDeleteResponseAllOf} The populated ActivityTypeCreateUpdateDeleteResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityTypeCreateUpdateDeleteResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityTypeObjectResponse.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ActivityTypeObjectResponse} data - */ -ActivityTypeCreateUpdateDeleteResponseAllOf.prototype['data'] = undefined; - - - - - - -export default ActivityTypeCreateUpdateDeleteResponseAllOf; - diff --git a/src/model/ActivityTypeListResponse.js b/src/model/ActivityTypeListResponse.js deleted file mode 100644 index 4129286f..00000000 --- a/src/model/ActivityTypeListResponse.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityTypeListResponseAllOf from './ActivityTypeListResponseAllOf'; -import ActivityTypeObjectResponse from './ActivityTypeObjectResponse'; -import BaseResponse from './BaseResponse'; - -/** - * The ActivityTypeListResponse model module. - * @module model/ActivityTypeListResponse - * @version 1.0.0 - */ -class ActivityTypeListResponse { - /** - * Constructs a new ActivityTypeListResponse. - * @alias module:model/ActivityTypeListResponse - * @implements module:model/BaseResponse - * @implements module:model/ActivityTypeListResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ActivityTypeListResponseAllOf.initialize(this); - ActivityTypeListResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityTypeListResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityTypeListResponse} obj Optional instance to populate. - * @return {module:model/ActivityTypeListResponse} The populated ActivityTypeListResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityTypeListResponse(); - BaseResponse.constructFromObject(data, obj); - ActivityTypeListResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ActivityTypeObjectResponse]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ActivityTypeListResponse.prototype['success'] = undefined; - -/** - * The array of activity types - * @member {Array.} data - */ -ActivityTypeListResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ActivityTypeListResponseAllOf interface: -/** - * The array of activity types - * @member {Array.} data - */ -ActivityTypeListResponseAllOf.prototype['data'] = undefined; - - - - -export default ActivityTypeListResponse; - diff --git a/src/model/ActivityTypeListResponseAllOf.js b/src/model/ActivityTypeListResponseAllOf.js deleted file mode 100644 index 544ea180..00000000 --- a/src/model/ActivityTypeListResponseAllOf.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityTypeObjectResponse from './ActivityTypeObjectResponse'; - -/** - * The ActivityTypeListResponseAllOf model module. - * @module model/ActivityTypeListResponseAllOf - * @version 1.0.0 - */ -class ActivityTypeListResponseAllOf { - /** - * Constructs a new ActivityTypeListResponseAllOf. - * @alias module:model/ActivityTypeListResponseAllOf - */ - constructor() { - - ActivityTypeListResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityTypeListResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityTypeListResponseAllOf} obj Optional instance to populate. - * @return {module:model/ActivityTypeListResponseAllOf} The populated ActivityTypeListResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityTypeListResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ActivityTypeObjectResponse]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of activity types - * @member {Array.} data - */ -ActivityTypeListResponseAllOf.prototype['data'] = undefined; - - - - - - -export default ActivityTypeListResponseAllOf; - diff --git a/src/model/ActivityTypeObjectResponse.js b/src/model/ActivityTypeObjectResponse.js deleted file mode 100644 index 4908b0b7..00000000 --- a/src/model/ActivityTypeObjectResponse.js +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import IconKey from './IconKey'; - -/** - * The ActivityTypeObjectResponse model module. - * @module model/ActivityTypeObjectResponse - * @version 1.0.0 - */ -class ActivityTypeObjectResponse { - /** - * Constructs a new ActivityTypeObjectResponse. - * @alias module:model/ActivityTypeObjectResponse - */ - constructor() { - - ActivityTypeObjectResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityTypeObjectResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityTypeObjectResponse} obj Optional instance to populate. - * @return {module:model/ActivityTypeObjectResponse} The populated ActivityTypeObjectResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityTypeObjectResponse(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('icon_key')) { - obj['icon_key'] = IconKey.constructFromObject(data['icon_key']); - - delete data['icon_key']; - } - if (data.hasOwnProperty('color')) { - obj['color'] = ApiClient.convertToType(data['color'], 'String'); - - delete data['color']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('key_string')) { - obj['key_string'] = ApiClient.convertToType(data['key_string'], 'String'); - - delete data['key_string']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('is_custom_flag')) { - obj['is_custom_flag'] = ApiClient.convertToType(data['is_custom_flag'], 'Boolean'); - - delete data['is_custom_flag']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the activity type - * @member {Number} id - */ -ActivityTypeObjectResponse.prototype['id'] = undefined; - -/** - * The name of the activity type - * @member {String} name - */ -ActivityTypeObjectResponse.prototype['name'] = undefined; - -/** - * @member {module:model/IconKey} icon_key - */ -ActivityTypeObjectResponse.prototype['icon_key'] = undefined; - -/** - * A designated color for the activity type in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black) - * @member {String} color - */ -ActivityTypeObjectResponse.prototype['color'] = undefined; - -/** - * An order number for the activity type. Order numbers should be used to order the types in the activity type selections. - * @member {Number} order_nr - */ -ActivityTypeObjectResponse.prototype['order_nr'] = undefined; - -/** - * A string that is generated by the API based on the given name of the activity type upon creation - * @member {String} key_string - */ -ActivityTypeObjectResponse.prototype['key_string'] = undefined; - -/** - * The active flag of the activity type - * @member {Boolean} active_flag - */ -ActivityTypeObjectResponse.prototype['active_flag'] = undefined; - -/** - * Whether the activity type is a custom one or not - * @member {Boolean} is_custom_flag - */ -ActivityTypeObjectResponse.prototype['is_custom_flag'] = undefined; - -/** - * The creation time of the activity type - * @member {Date} add_time - */ -ActivityTypeObjectResponse.prototype['add_time'] = undefined; - -/** - * The update time of the activity type - * @member {Date} update_time - */ -ActivityTypeObjectResponse.prototype['update_time'] = undefined; - - - - - - -export default ActivityTypeObjectResponse; - diff --git a/src/model/ActivityTypeUpdateRequest.js b/src/model/ActivityTypeUpdateRequest.js deleted file mode 100644 index 0bc6078b..00000000 --- a/src/model/ActivityTypeUpdateRequest.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import IconKey from './IconKey'; - -/** - * The ActivityTypeUpdateRequest model module. - * @module model/ActivityTypeUpdateRequest - * @version 1.0.0 - */ -class ActivityTypeUpdateRequest { - /** - * Constructs a new ActivityTypeUpdateRequest. - * @alias module:model/ActivityTypeUpdateRequest - */ - constructor() { - - ActivityTypeUpdateRequest.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ActivityTypeUpdateRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ActivityTypeUpdateRequest} obj Optional instance to populate. - * @return {module:model/ActivityTypeUpdateRequest} The populated ActivityTypeUpdateRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ActivityTypeUpdateRequest(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('icon_key')) { - obj['icon_key'] = IconKey.constructFromObject(data['icon_key']); - - delete data['icon_key']; - } - if (data.hasOwnProperty('color')) { - obj['color'] = ApiClient.convertToType(data['color'], 'String'); - - delete data['color']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the activity type - * @member {String} name - */ -ActivityTypeUpdateRequest.prototype['name'] = undefined; - -/** - * @member {module:model/IconKey} icon_key - */ -ActivityTypeUpdateRequest.prototype['icon_key'] = undefined; - -/** - * A designated color for the activity type in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black) - * @member {String} color - */ -ActivityTypeUpdateRequest.prototype['color'] = undefined; - -/** - * An order number for this activity type. Order numbers should be used to order the types in the activity type selections. - * @member {Number} order_nr - */ -ActivityTypeUpdateRequest.prototype['order_nr'] = undefined; - - - - - - -export default ActivityTypeUpdateRequest; - diff --git a/src/model/AddActivityResponse.js b/src/model/AddActivityResponse.js deleted file mode 100644 index 0b6e4a13..00000000 --- a/src/model/AddActivityResponse.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityRecordAdditionalData from './ActivityRecordAdditionalData'; -import ActivityResponseObject from './ActivityResponseObject'; -import AddActivityResponseRelatedObjects from './AddActivityResponseRelatedObjects'; - -/** - * The AddActivityResponse model module. - * @module model/AddActivityResponse - * @version 1.0.0 - */ -class AddActivityResponse { - /** - * Constructs a new AddActivityResponse. - * @alias module:model/AddActivityResponse - */ - constructor() { - - AddActivityResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddActivityResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddActivityResponse} obj Optional instance to populate. - * @return {module:model/AddActivityResponse} The populated AddActivityResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddActivityResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ActivityRecordAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AddActivityResponseRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -AddActivityResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ActivityResponseObject} data - */ -AddActivityResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ActivityRecordAdditionalData} additional_data - */ -AddActivityResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AddActivityResponseRelatedObjects} related_objects - */ -AddActivityResponse.prototype['related_objects'] = undefined; - - - - - - -export default AddActivityResponse; - diff --git a/src/model/AddActivityResponse200.js b/src/model/AddActivityResponse200.js deleted file mode 100644 index 43314455..00000000 --- a/src/model/AddActivityResponse200.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityRecordAdditionalData from './ActivityRecordAdditionalData'; -import ActivityResponseObject from './ActivityResponseObject'; -import AddActivityResponse200RelatedObjects from './AddActivityResponse200RelatedObjects'; - -/** - * The AddActivityResponse200 model module. - * @module model/AddActivityResponse200 - * @version 1.0.0 - */ -class AddActivityResponse200 { - /** - * Constructs a new AddActivityResponse200. - * @alias module:model/AddActivityResponse200 - */ - constructor() { - - AddActivityResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddActivityResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddActivityResponse200} obj Optional instance to populate. - * @return {module:model/AddActivityResponse200} The populated AddActivityResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddActivityResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ActivityRecordAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AddActivityResponse200RelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -AddActivityResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/ActivityResponseObject} data - */ -AddActivityResponse200.prototype['data'] = undefined; - -/** - * @member {module:model/ActivityRecordAdditionalData} additional_data - */ -AddActivityResponse200.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AddActivityResponse200RelatedObjects} related_objects - */ -AddActivityResponse200.prototype['related_objects'] = undefined; - - - - - - -export default AddActivityResponse200; - diff --git a/src/model/AddActivityResponse200RelatedObjects.js b/src/model/AddActivityResponse200RelatedObjects.js deleted file mode 100644 index 314e79fd..00000000 --- a/src/model/AddActivityResponse200RelatedObjects.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedDealData from './RelatedDealData'; -import RelatedOrganizationDataWithActiveFlag from './RelatedOrganizationDataWithActiveFlag'; -import RelatedPersonDataWithActiveFlag from './RelatedPersonDataWithActiveFlag'; -import RelatedUserData from './RelatedUserData'; - -/** - * The AddActivityResponse200RelatedObjects model module. - * @module model/AddActivityResponse200RelatedObjects - * @version 1.0.0 - */ -class AddActivityResponse200RelatedObjects { - /** - * Constructs a new AddActivityResponse200RelatedObjects. - * @alias module:model/AddActivityResponse200RelatedObjects - */ - constructor() { - - AddActivityResponse200RelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddActivityResponse200RelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddActivityResponse200RelatedObjects} obj Optional instance to populate. - * @return {module:model/AddActivityResponse200RelatedObjects} The populated AddActivityResponse200RelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddActivityResponse200RelatedObjects(); - - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - if (data.hasOwnProperty('deal')) { - obj['deal'] = RelatedDealData.constructFromObject(data['deal']); - - delete data['deal']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = RelatedPersonDataWithActiveFlag.constructFromObject(data['person']); - - delete data['person']; - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationDataWithActiveFlag.constructFromObject(data['organization']); - - delete data['organization']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedUserData} user - */ -AddActivityResponse200RelatedObjects.prototype['user'] = undefined; - -/** - * @member {module:model/RelatedDealData} deal - */ -AddActivityResponse200RelatedObjects.prototype['deal'] = undefined; - -/** - * @member {module:model/RelatedPersonDataWithActiveFlag} person - */ -AddActivityResponse200RelatedObjects.prototype['person'] = undefined; - -/** - * @member {module:model/RelatedOrganizationDataWithActiveFlag} organization - */ -AddActivityResponse200RelatedObjects.prototype['organization'] = undefined; - - - - - - -export default AddActivityResponse200RelatedObjects; - diff --git a/src/model/AddActivityResponseRelatedObjects.js b/src/model/AddActivityResponseRelatedObjects.js deleted file mode 100644 index ceb3966f..00000000 --- a/src/model/AddActivityResponseRelatedObjects.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedDealData from './RelatedDealData'; -import RelatedOrganizationDataWithActiveFlag from './RelatedOrganizationDataWithActiveFlag'; -import RelatedPersonDataWithActiveFlag from './RelatedPersonDataWithActiveFlag'; -import RelatedUserData from './RelatedUserData'; - -/** - * The AddActivityResponseRelatedObjects model module. - * @module model/AddActivityResponseRelatedObjects - * @version 1.0.0 - */ -class AddActivityResponseRelatedObjects { - /** - * Constructs a new AddActivityResponseRelatedObjects. - * @alias module:model/AddActivityResponseRelatedObjects - */ - constructor() { - - AddActivityResponseRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddActivityResponseRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddActivityResponseRelatedObjects} obj Optional instance to populate. - * @return {module:model/AddActivityResponseRelatedObjects} The populated AddActivityResponseRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddActivityResponseRelatedObjects(); - - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - if (data.hasOwnProperty('deal')) { - obj['deal'] = RelatedDealData.constructFromObject(data['deal']); - - delete data['deal']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = RelatedPersonDataWithActiveFlag.constructFromObject(data['person']); - - delete data['person']; - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationDataWithActiveFlag.constructFromObject(data['organization']); - - delete data['organization']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedUserData} user - */ -AddActivityResponseRelatedObjects.prototype['user'] = undefined; - -/** - * @member {module:model/RelatedDealData} deal - */ -AddActivityResponseRelatedObjects.prototype['deal'] = undefined; - -/** - * @member {module:model/RelatedPersonDataWithActiveFlag} person - */ -AddActivityResponseRelatedObjects.prototype['person'] = undefined; - -/** - * @member {module:model/RelatedOrganizationDataWithActiveFlag} organization - */ -AddActivityResponseRelatedObjects.prototype['organization'] = undefined; - - - - - - -export default AddActivityResponseRelatedObjects; - diff --git a/src/model/AddCallLogAudioFileRequest.js b/src/model/AddCallLogAudioFileRequest.js deleted file mode 100644 index 6b3cadbb..00000000 --- a/src/model/AddCallLogAudioFileRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddCallLogAudioFileRequest model module. - * @module model/AddCallLogAudioFileRequest - * @version 1.0.0 - */ -class AddCallLogAudioFileRequest { - /** - * Constructs a new AddCallLogAudioFileRequest. - * @alias module:model/AddCallLogAudioFileRequest - * @param file {File} Audio file supported by the HTML5 specification - */ - constructor(file) { - - AddCallLogAudioFileRequest.initialize(this, file); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, file) { - obj['file'] = file; - } - - /** - * Constructs a AddCallLogAudioFileRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddCallLogAudioFileRequest} obj Optional instance to populate. - * @return {module:model/AddCallLogAudioFileRequest} The populated AddCallLogAudioFileRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddCallLogAudioFileRequest(); - - if (data.hasOwnProperty('file')) { - obj['file'] = ApiClient.convertToType(data['file'], File); - - delete data['file']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * Audio file supported by the HTML5 specification - * @member {File} file - */ -AddCallLogAudioFileRequest.prototype['file'] = undefined; - - - - - - -export default AddCallLogAudioFileRequest; - diff --git a/src/model/AddDealFollowerRequest.js b/src/model/AddDealFollowerRequest.js deleted file mode 100644 index 6bbb5fca..00000000 --- a/src/model/AddDealFollowerRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddDealFollowerRequest model module. - * @module model/AddDealFollowerRequest - * @version 1.0.0 - */ -class AddDealFollowerRequest { - /** - * Constructs a new AddDealFollowerRequest. - * @alias module:model/AddDealFollowerRequest - * @param userId {Number} The ID of the user - */ - constructor(userId) { - - AddDealFollowerRequest.initialize(this, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId) { - obj['user_id'] = userId; - } - - /** - * Constructs a AddDealFollowerRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddDealFollowerRequest} obj Optional instance to populate. - * @return {module:model/AddDealFollowerRequest} The populated AddDealFollowerRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddDealFollowerRequest(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} user_id - */ -AddDealFollowerRequest.prototype['user_id'] = undefined; - - - - - - -export default AddDealFollowerRequest; - diff --git a/src/model/AddDealParticipantRequest.js b/src/model/AddDealParticipantRequest.js deleted file mode 100644 index 789d2dc2..00000000 --- a/src/model/AddDealParticipantRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddDealParticipantRequest model module. - * @module model/AddDealParticipantRequest - * @version 1.0.0 - */ -class AddDealParticipantRequest { - /** - * Constructs a new AddDealParticipantRequest. - * @alias module:model/AddDealParticipantRequest - * @param personId {Number} The ID of the person - */ - constructor(personId) { - - AddDealParticipantRequest.initialize(this, personId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, personId) { - obj['person_id'] = personId; - } - - /** - * Constructs a AddDealParticipantRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddDealParticipantRequest} obj Optional instance to populate. - * @return {module:model/AddDealParticipantRequest} The populated AddDealParticipantRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddDealParticipantRequest(); - - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person - * @member {Number} person_id - */ -AddDealParticipantRequest.prototype['person_id'] = undefined; - - - - - - -export default AddDealParticipantRequest; - diff --git a/src/model/AddFile.js b/src/model/AddFile.js deleted file mode 100644 index 8c03012a..00000000 --- a/src/model/AddFile.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FileData from './FileData'; - -/** - * The AddFile model module. - * @module model/AddFile - * @version 1.0.0 - */ -class AddFile { - /** - * Constructs a new AddFile. - * @alias module:model/AddFile - */ - constructor() { - - AddFile.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddFile from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFile} obj Optional instance to populate. - * @return {module:model/AddFile} The populated AddFile instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFile(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FileData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -AddFile.prototype['success'] = undefined; - -/** - * @member {module:model/FileData} data - */ -AddFile.prototype['data'] = undefined; - - - - - - -export default AddFile; - diff --git a/src/model/AddFileAndLinkItRequest.js b/src/model/AddFileAndLinkItRequest.js deleted file mode 100644 index f58b772e..00000000 --- a/src/model/AddFileAndLinkItRequest.js +++ /dev/null @@ -1,214 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddFileAndLinkItRequest model module. - * @module model/AddFileAndLinkItRequest - * @version 1.0.0 - */ -class AddFileAndLinkItRequest { - /** - * Constructs a new AddFileAndLinkItRequest. - * @alias module:model/AddFileAndLinkItRequest - * @param fileType {module:model/AddFileAndLinkItRequest.FileTypeEnum} The file type - * @param title {String} The title of the file - * @param itemType {module:model/AddFileAndLinkItRequest.ItemTypeEnum} The item type - * @param itemId {Number} ID of the item to associate the file with - * @param remoteLocation {module:model/AddFileAndLinkItRequest.RemoteLocationEnum} The location type to send the file to. Only `googledrive` is supported at the moment. - */ - constructor(fileType, title, itemType, itemId, remoteLocation) { - - AddFileAndLinkItRequest.initialize(this, fileType, title, itemType, itemId, remoteLocation); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, fileType, title, itemType, itemId, remoteLocation) { - obj['file_type'] = fileType; - obj['title'] = title; - obj['item_type'] = itemType; - obj['item_id'] = itemId; - obj['remote_location'] = remoteLocation; - } - - /** - * Constructs a AddFileAndLinkItRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFileAndLinkItRequest} obj Optional instance to populate. - * @return {module:model/AddFileAndLinkItRequest} The populated AddFileAndLinkItRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFileAndLinkItRequest(); - - if (data.hasOwnProperty('file_type')) { - obj['file_type'] = ApiClient.convertToType(data['file_type'], 'String'); - - delete data['file_type']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = ApiClient.convertToType(data['item_type'], 'String'); - - delete data['item_type']; - } - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'Number'); - - delete data['item_id']; - } - if (data.hasOwnProperty('remote_location')) { - obj['remote_location'] = ApiClient.convertToType(data['remote_location'], 'String'); - - delete data['remote_location']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * The file type - * @member {module:model/AddFileAndLinkItRequest.FileTypeEnum} file_type - */ -AddFileAndLinkItRequest.prototype['file_type'] = undefined; - -/** - * The title of the file - * @member {String} title - */ -AddFileAndLinkItRequest.prototype['title'] = undefined; - -/** - * The item type - * @member {module:model/AddFileAndLinkItRequest.ItemTypeEnum} item_type - */ -AddFileAndLinkItRequest.prototype['item_type'] = undefined; - -/** - * ID of the item to associate the file with - * @member {Number} item_id - */ -AddFileAndLinkItRequest.prototype['item_id'] = undefined; - -/** - * The location type to send the file to. Only `googledrive` is supported at the moment. - * @member {module:model/AddFileAndLinkItRequest.RemoteLocationEnum} remote_location - */ -AddFileAndLinkItRequest.prototype['remote_location'] = undefined; - - - - - -/** - * Allowed values for the file_type property. - * @enum {String} - * @readonly - */ -AddFileAndLinkItRequest['FileTypeEnum'] = { - - /** - * value: "gdoc" - * @const - */ - "gdoc": "gdoc", - - /** - * value: "gslides" - * @const - */ - "gslides": "gslides", - - /** - * value: "gsheet" - * @const - */ - "gsheet": "gsheet", - - /** - * value: "gform" - * @const - */ - "gform": "gform", - - /** - * value: "gdraw" - * @const - */ - "gdraw": "gdraw" -}; - - -/** - * Allowed values for the item_type property. - * @enum {String} - * @readonly - */ -AddFileAndLinkItRequest['ItemTypeEnum'] = { - - /** - * value: "deal" - * @const - */ - "deal": "deal", - - /** - * value: "organization" - * @const - */ - "organization": "organization", - - /** - * value: "person" - * @const - */ - "person": "person" -}; - - -/** - * Allowed values for the remote_location property. - * @enum {String} - * @readonly - */ -AddFileAndLinkItRequest['RemoteLocationEnum'] = { - - /** - * value: "googledrive" - * @const - */ - "googledrive": "googledrive" -}; - - - -export default AddFileAndLinkItRequest; - diff --git a/src/model/AddFileRequest.js b/src/model/AddFileRequest.js deleted file mode 100644 index a60a086d..00000000 --- a/src/model/AddFileRequest.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddFileRequest model module. - * @module model/AddFileRequest - * @version 1.0.0 - */ -class AddFileRequest { - /** - * Constructs a new AddFileRequest. - * @alias module:model/AddFileRequest - * @param file {File} A single file, supplied in the multipart/form-data encoding and contained within the given boundaries. - */ - constructor(file) { - - AddFileRequest.initialize(this, file); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, file) { - obj['file'] = file; - } - - /** - * Constructs a AddFileRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFileRequest} obj Optional instance to populate. - * @return {module:model/AddFileRequest} The populated AddFileRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFileRequest(); - - if (data.hasOwnProperty('file')) { - obj['file'] = ApiClient.convertToType(data['file'], File); - - delete data['file']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('activity_id')) { - obj['activity_id'] = ApiClient.convertToType(data['activity_id'], 'Number'); - - delete data['activity_id']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * A single file, supplied in the multipart/form-data encoding and contained within the given boundaries. - * @member {File} file - */ -AddFileRequest.prototype['file'] = undefined; - -/** - * ID of the deal to associate file(s) with - * @member {Number} deal_id - */ -AddFileRequest.prototype['deal_id'] = undefined; - -/** - * ID of the person to associate file(s) with - * @member {Number} person_id - */ -AddFileRequest.prototype['person_id'] = undefined; - -/** - * ID of the organization to associate file(s) with - * @member {Number} org_id - */ -AddFileRequest.prototype['org_id'] = undefined; - -/** - * ID of the product to associate file(s) with - * @member {Number} product_id - */ -AddFileRequest.prototype['product_id'] = undefined; - -/** - * ID of the activity to associate file(s) with - * @member {Number} activity_id - */ -AddFileRequest.prototype['activity_id'] = undefined; - - - - - - -export default AddFileRequest; - diff --git a/src/model/AddFilterRequest.js b/src/model/AddFilterRequest.js deleted file mode 100644 index 4e0a658b..00000000 --- a/src/model/AddFilterRequest.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FilterType from './FilterType'; - -/** - * The AddFilterRequest model module. - * @module model/AddFilterRequest - * @version 1.0.0 - */ -class AddFilterRequest { - /** - * Constructs a new AddFilterRequest. - * @alias module:model/AddFilterRequest - * @param name {String} The name of the filter - * @param conditions {Object} The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter and `date` values must be supplied in the `YYYY-MM-DD` format. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application. - * @param type {module:model/FilterType} The type of filter to create - */ - constructor(name, conditions, type) { - - AddFilterRequest.initialize(this, name, conditions, type); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name, conditions, type) { - obj['name'] = name; - obj['conditions'] = conditions; - obj['type'] = type; - } - - /** - * Constructs a AddFilterRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFilterRequest} obj Optional instance to populate. - * @return {module:model/AddFilterRequest} The populated AddFilterRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFilterRequest(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], Object); - - delete data['conditions']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], FilterType); - - delete data['type']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the filter - * @member {String} name - */ -AddFilterRequest.prototype['name'] = undefined; - -/** - * The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter and `date` values must be supplied in the `YYYY-MM-DD` format. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application. - * @member {Object} conditions - */ -AddFilterRequest.prototype['conditions'] = undefined; - -/** - * The type of filter to create - * @member {module:model/FilterType} type - */ -AddFilterRequest.prototype['type'] = undefined; - - - - - - -export default AddFilterRequest; - diff --git a/src/model/AddFollowerToPersonResponse.js b/src/model/AddFollowerToPersonResponse.js deleted file mode 100644 index b82f320f..00000000 --- a/src/model/AddFollowerToPersonResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddFollowerToPersonResponseAllOf from './AddFollowerToPersonResponseAllOf'; -import AddFollowerToPersonResponseAllOfData from './AddFollowerToPersonResponseAllOfData'; -import BaseResponse from './BaseResponse'; - -/** - * The AddFollowerToPersonResponse model module. - * @module model/AddFollowerToPersonResponse - * @version 1.0.0 - */ -class AddFollowerToPersonResponse { - /** - * Constructs a new AddFollowerToPersonResponse. - * @alias module:model/AddFollowerToPersonResponse - * @implements module:model/BaseResponse - * @implements module:model/AddFollowerToPersonResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);AddFollowerToPersonResponseAllOf.initialize(this); - AddFollowerToPersonResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddFollowerToPersonResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFollowerToPersonResponse} obj Optional instance to populate. - * @return {module:model/AddFollowerToPersonResponse} The populated AddFollowerToPersonResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFollowerToPersonResponse(); - BaseResponse.constructFromObject(data, obj); - AddFollowerToPersonResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = AddFollowerToPersonResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -AddFollowerToPersonResponse.prototype['success'] = undefined; - -/** - * @member {module:model/AddFollowerToPersonResponseAllOfData} data - */ -AddFollowerToPersonResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement AddFollowerToPersonResponseAllOf interface: -/** - * @member {module:model/AddFollowerToPersonResponseAllOfData} data - */ -AddFollowerToPersonResponseAllOf.prototype['data'] = undefined; - - - - -export default AddFollowerToPersonResponse; - diff --git a/src/model/AddFollowerToPersonResponseAllOf.js b/src/model/AddFollowerToPersonResponseAllOf.js deleted file mode 100644 index 8de3a305..00000000 --- a/src/model/AddFollowerToPersonResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddFollowerToPersonResponseAllOfData from './AddFollowerToPersonResponseAllOfData'; - -/** - * The AddFollowerToPersonResponseAllOf model module. - * @module model/AddFollowerToPersonResponseAllOf - * @version 1.0.0 - */ -class AddFollowerToPersonResponseAllOf { - /** - * Constructs a new AddFollowerToPersonResponseAllOf. - * @alias module:model/AddFollowerToPersonResponseAllOf - */ - constructor() { - - AddFollowerToPersonResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddFollowerToPersonResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFollowerToPersonResponseAllOf} obj Optional instance to populate. - * @return {module:model/AddFollowerToPersonResponseAllOf} The populated AddFollowerToPersonResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFollowerToPersonResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = AddFollowerToPersonResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/AddFollowerToPersonResponseAllOfData} data - */ -AddFollowerToPersonResponseAllOf.prototype['data'] = undefined; - - - - - - -export default AddFollowerToPersonResponseAllOf; - diff --git a/src/model/AddFollowerToPersonResponseAllOfData.js b/src/model/AddFollowerToPersonResponseAllOfData.js deleted file mode 100644 index 9c29613a..00000000 --- a/src/model/AddFollowerToPersonResponseAllOfData.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddFollowerToPersonResponseAllOfData model module. - * @module model/AddFollowerToPersonResponseAllOfData - * @version 1.0.0 - */ -class AddFollowerToPersonResponseAllOfData { - /** - * Constructs a new AddFollowerToPersonResponseAllOfData. - * @alias module:model/AddFollowerToPersonResponseAllOfData - */ - constructor() { - - AddFollowerToPersonResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddFollowerToPersonResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFollowerToPersonResponseAllOfData} obj Optional instance to populate. - * @return {module:model/AddFollowerToPersonResponseAllOfData} The populated AddFollowerToPersonResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFollowerToPersonResponseAllOfData(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user who was added as a follower to a person - * @member {Number} user_id - */ -AddFollowerToPersonResponseAllOfData.prototype['user_id'] = undefined; - -/** - * The ID of the follower - * @member {Number} id - */ -AddFollowerToPersonResponseAllOfData.prototype['id'] = undefined; - -/** - * The ID of the person to whom the follower was added - * @member {Number} person_id - */ -AddFollowerToPersonResponseAllOfData.prototype['person_id'] = undefined; - -/** - * The date and time when the follower was added to a person. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -AddFollowerToPersonResponseAllOfData.prototype['add_time'] = undefined; - - - - - - -export default AddFollowerToPersonResponseAllOfData; - diff --git a/src/model/AddLeadLabelRequest.js b/src/model/AddLeadLabelRequest.js deleted file mode 100644 index 0dafa078..00000000 --- a/src/model/AddLeadLabelRequest.js +++ /dev/null @@ -1,94 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadLabelColor from './LeadLabelColor'; - -/** - * The AddLeadLabelRequest model module. - * @module model/AddLeadLabelRequest - * @version 1.0.0 - */ -class AddLeadLabelRequest { - /** - * Constructs a new AddLeadLabelRequest. - * @alias module:model/AddLeadLabelRequest - * @param name {String} The name of the lead label - * @param color {module:model/LeadLabelColor} - */ - constructor(name, color) { - - AddLeadLabelRequest.initialize(this, name, color); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name, color) { - obj['name'] = name; - obj['color'] = color; - } - - /** - * Constructs a AddLeadLabelRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddLeadLabelRequest} obj Optional instance to populate. - * @return {module:model/AddLeadLabelRequest} The populated AddLeadLabelRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddLeadLabelRequest(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('color')) { - obj['color'] = LeadLabelColor.constructFromObject(data['color']); - - delete data['color']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the lead label - * @member {String} name - */ -AddLeadLabelRequest.prototype['name'] = undefined; - -/** - * @member {module:model/LeadLabelColor} color - */ -AddLeadLabelRequest.prototype['color'] = undefined; - - - - - - -export default AddLeadLabelRequest; - diff --git a/src/model/AddLeadRequest.js b/src/model/AddLeadRequest.js deleted file mode 100644 index f7b0a6de..00000000 --- a/src/model/AddLeadRequest.js +++ /dev/null @@ -1,203 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadValue from './LeadValue'; -import VisibleTo from './VisibleTo'; - -/** - * The AddLeadRequest model module. - * @module model/AddLeadRequest - * @version 1.0.0 - */ -class AddLeadRequest { - /** - * Constructs a new AddLeadRequest. - * @alias module:model/AddLeadRequest - * @param title {String} The name of the lead - */ - constructor(title) { - - AddLeadRequest.initialize(this, title); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, title) { - obj['title'] = title; - } - - /** - * Constructs a AddLeadRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddLeadRequest} obj Optional instance to populate. - * @return {module:model/AddLeadRequest} The populated AddLeadRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddLeadRequest(); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['String']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('organization_id')) { - obj['organization_id'] = ApiClient.convertToType(data['organization_id'], 'Number'); - - delete data['organization_id']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = LeadValue.constructFromObject(data['value']); - - delete data['value']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('was_seen')) { - obj['was_seen'] = ApiClient.convertToType(data['was_seen'], 'Boolean'); - - delete data['was_seen']; - } - if (data.hasOwnProperty('origin_id')) { - obj['origin_id'] = ApiClient.convertToType(data['origin_id'], 'String'); - - delete data['origin_id']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the lead - * @member {String} title - */ -AddLeadRequest.prototype['title'] = undefined; - -/** - * The ID of the user which will be the owner of the created lead. If not provided, the user making the request will be used. - * @member {Number} owner_id - */ -AddLeadRequest.prototype['owner_id'] = undefined; - -/** - * The IDs of the lead labels which will be associated with the lead - * @member {Array.} label_ids - */ -AddLeadRequest.prototype['label_ids'] = undefined; - -/** - * The ID of a person which this lead will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `organization_id` is specified. - * @member {Number} person_id - */ -AddLeadRequest.prototype['person_id'] = undefined; - -/** - * The ID of an organization which this lead will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified. - * @member {Number} organization_id - */ -AddLeadRequest.prototype['organization_id'] = undefined; - -/** - * @member {module:model/LeadValue} value - */ -AddLeadRequest.prototype['value'] = undefined; - -/** - * The date of when the deal which will be created from the lead is expected to be closed. In ISO 8601 format: YYYY-MM-DD. - * @member {Date} expected_close_date - */ -AddLeadRequest.prototype['expected_close_date'] = undefined; - -/** - * The visibility of the lead. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -AddLeadRequest.prototype['visible_to'] = undefined; - -/** - * A flag indicating whether the lead was seen by someone in the Pipedrive UI - * @member {Boolean} was_seen - */ -AddLeadRequest.prototype['was_seen'] = undefined; - -/** - * The optional ID to further distinguish the origin of the lead - e.g. Which API integration created this lead. If omitted, `origin_id` will be set to null. - * @member {String} origin_id - */ -AddLeadRequest.prototype['origin_id'] = undefined; - -/** - * The ID of Marketing channel this lead was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with GET /v1/dealFields. If omitted, channel will be set to null. - * @member {Number} channel - */ -AddLeadRequest.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null. - * @member {String} channel_id - */ -AddLeadRequest.prototype['channel_id'] = undefined; - - - - - - -export default AddLeadRequest; - diff --git a/src/model/AddNewPipeline.js b/src/model/AddNewPipeline.js deleted file mode 100644 index c628633f..00000000 --- a/src/model/AddNewPipeline.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddNewPipelineAllOf from './AddNewPipelineAllOf'; -import BasePipeline from './BasePipeline'; -import BaseResponse from './BaseResponse'; - -/** - * The AddNewPipeline model module. - * @module model/AddNewPipeline - * @version 1.0.0 - */ -class AddNewPipeline { - /** - * Constructs a new AddNewPipeline. - * @alias module:model/AddNewPipeline - * @implements module:model/BaseResponse - * @implements module:model/AddNewPipelineAllOf - */ - constructor() { - BaseResponse.initialize(this);AddNewPipelineAllOf.initialize(this); - AddNewPipeline.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddNewPipeline from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddNewPipeline} obj Optional instance to populate. - * @return {module:model/AddNewPipeline} The populated AddNewPipeline instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddNewPipeline(); - BaseResponse.constructFromObject(data, obj); - AddNewPipelineAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BasePipeline.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -AddNewPipeline.prototype['success'] = undefined; - -/** - * @member {module:model/BasePipeline} data - */ -AddNewPipeline.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement AddNewPipelineAllOf interface: -/** - * @member {module:model/BasePipeline} data - */ -AddNewPipelineAllOf.prototype['data'] = undefined; - - - - -export default AddNewPipeline; - diff --git a/src/model/AddNewPipelineAllOf.js b/src/model/AddNewPipelineAllOf.js deleted file mode 100644 index d1362564..00000000 --- a/src/model/AddNewPipelineAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePipeline from './BasePipeline'; - -/** - * The AddNewPipelineAllOf model module. - * @module model/AddNewPipelineAllOf - * @version 1.0.0 - */ -class AddNewPipelineAllOf { - /** - * Constructs a new AddNewPipelineAllOf. - * @alias module:model/AddNewPipelineAllOf - */ - constructor() { - - AddNewPipelineAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddNewPipelineAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddNewPipelineAllOf} obj Optional instance to populate. - * @return {module:model/AddNewPipelineAllOf} The populated AddNewPipelineAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddNewPipelineAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = BasePipeline.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BasePipeline} data - */ -AddNewPipelineAllOf.prototype['data'] = undefined; - - - - - - -export default AddNewPipelineAllOf; - diff --git a/src/model/AddNoteRequest.js b/src/model/AddNoteRequest.js deleted file mode 100644 index f4e381a9..00000000 --- a/src/model/AddNoteRequest.js +++ /dev/null @@ -1,255 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddNoteRequestAllOf from './AddNoteRequestAllOf'; -import NoteParams from './NoteParams'; -import NumberBoolean from './NumberBoolean'; - -/** - * The AddNoteRequest model module. - * @module model/AddNoteRequest - * @version 1.0.0 - */ -class AddNoteRequest { - /** - * Constructs a new AddNoteRequest. - * @alias module:model/AddNoteRequest - * @implements module:model/AddNoteRequestAllOf - * @implements module:model/NoteParams - * @param content {String} The content of the note in HTML format. Subject to sanitization on the back-end. - */ - constructor(content) { - AddNoteRequestAllOf.initialize(this, content);NoteParams.initialize(this); - AddNoteRequest.initialize(this, content); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, content) { - obj['content'] = content; - } - - /** - * Constructs a AddNoteRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddNoteRequest} obj Optional instance to populate. - * @return {module:model/AddNoteRequest} The populated AddNoteRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddNoteRequest(); - AddNoteRequestAllOf.constructFromObject(data, obj); - NoteParams.constructFromObject(data, obj); - - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - - delete data['content']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('pinned_to_lead_flag')) { - obj['pinned_to_lead_flag'] = ApiClient.convertToType(data['pinned_to_lead_flag'], NumberBoolean); - - delete data['pinned_to_lead_flag']; - } - if (data.hasOwnProperty('pinned_to_deal_flag')) { - obj['pinned_to_deal_flag'] = ApiClient.convertToType(data['pinned_to_deal_flag'], NumberBoolean); - - delete data['pinned_to_deal_flag']; - } - if (data.hasOwnProperty('pinned_to_organization_flag')) { - obj['pinned_to_organization_flag'] = ApiClient.convertToType(data['pinned_to_organization_flag'], NumberBoolean); - - delete data['pinned_to_organization_flag']; - } - if (data.hasOwnProperty('pinned_to_person_flag')) { - obj['pinned_to_person_flag'] = ApiClient.convertToType(data['pinned_to_person_flag'], NumberBoolean); - - delete data['pinned_to_person_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The content of the note in HTML format. Subject to sanitization on the back-end. - * @member {String} content - */ -AddNoteRequest.prototype['content'] = undefined; - -/** - * The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id`) is specified. - * @member {String} lead_id - */ -AddNoteRequest.prototype['lead_id'] = undefined; - -/** - * The ID of the deal the note will be attached to. This property is required unless one of (`lead_id/person_id/org_id`) is specified. - * @member {Number} deal_id - */ -AddNoteRequest.prototype['deal_id'] = undefined; - -/** - * The ID of the person this note will be attached to. This property is required unless one of (`deal_id/lead_id/org_id`) is specified. - * @member {Number} person_id - */ -AddNoteRequest.prototype['person_id'] = undefined; - -/** - * The ID of the organization this note will be attached to. This property is required unless one of (`deal_id/lead_id/person_id`) is specified. - * @member {Number} org_id - */ -AddNoteRequest.prototype['org_id'] = undefined; - -/** - * The ID of the user who will be marked as the author of the note. Only an admin can change the author. - * @member {Number} user_id - */ -AddNoteRequest.prototype['user_id'] = undefined; - -/** - * The optional creation date & time of the note in UTC. Can be set in the past or in the future. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -AddNoteRequest.prototype['add_time'] = undefined; - -/** - * If set, the results are filtered by note to lead pinning state (`lead_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_lead_flag - */ -AddNoteRequest.prototype['pinned_to_lead_flag'] = undefined; - -/** - * If set, the results are filtered by note to deal pinning state (`deal_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_deal_flag - */ -AddNoteRequest.prototype['pinned_to_deal_flag'] = undefined; - -/** - * If set, the results are filtered by note to organization pinning state (`org_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_organization_flag - */ -AddNoteRequest.prototype['pinned_to_organization_flag'] = undefined; - -/** - * If set, the results are filtered by note to person pinning state (`person_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_person_flag - */ -AddNoteRequest.prototype['pinned_to_person_flag'] = undefined; - - -// Implement AddNoteRequestAllOf interface: -/** - * The content of the note in HTML format. Subject to sanitization on the back-end. - * @member {String} content - */ -AddNoteRequestAllOf.prototype['content'] = undefined; -/** - * The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id`) is specified. - * @member {String} lead_id - */ -AddNoteRequestAllOf.prototype['lead_id'] = undefined; -/** - * The ID of the deal the note will be attached to. This property is required unless one of (`lead_id/person_id/org_id`) is specified. - * @member {Number} deal_id - */ -AddNoteRequestAllOf.prototype['deal_id'] = undefined; -/** - * The ID of the person this note will be attached to. This property is required unless one of (`deal_id/lead_id/org_id`) is specified. - * @member {Number} person_id - */ -AddNoteRequestAllOf.prototype['person_id'] = undefined; -/** - * The ID of the organization this note will be attached to. This property is required unless one of (`deal_id/lead_id/person_id`) is specified. - * @member {Number} org_id - */ -AddNoteRequestAllOf.prototype['org_id'] = undefined; -// Implement NoteParams interface: -/** - * The ID of the user who will be marked as the author of the note. Only an admin can change the author. - * @member {Number} user_id - */ -NoteParams.prototype['user_id'] = undefined; -/** - * The optional creation date & time of the note in UTC. Can be set in the past or in the future. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NoteParams.prototype['add_time'] = undefined; -/** - * If set, the results are filtered by note to lead pinning state (`lead_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_lead_flag - */ -NoteParams.prototype['pinned_to_lead_flag'] = undefined; -/** - * If set, the results are filtered by note to deal pinning state (`deal_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_deal_flag - */ -NoteParams.prototype['pinned_to_deal_flag'] = undefined; -/** - * If set, the results are filtered by note to organization pinning state (`org_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_organization_flag - */ -NoteParams.prototype['pinned_to_organization_flag'] = undefined; -/** - * If set, the results are filtered by note to person pinning state (`person_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_person_flag - */ -NoteParams.prototype['pinned_to_person_flag'] = undefined; - - - - -export default AddNoteRequest; - diff --git a/src/model/AddNoteRequestAllOf.js b/src/model/AddNoteRequestAllOf.js deleted file mode 100644 index 5241978c..00000000 --- a/src/model/AddNoteRequestAllOf.js +++ /dev/null @@ -1,125 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddNoteRequestAllOf model module. - * @module model/AddNoteRequestAllOf - * @version 1.0.0 - */ -class AddNoteRequestAllOf { - /** - * Constructs a new AddNoteRequestAllOf. - * @alias module:model/AddNoteRequestAllOf - * @param content {String} The content of the note in HTML format. Subject to sanitization on the back-end. - */ - constructor(content) { - - AddNoteRequestAllOf.initialize(this, content); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, content) { - obj['content'] = content; - } - - /** - * Constructs a AddNoteRequestAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddNoteRequestAllOf} obj Optional instance to populate. - * @return {module:model/AddNoteRequestAllOf} The populated AddNoteRequestAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddNoteRequestAllOf(); - - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - - delete data['content']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The content of the note in HTML format. Subject to sanitization on the back-end. - * @member {String} content - */ -AddNoteRequestAllOf.prototype['content'] = undefined; - -/** - * The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id`) is specified. - * @member {String} lead_id - */ -AddNoteRequestAllOf.prototype['lead_id'] = undefined; - -/** - * The ID of the deal the note will be attached to. This property is required unless one of (`lead_id/person_id/org_id`) is specified. - * @member {Number} deal_id - */ -AddNoteRequestAllOf.prototype['deal_id'] = undefined; - -/** - * The ID of the person this note will be attached to. This property is required unless one of (`deal_id/lead_id/org_id`) is specified. - * @member {Number} person_id - */ -AddNoteRequestAllOf.prototype['person_id'] = undefined; - -/** - * The ID of the organization this note will be attached to. This property is required unless one of (`deal_id/lead_id/person_id`) is specified. - * @member {Number} org_id - */ -AddNoteRequestAllOf.prototype['org_id'] = undefined; - - - - - - -export default AddNoteRequestAllOf; - diff --git a/src/model/AddOrUpdateGoalResponse200.js b/src/model/AddOrUpdateGoalResponse200.js deleted file mode 100644 index d9947fd5..00000000 --- a/src/model/AddOrUpdateGoalResponse200.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PostGoalResponse from './PostGoalResponse'; - -/** - * The AddOrUpdateGoalResponse200 model module. - * @module model/AddOrUpdateGoalResponse200 - * @version 1.0.0 - */ -class AddOrUpdateGoalResponse200 { - /** - * Constructs a new AddOrUpdateGoalResponse200. - * @alias module:model/AddOrUpdateGoalResponse200 - */ - constructor() { - - AddOrUpdateGoalResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddOrUpdateGoalResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddOrUpdateGoalResponse200} obj Optional instance to populate. - * @return {module:model/AddOrUpdateGoalResponse200} The populated AddOrUpdateGoalResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddOrUpdateGoalResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = PostGoalResponse.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -AddOrUpdateGoalResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/PostGoalResponse} data - */ -AddOrUpdateGoalResponse200.prototype['data'] = undefined; - - - - - - -export default AddOrUpdateGoalResponse200; - diff --git a/src/model/AddOrUpdateLeadLabelResponse200.js b/src/model/AddOrUpdateLeadLabelResponse200.js deleted file mode 100644 index e420d45f..00000000 --- a/src/model/AddOrUpdateLeadLabelResponse200.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadLabelResponse from './LeadLabelResponse'; - -/** - * The AddOrUpdateLeadLabelResponse200 model module. - * @module model/AddOrUpdateLeadLabelResponse200 - * @version 1.0.0 - */ -class AddOrUpdateLeadLabelResponse200 { - /** - * Constructs a new AddOrUpdateLeadLabelResponse200. - * @alias module:model/AddOrUpdateLeadLabelResponse200 - */ - constructor() { - - AddOrUpdateLeadLabelResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddOrUpdateLeadLabelResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddOrUpdateLeadLabelResponse200} obj Optional instance to populate. - * @return {module:model/AddOrUpdateLeadLabelResponse200} The populated AddOrUpdateLeadLabelResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddOrUpdateLeadLabelResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = LeadLabelResponse.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -AddOrUpdateLeadLabelResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/LeadLabelResponse} data - */ -AddOrUpdateLeadLabelResponse200.prototype['data'] = undefined; - - - - - - -export default AddOrUpdateLeadLabelResponse200; - diff --git a/src/model/AddOrUpdateRoleSettingRequest.js b/src/model/AddOrUpdateRoleSettingRequest.js deleted file mode 100644 index 2d9ce018..00000000 --- a/src/model/AddOrUpdateRoleSettingRequest.js +++ /dev/null @@ -1,165 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddOrUpdateRoleSettingRequest model module. - * @module model/AddOrUpdateRoleSettingRequest - * @version 1.0.0 - */ -class AddOrUpdateRoleSettingRequest { - /** - * Constructs a new AddOrUpdateRoleSettingRequest. - * @alias module:model/AddOrUpdateRoleSettingRequest - * @param settingKey {module:model/AddOrUpdateRoleSettingRequest.SettingKeyEnum} - * @param value {module:model/AddOrUpdateRoleSettingRequest.ValueEnum} Possible values for the `default_visibility` setting depending on the subscription plan:
Essential / Advanced plan
ValueDescription
`1`Owner & Followers
`3`Entire company

Professional / Enterprise plan
ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company

Read more about visibility groups here. - */ - constructor(settingKey, value) { - - AddOrUpdateRoleSettingRequest.initialize(this, settingKey, value); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, settingKey, value) { - obj['setting_key'] = settingKey; - obj['value'] = value; - } - - /** - * Constructs a AddOrUpdateRoleSettingRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddOrUpdateRoleSettingRequest} obj Optional instance to populate. - * @return {module:model/AddOrUpdateRoleSettingRequest} The populated AddOrUpdateRoleSettingRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddOrUpdateRoleSettingRequest(); - - if (data.hasOwnProperty('setting_key')) { - obj['setting_key'] = ApiClient.convertToType(data['setting_key'], 'String'); - - delete data['setting_key']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/AddOrUpdateRoleSettingRequest.SettingKeyEnum} setting_key - */ -AddOrUpdateRoleSettingRequest.prototype['setting_key'] = undefined; - -/** - * Possible values for the `default_visibility` setting depending on the subscription plan:
Essential / Advanced plan
ValueDescription
`1`Owner & Followers
`3`Entire company

Professional / Enterprise plan
ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company

Read more about visibility groups here. - * @member {module:model/AddOrUpdateRoleSettingRequest.ValueEnum} value - */ -AddOrUpdateRoleSettingRequest.prototype['value'] = undefined; - - - - - -/** - * Allowed values for the setting_key property. - * @enum {String} - * @readonly - */ -AddOrUpdateRoleSettingRequest['SettingKeyEnum'] = { - - /** - * value: "deal_default_visibility" - * @const - */ - "deal_default_visibility": "deal_default_visibility", - - /** - * value: "lead_default_visibility" - * @const - */ - "lead_default_visibility": "lead_default_visibility", - - /** - * value: "org_default_visibility" - * @const - */ - "org_default_visibility": "org_default_visibility", - - /** - * value: "person_default_visibility" - * @const - */ - "person_default_visibility": "person_default_visibility", - - /** - * value: "product_default_visibility" - * @const - */ - "product_default_visibility": "product_default_visibility" -}; - - -/** - * Allowed values for the value property. - * @enum {Number} - * @readonly - */ -AddOrUpdateRoleSettingRequest['ValueEnum'] = { - - /** - * value: 1 - * @const - */ - "1": 1, - - /** - * value: 3 - * @const - */ - "3": 3, - - /** - * value: 5 - * @const - */ - "5": 5, - - /** - * value: 7 - * @const - */ - "7": 7 -}; - - - -export default AddOrUpdateRoleSettingRequest; - diff --git a/src/model/AddOrganizationFollowerRequest.js b/src/model/AddOrganizationFollowerRequest.js deleted file mode 100644 index d1ceac48..00000000 --- a/src/model/AddOrganizationFollowerRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddOrganizationFollowerRequest model module. - * @module model/AddOrganizationFollowerRequest - * @version 1.0.0 - */ -class AddOrganizationFollowerRequest { - /** - * Constructs a new AddOrganizationFollowerRequest. - * @alias module:model/AddOrganizationFollowerRequest - * @param userId {Number} The ID of the user - */ - constructor(userId) { - - AddOrganizationFollowerRequest.initialize(this, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId) { - obj['user_id'] = userId; - } - - /** - * Constructs a AddOrganizationFollowerRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddOrganizationFollowerRequest} obj Optional instance to populate. - * @return {module:model/AddOrganizationFollowerRequest} The populated AddOrganizationFollowerRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddOrganizationFollowerRequest(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} user_id - */ -AddOrganizationFollowerRequest.prototype['user_id'] = undefined; - - - - - - -export default AddOrganizationFollowerRequest; - diff --git a/src/model/AddOrganizationRelationshipRequest.js b/src/model/AddOrganizationRelationshipRequest.js deleted file mode 100644 index 0aab45b5..00000000 --- a/src/model/AddOrganizationRelationshipRequest.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddOrganizationRelationshipRequest model module. - * @module model/AddOrganizationRelationshipRequest - * @version 1.0.0 - */ -class AddOrganizationRelationshipRequest { - /** - * Constructs a new AddOrganizationRelationshipRequest. - * @alias module:model/AddOrganizationRelationshipRequest - * @param type {module:model/AddOrganizationRelationshipRequest.TypeEnum} The type of organization relationship - * @param relOwnerOrgId {Number} The owner of the relationship. If type is `parent`, then the owner is the parent and the linked organization is the daughter. - * @param relLinkedOrgId {Number} The linked organization in the relationship. If type is `parent`, then the linked organization is the daughter. - */ - constructor(type, relOwnerOrgId, relLinkedOrgId) { - - AddOrganizationRelationshipRequest.initialize(this, type, relOwnerOrgId, relLinkedOrgId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, type, relOwnerOrgId, relLinkedOrgId) { - obj['type'] = type; - obj['rel_owner_org_id'] = relOwnerOrgId; - obj['rel_linked_org_id'] = relLinkedOrgId; - } - - /** - * Constructs a AddOrganizationRelationshipRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddOrganizationRelationshipRequest} obj Optional instance to populate. - * @return {module:model/AddOrganizationRelationshipRequest} The populated AddOrganizationRelationshipRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddOrganizationRelationshipRequest(); - - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('rel_owner_org_id')) { - obj['rel_owner_org_id'] = ApiClient.convertToType(data['rel_owner_org_id'], 'Number'); - - delete data['rel_owner_org_id']; - } - if (data.hasOwnProperty('rel_linked_org_id')) { - obj['rel_linked_org_id'] = ApiClient.convertToType(data['rel_linked_org_id'], 'Number'); - - delete data['rel_linked_org_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the base organization for the returned calculated values - * @member {Number} org_id - */ -AddOrganizationRelationshipRequest.prototype['org_id'] = undefined; - -/** - * The type of organization relationship - * @member {module:model/AddOrganizationRelationshipRequest.TypeEnum} type - */ -AddOrganizationRelationshipRequest.prototype['type'] = undefined; - -/** - * The owner of the relationship. If type is `parent`, then the owner is the parent and the linked organization is the daughter. - * @member {Number} rel_owner_org_id - */ -AddOrganizationRelationshipRequest.prototype['rel_owner_org_id'] = undefined; - -/** - * The linked organization in the relationship. If type is `parent`, then the linked organization is the daughter. - * @member {Number} rel_linked_org_id - */ -AddOrganizationRelationshipRequest.prototype['rel_linked_org_id'] = undefined; - - - - - -/** - * Allowed values for the type property. - * @enum {String} - * @readonly - */ -AddOrganizationRelationshipRequest['TypeEnum'] = { - - /** - * value: "parent" - * @const - */ - "parent": "parent", - - /** - * value: "related" - * @const - */ - "related": "related" -}; - - - -export default AddOrganizationRelationshipRequest; - diff --git a/src/model/AddPersonFollowerRequest.js b/src/model/AddPersonFollowerRequest.js deleted file mode 100644 index 09aea41d..00000000 --- a/src/model/AddPersonFollowerRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddPersonFollowerRequest model module. - * @module model/AddPersonFollowerRequest - * @version 1.0.0 - */ -class AddPersonFollowerRequest { - /** - * Constructs a new AddPersonFollowerRequest. - * @alias module:model/AddPersonFollowerRequest - * @param userId {Number} The ID of the user - */ - constructor(userId) { - - AddPersonFollowerRequest.initialize(this, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId) { - obj['user_id'] = userId; - } - - /** - * Constructs a AddPersonFollowerRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddPersonFollowerRequest} obj Optional instance to populate. - * @return {module:model/AddPersonFollowerRequest} The populated AddPersonFollowerRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddPersonFollowerRequest(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} user_id - */ -AddPersonFollowerRequest.prototype['user_id'] = undefined; - - - - - - -export default AddPersonFollowerRequest; - diff --git a/src/model/AddPersonPictureRequest.js b/src/model/AddPersonPictureRequest.js deleted file mode 100644 index e2c52b03..00000000 --- a/src/model/AddPersonPictureRequest.js +++ /dev/null @@ -1,125 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddPersonPictureRequest model module. - * @module model/AddPersonPictureRequest - * @version 1.0.0 - */ -class AddPersonPictureRequest { - /** - * Constructs a new AddPersonPictureRequest. - * @alias module:model/AddPersonPictureRequest - * @param file {File} One image supplied in the multipart/form-data encoding. - */ - constructor(file) { - - AddPersonPictureRequest.initialize(this, file); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, file) { - obj['file'] = file; - } - - /** - * Constructs a AddPersonPictureRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddPersonPictureRequest} obj Optional instance to populate. - * @return {module:model/AddPersonPictureRequest} The populated AddPersonPictureRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddPersonPictureRequest(); - - if (data.hasOwnProperty('file')) { - obj['file'] = ApiClient.convertToType(data['file'], File); - - delete data['file']; - } - if (data.hasOwnProperty('crop_x')) { - obj['crop_x'] = ApiClient.convertToType(data['crop_x'], 'Number'); - - delete data['crop_x']; - } - if (data.hasOwnProperty('crop_y')) { - obj['crop_y'] = ApiClient.convertToType(data['crop_y'], 'Number'); - - delete data['crop_y']; - } - if (data.hasOwnProperty('crop_width')) { - obj['crop_width'] = ApiClient.convertToType(data['crop_width'], 'Number'); - - delete data['crop_width']; - } - if (data.hasOwnProperty('crop_height')) { - obj['crop_height'] = ApiClient.convertToType(data['crop_height'], 'Number'); - - delete data['crop_height']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * One image supplied in the multipart/form-data encoding. - * @member {File} file - */ -AddPersonPictureRequest.prototype['file'] = undefined; - -/** - * X coordinate to where start cropping form (in pixels) - * @member {Number} crop_x - */ -AddPersonPictureRequest.prototype['crop_x'] = undefined; - -/** - * Y coordinate to where start cropping form (in pixels) - * @member {Number} crop_y - */ -AddPersonPictureRequest.prototype['crop_y'] = undefined; - -/** - * Width of cropping area (in pixels) - * @member {Number} crop_width - */ -AddPersonPictureRequest.prototype['crop_width'] = undefined; - -/** - * Height of cropping area (in pixels) - * @member {Number} crop_height - */ -AddPersonPictureRequest.prototype['crop_height'] = undefined; - - - - - - -export default AddPersonPictureRequest; - diff --git a/src/model/AddPersonPictureResponse.js b/src/model/AddPersonPictureResponse.js deleted file mode 100644 index e41965a9..00000000 --- a/src/model/AddPersonPictureResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddPersonPictureResponseAllOf from './AddPersonPictureResponseAllOf'; -import BaseResponse from './BaseResponse'; -import RelatedPictureData from './RelatedPictureData'; - -/** - * The AddPersonPictureResponse model module. - * @module model/AddPersonPictureResponse - * @version 1.0.0 - */ -class AddPersonPictureResponse { - /** - * Constructs a new AddPersonPictureResponse. - * @alias module:model/AddPersonPictureResponse - * @implements module:model/BaseResponse - * @implements module:model/AddPersonPictureResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);AddPersonPictureResponseAllOf.initialize(this); - AddPersonPictureResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddPersonPictureResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddPersonPictureResponse} obj Optional instance to populate. - * @return {module:model/AddPersonPictureResponse} The populated AddPersonPictureResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddPersonPictureResponse(); - BaseResponse.constructFromObject(data, obj); - AddPersonPictureResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = RelatedPictureData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -AddPersonPictureResponse.prototype['success'] = undefined; - -/** - * @member {module:model/RelatedPictureData} data - */ -AddPersonPictureResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement AddPersonPictureResponseAllOf interface: -/** - * @member {module:model/RelatedPictureData} data - */ -AddPersonPictureResponseAllOf.prototype['data'] = undefined; - - - - -export default AddPersonPictureResponse; - diff --git a/src/model/AddPersonPictureResponseAllOf.js b/src/model/AddPersonPictureResponseAllOf.js deleted file mode 100644 index 582622ce..00000000 --- a/src/model/AddPersonPictureResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedPictureData from './RelatedPictureData'; - -/** - * The AddPersonPictureResponseAllOf model module. - * @module model/AddPersonPictureResponseAllOf - * @version 1.0.0 - */ -class AddPersonPictureResponseAllOf { - /** - * Constructs a new AddPersonPictureResponseAllOf. - * @alias module:model/AddPersonPictureResponseAllOf - */ - constructor() { - - AddPersonPictureResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddPersonPictureResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddPersonPictureResponseAllOf} obj Optional instance to populate. - * @return {module:model/AddPersonPictureResponseAllOf} The populated AddPersonPictureResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddPersonPictureResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = RelatedPictureData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedPictureData} data - */ -AddPersonPictureResponseAllOf.prototype['data'] = undefined; - - - - - - -export default AddPersonPictureResponseAllOf; - diff --git a/src/model/AddPersonResponse.js b/src/model/AddPersonResponse.js deleted file mode 100644 index 9d0026d2..00000000 --- a/src/model/AddPersonResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddPersonResponseAllOf from './AddPersonResponseAllOf'; -import BaseResponse from './BaseResponse'; -import ListProductsResponseAllOfRelatedObjects from './ListProductsResponseAllOfRelatedObjects'; -import PersonItem from './PersonItem'; - -/** - * The AddPersonResponse model module. - * @module model/AddPersonResponse - * @version 1.0.0 - */ -class AddPersonResponse { - /** - * Constructs a new AddPersonResponse. - * @alias module:model/AddPersonResponse - * @implements module:model/BaseResponse - * @implements module:model/AddPersonResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);AddPersonResponseAllOf.initialize(this); - AddPersonResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddPersonResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddPersonResponse} obj Optional instance to populate. - * @return {module:model/AddPersonResponse} The populated AddPersonResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddPersonResponse(); - BaseResponse.constructFromObject(data, obj); - AddPersonResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = PersonItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = ListProductsResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -AddPersonResponse.prototype['success'] = undefined; - -/** - * @member {module:model/PersonItem} data - */ -AddPersonResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ListProductsResponseAllOfRelatedObjects} related_objects - */ -AddPersonResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement AddPersonResponseAllOf interface: -/** - * @member {module:model/PersonItem} data - */ -AddPersonResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ListProductsResponseAllOfRelatedObjects} related_objects - */ -AddPersonResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default AddPersonResponse; - diff --git a/src/model/AddPersonResponseAllOf.js b/src/model/AddPersonResponseAllOf.js deleted file mode 100644 index c7e09e43..00000000 --- a/src/model/AddPersonResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListProductsResponseAllOfRelatedObjects from './ListProductsResponseAllOfRelatedObjects'; -import PersonItem from './PersonItem'; - -/** - * The AddPersonResponseAllOf model module. - * @module model/AddPersonResponseAllOf - * @version 1.0.0 - */ -class AddPersonResponseAllOf { - /** - * Constructs a new AddPersonResponseAllOf. - * @alias module:model/AddPersonResponseAllOf - */ - constructor() { - - AddPersonResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddPersonResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddPersonResponseAllOf} obj Optional instance to populate. - * @return {module:model/AddPersonResponseAllOf} The populated AddPersonResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddPersonResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = PersonItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = ListProductsResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/PersonItem} data - */ -AddPersonResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ListProductsResponseAllOfRelatedObjects} related_objects - */ -AddPersonResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default AddPersonResponseAllOf; - diff --git a/src/model/AddPersonResponseAllOfRelatedObjects.js b/src/model/AddPersonResponseAllOfRelatedObjects.js deleted file mode 100644 index 3c1d604d..00000000 --- a/src/model/AddPersonResponseAllOfRelatedObjects.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedUserData from './RelatedUserData'; - -/** - * The AddPersonResponseAllOfRelatedObjects model module. - * @module model/AddPersonResponseAllOfRelatedObjects - * @version 1.0.0 - */ -class AddPersonResponseAllOfRelatedObjects { - /** - * Constructs a new AddPersonResponseAllOfRelatedObjects. - * @alias module:model/AddPersonResponseAllOfRelatedObjects - */ - constructor() { - - AddPersonResponseAllOfRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddPersonResponseAllOfRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddPersonResponseAllOfRelatedObjects} obj Optional instance to populate. - * @return {module:model/AddPersonResponseAllOfRelatedObjects} The populated AddPersonResponseAllOfRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddPersonResponseAllOfRelatedObjects(); - - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedUserData} user - */ -AddPersonResponseAllOfRelatedObjects.prototype['user'] = undefined; - - - - - - -export default AddPersonResponseAllOfRelatedObjects; - diff --git a/src/model/AddProductAttachmentDetails.js b/src/model/AddProductAttachmentDetails.js deleted file mode 100644 index 5b099d3c..00000000 --- a/src/model/AddProductAttachmentDetails.js +++ /dev/null @@ -1,497 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddProductAttachmentDetailsAllOf from './AddProductAttachmentDetailsAllOf'; -import BillingFrequency from './BillingFrequency'; -import ProductAttachmentDetails from './ProductAttachmentDetails'; - -/** - * The AddProductAttachmentDetails model module. - * @module model/AddProductAttachmentDetails - * @version 1.0.0 - */ -class AddProductAttachmentDetails { - /** - * Constructs a new AddProductAttachmentDetails. - * @alias module:model/AddProductAttachmentDetails - * @implements module:model/ProductAttachmentDetails - * @implements module:model/AddProductAttachmentDetailsAllOf - */ - constructor() { - ProductAttachmentDetails.initialize(this);AddProductAttachmentDetailsAllOf.initialize(this); - AddProductAttachmentDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddProductAttachmentDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddProductAttachmentDetails} obj Optional instance to populate. - * @return {module:model/AddProductAttachmentDetails} The populated AddProductAttachmentDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddProductAttachmentDetails(); - ProductAttachmentDetails.constructFromObject(data, obj); - AddProductAttachmentDetailsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('item_price')) { - obj['item_price'] = ApiClient.convertToType(data['item_price'], 'Number'); - - delete data['item_price']; - } - if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number'); - - delete data['quantity']; - } - if (data.hasOwnProperty('discount')) { - obj['discount'] = ApiClient.convertToType(data['discount'], 'Number'); - - delete data['discount']; - } - if (data.hasOwnProperty('discount_type')) { - obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String'); - - delete data['discount_type']; - } - if (data.hasOwnProperty('product_variation_id')) { - obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); - - delete data['product_variation_id']; - } - if (data.hasOwnProperty('comments')) { - obj['comments'] = ApiClient.convertToType(data['comments'], 'String'); - - delete data['comments']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('tax_method')) { - obj['tax_method'] = ApiClient.convertToType(data['tax_method'], 'String'); - - delete data['tax_method']; - } - if (data.hasOwnProperty('enabled_flag')) { - obj['enabled_flag'] = ApiClient.convertToType(data['enabled_flag'], 'Boolean'); - - delete data['enabled_flag']; - } - if (data.hasOwnProperty('billing_frequency')) { - obj['billing_frequency'] = BillingFrequency.constructFromObject(data['billing_frequency']); - - delete data['billing_frequency']; - } - if (data.hasOwnProperty('billing_frequency_cycles')) { - obj['billing_frequency_cycles'] = ApiClient.convertToType(data['billing_frequency_cycles'], 'Number'); - - delete data['billing_frequency_cycles']; - } - if (data.hasOwnProperty('billing_start_date')) { - obj['billing_start_date'] = ApiClient.convertToType(data['billing_start_date'], 'String'); - - delete data['billing_start_date']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('sum')) { - obj['sum'] = ApiClient.convertToType(data['sum'], 'Number'); - - delete data['sum']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('last_edit')) { - obj['last_edit'] = ApiClient.convertToType(data['last_edit'], 'String'); - - delete data['last_edit']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('product_attachment_id')) { - obj['product_attachment_id'] = ApiClient.convertToType(data['product_attachment_id'], 'Number'); - - delete data['product_attachment_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product - * @member {Number} product_id - */ -AddProductAttachmentDetails.prototype['product_id'] = undefined; - -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -AddProductAttachmentDetails.prototype['item_price'] = undefined; - -/** - * Quantity – e.g. how many items of this product will be added to the deal - * @member {Number} quantity - */ -AddProductAttachmentDetails.prototype['quantity'] = undefined; - -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -AddProductAttachmentDetails.prototype['discount'] = 0; - -/** - * The type of the discount's value - * @member {module:model/AddProductAttachmentDetails.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -AddProductAttachmentDetails.prototype['discount_type'] = 'percentage'; - -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -AddProductAttachmentDetails.prototype['product_variation_id'] = undefined; - -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -AddProductAttachmentDetails.prototype['comments'] = undefined; - -/** - * The product tax - * @member {Number} tax - */ -AddProductAttachmentDetails.prototype['tax'] = undefined; - -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal - * @member {module:model/AddProductAttachmentDetails.TaxMethodEnum} tax_method - */ -AddProductAttachmentDetails.prototype['tax_method'] = undefined; - -/** - * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default - * @member {Boolean} enabled_flag - * @default true - */ -AddProductAttachmentDetails.prototype['enabled_flag'] = true; - -/** - * @member {module:model/BillingFrequency} billing_frequency - */ -AddProductAttachmentDetails.prototype['billing_frequency'] = undefined; - -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -AddProductAttachmentDetails.prototype['billing_frequency_cycles'] = undefined; - -/** - * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future - * @member {String} billing_start_date - */ -AddProductAttachmentDetails.prototype['billing_start_date'] = undefined; - -/** - * The ID of the deal-product (the ID of the product attached to the deal) - * @member {Number} id - */ -AddProductAttachmentDetails.prototype['id'] = undefined; - -/** - * The ID of the company - * @member {Number} company_id - */ -AddProductAttachmentDetails.prototype['company_id'] = undefined; - -/** - * The ID of the deal - * @member {Number} deal_id - */ -AddProductAttachmentDetails.prototype['deal_id'] = undefined; - -/** - * The sum of all the products attached to the deal - * @member {Number} sum - */ -AddProductAttachmentDetails.prototype['sum'] = undefined; - -/** - * The currency associated with the deal product - * @member {String} currency - */ -AddProductAttachmentDetails.prototype['currency'] = undefined; - -/** - * The date and time when the product was added to the deal - * @member {String} add_time - */ -AddProductAttachmentDetails.prototype['add_time'] = undefined; - -/** - * The date and time when the deal product was last edited - * @member {String} last_edit - */ -AddProductAttachmentDetails.prototype['last_edit'] = undefined; - -/** - * Whether the product is active or not - * @member {Boolean} active_flag - */ -AddProductAttachmentDetails.prototype['active_flag'] = undefined; - -/** - * The product name - * @member {String} name - */ -AddProductAttachmentDetails.prototype['name'] = undefined; - -/** - * The ID of the deal-product (the ID of the product attached to the deal) - * @member {Number} product_attachment_id - */ -AddProductAttachmentDetails.prototype['product_attachment_id'] = undefined; - - -// Implement ProductAttachmentDetails interface: -/** - * The ID of the product - * @member {Number} product_id - */ -ProductAttachmentDetails.prototype['product_id'] = undefined; -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -ProductAttachmentDetails.prototype['item_price'] = undefined; -/** - * Quantity – e.g. how many items of this product will be added to the deal - * @member {Number} quantity - */ -ProductAttachmentDetails.prototype['quantity'] = undefined; -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -ProductAttachmentDetails.prototype['discount'] = 0; -/** - * The type of the discount's value - * @member {module:model/ProductAttachmentDetails.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -ProductAttachmentDetails.prototype['discount_type'] = 'percentage'; -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -ProductAttachmentDetails.prototype['product_variation_id'] = undefined; -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -ProductAttachmentDetails.prototype['comments'] = undefined; -/** - * The product tax - * @member {Number} tax - */ -ProductAttachmentDetails.prototype['tax'] = undefined; -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal - * @member {module:model/ProductAttachmentDetails.TaxMethodEnum} tax_method - */ -ProductAttachmentDetails.prototype['tax_method'] = undefined; -/** - * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default - * @member {Boolean} enabled_flag - * @default true - */ -ProductAttachmentDetails.prototype['enabled_flag'] = true; -/** - * @member {module:model/BillingFrequency} billing_frequency - */ -ProductAttachmentDetails.prototype['billing_frequency'] = undefined; -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -ProductAttachmentDetails.prototype['billing_frequency_cycles'] = undefined; -/** - * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future - * @member {String} billing_start_date - */ -ProductAttachmentDetails.prototype['billing_start_date'] = undefined; -/** - * The ID of the deal-product (the ID of the product attached to the deal) - * @member {Number} id - */ -ProductAttachmentDetails.prototype['id'] = undefined; -/** - * The ID of the company - * @member {Number} company_id - */ -ProductAttachmentDetails.prototype['company_id'] = undefined; -/** - * The ID of the deal - * @member {Number} deal_id - */ -ProductAttachmentDetails.prototype['deal_id'] = undefined; -/** - * The sum of all the products attached to the deal - * @member {Number} sum - */ -ProductAttachmentDetails.prototype['sum'] = undefined; -/** - * The currency associated with the deal product - * @member {String} currency - */ -ProductAttachmentDetails.prototype['currency'] = undefined; -/** - * The date and time when the product was added to the deal - * @member {String} add_time - */ -ProductAttachmentDetails.prototype['add_time'] = undefined; -/** - * The date and time when the deal product was last edited - * @member {String} last_edit - */ -ProductAttachmentDetails.prototype['last_edit'] = undefined; -/** - * Whether the product is active or not - * @member {Boolean} active_flag - */ -ProductAttachmentDetails.prototype['active_flag'] = undefined; -/** - * The product name - * @member {String} name - */ -ProductAttachmentDetails.prototype['name'] = undefined; -// Implement AddProductAttachmentDetailsAllOf interface: -/** - * The ID of the deal-product (the ID of the product attached to the deal) - * @member {Number} product_attachment_id - */ -AddProductAttachmentDetailsAllOf.prototype['product_attachment_id'] = undefined; - - - -/** - * Allowed values for the discount_type property. - * @enum {String} - * @readonly - */ -AddProductAttachmentDetails['DiscountTypeEnum'] = { - - /** - * value: "percentage" - * @const - */ - "percentage": "percentage", - - /** - * value: "amount" - * @const - */ - "amount": "amount" -}; - - -/** - * Allowed values for the tax_method property. - * @enum {String} - * @readonly - */ -AddProductAttachmentDetails['TaxMethodEnum'] = { - - /** - * value: "exclusive" - * @const - */ - "exclusive": "exclusive", - - /** - * value: "inclusive" - * @const - */ - "inclusive": "inclusive", - - /** - * value: "none" - * @const - */ - "none": "none" -}; - - - -export default AddProductAttachmentDetails; - diff --git a/src/model/AddProductAttachmentDetailsAllOf.js b/src/model/AddProductAttachmentDetailsAllOf.js deleted file mode 100644 index 9422c665..00000000 --- a/src/model/AddProductAttachmentDetailsAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddProductAttachmentDetailsAllOf model module. - * @module model/AddProductAttachmentDetailsAllOf - * @version 1.0.0 - */ -class AddProductAttachmentDetailsAllOf { - /** - * Constructs a new AddProductAttachmentDetailsAllOf. - * @alias module:model/AddProductAttachmentDetailsAllOf - */ - constructor() { - - AddProductAttachmentDetailsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddProductAttachmentDetailsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddProductAttachmentDetailsAllOf} obj Optional instance to populate. - * @return {module:model/AddProductAttachmentDetailsAllOf} The populated AddProductAttachmentDetailsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddProductAttachmentDetailsAllOf(); - - if (data.hasOwnProperty('product_attachment_id')) { - obj['product_attachment_id'] = ApiClient.convertToType(data['product_attachment_id'], 'Number'); - - delete data['product_attachment_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal-product (the ID of the product attached to the deal) - * @member {Number} product_attachment_id - */ -AddProductAttachmentDetailsAllOf.prototype['product_attachment_id'] = undefined; - - - - - - -export default AddProductAttachmentDetailsAllOf; - diff --git a/src/model/AddProductFollowerRequest.js b/src/model/AddProductFollowerRequest.js deleted file mode 100644 index 6cd5eba4..00000000 --- a/src/model/AddProductFollowerRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddProductFollowerRequest model module. - * @module model/AddProductFollowerRequest - * @version 1.0.0 - */ -class AddProductFollowerRequest { - /** - * Constructs a new AddProductFollowerRequest. - * @alias module:model/AddProductFollowerRequest - * @param userId {Number} The ID of the user - */ - constructor(userId) { - - AddProductFollowerRequest.initialize(this, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId) { - obj['user_id'] = userId; - } - - /** - * Constructs a AddProductFollowerRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddProductFollowerRequest} obj Optional instance to populate. - * @return {module:model/AddProductFollowerRequest} The populated AddProductFollowerRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddProductFollowerRequest(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} user_id - */ -AddProductFollowerRequest.prototype['user_id'] = undefined; - - - - - - -export default AddProductFollowerRequest; - diff --git a/src/model/AddProductRequestBody.js b/src/model/AddProductRequestBody.js deleted file mode 100644 index 00ff2ab7..00000000 --- a/src/model/AddProductRequestBody.js +++ /dev/null @@ -1,282 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddProductRequestBodyAllOf from './AddProductRequestBodyAllOf'; -import BillingFrequency1 from './BillingFrequency1'; -import NameObject from './NameObject'; -import NewDealProductAllOf1 from './NewDealProductAllOf1'; -import ProductRequest from './ProductRequest'; -import VisibleTo from './VisibleTo'; - -/** - * The AddProductRequestBody model module. - * @module model/AddProductRequestBody - * @version 1.0.0 - */ -class AddProductRequestBody { - /** - * Constructs a new AddProductRequestBody. - * @alias module:model/AddProductRequestBody - * @implements module:model/NameObject - * @implements module:model/ProductRequest - * @implements module:model/AddProductRequestBodyAllOf - * @implements module:model/NewDealProductAllOf1 - */ - constructor() { - NameObject.initialize(this);ProductRequest.initialize(this);AddProductRequestBodyAllOf.initialize(this);NewDealProductAllOf1.initialize(this); - AddProductRequestBody.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddProductRequestBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddProductRequestBody} obj Optional instance to populate. - * @return {module:model/AddProductRequestBody} The populated AddProductRequestBody instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddProductRequestBody(); - NameObject.constructFromObject(data, obj); - ProductRequest.constructFromObject(data, obj); - AddProductRequestBodyAllOf.constructFromObject(data, obj); - NewDealProductAllOf1.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); - - delete data['unit']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('selectable')) { - obj['selectable'] = ApiClient.convertToType(data['selectable'], 'Boolean'); - - delete data['selectable']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], [Object]); - - delete data['prices']; - } - if (data.hasOwnProperty('billing_frequency')) { - obj['billing_frequency'] = BillingFrequency1.constructFromObject(data['billing_frequency']); - - delete data['billing_frequency']; - } - if (data.hasOwnProperty('billing_frequency_cycles')) { - obj['billing_frequency_cycles'] = ApiClient.convertToType(data['billing_frequency_cycles'], 'Number'); - - delete data['billing_frequency_cycles']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the product - * @member {String} name - */ -AddProductRequestBody.prototype['name'] = undefined; - -/** - * The product code - * @member {String} code - */ -AddProductRequestBody.prototype['code'] = undefined; - -/** - * The product description - * @member {String} description - */ -AddProductRequestBody.prototype['description'] = undefined; - -/** - * The unit in which this product is sold - * @member {String} unit - */ -AddProductRequestBody.prototype['unit'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -AddProductRequestBody.prototype['tax'] = 0; - -/** - * Whether this product will be made active or not - * @member {Boolean} active_flag - * @default true - */ -AddProductRequestBody.prototype['active_flag'] = true; - -/** - * Whether this product can be selected in deals or not - * @member {Boolean} selectable - * @default true - */ -AddProductRequestBody.prototype['selectable'] = true; - -/** - * The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -AddProductRequestBody.prototype['visible_to'] = undefined; - -/** - * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used - * @member {Number} owner_id - */ -AddProductRequestBody.prototype['owner_id'] = undefined; - -/** - * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned. - * @member {Array.} prices - */ -AddProductRequestBody.prototype['prices'] = undefined; - -/** - * @member {module:model/BillingFrequency1} billing_frequency - */ -AddProductRequestBody.prototype['billing_frequency'] = undefined; - -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -AddProductRequestBody.prototype['billing_frequency_cycles'] = undefined; - - -// Implement NameObject interface: -/** - * The name of the product - * @member {String} name - */ -NameObject.prototype['name'] = undefined; -// Implement ProductRequest interface: -/** - * The product code - * @member {String} code - */ -ProductRequest.prototype['code'] = undefined; -/** - * The product description - * @member {String} description - */ -ProductRequest.prototype['description'] = undefined; -/** - * The unit in which this product is sold - * @member {String} unit - */ -ProductRequest.prototype['unit'] = undefined; -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -ProductRequest.prototype['tax'] = 0; -/** - * Whether this product will be made active or not - * @member {Boolean} active_flag - * @default true - */ -ProductRequest.prototype['active_flag'] = true; -/** - * Whether this product can be selected in deals or not - * @member {Boolean} selectable - * @default true - */ -ProductRequest.prototype['selectable'] = true; -/** - * The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -ProductRequest.prototype['visible_to'] = undefined; -/** - * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used - * @member {Number} owner_id - */ -ProductRequest.prototype['owner_id'] = undefined; -/** - * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned. - * @member {Array.} prices - */ -ProductRequest.prototype['prices'] = undefined; -// Implement AddProductRequestBodyAllOf interface: -/** - * @member {module:model/BillingFrequency1} billing_frequency - */ -AddProductRequestBodyAllOf.prototype['billing_frequency'] = undefined; -// Implement NewDealProductAllOf1 interface: -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -NewDealProductAllOf1.prototype['billing_frequency_cycles'] = undefined; - - - - -export default AddProductRequestBody; - diff --git a/src/model/AddProductRequestBodyAllOf.js b/src/model/AddProductRequestBodyAllOf.js deleted file mode 100644 index f7dc2cf8..00000000 --- a/src/model/AddProductRequestBodyAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BillingFrequency1 from './BillingFrequency1'; - -/** - * The AddProductRequestBodyAllOf model module. - * @module model/AddProductRequestBodyAllOf - * @version 1.0.0 - */ -class AddProductRequestBodyAllOf { - /** - * Constructs a new AddProductRequestBodyAllOf. - * @alias module:model/AddProductRequestBodyAllOf - */ - constructor() { - - AddProductRequestBodyAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddProductRequestBodyAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddProductRequestBodyAllOf} obj Optional instance to populate. - * @return {module:model/AddProductRequestBodyAllOf} The populated AddProductRequestBodyAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddProductRequestBodyAllOf(); - - if (data.hasOwnProperty('billing_frequency')) { - obj['billing_frequency'] = BillingFrequency1.constructFromObject(data['billing_frequency']); - - delete data['billing_frequency']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BillingFrequency1} billing_frequency - */ -AddProductRequestBodyAllOf.prototype['billing_frequency'] = undefined; - - - - - - -export default AddProductRequestBodyAllOf; - diff --git a/src/model/AddProjectResponse.js b/src/model/AddProjectResponse.js deleted file mode 100644 index 28c1063c..00000000 --- a/src/model/AddProjectResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectResponseObject from './ProjectResponseObject'; - -/** - * The AddProjectResponse model module. - * @module model/AddProjectResponse - * @version 1.0.0 - */ -class AddProjectResponse { - /** - * Constructs a new AddProjectResponse. - * @alias module:model/AddProjectResponse - */ - constructor() { - - AddProjectResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddProjectResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddProjectResponse} obj Optional instance to populate. - * @return {module:model/AddProjectResponse} The populated AddProjectResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddProjectResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -AddProjectResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectResponseObject} data - */ -AddProjectResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -AddProjectResponse.prototype['additional_data'] = undefined; - - - - - - -export default AddProjectResponse; - diff --git a/src/model/AddProjectResponse201.js b/src/model/AddProjectResponse201.js deleted file mode 100644 index 37f8fe39..00000000 --- a/src/model/AddProjectResponse201.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectResponseObject from './ProjectResponseObject'; - -/** - * The AddProjectResponse201 model module. - * @module model/AddProjectResponse201 - * @version 1.0.0 - */ -class AddProjectResponse201 { - /** - * Constructs a new AddProjectResponse201. - * @alias module:model/AddProjectResponse201 - */ - constructor() { - - AddProjectResponse201.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddProjectResponse201 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddProjectResponse201} obj Optional instance to populate. - * @return {module:model/AddProjectResponse201} The populated AddProjectResponse201 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddProjectResponse201(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -AddProjectResponse201.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectResponseObject} data - */ -AddProjectResponse201.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -AddProjectResponse201.prototype['additional_data'] = undefined; - - - - - - -export default AddProjectResponse201; - diff --git a/src/model/AddRole.js b/src/model/AddRole.js deleted file mode 100644 index 122c0619..00000000 --- a/src/model/AddRole.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddRole model module. - * @module model/AddRole - * @version 1.0.0 - */ -class AddRole { - /** - * Constructs a new AddRole. - * The details of the role - * @alias module:model/AddRole - * @param name {String} The name of the role - */ - constructor(name) { - - AddRole.initialize(this, name); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name) { - obj['name'] = name; - } - - /** - * Constructs a AddRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddRole} obj Optional instance to populate. - * @return {module:model/AddRole} The populated AddRole instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddRole(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('parent_role_id')) { - obj['parent_role_id'] = ApiClient.convertToType(data['parent_role_id'], 'Number'); - - delete data['parent_role_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the role - * @member {String} name - */ -AddRole.prototype['name'] = undefined; - -/** - * The ID of the parent role - * @member {Number} parent_role_id - */ -AddRole.prototype['parent_role_id'] = undefined; - - - - - - -export default AddRole; - diff --git a/src/model/AddRoleAssignmentRequest.js b/src/model/AddRoleAssignmentRequest.js deleted file mode 100644 index 756642ff..00000000 --- a/src/model/AddRoleAssignmentRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddRoleAssignmentRequest model module. - * @module model/AddRoleAssignmentRequest - * @version 1.0.0 - */ -class AddRoleAssignmentRequest { - /** - * Constructs a new AddRoleAssignmentRequest. - * @alias module:model/AddRoleAssignmentRequest - * @param userId {Number} The ID of the user - */ - constructor(userId) { - - AddRoleAssignmentRequest.initialize(this, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId) { - obj['user_id'] = userId; - } - - /** - * Constructs a AddRoleAssignmentRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddRoleAssignmentRequest} obj Optional instance to populate. - * @return {module:model/AddRoleAssignmentRequest} The populated AddRoleAssignmentRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddRoleAssignmentRequest(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} user_id - */ -AddRoleAssignmentRequest.prototype['user_id'] = undefined; - - - - - - -export default AddRoleAssignmentRequest; - diff --git a/src/model/AddTaskResponse.js b/src/model/AddTaskResponse.js deleted file mode 100644 index 46aa3787..00000000 --- a/src/model/AddTaskResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import TaskResponseObject from './TaskResponseObject'; - -/** - * The AddTaskResponse model module. - * @module model/AddTaskResponse - * @version 1.0.0 - */ -class AddTaskResponse { - /** - * Constructs a new AddTaskResponse. - * @alias module:model/AddTaskResponse - */ - constructor() { - - AddTaskResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddTaskResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddTaskResponse} obj Optional instance to populate. - * @return {module:model/AddTaskResponse} The populated AddTaskResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddTaskResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = TaskResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -AddTaskResponse.prototype['success'] = undefined; - -/** - * @member {module:model/TaskResponseObject} data - */ -AddTaskResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -AddTaskResponse.prototype['additional_data'] = undefined; - - - - - - -export default AddTaskResponse; - diff --git a/src/model/AddTaskResponse201.js b/src/model/AddTaskResponse201.js deleted file mode 100644 index 1ab78d31..00000000 --- a/src/model/AddTaskResponse201.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import TaskResponseObject from './TaskResponseObject'; - -/** - * The AddTaskResponse201 model module. - * @module model/AddTaskResponse201 - * @version 1.0.0 - */ -class AddTaskResponse201 { - /** - * Constructs a new AddTaskResponse201. - * @alias module:model/AddTaskResponse201 - */ - constructor() { - - AddTaskResponse201.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddTaskResponse201 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddTaskResponse201} obj Optional instance to populate. - * @return {module:model/AddTaskResponse201} The populated AddTaskResponse201 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddTaskResponse201(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = TaskResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -AddTaskResponse201.prototype['success'] = undefined; - -/** - * @member {module:model/TaskResponseObject} data - */ -AddTaskResponse201.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -AddTaskResponse201.prototype['additional_data'] = undefined; - - - - - - -export default AddTaskResponse201; - diff --git a/src/model/AddTeamUserRequest.js b/src/model/AddTeamUserRequest.js deleted file mode 100644 index f3851539..00000000 --- a/src/model/AddTeamUserRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddTeamUserRequest model module. - * @module model/AddTeamUserRequest - * @version 1.0.0 - */ -class AddTeamUserRequest { - /** - * Constructs a new AddTeamUserRequest. - * @alias module:model/AddTeamUserRequest - * @param users {Array.} The list of user IDs - */ - constructor(users) { - - AddTeamUserRequest.initialize(this, users); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, users) { - obj['users'] = users; - } - - /** - * Constructs a AddTeamUserRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddTeamUserRequest} obj Optional instance to populate. - * @return {module:model/AddTeamUserRequest} The populated AddTeamUserRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddTeamUserRequest(); - - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], ['Number']); - - delete data['users']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of user IDs - * @member {Array.} users - */ -AddTeamUserRequest.prototype['users'] = undefined; - - - - - - -export default AddTeamUserRequest; - diff --git a/src/model/AddUserBlacklistedEmailRequest.js b/src/model/AddUserBlacklistedEmailRequest.js deleted file mode 100644 index 72aa8556..00000000 --- a/src/model/AddUserBlacklistedEmailRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddUserBlacklistedEmailRequest model module. - * @module model/AddUserBlacklistedEmailRequest - * @version 1.0.0 - */ -class AddUserBlacklistedEmailRequest { - /** - * Constructs a new AddUserBlacklistedEmailRequest. - * @alias module:model/AddUserBlacklistedEmailRequest - * @param address {String} Email address to blacklist (can contain \\\\* for wildcards, e.g. \\\\*@example.com, or john\\\\*@ex\\\\*.com) - */ - constructor(address) { - - AddUserBlacklistedEmailRequest.initialize(this, address); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, address) { - obj['address'] = address; - } - - /** - * Constructs a AddUserBlacklistedEmailRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddUserBlacklistedEmailRequest} obj Optional instance to populate. - * @return {module:model/AddUserBlacklistedEmailRequest} The populated AddUserBlacklistedEmailRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddUserBlacklistedEmailRequest(); - - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * Email address to blacklist (can contain \\\\* for wildcards, e.g. \\\\*@example.com, or john\\\\*@ex\\\\*.com) - * @member {String} address - */ -AddUserBlacklistedEmailRequest.prototype['address'] = undefined; - - - - - - -export default AddUserBlacklistedEmailRequest; - diff --git a/src/model/AddUserRequest.js b/src/model/AddUserRequest.js deleted file mode 100644 index 284b6469..00000000 --- a/src/model/AddUserRequest.js +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import UserAccess from './UserAccess'; - -/** - * The AddUserRequest model module. - * @module model/AddUserRequest - * @version 1.0.0 - */ -class AddUserRequest { - /** - * Constructs a new AddUserRequest. - * @alias module:model/AddUserRequest - * @param email {String} The email of the user - */ - constructor(email) { - - AddUserRequest.initialize(this, email); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, email) { - obj['email'] = email; - } - - /** - * Constructs a AddUserRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddUserRequest} obj Optional instance to populate. - * @return {module:model/AddUserRequest} The populated AddUserRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddUserRequest(); - - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('access')) { - obj['access'] = ApiClient.convertToType(data['access'], [UserAccess]); - - delete data['access']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The email of the user - * @member {String} email - */ -AddUserRequest.prototype['email'] = undefined; - -/** - * The access given to the user. Each item in the array represents access to a specific app. Optionally may include either admin flag or permission set ID to specify which access to give within the app. If both are omitted, the default access for the corresponding app will be used. It requires structure as follows: `[{ app: 'sales', permission_set_id: '62cc4d7f-4038-4352-abf3-a8c1c822b631' }, { app: 'global', admin: true }, { app: 'account_settings' }]` - * @member {Array.} access - */ -AddUserRequest.prototype['access'] = undefined; - -/** - * Whether the user is active or not. `false` = Not activated, `true` = Activated - * @member {Boolean} active_flag - * @default true - */ -AddUserRequest.prototype['active_flag'] = true; - - - - - - -export default AddUserRequest; - diff --git a/src/model/AddUserRoleAssignmentRequest.js b/src/model/AddUserRoleAssignmentRequest.js deleted file mode 100644 index 10623d99..00000000 --- a/src/model/AddUserRoleAssignmentRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddUserRoleAssignmentRequest model module. - * @module model/AddUserRoleAssignmentRequest - * @version 1.0.0 - */ -class AddUserRoleAssignmentRequest { - /** - * Constructs a new AddUserRoleAssignmentRequest. - * @alias module:model/AddUserRoleAssignmentRequest - * @param roleId {Number} ID of the role - */ - constructor(roleId) { - - AddUserRoleAssignmentRequest.initialize(this, roleId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, roleId) { - obj['role_id'] = roleId; - } - - /** - * Constructs a AddUserRoleAssignmentRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddUserRoleAssignmentRequest} obj Optional instance to populate. - * @return {module:model/AddUserRoleAssignmentRequest} The populated AddUserRoleAssignmentRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddUserRoleAssignmentRequest(); - - if (data.hasOwnProperty('role_id')) { - obj['role_id'] = ApiClient.convertToType(data['role_id'], 'Number'); - - delete data['role_id']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * ID of the role - * @member {Number} role_id - */ -AddUserRoleAssignmentRequest.prototype['role_id'] = undefined; - - - - - - -export default AddUserRoleAssignmentRequest; - diff --git a/src/model/AddWebhookRequest.js b/src/model/AddWebhookRequest.js deleted file mode 100644 index de75a91e..00000000 --- a/src/model/AddWebhookRequest.js +++ /dev/null @@ -1,287 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddWebhookRequest model module. - * @module model/AddWebhookRequest - * @version 1.0.0 - */ -class AddWebhookRequest { - /** - * Constructs a new AddWebhookRequest. - * @alias module:model/AddWebhookRequest - * @param subscriptionUrl {String} A full, valid, publicly accessible URL which determines where to send the notifications. Please note that you cannot use Pipedrive API endpoints as the `subscription_url` and the chosen URL must not redirect to another link. - * @param eventAction {module:model/AddWebhookRequest.EventActionEnum} The type of action to receive notifications about. Wildcard will match all supported actions. - * @param eventObject {module:model/AddWebhookRequest.EventObjectEnum} The type of object to receive notifications about. Wildcard will match all supported objects. - */ - constructor(subscriptionUrl, eventAction, eventObject) { - - AddWebhookRequest.initialize(this, subscriptionUrl, eventAction, eventObject); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, subscriptionUrl, eventAction, eventObject) { - obj['subscription_url'] = subscriptionUrl; - obj['event_action'] = eventAction; - obj['event_object'] = eventObject; - } - - /** - * Constructs a AddWebhookRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddWebhookRequest} obj Optional instance to populate. - * @return {module:model/AddWebhookRequest} The populated AddWebhookRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddWebhookRequest(); - - if (data.hasOwnProperty('subscription_url')) { - obj['subscription_url'] = ApiClient.convertToType(data['subscription_url'], 'String'); - - delete data['subscription_url']; - } - if (data.hasOwnProperty('event_action')) { - obj['event_action'] = ApiClient.convertToType(data['event_action'], 'String'); - - delete data['event_action']; - } - if (data.hasOwnProperty('event_object')) { - obj['event_object'] = ApiClient.convertToType(data['event_object'], 'String'); - - delete data['event_object']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('http_auth_user')) { - obj['http_auth_user'] = ApiClient.convertToType(data['http_auth_user'], 'String'); - - delete data['http_auth_user']; - } - if (data.hasOwnProperty('http_auth_password')) { - obj['http_auth_password'] = ApiClient.convertToType(data['http_auth_password'], 'String'); - - delete data['http_auth_password']; - } - if (data.hasOwnProperty('version')) { - obj['version'] = ApiClient.convertToType(data['version'], 'String'); - - delete data['version']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * A full, valid, publicly accessible URL which determines where to send the notifications. Please note that you cannot use Pipedrive API endpoints as the `subscription_url` and the chosen URL must not redirect to another link. - * @member {String} subscription_url - */ -AddWebhookRequest.prototype['subscription_url'] = undefined; - -/** - * The type of action to receive notifications about. Wildcard will match all supported actions. - * @member {module:model/AddWebhookRequest.EventActionEnum} event_action - */ -AddWebhookRequest.prototype['event_action'] = undefined; - -/** - * The type of object to receive notifications about. Wildcard will match all supported objects. - * @member {module:model/AddWebhookRequest.EventObjectEnum} event_object - */ -AddWebhookRequest.prototype['event_object'] = undefined; - -/** - * The ID of the user that this webhook will be authorized with. You have the option to use a different user's `user_id`. If it is not set, the current user's `user_id` will be used. As each webhook event is checked against a user's permissions, the webhook will only be sent if the user has access to the specified object(s). If you want to receive notifications for all events, please use a top-level admin user’s `user_id`. - * @member {Number} user_id - */ -AddWebhookRequest.prototype['user_id'] = undefined; - -/** - * The HTTP basic auth username of the subscription URL endpoint (if required) - * @member {String} http_auth_user - */ -AddWebhookRequest.prototype['http_auth_user'] = undefined; - -/** - * The HTTP basic auth password of the subscription URL endpoint (if required) - * @member {String} http_auth_password - */ -AddWebhookRequest.prototype['http_auth_password'] = undefined; - -/** - * The webhook's version - * @member {module:model/AddWebhookRequest.VersionEnum} version - * @default '1.0' - */ -AddWebhookRequest.prototype['version'] = '1.0'; - - - - - -/** - * Allowed values for the event_action property. - * @enum {String} - * @readonly - */ -AddWebhookRequest['EventActionEnum'] = { - - /** - * value: "added" - * @const - */ - "added": "added", - - /** - * value: "updated" - * @const - */ - "updated": "updated", - - /** - * value: "merged" - * @const - */ - "merged": "merged", - - /** - * value: "deleted" - * @const - */ - "deleted": "deleted", - - /** - * value: "*" - * @const - */ - "STAR": "*" -}; - - -/** - * Allowed values for the event_object property. - * @enum {String} - * @readonly - */ -AddWebhookRequest['EventObjectEnum'] = { - - /** - * value: "activity" - * @const - */ - "activity": "activity", - - /** - * value: "activityType" - * @const - */ - "activityType": "activityType", - - /** - * value: "deal" - * @const - */ - "deal": "deal", - - /** - * value: "note" - * @const - */ - "note": "note", - - /** - * value: "organization" - * @const - */ - "organization": "organization", - - /** - * value: "person" - * @const - */ - "person": "person", - - /** - * value: "pipeline" - * @const - */ - "pipeline": "pipeline", - - /** - * value: "product" - * @const - */ - "product": "product", - - /** - * value: "stage" - * @const - */ - "stage": "stage", - - /** - * value: "user" - * @const - */ - "user": "user", - - /** - * value: "*" - * @const - */ - "STAR": "*" -}; - - -/** - * Allowed values for the version property. - * @enum {String} - * @readonly - */ -AddWebhookRequest['VersionEnum'] = { - - /** - * value: "1.0" - * @const - */ - "1.0": "1.0", - - /** - * value: "2.0" - * @const - */ - "2.0": "2.0" -}; - - - -export default AddWebhookRequest; - diff --git a/src/model/AddedDealFollower.js b/src/model/AddedDealFollower.js deleted file mode 100644 index a3fa4216..00000000 --- a/src/model/AddedDealFollower.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddedDealFollowerData from './AddedDealFollowerData'; - -/** - * The AddedDealFollower model module. - * @module model/AddedDealFollower - * @version 1.0.0 - */ -class AddedDealFollower { - /** - * Constructs a new AddedDealFollower. - * @alias module:model/AddedDealFollower - */ - constructor() { - - AddedDealFollower.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddedDealFollower from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddedDealFollower} obj Optional instance to populate. - * @return {module:model/AddedDealFollower} The populated AddedDealFollower instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddedDealFollower(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = AddedDealFollowerData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -AddedDealFollower.prototype['success'] = undefined; - -/** - * @member {module:model/AddedDealFollowerData} data - */ -AddedDealFollower.prototype['data'] = undefined; - - - - - - -export default AddedDealFollower; - diff --git a/src/model/AddedDealFollowerData.js b/src/model/AddedDealFollowerData.js deleted file mode 100644 index 2a88fa51..00000000 --- a/src/model/AddedDealFollowerData.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddedDealFollowerData model module. - * @module model/AddedDealFollowerData - * @version 1.0.0 - */ -class AddedDealFollowerData { - /** - * Constructs a new AddedDealFollowerData. - * @alias module:model/AddedDealFollowerData - */ - constructor() { - - AddedDealFollowerData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddedDealFollowerData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddedDealFollowerData} obj Optional instance to populate. - * @return {module:model/AddedDealFollowerData} The populated AddedDealFollowerData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddedDealFollowerData(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The user ID who added the follower - * @member {Number} user_id - */ -AddedDealFollowerData.prototype['user_id'] = undefined; - -/** - * The follower ID - * @member {Number} id - */ -AddedDealFollowerData.prototype['id'] = undefined; - -/** - * The ID of the deal which the follower was added to - * @member {Number} deal_id - */ -AddedDealFollowerData.prototype['deal_id'] = undefined; - -/** - * The date and time when the deal follower was added - * @member {String} add_time - */ -AddedDealFollowerData.prototype['add_time'] = undefined; - - - - - - -export default AddedDealFollowerData; - diff --git a/src/model/AdditionalBaseOrganizationItemInfo.js b/src/model/AdditionalBaseOrganizationItemInfo.js deleted file mode 100644 index a705c344..00000000 --- a/src/model/AdditionalBaseOrganizationItemInfo.js +++ /dev/null @@ -1,588 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealsCountAndActivityInfo from './DealsCountAndActivityInfo'; -import OrganizationCountAndAddressInfo from './OrganizationCountAndAddressInfo'; - -/** - * The AdditionalBaseOrganizationItemInfo model module. - * @module model/AdditionalBaseOrganizationItemInfo - * @version 1.0.0 - */ -class AdditionalBaseOrganizationItemInfo { - /** - * Constructs a new AdditionalBaseOrganizationItemInfo. - * @alias module:model/AdditionalBaseOrganizationItemInfo - * @implements module:model/OrganizationCountAndAddressInfo - * @implements module:model/DealsCountAndActivityInfo - */ - constructor() { - OrganizationCountAndAddressInfo.initialize(this);DealsCountAndActivityInfo.initialize(this); - AdditionalBaseOrganizationItemInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AdditionalBaseOrganizationItemInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AdditionalBaseOrganizationItemInfo} obj Optional instance to populate. - * @return {module:model/AdditionalBaseOrganizationItemInfo} The populated AdditionalBaseOrganizationItemInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AdditionalBaseOrganizationItemInfo(); - OrganizationCountAndAddressInfo.constructFromObject(data, obj); - DealsCountAndActivityInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('address_subpremise')) { - obj['address_subpremise'] = ApiClient.convertToType(data['address_subpremise'], 'String'); - - delete data['address_subpremise']; - } - if (data.hasOwnProperty('address_street_number')) { - obj['address_street_number'] = ApiClient.convertToType(data['address_street_number'], 'String'); - - delete data['address_street_number']; - } - if (data.hasOwnProperty('address_route')) { - obj['address_route'] = ApiClient.convertToType(data['address_route'], 'String'); - - delete data['address_route']; - } - if (data.hasOwnProperty('address_sublocality')) { - obj['address_sublocality'] = ApiClient.convertToType(data['address_sublocality'], 'String'); - - delete data['address_sublocality']; - } - if (data.hasOwnProperty('address_locality')) { - obj['address_locality'] = ApiClient.convertToType(data['address_locality'], 'String'); - - delete data['address_locality']; - } - if (data.hasOwnProperty('address_admin_area_level_1')) { - obj['address_admin_area_level_1'] = ApiClient.convertToType(data['address_admin_area_level_1'], 'String'); - - delete data['address_admin_area_level_1']; - } - if (data.hasOwnProperty('address_admin_area_level_2')) { - obj['address_admin_area_level_2'] = ApiClient.convertToType(data['address_admin_area_level_2'], 'String'); - - delete data['address_admin_area_level_2']; - } - if (data.hasOwnProperty('address_country')) { - obj['address_country'] = ApiClient.convertToType(data['address_country'], 'String'); - - delete data['address_country']; - } - if (data.hasOwnProperty('address_postal_code')) { - obj['address_postal_code'] = ApiClient.convertToType(data['address_postal_code'], 'String'); - - delete data['address_postal_code']; - } - if (data.hasOwnProperty('address_formatted_address')) { - obj['address_formatted_address'] = ApiClient.convertToType(data['address_formatted_address'], 'String'); - - delete data['address_formatted_address']; - } - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of email messages related to the organization - * @member {Number} email_messages_count - */ -AdditionalBaseOrganizationItemInfo.prototype['email_messages_count'] = undefined; - -/** - * The count of persons related to the organization - * @member {Number} people_count - */ -AdditionalBaseOrganizationItemInfo.prototype['people_count'] = undefined; - -/** - * The count of activities related to the organization - * @member {Number} activities_count - */ -AdditionalBaseOrganizationItemInfo.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the organization - * @member {Number} done_activities_count - */ -AdditionalBaseOrganizationItemInfo.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the organization - * @member {Number} undone_activities_count - */ -AdditionalBaseOrganizationItemInfo.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the organization - * @member {Number} files_count - */ -AdditionalBaseOrganizationItemInfo.prototype['files_count'] = undefined; - -/** - * The count of notes related to the organization - * @member {Number} notes_count - */ -AdditionalBaseOrganizationItemInfo.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the organization - * @member {Number} followers_count - */ -AdditionalBaseOrganizationItemInfo.prototype['followers_count'] = undefined; - -/** - * The full address of the organization - * @member {String} address - */ -AdditionalBaseOrganizationItemInfo.prototype['address'] = undefined; - -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -AdditionalBaseOrganizationItemInfo.prototype['address_subpremise'] = undefined; - -/** - * The street number of the organization location - * @member {String} address_street_number - */ -AdditionalBaseOrganizationItemInfo.prototype['address_street_number'] = undefined; - -/** - * The route of the organization location - * @member {String} address_route - */ -AdditionalBaseOrganizationItemInfo.prototype['address_route'] = undefined; - -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -AdditionalBaseOrganizationItemInfo.prototype['address_sublocality'] = undefined; - -/** - * The locality of the organization location - * @member {String} address_locality - */ -AdditionalBaseOrganizationItemInfo.prototype['address_locality'] = undefined; - -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -AdditionalBaseOrganizationItemInfo.prototype['address_admin_area_level_1'] = undefined; - -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -AdditionalBaseOrganizationItemInfo.prototype['address_admin_area_level_2'] = undefined; - -/** - * The country of the organization location - * @member {String} address_country - */ -AdditionalBaseOrganizationItemInfo.prototype['address_country'] = undefined; - -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -AdditionalBaseOrganizationItemInfo.prototype['address_postal_code'] = undefined; - -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -AdditionalBaseOrganizationItemInfo.prototype['address_formatted_address'] = undefined; - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -AdditionalBaseOrganizationItemInfo.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -AdditionalBaseOrganizationItemInfo.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -AdditionalBaseOrganizationItemInfo.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -AdditionalBaseOrganizationItemInfo.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -AdditionalBaseOrganizationItemInfo.prototype['last_activity_date'] = undefined; - - -// Implement OrganizationCountAndAddressInfo interface: -/** - * The count of email messages related to the organization - * @member {Number} email_messages_count - */ -OrganizationCountAndAddressInfo.prototype['email_messages_count'] = undefined; -/** - * The count of persons related to the organization - * @member {Number} people_count - */ -OrganizationCountAndAddressInfo.prototype['people_count'] = undefined; -/** - * The count of activities related to the organization - * @member {Number} activities_count - */ -OrganizationCountAndAddressInfo.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the organization - * @member {Number} done_activities_count - */ -OrganizationCountAndAddressInfo.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the organization - * @member {Number} undone_activities_count - */ -OrganizationCountAndAddressInfo.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the organization - * @member {Number} files_count - */ -OrganizationCountAndAddressInfo.prototype['files_count'] = undefined; -/** - * The count of notes related to the organization - * @member {Number} notes_count - */ -OrganizationCountAndAddressInfo.prototype['notes_count'] = undefined; -/** - * The count of followers related to the organization - * @member {Number} followers_count - */ -OrganizationCountAndAddressInfo.prototype['followers_count'] = undefined; -/** - * The full address of the organization - * @member {String} address - */ -OrganizationCountAndAddressInfo.prototype['address'] = undefined; -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -OrganizationCountAndAddressInfo.prototype['address_subpremise'] = undefined; -/** - * The street number of the organization location - * @member {String} address_street_number - */ -OrganizationCountAndAddressInfo.prototype['address_street_number'] = undefined; -/** - * The route of the organization location - * @member {String} address_route - */ -OrganizationCountAndAddressInfo.prototype['address_route'] = undefined; -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -OrganizationCountAndAddressInfo.prototype['address_sublocality'] = undefined; -/** - * The locality of the organization location - * @member {String} address_locality - */ -OrganizationCountAndAddressInfo.prototype['address_locality'] = undefined; -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -OrganizationCountAndAddressInfo.prototype['address_admin_area_level_1'] = undefined; -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -OrganizationCountAndAddressInfo.prototype['address_admin_area_level_2'] = undefined; -/** - * The country of the organization location - * @member {String} address_country - */ -OrganizationCountAndAddressInfo.prototype['address_country'] = undefined; -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -OrganizationCountAndAddressInfo.prototype['address_postal_code'] = undefined; -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -OrganizationCountAndAddressInfo.prototype['address_formatted_address'] = undefined; -// Implement DealsCountAndActivityInfo interface: -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -DealsCountAndActivityInfo.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -DealsCountAndActivityInfo.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -DealsCountAndActivityInfo.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -DealsCountAndActivityInfo.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -DealsCountAndActivityInfo.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -DealsCountAndActivityInfo.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -DealsCountAndActivityInfo.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -DealsCountAndActivityInfo.prototype['related_lost_deals_count'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -DealsCountAndActivityInfo.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -DealsCountAndActivityInfo.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -DealsCountAndActivityInfo.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -DealsCountAndActivityInfo.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -DealsCountAndActivityInfo.prototype['last_activity_date'] = undefined; - - - - -export default AdditionalBaseOrganizationItemInfo; - diff --git a/src/model/AdditionalData.js b/src/model/AdditionalData.js deleted file mode 100644 index 5cc3480f..00000000 --- a/src/model/AdditionalData.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AdditionalData model module. - * @module model/AdditionalData - * @version 1.0.0 - */ -class AdditionalData { - /** - * Constructs a new AdditionalData. - * The additional data of the list - * @alias module:model/AdditionalData - */ - constructor() { - - AdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AdditionalData} obj Optional instance to populate. - * @return {module:model/AdditionalData} The populated AdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AdditionalData(); - - if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number'); - - delete data['start']; - } - if (data.hasOwnProperty('limit')) { - obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); - - delete data['limit']; - } - if (data.hasOwnProperty('more_items_in_collection')) { - obj['more_items_in_collection'] = ApiClient.convertToType(data['more_items_in_collection'], 'Boolean'); - - delete data['more_items_in_collection']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Pagination start - * @member {Number} start - */ -AdditionalData.prototype['start'] = undefined; - -/** - * Items shown per page - * @member {Number} limit - */ -AdditionalData.prototype['limit'] = undefined; - -/** - * If there are more list items in the collection than displayed or not - * @member {Boolean} more_items_in_collection - */ -AdditionalData.prototype['more_items_in_collection'] = undefined; - - - - - - -export default AdditionalData; - diff --git a/src/model/AdditionalDataWithCursorPagination.js b/src/model/AdditionalDataWithCursorPagination.js deleted file mode 100644 index abca745d..00000000 --- a/src/model/AdditionalDataWithCursorPagination.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AdditionalDataWithCursorPagination model module. - * @module model/AdditionalDataWithCursorPagination - * @version 1.0.0 - */ -class AdditionalDataWithCursorPagination { - /** - * Constructs a new AdditionalDataWithCursorPagination. - * The additional data of the list - * @alias module:model/AdditionalDataWithCursorPagination - */ - constructor() { - - AdditionalDataWithCursorPagination.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AdditionalDataWithCursorPagination from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AdditionalDataWithCursorPagination} obj Optional instance to populate. - * @return {module:model/AdditionalDataWithCursorPagination} The populated AdditionalDataWithCursorPagination instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AdditionalDataWithCursorPagination(); - - if (data.hasOwnProperty('next_cursor')) { - obj['next_cursor'] = ApiClient.convertToType(data['next_cursor'], 'String'); - - delete data['next_cursor']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The first item on the next page. The value of the `next_cursor` field will be `null` if you have reached the end of the dataset and there’s no more pages to be returned. - * @member {String} next_cursor - */ -AdditionalDataWithCursorPagination.prototype['next_cursor'] = undefined; - - - - - - -export default AdditionalDataWithCursorPagination; - diff --git a/src/model/AdditionalDataWithOffsetPagination.js b/src/model/AdditionalDataWithOffsetPagination.js deleted file mode 100644 index aa2da850..00000000 --- a/src/model/AdditionalDataWithOffsetPagination.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; - -/** - * The AdditionalDataWithOffsetPagination model module. - * @module model/AdditionalDataWithOffsetPagination - * @version 1.0.0 - */ -class AdditionalDataWithOffsetPagination { - /** - * Constructs a new AdditionalDataWithOffsetPagination. - * @alias module:model/AdditionalDataWithOffsetPagination - */ - constructor() { - - AdditionalDataWithOffsetPagination.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AdditionalDataWithOffsetPagination from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AdditionalDataWithOffsetPagination} obj Optional instance to populate. - * @return {module:model/AdditionalDataWithOffsetPagination} The populated AdditionalDataWithOffsetPagination instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AdditionalDataWithOffsetPagination(); - - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = ApiClient.convertToType(data['pagination'], AdditionalData); - - delete data['pagination']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The pagination details of the list - * @member {module:model/AdditionalData} pagination - */ -AdditionalDataWithOffsetPagination.prototype['pagination'] = undefined; - - - - - - -export default AdditionalDataWithOffsetPagination; - diff --git a/src/model/AdditionalDataWithPagination.js b/src/model/AdditionalDataWithPagination.js deleted file mode 100644 index 4dcc6d81..00000000 --- a/src/model/AdditionalDataWithPagination.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; - -/** - * The AdditionalDataWithPagination model module. - * @module model/AdditionalDataWithPagination - * @version 1.0.0 - */ -class AdditionalDataWithPagination { - /** - * Constructs a new AdditionalDataWithPagination. - * @alias module:model/AdditionalDataWithPagination - */ - constructor() { - - AdditionalDataWithPagination.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AdditionalDataWithPagination from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AdditionalDataWithPagination} obj Optional instance to populate. - * @return {module:model/AdditionalDataWithPagination} The populated AdditionalDataWithPagination instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AdditionalDataWithPagination(); - - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = ApiClient.convertToType(data['pagination'], AdditionalData); - - delete data['pagination']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The pagination details of the list - * @member {module:model/AdditionalData} pagination - */ -AdditionalDataWithPagination.prototype['pagination'] = undefined; - - - - - - -export default AdditionalDataWithPagination; - diff --git a/src/model/AdditionalDataWithPaginationDetails.js b/src/model/AdditionalDataWithPaginationDetails.js deleted file mode 100644 index e95b13a9..00000000 --- a/src/model/AdditionalDataWithPaginationDetails.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PaginationDetails from './PaginationDetails'; - -/** - * The AdditionalDataWithPaginationDetails model module. - * @module model/AdditionalDataWithPaginationDetails - * @version 1.0.0 - */ -class AdditionalDataWithPaginationDetails { - /** - * Constructs a new AdditionalDataWithPaginationDetails. - * @alias module:model/AdditionalDataWithPaginationDetails - */ - constructor() { - - AdditionalDataWithPaginationDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AdditionalDataWithPaginationDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AdditionalDataWithPaginationDetails} obj Optional instance to populate. - * @return {module:model/AdditionalDataWithPaginationDetails} The populated AdditionalDataWithPaginationDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AdditionalDataWithPaginationDetails(); - - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = PaginationDetails.constructFromObject(data['pagination']); - - delete data['pagination']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/PaginationDetails} pagination - */ -AdditionalDataWithPaginationDetails.prototype['pagination'] = undefined; - - - - - - -export default AdditionalDataWithPaginationDetails; - diff --git a/src/model/AdditionalMergePersonInfo.js b/src/model/AdditionalMergePersonInfo.js deleted file mode 100644 index f6ab75fe..00000000 --- a/src/model/AdditionalMergePersonInfo.js +++ /dev/null @@ -1,556 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MergePersonDealRelatedInfo from './MergePersonDealRelatedInfo'; -import PersonNameCountAndEmailInfoWithIds from './PersonNameCountAndEmailInfoWithIds'; - -/** - * The AdditionalMergePersonInfo model module. - * @module model/AdditionalMergePersonInfo - * @version 1.0.0 - */ -class AdditionalMergePersonInfo { - /** - * Constructs a new AdditionalMergePersonInfo. - * @alias module:model/AdditionalMergePersonInfo - * @implements module:model/PersonNameCountAndEmailInfoWithIds - * @implements module:model/MergePersonDealRelatedInfo - */ - constructor() { - PersonNameCountAndEmailInfoWithIds.initialize(this);MergePersonDealRelatedInfo.initialize(this); - AdditionalMergePersonInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AdditionalMergePersonInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AdditionalMergePersonInfo} obj Optional instance to populate. - * @return {module:model/AdditionalMergePersonInfo} The populated AdditionalMergePersonInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AdditionalMergePersonInfo(); - PersonNameCountAndEmailInfoWithIds.constructFromObject(data, obj); - MergePersonDealRelatedInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('merge_what_id')) { - obj['merge_what_id'] = ApiClient.convertToType(data['merge_what_id'], 'Number'); - - delete data['merge_what_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String'); - - delete data['first_name']; - } - if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String'); - - delete data['last_name']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - if (data.hasOwnProperty('participant_open_deals_count')) { - obj['participant_open_deals_count'] = ApiClient.convertToType(data['participant_open_deals_count'], 'Number'); - - delete data['participant_open_deals_count']; - } - if (data.hasOwnProperty('participant_closed_deals_count')) { - obj['participant_closed_deals_count'] = ApiClient.convertToType(data['participant_closed_deals_count'], 'Number'); - - delete data['participant_closed_deals_count']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the owner related to the person - * @member {Number} owner_id - */ -AdditionalMergePersonInfo.prototype['owner_id'] = undefined; - -/** - * The ID of the organization related to the person - * @member {Number} org_id - */ -AdditionalMergePersonInfo.prototype['org_id'] = undefined; - -/** - * The ID of the person with what the main person was merged - * @member {Number} merge_what_id - */ -AdditionalMergePersonInfo.prototype['merge_what_id'] = undefined; - -/** - * The name of the person - * @member {String} name - */ -AdditionalMergePersonInfo.prototype['name'] = undefined; - -/** - * The first name of the person - * @member {String} first_name - */ -AdditionalMergePersonInfo.prototype['first_name'] = undefined; - -/** - * The last name of the person - * @member {String} last_name - */ -AdditionalMergePersonInfo.prototype['last_name'] = undefined; - -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -AdditionalMergePersonInfo.prototype['email_messages_count'] = undefined; - -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -AdditionalMergePersonInfo.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -AdditionalMergePersonInfo.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -AdditionalMergePersonInfo.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the person - * @member {Number} files_count - */ -AdditionalMergePersonInfo.prototype['files_count'] = undefined; - -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -AdditionalMergePersonInfo.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -AdditionalMergePersonInfo.prototype['followers_count'] = undefined; - -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -AdditionalMergePersonInfo.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -AdditionalMergePersonInfo.prototype['last_outgoing_mail_time'] = undefined; - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -AdditionalMergePersonInfo.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -AdditionalMergePersonInfo.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -AdditionalMergePersonInfo.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -AdditionalMergePersonInfo.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -AdditionalMergePersonInfo.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -AdditionalMergePersonInfo.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -AdditionalMergePersonInfo.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -AdditionalMergePersonInfo.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -AdditionalMergePersonInfo.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -AdditionalMergePersonInfo.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -AdditionalMergePersonInfo.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -AdditionalMergePersonInfo.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -AdditionalMergePersonInfo.prototype['last_activity_date'] = undefined; - -/** - * The count of open participant deals related with the item - * @member {Number} participant_open_deals_count - */ -AdditionalMergePersonInfo.prototype['participant_open_deals_count'] = undefined; - -/** - * The count of closed participant deals related with the item - * @member {Number} participant_closed_deals_count - */ -AdditionalMergePersonInfo.prototype['participant_closed_deals_count'] = undefined; - - -// Implement PersonNameCountAndEmailInfoWithIds interface: -/** - * The ID of the owner related to the person - * @member {Number} owner_id - */ -PersonNameCountAndEmailInfoWithIds.prototype['owner_id'] = undefined; -/** - * The ID of the organization related to the person - * @member {Number} org_id - */ -PersonNameCountAndEmailInfoWithIds.prototype['org_id'] = undefined; -/** - * The ID of the person with what the main person was merged - * @member {Number} merge_what_id - */ -PersonNameCountAndEmailInfoWithIds.prototype['merge_what_id'] = undefined; -/** - * The name of the person - * @member {String} name - */ -PersonNameCountAndEmailInfoWithIds.prototype['name'] = undefined; -/** - * The first name of the person - * @member {String} first_name - */ -PersonNameCountAndEmailInfoWithIds.prototype['first_name'] = undefined; -/** - * The last name of the person - * @member {String} last_name - */ -PersonNameCountAndEmailInfoWithIds.prototype['last_name'] = undefined; -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['email_messages_count'] = undefined; -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['files_count'] = undefined; -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['notes_count'] = undefined; -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['followers_count'] = undefined; -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -PersonNameCountAndEmailInfoWithIds.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -PersonNameCountAndEmailInfoWithIds.prototype['last_outgoing_mail_time'] = undefined; -// Implement MergePersonDealRelatedInfo interface: -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -MergePersonDealRelatedInfo.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -MergePersonDealRelatedInfo.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -MergePersonDealRelatedInfo.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -MergePersonDealRelatedInfo.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -MergePersonDealRelatedInfo.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -MergePersonDealRelatedInfo.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -MergePersonDealRelatedInfo.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -MergePersonDealRelatedInfo.prototype['related_lost_deals_count'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -MergePersonDealRelatedInfo.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -MergePersonDealRelatedInfo.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -MergePersonDealRelatedInfo.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -MergePersonDealRelatedInfo.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -MergePersonDealRelatedInfo.prototype['last_activity_date'] = undefined; -/** - * The count of open participant deals related with the item - * @member {Number} participant_open_deals_count - */ -MergePersonDealRelatedInfo.prototype['participant_open_deals_count'] = undefined; -/** - * The count of closed participant deals related with the item - * @member {Number} participant_closed_deals_count - */ -MergePersonDealRelatedInfo.prototype['participant_closed_deals_count'] = undefined; - - - - -export default AdditionalMergePersonInfo; - diff --git a/src/model/AdditionalPersonInfo.js b/src/model/AdditionalPersonInfo.js deleted file mode 100644 index 4bb40818..00000000 --- a/src/model/AdditionalPersonInfo.js +++ /dev/null @@ -1,506 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Owner from './Owner'; -import PersonCountEmailDealAndActivityInfo from './PersonCountEmailDealAndActivityInfo'; -import PersonNameInfoWithOrgAndOwnerId from './PersonNameInfoWithOrgAndOwnerId'; -import RelationshipOrganizationInfoItemWithActiveFlag from './RelationshipOrganizationInfoItemWithActiveFlag'; - -/** - * The AdditionalPersonInfo model module. - * @module model/AdditionalPersonInfo - * @version 1.0.0 - */ -class AdditionalPersonInfo { - /** - * Constructs a new AdditionalPersonInfo. - * @alias module:model/AdditionalPersonInfo - * @implements module:model/PersonNameInfoWithOrgAndOwnerId - * @implements module:model/PersonCountEmailDealAndActivityInfo - */ - constructor() { - PersonNameInfoWithOrgAndOwnerId.initialize(this);PersonCountEmailDealAndActivityInfo.initialize(this); - AdditionalPersonInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AdditionalPersonInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AdditionalPersonInfo} obj Optional instance to populate. - * @return {module:model/AdditionalPersonInfo} The populated AdditionalPersonInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AdditionalPersonInfo(); - PersonNameInfoWithOrgAndOwnerId.constructFromObject(data, obj); - PersonCountEmailDealAndActivityInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = Owner.constructFromObject(data['owner_id']); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = RelationshipOrganizationInfoItemWithActiveFlag.constructFromObject(data['org_id']); - - delete data['org_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String'); - - delete data['first_name']; - } - if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String'); - - delete data['last_name']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/Owner} owner_id - */ -AdditionalPersonInfo.prototype['owner_id'] = undefined; - -/** - * @member {module:model/RelationshipOrganizationInfoItemWithActiveFlag} org_id - */ -AdditionalPersonInfo.prototype['org_id'] = undefined; - -/** - * The name of the person - * @member {String} name - */ -AdditionalPersonInfo.prototype['name'] = undefined; - -/** - * The first name of the person - * @member {String} first_name - */ -AdditionalPersonInfo.prototype['first_name'] = undefined; - -/** - * The last name of the person - * @member {String} last_name - */ -AdditionalPersonInfo.prototype['last_name'] = undefined; - -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -AdditionalPersonInfo.prototype['email_messages_count'] = undefined; - -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -AdditionalPersonInfo.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -AdditionalPersonInfo.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -AdditionalPersonInfo.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the person - * @member {Number} files_count - */ -AdditionalPersonInfo.prototype['files_count'] = undefined; - -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -AdditionalPersonInfo.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -AdditionalPersonInfo.prototype['followers_count'] = undefined; - -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -AdditionalPersonInfo.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -AdditionalPersonInfo.prototype['last_outgoing_mail_time'] = undefined; - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -AdditionalPersonInfo.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -AdditionalPersonInfo.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -AdditionalPersonInfo.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -AdditionalPersonInfo.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -AdditionalPersonInfo.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -AdditionalPersonInfo.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -AdditionalPersonInfo.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -AdditionalPersonInfo.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -AdditionalPersonInfo.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -AdditionalPersonInfo.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -AdditionalPersonInfo.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -AdditionalPersonInfo.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -AdditionalPersonInfo.prototype['last_activity_date'] = undefined; - - -// Implement PersonNameInfoWithOrgAndOwnerId interface: -/** - * @member {module:model/Owner} owner_id - */ -PersonNameInfoWithOrgAndOwnerId.prototype['owner_id'] = undefined; -/** - * @member {module:model/RelationshipOrganizationInfoItemWithActiveFlag} org_id - */ -PersonNameInfoWithOrgAndOwnerId.prototype['org_id'] = undefined; -/** - * The name of the person - * @member {String} name - */ -PersonNameInfoWithOrgAndOwnerId.prototype['name'] = undefined; -/** - * The first name of the person - * @member {String} first_name - */ -PersonNameInfoWithOrgAndOwnerId.prototype['first_name'] = undefined; -/** - * The last name of the person - * @member {String} last_name - */ -PersonNameInfoWithOrgAndOwnerId.prototype['last_name'] = undefined; -// Implement PersonCountEmailDealAndActivityInfo interface: -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonCountEmailDealAndActivityInfo.prototype['email_messages_count'] = undefined; -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonCountEmailDealAndActivityInfo.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonCountEmailDealAndActivityInfo.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonCountEmailDealAndActivityInfo.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonCountEmailDealAndActivityInfo.prototype['files_count'] = undefined; -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonCountEmailDealAndActivityInfo.prototype['notes_count'] = undefined; -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonCountEmailDealAndActivityInfo.prototype['followers_count'] = undefined; -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -PersonCountEmailDealAndActivityInfo.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -PersonCountEmailDealAndActivityInfo.prototype['last_outgoing_mail_time'] = undefined; -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['related_lost_deals_count'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -PersonCountEmailDealAndActivityInfo.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -PersonCountEmailDealAndActivityInfo.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -PersonCountEmailDealAndActivityInfo.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -PersonCountEmailDealAndActivityInfo.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -PersonCountEmailDealAndActivityInfo.prototype['last_activity_date'] = undefined; - - - - -export default AdditionalPersonInfo; - diff --git a/src/model/AllOrganizationRelationshipsGetResponse.js b/src/model/AllOrganizationRelationshipsGetResponse.js deleted file mode 100644 index 0b293173..00000000 --- a/src/model/AllOrganizationRelationshipsGetResponse.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import AllOrganizationRelationshipsGetResponseAllOf from './AllOrganizationRelationshipsGetResponseAllOf'; -import AllOrganizationRelationshipsGetResponseAllOfRelatedObjects from './AllOrganizationRelationshipsGetResponseAllOfRelatedObjects'; -import BaseResponse from './BaseResponse'; -import OrganizationRelationshipDetails from './OrganizationRelationshipDetails'; - -/** - * The AllOrganizationRelationshipsGetResponse model module. - * @module model/AllOrganizationRelationshipsGetResponse - * @version 1.0.0 - */ -class AllOrganizationRelationshipsGetResponse { - /** - * Constructs a new AllOrganizationRelationshipsGetResponse. - * @alias module:model/AllOrganizationRelationshipsGetResponse - * @implements module:model/BaseResponse - * @implements module:model/AllOrganizationRelationshipsGetResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);AllOrganizationRelationshipsGetResponseAllOf.initialize(this); - AllOrganizationRelationshipsGetResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AllOrganizationRelationshipsGetResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AllOrganizationRelationshipsGetResponse} obj Optional instance to populate. - * @return {module:model/AllOrganizationRelationshipsGetResponse} The populated AllOrganizationRelationshipsGetResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AllOrganizationRelationshipsGetResponse(); - BaseResponse.constructFromObject(data, obj); - AllOrganizationRelationshipsGetResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [OrganizationRelationshipDetails]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -AllOrganizationRelationshipsGetResponse.prototype['success'] = undefined; - -/** - * The array of organization relationships - * @member {Array.} data - */ -AllOrganizationRelationshipsGetResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -AllOrganizationRelationshipsGetResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} related_objects - */ -AllOrganizationRelationshipsGetResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement AllOrganizationRelationshipsGetResponseAllOf interface: -/** - * The array of organization relationships - * @member {Array.} data - */ -AllOrganizationRelationshipsGetResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -AllOrganizationRelationshipsGetResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} related_objects - */ -AllOrganizationRelationshipsGetResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default AllOrganizationRelationshipsGetResponse; - diff --git a/src/model/AllOrganizationRelationshipsGetResponseAllOf.js b/src/model/AllOrganizationRelationshipsGetResponseAllOf.js deleted file mode 100644 index c01fc2e2..00000000 --- a/src/model/AllOrganizationRelationshipsGetResponseAllOf.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import AllOrganizationRelationshipsGetResponseAllOfRelatedObjects from './AllOrganizationRelationshipsGetResponseAllOfRelatedObjects'; -import OrganizationRelationshipDetails from './OrganizationRelationshipDetails'; - -/** - * The AllOrganizationRelationshipsGetResponseAllOf model module. - * @module model/AllOrganizationRelationshipsGetResponseAllOf - * @version 1.0.0 - */ -class AllOrganizationRelationshipsGetResponseAllOf { - /** - * Constructs a new AllOrganizationRelationshipsGetResponseAllOf. - * @alias module:model/AllOrganizationRelationshipsGetResponseAllOf - */ - constructor() { - - AllOrganizationRelationshipsGetResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AllOrganizationRelationshipsGetResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AllOrganizationRelationshipsGetResponseAllOf} obj Optional instance to populate. - * @return {module:model/AllOrganizationRelationshipsGetResponseAllOf} The populated AllOrganizationRelationshipsGetResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AllOrganizationRelationshipsGetResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [OrganizationRelationshipDetails]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of organization relationships - * @member {Array.} data - */ -AllOrganizationRelationshipsGetResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -AllOrganizationRelationshipsGetResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} related_objects - */ -AllOrganizationRelationshipsGetResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default AllOrganizationRelationshipsGetResponseAllOf; - diff --git a/src/model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.js b/src/model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.js deleted file mode 100644 index 236f35af..00000000 --- a/src/model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedOrganizationData from './RelatedOrganizationData'; - -/** - * The AllOrganizationRelationshipsGetResponseAllOfRelatedObjects model module. - * @module model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects - * @version 1.0.0 - */ -class AllOrganizationRelationshipsGetResponseAllOfRelatedObjects { - /** - * Constructs a new AllOrganizationRelationshipsGetResponseAllOfRelatedObjects. - * @alias module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects - */ - constructor() { - - AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AllOrganizationRelationshipsGetResponseAllOfRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} obj Optional instance to populate. - * @return {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} The populated AllOrganizationRelationshipsGetResponseAllOfRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AllOrganizationRelationshipsGetResponseAllOfRelatedObjects(); - - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationData.constructFromObject(data['organization']); - - delete data['organization']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedOrganizationData} organization - */ -AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.prototype['organization'] = undefined; - - - - - - -export default AllOrganizationRelationshipsGetResponseAllOfRelatedObjects; - diff --git a/src/model/AllOrganizationsGetResponse.js b/src/model/AllOrganizationsGetResponse.js deleted file mode 100644 index 079577a6..00000000 --- a/src/model/AllOrganizationsGetResponse.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOf from './AllOrganizationsGetResponseAllOf'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import BaseOrganizationItem from './BaseOrganizationItem'; -import BaseResponse from './BaseResponse'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; - -/** - * The AllOrganizationsGetResponse model module. - * @module model/AllOrganizationsGetResponse - * @version 1.0.0 - */ -class AllOrganizationsGetResponse { - /** - * Constructs a new AllOrganizationsGetResponse. - * @alias module:model/AllOrganizationsGetResponse - * @implements module:model/BaseResponse - * @implements module:model/AllOrganizationsGetResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);AllOrganizationsGetResponseAllOf.initialize(this); - AllOrganizationsGetResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AllOrganizationsGetResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AllOrganizationsGetResponse} obj Optional instance to populate. - * @return {module:model/AllOrganizationsGetResponse} The populated AllOrganizationsGetResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AllOrganizationsGetResponse(); - BaseResponse.constructFromObject(data, obj); - AllOrganizationsGetResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseOrganizationItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -AllOrganizationsGetResponse.prototype['success'] = undefined; - -/** - * The array of organizations - * @member {Array.} data - */ -AllOrganizationsGetResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -AllOrganizationsGetResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -AllOrganizationsGetResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement AllOrganizationsGetResponseAllOf interface: -/** - * The array of organizations - * @member {Array.} data - */ -AllOrganizationsGetResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -AllOrganizationsGetResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -AllOrganizationsGetResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default AllOrganizationsGetResponse; - diff --git a/src/model/AllOrganizationsGetResponseAllOf.js b/src/model/AllOrganizationsGetResponseAllOf.js deleted file mode 100644 index b4c847c9..00000000 --- a/src/model/AllOrganizationsGetResponseAllOf.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import BaseOrganizationItem from './BaseOrganizationItem'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; - -/** - * The AllOrganizationsGetResponseAllOf model module. - * @module model/AllOrganizationsGetResponseAllOf - * @version 1.0.0 - */ -class AllOrganizationsGetResponseAllOf { - /** - * Constructs a new AllOrganizationsGetResponseAllOf. - * @alias module:model/AllOrganizationsGetResponseAllOf - */ - constructor() { - - AllOrganizationsGetResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AllOrganizationsGetResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AllOrganizationsGetResponseAllOf} obj Optional instance to populate. - * @return {module:model/AllOrganizationsGetResponseAllOf} The populated AllOrganizationsGetResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AllOrganizationsGetResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseOrganizationItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of organizations - * @member {Array.} data - */ -AllOrganizationsGetResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -AllOrganizationsGetResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -AllOrganizationsGetResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default AllOrganizationsGetResponseAllOf; - diff --git a/src/model/AllOrganizationsGetResponseAllOfRelatedObjects.js b/src/model/AllOrganizationsGetResponseAllOfRelatedObjects.js deleted file mode 100644 index 57c1672e..00000000 --- a/src/model/AllOrganizationsGetResponseAllOfRelatedObjects.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedOrganizationData from './RelatedOrganizationData'; -import RelatedPictureData from './RelatedPictureData'; -import RelatedUserData from './RelatedUserData'; - -/** - * The AllOrganizationsGetResponseAllOfRelatedObjects model module. - * @module model/AllOrganizationsGetResponseAllOfRelatedObjects - * @version 1.0.0 - */ -class AllOrganizationsGetResponseAllOfRelatedObjects { - /** - * Constructs a new AllOrganizationsGetResponseAllOfRelatedObjects. - * @alias module:model/AllOrganizationsGetResponseAllOfRelatedObjects - */ - constructor() { - - AllOrganizationsGetResponseAllOfRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AllOrganizationsGetResponseAllOfRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} obj Optional instance to populate. - * @return {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} The populated AllOrganizationsGetResponseAllOfRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AllOrganizationsGetResponseAllOfRelatedObjects(); - - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationData.constructFromObject(data['organization']); - - delete data['organization']; - } - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - if (data.hasOwnProperty('picture')) { - obj['picture'] = RelatedPictureData.constructFromObject(data['picture']); - - delete data['picture']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedOrganizationData} organization - */ -AllOrganizationsGetResponseAllOfRelatedObjects.prototype['organization'] = undefined; - -/** - * @member {module:model/RelatedUserData} user - */ -AllOrganizationsGetResponseAllOfRelatedObjects.prototype['user'] = undefined; - -/** - * @member {module:model/RelatedPictureData} picture - */ -AllOrganizationsGetResponseAllOfRelatedObjects.prototype['picture'] = undefined; - - - - - - -export default AllOrganizationsGetResponseAllOfRelatedObjects; - diff --git a/src/model/AnyOfRecents.js b/src/model/AnyOfRecents.js deleted file mode 100644 index acaa8fc7..00000000 --- a/src/model/AnyOfRecents.js +++ /dev/null @@ -1,25 +0,0 @@ -class AnyOfRecents { - /** - * Constructs a new AnyOfRecents. - * @alias module:model/AnyOfRecents - */ - constructor() { - AnyOfRecents.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) {} - - static constructFromObject(data, obj) { - return data; - } -} - - - -export default AnyOfRecents; - diff --git a/src/model/AnyType.js b/src/model/AnyType.js deleted file mode 100644 index 46db2703..00000000 --- a/src/model/AnyType.js +++ /dev/null @@ -1,25 +0,0 @@ -class AnyType { - /** - * Constructs a new AnyType. - * @alias module:model/AnyType - */ - constructor() { - AnyType.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) {} - - static constructFromObject(data, obj) { - return data; - } -} - - - -export default AnyType; - diff --git a/src/model/ArrayPrices.js b/src/model/ArrayPrices.js deleted file mode 100644 index 0cbcbe2e..00000000 --- a/src/model/ArrayPrices.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ArrayPrices model module. - * @module model/ArrayPrices - * @version 1.0.0 - */ -class ArrayPrices { - /** - * Constructs a new ArrayPrices. - * @alias module:model/ArrayPrices - */ - constructor() { - - ArrayPrices.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ArrayPrices from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ArrayPrices} obj Optional instance to populate. - * @return {module:model/ArrayPrices} The populated ArrayPrices instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ArrayPrices(); - - if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], [Object]); - - delete data['prices']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Array of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) - * @member {Array.} prices - */ -ArrayPrices.prototype['prices'] = undefined; - - - - - - -export default ArrayPrices; - diff --git a/src/model/Assignee.js b/src/model/Assignee.js deleted file mode 100644 index 399322f4..00000000 --- a/src/model/Assignee.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Assignee model module. - * @module model/Assignee - * @version 1.0.0 - */ -class Assignee { - /** - * Constructs a new Assignee. - * Who the goal is assigned to - * @alias module:model/Assignee - */ - constructor() { - - Assignee.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Assignee from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Assignee} obj Optional instance to populate. - * @return {module:model/Assignee} The populated Assignee instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Assignee(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the goal assignee - * @member {Number} id - */ -Assignee.prototype['id'] = undefined; - -/** - * The type of the assignee - * @member {String} type - */ -Assignee.prototype['type'] = undefined; - - - - - - -export default Assignee; - diff --git a/src/model/BaseComment.js b/src/model/BaseComment.js deleted file mode 100644 index 41eaadae..00000000 --- a/src/model/BaseComment.js +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseComment model module. - * @module model/BaseComment - * @version 1.0.0 - */ -class BaseComment { - /** - * Constructs a new BaseComment. - * @alias module:model/BaseComment - */ - constructor() { - - BaseComment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseComment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseComment} obj Optional instance to populate. - * @return {module:model/BaseComment} The populated BaseComment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseComment(); - - if (data.hasOwnProperty('uuid')) { - obj['uuid'] = ApiClient.convertToType(data['uuid'], 'String'); - - delete data['uuid']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - - delete data['content']; - } - if (data.hasOwnProperty('object_id')) { - obj['object_id'] = ApiClient.convertToType(data['object_id'], 'String'); - - delete data['object_id']; - } - if (data.hasOwnProperty('object_type')) { - obj['object_type'] = ApiClient.convertToType(data['object_type'], 'String'); - - delete data['object_type']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('updater_id')) { - obj['updater_id'] = ApiClient.convertToType(data['updater_id'], 'Number'); - - delete data['updater_id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the note - * @member {String} uuid - */ -BaseComment.prototype['uuid'] = undefined; - -/** - * Whether the note is active or deleted - * @member {Boolean} active_flag - */ -BaseComment.prototype['active_flag'] = undefined; - -/** - * The creation date and time of the note - * @member {String} add_time - */ -BaseComment.prototype['add_time'] = undefined; - -/** - * The creation date and time of the note - * @member {String} update_time - */ -BaseComment.prototype['update_time'] = undefined; - -/** - * The content of the note in HTML format. Subject to sanitization on the back-end. - * @member {String} content - */ -BaseComment.prototype['content'] = undefined; - -/** - * The ID of the object that the comment is attached to, will be the id of the note - * @member {String} object_id - */ -BaseComment.prototype['object_id'] = undefined; - -/** - * The type of object that the comment is attached to, will be \"note\" - * @member {String} object_type - */ -BaseComment.prototype['object_type'] = undefined; - -/** - * The ID of the user who created the comment - * @member {Number} user_id - */ -BaseComment.prototype['user_id'] = undefined; - -/** - * The ID of the user who last updated the comment - * @member {Number} updater_id - */ -BaseComment.prototype['updater_id'] = undefined; - -/** - * The ID of the company - * @member {Number} company_id - */ -BaseComment.prototype['company_id'] = undefined; - - - - - - -export default BaseComment; - diff --git a/src/model/BaseCurrency.js b/src/model/BaseCurrency.js deleted file mode 100644 index 01344b4a..00000000 --- a/src/model/BaseCurrency.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseCurrency model module. - * @module model/BaseCurrency - * @version 1.0.0 - */ -class BaseCurrency { - /** - * Constructs a new BaseCurrency. - * @alias module:model/BaseCurrency - */ - constructor() { - - BaseCurrency.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseCurrency from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseCurrency} obj Optional instance to populate. - * @return {module:model/BaseCurrency} The populated BaseCurrency instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseCurrency(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('decimal_points')) { - obj['decimal_points'] = ApiClient.convertToType(data['decimal_points'], 'Number'); - - delete data['decimal_points']; - } - if (data.hasOwnProperty('symbol')) { - obj['symbol'] = ApiClient.convertToType(data['symbol'], 'String'); - - delete data['symbol']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('is_custom_flag')) { - obj['is_custom_flag'] = ApiClient.convertToType(data['is_custom_flag'], 'Boolean'); - - delete data['is_custom_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the currency - * @member {Number} id - */ -BaseCurrency.prototype['id'] = undefined; - -/** - * The code of the currency - * @member {String} code - */ -BaseCurrency.prototype['code'] = undefined; - -/** - * The name of the currency - * @member {String} name - */ -BaseCurrency.prototype['name'] = undefined; - -/** - * The amount of decimal points of the currency - * @member {Number} decimal_points - */ -BaseCurrency.prototype['decimal_points'] = undefined; - -/** - * The symbol of the currency - * @member {String} symbol - */ -BaseCurrency.prototype['symbol'] = undefined; - -/** - * Whether the currency is active or not - * @member {Boolean} active_flag - */ -BaseCurrency.prototype['active_flag'] = undefined; - -/** - * Whether the currency is a custom one or not - * @member {Boolean} is_custom_flag - */ -BaseCurrency.prototype['is_custom_flag'] = undefined; - - - - - - -export default BaseCurrency; - diff --git a/src/model/BaseDeal.js b/src/model/BaseDeal.js deleted file mode 100644 index 241488b1..00000000 --- a/src/model/BaseDeal.js +++ /dev/null @@ -1,750 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseDeal model module. - * @module model/BaseDeal - * @version 1.0.0 - */ -class BaseDeal { - /** - * Constructs a new BaseDeal. - * @alias module:model/BaseDeal - */ - constructor() { - - BaseDeal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseDeal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseDeal} obj Optional instance to populate. - * @return {module:model/BaseDeal} The populated BaseDeal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseDeal(); - - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('stage_change_time')) { - obj['stage_change_time'] = ApiClient.convertToType(data['stage_change_time'], 'String'); - - delete data['stage_change_time']; - } - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); - - delete data['active']; - } - if (data.hasOwnProperty('deleted')) { - obj['deleted'] = ApiClient.convertToType(data['deleted'], 'Boolean'); - - delete data['deleted']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('probability')) { - obj['probability'] = ApiClient.convertToType(data['probability'], 'Number'); - - delete data['probability']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - if (data.hasOwnProperty('lost_reason')) { - obj['lost_reason'] = ApiClient.convertToType(data['lost_reason'], 'String'); - - delete data['lost_reason']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('close_time')) { - obj['close_time'] = ApiClient.convertToType(data['close_time'], 'String'); - - delete data['close_time']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('won_time')) { - obj['won_time'] = ApiClient.convertToType(data['won_time'], 'String'); - - delete data['won_time']; - } - if (data.hasOwnProperty('first_won_time')) { - obj['first_won_time'] = ApiClient.convertToType(data['first_won_time'], 'String'); - - delete data['first_won_time']; - } - if (data.hasOwnProperty('lost_time')) { - obj['lost_time'] = ApiClient.convertToType(data['lost_time'], 'String'); - - delete data['lost_time']; - } - if (data.hasOwnProperty('products_count')) { - obj['products_count'] = ApiClient.convertToType(data['products_count'], 'Number'); - - delete data['products_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('participants_count')) { - obj['participants_count'] = ApiClient.convertToType(data['participants_count'], 'Number'); - - delete data['participants_count']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - if (data.hasOwnProperty('stage_order_nr')) { - obj['stage_order_nr'] = ApiClient.convertToType(data['stage_order_nr'], 'Number'); - - delete data['stage_order_nr']; - } - if (data.hasOwnProperty('person_name')) { - obj['person_name'] = ApiClient.convertToType(data['person_name'], 'String'); - - delete data['person_name']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('next_activity_subject')) { - obj['next_activity_subject'] = ApiClient.convertToType(data['next_activity_subject'], 'String'); - - delete data['next_activity_subject']; - } - if (data.hasOwnProperty('next_activity_type')) { - obj['next_activity_type'] = ApiClient.convertToType(data['next_activity_type'], 'String'); - - delete data['next_activity_type']; - } - if (data.hasOwnProperty('next_activity_duration')) { - obj['next_activity_duration'] = ApiClient.convertToType(data['next_activity_duration'], 'String'); - - delete data['next_activity_duration']; - } - if (data.hasOwnProperty('next_activity_note')) { - obj['next_activity_note'] = ApiClient.convertToType(data['next_activity_note'], 'String'); - - delete data['next_activity_note']; - } - if (data.hasOwnProperty('formatted_value')) { - obj['formatted_value'] = ApiClient.convertToType(data['formatted_value'], 'String'); - - delete data['formatted_value']; - } - if (data.hasOwnProperty('weighted_value')) { - obj['weighted_value'] = ApiClient.convertToType(data['weighted_value'], 'Number'); - - delete data['weighted_value']; - } - if (data.hasOwnProperty('formatted_weighted_value')) { - obj['formatted_weighted_value'] = ApiClient.convertToType(data['formatted_weighted_value'], 'String'); - - delete data['formatted_weighted_value']; - } - if (data.hasOwnProperty('weighted_value_currency')) { - obj['weighted_value_currency'] = ApiClient.convertToType(data['weighted_value_currency'], 'String'); - - delete data['weighted_value_currency']; - } - if (data.hasOwnProperty('rotten_time')) { - obj['rotten_time'] = ApiClient.convertToType(data['rotten_time'], 'String'); - - delete data['rotten_time']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('org_hidden')) { - obj['org_hidden'] = ApiClient.convertToType(data['org_hidden'], 'Boolean'); - - delete data['org_hidden']; - } - if (data.hasOwnProperty('person_hidden')) { - obj['person_hidden'] = ApiClient.convertToType(data['person_hidden'], 'Boolean'); - - delete data['person_hidden']; - } - if (data.hasOwnProperty('origin')) { - obj['origin'] = ApiClient.convertToType(data['origin'], 'String'); - - delete data['origin']; - } - if (data.hasOwnProperty('origin_id')) { - obj['origin_id'] = ApiClient.convertToType(data['origin_id'], 'String'); - - delete data['origin_id']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - if (data.hasOwnProperty('arr')) { - obj['arr'] = ApiClient.convertToType(data['arr'], 'Number'); - - delete data['arr']; - } - if (data.hasOwnProperty('mrr')) { - obj['mrr'] = ApiClient.convertToType(data['mrr'], 'Number'); - - delete data['mrr']; - } - if (data.hasOwnProperty('acv')) { - obj['acv'] = ApiClient.convertToType(data['acv'], 'Number'); - - delete data['acv']; - } - if (data.hasOwnProperty('arr_currency')) { - obj['arr_currency'] = ApiClient.convertToType(data['arr_currency'], 'String'); - - delete data['arr_currency']; - } - if (data.hasOwnProperty('mrr_currency')) { - obj['mrr_currency'] = ApiClient.convertToType(data['mrr_currency'], 'String'); - - delete data['mrr_currency']; - } - if (data.hasOwnProperty('acv_currency')) { - obj['acv_currency'] = ApiClient.convertToType(data['acv_currency'], 'String'); - - delete data['acv_currency']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal stage - * @member {Number} stage_id - */ -BaseDeal.prototype['stage_id'] = undefined; - -/** - * The title of the deal - * @member {String} title - */ -BaseDeal.prototype['title'] = undefined; - -/** - * The value of the deal - * @member {Number} value - */ -BaseDeal.prototype['value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} currency - */ -BaseDeal.prototype['currency'] = undefined; - -/** - * The creation date and time of the deal - * @member {String} add_time - */ -BaseDeal.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the deal - * @member {String} update_time - */ -BaseDeal.prototype['update_time'] = undefined; - -/** - * The last updated date and time of the deal stage - * @member {String} stage_change_time - */ -BaseDeal.prototype['stage_change_time'] = undefined; - -/** - * Whether the deal is active or not - * @member {Boolean} active - */ -BaseDeal.prototype['active'] = undefined; - -/** - * Whether the deal is deleted or not - * @member {Boolean} deleted - */ -BaseDeal.prototype['deleted'] = undefined; - -/** - * The status of the deal - * @member {String} status - */ -BaseDeal.prototype['status'] = undefined; - -/** - * The success probability percentage of the deal - * @member {Number} probability - */ -BaseDeal.prototype['probability'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -BaseDeal.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -BaseDeal.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -BaseDeal.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -BaseDeal.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -BaseDeal.prototype['last_activity_date'] = undefined; - -/** - * The reason for losing the deal - * @member {String} lost_reason - */ -BaseDeal.prototype['lost_reason'] = undefined; - -/** - * The visibility of the deal - * @member {String} visible_to - */ -BaseDeal.prototype['visible_to'] = undefined; - -/** - * The date and time of closing the deal - * @member {String} close_time - */ -BaseDeal.prototype['close_time'] = undefined; - -/** - * The ID of the pipeline associated with the deal - * @member {Number} pipeline_id - */ -BaseDeal.prototype['pipeline_id'] = undefined; - -/** - * The date and time of changing the deal status as won - * @member {String} won_time - */ -BaseDeal.prototype['won_time'] = undefined; - -/** - * The date and time of the first time changing the deal status as won - * @member {String} first_won_time - */ -BaseDeal.prototype['first_won_time'] = undefined; - -/** - * The date and time of changing the deal status as lost - * @member {String} lost_time - */ -BaseDeal.prototype['lost_time'] = undefined; - -/** - * The number of products associated with the deal - * @member {Number} products_count - */ -BaseDeal.prototype['products_count'] = undefined; - -/** - * The number of files associated with the deal - * @member {Number} files_count - */ -BaseDeal.prototype['files_count'] = undefined; - -/** - * The number of notes associated with the deal - * @member {Number} notes_count - */ -BaseDeal.prototype['notes_count'] = undefined; - -/** - * The number of followers associated with the deal - * @member {Number} followers_count - */ -BaseDeal.prototype['followers_count'] = undefined; - -/** - * The number of emails associated with the deal - * @member {Number} email_messages_count - */ -BaseDeal.prototype['email_messages_count'] = undefined; - -/** - * The number of activities associated with the deal - * @member {Number} activities_count - */ -BaseDeal.prototype['activities_count'] = undefined; - -/** - * The number of completed activities associated with the deal - * @member {Number} done_activities_count - */ -BaseDeal.prototype['done_activities_count'] = undefined; - -/** - * The number of incomplete activities associated with the deal - * @member {Number} undone_activities_count - */ -BaseDeal.prototype['undone_activities_count'] = undefined; - -/** - * The number of participants associated with the deal - * @member {Number} participants_count - */ -BaseDeal.prototype['participants_count'] = undefined; - -/** - * The expected close date of the deal - * @member {Date} expected_close_date - */ -BaseDeal.prototype['expected_close_date'] = undefined; - -/** - * The date and time of the last incoming email associated with the deal - * @member {String} last_incoming_mail_time - */ -BaseDeal.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the deal - * @member {String} last_outgoing_mail_time - */ -BaseDeal.prototype['last_outgoing_mail_time'] = undefined; - -/** - * The label or multiple labels assigned to the deal - * @member {String} label - */ -BaseDeal.prototype['label'] = undefined; - -/** - * The order number of the deal stage associated with the deal - * @member {Number} stage_order_nr - */ -BaseDeal.prototype['stage_order_nr'] = undefined; - -/** - * The name of the person associated with the deal - * @member {String} person_name - */ -BaseDeal.prototype['person_name'] = undefined; - -/** - * The name of the organization associated with the deal - * @member {String} org_name - */ -BaseDeal.prototype['org_name'] = undefined; - -/** - * The subject of the next activity associated with the deal - * @member {String} next_activity_subject - */ -BaseDeal.prototype['next_activity_subject'] = undefined; - -/** - * The type of the next activity associated with the deal - * @member {String} next_activity_type - */ -BaseDeal.prototype['next_activity_type'] = undefined; - -/** - * The duration of the next activity associated with the deal - * @member {String} next_activity_duration - */ -BaseDeal.prototype['next_activity_duration'] = undefined; - -/** - * The note of the next activity associated with the deal - * @member {String} next_activity_note - */ -BaseDeal.prototype['next_activity_note'] = undefined; - -/** - * The deal value formatted with selected currency. E.g. US$500 - * @member {String} formatted_value - */ -BaseDeal.prototype['formatted_value'] = undefined; - -/** - * Probability times deal value. Probability can either be deal probability or if not set, then stage probability. - * @member {Number} weighted_value - */ -BaseDeal.prototype['weighted_value'] = undefined; - -/** - * The weighted_value formatted with selected currency. E.g. US$500 - * @member {String} formatted_weighted_value - */ -BaseDeal.prototype['formatted_weighted_value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} weighted_value_currency - */ -BaseDeal.prototype['weighted_value_currency'] = undefined; - -/** - * The date and time of changing the deal status as rotten - * @member {String} rotten_time - */ -BaseDeal.prototype['rotten_time'] = undefined; - -/** - * The name of the deal owner - * @member {String} owner_name - */ -BaseDeal.prototype['owner_name'] = undefined; - -/** - * The BCC email of the deal - * @member {String} cc_email - */ -BaseDeal.prototype['cc_email'] = undefined; - -/** - * If the organization that is associated with the deal is hidden or not - * @member {Boolean} org_hidden - */ -BaseDeal.prototype['org_hidden'] = undefined; - -/** - * If the person that is associated with the deal is hidden or not - * @member {Boolean} person_hidden - */ -BaseDeal.prototype['person_hidden'] = undefined; - -/** - * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. - * @member {String} origin - */ -BaseDeal.prototype['origin'] = undefined; - -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. - * @member {String} origin_id - */ -BaseDeal.prototype['origin_id'] = undefined; - -/** - * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. - * @member {Number} channel - */ -BaseDeal.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -BaseDeal.prototype['channel_id'] = undefined; - -/** - * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} arr - */ -BaseDeal.prototype['arr'] = undefined; - -/** - * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} mrr - */ -BaseDeal.prototype['mrr'] = undefined; - -/** - * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal - * @member {Number} acv - */ -BaseDeal.prototype['acv'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null - * @member {String} arr_currency - */ -BaseDeal.prototype['arr_currency'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null - * @member {String} mrr_currency - */ -BaseDeal.prototype['mrr_currency'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null - * @member {String} acv_currency - */ -BaseDeal.prototype['acv_currency'] = undefined; - - - - - - -export default BaseDeal; - diff --git a/src/model/BaseFollowerItem.js b/src/model/BaseFollowerItem.js deleted file mode 100644 index d713a072..00000000 --- a/src/model/BaseFollowerItem.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseFollowerItem model module. - * @module model/BaseFollowerItem - * @version 1.0.0 - */ -class BaseFollowerItem { - /** - * Constructs a new BaseFollowerItem. - * @alias module:model/BaseFollowerItem - */ - constructor() { - - BaseFollowerItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseFollowerItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseFollowerItem} obj Optional instance to populate. - * @return {module:model/BaseFollowerItem} The populated BaseFollowerItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseFollowerItem(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The user ID of the follower related to the item - * @member {Number} user_id - */ -BaseFollowerItem.prototype['user_id'] = undefined; - -/** - * The ID of the follower - * @member {Number} id - */ -BaseFollowerItem.prototype['id'] = undefined; - -/** - * The date and time of adding the follower to the item - * @member {Date} add_time - */ -BaseFollowerItem.prototype['add_time'] = undefined; - - - - - - -export default BaseFollowerItem; - diff --git a/src/model/BaseMailThread.js b/src/model/BaseMailThread.js deleted file mode 100644 index 69b9599b..00000000 --- a/src/model/BaseMailThread.js +++ /dev/null @@ -1,668 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseMailThreadAllOf from './BaseMailThreadAllOf'; -import BaseMailThreadAllOfParties from './BaseMailThreadAllOfParties'; -import CommonMailThread from './CommonMailThread'; -import NumberBooleanDefault0 from './NumberBooleanDefault0'; - -/** - * The BaseMailThread model module. - * @module model/BaseMailThread - * @version 1.0.0 - */ -class BaseMailThread { - /** - * Constructs a new BaseMailThread. - * @alias module:model/BaseMailThread - * @implements module:model/CommonMailThread - * @implements module:model/BaseMailThreadAllOf - */ - constructor() { - CommonMailThread.initialize(this);BaseMailThreadAllOf.initialize(this); - BaseMailThread.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseMailThread from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseMailThread} obj Optional instance to populate. - * @return {module:model/BaseMailThread} The populated BaseMailThread instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseMailThread(); - CommonMailThread.constructFromObject(data, obj); - BaseMailThreadAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = ApiClient.convertToType(data['account_id'], 'String'); - - delete data['account_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('snippet')) { - obj['snippet'] = ApiClient.convertToType(data['snippet'], 'String'); - - delete data['snippet']; - } - if (data.hasOwnProperty('read_flag')) { - obj['read_flag'] = ApiClient.convertToType(data['read_flag'], NumberBooleanDefault0); - - delete data['read_flag']; - } - if (data.hasOwnProperty('mail_tracking_status')) { - obj['mail_tracking_status'] = ApiClient.convertToType(data['mail_tracking_status'], 'String'); - - delete data['mail_tracking_status']; - } - if (data.hasOwnProperty('has_attachments_flag')) { - obj['has_attachments_flag'] = ApiClient.convertToType(data['has_attachments_flag'], NumberBooleanDefault0); - - delete data['has_attachments_flag']; - } - if (data.hasOwnProperty('has_inline_attachments_flag')) { - obj['has_inline_attachments_flag'] = ApiClient.convertToType(data['has_inline_attachments_flag'], NumberBooleanDefault0); - - delete data['has_inline_attachments_flag']; - } - if (data.hasOwnProperty('has_real_attachments_flag')) { - obj['has_real_attachments_flag'] = ApiClient.convertToType(data['has_real_attachments_flag'], NumberBooleanDefault0); - - delete data['has_real_attachments_flag']; - } - if (data.hasOwnProperty('deleted_flag')) { - obj['deleted_flag'] = ApiClient.convertToType(data['deleted_flag'], NumberBooleanDefault0); - - delete data['deleted_flag']; - } - if (data.hasOwnProperty('synced_flag')) { - obj['synced_flag'] = ApiClient.convertToType(data['synced_flag'], NumberBooleanDefault0); - - delete data['synced_flag']; - } - if (data.hasOwnProperty('smart_bcc_flag')) { - obj['smart_bcc_flag'] = ApiClient.convertToType(data['smart_bcc_flag'], NumberBooleanDefault0); - - delete data['smart_bcc_flag']; - } - if (data.hasOwnProperty('mail_link_tracking_enabled_flag')) { - obj['mail_link_tracking_enabled_flag'] = ApiClient.convertToType(data['mail_link_tracking_enabled_flag'], NumberBooleanDefault0); - - delete data['mail_link_tracking_enabled_flag']; - } - if (data.hasOwnProperty('parties')) { - obj['parties'] = BaseMailThreadAllOfParties.constructFromObject(data['parties']); - - delete data['parties']; - } - if (data.hasOwnProperty('drafts_parties')) { - obj['drafts_parties'] = ApiClient.convertToType(data['drafts_parties'], [Object]); - - delete data['drafts_parties']; - } - if (data.hasOwnProperty('folders')) { - obj['folders'] = ApiClient.convertToType(data['folders'], ['String']); - - delete data['folders']; - } - if (data.hasOwnProperty('version')) { - obj['version'] = ApiClient.convertToType(data['version'], 'Number'); - - delete data['version']; - } - if (data.hasOwnProperty('snippet_draft')) { - obj['snippet_draft'] = ApiClient.convertToType(data['snippet_draft'], 'String'); - - delete data['snippet_draft']; - } - if (data.hasOwnProperty('snippet_sent')) { - obj['snippet_sent'] = ApiClient.convertToType(data['snippet_sent'], 'String'); - - delete data['snippet_sent']; - } - if (data.hasOwnProperty('message_count')) { - obj['message_count'] = ApiClient.convertToType(data['message_count'], 'Number'); - - delete data['message_count']; - } - if (data.hasOwnProperty('has_draft_flag')) { - obj['has_draft_flag'] = ApiClient.convertToType(data['has_draft_flag'], NumberBooleanDefault0); - - delete data['has_draft_flag']; - } - if (data.hasOwnProperty('has_sent_flag')) { - obj['has_sent_flag'] = ApiClient.convertToType(data['has_sent_flag'], NumberBooleanDefault0); - - delete data['has_sent_flag']; - } - if (data.hasOwnProperty('archived_flag')) { - obj['archived_flag'] = ApiClient.convertToType(data['archived_flag'], NumberBooleanDefault0); - - delete data['archived_flag']; - } - if (data.hasOwnProperty('shared_flag')) { - obj['shared_flag'] = ApiClient.convertToType(data['shared_flag'], NumberBooleanDefault0); - - delete data['shared_flag']; - } - if (data.hasOwnProperty('external_deleted_flag')) { - obj['external_deleted_flag'] = ApiClient.convertToType(data['external_deleted_flag'], NumberBooleanDefault0); - - delete data['external_deleted_flag']; - } - if (data.hasOwnProperty('first_message_to_me_flag')) { - obj['first_message_to_me_flag'] = ApiClient.convertToType(data['first_message_to_me_flag'], NumberBooleanDefault0); - - delete data['first_message_to_me_flag']; - } - if (data.hasOwnProperty('last_message_timestamp')) { - obj['last_message_timestamp'] = ApiClient.convertToType(data['last_message_timestamp'], 'Date'); - - delete data['last_message_timestamp']; - } - if (data.hasOwnProperty('first_message_timestamp')) { - obj['first_message_timestamp'] = ApiClient.convertToType(data['first_message_timestamp'], 'Date'); - - delete data['first_message_timestamp']; - } - if (data.hasOwnProperty('last_message_sent_timestamp')) { - obj['last_message_sent_timestamp'] = ApiClient.convertToType(data['last_message_sent_timestamp'], 'Date'); - - delete data['last_message_sent_timestamp']; - } - if (data.hasOwnProperty('last_message_received_timestamp')) { - obj['last_message_received_timestamp'] = ApiClient.convertToType(data['last_message_received_timestamp'], 'Date'); - - delete data['last_message_received_timestamp']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('deal_status')) { - obj['deal_status'] = ApiClient.convertToType(data['deal_status'], 'String'); - - delete data['deal_status']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('all_messages_sent_flag')) { - obj['all_messages_sent_flag'] = ApiClient.convertToType(data['all_messages_sent_flag'], NumberBooleanDefault0); - - delete data['all_messages_sent_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * ID of the mail thread - * @member {Number} id - */ -BaseMailThread.prototype['id'] = undefined; - -/** - * The connection account ID - * @member {String} account_id - */ -BaseMailThread.prototype['account_id'] = undefined; - -/** - * ID of the user whom mail message will be assigned to - * @member {Number} user_id - */ -BaseMailThread.prototype['user_id'] = undefined; - -/** - * The subject - * @member {String} subject - */ -BaseMailThread.prototype['subject'] = undefined; - -/** - * A snippet - * @member {String} snippet - */ -BaseMailThread.prototype['snippet'] = undefined; - -/** - * Whether the mail thread is read - * @member {module:model/NumberBooleanDefault0} read_flag - */ -BaseMailThread.prototype['read_flag'] = undefined; - -/** - * Mail tracking status - * @member {String} mail_tracking_status - */ -BaseMailThread.prototype['mail_tracking_status'] = undefined; - -/** - * Whether the mail thread has an attachment - * @member {module:model/NumberBooleanDefault0} has_attachments_flag - */ -BaseMailThread.prototype['has_attachments_flag'] = undefined; - -/** - * Whether the mail thread has inline attachments - * @member {module:model/NumberBooleanDefault0} has_inline_attachments_flag - */ -BaseMailThread.prototype['has_inline_attachments_flag'] = undefined; - -/** - * Whether the mail thread has real attachments (which are not inline) - * @member {module:model/NumberBooleanDefault0} has_real_attachments_flag - */ -BaseMailThread.prototype['has_real_attachments_flag'] = undefined; - -/** - * Whether the mail thread is deleted - * @member {module:model/NumberBooleanDefault0} deleted_flag - */ -BaseMailThread.prototype['deleted_flag'] = undefined; - -/** - * Whether the mail thread is synced - * @member {module:model/NumberBooleanDefault0} synced_flag - */ -BaseMailThread.prototype['synced_flag'] = undefined; - -/** - * Whether one of the parties of the mail thread is Bcc - * @member {module:model/NumberBooleanDefault0} smart_bcc_flag - */ -BaseMailThread.prototype['smart_bcc_flag'] = undefined; - -/** - * Whether the link tracking of the mail thread is enabled - * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag - */ -BaseMailThread.prototype['mail_link_tracking_enabled_flag'] = undefined; - -/** - * @member {module:model/BaseMailThreadAllOfParties} parties - */ -BaseMailThread.prototype['parties'] = undefined; - -/** - * Parties of the drafted mail thread - * @member {Array.} drafts_parties - */ -BaseMailThread.prototype['drafts_parties'] = undefined; - -/** - * Folders in which messages from thread are being stored - * @member {Array.} folders - */ -BaseMailThread.prototype['folders'] = undefined; - -/** - * Version - * @member {Number} version - */ -BaseMailThread.prototype['version'] = undefined; - -/** - * A snippet from a draft - * @member {String} snippet_draft - */ -BaseMailThread.prototype['snippet_draft'] = undefined; - -/** - * A snippet from a message sent - * @member {String} snippet_sent - */ -BaseMailThread.prototype['snippet_sent'] = undefined; - -/** - * An amount of messages - * @member {Number} message_count - */ -BaseMailThread.prototype['message_count'] = undefined; - -/** - * Whether the mail thread has any drafts - * @member {module:model/NumberBooleanDefault0} has_draft_flag - */ -BaseMailThread.prototype['has_draft_flag'] = undefined; - -/** - * Whether the mail thread has messages sent - * @member {module:model/NumberBooleanDefault0} has_sent_flag - */ -BaseMailThread.prototype['has_sent_flag'] = undefined; - -/** - * Whether the mail thread is archived - * @member {module:model/NumberBooleanDefault0} archived_flag - */ -BaseMailThread.prototype['archived_flag'] = undefined; - -/** - * Whether the mail thread is shared - * @member {module:model/NumberBooleanDefault0} shared_flag - */ -BaseMailThread.prototype['shared_flag'] = undefined; - -/** - * Whether the mail thread has been deleted externally - * @member {module:model/NumberBooleanDefault0} external_deleted_flag - */ -BaseMailThread.prototype['external_deleted_flag'] = undefined; - -/** - * Whether the mail thread was initialized by others - * @member {module:model/NumberBooleanDefault0} first_message_to_me_flag - */ -BaseMailThread.prototype['first_message_to_me_flag'] = undefined; - -/** - * Last message timestamp - * @member {Date} last_message_timestamp - */ -BaseMailThread.prototype['last_message_timestamp'] = undefined; - -/** - * The time when the mail thread has had the first message received or created - * @member {Date} first_message_timestamp - */ -BaseMailThread.prototype['first_message_timestamp'] = undefined; - -/** - * The last time when the mail thread has had a message sent - * @member {Date} last_message_sent_timestamp - */ -BaseMailThread.prototype['last_message_sent_timestamp'] = undefined; - -/** - * The last time when the mail thread has had a message received - * @member {Date} last_message_received_timestamp - */ -BaseMailThread.prototype['last_message_received_timestamp'] = undefined; - -/** - * The time when the mail thread was inserted to database - * @member {Date} add_time - */ -BaseMailThread.prototype['add_time'] = undefined; - -/** - * The time when the mail thread was updated in database received - * @member {Date} update_time - */ -BaseMailThread.prototype['update_time'] = undefined; - -/** - * The ID of the deal - * @member {Number} deal_id - */ -BaseMailThread.prototype['deal_id'] = undefined; - -/** - * Status of the deal - * @member {String} deal_status - */ -BaseMailThread.prototype['deal_status'] = undefined; - -/** - * The ID of the lead - * @member {String} lead_id - */ -BaseMailThread.prototype['lead_id'] = undefined; - -/** - * Whether all the mail thread messages have been sent - * @member {module:model/NumberBooleanDefault0} all_messages_sent_flag - */ -BaseMailThread.prototype['all_messages_sent_flag'] = undefined; - - -// Implement CommonMailThread interface: -/** - * ID of the mail thread - * @member {Number} id - */ -CommonMailThread.prototype['id'] = undefined; -/** - * The connection account ID - * @member {String} account_id - */ -CommonMailThread.prototype['account_id'] = undefined; -/** - * ID of the user whom mail message will be assigned to - * @member {Number} user_id - */ -CommonMailThread.prototype['user_id'] = undefined; -/** - * The subject - * @member {String} subject - */ -CommonMailThread.prototype['subject'] = undefined; -/** - * A snippet - * @member {String} snippet - */ -CommonMailThread.prototype['snippet'] = undefined; -/** - * Whether the mail thread is read - * @member {module:model/NumberBooleanDefault0} read_flag - */ -CommonMailThread.prototype['read_flag'] = undefined; -/** - * Mail tracking status - * @member {String} mail_tracking_status - */ -CommonMailThread.prototype['mail_tracking_status'] = undefined; -/** - * Whether the mail thread has an attachment - * @member {module:model/NumberBooleanDefault0} has_attachments_flag - */ -CommonMailThread.prototype['has_attachments_flag'] = undefined; -/** - * Whether the mail thread has inline attachments - * @member {module:model/NumberBooleanDefault0} has_inline_attachments_flag - */ -CommonMailThread.prototype['has_inline_attachments_flag'] = undefined; -/** - * Whether the mail thread has real attachments (which are not inline) - * @member {module:model/NumberBooleanDefault0} has_real_attachments_flag - */ -CommonMailThread.prototype['has_real_attachments_flag'] = undefined; -/** - * Whether the mail thread is deleted - * @member {module:model/NumberBooleanDefault0} deleted_flag - */ -CommonMailThread.prototype['deleted_flag'] = undefined; -/** - * Whether the mail thread is synced - * @member {module:model/NumberBooleanDefault0} synced_flag - */ -CommonMailThread.prototype['synced_flag'] = undefined; -/** - * Whether one of the parties of the mail thread is Bcc - * @member {module:model/NumberBooleanDefault0} smart_bcc_flag - */ -CommonMailThread.prototype['smart_bcc_flag'] = undefined; -/** - * Whether the link tracking of the mail thread is enabled - * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag - */ -CommonMailThread.prototype['mail_link_tracking_enabled_flag'] = undefined; -// Implement BaseMailThreadAllOf interface: -/** - * @member {module:model/BaseMailThreadAllOfParties} parties - */ -BaseMailThreadAllOf.prototype['parties'] = undefined; -/** - * Parties of the drafted mail thread - * @member {Array.} drafts_parties - */ -BaseMailThreadAllOf.prototype['drafts_parties'] = undefined; -/** - * Folders in which messages from thread are being stored - * @member {Array.} folders - */ -BaseMailThreadAllOf.prototype['folders'] = undefined; -/** - * Version - * @member {Number} version - */ -BaseMailThreadAllOf.prototype['version'] = undefined; -/** - * A snippet from a draft - * @member {String} snippet_draft - */ -BaseMailThreadAllOf.prototype['snippet_draft'] = undefined; -/** - * A snippet from a message sent - * @member {String} snippet_sent - */ -BaseMailThreadAllOf.prototype['snippet_sent'] = undefined; -/** - * An amount of messages - * @member {Number} message_count - */ -BaseMailThreadAllOf.prototype['message_count'] = undefined; -/** - * Whether the mail thread has any drafts - * @member {module:model/NumberBooleanDefault0} has_draft_flag - */ -BaseMailThreadAllOf.prototype['has_draft_flag'] = undefined; -/** - * Whether the mail thread has messages sent - * @member {module:model/NumberBooleanDefault0} has_sent_flag - */ -BaseMailThreadAllOf.prototype['has_sent_flag'] = undefined; -/** - * Whether the mail thread is archived - * @member {module:model/NumberBooleanDefault0} archived_flag - */ -BaseMailThreadAllOf.prototype['archived_flag'] = undefined; -/** - * Whether the mail thread is shared - * @member {module:model/NumberBooleanDefault0} shared_flag - */ -BaseMailThreadAllOf.prototype['shared_flag'] = undefined; -/** - * Whether the mail thread has been deleted externally - * @member {module:model/NumberBooleanDefault0} external_deleted_flag - */ -BaseMailThreadAllOf.prototype['external_deleted_flag'] = undefined; -/** - * Whether the mail thread was initialized by others - * @member {module:model/NumberBooleanDefault0} first_message_to_me_flag - */ -BaseMailThreadAllOf.prototype['first_message_to_me_flag'] = undefined; -/** - * Last message timestamp - * @member {Date} last_message_timestamp - */ -BaseMailThreadAllOf.prototype['last_message_timestamp'] = undefined; -/** - * The time when the mail thread has had the first message received or created - * @member {Date} first_message_timestamp - */ -BaseMailThreadAllOf.prototype['first_message_timestamp'] = undefined; -/** - * The last time when the mail thread has had a message sent - * @member {Date} last_message_sent_timestamp - */ -BaseMailThreadAllOf.prototype['last_message_sent_timestamp'] = undefined; -/** - * The last time when the mail thread has had a message received - * @member {Date} last_message_received_timestamp - */ -BaseMailThreadAllOf.prototype['last_message_received_timestamp'] = undefined; -/** - * The time when the mail thread was inserted to database - * @member {Date} add_time - */ -BaseMailThreadAllOf.prototype['add_time'] = undefined; -/** - * The time when the mail thread was updated in database received - * @member {Date} update_time - */ -BaseMailThreadAllOf.prototype['update_time'] = undefined; -/** - * The ID of the deal - * @member {Number} deal_id - */ -BaseMailThreadAllOf.prototype['deal_id'] = undefined; -/** - * Status of the deal - * @member {String} deal_status - */ -BaseMailThreadAllOf.prototype['deal_status'] = undefined; -/** - * The ID of the lead - * @member {String} lead_id - */ -BaseMailThreadAllOf.prototype['lead_id'] = undefined; -/** - * Whether all the mail thread messages have been sent - * @member {module:model/NumberBooleanDefault0} all_messages_sent_flag - */ -BaseMailThreadAllOf.prototype['all_messages_sent_flag'] = undefined; - - - - -export default BaseMailThread; - diff --git a/src/model/BaseMailThreadAllOf.js b/src/model/BaseMailThreadAllOf.js deleted file mode 100644 index 2530781d..00000000 --- a/src/model/BaseMailThreadAllOf.js +++ /dev/null @@ -1,322 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseMailThreadAllOfParties from './BaseMailThreadAllOfParties'; -import NumberBooleanDefault0 from './NumberBooleanDefault0'; - -/** - * The BaseMailThreadAllOf model module. - * @module model/BaseMailThreadAllOf - * @version 1.0.0 - */ -class BaseMailThreadAllOf { - /** - * Constructs a new BaseMailThreadAllOf. - * @alias module:model/BaseMailThreadAllOf - */ - constructor() { - - BaseMailThreadAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseMailThreadAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseMailThreadAllOf} obj Optional instance to populate. - * @return {module:model/BaseMailThreadAllOf} The populated BaseMailThreadAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseMailThreadAllOf(); - - if (data.hasOwnProperty('parties')) { - obj['parties'] = BaseMailThreadAllOfParties.constructFromObject(data['parties']); - - delete data['parties']; - } - if (data.hasOwnProperty('drafts_parties')) { - obj['drafts_parties'] = ApiClient.convertToType(data['drafts_parties'], [Object]); - - delete data['drafts_parties']; - } - if (data.hasOwnProperty('folders')) { - obj['folders'] = ApiClient.convertToType(data['folders'], ['String']); - - delete data['folders']; - } - if (data.hasOwnProperty('version')) { - obj['version'] = ApiClient.convertToType(data['version'], 'Number'); - - delete data['version']; - } - if (data.hasOwnProperty('snippet_draft')) { - obj['snippet_draft'] = ApiClient.convertToType(data['snippet_draft'], 'String'); - - delete data['snippet_draft']; - } - if (data.hasOwnProperty('snippet_sent')) { - obj['snippet_sent'] = ApiClient.convertToType(data['snippet_sent'], 'String'); - - delete data['snippet_sent']; - } - if (data.hasOwnProperty('message_count')) { - obj['message_count'] = ApiClient.convertToType(data['message_count'], 'Number'); - - delete data['message_count']; - } - if (data.hasOwnProperty('has_draft_flag')) { - obj['has_draft_flag'] = ApiClient.convertToType(data['has_draft_flag'], NumberBooleanDefault0); - - delete data['has_draft_flag']; - } - if (data.hasOwnProperty('has_sent_flag')) { - obj['has_sent_flag'] = ApiClient.convertToType(data['has_sent_flag'], NumberBooleanDefault0); - - delete data['has_sent_flag']; - } - if (data.hasOwnProperty('archived_flag')) { - obj['archived_flag'] = ApiClient.convertToType(data['archived_flag'], NumberBooleanDefault0); - - delete data['archived_flag']; - } - if (data.hasOwnProperty('shared_flag')) { - obj['shared_flag'] = ApiClient.convertToType(data['shared_flag'], NumberBooleanDefault0); - - delete data['shared_flag']; - } - if (data.hasOwnProperty('external_deleted_flag')) { - obj['external_deleted_flag'] = ApiClient.convertToType(data['external_deleted_flag'], NumberBooleanDefault0); - - delete data['external_deleted_flag']; - } - if (data.hasOwnProperty('first_message_to_me_flag')) { - obj['first_message_to_me_flag'] = ApiClient.convertToType(data['first_message_to_me_flag'], NumberBooleanDefault0); - - delete data['first_message_to_me_flag']; - } - if (data.hasOwnProperty('last_message_timestamp')) { - obj['last_message_timestamp'] = ApiClient.convertToType(data['last_message_timestamp'], 'Date'); - - delete data['last_message_timestamp']; - } - if (data.hasOwnProperty('first_message_timestamp')) { - obj['first_message_timestamp'] = ApiClient.convertToType(data['first_message_timestamp'], 'Date'); - - delete data['first_message_timestamp']; - } - if (data.hasOwnProperty('last_message_sent_timestamp')) { - obj['last_message_sent_timestamp'] = ApiClient.convertToType(data['last_message_sent_timestamp'], 'Date'); - - delete data['last_message_sent_timestamp']; - } - if (data.hasOwnProperty('last_message_received_timestamp')) { - obj['last_message_received_timestamp'] = ApiClient.convertToType(data['last_message_received_timestamp'], 'Date'); - - delete data['last_message_received_timestamp']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('deal_status')) { - obj['deal_status'] = ApiClient.convertToType(data['deal_status'], 'String'); - - delete data['deal_status']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('all_messages_sent_flag')) { - obj['all_messages_sent_flag'] = ApiClient.convertToType(data['all_messages_sent_flag'], NumberBooleanDefault0); - - delete data['all_messages_sent_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BaseMailThreadAllOfParties} parties - */ -BaseMailThreadAllOf.prototype['parties'] = undefined; - -/** - * Parties of the drafted mail thread - * @member {Array.} drafts_parties - */ -BaseMailThreadAllOf.prototype['drafts_parties'] = undefined; - -/** - * Folders in which messages from thread are being stored - * @member {Array.} folders - */ -BaseMailThreadAllOf.prototype['folders'] = undefined; - -/** - * Version - * @member {Number} version - */ -BaseMailThreadAllOf.prototype['version'] = undefined; - -/** - * A snippet from a draft - * @member {String} snippet_draft - */ -BaseMailThreadAllOf.prototype['snippet_draft'] = undefined; - -/** - * A snippet from a message sent - * @member {String} snippet_sent - */ -BaseMailThreadAllOf.prototype['snippet_sent'] = undefined; - -/** - * An amount of messages - * @member {Number} message_count - */ -BaseMailThreadAllOf.prototype['message_count'] = undefined; - -/** - * Whether the mail thread has any drafts - * @member {module:model/NumberBooleanDefault0} has_draft_flag - */ -BaseMailThreadAllOf.prototype['has_draft_flag'] = undefined; - -/** - * Whether the mail thread has messages sent - * @member {module:model/NumberBooleanDefault0} has_sent_flag - */ -BaseMailThreadAllOf.prototype['has_sent_flag'] = undefined; - -/** - * Whether the mail thread is archived - * @member {module:model/NumberBooleanDefault0} archived_flag - */ -BaseMailThreadAllOf.prototype['archived_flag'] = undefined; - -/** - * Whether the mail thread is shared - * @member {module:model/NumberBooleanDefault0} shared_flag - */ -BaseMailThreadAllOf.prototype['shared_flag'] = undefined; - -/** - * Whether the mail thread has been deleted externally - * @member {module:model/NumberBooleanDefault0} external_deleted_flag - */ -BaseMailThreadAllOf.prototype['external_deleted_flag'] = undefined; - -/** - * Whether the mail thread was initialized by others - * @member {module:model/NumberBooleanDefault0} first_message_to_me_flag - */ -BaseMailThreadAllOf.prototype['first_message_to_me_flag'] = undefined; - -/** - * Last message timestamp - * @member {Date} last_message_timestamp - */ -BaseMailThreadAllOf.prototype['last_message_timestamp'] = undefined; - -/** - * The time when the mail thread has had the first message received or created - * @member {Date} first_message_timestamp - */ -BaseMailThreadAllOf.prototype['first_message_timestamp'] = undefined; - -/** - * The last time when the mail thread has had a message sent - * @member {Date} last_message_sent_timestamp - */ -BaseMailThreadAllOf.prototype['last_message_sent_timestamp'] = undefined; - -/** - * The last time when the mail thread has had a message received - * @member {Date} last_message_received_timestamp - */ -BaseMailThreadAllOf.prototype['last_message_received_timestamp'] = undefined; - -/** - * The time when the mail thread was inserted to database - * @member {Date} add_time - */ -BaseMailThreadAllOf.prototype['add_time'] = undefined; - -/** - * The time when the mail thread was updated in database received - * @member {Date} update_time - */ -BaseMailThreadAllOf.prototype['update_time'] = undefined; - -/** - * The ID of the deal - * @member {Number} deal_id - */ -BaseMailThreadAllOf.prototype['deal_id'] = undefined; - -/** - * Status of the deal - * @member {String} deal_status - */ -BaseMailThreadAllOf.prototype['deal_status'] = undefined; - -/** - * The ID of the lead - * @member {String} lead_id - */ -BaseMailThreadAllOf.prototype['lead_id'] = undefined; - -/** - * Whether all the mail thread messages have been sent - * @member {module:model/NumberBooleanDefault0} all_messages_sent_flag - */ -BaseMailThreadAllOf.prototype['all_messages_sent_flag'] = undefined; - - - - - - -export default BaseMailThreadAllOf; - diff --git a/src/model/BaseMailThreadAllOfParties.js b/src/model/BaseMailThreadAllOfParties.js deleted file mode 100644 index 0591df82..00000000 --- a/src/model/BaseMailThreadAllOfParties.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MailThreadParticipant from './MailThreadParticipant'; - -/** - * The BaseMailThreadAllOfParties model module. - * @module model/BaseMailThreadAllOfParties - * @version 1.0.0 - */ -class BaseMailThreadAllOfParties { - /** - * Constructs a new BaseMailThreadAllOfParties. - * Parties of the mail thread - * @alias module:model/BaseMailThreadAllOfParties - */ - constructor() { - - BaseMailThreadAllOfParties.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseMailThreadAllOfParties from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseMailThreadAllOfParties} obj Optional instance to populate. - * @return {module:model/BaseMailThreadAllOfParties} The populated BaseMailThreadAllOfParties instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseMailThreadAllOfParties(); - - if (data.hasOwnProperty('to')) { - obj['to'] = ApiClient.convertToType(data['to'], [MailThreadParticipant]); - - delete data['to']; - } - if (data.hasOwnProperty('from')) { - obj['from'] = ApiClient.convertToType(data['from'], [MailThreadParticipant]); - - delete data['from']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Recipients of the mail thread - * @member {Array.} to - */ -BaseMailThreadAllOfParties.prototype['to'] = undefined; - -/** - * Senders of the mail thread - * @member {Array.} from - */ -BaseMailThreadAllOfParties.prototype['from'] = undefined; - - - - - - -export default BaseMailThreadAllOfParties; - diff --git a/src/model/BaseMailThreadMessages.js b/src/model/BaseMailThreadMessages.js deleted file mode 100644 index 9d6ec39e..00000000 --- a/src/model/BaseMailThreadMessages.js +++ /dev/null @@ -1,510 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseMailThreadMessagesAllOf from './BaseMailThreadMessagesAllOf'; -import CommonMailThread from './CommonMailThread'; -import MailThreadParticipant from './MailThreadParticipant'; -import NumberBooleanDefault0 from './NumberBooleanDefault0'; - -/** - * The BaseMailThreadMessages model module. - * @module model/BaseMailThreadMessages - * @version 1.0.0 - */ -class BaseMailThreadMessages { - /** - * Constructs a new BaseMailThreadMessages. - * @alias module:model/BaseMailThreadMessages - * @implements module:model/CommonMailThread - * @implements module:model/BaseMailThreadMessagesAllOf - */ - constructor() { - CommonMailThread.initialize(this);BaseMailThreadMessagesAllOf.initialize(this); - BaseMailThreadMessages.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseMailThreadMessages from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseMailThreadMessages} obj Optional instance to populate. - * @return {module:model/BaseMailThreadMessages} The populated BaseMailThreadMessages instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseMailThreadMessages(); - CommonMailThread.constructFromObject(data, obj); - BaseMailThreadMessagesAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = ApiClient.convertToType(data['account_id'], 'String'); - - delete data['account_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('snippet')) { - obj['snippet'] = ApiClient.convertToType(data['snippet'], 'String'); - - delete data['snippet']; - } - if (data.hasOwnProperty('read_flag')) { - obj['read_flag'] = ApiClient.convertToType(data['read_flag'], NumberBooleanDefault0); - - delete data['read_flag']; - } - if (data.hasOwnProperty('mail_tracking_status')) { - obj['mail_tracking_status'] = ApiClient.convertToType(data['mail_tracking_status'], 'String'); - - delete data['mail_tracking_status']; - } - if (data.hasOwnProperty('has_attachments_flag')) { - obj['has_attachments_flag'] = ApiClient.convertToType(data['has_attachments_flag'], NumberBooleanDefault0); - - delete data['has_attachments_flag']; - } - if (data.hasOwnProperty('has_inline_attachments_flag')) { - obj['has_inline_attachments_flag'] = ApiClient.convertToType(data['has_inline_attachments_flag'], NumberBooleanDefault0); - - delete data['has_inline_attachments_flag']; - } - if (data.hasOwnProperty('has_real_attachments_flag')) { - obj['has_real_attachments_flag'] = ApiClient.convertToType(data['has_real_attachments_flag'], NumberBooleanDefault0); - - delete data['has_real_attachments_flag']; - } - if (data.hasOwnProperty('deleted_flag')) { - obj['deleted_flag'] = ApiClient.convertToType(data['deleted_flag'], NumberBooleanDefault0); - - delete data['deleted_flag']; - } - if (data.hasOwnProperty('synced_flag')) { - obj['synced_flag'] = ApiClient.convertToType(data['synced_flag'], NumberBooleanDefault0); - - delete data['synced_flag']; - } - if (data.hasOwnProperty('smart_bcc_flag')) { - obj['smart_bcc_flag'] = ApiClient.convertToType(data['smart_bcc_flag'], NumberBooleanDefault0); - - delete data['smart_bcc_flag']; - } - if (data.hasOwnProperty('mail_link_tracking_enabled_flag')) { - obj['mail_link_tracking_enabled_flag'] = ApiClient.convertToType(data['mail_link_tracking_enabled_flag'], NumberBooleanDefault0); - - delete data['mail_link_tracking_enabled_flag']; - } - if (data.hasOwnProperty('from')) { - obj['from'] = ApiClient.convertToType(data['from'], [MailThreadParticipant]); - - delete data['from']; - } - if (data.hasOwnProperty('to')) { - obj['to'] = ApiClient.convertToType(data['to'], [MailThreadParticipant]); - - delete data['to']; - } - if (data.hasOwnProperty('cc')) { - obj['cc'] = ApiClient.convertToType(data['cc'], [MailThreadParticipant]); - - delete data['cc']; - } - if (data.hasOwnProperty('bcc')) { - obj['bcc'] = ApiClient.convertToType(data['bcc'], [MailThreadParticipant]); - - delete data['bcc']; - } - if (data.hasOwnProperty('body_url')) { - obj['body_url'] = ApiClient.convertToType(data['body_url'], 'String'); - - delete data['body_url']; - } - if (data.hasOwnProperty('mail_thread_id')) { - obj['mail_thread_id'] = ApiClient.convertToType(data['mail_thread_id'], 'Number'); - - delete data['mail_thread_id']; - } - if (data.hasOwnProperty('draft')) { - obj['draft'] = ApiClient.convertToType(data['draft'], 'String'); - - delete data['draft']; - } - if (data.hasOwnProperty('has_body_flag')) { - obj['has_body_flag'] = ApiClient.convertToType(data['has_body_flag'], NumberBooleanDefault0); - - delete data['has_body_flag']; - } - if (data.hasOwnProperty('sent_flag')) { - obj['sent_flag'] = ApiClient.convertToType(data['sent_flag'], NumberBooleanDefault0); - - delete data['sent_flag']; - } - if (data.hasOwnProperty('sent_from_pipedrive_flag')) { - obj['sent_from_pipedrive_flag'] = ApiClient.convertToType(data['sent_from_pipedrive_flag'], NumberBooleanDefault0); - - delete data['sent_from_pipedrive_flag']; - } - if (data.hasOwnProperty('message_time')) { - obj['message_time'] = ApiClient.convertToType(data['message_time'], 'Date'); - - delete data['message_time']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * ID of the mail thread - * @member {Number} id - */ -BaseMailThreadMessages.prototype['id'] = undefined; - -/** - * The connection account ID - * @member {String} account_id - */ -BaseMailThreadMessages.prototype['account_id'] = undefined; - -/** - * ID of the user whom mail message will be assigned to - * @member {Number} user_id - */ -BaseMailThreadMessages.prototype['user_id'] = undefined; - -/** - * The subject - * @member {String} subject - */ -BaseMailThreadMessages.prototype['subject'] = undefined; - -/** - * A snippet - * @member {String} snippet - */ -BaseMailThreadMessages.prototype['snippet'] = undefined; - -/** - * Whether the mail thread is read - * @member {module:model/NumberBooleanDefault0} read_flag - */ -BaseMailThreadMessages.prototype['read_flag'] = undefined; - -/** - * Mail tracking status - * @member {String} mail_tracking_status - */ -BaseMailThreadMessages.prototype['mail_tracking_status'] = undefined; - -/** - * Whether the mail thread has an attachment - * @member {module:model/NumberBooleanDefault0} has_attachments_flag - */ -BaseMailThreadMessages.prototype['has_attachments_flag'] = undefined; - -/** - * Whether the mail thread has inline attachments - * @member {module:model/NumberBooleanDefault0} has_inline_attachments_flag - */ -BaseMailThreadMessages.prototype['has_inline_attachments_flag'] = undefined; - -/** - * Whether the mail thread has real attachments (which are not inline) - * @member {module:model/NumberBooleanDefault0} has_real_attachments_flag - */ -BaseMailThreadMessages.prototype['has_real_attachments_flag'] = undefined; - -/** - * Whether the mail thread is deleted - * @member {module:model/NumberBooleanDefault0} deleted_flag - */ -BaseMailThreadMessages.prototype['deleted_flag'] = undefined; - -/** - * Whether the mail thread is synced - * @member {module:model/NumberBooleanDefault0} synced_flag - */ -BaseMailThreadMessages.prototype['synced_flag'] = undefined; - -/** - * Whether one of the parties of the mail thread is Bcc - * @member {module:model/NumberBooleanDefault0} smart_bcc_flag - */ -BaseMailThreadMessages.prototype['smart_bcc_flag'] = undefined; - -/** - * Whether the link tracking of the mail thread is enabled - * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag - */ -BaseMailThreadMessages.prototype['mail_link_tracking_enabled_flag'] = undefined; - -/** - * Senders of the mail thread - * @member {Array.} from - */ -BaseMailThreadMessages.prototype['from'] = undefined; - -/** - * Recipients of the mail thread - * @member {Array.} to - */ -BaseMailThreadMessages.prototype['to'] = undefined; - -/** - * Participants of the Cc - * @member {Array.} cc - */ -BaseMailThreadMessages.prototype['cc'] = undefined; - -/** - * Participants of the Bcc - * @member {Array.} bcc - */ -BaseMailThreadMessages.prototype['bcc'] = undefined; - -/** - * A link to the mail thread message - * @member {String} body_url - */ -BaseMailThreadMessages.prototype['body_url'] = undefined; - -/** - * ID of the mail thread - * @member {Number} mail_thread_id - */ -BaseMailThreadMessages.prototype['mail_thread_id'] = undefined; - -/** - * If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. - * @member {String} draft - */ -BaseMailThreadMessages.prototype['draft'] = undefined; - -/** - * Whether the mail thread message has a body - * @member {module:model/NumberBooleanDefault0} has_body_flag - */ -BaseMailThreadMessages.prototype['has_body_flag'] = undefined; - -/** - * Whether the mail thread message is sent - * @member {module:model/NumberBooleanDefault0} sent_flag - */ -BaseMailThreadMessages.prototype['sent_flag'] = undefined; - -/** - * Whether the mail thread message is sent from Pipedrive - * @member {module:model/NumberBooleanDefault0} sent_from_pipedrive_flag - */ -BaseMailThreadMessages.prototype['sent_from_pipedrive_flag'] = undefined; - -/** - * The time when the mail message was received or created - * @member {Date} message_time - */ -BaseMailThreadMessages.prototype['message_time'] = undefined; - -/** - * The time when the mail message was inserted to database - * @member {Date} add_time - */ -BaseMailThreadMessages.prototype['add_time'] = undefined; - -/** - * The time when the mail message was updated in database received - * @member {Date} update_time - */ -BaseMailThreadMessages.prototype['update_time'] = undefined; - - -// Implement CommonMailThread interface: -/** - * ID of the mail thread - * @member {Number} id - */ -CommonMailThread.prototype['id'] = undefined; -/** - * The connection account ID - * @member {String} account_id - */ -CommonMailThread.prototype['account_id'] = undefined; -/** - * ID of the user whom mail message will be assigned to - * @member {Number} user_id - */ -CommonMailThread.prototype['user_id'] = undefined; -/** - * The subject - * @member {String} subject - */ -CommonMailThread.prototype['subject'] = undefined; -/** - * A snippet - * @member {String} snippet - */ -CommonMailThread.prototype['snippet'] = undefined; -/** - * Whether the mail thread is read - * @member {module:model/NumberBooleanDefault0} read_flag - */ -CommonMailThread.prototype['read_flag'] = undefined; -/** - * Mail tracking status - * @member {String} mail_tracking_status - */ -CommonMailThread.prototype['mail_tracking_status'] = undefined; -/** - * Whether the mail thread has an attachment - * @member {module:model/NumberBooleanDefault0} has_attachments_flag - */ -CommonMailThread.prototype['has_attachments_flag'] = undefined; -/** - * Whether the mail thread has inline attachments - * @member {module:model/NumberBooleanDefault0} has_inline_attachments_flag - */ -CommonMailThread.prototype['has_inline_attachments_flag'] = undefined; -/** - * Whether the mail thread has real attachments (which are not inline) - * @member {module:model/NumberBooleanDefault0} has_real_attachments_flag - */ -CommonMailThread.prototype['has_real_attachments_flag'] = undefined; -/** - * Whether the mail thread is deleted - * @member {module:model/NumberBooleanDefault0} deleted_flag - */ -CommonMailThread.prototype['deleted_flag'] = undefined; -/** - * Whether the mail thread is synced - * @member {module:model/NumberBooleanDefault0} synced_flag - */ -CommonMailThread.prototype['synced_flag'] = undefined; -/** - * Whether one of the parties of the mail thread is Bcc - * @member {module:model/NumberBooleanDefault0} smart_bcc_flag - */ -CommonMailThread.prototype['smart_bcc_flag'] = undefined; -/** - * Whether the link tracking of the mail thread is enabled - * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag - */ -CommonMailThread.prototype['mail_link_tracking_enabled_flag'] = undefined; -// Implement BaseMailThreadMessagesAllOf interface: -/** - * Senders of the mail thread - * @member {Array.} from - */ -BaseMailThreadMessagesAllOf.prototype['from'] = undefined; -/** - * Recipients of the mail thread - * @member {Array.} to - */ -BaseMailThreadMessagesAllOf.prototype['to'] = undefined; -/** - * Participants of the Cc - * @member {Array.} cc - */ -BaseMailThreadMessagesAllOf.prototype['cc'] = undefined; -/** - * Participants of the Bcc - * @member {Array.} bcc - */ -BaseMailThreadMessagesAllOf.prototype['bcc'] = undefined; -/** - * A link to the mail thread message - * @member {String} body_url - */ -BaseMailThreadMessagesAllOf.prototype['body_url'] = undefined; -/** - * ID of the mail thread - * @member {Number} mail_thread_id - */ -BaseMailThreadMessagesAllOf.prototype['mail_thread_id'] = undefined; -/** - * If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. - * @member {String} draft - */ -BaseMailThreadMessagesAllOf.prototype['draft'] = undefined; -/** - * Whether the mail thread message has a body - * @member {module:model/NumberBooleanDefault0} has_body_flag - */ -BaseMailThreadMessagesAllOf.prototype['has_body_flag'] = undefined; -/** - * Whether the mail thread message is sent - * @member {module:model/NumberBooleanDefault0} sent_flag - */ -BaseMailThreadMessagesAllOf.prototype['sent_flag'] = undefined; -/** - * Whether the mail thread message is sent from Pipedrive - * @member {module:model/NumberBooleanDefault0} sent_from_pipedrive_flag - */ -BaseMailThreadMessagesAllOf.prototype['sent_from_pipedrive_flag'] = undefined; -/** - * The time when the mail message was received or created - * @member {Date} message_time - */ -BaseMailThreadMessagesAllOf.prototype['message_time'] = undefined; -/** - * The time when the mail message was inserted to database - * @member {Date} add_time - */ -BaseMailThreadMessagesAllOf.prototype['add_time'] = undefined; -/** - * The time when the mail message was updated in database received - * @member {Date} update_time - */ -BaseMailThreadMessagesAllOf.prototype['update_time'] = undefined; - - - - -export default BaseMailThreadMessages; - diff --git a/src/model/BaseMailThreadMessagesAllOf.js b/src/model/BaseMailThreadMessagesAllOf.js deleted file mode 100644 index fa4cee41..00000000 --- a/src/model/BaseMailThreadMessagesAllOf.js +++ /dev/null @@ -1,213 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MailThreadParticipant from './MailThreadParticipant'; -import NumberBooleanDefault0 from './NumberBooleanDefault0'; - -/** - * The BaseMailThreadMessagesAllOf model module. - * @module model/BaseMailThreadMessagesAllOf - * @version 1.0.0 - */ -class BaseMailThreadMessagesAllOf { - /** - * Constructs a new BaseMailThreadMessagesAllOf. - * @alias module:model/BaseMailThreadMessagesAllOf - */ - constructor() { - - BaseMailThreadMessagesAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseMailThreadMessagesAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseMailThreadMessagesAllOf} obj Optional instance to populate. - * @return {module:model/BaseMailThreadMessagesAllOf} The populated BaseMailThreadMessagesAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseMailThreadMessagesAllOf(); - - if (data.hasOwnProperty('from')) { - obj['from'] = ApiClient.convertToType(data['from'], [MailThreadParticipant]); - - delete data['from']; - } - if (data.hasOwnProperty('to')) { - obj['to'] = ApiClient.convertToType(data['to'], [MailThreadParticipant]); - - delete data['to']; - } - if (data.hasOwnProperty('cc')) { - obj['cc'] = ApiClient.convertToType(data['cc'], [MailThreadParticipant]); - - delete data['cc']; - } - if (data.hasOwnProperty('bcc')) { - obj['bcc'] = ApiClient.convertToType(data['bcc'], [MailThreadParticipant]); - - delete data['bcc']; - } - if (data.hasOwnProperty('body_url')) { - obj['body_url'] = ApiClient.convertToType(data['body_url'], 'String'); - - delete data['body_url']; - } - if (data.hasOwnProperty('mail_thread_id')) { - obj['mail_thread_id'] = ApiClient.convertToType(data['mail_thread_id'], 'Number'); - - delete data['mail_thread_id']; - } - if (data.hasOwnProperty('draft')) { - obj['draft'] = ApiClient.convertToType(data['draft'], 'String'); - - delete data['draft']; - } - if (data.hasOwnProperty('has_body_flag')) { - obj['has_body_flag'] = ApiClient.convertToType(data['has_body_flag'], NumberBooleanDefault0); - - delete data['has_body_flag']; - } - if (data.hasOwnProperty('sent_flag')) { - obj['sent_flag'] = ApiClient.convertToType(data['sent_flag'], NumberBooleanDefault0); - - delete data['sent_flag']; - } - if (data.hasOwnProperty('sent_from_pipedrive_flag')) { - obj['sent_from_pipedrive_flag'] = ApiClient.convertToType(data['sent_from_pipedrive_flag'], NumberBooleanDefault0); - - delete data['sent_from_pipedrive_flag']; - } - if (data.hasOwnProperty('message_time')) { - obj['message_time'] = ApiClient.convertToType(data['message_time'], 'Date'); - - delete data['message_time']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Senders of the mail thread - * @member {Array.} from - */ -BaseMailThreadMessagesAllOf.prototype['from'] = undefined; - -/** - * Recipients of the mail thread - * @member {Array.} to - */ -BaseMailThreadMessagesAllOf.prototype['to'] = undefined; - -/** - * Participants of the Cc - * @member {Array.} cc - */ -BaseMailThreadMessagesAllOf.prototype['cc'] = undefined; - -/** - * Participants of the Bcc - * @member {Array.} bcc - */ -BaseMailThreadMessagesAllOf.prototype['bcc'] = undefined; - -/** - * A link to the mail thread message - * @member {String} body_url - */ -BaseMailThreadMessagesAllOf.prototype['body_url'] = undefined; - -/** - * ID of the mail thread - * @member {Number} mail_thread_id - */ -BaseMailThreadMessagesAllOf.prototype['mail_thread_id'] = undefined; - -/** - * If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. - * @member {String} draft - */ -BaseMailThreadMessagesAllOf.prototype['draft'] = undefined; - -/** - * Whether the mail thread message has a body - * @member {module:model/NumberBooleanDefault0} has_body_flag - */ -BaseMailThreadMessagesAllOf.prototype['has_body_flag'] = undefined; - -/** - * Whether the mail thread message is sent - * @member {module:model/NumberBooleanDefault0} sent_flag - */ -BaseMailThreadMessagesAllOf.prototype['sent_flag'] = undefined; - -/** - * Whether the mail thread message is sent from Pipedrive - * @member {module:model/NumberBooleanDefault0} sent_from_pipedrive_flag - */ -BaseMailThreadMessagesAllOf.prototype['sent_from_pipedrive_flag'] = undefined; - -/** - * The time when the mail message was received or created - * @member {Date} message_time - */ -BaseMailThreadMessagesAllOf.prototype['message_time'] = undefined; - -/** - * The time when the mail message was inserted to database - * @member {Date} add_time - */ -BaseMailThreadMessagesAllOf.prototype['add_time'] = undefined; - -/** - * The time when the mail message was updated in database received - * @member {Date} update_time - */ -BaseMailThreadMessagesAllOf.prototype['update_time'] = undefined; - - - - - - -export default BaseMailThreadMessagesAllOf; - diff --git a/src/model/BaseNote.js b/src/model/BaseNote.js deleted file mode 100644 index ea46d626..00000000 --- a/src/model/BaseNote.js +++ /dev/null @@ -1,266 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseNoteDealTitle from './BaseNoteDealTitle'; -import BaseNoteOrganization from './BaseNoteOrganization'; -import BaseNotePerson from './BaseNotePerson'; -import NoteCreatorUser from './NoteCreatorUser'; - -/** - * The BaseNote model module. - * @module model/BaseNote - * @version 1.0.0 - */ -class BaseNote { - /** - * Constructs a new BaseNote. - * @alias module:model/BaseNote - */ - constructor() { - - BaseNote.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseNote from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseNote} obj Optional instance to populate. - * @return {module:model/BaseNote} The populated BaseNote instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseNote(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - - delete data['content']; - } - if (data.hasOwnProperty('deal')) { - obj['deal'] = BaseNoteDealTitle.constructFromObject(data['deal']); - - delete data['deal']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('last_update_user_id')) { - obj['last_update_user_id'] = ApiClient.convertToType(data['last_update_user_id'], 'Number'); - - delete data['last_update_user_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = BaseNoteOrganization.constructFromObject(data['organization']); - - delete data['organization']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = BaseNotePerson.constructFromObject(data['person']); - - delete data['person']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('pinned_to_deal_flag')) { - obj['pinned_to_deal_flag'] = ApiClient.convertToType(data['pinned_to_deal_flag'], 'Boolean'); - - delete data['pinned_to_deal_flag']; - } - if (data.hasOwnProperty('pinned_to_organization_flag')) { - obj['pinned_to_organization_flag'] = ApiClient.convertToType(data['pinned_to_organization_flag'], 'Boolean'); - - delete data['pinned_to_organization_flag']; - } - if (data.hasOwnProperty('pinned_to_person_flag')) { - obj['pinned_to_person_flag'] = ApiClient.convertToType(data['pinned_to_person_flag'], 'Boolean'); - - delete data['pinned_to_person_flag']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('user')) { - obj['user'] = NoteCreatorUser.constructFromObject(data['user']); - - delete data['user']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the note - * @member {Number} id - */ -BaseNote.prototype['id'] = undefined; - -/** - * Whether the note is active or deleted - * @member {Boolean} active_flag - */ -BaseNote.prototype['active_flag'] = undefined; - -/** - * The creation date and time of the note - * @member {String} add_time - */ -BaseNote.prototype['add_time'] = undefined; - -/** - * The content of the note in HTML format. Subject to sanitization on the back-end. - * @member {String} content - */ -BaseNote.prototype['content'] = undefined; - -/** - * @member {module:model/BaseNoteDealTitle} deal - */ -BaseNote.prototype['deal'] = undefined; - -/** - * The ID of the lead the note is attached to - * @member {String} lead_id - */ -BaseNote.prototype['lead_id'] = undefined; - -/** - * The ID of the deal the note is attached to - * @member {Number} deal_id - */ -BaseNote.prototype['deal_id'] = undefined; - -/** - * The ID of the user who last updated the note - * @member {Number} last_update_user_id - */ -BaseNote.prototype['last_update_user_id'] = undefined; - -/** - * The ID of the organization the note is attached to - * @member {Number} org_id - */ -BaseNote.prototype['org_id'] = undefined; - -/** - * @member {module:model/BaseNoteOrganization} organization - */ -BaseNote.prototype['organization'] = undefined; - -/** - * @member {module:model/BaseNotePerson} person - */ -BaseNote.prototype['person'] = undefined; - -/** - * The ID of the person the note is attached to - * @member {Number} person_id - */ -BaseNote.prototype['person_id'] = undefined; - -/** - * If true, the results are filtered by note to deal pinning state - * @member {Boolean} pinned_to_deal_flag - */ -BaseNote.prototype['pinned_to_deal_flag'] = undefined; - -/** - * If true, the results are filtered by note to organization pinning state - * @member {Boolean} pinned_to_organization_flag - */ -BaseNote.prototype['pinned_to_organization_flag'] = undefined; - -/** - * If true, the results are filtered by note to person pinning state - * @member {Boolean} pinned_to_person_flag - */ -BaseNote.prototype['pinned_to_person_flag'] = undefined; - -/** - * The last updated date and time of the note - * @member {String} update_time - */ -BaseNote.prototype['update_time'] = undefined; - -/** - * @member {module:model/NoteCreatorUser} user - */ -BaseNote.prototype['user'] = undefined; - -/** - * The ID of the note creator - * @member {Number} user_id - */ -BaseNote.prototype['user_id'] = undefined; - - - - - - -export default BaseNote; - diff --git a/src/model/BaseNoteDealTitle.js b/src/model/BaseNoteDealTitle.js deleted file mode 100644 index 4440405c..00000000 --- a/src/model/BaseNoteDealTitle.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseNoteDealTitle model module. - * @module model/BaseNoteDealTitle - * @version 1.0.0 - */ -class BaseNoteDealTitle { - /** - * Constructs a new BaseNoteDealTitle. - * The deal this note is attached to - * @alias module:model/BaseNoteDealTitle - */ - constructor() { - - BaseNoteDealTitle.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseNoteDealTitle from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseNoteDealTitle} obj Optional instance to populate. - * @return {module:model/BaseNoteDealTitle} The populated BaseNoteDealTitle instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseNoteDealTitle(); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the deal this note is attached to - * @member {String} title - */ -BaseNoteDealTitle.prototype['title'] = undefined; - - - - - - -export default BaseNoteDealTitle; - diff --git a/src/model/BaseNoteOrganization.js b/src/model/BaseNoteOrganization.js deleted file mode 100644 index 56c3a544..00000000 --- a/src/model/BaseNoteOrganization.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseNoteOrganization model module. - * @module model/BaseNoteOrganization - * @version 1.0.0 - */ -class BaseNoteOrganization { - /** - * Constructs a new BaseNoteOrganization. - * The organization the note is attached to - * @alias module:model/BaseNoteOrganization - */ - constructor() { - - BaseNoteOrganization.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseNoteOrganization from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseNoteOrganization} obj Optional instance to populate. - * @return {module:model/BaseNoteOrganization} The populated BaseNoteOrganization instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseNoteOrganization(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the organization the note is attached to - * @member {String} name - */ -BaseNoteOrganization.prototype['name'] = undefined; - - - - - - -export default BaseNoteOrganization; - diff --git a/src/model/BaseNotePerson.js b/src/model/BaseNotePerson.js deleted file mode 100644 index 04f8de11..00000000 --- a/src/model/BaseNotePerson.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseNotePerson model module. - * @module model/BaseNotePerson - * @version 1.0.0 - */ -class BaseNotePerson { - /** - * Constructs a new BaseNotePerson. - * The person the note is attached to - * @alias module:model/BaseNotePerson - */ - constructor() { - - BaseNotePerson.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseNotePerson from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseNotePerson} obj Optional instance to populate. - * @return {module:model/BaseNotePerson} The populated BaseNotePerson instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseNotePerson(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the person the note is attached to - * @member {String} name - */ -BaseNotePerson.prototype['name'] = undefined; - - - - - - -export default BaseNotePerson; - diff --git a/src/model/BaseOrganizationItem.js b/src/model/BaseOrganizationItem.js deleted file mode 100644 index 804f8dfd..00000000 --- a/src/model/BaseOrganizationItem.js +++ /dev/null @@ -1,826 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalBaseOrganizationItemInfo from './AdditionalBaseOrganizationItemInfo'; -import BaseOrganizationItemFields from './BaseOrganizationItemFields'; -import Owner from './Owner'; -import PictureDataWithValue from './PictureDataWithValue'; - -/** - * The BaseOrganizationItem model module. - * @module model/BaseOrganizationItem - * @version 1.0.0 - */ -class BaseOrganizationItem { - /** - * Constructs a new BaseOrganizationItem. - * @alias module:model/BaseOrganizationItem - * @implements module:model/BaseOrganizationItemFields - * @implements module:model/AdditionalBaseOrganizationItemInfo - */ - constructor() { - BaseOrganizationItemFields.initialize(this);AdditionalBaseOrganizationItemInfo.initialize(this); - BaseOrganizationItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseOrganizationItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseOrganizationItem} obj Optional instance to populate. - * @return {module:model/BaseOrganizationItem} The populated BaseOrganizationItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseOrganizationItem(); - BaseOrganizationItemFields.constructFromObject(data, obj); - AdditionalBaseOrganizationItemInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = Owner.constructFromObject(data['owner_id']); - - delete data['owner_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('picture_id')) { - obj['picture_id'] = PictureDataWithValue.constructFromObject(data['picture_id']); - - delete data['picture_id']; - } - if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String'); - - delete data['country_code']; - } - if (data.hasOwnProperty('first_char')) { - obj['first_char'] = ApiClient.convertToType(data['first_char'], 'String'); - - delete data['first_char']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('address_subpremise')) { - obj['address_subpremise'] = ApiClient.convertToType(data['address_subpremise'], 'String'); - - delete data['address_subpremise']; - } - if (data.hasOwnProperty('address_street_number')) { - obj['address_street_number'] = ApiClient.convertToType(data['address_street_number'], 'String'); - - delete data['address_street_number']; - } - if (data.hasOwnProperty('address_route')) { - obj['address_route'] = ApiClient.convertToType(data['address_route'], 'String'); - - delete data['address_route']; - } - if (data.hasOwnProperty('address_sublocality')) { - obj['address_sublocality'] = ApiClient.convertToType(data['address_sublocality'], 'String'); - - delete data['address_sublocality']; - } - if (data.hasOwnProperty('address_locality')) { - obj['address_locality'] = ApiClient.convertToType(data['address_locality'], 'String'); - - delete data['address_locality']; - } - if (data.hasOwnProperty('address_admin_area_level_1')) { - obj['address_admin_area_level_1'] = ApiClient.convertToType(data['address_admin_area_level_1'], 'String'); - - delete data['address_admin_area_level_1']; - } - if (data.hasOwnProperty('address_admin_area_level_2')) { - obj['address_admin_area_level_2'] = ApiClient.convertToType(data['address_admin_area_level_2'], 'String'); - - delete data['address_admin_area_level_2']; - } - if (data.hasOwnProperty('address_country')) { - obj['address_country'] = ApiClient.convertToType(data['address_country'], 'String'); - - delete data['address_country']; - } - if (data.hasOwnProperty('address_postal_code')) { - obj['address_postal_code'] = ApiClient.convertToType(data['address_postal_code'], 'String'); - - delete data['address_postal_code']; - } - if (data.hasOwnProperty('address_formatted_address')) { - obj['address_formatted_address'] = ApiClient.convertToType(data['address_formatted_address'], 'String'); - - delete data['address_formatted_address']; - } - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization - * @member {Number} id - */ -BaseOrganizationItem.prototype['id'] = undefined; - -/** - * The ID of the company related to the organization - * @member {Number} company_id - */ -BaseOrganizationItem.prototype['company_id'] = undefined; - -/** - * @member {module:model/Owner} owner_id - */ -BaseOrganizationItem.prototype['owner_id'] = undefined; - -/** - * The name of the organization - * @member {String} name - */ -BaseOrganizationItem.prototype['name'] = undefined; - -/** - * Whether the organization is active or not - * @member {Boolean} active_flag - */ -BaseOrganizationItem.prototype['active_flag'] = undefined; - -/** - * @member {module:model/PictureDataWithValue} picture_id - */ -BaseOrganizationItem.prototype['picture_id'] = undefined; - -/** - * The country code of the organization - * @member {String} country_code - */ -BaseOrganizationItem.prototype['country_code'] = undefined; - -/** - * The first character of the organization name - * @member {String} first_char - */ -BaseOrganizationItem.prototype['first_char'] = undefined; - -/** - * The creation date and time of the organization - * @member {String} add_time - */ -BaseOrganizationItem.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the organization - * @member {String} update_time - */ -BaseOrganizationItem.prototype['update_time'] = undefined; - -/** - * The visibility group ID of who can see the organization - * @member {String} visible_to - */ -BaseOrganizationItem.prototype['visible_to'] = undefined; - -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BaseOrganizationItem.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BaseOrganizationItem.prototype['label_ids'] = undefined; - -/** - * The name of the organization owner - * @member {String} owner_name - */ -BaseOrganizationItem.prototype['owner_name'] = undefined; - -/** - * The BCC email associated with the organization - * @member {String} cc_email - */ -BaseOrganizationItem.prototype['cc_email'] = undefined; - -/** - * The count of email messages related to the organization - * @member {Number} email_messages_count - */ -BaseOrganizationItem.prototype['email_messages_count'] = undefined; - -/** - * The count of persons related to the organization - * @member {Number} people_count - */ -BaseOrganizationItem.prototype['people_count'] = undefined; - -/** - * The count of activities related to the organization - * @member {Number} activities_count - */ -BaseOrganizationItem.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the organization - * @member {Number} done_activities_count - */ -BaseOrganizationItem.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the organization - * @member {Number} undone_activities_count - */ -BaseOrganizationItem.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the organization - * @member {Number} files_count - */ -BaseOrganizationItem.prototype['files_count'] = undefined; - -/** - * The count of notes related to the organization - * @member {Number} notes_count - */ -BaseOrganizationItem.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the organization - * @member {Number} followers_count - */ -BaseOrganizationItem.prototype['followers_count'] = undefined; - -/** - * The full address of the organization - * @member {String} address - */ -BaseOrganizationItem.prototype['address'] = undefined; - -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -BaseOrganizationItem.prototype['address_subpremise'] = undefined; - -/** - * The street number of the organization location - * @member {String} address_street_number - */ -BaseOrganizationItem.prototype['address_street_number'] = undefined; - -/** - * The route of the organization location - * @member {String} address_route - */ -BaseOrganizationItem.prototype['address_route'] = undefined; - -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -BaseOrganizationItem.prototype['address_sublocality'] = undefined; - -/** - * The locality of the organization location - * @member {String} address_locality - */ -BaseOrganizationItem.prototype['address_locality'] = undefined; - -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -BaseOrganizationItem.prototype['address_admin_area_level_1'] = undefined; - -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -BaseOrganizationItem.prototype['address_admin_area_level_2'] = undefined; - -/** - * The country of the organization location - * @member {String} address_country - */ -BaseOrganizationItem.prototype['address_country'] = undefined; - -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -BaseOrganizationItem.prototype['address_postal_code'] = undefined; - -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -BaseOrganizationItem.prototype['address_formatted_address'] = undefined; - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -BaseOrganizationItem.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -BaseOrganizationItem.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -BaseOrganizationItem.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -BaseOrganizationItem.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -BaseOrganizationItem.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -BaseOrganizationItem.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -BaseOrganizationItem.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -BaseOrganizationItem.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -BaseOrganizationItem.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -BaseOrganizationItem.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -BaseOrganizationItem.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -BaseOrganizationItem.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -BaseOrganizationItem.prototype['last_activity_date'] = undefined; - - -// Implement BaseOrganizationItemFields interface: -/** - * The ID of the organization - * @member {Number} id - */ -BaseOrganizationItemFields.prototype['id'] = undefined; -/** - * The ID of the company related to the organization - * @member {Number} company_id - */ -BaseOrganizationItemFields.prototype['company_id'] = undefined; -/** - * @member {module:model/Owner} owner_id - */ -BaseOrganizationItemFields.prototype['owner_id'] = undefined; -/** - * The name of the organization - * @member {String} name - */ -BaseOrganizationItemFields.prototype['name'] = undefined; -/** - * Whether the organization is active or not - * @member {Boolean} active_flag - */ -BaseOrganizationItemFields.prototype['active_flag'] = undefined; -/** - * @member {module:model/PictureDataWithValue} picture_id - */ -BaseOrganizationItemFields.prototype['picture_id'] = undefined; -/** - * The country code of the organization - * @member {String} country_code - */ -BaseOrganizationItemFields.prototype['country_code'] = undefined; -/** - * The first character of the organization name - * @member {String} first_char - */ -BaseOrganizationItemFields.prototype['first_char'] = undefined; -/** - * The creation date and time of the organization - * @member {String} add_time - */ -BaseOrganizationItemFields.prototype['add_time'] = undefined; -/** - * The last updated date and time of the organization - * @member {String} update_time - */ -BaseOrganizationItemFields.prototype['update_time'] = undefined; -/** - * The visibility group ID of who can see the organization - * @member {String} visible_to - */ -BaseOrganizationItemFields.prototype['visible_to'] = undefined; -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BaseOrganizationItemFields.prototype['label'] = undefined; -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BaseOrganizationItemFields.prototype['label_ids'] = undefined; -/** - * The name of the organization owner - * @member {String} owner_name - */ -BaseOrganizationItemFields.prototype['owner_name'] = undefined; -/** - * The BCC email associated with the organization - * @member {String} cc_email - */ -BaseOrganizationItemFields.prototype['cc_email'] = undefined; -// Implement AdditionalBaseOrganizationItemInfo interface: -/** - * The count of email messages related to the organization - * @member {Number} email_messages_count - */ -AdditionalBaseOrganizationItemInfo.prototype['email_messages_count'] = undefined; -/** - * The count of persons related to the organization - * @member {Number} people_count - */ -AdditionalBaseOrganizationItemInfo.prototype['people_count'] = undefined; -/** - * The count of activities related to the organization - * @member {Number} activities_count - */ -AdditionalBaseOrganizationItemInfo.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the organization - * @member {Number} done_activities_count - */ -AdditionalBaseOrganizationItemInfo.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the organization - * @member {Number} undone_activities_count - */ -AdditionalBaseOrganizationItemInfo.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the organization - * @member {Number} files_count - */ -AdditionalBaseOrganizationItemInfo.prototype['files_count'] = undefined; -/** - * The count of notes related to the organization - * @member {Number} notes_count - */ -AdditionalBaseOrganizationItemInfo.prototype['notes_count'] = undefined; -/** - * The count of followers related to the organization - * @member {Number} followers_count - */ -AdditionalBaseOrganizationItemInfo.prototype['followers_count'] = undefined; -/** - * The full address of the organization - * @member {String} address - */ -AdditionalBaseOrganizationItemInfo.prototype['address'] = undefined; -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -AdditionalBaseOrganizationItemInfo.prototype['address_subpremise'] = undefined; -/** - * The street number of the organization location - * @member {String} address_street_number - */ -AdditionalBaseOrganizationItemInfo.prototype['address_street_number'] = undefined; -/** - * The route of the organization location - * @member {String} address_route - */ -AdditionalBaseOrganizationItemInfo.prototype['address_route'] = undefined; -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -AdditionalBaseOrganizationItemInfo.prototype['address_sublocality'] = undefined; -/** - * The locality of the organization location - * @member {String} address_locality - */ -AdditionalBaseOrganizationItemInfo.prototype['address_locality'] = undefined; -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -AdditionalBaseOrganizationItemInfo.prototype['address_admin_area_level_1'] = undefined; -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -AdditionalBaseOrganizationItemInfo.prototype['address_admin_area_level_2'] = undefined; -/** - * The country of the organization location - * @member {String} address_country - */ -AdditionalBaseOrganizationItemInfo.prototype['address_country'] = undefined; -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -AdditionalBaseOrganizationItemInfo.prototype['address_postal_code'] = undefined; -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -AdditionalBaseOrganizationItemInfo.prototype['address_formatted_address'] = undefined; -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -AdditionalBaseOrganizationItemInfo.prototype['related_lost_deals_count'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -AdditionalBaseOrganizationItemInfo.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -AdditionalBaseOrganizationItemInfo.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -AdditionalBaseOrganizationItemInfo.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -AdditionalBaseOrganizationItemInfo.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -AdditionalBaseOrganizationItemInfo.prototype['last_activity_date'] = undefined; - - - - -export default BaseOrganizationItem; - diff --git a/src/model/BaseOrganizationItemFields.js b/src/model/BaseOrganizationItemFields.js deleted file mode 100644 index 6920d3de..00000000 --- a/src/model/BaseOrganizationItemFields.js +++ /dev/null @@ -1,233 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Owner from './Owner'; -import PictureDataWithValue from './PictureDataWithValue'; - -/** - * The BaseOrganizationItemFields model module. - * @module model/BaseOrganizationItemFields - * @version 1.0.0 - */ -class BaseOrganizationItemFields { - /** - * Constructs a new BaseOrganizationItemFields. - * @alias module:model/BaseOrganizationItemFields - */ - constructor() { - - BaseOrganizationItemFields.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseOrganizationItemFields from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseOrganizationItemFields} obj Optional instance to populate. - * @return {module:model/BaseOrganizationItemFields} The populated BaseOrganizationItemFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseOrganizationItemFields(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = Owner.constructFromObject(data['owner_id']); - - delete data['owner_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('picture_id')) { - obj['picture_id'] = PictureDataWithValue.constructFromObject(data['picture_id']); - - delete data['picture_id']; - } - if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String'); - - delete data['country_code']; - } - if (data.hasOwnProperty('first_char')) { - obj['first_char'] = ApiClient.convertToType(data['first_char'], 'String'); - - delete data['first_char']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization - * @member {Number} id - */ -BaseOrganizationItemFields.prototype['id'] = undefined; - -/** - * The ID of the company related to the organization - * @member {Number} company_id - */ -BaseOrganizationItemFields.prototype['company_id'] = undefined; - -/** - * @member {module:model/Owner} owner_id - */ -BaseOrganizationItemFields.prototype['owner_id'] = undefined; - -/** - * The name of the organization - * @member {String} name - */ -BaseOrganizationItemFields.prototype['name'] = undefined; - -/** - * Whether the organization is active or not - * @member {Boolean} active_flag - */ -BaseOrganizationItemFields.prototype['active_flag'] = undefined; - -/** - * @member {module:model/PictureDataWithValue} picture_id - */ -BaseOrganizationItemFields.prototype['picture_id'] = undefined; - -/** - * The country code of the organization - * @member {String} country_code - */ -BaseOrganizationItemFields.prototype['country_code'] = undefined; - -/** - * The first character of the organization name - * @member {String} first_char - */ -BaseOrganizationItemFields.prototype['first_char'] = undefined; - -/** - * The creation date and time of the organization - * @member {String} add_time - */ -BaseOrganizationItemFields.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the organization - * @member {String} update_time - */ -BaseOrganizationItemFields.prototype['update_time'] = undefined; - -/** - * The visibility group ID of who can see the organization - * @member {String} visible_to - */ -BaseOrganizationItemFields.prototype['visible_to'] = undefined; - -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BaseOrganizationItemFields.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BaseOrganizationItemFields.prototype['label_ids'] = undefined; - -/** - * The name of the organization owner - * @member {String} owner_name - */ -BaseOrganizationItemFields.prototype['owner_name'] = undefined; - -/** - * The BCC email associated with the organization - * @member {String} cc_email - */ -BaseOrganizationItemFields.prototype['cc_email'] = undefined; - - - - - - -export default BaseOrganizationItemFields; - diff --git a/src/model/BaseOrganizationItemWithEditNameFlag.js b/src/model/BaseOrganizationItemWithEditNameFlag.js deleted file mode 100644 index be4a6692..00000000 --- a/src/model/BaseOrganizationItemWithEditNameFlag.js +++ /dev/null @@ -1,842 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseOrganizationItem from './BaseOrganizationItem'; -import BaseOrganizationItemWithEditNameFlagAllOf from './BaseOrganizationItemWithEditNameFlagAllOf'; -import Owner from './Owner'; -import PictureDataWithValue from './PictureDataWithValue'; - -/** - * The BaseOrganizationItemWithEditNameFlag model module. - * @module model/BaseOrganizationItemWithEditNameFlag - * @version 1.0.0 - */ -class BaseOrganizationItemWithEditNameFlag { - /** - * Constructs a new BaseOrganizationItemWithEditNameFlag. - * @alias module:model/BaseOrganizationItemWithEditNameFlag - * @implements module:model/BaseOrganizationItem - * @implements module:model/BaseOrganizationItemWithEditNameFlagAllOf - */ - constructor() { - BaseOrganizationItem.initialize(this);BaseOrganizationItemWithEditNameFlagAllOf.initialize(this); - BaseOrganizationItemWithEditNameFlag.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseOrganizationItemWithEditNameFlag from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseOrganizationItemWithEditNameFlag} obj Optional instance to populate. - * @return {module:model/BaseOrganizationItemWithEditNameFlag} The populated BaseOrganizationItemWithEditNameFlag instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseOrganizationItemWithEditNameFlag(); - BaseOrganizationItem.constructFromObject(data, obj); - BaseOrganizationItemWithEditNameFlagAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = Owner.constructFromObject(data['owner_id']); - - delete data['owner_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('picture_id')) { - obj['picture_id'] = PictureDataWithValue.constructFromObject(data['picture_id']); - - delete data['picture_id']; - } - if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String'); - - delete data['country_code']; - } - if (data.hasOwnProperty('first_char')) { - obj['first_char'] = ApiClient.convertToType(data['first_char'], 'String'); - - delete data['first_char']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('address_subpremise')) { - obj['address_subpremise'] = ApiClient.convertToType(data['address_subpremise'], 'String'); - - delete data['address_subpremise']; - } - if (data.hasOwnProperty('address_street_number')) { - obj['address_street_number'] = ApiClient.convertToType(data['address_street_number'], 'String'); - - delete data['address_street_number']; - } - if (data.hasOwnProperty('address_route')) { - obj['address_route'] = ApiClient.convertToType(data['address_route'], 'String'); - - delete data['address_route']; - } - if (data.hasOwnProperty('address_sublocality')) { - obj['address_sublocality'] = ApiClient.convertToType(data['address_sublocality'], 'String'); - - delete data['address_sublocality']; - } - if (data.hasOwnProperty('address_locality')) { - obj['address_locality'] = ApiClient.convertToType(data['address_locality'], 'String'); - - delete data['address_locality']; - } - if (data.hasOwnProperty('address_admin_area_level_1')) { - obj['address_admin_area_level_1'] = ApiClient.convertToType(data['address_admin_area_level_1'], 'String'); - - delete data['address_admin_area_level_1']; - } - if (data.hasOwnProperty('address_admin_area_level_2')) { - obj['address_admin_area_level_2'] = ApiClient.convertToType(data['address_admin_area_level_2'], 'String'); - - delete data['address_admin_area_level_2']; - } - if (data.hasOwnProperty('address_country')) { - obj['address_country'] = ApiClient.convertToType(data['address_country'], 'String'); - - delete data['address_country']; - } - if (data.hasOwnProperty('address_postal_code')) { - obj['address_postal_code'] = ApiClient.convertToType(data['address_postal_code'], 'String'); - - delete data['address_postal_code']; - } - if (data.hasOwnProperty('address_formatted_address')) { - obj['address_formatted_address'] = ApiClient.convertToType(data['address_formatted_address'], 'String'); - - delete data['address_formatted_address']; - } - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - if (data.hasOwnProperty('edit_name')) { - obj['edit_name'] = ApiClient.convertToType(data['edit_name'], 'Boolean'); - - delete data['edit_name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization - * @member {Number} id - */ -BaseOrganizationItemWithEditNameFlag.prototype['id'] = undefined; - -/** - * The ID of the company related to the organization - * @member {Number} company_id - */ -BaseOrganizationItemWithEditNameFlag.prototype['company_id'] = undefined; - -/** - * @member {module:model/Owner} owner_id - */ -BaseOrganizationItemWithEditNameFlag.prototype['owner_id'] = undefined; - -/** - * The name of the organization - * @member {String} name - */ -BaseOrganizationItemWithEditNameFlag.prototype['name'] = undefined; - -/** - * Whether the organization is active or not - * @member {Boolean} active_flag - */ -BaseOrganizationItemWithEditNameFlag.prototype['active_flag'] = undefined; - -/** - * @member {module:model/PictureDataWithValue} picture_id - */ -BaseOrganizationItemWithEditNameFlag.prototype['picture_id'] = undefined; - -/** - * The country code of the organization - * @member {String} country_code - */ -BaseOrganizationItemWithEditNameFlag.prototype['country_code'] = undefined; - -/** - * The first character of the organization name - * @member {String} first_char - */ -BaseOrganizationItemWithEditNameFlag.prototype['first_char'] = undefined; - -/** - * The creation date and time of the organization - * @member {String} add_time - */ -BaseOrganizationItemWithEditNameFlag.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the organization - * @member {String} update_time - */ -BaseOrganizationItemWithEditNameFlag.prototype['update_time'] = undefined; - -/** - * The visibility group ID of who can see the organization - * @member {String} visible_to - */ -BaseOrganizationItemWithEditNameFlag.prototype['visible_to'] = undefined; - -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BaseOrganizationItemWithEditNameFlag.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BaseOrganizationItemWithEditNameFlag.prototype['label_ids'] = undefined; - -/** - * The name of the organization owner - * @member {String} owner_name - */ -BaseOrganizationItemWithEditNameFlag.prototype['owner_name'] = undefined; - -/** - * The BCC email associated with the organization - * @member {String} cc_email - */ -BaseOrganizationItemWithEditNameFlag.prototype['cc_email'] = undefined; - -/** - * The count of email messages related to the organization - * @member {Number} email_messages_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['email_messages_count'] = undefined; - -/** - * The count of persons related to the organization - * @member {Number} people_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['people_count'] = undefined; - -/** - * The count of activities related to the organization - * @member {Number} activities_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the organization - * @member {Number} done_activities_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the organization - * @member {Number} undone_activities_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the organization - * @member {Number} files_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['files_count'] = undefined; - -/** - * The count of notes related to the organization - * @member {Number} notes_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the organization - * @member {Number} followers_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['followers_count'] = undefined; - -/** - * The full address of the organization - * @member {String} address - */ -BaseOrganizationItemWithEditNameFlag.prototype['address'] = undefined; - -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_subpremise'] = undefined; - -/** - * The street number of the organization location - * @member {String} address_street_number - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_street_number'] = undefined; - -/** - * The route of the organization location - * @member {String} address_route - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_route'] = undefined; - -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_sublocality'] = undefined; - -/** - * The locality of the organization location - * @member {String} address_locality - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_locality'] = undefined; - -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_admin_area_level_1'] = undefined; - -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_admin_area_level_2'] = undefined; - -/** - * The country of the organization location - * @member {String} address_country - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_country'] = undefined; - -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_postal_code'] = undefined; - -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_formatted_address'] = undefined; - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -BaseOrganizationItemWithEditNameFlag.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -BaseOrganizationItemWithEditNameFlag.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -BaseOrganizationItemWithEditNameFlag.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -BaseOrganizationItemWithEditNameFlag.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -BaseOrganizationItemWithEditNameFlag.prototype['last_activity_date'] = undefined; - -/** - * If the company ID of the organization and company ID of the request is same or not - * @member {Boolean} edit_name - */ -BaseOrganizationItemWithEditNameFlag.prototype['edit_name'] = undefined; - - -// Implement BaseOrganizationItem interface: -/** - * The ID of the organization - * @member {Number} id - */ -BaseOrganizationItem.prototype['id'] = undefined; -/** - * The ID of the company related to the organization - * @member {Number} company_id - */ -BaseOrganizationItem.prototype['company_id'] = undefined; -/** - * @member {module:model/Owner} owner_id - */ -BaseOrganizationItem.prototype['owner_id'] = undefined; -/** - * The name of the organization - * @member {String} name - */ -BaseOrganizationItem.prototype['name'] = undefined; -/** - * Whether the organization is active or not - * @member {Boolean} active_flag - */ -BaseOrganizationItem.prototype['active_flag'] = undefined; -/** - * @member {module:model/PictureDataWithValue} picture_id - */ -BaseOrganizationItem.prototype['picture_id'] = undefined; -/** - * The country code of the organization - * @member {String} country_code - */ -BaseOrganizationItem.prototype['country_code'] = undefined; -/** - * The first character of the organization name - * @member {String} first_char - */ -BaseOrganizationItem.prototype['first_char'] = undefined; -/** - * The creation date and time of the organization - * @member {String} add_time - */ -BaseOrganizationItem.prototype['add_time'] = undefined; -/** - * The last updated date and time of the organization - * @member {String} update_time - */ -BaseOrganizationItem.prototype['update_time'] = undefined; -/** - * The visibility group ID of who can see the organization - * @member {String} visible_to - */ -BaseOrganizationItem.prototype['visible_to'] = undefined; -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BaseOrganizationItem.prototype['label'] = undefined; -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BaseOrganizationItem.prototype['label_ids'] = undefined; -/** - * The name of the organization owner - * @member {String} owner_name - */ -BaseOrganizationItem.prototype['owner_name'] = undefined; -/** - * The BCC email associated with the organization - * @member {String} cc_email - */ -BaseOrganizationItem.prototype['cc_email'] = undefined; -/** - * The count of email messages related to the organization - * @member {Number} email_messages_count - */ -BaseOrganizationItem.prototype['email_messages_count'] = undefined; -/** - * The count of persons related to the organization - * @member {Number} people_count - */ -BaseOrganizationItem.prototype['people_count'] = undefined; -/** - * The count of activities related to the organization - * @member {Number} activities_count - */ -BaseOrganizationItem.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the organization - * @member {Number} done_activities_count - */ -BaseOrganizationItem.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the organization - * @member {Number} undone_activities_count - */ -BaseOrganizationItem.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the organization - * @member {Number} files_count - */ -BaseOrganizationItem.prototype['files_count'] = undefined; -/** - * The count of notes related to the organization - * @member {Number} notes_count - */ -BaseOrganizationItem.prototype['notes_count'] = undefined; -/** - * The count of followers related to the organization - * @member {Number} followers_count - */ -BaseOrganizationItem.prototype['followers_count'] = undefined; -/** - * The full address of the organization - * @member {String} address - */ -BaseOrganizationItem.prototype['address'] = undefined; -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -BaseOrganizationItem.prototype['address_subpremise'] = undefined; -/** - * The street number of the organization location - * @member {String} address_street_number - */ -BaseOrganizationItem.prototype['address_street_number'] = undefined; -/** - * The route of the organization location - * @member {String} address_route - */ -BaseOrganizationItem.prototype['address_route'] = undefined; -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -BaseOrganizationItem.prototype['address_sublocality'] = undefined; -/** - * The locality of the organization location - * @member {String} address_locality - */ -BaseOrganizationItem.prototype['address_locality'] = undefined; -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -BaseOrganizationItem.prototype['address_admin_area_level_1'] = undefined; -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -BaseOrganizationItem.prototype['address_admin_area_level_2'] = undefined; -/** - * The country of the organization location - * @member {String} address_country - */ -BaseOrganizationItem.prototype['address_country'] = undefined; -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -BaseOrganizationItem.prototype['address_postal_code'] = undefined; -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -BaseOrganizationItem.prototype['address_formatted_address'] = undefined; -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -BaseOrganizationItem.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -BaseOrganizationItem.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -BaseOrganizationItem.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -BaseOrganizationItem.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -BaseOrganizationItem.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -BaseOrganizationItem.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -BaseOrganizationItem.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -BaseOrganizationItem.prototype['related_lost_deals_count'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -BaseOrganizationItem.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -BaseOrganizationItem.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -BaseOrganizationItem.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -BaseOrganizationItem.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -BaseOrganizationItem.prototype['last_activity_date'] = undefined; -// Implement BaseOrganizationItemWithEditNameFlagAllOf interface: -/** - * If the company ID of the organization and company ID of the request is same or not - * @member {Boolean} edit_name - */ -BaseOrganizationItemWithEditNameFlagAllOf.prototype['edit_name'] = undefined; - - - - -export default BaseOrganizationItemWithEditNameFlag; - diff --git a/src/model/BaseOrganizationItemWithEditNameFlagAllOf.js b/src/model/BaseOrganizationItemWithEditNameFlagAllOf.js deleted file mode 100644 index 950141f5..00000000 --- a/src/model/BaseOrganizationItemWithEditNameFlagAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseOrganizationItemWithEditNameFlagAllOf model module. - * @module model/BaseOrganizationItemWithEditNameFlagAllOf - * @version 1.0.0 - */ -class BaseOrganizationItemWithEditNameFlagAllOf { - /** - * Constructs a new BaseOrganizationItemWithEditNameFlagAllOf. - * @alias module:model/BaseOrganizationItemWithEditNameFlagAllOf - */ - constructor() { - - BaseOrganizationItemWithEditNameFlagAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseOrganizationItemWithEditNameFlagAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseOrganizationItemWithEditNameFlagAllOf} obj Optional instance to populate. - * @return {module:model/BaseOrganizationItemWithEditNameFlagAllOf} The populated BaseOrganizationItemWithEditNameFlagAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseOrganizationItemWithEditNameFlagAllOf(); - - if (data.hasOwnProperty('edit_name')) { - obj['edit_name'] = ApiClient.convertToType(data['edit_name'], 'Boolean'); - - delete data['edit_name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the company ID of the organization and company ID of the request is same or not - * @member {Boolean} edit_name - */ -BaseOrganizationItemWithEditNameFlagAllOf.prototype['edit_name'] = undefined; - - - - - - -export default BaseOrganizationItemWithEditNameFlagAllOf; - diff --git a/src/model/BaseOrganizationRelationshipItem.js b/src/model/BaseOrganizationRelationshipItem.js deleted file mode 100644 index 22b15704..00000000 --- a/src/model/BaseOrganizationRelationshipItem.js +++ /dev/null @@ -1,144 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelationshipOrganizationInfoItem from './RelationshipOrganizationInfoItem'; - -/** - * The BaseOrganizationRelationshipItem model module. - * @module model/BaseOrganizationRelationshipItem - * @version 1.0.0 - */ -class BaseOrganizationRelationshipItem { - /** - * Constructs a new BaseOrganizationRelationshipItem. - * @alias module:model/BaseOrganizationRelationshipItem - */ - constructor() { - - BaseOrganizationRelationshipItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseOrganizationRelationshipItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseOrganizationRelationshipItem} obj Optional instance to populate. - * @return {module:model/BaseOrganizationRelationshipItem} The populated BaseOrganizationRelationshipItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseOrganizationRelationshipItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('rel_owner_org_id')) { - obj['rel_owner_org_id'] = RelationshipOrganizationInfoItem.constructFromObject(data['rel_owner_org_id']); - - delete data['rel_owner_org_id']; - } - if (data.hasOwnProperty('rel_linked_org_id')) { - obj['rel_linked_org_id'] = RelationshipOrganizationInfoItem.constructFromObject(data['rel_linked_org_id']); - - delete data['rel_linked_org_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'String'); - - delete data['active_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization relationship - * @member {Number} id - */ -BaseOrganizationRelationshipItem.prototype['id'] = undefined; - -/** - * The type of the relationship - * @member {String} type - */ -BaseOrganizationRelationshipItem.prototype['type'] = undefined; - -/** - * @member {module:model/RelationshipOrganizationInfoItem} rel_owner_org_id - */ -BaseOrganizationRelationshipItem.prototype['rel_owner_org_id'] = undefined; - -/** - * @member {module:model/RelationshipOrganizationInfoItem} rel_linked_org_id - */ -BaseOrganizationRelationshipItem.prototype['rel_linked_org_id'] = undefined; - -/** - * The creation date and time of the relationship - * @member {String} add_time - */ -BaseOrganizationRelationshipItem.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the relationship - * @member {String} update_time - */ -BaseOrganizationRelationshipItem.prototype['update_time'] = undefined; - -/** - * Whether the relationship is active or not - * @member {String} active_flag - */ -BaseOrganizationRelationshipItem.prototype['active_flag'] = undefined; - - - - - - -export default BaseOrganizationRelationshipItem; - diff --git a/src/model/BasePersonItem.js b/src/model/BasePersonItem.js deleted file mode 100644 index 3f8ef42b..00000000 --- a/src/model/BasePersonItem.js +++ /dev/null @@ -1,235 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePersonItemEmail from './BasePersonItemEmail'; -import BasePersonItemPhone from './BasePersonItemPhone'; -import PictureDataWithID from './PictureDataWithID'; - -/** - * The BasePersonItem model module. - * @module model/BasePersonItem - * @version 1.0.0 - */ -class BasePersonItem { - /** - * Constructs a new BasePersonItem. - * @alias module:model/BasePersonItem - */ - constructor() { - - BasePersonItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasePersonItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasePersonItem} obj Optional instance to populate. - * @return {module:model/BasePersonItem} The populated BasePersonItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasePersonItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], [BasePersonItemPhone]); - - delete data['phone']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], [BasePersonItemEmail]); - - delete data['email']; - } - if (data.hasOwnProperty('first_char')) { - obj['first_char'] = ApiClient.convertToType(data['first_char'], 'String'); - - delete data['first_char']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('picture_id')) { - obj['picture_id'] = PictureDataWithID.constructFromObject(data['picture_id']); - - delete data['picture_id']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person - * @member {Number} id - */ -BasePersonItem.prototype['id'] = undefined; - -/** - * The ID of the company related to the person - * @member {Number} company_id - */ -BasePersonItem.prototype['company_id'] = undefined; - -/** - * Whether the person is active or not - * @member {Boolean} active_flag - */ -BasePersonItem.prototype['active_flag'] = undefined; - -/** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @member {Array.} phone - */ -BasePersonItem.prototype['phone'] = undefined; - -/** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" } ]`. Please note that only `value` is required. - * @member {Array.} email - */ -BasePersonItem.prototype['email'] = undefined; - -/** - * The first letter of the name of the person - * @member {String} first_char - */ -BasePersonItem.prototype['first_char'] = undefined; - -/** - * The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -BasePersonItem.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -BasePersonItem.prototype['update_time'] = undefined; - -/** - * The visibility group ID of who can see the person - * @member {String} visible_to - */ -BasePersonItem.prototype['visible_to'] = undefined; - -/** - * @member {module:model/PictureDataWithID} picture_id - */ -BasePersonItem.prototype['picture_id'] = undefined; - -/** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BasePersonItem.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BasePersonItem.prototype['label_ids'] = undefined; - -/** - * The name of the organization associated with the person - * @member {String} org_name - */ -BasePersonItem.prototype['org_name'] = undefined; - -/** - * The name of the owner associated with the person - * @member {String} owner_name - */ -BasePersonItem.prototype['owner_name'] = undefined; - -/** - * The BCC email associated with the person - * @member {String} cc_email - */ -BasePersonItem.prototype['cc_email'] = undefined; - - - - - - -export default BasePersonItem; - diff --git a/src/model/BasePersonItemEmail.js b/src/model/BasePersonItemEmail.js deleted file mode 100644 index 8401983e..00000000 --- a/src/model/BasePersonItemEmail.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BasePersonItemEmail model module. - * @module model/BasePersonItemEmail - * @version 1.0.0 - */ -class BasePersonItemEmail { - /** - * Constructs a new BasePersonItemEmail. - * @alias module:model/BasePersonItemEmail - */ - constructor() { - - BasePersonItemEmail.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasePersonItemEmail from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasePersonItemEmail} obj Optional instance to populate. - * @return {module:model/BasePersonItemEmail} The populated BasePersonItemEmail instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasePersonItemEmail(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - - delete data['value']; - } - if (data.hasOwnProperty('primary')) { - obj['primary'] = ApiClient.convertToType(data['primary'], 'Boolean'); - - delete data['primary']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Email - * @member {String} value - */ -BasePersonItemEmail.prototype['value'] = undefined; - -/** - * Boolean that indicates if email is primary for the person or not - * @member {Boolean} primary - */ -BasePersonItemEmail.prototype['primary'] = undefined; - -/** - * The label that indicates the type of the email. (Possible values - work, home or other) - * @member {String} label - */ -BasePersonItemEmail.prototype['label'] = undefined; - - - - - - -export default BasePersonItemEmail; - diff --git a/src/model/BasePersonItemPhone.js b/src/model/BasePersonItemPhone.js deleted file mode 100644 index b67c076b..00000000 --- a/src/model/BasePersonItemPhone.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BasePersonItemPhone model module. - * @module model/BasePersonItemPhone - * @version 1.0.0 - */ -class BasePersonItemPhone { - /** - * Constructs a new BasePersonItemPhone. - * @alias module:model/BasePersonItemPhone - */ - constructor() { - - BasePersonItemPhone.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasePersonItemPhone from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasePersonItemPhone} obj Optional instance to populate. - * @return {module:model/BasePersonItemPhone} The populated BasePersonItemPhone instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasePersonItemPhone(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - - delete data['value']; - } - if (data.hasOwnProperty('primary')) { - obj['primary'] = ApiClient.convertToType(data['primary'], 'Boolean'); - - delete data['primary']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The phone number - * @member {String} value - */ -BasePersonItemPhone.prototype['value'] = undefined; - -/** - * Boolean that indicates if phone number is primary for the person or not - * @member {Boolean} primary - */ -BasePersonItemPhone.prototype['primary'] = undefined; - -/** - * The label that indicates the type of the phone number. (Possible values - work, home, mobile or other) - * @member {String} label - */ -BasePersonItemPhone.prototype['label'] = undefined; - - - - - - -export default BasePersonItemPhone; - diff --git a/src/model/BasePipeline.js b/src/model/BasePipeline.js deleted file mode 100644 index 8e47329f..00000000 --- a/src/model/BasePipeline.js +++ /dev/null @@ -1,156 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BasePipeline model module. - * @module model/BasePipeline - * @version 1.0.0 - */ -class BasePipeline { - /** - * Constructs a new BasePipeline. - * @alias module:model/BasePipeline - */ - constructor() { - - BasePipeline.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasePipeline from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasePipeline} obj Optional instance to populate. - * @return {module:model/BasePipeline} The populated BasePipeline instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasePipeline(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('url_title')) { - obj['url_title'] = ApiClient.convertToType(data['url_title'], 'String'); - - delete data['url_title']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); - - delete data['active']; - } - if (data.hasOwnProperty('deal_probability')) { - obj['deal_probability'] = ApiClient.convertToType(data['deal_probability'], 'Boolean'); - - delete data['deal_probability']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the pipeline - * @member {Number} id - */ -BasePipeline.prototype['id'] = undefined; - -/** - * The name of the pipeline - * @member {String} name - */ -BasePipeline.prototype['name'] = undefined; - -/** - * The pipeline title displayed in the URL - * @member {String} url_title - */ -BasePipeline.prototype['url_title'] = undefined; - -/** - * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. - * @member {Number} order_nr - */ -BasePipeline.prototype['order_nr'] = undefined; - -/** - * Whether this pipeline will be made inactive (hidden) or active - * @member {Boolean} active - */ -BasePipeline.prototype['active'] = undefined; - -/** - * Whether deal probability is disabled or enabled for this pipeline - * @member {Boolean} deal_probability - */ -BasePipeline.prototype['deal_probability'] = undefined; - -/** - * The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -BasePipeline.prototype['add_time'] = undefined; - -/** - * The pipeline update time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -BasePipeline.prototype['update_time'] = undefined; - - - - - - -export default BasePipeline; - diff --git a/src/model/BasePipelineWithSelectedFlag.js b/src/model/BasePipelineWithSelectedFlag.js deleted file mode 100644 index ee518ba2..00000000 --- a/src/model/BasePipelineWithSelectedFlag.js +++ /dev/null @@ -1,220 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePipeline from './BasePipeline'; -import BasePipelineWithSelectedFlagAllOf from './BasePipelineWithSelectedFlagAllOf'; - -/** - * The BasePipelineWithSelectedFlag model module. - * @module model/BasePipelineWithSelectedFlag - * @version 1.0.0 - */ -class BasePipelineWithSelectedFlag { - /** - * Constructs a new BasePipelineWithSelectedFlag. - * @alias module:model/BasePipelineWithSelectedFlag - * @implements module:model/BasePipeline - * @implements module:model/BasePipelineWithSelectedFlagAllOf - */ - constructor() { - BasePipeline.initialize(this);BasePipelineWithSelectedFlagAllOf.initialize(this); - BasePipelineWithSelectedFlag.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasePipelineWithSelectedFlag from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasePipelineWithSelectedFlag} obj Optional instance to populate. - * @return {module:model/BasePipelineWithSelectedFlag} The populated BasePipelineWithSelectedFlag instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasePipelineWithSelectedFlag(); - BasePipeline.constructFromObject(data, obj); - BasePipelineWithSelectedFlagAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('url_title')) { - obj['url_title'] = ApiClient.convertToType(data['url_title'], 'String'); - - delete data['url_title']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); - - delete data['active']; - } - if (data.hasOwnProperty('deal_probability')) { - obj['deal_probability'] = ApiClient.convertToType(data['deal_probability'], 'Boolean'); - - delete data['deal_probability']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('selected')) { - obj['selected'] = ApiClient.convertToType(data['selected'], 'Boolean'); - - delete data['selected']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the pipeline - * @member {Number} id - */ -BasePipelineWithSelectedFlag.prototype['id'] = undefined; - -/** - * The name of the pipeline - * @member {String} name - */ -BasePipelineWithSelectedFlag.prototype['name'] = undefined; - -/** - * The pipeline title displayed in the URL - * @member {String} url_title - */ -BasePipelineWithSelectedFlag.prototype['url_title'] = undefined; - -/** - * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. - * @member {Number} order_nr - */ -BasePipelineWithSelectedFlag.prototype['order_nr'] = undefined; - -/** - * Whether this pipeline will be made inactive (hidden) or active - * @member {Boolean} active - */ -BasePipelineWithSelectedFlag.prototype['active'] = undefined; - -/** - * Whether deal probability is disabled or enabled for this pipeline - * @member {Boolean} deal_probability - */ -BasePipelineWithSelectedFlag.prototype['deal_probability'] = undefined; - -/** - * The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -BasePipelineWithSelectedFlag.prototype['add_time'] = undefined; - -/** - * The pipeline update time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -BasePipelineWithSelectedFlag.prototype['update_time'] = undefined; - -/** - * A boolean that shows if the pipeline is selected from a filter or not - * @member {Boolean} selected - */ -BasePipelineWithSelectedFlag.prototype['selected'] = undefined; - - -// Implement BasePipeline interface: -/** - * The ID of the pipeline - * @member {Number} id - */ -BasePipeline.prototype['id'] = undefined; -/** - * The name of the pipeline - * @member {String} name - */ -BasePipeline.prototype['name'] = undefined; -/** - * The pipeline title displayed in the URL - * @member {String} url_title - */ -BasePipeline.prototype['url_title'] = undefined; -/** - * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. - * @member {Number} order_nr - */ -BasePipeline.prototype['order_nr'] = undefined; -/** - * Whether this pipeline will be made inactive (hidden) or active - * @member {Boolean} active - */ -BasePipeline.prototype['active'] = undefined; -/** - * Whether deal probability is disabled or enabled for this pipeline - * @member {Boolean} deal_probability - */ -BasePipeline.prototype['deal_probability'] = undefined; -/** - * The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -BasePipeline.prototype['add_time'] = undefined; -/** - * The pipeline update time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -BasePipeline.prototype['update_time'] = undefined; -// Implement BasePipelineWithSelectedFlagAllOf interface: -/** - * A boolean that shows if the pipeline is selected from a filter or not - * @member {Boolean} selected - */ -BasePipelineWithSelectedFlagAllOf.prototype['selected'] = undefined; - - - - -export default BasePipelineWithSelectedFlag; - diff --git a/src/model/BasePipelineWithSelectedFlagAllOf.js b/src/model/BasePipelineWithSelectedFlagAllOf.js deleted file mode 100644 index 8a8f4780..00000000 --- a/src/model/BasePipelineWithSelectedFlagAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BasePipelineWithSelectedFlagAllOf model module. - * @module model/BasePipelineWithSelectedFlagAllOf - * @version 1.0.0 - */ -class BasePipelineWithSelectedFlagAllOf { - /** - * Constructs a new BasePipelineWithSelectedFlagAllOf. - * @alias module:model/BasePipelineWithSelectedFlagAllOf - */ - constructor() { - - BasePipelineWithSelectedFlagAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasePipelineWithSelectedFlagAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasePipelineWithSelectedFlagAllOf} obj Optional instance to populate. - * @return {module:model/BasePipelineWithSelectedFlagAllOf} The populated BasePipelineWithSelectedFlagAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasePipelineWithSelectedFlagAllOf(); - - if (data.hasOwnProperty('selected')) { - obj['selected'] = ApiClient.convertToType(data['selected'], 'Boolean'); - - delete data['selected']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * A boolean that shows if the pipeline is selected from a filter or not - * @member {Boolean} selected - */ -BasePipelineWithSelectedFlagAllOf.prototype['selected'] = undefined; - - - - - - -export default BasePipelineWithSelectedFlagAllOf; - diff --git a/src/model/BaseProduct.js b/src/model/BaseProduct.js deleted file mode 100644 index 4f964dd2..00000000 --- a/src/model/BaseProduct.js +++ /dev/null @@ -1,239 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import VisibleTo from './VisibleTo'; - -/** - * The BaseProduct model module. - * @module model/BaseProduct - * @version 1.0.0 - */ -class BaseProduct { - /** - * Constructs a new BaseProduct. - * @alias module:model/BaseProduct - */ - constructor() { - - BaseProduct.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseProduct from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseProduct} obj Optional instance to populate. - * @return {module:model/BaseProduct} The populated BaseProduct instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseProduct(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); - - delete data['unit']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('selectable')) { - obj['selectable'] = ApiClient.convertToType(data['selectable'], 'Boolean'); - - delete data['selectable']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], Object); - - delete data['owner_id']; - } - if (data.hasOwnProperty('billing_frequency')) { - obj['billing_frequency'] = ApiClient.convertToType(data['billing_frequency'], 'String'); - - delete data['billing_frequency']; - } - if (data.hasOwnProperty('billing_frequency_cycles')) { - obj['billing_frequency_cycles'] = ApiClient.convertToType(data['billing_frequency_cycles'], 'Number'); - - delete data['billing_frequency_cycles']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product - * @member {Number} id - */ -BaseProduct.prototype['id'] = undefined; - -/** - * The name of the product - * @member {String} name - */ -BaseProduct.prototype['name'] = undefined; - -/** - * The product code - * @member {String} code - */ -BaseProduct.prototype['code'] = undefined; - -/** - * The unit in which this product is sold - * @member {String} unit - */ -BaseProduct.prototype['unit'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -BaseProduct.prototype['tax'] = 0; - -/** - * Whether this product is active or not - * @member {Boolean} active_flag - * @default true - */ -BaseProduct.prototype['active_flag'] = true; - -/** - * Whether this product is selected in deals or not - * @member {Boolean} selectable - * @default true - */ -BaseProduct.prototype['selectable'] = true; - -/** - * Visibility of the product - * @member {module:model/VisibleTo} visible_to - */ -BaseProduct.prototype['visible_to'] = undefined; - -/** - * Information about the Pipedrive user who owns the product - * @member {Object} owner_id - */ -BaseProduct.prototype['owner_id'] = undefined; - -/** - * Only available in Advanced and above plans How often a customer is billed for access to a service or product - * @member {module:model/BaseProduct.BillingFrequencyEnum} billing_frequency - * @default 'one-time' - */ -BaseProduct.prototype['billing_frequency'] = 'one-time'; - -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field is always `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -BaseProduct.prototype['billing_frequency_cycles'] = undefined; - - - - - -/** - * Allowed values for the billing_frequency property. - * @enum {String} - * @readonly - */ -BaseProduct['BillingFrequencyEnum'] = { - - /** - * value: "one-time" - * @const - */ - "one-time": "one-time", - - /** - * value: "annually" - * @const - */ - "annually": "annually", - - /** - * value: "semi-annually" - * @const - */ - "semi-annually": "semi-annually", - - /** - * value: "quarterly" - * @const - */ - "quarterly": "quarterly", - - /** - * value: "monthly" - * @const - */ - "monthly": "monthly", - - /** - * value: "weekly" - * @const - */ - "weekly": "weekly" -}; - - - -export default BaseProduct; - diff --git a/src/model/BaseResponse.js b/src/model/BaseResponse.js deleted file mode 100644 index 8eecd8ac..00000000 --- a/src/model/BaseResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseResponse model module. - * @module model/BaseResponse - * @version 1.0.0 - */ -class BaseResponse { - /** - * Constructs a new BaseResponse. - * @alias module:model/BaseResponse - */ - constructor() { - - BaseResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseResponse} obj Optional instance to populate. - * @return {module:model/BaseResponse} The populated BaseResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; - - - - - - -export default BaseResponse; - diff --git a/src/model/BaseResponseWithStatus.js b/src/model/BaseResponseWithStatus.js deleted file mode 100644 index 2751fac2..00000000 --- a/src/model/BaseResponseWithStatus.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import BaseResponseWithStatusAllOf from './BaseResponseWithStatusAllOf'; - -/** - * The BaseResponseWithStatus model module. - * @module model/BaseResponseWithStatus - * @version 1.0.0 - */ -class BaseResponseWithStatus { - /** - * Constructs a new BaseResponseWithStatus. - * @alias module:model/BaseResponseWithStatus - * @implements module:model/BaseResponse - * @implements module:model/BaseResponseWithStatusAllOf - */ - constructor() { - BaseResponse.initialize(this);BaseResponseWithStatusAllOf.initialize(this); - BaseResponseWithStatus.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseResponseWithStatus from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseResponseWithStatus} obj Optional instance to populate. - * @return {module:model/BaseResponseWithStatus} The populated BaseResponseWithStatus instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseResponseWithStatus(); - BaseResponse.constructFromObject(data, obj); - BaseResponseWithStatusAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponseWithStatus.prototype['success'] = undefined; - -/** - * The status of the response - * @member {String} status - */ -BaseResponseWithStatus.prototype['status'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement BaseResponseWithStatusAllOf interface: -/** - * The status of the response - * @member {String} status - */ -BaseResponseWithStatusAllOf.prototype['status'] = undefined; - - - - -export default BaseResponseWithStatus; - diff --git a/src/model/BaseResponseWithStatusAllOf.js b/src/model/BaseResponseWithStatusAllOf.js deleted file mode 100644 index 1fc50668..00000000 --- a/src/model/BaseResponseWithStatusAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseResponseWithStatusAllOf model module. - * @module model/BaseResponseWithStatusAllOf - * @version 1.0.0 - */ -class BaseResponseWithStatusAllOf { - /** - * Constructs a new BaseResponseWithStatusAllOf. - * @alias module:model/BaseResponseWithStatusAllOf - */ - constructor() { - - BaseResponseWithStatusAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseResponseWithStatusAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseResponseWithStatusAllOf} obj Optional instance to populate. - * @return {module:model/BaseResponseWithStatusAllOf} The populated BaseResponseWithStatusAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseResponseWithStatusAllOf(); - - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The status of the response - * @member {String} status - */ -BaseResponseWithStatusAllOf.prototype['status'] = undefined; - - - - - - -export default BaseResponseWithStatusAllOf; - diff --git a/src/model/BaseRole.js b/src/model/BaseRole.js deleted file mode 100644 index 01e0254a..00000000 --- a/src/model/BaseRole.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseRole model module. - * @module model/BaseRole - * @version 1.0.0 - */ -class BaseRole { - /** - * Constructs a new BaseRole. - * The details of the role - * @alias module:model/BaseRole - */ - constructor() { - - BaseRole.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseRole} obj Optional instance to populate. - * @return {module:model/BaseRole} The populated BaseRole instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseRole(); - - if (data.hasOwnProperty('parent_role_id')) { - obj['parent_role_id'] = ApiClient.convertToType(data['parent_role_id'], 'Number'); - - delete data['parent_role_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the parent role - * @member {Number} parent_role_id - */ -BaseRole.prototype['parent_role_id'] = undefined; - -/** - * The name of the role - * @member {String} name - */ -BaseRole.prototype['name'] = undefined; - - - - - - -export default BaseRole; - diff --git a/src/model/BaseStage.js b/src/model/BaseStage.js deleted file mode 100644 index 0933bf22..00000000 --- a/src/model/BaseStage.js +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseStage model module. - * @module model/BaseStage - * @version 1.0.0 - */ -class BaseStage { - /** - * Constructs a new BaseStage. - * @alias module:model/BaseStage - */ - constructor() { - - BaseStage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseStage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseStage} obj Optional instance to populate. - * @return {module:model/BaseStage} The populated BaseStage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseStage(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('deal_probability')) { - obj['deal_probability'] = ApiClient.convertToType(data['deal_probability'], 'Number'); - - delete data['deal_probability']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('rotten_flag')) { - obj['rotten_flag'] = ApiClient.convertToType(data['rotten_flag'], 'Boolean'); - - delete data['rotten_flag']; - } - if (data.hasOwnProperty('rotten_days')) { - obj['rotten_days'] = ApiClient.convertToType(data['rotten_days'], 'Number'); - - delete data['rotten_days']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the stage - * @member {Number} id - */ -BaseStage.prototype['id'] = undefined; - -/** - * Defines the order of the stage - * @member {Number} order_nr - */ -BaseStage.prototype['order_nr'] = undefined; - -/** - * The name of the stage - * @member {String} name - */ -BaseStage.prototype['name'] = undefined; - -/** - * Whether the stage is active or deleted - * @member {Boolean} active_flag - */ -BaseStage.prototype['active_flag'] = undefined; - -/** - * The success probability percentage of the deal. Used/shown when the deal weighted values are used. - * @member {Number} deal_probability - */ -BaseStage.prototype['deal_probability'] = undefined; - -/** - * The ID of the pipeline to add the stage to - * @member {Number} pipeline_id - */ -BaseStage.prototype['pipeline_id'] = undefined; - -/** - * Whether deals in this stage can become rotten - * @member {Boolean} rotten_flag - */ -BaseStage.prototype['rotten_flag'] = undefined; - -/** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. - * @member {Number} rotten_days - */ -BaseStage.prototype['rotten_days'] = undefined; - -/** - * The stage creation time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -BaseStage.prototype['add_time'] = undefined; - -/** - * The stage update time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -BaseStage.prototype['update_time'] = undefined; - - - - - - -export default BaseStage; - diff --git a/src/model/BaseTeam.js b/src/model/BaseTeam.js deleted file mode 100644 index 2f300c0b..00000000 --- a/src/model/BaseTeam.js +++ /dev/null @@ -1,221 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBoolean from './NumberBoolean'; -import TeamId from './TeamId'; -import UpdateTeamWithAdditionalProperties from './UpdateTeamWithAdditionalProperties'; - -/** - * The BaseTeam model module. - * @module model/BaseTeam - * @version 1.0.0 - */ -class BaseTeam { - /** - * Constructs a new BaseTeam. - * @alias module:model/BaseTeam - * @implements module:model/TeamId - * @implements module:model/UpdateTeamWithAdditionalProperties - */ - constructor() { - TeamId.initialize(this);UpdateTeamWithAdditionalProperties.initialize(this); - BaseTeam.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseTeam from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseTeam} obj Optional instance to populate. - * @return {module:model/BaseTeam} The populated BaseTeam instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseTeam(); - TeamId.constructFromObject(data, obj); - UpdateTeamWithAdditionalProperties.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('manager_id')) { - obj['manager_id'] = ApiClient.convertToType(data['manager_id'], 'Number'); - - delete data['manager_id']; - } - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], ['Number']); - - delete data['users']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], NumberBoolean); - - delete data['active_flag']; - } - if (data.hasOwnProperty('deleted_flag')) { - obj['deleted_flag'] = ApiClient.convertToType(data['deleted_flag'], NumberBoolean); - - delete data['deleted_flag']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('created_by_user_id')) { - obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); - - delete data['created_by_user_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The team ID - * @member {Number} id - */ -BaseTeam.prototype['id'] = undefined; - -/** - * The team name - * @member {String} name - */ -BaseTeam.prototype['name'] = undefined; - -/** - * The team description - * @member {String} description - */ -BaseTeam.prototype['description'] = undefined; - -/** - * The team manager ID - * @member {Number} manager_id - */ -BaseTeam.prototype['manager_id'] = undefined; - -/** - * The list of user IDs - * @member {Array.} users - */ -BaseTeam.prototype['users'] = undefined; - -/** - * Flag that indicates whether the team is active - * @member {module:model/NumberBoolean} active_flag - */ -BaseTeam.prototype['active_flag'] = undefined; - -/** - * Flag that indicates whether the team is deleted - * @member {module:model/NumberBoolean} deleted_flag - */ -BaseTeam.prototype['deleted_flag'] = undefined; - -/** - * The team creation time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -BaseTeam.prototype['add_time'] = undefined; - -/** - * The ID of the user who created the team - * @member {Number} created_by_user_id - */ -BaseTeam.prototype['created_by_user_id'] = undefined; - - -// Implement TeamId interface: -/** - * The team ID - * @member {Number} id - */ -TeamId.prototype['id'] = undefined; -// Implement UpdateTeamWithAdditionalProperties interface: -/** - * The team name - * @member {String} name - */ -UpdateTeamWithAdditionalProperties.prototype['name'] = undefined; -/** - * The team description - * @member {String} description - */ -UpdateTeamWithAdditionalProperties.prototype['description'] = undefined; -/** - * The team manager ID - * @member {Number} manager_id - */ -UpdateTeamWithAdditionalProperties.prototype['manager_id'] = undefined; -/** - * The list of user IDs - * @member {Array.} users - */ -UpdateTeamWithAdditionalProperties.prototype['users'] = undefined; -/** - * Flag that indicates whether the team is active - * @member {module:model/NumberBoolean} active_flag - */ -UpdateTeamWithAdditionalProperties.prototype['active_flag'] = undefined; -/** - * Flag that indicates whether the team is deleted - * @member {module:model/NumberBoolean} deleted_flag - */ -UpdateTeamWithAdditionalProperties.prototype['deleted_flag'] = undefined; -/** - * The team creation time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -UpdateTeamWithAdditionalProperties.prototype['add_time'] = undefined; -/** - * The ID of the user who created the team - * @member {Number} created_by_user_id - */ -UpdateTeamWithAdditionalProperties.prototype['created_by_user_id'] = undefined; - - - - -export default BaseTeam; - diff --git a/src/model/BaseTeamAdditionalProperties.js b/src/model/BaseTeamAdditionalProperties.js deleted file mode 100644 index 5beb4814..00000000 --- a/src/model/BaseTeamAdditionalProperties.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseTeamAdditionalProperties model module. - * @module model/BaseTeamAdditionalProperties - * @version 1.0.0 - */ -class BaseTeamAdditionalProperties { - /** - * Constructs a new BaseTeamAdditionalProperties. - * @alias module:model/BaseTeamAdditionalProperties - */ - constructor() { - - BaseTeamAdditionalProperties.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseTeamAdditionalProperties from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseTeamAdditionalProperties} obj Optional instance to populate. - * @return {module:model/BaseTeamAdditionalProperties} The populated BaseTeamAdditionalProperties instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseTeamAdditionalProperties(); - - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('created_by_user_id')) { - obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); - - delete data['created_by_user_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The team creation time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -BaseTeamAdditionalProperties.prototype['add_time'] = undefined; - -/** - * The ID of the user who created the team - * @member {Number} created_by_user_id - */ -BaseTeamAdditionalProperties.prototype['created_by_user_id'] = undefined; - - - - - - -export default BaseTeamAdditionalProperties; - diff --git a/src/model/BaseUser.js b/src/model/BaseUser.js deleted file mode 100644 index 9b3cce66..00000000 --- a/src/model/BaseUser.js +++ /dev/null @@ -1,288 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import UserAccess from './UserAccess'; - -/** - * The BaseUser model module. - * @module model/BaseUser - * @version 1.0.0 - */ -class BaseUser { - /** - * Constructs a new BaseUser. - * @alias module:model/BaseUser - */ - constructor() { - - BaseUser.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseUser from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseUser} obj Optional instance to populate. - * @return {module:model/BaseUser} The populated BaseUser instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseUser(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('default_currency')) { - obj['default_currency'] = ApiClient.convertToType(data['default_currency'], 'String'); - - delete data['default_currency']; - } - if (data.hasOwnProperty('locale')) { - obj['locale'] = ApiClient.convertToType(data['locale'], 'String'); - - delete data['locale']; - } - if (data.hasOwnProperty('lang')) { - obj['lang'] = ApiClient.convertToType(data['lang'], 'Number'); - - delete data['lang']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String'); - - delete data['phone']; - } - if (data.hasOwnProperty('activated')) { - obj['activated'] = ApiClient.convertToType(data['activated'], 'Boolean'); - - delete data['activated']; - } - if (data.hasOwnProperty('last_login')) { - obj['last_login'] = ApiClient.convertToType(data['last_login'], 'String'); - - delete data['last_login']; - } - if (data.hasOwnProperty('created')) { - obj['created'] = ApiClient.convertToType(data['created'], 'String'); - - delete data['created']; - } - if (data.hasOwnProperty('modified')) { - obj['modified'] = ApiClient.convertToType(data['modified'], 'String'); - - delete data['modified']; - } - if (data.hasOwnProperty('has_created_company')) { - obj['has_created_company'] = ApiClient.convertToType(data['has_created_company'], 'Boolean'); - - delete data['has_created_company']; - } - if (data.hasOwnProperty('access')) { - obj['access'] = ApiClient.convertToType(data['access'], [UserAccess]); - - delete data['access']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('timezone_name')) { - obj['timezone_name'] = ApiClient.convertToType(data['timezone_name'], 'String'); - - delete data['timezone_name']; - } - if (data.hasOwnProperty('timezone_offset')) { - obj['timezone_offset'] = ApiClient.convertToType(data['timezone_offset'], 'String'); - - delete data['timezone_offset']; - } - if (data.hasOwnProperty('role_id')) { - obj['role_id'] = ApiClient.convertToType(data['role_id'], 'Number'); - - delete data['role_id']; - } - if (data.hasOwnProperty('icon_url')) { - obj['icon_url'] = ApiClient.convertToType(data['icon_url'], 'String'); - - delete data['icon_url']; - } - if (data.hasOwnProperty('is_you')) { - obj['is_you'] = ApiClient.convertToType(data['is_you'], 'Boolean'); - - delete data['is_you']; - } - if (data.hasOwnProperty('is_deleted')) { - obj['is_deleted'] = ApiClient.convertToType(data['is_deleted'], 'Boolean'); - - delete data['is_deleted']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The user ID - * @member {Number} id - */ -BaseUser.prototype['id'] = undefined; - -/** - * The user name - * @member {String} name - */ -BaseUser.prototype['name'] = undefined; - -/** - * The user default currency - * @member {String} default_currency - */ -BaseUser.prototype['default_currency'] = undefined; - -/** - * The user locale - * @member {String} locale - */ -BaseUser.prototype['locale'] = undefined; - -/** - * The user language ID - * @member {Number} lang - */ -BaseUser.prototype['lang'] = undefined; - -/** - * The user email - * @member {String} email - */ -BaseUser.prototype['email'] = undefined; - -/** - * The user phone - * @member {String} phone - */ -BaseUser.prototype['phone'] = undefined; - -/** - * Boolean that indicates whether the user is activated - * @member {Boolean} activated - */ -BaseUser.prototype['activated'] = undefined; - -/** - * The last login date and time of the user. Format: YYYY-MM-DD HH:MM:SS - * @member {String} last_login - */ -BaseUser.prototype['last_login'] = undefined; - -/** - * The creation date and time of the user. Format: YYYY-MM-DD HH:MM:SS - * @member {String} created - */ -BaseUser.prototype['created'] = undefined; - -/** - * The last modification date and time of the user. Format: YYYY-MM-DD HH:MM:SS - * @member {String} modified - */ -BaseUser.prototype['modified'] = undefined; - -/** - * Boolean that indicates whether the user has created a company - * @member {Boolean} has_created_company - */ -BaseUser.prototype['has_created_company'] = undefined; - -/** - * @member {Array.} access - */ -BaseUser.prototype['access'] = undefined; - -/** - * Boolean that indicates whether the user is activated - * @member {Boolean} active_flag - */ -BaseUser.prototype['active_flag'] = undefined; - -/** - * The user timezone name - * @member {String} timezone_name - */ -BaseUser.prototype['timezone_name'] = undefined; - -/** - * The user timezone offset - * @member {String} timezone_offset - */ -BaseUser.prototype['timezone_offset'] = undefined; - -/** - * The ID of the user role - * @member {Number} role_id - */ -BaseUser.prototype['role_id'] = undefined; - -/** - * The user icon URL - * @member {String} icon_url - */ -BaseUser.prototype['icon_url'] = undefined; - -/** - * Boolean that indicates if the requested user is the same which is logged in (in this case, always true) - * @member {Boolean} is_you - */ -BaseUser.prototype['is_you'] = undefined; - -/** - * Boolean that indicates whether the user is deleted from the company - * @member {Boolean} is_deleted - */ -BaseUser.prototype['is_deleted'] = undefined; - - - - - - -export default BaseUser; - diff --git a/src/model/BaseUserMe.js b/src/model/BaseUserMe.js deleted file mode 100644 index f5a6d2af..00000000 --- a/src/model/BaseUserMe.js +++ /dev/null @@ -1,490 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseUser from './BaseUser'; -import BaseUserMeAllOf from './BaseUserMeAllOf'; -import BaseUserMeAllOfLanguage from './BaseUserMeAllOfLanguage'; -import UserAccess from './UserAccess'; - -/** - * The BaseUserMe model module. - * @module model/BaseUserMe - * @version 1.0.0 - */ -class BaseUserMe { - /** - * Constructs a new BaseUserMe. - * @alias module:model/BaseUserMe - * @implements module:model/BaseUser - * @implements module:model/BaseUserMeAllOf - */ - constructor() { - BaseUser.initialize(this);BaseUserMeAllOf.initialize(this); - BaseUserMe.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseUserMe from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseUserMe} obj Optional instance to populate. - * @return {module:model/BaseUserMe} The populated BaseUserMe instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseUserMe(); - BaseUser.constructFromObject(data, obj); - BaseUserMeAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('default_currency')) { - obj['default_currency'] = ApiClient.convertToType(data['default_currency'], 'String'); - - delete data['default_currency']; - } - if (data.hasOwnProperty('locale')) { - obj['locale'] = ApiClient.convertToType(data['locale'], 'String'); - - delete data['locale']; - } - if (data.hasOwnProperty('lang')) { - obj['lang'] = ApiClient.convertToType(data['lang'], 'Number'); - - delete data['lang']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], 'String'); - - delete data['phone']; - } - if (data.hasOwnProperty('activated')) { - obj['activated'] = ApiClient.convertToType(data['activated'], 'Boolean'); - - delete data['activated']; - } - if (data.hasOwnProperty('last_login')) { - obj['last_login'] = ApiClient.convertToType(data['last_login'], 'String'); - - delete data['last_login']; - } - if (data.hasOwnProperty('created')) { - obj['created'] = ApiClient.convertToType(data['created'], 'String'); - - delete data['created']; - } - if (data.hasOwnProperty('modified')) { - obj['modified'] = ApiClient.convertToType(data['modified'], 'String'); - - delete data['modified']; - } - if (data.hasOwnProperty('has_created_company')) { - obj['has_created_company'] = ApiClient.convertToType(data['has_created_company'], 'Boolean'); - - delete data['has_created_company']; - } - if (data.hasOwnProperty('access')) { - obj['access'] = ApiClient.convertToType(data['access'], [UserAccess]); - - delete data['access']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('timezone_name')) { - obj['timezone_name'] = ApiClient.convertToType(data['timezone_name'], 'String'); - - delete data['timezone_name']; - } - if (data.hasOwnProperty('timezone_offset')) { - obj['timezone_offset'] = ApiClient.convertToType(data['timezone_offset'], 'String'); - - delete data['timezone_offset']; - } - if (data.hasOwnProperty('role_id')) { - obj['role_id'] = ApiClient.convertToType(data['role_id'], 'Number'); - - delete data['role_id']; - } - if (data.hasOwnProperty('icon_url')) { - obj['icon_url'] = ApiClient.convertToType(data['icon_url'], 'String'); - - delete data['icon_url']; - } - if (data.hasOwnProperty('is_you')) { - obj['is_you'] = ApiClient.convertToType(data['is_you'], 'Boolean'); - - delete data['is_you']; - } - if (data.hasOwnProperty('is_deleted')) { - obj['is_deleted'] = ApiClient.convertToType(data['is_deleted'], 'Boolean'); - - delete data['is_deleted']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('company_name')) { - obj['company_name'] = ApiClient.convertToType(data['company_name'], 'String'); - - delete data['company_name']; - } - if (data.hasOwnProperty('company_domain')) { - obj['company_domain'] = ApiClient.convertToType(data['company_domain'], 'String'); - - delete data['company_domain']; - } - if (data.hasOwnProperty('company_country')) { - obj['company_country'] = ApiClient.convertToType(data['company_country'], 'String'); - - delete data['company_country']; - } - if (data.hasOwnProperty('company_industry')) { - obj['company_industry'] = ApiClient.convertToType(data['company_industry'], 'String'); - - delete data['company_industry']; - } - if (data.hasOwnProperty('language')) { - obj['language'] = BaseUserMeAllOfLanguage.constructFromObject(data['language']); - - delete data['language']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The user ID - * @member {Number} id - */ -BaseUserMe.prototype['id'] = undefined; - -/** - * The user name - * @member {String} name - */ -BaseUserMe.prototype['name'] = undefined; - -/** - * The user default currency - * @member {String} default_currency - */ -BaseUserMe.prototype['default_currency'] = undefined; - -/** - * The user locale - * @member {String} locale - */ -BaseUserMe.prototype['locale'] = undefined; - -/** - * The user language ID - * @member {Number} lang - */ -BaseUserMe.prototype['lang'] = undefined; - -/** - * The user email - * @member {String} email - */ -BaseUserMe.prototype['email'] = undefined; - -/** - * The user phone - * @member {String} phone - */ -BaseUserMe.prototype['phone'] = undefined; - -/** - * Boolean that indicates whether the user is activated - * @member {Boolean} activated - */ -BaseUserMe.prototype['activated'] = undefined; - -/** - * The last login date and time of the user. Format: YYYY-MM-DD HH:MM:SS - * @member {String} last_login - */ -BaseUserMe.prototype['last_login'] = undefined; - -/** - * The creation date and time of the user. Format: YYYY-MM-DD HH:MM:SS - * @member {String} created - */ -BaseUserMe.prototype['created'] = undefined; - -/** - * The last modification date and time of the user. Format: YYYY-MM-DD HH:MM:SS - * @member {String} modified - */ -BaseUserMe.prototype['modified'] = undefined; - -/** - * Boolean that indicates whether the user has created a company - * @member {Boolean} has_created_company - */ -BaseUserMe.prototype['has_created_company'] = undefined; - -/** - * @member {Array.} access - */ -BaseUserMe.prototype['access'] = undefined; - -/** - * Boolean that indicates whether the user is activated - * @member {Boolean} active_flag - */ -BaseUserMe.prototype['active_flag'] = undefined; - -/** - * The user timezone name - * @member {String} timezone_name - */ -BaseUserMe.prototype['timezone_name'] = undefined; - -/** - * The user timezone offset - * @member {String} timezone_offset - */ -BaseUserMe.prototype['timezone_offset'] = undefined; - -/** - * The ID of the user role - * @member {Number} role_id - */ -BaseUserMe.prototype['role_id'] = undefined; - -/** - * The user icon URL - * @member {String} icon_url - */ -BaseUserMe.prototype['icon_url'] = undefined; - -/** - * Boolean that indicates if the requested user is the same which is logged in (in this case, always true) - * @member {Boolean} is_you - */ -BaseUserMe.prototype['is_you'] = undefined; - -/** - * Boolean that indicates whether the user is deleted from the company - * @member {Boolean} is_deleted - */ -BaseUserMe.prototype['is_deleted'] = undefined; - -/** - * The user company ID - * @member {Number} company_id - */ -BaseUserMe.prototype['company_id'] = undefined; - -/** - * The user company name - * @member {String} company_name - */ -BaseUserMe.prototype['company_name'] = undefined; - -/** - * The user company domain - * @member {String} company_domain - */ -BaseUserMe.prototype['company_domain'] = undefined; - -/** - * The user company country - * @member {String} company_country - */ -BaseUserMe.prototype['company_country'] = undefined; - -/** - * The user company industry - * @member {String} company_industry - */ -BaseUserMe.prototype['company_industry'] = undefined; - -/** - * @member {module:model/BaseUserMeAllOfLanguage} language - */ -BaseUserMe.prototype['language'] = undefined; - - -// Implement BaseUser interface: -/** - * The user ID - * @member {Number} id - */ -BaseUser.prototype['id'] = undefined; -/** - * The user name - * @member {String} name - */ -BaseUser.prototype['name'] = undefined; -/** - * The user default currency - * @member {String} default_currency - */ -BaseUser.prototype['default_currency'] = undefined; -/** - * The user locale - * @member {String} locale - */ -BaseUser.prototype['locale'] = undefined; -/** - * The user language ID - * @member {Number} lang - */ -BaseUser.prototype['lang'] = undefined; -/** - * The user email - * @member {String} email - */ -BaseUser.prototype['email'] = undefined; -/** - * The user phone - * @member {String} phone - */ -BaseUser.prototype['phone'] = undefined; -/** - * Boolean that indicates whether the user is activated - * @member {Boolean} activated - */ -BaseUser.prototype['activated'] = undefined; -/** - * The last login date and time of the user. Format: YYYY-MM-DD HH:MM:SS - * @member {String} last_login - */ -BaseUser.prototype['last_login'] = undefined; -/** - * The creation date and time of the user. Format: YYYY-MM-DD HH:MM:SS - * @member {String} created - */ -BaseUser.prototype['created'] = undefined; -/** - * The last modification date and time of the user. Format: YYYY-MM-DD HH:MM:SS - * @member {String} modified - */ -BaseUser.prototype['modified'] = undefined; -/** - * Boolean that indicates whether the user has created a company - * @member {Boolean} has_created_company - */ -BaseUser.prototype['has_created_company'] = undefined; -/** - * @member {Array.} access - */ -BaseUser.prototype['access'] = undefined; -/** - * Boolean that indicates whether the user is activated - * @member {Boolean} active_flag - */ -BaseUser.prototype['active_flag'] = undefined; -/** - * The user timezone name - * @member {String} timezone_name - */ -BaseUser.prototype['timezone_name'] = undefined; -/** - * The user timezone offset - * @member {String} timezone_offset - */ -BaseUser.prototype['timezone_offset'] = undefined; -/** - * The ID of the user role - * @member {Number} role_id - */ -BaseUser.prototype['role_id'] = undefined; -/** - * The user icon URL - * @member {String} icon_url - */ -BaseUser.prototype['icon_url'] = undefined; -/** - * Boolean that indicates if the requested user is the same which is logged in (in this case, always true) - * @member {Boolean} is_you - */ -BaseUser.prototype['is_you'] = undefined; -/** - * Boolean that indicates whether the user is deleted from the company - * @member {Boolean} is_deleted - */ -BaseUser.prototype['is_deleted'] = undefined; -// Implement BaseUserMeAllOf interface: -/** - * The user company ID - * @member {Number} company_id - */ -BaseUserMeAllOf.prototype['company_id'] = undefined; -/** - * The user company name - * @member {String} company_name - */ -BaseUserMeAllOf.prototype['company_name'] = undefined; -/** - * The user company domain - * @member {String} company_domain - */ -BaseUserMeAllOf.prototype['company_domain'] = undefined; -/** - * The user company country - * @member {String} company_country - */ -BaseUserMeAllOf.prototype['company_country'] = undefined; -/** - * The user company industry - * @member {String} company_industry - */ -BaseUserMeAllOf.prototype['company_industry'] = undefined; -/** - * @member {module:model/BaseUserMeAllOfLanguage} language - */ -BaseUserMeAllOf.prototype['language'] = undefined; - - - - -export default BaseUserMe; - diff --git a/src/model/BaseUserMeAllOf.js b/src/model/BaseUserMeAllOf.js deleted file mode 100644 index 8f741ffa..00000000 --- a/src/model/BaseUserMeAllOf.js +++ /dev/null @@ -1,134 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseUserMeAllOfLanguage from './BaseUserMeAllOfLanguage'; - -/** - * The BaseUserMeAllOf model module. - * @module model/BaseUserMeAllOf - * @version 1.0.0 - */ -class BaseUserMeAllOf { - /** - * Constructs a new BaseUserMeAllOf. - * @alias module:model/BaseUserMeAllOf - */ - constructor() { - - BaseUserMeAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseUserMeAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseUserMeAllOf} obj Optional instance to populate. - * @return {module:model/BaseUserMeAllOf} The populated BaseUserMeAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseUserMeAllOf(); - - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('company_name')) { - obj['company_name'] = ApiClient.convertToType(data['company_name'], 'String'); - - delete data['company_name']; - } - if (data.hasOwnProperty('company_domain')) { - obj['company_domain'] = ApiClient.convertToType(data['company_domain'], 'String'); - - delete data['company_domain']; - } - if (data.hasOwnProperty('company_country')) { - obj['company_country'] = ApiClient.convertToType(data['company_country'], 'String'); - - delete data['company_country']; - } - if (data.hasOwnProperty('company_industry')) { - obj['company_industry'] = ApiClient.convertToType(data['company_industry'], 'String'); - - delete data['company_industry']; - } - if (data.hasOwnProperty('language')) { - obj['language'] = BaseUserMeAllOfLanguage.constructFromObject(data['language']); - - delete data['language']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The user company ID - * @member {Number} company_id - */ -BaseUserMeAllOf.prototype['company_id'] = undefined; - -/** - * The user company name - * @member {String} company_name - */ -BaseUserMeAllOf.prototype['company_name'] = undefined; - -/** - * The user company domain - * @member {String} company_domain - */ -BaseUserMeAllOf.prototype['company_domain'] = undefined; - -/** - * The user company country - * @member {String} company_country - */ -BaseUserMeAllOf.prototype['company_country'] = undefined; - -/** - * The user company industry - * @member {String} company_industry - */ -BaseUserMeAllOf.prototype['company_industry'] = undefined; - -/** - * @member {module:model/BaseUserMeAllOfLanguage} language - */ -BaseUserMeAllOf.prototype['language'] = undefined; - - - - - - -export default BaseUserMeAllOf; - diff --git a/src/model/BaseUserMeAllOfLanguage.js b/src/model/BaseUserMeAllOfLanguage.js deleted file mode 100644 index 0563c444..00000000 --- a/src/model/BaseUserMeAllOfLanguage.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BaseUserMeAllOfLanguage model module. - * @module model/BaseUserMeAllOfLanguage - * @version 1.0.0 - */ -class BaseUserMeAllOfLanguage { - /** - * Constructs a new BaseUserMeAllOfLanguage. - * The user language details - * @alias module:model/BaseUserMeAllOfLanguage - */ - constructor() { - - BaseUserMeAllOfLanguage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseUserMeAllOfLanguage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseUserMeAllOfLanguage} obj Optional instance to populate. - * @return {module:model/BaseUserMeAllOfLanguage} The populated BaseUserMeAllOfLanguage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseUserMeAllOfLanguage(); - - if (data.hasOwnProperty('language_code')) { - obj['language_code'] = ApiClient.convertToType(data['language_code'], 'String'); - - delete data['language_code']; - } - if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String'); - - delete data['country_code']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The language code. E.g. en - * @member {String} language_code - */ -BaseUserMeAllOfLanguage.prototype['language_code'] = undefined; - -/** - * The country code. E.g. US - * @member {String} country_code - */ -BaseUserMeAllOfLanguage.prototype['country_code'] = undefined; - - - - - - -export default BaseUserMeAllOfLanguage; - diff --git a/src/model/BaseWebhook.js b/src/model/BaseWebhook.js deleted file mode 100644 index dd8d351e..00000000 --- a/src/model/BaseWebhook.js +++ /dev/null @@ -1,288 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBooleanDefault1 from './NumberBooleanDefault1'; - -/** - * The BaseWebhook model module. - * @module model/BaseWebhook - * @version 1.0.0 - */ -class BaseWebhook { - /** - * Constructs a new BaseWebhook. - * @alias module:model/BaseWebhook - */ - constructor() { - - BaseWebhook.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BaseWebhook from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BaseWebhook} obj Optional instance to populate. - * @return {module:model/BaseWebhook} The populated BaseWebhook instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BaseWebhook(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('event_action')) { - obj['event_action'] = ApiClient.convertToType(data['event_action'], 'String'); - - delete data['event_action']; - } - if (data.hasOwnProperty('event_object')) { - obj['event_object'] = ApiClient.convertToType(data['event_object'], 'String'); - - delete data['event_object']; - } - if (data.hasOwnProperty('subscription_url')) { - obj['subscription_url'] = ApiClient.convertToType(data['subscription_url'], 'String'); - - delete data['subscription_url']; - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = ApiClient.convertToType(data['is_active'], NumberBooleanDefault1); - - delete data['is_active']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('remove_time')) { - obj['remove_time'] = ApiClient.convertToType(data['remove_time'], 'Date'); - - delete data['remove_time']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('http_auth_user')) { - obj['http_auth_user'] = ApiClient.convertToType(data['http_auth_user'], 'String'); - - delete data['http_auth_user']; - } - if (data.hasOwnProperty('http_auth_password')) { - obj['http_auth_password'] = ApiClient.convertToType(data['http_auth_password'], 'String'); - - delete data['http_auth_password']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - if (data.hasOwnProperty('remove_reason')) { - obj['remove_reason'] = ApiClient.convertToType(data['remove_reason'], 'String'); - - delete data['remove_reason']; - } - if (data.hasOwnProperty('last_delivery_time')) { - obj['last_delivery_time'] = ApiClient.convertToType(data['last_delivery_time'], 'Date'); - - delete data['last_delivery_time']; - } - if (data.hasOwnProperty('last_http_status')) { - obj['last_http_status'] = ApiClient.convertToType(data['last_http_status'], 'Number'); - - delete data['last_http_status']; - } - if (data.hasOwnProperty('admin_id')) { - obj['admin_id'] = ApiClient.convertToType(data['admin_id'], 'Number'); - - delete data['admin_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the Webhook - * @member {Number} id - */ -BaseWebhook.prototype['id'] = undefined; - -/** - * The ID of the company related to the Webhook - * @member {Number} company_id - */ -BaseWebhook.prototype['company_id'] = undefined; - -/** - * The ID of the user who owns the Webhook - * @member {Number} owner_id - */ -BaseWebhook.prototype['owner_id'] = undefined; - -/** - * The ID of the user related to the Webhook - * @member {Number} user_id - */ -BaseWebhook.prototype['user_id'] = undefined; - -/** - * The Webhook action - * @member {String} event_action - */ -BaseWebhook.prototype['event_action'] = undefined; - -/** - * The Webhook object - * @member {String} event_object - */ -BaseWebhook.prototype['event_object'] = undefined; - -/** - * The subscription URL of the Webhook - * @member {String} subscription_url - */ -BaseWebhook.prototype['subscription_url'] = undefined; - -/** - * The Webhook's status - * @member {module:model/NumberBooleanDefault1} is_active - */ -BaseWebhook.prototype['is_active'] = undefined; - -/** - * The date when the Webhook was added - * @member {Date} add_time - */ -BaseWebhook.prototype['add_time'] = undefined; - -/** - * The date when the Webhook was removed (if removed) - * @member {Date} remove_time - */ -BaseWebhook.prototype['remove_time'] = undefined; - -/** - * The type of the Webhook - * @member {module:model/BaseWebhook.TypeEnum} type - */ -BaseWebhook.prototype['type'] = undefined; - -/** - * The username of the `subscription_url` of the Webhook - * @member {String} http_auth_user - */ -BaseWebhook.prototype['http_auth_user'] = undefined; - -/** - * The password of the `subscription_url` of the Webhook - * @member {String} http_auth_password - */ -BaseWebhook.prototype['http_auth_password'] = undefined; - -/** - * Any additional data related to the Webhook - * @member {Object} additional_data - */ -BaseWebhook.prototype['additional_data'] = undefined; - -/** - * The removal reason of the Webhook (if removed) - * @member {String} remove_reason - */ -BaseWebhook.prototype['remove_reason'] = undefined; - -/** - * The last delivery time of the Webhook - * @member {Date} last_delivery_time - */ -BaseWebhook.prototype['last_delivery_time'] = undefined; - -/** - * The last delivery HTTP status of the Webhook - * @member {Number} last_http_status - */ -BaseWebhook.prototype['last_http_status'] = undefined; - -/** - * The ID of the admin of the Webhook - * @member {Number} admin_id - */ -BaseWebhook.prototype['admin_id'] = undefined; - - - - - -/** - * Allowed values for the type property. - * @enum {String} - * @readonly - */ -BaseWebhook['TypeEnum'] = { - - /** - * value: "general" - * @const - */ - "general": "general", - - /** - * value: "app" - * @const - */ - "app": "app" -}; - - - -export default BaseWebhook; - diff --git a/src/model/BasicDeal.js b/src/model/BasicDeal.js deleted file mode 100644 index ddf937f4..00000000 --- a/src/model/BasicDeal.js +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import VisibleTo from './VisibleTo'; - -/** - * The BasicDeal model module. - * @module model/BasicDeal - * @version 1.0.0 - */ -class BasicDeal { - /** - * Constructs a new BasicDeal. - * @alias module:model/BasicDeal - */ - constructor() { - - BasicDeal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasicDeal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasicDeal} obj Optional instance to populate. - * @return {module:model/BasicDeal} The populated BasicDeal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasicDeal(); - - if (data.hasOwnProperty('won_time')) { - obj['won_time'] = ApiClient.convertToType(data['won_time'], 'String'); - - delete data['won_time']; - } - if (data.hasOwnProperty('lost_time')) { - obj['lost_time'] = ApiClient.convertToType(data['lost_time'], 'String'); - - delete data['lost_time']; - } - if (data.hasOwnProperty('close_time')) { - obj['close_time'] = ApiClient.convertToType(data['close_time'], 'String'); - - delete data['close_time']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('probability')) { - obj['probability'] = ApiClient.convertToType(data['probability'], 'Number'); - - delete data['probability']; - } - if (data.hasOwnProperty('lost_reason')) { - obj['lost_reason'] = ApiClient.convertToType(data['lost_reason'], 'String'); - - delete data['lost_reason']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. - * @member {String} won_time - */ -BasicDeal.prototype['won_time'] = undefined; - -/** - * The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. - * @member {String} lost_time - */ -BasicDeal.prototype['lost_time'] = undefined; - -/** - * The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} close_time - */ -BasicDeal.prototype['close_time'] = undefined; - -/** - * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. - * @member {Date} expected_close_date - */ -BasicDeal.prototype['expected_close_date'] = undefined; - -/** - * The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. - * @member {Number} probability - */ -BasicDeal.prototype['probability'] = undefined; - -/** - * The optional message about why the deal was lost (to be used when status = lost) - * @member {String} lost_reason - */ -BasicDeal.prototype['lost_reason'] = undefined; - -/** - * The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -BasicDeal.prototype['visible_to'] = undefined; - - - - - - -export default BasicDeal; - diff --git a/src/model/BasicDealProduct.js b/src/model/BasicDealProduct.js deleted file mode 100644 index 6c87816b..00000000 --- a/src/model/BasicDealProduct.js +++ /dev/null @@ -1,347 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasicDealProductAllOf from './BasicDealProductAllOf'; -import BillingFrequency from './BillingFrequency'; -import NewDealProductAllOf from './NewDealProductAllOf'; -import NewDealProductAllOf1 from './NewDealProductAllOf1'; -import NewDealProductAllOf2 from './NewDealProductAllOf2'; - -/** - * The BasicDealProduct model module. - * @module model/BasicDealProduct - * @version 1.0.0 - */ -class BasicDealProduct { - /** - * Constructs a new BasicDealProduct. - * @alias module:model/BasicDealProduct - * @implements module:model/BasicDealProductAllOf - * @implements module:model/NewDealProductAllOf - * @implements module:model/NewDealProductAllOf1 - * @implements module:model/NewDealProductAllOf2 - */ - constructor() { - BasicDealProductAllOf.initialize(this);NewDealProductAllOf.initialize(this);NewDealProductAllOf1.initialize(this);NewDealProductAllOf2.initialize(this); - BasicDealProduct.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasicDealProduct from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasicDealProduct} obj Optional instance to populate. - * @return {module:model/BasicDealProduct} The populated BasicDealProduct instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasicDealProduct(); - BasicDealProductAllOf.constructFromObject(data, obj); - NewDealProductAllOf.constructFromObject(data, obj); - NewDealProductAllOf1.constructFromObject(data, obj); - NewDealProductAllOf2.constructFromObject(data, obj); - - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('item_price')) { - obj['item_price'] = ApiClient.convertToType(data['item_price'], 'Number'); - - delete data['item_price']; - } - if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number'); - - delete data['quantity']; - } - if (data.hasOwnProperty('discount')) { - obj['discount'] = ApiClient.convertToType(data['discount'], 'Number'); - - delete data['discount']; - } - if (data.hasOwnProperty('discount_type')) { - obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String'); - - delete data['discount_type']; - } - if (data.hasOwnProperty('product_variation_id')) { - obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); - - delete data['product_variation_id']; - } - if (data.hasOwnProperty('comments')) { - obj['comments'] = ApiClient.convertToType(data['comments'], 'String'); - - delete data['comments']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('tax_method')) { - obj['tax_method'] = ApiClient.convertToType(data['tax_method'], 'String'); - - delete data['tax_method']; - } - if (data.hasOwnProperty('enabled_flag')) { - obj['enabled_flag'] = ApiClient.convertToType(data['enabled_flag'], 'Boolean'); - - delete data['enabled_flag']; - } - if (data.hasOwnProperty('billing_frequency')) { - obj['billing_frequency'] = BillingFrequency.constructFromObject(data['billing_frequency']); - - delete data['billing_frequency']; - } - if (data.hasOwnProperty('billing_frequency_cycles')) { - obj['billing_frequency_cycles'] = ApiClient.convertToType(data['billing_frequency_cycles'], 'Number'); - - delete data['billing_frequency_cycles']; - } - if (data.hasOwnProperty('billing_start_date')) { - obj['billing_start_date'] = ApiClient.convertToType(data['billing_start_date'], 'String'); - - delete data['billing_start_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product to use - * @member {Number} product_id - */ -BasicDealProduct.prototype['product_id'] = undefined; - -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -BasicDealProduct.prototype['item_price'] = undefined; - -/** - * Quantity – e.g. how many items of this product will be added to the deal - * @member {Number} quantity - */ -BasicDealProduct.prototype['quantity'] = undefined; - -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -BasicDealProduct.prototype['discount'] = 0; - -/** - * The type of the discount's value - * @member {module:model/BasicDealProduct.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -BasicDealProduct.prototype['discount_type'] = 'percentage'; - -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -BasicDealProduct.prototype['product_variation_id'] = undefined; - -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -BasicDealProduct.prototype['comments'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -BasicDealProduct.prototype['tax'] = 0; - -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal - * @member {module:model/BasicDealProduct.TaxMethodEnum} tax_method - */ -BasicDealProduct.prototype['tax_method'] = undefined; - -/** - * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default - * @member {Boolean} enabled_flag - * @default true - */ -BasicDealProduct.prototype['enabled_flag'] = true; - -/** - * @member {module:model/BillingFrequency} billing_frequency - */ -BasicDealProduct.prototype['billing_frequency'] = undefined; - -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -BasicDealProduct.prototype['billing_frequency_cycles'] = undefined; - -/** - * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future - * @member {String} billing_start_date - */ -BasicDealProduct.prototype['billing_start_date'] = undefined; - - -// Implement BasicDealProductAllOf interface: -/** - * The ID of the product to use - * @member {Number} product_id - */ -BasicDealProductAllOf.prototype['product_id'] = undefined; -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -BasicDealProductAllOf.prototype['item_price'] = undefined; -/** - * Quantity – e.g. how many items of this product will be added to the deal - * @member {Number} quantity - */ -BasicDealProductAllOf.prototype['quantity'] = undefined; -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -BasicDealProductAllOf.prototype['discount'] = 0; -/** - * The type of the discount's value - * @member {module:model/BasicDealProductAllOf.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -BasicDealProductAllOf.prototype['discount_type'] = 'percentage'; -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -BasicDealProductAllOf.prototype['product_variation_id'] = undefined; -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -BasicDealProductAllOf.prototype['comments'] = undefined; -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -BasicDealProductAllOf.prototype['tax'] = 0; -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal - * @member {module:model/BasicDealProductAllOf.TaxMethodEnum} tax_method - */ -BasicDealProductAllOf.prototype['tax_method'] = undefined; -/** - * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default - * @member {Boolean} enabled_flag - * @default true - */ -BasicDealProductAllOf.prototype['enabled_flag'] = true; -// Implement NewDealProductAllOf interface: -/** - * @member {module:model/BillingFrequency} billing_frequency - */ -NewDealProductAllOf.prototype['billing_frequency'] = undefined; -// Implement NewDealProductAllOf1 interface: -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -NewDealProductAllOf1.prototype['billing_frequency_cycles'] = undefined; -// Implement NewDealProductAllOf2 interface: -/** - * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future - * @member {String} billing_start_date - */ -NewDealProductAllOf2.prototype['billing_start_date'] = undefined; - - - -/** - * Allowed values for the discount_type property. - * @enum {String} - * @readonly - */ -BasicDealProduct['DiscountTypeEnum'] = { - - /** - * value: "percentage" - * @const - */ - "percentage": "percentage", - - /** - * value: "amount" - * @const - */ - "amount": "amount" -}; - - -/** - * Allowed values for the tax_method property. - * @enum {String} - * @readonly - */ -BasicDealProduct['TaxMethodEnum'] = { - - /** - * value: "exclusive" - * @const - */ - "exclusive": "exclusive", - - /** - * value: "inclusive" - * @const - */ - "inclusive": "inclusive", - - /** - * value: "none" - * @const - */ - "none": "none" -}; - - - -export default BasicDealProduct; - diff --git a/src/model/BasicDealProductAllOf.js b/src/model/BasicDealProductAllOf.js deleted file mode 100644 index 6df01b66..00000000 --- a/src/model/BasicDealProductAllOf.js +++ /dev/null @@ -1,230 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BasicDealProductAllOf model module. - * @module model/BasicDealProductAllOf - * @version 1.0.0 - */ -class BasicDealProductAllOf { - /** - * Constructs a new BasicDealProductAllOf. - * @alias module:model/BasicDealProductAllOf - */ - constructor() { - - BasicDealProductAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasicDealProductAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasicDealProductAllOf} obj Optional instance to populate. - * @return {module:model/BasicDealProductAllOf} The populated BasicDealProductAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasicDealProductAllOf(); - - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('item_price')) { - obj['item_price'] = ApiClient.convertToType(data['item_price'], 'Number'); - - delete data['item_price']; - } - if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number'); - - delete data['quantity']; - } - if (data.hasOwnProperty('discount')) { - obj['discount'] = ApiClient.convertToType(data['discount'], 'Number'); - - delete data['discount']; - } - if (data.hasOwnProperty('discount_type')) { - obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String'); - - delete data['discount_type']; - } - if (data.hasOwnProperty('product_variation_id')) { - obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); - - delete data['product_variation_id']; - } - if (data.hasOwnProperty('comments')) { - obj['comments'] = ApiClient.convertToType(data['comments'], 'String'); - - delete data['comments']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('tax_method')) { - obj['tax_method'] = ApiClient.convertToType(data['tax_method'], 'String'); - - delete data['tax_method']; - } - if (data.hasOwnProperty('enabled_flag')) { - obj['enabled_flag'] = ApiClient.convertToType(data['enabled_flag'], 'Boolean'); - - delete data['enabled_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product to use - * @member {Number} product_id - */ -BasicDealProductAllOf.prototype['product_id'] = undefined; - -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -BasicDealProductAllOf.prototype['item_price'] = undefined; - -/** - * Quantity – e.g. how many items of this product will be added to the deal - * @member {Number} quantity - */ -BasicDealProductAllOf.prototype['quantity'] = undefined; - -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -BasicDealProductAllOf.prototype['discount'] = 0; - -/** - * The type of the discount's value - * @member {module:model/BasicDealProductAllOf.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -BasicDealProductAllOf.prototype['discount_type'] = 'percentage'; - -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -BasicDealProductAllOf.prototype['product_variation_id'] = undefined; - -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -BasicDealProductAllOf.prototype['comments'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -BasicDealProductAllOf.prototype['tax'] = 0; - -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal - * @member {module:model/BasicDealProductAllOf.TaxMethodEnum} tax_method - */ -BasicDealProductAllOf.prototype['tax_method'] = undefined; - -/** - * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default - * @member {Boolean} enabled_flag - * @default true - */ -BasicDealProductAllOf.prototype['enabled_flag'] = true; - - - - - -/** - * Allowed values for the discount_type property. - * @enum {String} - * @readonly - */ -BasicDealProductAllOf['DiscountTypeEnum'] = { - - /** - * value: "percentage" - * @const - */ - "percentage": "percentage", - - /** - * value: "amount" - * @const - */ - "amount": "amount" -}; - - -/** - * Allowed values for the tax_method property. - * @enum {String} - * @readonly - */ -BasicDealProductAllOf['TaxMethodEnum'] = { - - /** - * value: "exclusive" - * @const - */ - "exclusive": "exclusive", - - /** - * value: "inclusive" - * @const - */ - "inclusive": "inclusive", - - /** - * value: "none" - * @const - */ - "none": "none" -}; - - - -export default BasicDealProductAllOf; - diff --git a/src/model/BasicGoal.js b/src/model/BasicGoal.js deleted file mode 100644 index abe0e49e..00000000 --- a/src/model/BasicGoal.js +++ /dev/null @@ -1,167 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BasicGoal model module. - * @module model/BasicGoal - * @version 1.0.0 - */ -class BasicGoal { - /** - * Constructs a new BasicGoal. - * @alias module:model/BasicGoal - */ - constructor() { - - BasicGoal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasicGoal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasicGoal} obj Optional instance to populate. - * @return {module:model/BasicGoal} The populated BasicGoal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasicGoal(); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('assignee')) { - obj['assignee'] = ApiClient.convertToType(data['assignee'], Object); - - delete data['assignee']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], Object); - - delete data['type']; - } - if (data.hasOwnProperty('expected_outcome')) { - obj['expected_outcome'] = ApiClient.convertToType(data['expected_outcome'], Object); - - delete data['expected_outcome']; - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], Object); - - delete data['duration']; - } - if (data.hasOwnProperty('interval')) { - obj['interval'] = ApiClient.convertToType(data['interval'], 'String'); - - delete data['interval']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the goal - * @member {String} title - */ -BasicGoal.prototype['title'] = undefined; - -/** - * Who this goal is assigned to. It requires the following JSON structure: `{ \"id\": \"1\", \"type\": \"person\" }`. `type` can be either `person`, `company` or `team`. ID of the assignee person, company or team. - * @member {Object} assignee - */ -BasicGoal.prototype['assignee'] = undefined; - -/** - * The type of the goal. It requires the following JSON structure: `{ \"name\": \"deals_started\", \"params\": { \"pipeline_id\": [1, 2], \"activity_type_id\": [9] } }`. Type can be one of: `deals_won`, `deals_progressed`, `activities_completed`, `activities_added`, `deals_started` or `revenue_forecast`. `params` can include `pipeline_id`, `stage_id` or `activity_type_id`. `stage_id` is related to only `deals_progressed` type of goals and `activity_type_id` to `activities_completed` or `activities_added` types of goals. The `pipeline_id` and `activity_type_id` need to be given as an array of integers. To track the goal in all pipelines, set `pipeline_id` as `null` and similarly, to track the goal for all activities, set `activity_type_id` as `null`.” - * @member {Object} type - */ -BasicGoal.prototype['type'] = undefined; - -/** - * The expected outcome of the goal. Expected outcome can be tracked either by `quantity` or by `sum`. It requires the following JSON structure: `{ \"target\": \"50\", \"tracking_metric\": \"quantity\" }` or `{ \"target\": \"50\", \"tracking_metric\": \"sum\", \"currency_id\": 1 }`. `currency_id` should only be added to `sum` type of goals. - * @member {Object} expected_outcome - */ -BasicGoal.prototype['expected_outcome'] = undefined; - -/** - * The date when the goal starts and ends. It requires the following JSON structure: `{ \"start\": \"2019-01-01\", \"end\": \"2022-12-31\" }`. Date in format of YYYY-MM-DD. \"end\" can be set to `null` for an infinite, open-ended goal. - * @member {Object} duration - */ -BasicGoal.prototype['duration'] = undefined; - -/** - * The interval of the goal - * @member {module:model/BasicGoal.IntervalEnum} interval - */ -BasicGoal.prototype['interval'] = undefined; - - - - - -/** - * Allowed values for the interval property. - * @enum {String} - * @readonly - */ -BasicGoal['IntervalEnum'] = { - - /** - * value: "weekly" - * @const - */ - "weekly": "weekly", - - /** - * value: "monthly" - * @const - */ - "monthly": "monthly", - - /** - * value: "quarterly" - * @const - */ - "quarterly": "quarterly", - - /** - * value: "yearly" - * @const - */ - "yearly": "yearly" -}; - - - -export default BasicGoal; - diff --git a/src/model/BasicOrganization.js b/src/model/BasicOrganization.js deleted file mode 100644 index 74191478..00000000 --- a/src/model/BasicOrganization.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import VisibleTo from './VisibleTo'; - -/** - * The BasicOrganization model module. - * @module model/BasicOrganization - * @version 1.0.0 - */ -class BasicOrganization { - /** - * Constructs a new BasicOrganization. - * @alias module:model/BasicOrganization - */ - constructor() { - - BasicOrganization.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasicOrganization from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasicOrganization} obj Optional instance to populate. - * @return {module:model/BasicOrganization} The populated BasicOrganization instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasicOrganization(); - - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. - * @member {Number} owner_id - */ -BasicOrganization.prototype['owner_id'] = undefined; - -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BasicOrganization.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BasicOrganization.prototype['label_ids'] = undefined; - -/** - * The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -BasicOrganization.prototype['visible_to'] = undefined; - - - - - - -export default BasicOrganization; - diff --git a/src/model/BasicPerson.js b/src/model/BasicPerson.js deleted file mode 100644 index 1841c794..00000000 --- a/src/model/BasicPerson.js +++ /dev/null @@ -1,171 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePersonItemPhone from './BasePersonItemPhone'; -import BasicPersonEmail from './BasicPersonEmail'; -import MarketingStatus from './MarketingStatus'; -import VisibleTo from './VisibleTo'; - -/** - * The BasicPerson model module. - * @module model/BasicPerson - * @version 1.0.0 - */ -class BasicPerson { - /** - * Constructs a new BasicPerson. - * @alias module:model/BasicPerson - */ - constructor() { - - BasicPerson.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasicPerson from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasicPerson} obj Optional instance to populate. - * @return {module:model/BasicPerson} The populated BasicPerson instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasicPerson(); - - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], [BasicPersonEmail]); - - delete data['email']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], [BasePersonItemPhone]); - - delete data['phone']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('marketing_status')) { - obj['marketing_status'] = ApiClient.convertToType(data['marketing_status'], MarketingStatus); - - delete data['marketing_status']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. - * @member {Number} owner_id - */ -BasicPerson.prototype['owner_id'] = undefined; - -/** - * The ID of the organization this person will belong to - * @member {Number} org_id - */ -BasicPerson.prototype['org_id'] = undefined; - -/** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. - * @member {Array.} email - */ -BasicPerson.prototype['email'] = undefined; - -/** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @member {Array.} phone - */ -BasicPerson.prototype['phone'] = undefined; - -/** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BasicPerson.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BasicPerson.prototype['label_ids'] = undefined; - -/** - * The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -BasicPerson.prototype['visible_to'] = undefined; - -/** - * If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.
ValueDescription
`no_consent`The customer has not given consent to receive any marketing communications
`unsubscribed`The customers have unsubscribed from ALL marketing communications
`subscribed`The customers are subscribed and are counted towards marketing caps
`archived`The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for
- * @member {module:model/MarketingStatus} marketing_status - */ -BasicPerson.prototype['marketing_status'] = undefined; - -/** - * The optional creation date & time of the person in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -BasicPerson.prototype['add_time'] = undefined; - - - - - - -export default BasicPerson; - diff --git a/src/model/BasicPersonEmail.js b/src/model/BasicPersonEmail.js deleted file mode 100644 index fbbc71c8..00000000 --- a/src/model/BasicPersonEmail.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BasicPersonEmail model module. - * @module model/BasicPersonEmail - * @version 1.0.0 - */ -class BasicPersonEmail { - /** - * Constructs a new BasicPersonEmail. - * @alias module:model/BasicPersonEmail - */ - constructor() { - - BasicPersonEmail.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BasicPersonEmail from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasicPersonEmail} obj Optional instance to populate. - * @return {module:model/BasicPersonEmail} The populated BasicPersonEmail instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasicPersonEmail(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - - delete data['value']; - } - if (data.hasOwnProperty('primary')) { - obj['primary'] = ApiClient.convertToType(data['primary'], 'Boolean'); - - delete data['primary']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The email - * @member {String} value - */ -BasicPersonEmail.prototype['value'] = undefined; - -/** - * Boolean that indicates if email is primary for the person or not - * @member {Boolean} primary - */ -BasicPersonEmail.prototype['primary'] = undefined; - -/** - * The label that indicates the type of the email. (Possible values - work, home or other) - * @member {String} label - */ -BasicPersonEmail.prototype['label'] = undefined; - - - - - - -export default BasicPersonEmail; - diff --git a/src/model/BasicProductField.js b/src/model/BasicProductField.js deleted file mode 100644 index 05dd4b05..00000000 --- a/src/model/BasicProductField.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BasicProductField model module. - * @module model/BasicProductField - * @version 1.0.0 - */ -class BasicProductField { - /** - * Constructs a new BasicProductField. - * @alias module:model/BasicProductField - * @param name {String} The name of the field - */ - constructor(name) { - - BasicProductField.initialize(this, name); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name) { - obj['name'] = name; - } - - /** - * Constructs a BasicProductField from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BasicProductField} obj Optional instance to populate. - * @return {module:model/BasicProductField} The populated BasicProductField instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BasicProductField(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Object]); - - delete data['options']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the field - * @member {String} name - */ -BasicProductField.prototype['name'] = undefined; - -/** - * When `field_type` is either set or enum, possible options on update must be supplied as an array of objects each containing id and label, for example: [{\"id\":1, \"label\":\"red\"},{\"id\":2, \"label\":\"blue\"},{\"id\":3, \"label\":\"lilac\"}] - * @member {Array.} options - */ -BasicProductField.prototype['options'] = undefined; - - - - - - -export default BasicProductField; - diff --git a/src/model/BillingFrequency.js b/src/model/BillingFrequency.js deleted file mode 100644 index 705ff2c2..00000000 --- a/src/model/BillingFrequency.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class BillingFrequency. -* @enum {} -* @readonly -*/ -export default class BillingFrequency { - - /** - * value: "one-time" - * @const - */ - "one-time" = "one-time"; - - - /** - * value: "annually" - * @const - */ - "annually" = "annually"; - - - /** - * value: "semi-annually" - * @const - */ - "semi-annually" = "semi-annually"; - - - /** - * value: "quarterly" - * @const - */ - "quarterly" = "quarterly"; - - - /** - * value: "monthly" - * @const - */ - "monthly" = "monthly"; - - - /** - * value: "weekly" - * @const - */ - "weekly" = "weekly"; - - - - /** - * Returns a BillingFrequency enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/BillingFrequency} The enum BillingFrequency value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/BillingFrequency1.js b/src/model/BillingFrequency1.js deleted file mode 100644 index ef8894df..00000000 --- a/src/model/BillingFrequency1.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class BillingFrequency1. -* @enum {} -* @readonly -*/ -export default class BillingFrequency1 { - - /** - * value: "one-time" - * @const - */ - "one-time" = "one-time"; - - - /** - * value: "annually" - * @const - */ - "annually" = "annually"; - - - /** - * value: "semi-annually" - * @const - */ - "semi-annually" = "semi-annually"; - - - /** - * value: "quarterly" - * @const - */ - "quarterly" = "quarterly"; - - - /** - * value: "monthly" - * @const - */ - "monthly" = "monthly"; - - - /** - * value: "weekly" - * @const - */ - "weekly" = "weekly"; - - - - /** - * Returns a BillingFrequency1 enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/BillingFrequency1} The enum BillingFrequency1 value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/BulkDeleteResponse.js b/src/model/BulkDeleteResponse.js deleted file mode 100644 index ad6b4be8..00000000 --- a/src/model/BulkDeleteResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import BulkDeleteResponseAllOf from './BulkDeleteResponseAllOf'; -import BulkDeleteResponseAllOfData from './BulkDeleteResponseAllOfData'; - -/** - * The BulkDeleteResponse model module. - * @module model/BulkDeleteResponse - * @version 1.0.0 - */ -class BulkDeleteResponse { - /** - * Constructs a new BulkDeleteResponse. - * @alias module:model/BulkDeleteResponse - * @implements module:model/BaseResponse - * @implements module:model/BulkDeleteResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);BulkDeleteResponseAllOf.initialize(this); - BulkDeleteResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BulkDeleteResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BulkDeleteResponse} obj Optional instance to populate. - * @return {module:model/BulkDeleteResponse} The populated BulkDeleteResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BulkDeleteResponse(); - BaseResponse.constructFromObject(data, obj); - BulkDeleteResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BulkDeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -BulkDeleteResponse.prototype['success'] = undefined; - -/** - * @member {module:model/BulkDeleteResponseAllOfData} data - */ -BulkDeleteResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement BulkDeleteResponseAllOf interface: -/** - * @member {module:model/BulkDeleteResponseAllOfData} data - */ -BulkDeleteResponseAllOf.prototype['data'] = undefined; - - - - -export default BulkDeleteResponse; - diff --git a/src/model/BulkDeleteResponseAllOf.js b/src/model/BulkDeleteResponseAllOf.js deleted file mode 100644 index 38c75911..00000000 --- a/src/model/BulkDeleteResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BulkDeleteResponseAllOfData from './BulkDeleteResponseAllOfData'; - -/** - * The BulkDeleteResponseAllOf model module. - * @module model/BulkDeleteResponseAllOf - * @version 1.0.0 - */ -class BulkDeleteResponseAllOf { - /** - * Constructs a new BulkDeleteResponseAllOf. - * @alias module:model/BulkDeleteResponseAllOf - */ - constructor() { - - BulkDeleteResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BulkDeleteResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BulkDeleteResponseAllOf} obj Optional instance to populate. - * @return {module:model/BulkDeleteResponseAllOf} The populated BulkDeleteResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BulkDeleteResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = BulkDeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BulkDeleteResponseAllOfData} data - */ -BulkDeleteResponseAllOf.prototype['data'] = undefined; - - - - - - -export default BulkDeleteResponseAllOf; - diff --git a/src/model/BulkDeleteResponseAllOfData.js b/src/model/BulkDeleteResponseAllOfData.js deleted file mode 100644 index b138729e..00000000 --- a/src/model/BulkDeleteResponseAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BulkDeleteResponseAllOfData model module. - * @module model/BulkDeleteResponseAllOfData - * @version 1.0.0 - */ -class BulkDeleteResponseAllOfData { - /** - * Constructs a new BulkDeleteResponseAllOfData. - * @alias module:model/BulkDeleteResponseAllOfData - */ - constructor() { - - BulkDeleteResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BulkDeleteResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BulkDeleteResponseAllOfData} obj Optional instance to populate. - * @return {module:model/BulkDeleteResponseAllOfData} The populated BulkDeleteResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BulkDeleteResponseAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of deleted field IDs - * @member {Array.} id - */ -BulkDeleteResponseAllOfData.prototype['id'] = undefined; - - - - - - -export default BulkDeleteResponseAllOfData; - diff --git a/src/model/CalculatedFields.js b/src/model/CalculatedFields.js deleted file mode 100644 index db326803..00000000 --- a/src/model/CalculatedFields.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CalculatedFields model module. - * @module model/CalculatedFields - * @version 1.0.0 - */ -class CalculatedFields { - /** - * Constructs a new CalculatedFields. - * @alias module:model/CalculatedFields - */ - constructor() { - - CalculatedFields.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CalculatedFields from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CalculatedFields} obj Optional instance to populate. - * @return {module:model/CalculatedFields} The populated CalculatedFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CalculatedFields(); - - if (data.hasOwnProperty('calculated_type')) { - obj['calculated_type'] = ApiClient.convertToType(data['calculated_type'], 'String'); - - delete data['calculated_type']; - } - if (data.hasOwnProperty('calculated_related_org_id')) { - obj['calculated_related_org_id'] = ApiClient.convertToType(data['calculated_related_org_id'], 'Number'); - - delete data['calculated_related_org_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The calculated type of the relationship with the linked organization - * @member {String} calculated_type - */ -CalculatedFields.prototype['calculated_type'] = undefined; - -/** - * The ID of the linked organization - * @member {Number} calculated_related_org_id - */ -CalculatedFields.prototype['calculated_related_org_id'] = undefined; - - - - - - -export default CalculatedFields; - diff --git a/src/model/CallLogBadRequestResponse.js b/src/model/CallLogBadRequestResponse.js deleted file mode 100644 index f0f8bf27..00000000 --- a/src/model/CallLogBadRequestResponse.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogBadRequestResponse model module. - * @module model/CallLogBadRequestResponse - * @version 1.0.0 - */ -class CallLogBadRequestResponse { - /** - * Constructs a new CallLogBadRequestResponse. - * @alias module:model/CallLogBadRequestResponse - */ - constructor() { - - CallLogBadRequestResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogBadRequestResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogBadRequestResponse} obj Optional instance to populate. - * @return {module:model/CallLogBadRequestResponse} The populated CallLogBadRequestResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogBadRequestResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogBadRequestResponse.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogBadRequestResponse.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogBadRequestResponse.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogBadRequestResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogBadRequestResponse.prototype['additional_data'] = undefined; - - - - - - -export default CallLogBadRequestResponse; - diff --git a/src/model/CallLogConflictResponse.js b/src/model/CallLogConflictResponse.js deleted file mode 100644 index fc4107d9..00000000 --- a/src/model/CallLogConflictResponse.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogConflictResponse model module. - * @module model/CallLogConflictResponse - * @version 1.0.0 - */ -class CallLogConflictResponse { - /** - * Constructs a new CallLogConflictResponse. - * @alias module:model/CallLogConflictResponse - */ - constructor() { - - CallLogConflictResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogConflictResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogConflictResponse} obj Optional instance to populate. - * @return {module:model/CallLogConflictResponse} The populated CallLogConflictResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogConflictResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogConflictResponse.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogConflictResponse.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogConflictResponse.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogConflictResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogConflictResponse.prototype['additional_data'] = undefined; - - - - - - -export default CallLogConflictResponse; - diff --git a/src/model/CallLogForbiddenResponse.js b/src/model/CallLogForbiddenResponse.js deleted file mode 100644 index a88c5f9f..00000000 --- a/src/model/CallLogForbiddenResponse.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogForbiddenResponse model module. - * @module model/CallLogForbiddenResponse - * @version 1.0.0 - */ -class CallLogForbiddenResponse { - /** - * Constructs a new CallLogForbiddenResponse. - * @alias module:model/CallLogForbiddenResponse - */ - constructor() { - - CallLogForbiddenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogForbiddenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogForbiddenResponse} obj Optional instance to populate. - * @return {module:model/CallLogForbiddenResponse} The populated CallLogForbiddenResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogForbiddenResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogForbiddenResponse.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogForbiddenResponse.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogForbiddenResponse.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogForbiddenResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogForbiddenResponse.prototype['additional_data'] = undefined; - - - - - - -export default CallLogForbiddenResponse; - diff --git a/src/model/CallLogGoneResponse.js b/src/model/CallLogGoneResponse.js deleted file mode 100644 index 43051cef..00000000 --- a/src/model/CallLogGoneResponse.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogGoneResponse model module. - * @module model/CallLogGoneResponse - * @version 1.0.0 - */ -class CallLogGoneResponse { - /** - * Constructs a new CallLogGoneResponse. - * @alias module:model/CallLogGoneResponse - */ - constructor() { - - CallLogGoneResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogGoneResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogGoneResponse} obj Optional instance to populate. - * @return {module:model/CallLogGoneResponse} The populated CallLogGoneResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogGoneResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogGoneResponse.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogGoneResponse.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogGoneResponse.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogGoneResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogGoneResponse.prototype['additional_data'] = undefined; - - - - - - -export default CallLogGoneResponse; - diff --git a/src/model/CallLogInternalErrorResponse.js b/src/model/CallLogInternalErrorResponse.js deleted file mode 100644 index f3936866..00000000 --- a/src/model/CallLogInternalErrorResponse.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogInternalErrorResponse model module. - * @module model/CallLogInternalErrorResponse - * @version 1.0.0 - */ -class CallLogInternalErrorResponse { - /** - * Constructs a new CallLogInternalErrorResponse. - * @alias module:model/CallLogInternalErrorResponse - */ - constructor() { - - CallLogInternalErrorResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogInternalErrorResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogInternalErrorResponse} obj Optional instance to populate. - * @return {module:model/CallLogInternalErrorResponse} The populated CallLogInternalErrorResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogInternalErrorResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogInternalErrorResponse.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogInternalErrorResponse.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogInternalErrorResponse.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogInternalErrorResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogInternalErrorResponse.prototype['additional_data'] = undefined; - - - - - - -export default CallLogInternalErrorResponse; - diff --git a/src/model/CallLogNotFoundResponse.js b/src/model/CallLogNotFoundResponse.js deleted file mode 100644 index 449f5576..00000000 --- a/src/model/CallLogNotFoundResponse.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogNotFoundResponse model module. - * @module model/CallLogNotFoundResponse - * @version 1.0.0 - */ -class CallLogNotFoundResponse { - /** - * Constructs a new CallLogNotFoundResponse. - * @alias module:model/CallLogNotFoundResponse - */ - constructor() { - - CallLogNotFoundResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogNotFoundResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogNotFoundResponse} obj Optional instance to populate. - * @return {module:model/CallLogNotFoundResponse} The populated CallLogNotFoundResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogNotFoundResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogNotFoundResponse.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogNotFoundResponse.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogNotFoundResponse.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogNotFoundResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogNotFoundResponse.prototype['additional_data'] = undefined; - - - - - - -export default CallLogNotFoundResponse; - diff --git a/src/model/CallLogObject.js b/src/model/CallLogObject.js deleted file mode 100644 index b92538a0..00000000 --- a/src/model/CallLogObject.js +++ /dev/null @@ -1,275 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogObject model module. - * @module model/CallLogObject - * @version 1.0.0 - */ -class CallLogObject { - /** - * Constructs a new CallLogObject. - * @alias module:model/CallLogObject - * @param outcome {module:model/CallLogObject.OutcomeEnum} Describes the outcome of the call - * @param toPhoneNumber {String} The number called - * @param startTime {Date} The date and time of the start of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @param endTime {Date} The date and time of the end of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. - */ - constructor(outcome, toPhoneNumber, startTime, endTime) { - - CallLogObject.initialize(this, outcome, toPhoneNumber, startTime, endTime); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, outcome, toPhoneNumber, startTime, endTime) { - obj['outcome'] = outcome; - obj['to_phone_number'] = toPhoneNumber; - obj['start_time'] = startTime; - obj['end_time'] = endTime; - } - - /** - * Constructs a CallLogObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogObject} obj Optional instance to populate. - * @return {module:model/CallLogObject} The populated CallLogObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogObject(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('activity_id')) { - obj['activity_id'] = ApiClient.convertToType(data['activity_id'], 'Number'); - - delete data['activity_id']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'String'); - - delete data['duration']; - } - if (data.hasOwnProperty('outcome')) { - obj['outcome'] = ApiClient.convertToType(data['outcome'], 'String'); - - delete data['outcome']; - } - if (data.hasOwnProperty('from_phone_number')) { - obj['from_phone_number'] = ApiClient.convertToType(data['from_phone_number'], 'String'); - - delete data['from_phone_number']; - } - if (data.hasOwnProperty('to_phone_number')) { - obj['to_phone_number'] = ApiClient.convertToType(data['to_phone_number'], 'String'); - - delete data['to_phone_number']; - } - if (data.hasOwnProperty('start_time')) { - obj['start_time'] = ApiClient.convertToType(data['start_time'], 'Date'); - - delete data['start_time']; - } - if (data.hasOwnProperty('end_time')) { - obj['end_time'] = ApiClient.convertToType(data['end_time'], 'Date'); - - delete data['end_time']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('note')) { - obj['note'] = ApiClient.convertToType(data['note'], 'String'); - - delete data['note']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the owner of the call log. Please note that a user without account settings access cannot create call logs for other users. - * @member {Number} user_id - */ -CallLogObject.prototype['user_id'] = undefined; - -/** - * If specified, this activity will be converted into a call log, with the information provided. When this field is used, you don't need to specify `deal_id`, `person_id` or `org_id`, as they will be ignored in favor of the values already available in the activity. The `activity_id` must refer to a `call` type activity. - * @member {Number} activity_id - */ -CallLogObject.prototype['activity_id'] = undefined; - -/** - * The name of the activity this call is attached to - * @member {String} subject - */ -CallLogObject.prototype['subject'] = undefined; - -/** - * The duration of the call in seconds - * @member {String} duration - */ -CallLogObject.prototype['duration'] = undefined; - -/** - * Describes the outcome of the call - * @member {module:model/CallLogObject.OutcomeEnum} outcome - */ -CallLogObject.prototype['outcome'] = undefined; - -/** - * The number that made the call - * @member {String} from_phone_number - */ -CallLogObject.prototype['from_phone_number'] = undefined; - -/** - * The number called - * @member {String} to_phone_number - */ -CallLogObject.prototype['to_phone_number'] = undefined; - -/** - * The date and time of the start of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {Date} start_time - */ -CallLogObject.prototype['start_time'] = undefined; - -/** - * The date and time of the end of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {Date} end_time - */ -CallLogObject.prototype['end_time'] = undefined; - -/** - * The ID of the person this call is associated with - * @member {Number} person_id - */ -CallLogObject.prototype['person_id'] = undefined; - -/** - * The ID of the organization this call is associated with - * @member {Number} org_id - */ -CallLogObject.prototype['org_id'] = undefined; - -/** - * The ID of the deal this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. - * @member {Number} deal_id - */ -CallLogObject.prototype['deal_id'] = undefined; - -/** - * The ID of the lead in the UUID format this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. - * @member {String} lead_id - */ -CallLogObject.prototype['lead_id'] = undefined; - -/** - * The note for the call log in HTML format - * @member {String} note - */ -CallLogObject.prototype['note'] = undefined; - - - - - -/** - * Allowed values for the outcome property. - * @enum {String} - * @readonly - */ -CallLogObject['OutcomeEnum'] = { - - /** - * value: "connected" - * @const - */ - "connected": "connected", - - /** - * value: "no_answer" - * @const - */ - "no_answer": "no_answer", - - /** - * value: "left_message" - * @const - */ - "left_message": "left_message", - - /** - * value: "left_voicemail" - * @const - */ - "left_voicemail": "left_voicemail", - - /** - * value: "wrong_number" - * @const - */ - "wrong_number": "wrong_number", - - /** - * value: "busy" - * @const - */ - "busy": "busy" -}; - - - -export default CallLogObject; - diff --git a/src/model/CallLogResponse200.js b/src/model/CallLogResponse200.js deleted file mode 100644 index 8fd55d89..00000000 --- a/src/model/CallLogResponse200.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ResponseCallLogObject from './ResponseCallLogObject'; - -/** - * The CallLogResponse200 model module. - * @module model/CallLogResponse200 - * @version 1.0.0 - */ -class CallLogResponse200 { - /** - * Constructs a new CallLogResponse200. - * @alias module:model/CallLogResponse200 - */ - constructor() { - - CallLogResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogResponse200} obj Optional instance to populate. - * @return {module:model/CallLogResponse200} The populated CallLogResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ResponseCallLogObject.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -CallLogResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/ResponseCallLogObject} data - */ -CallLogResponse200.prototype['data'] = undefined; - - - - - - -export default CallLogResponse200; - diff --git a/src/model/CallLogResponse400.js b/src/model/CallLogResponse400.js deleted file mode 100644 index f32e2105..00000000 --- a/src/model/CallLogResponse400.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogResponse400 model module. - * @module model/CallLogResponse400 - * @version 1.0.0 - */ -class CallLogResponse400 { - /** - * Constructs a new CallLogResponse400. - * @alias module:model/CallLogResponse400 - */ - constructor() { - - CallLogResponse400.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogResponse400 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogResponse400} obj Optional instance to populate. - * @return {module:model/CallLogResponse400} The populated CallLogResponse400 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogResponse400(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogResponse400.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogResponse400.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogResponse400.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogResponse400.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogResponse400.prototype['additional_data'] = undefined; - - - - - - -export default CallLogResponse400; - diff --git a/src/model/CallLogResponse403.js b/src/model/CallLogResponse403.js deleted file mode 100644 index ddf90ccf..00000000 --- a/src/model/CallLogResponse403.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogResponse403 model module. - * @module model/CallLogResponse403 - * @version 1.0.0 - */ -class CallLogResponse403 { - /** - * Constructs a new CallLogResponse403. - * @alias module:model/CallLogResponse403 - */ - constructor() { - - CallLogResponse403.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogResponse403 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogResponse403} obj Optional instance to populate. - * @return {module:model/CallLogResponse403} The populated CallLogResponse403 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogResponse403(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogResponse403.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogResponse403.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogResponse403.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogResponse403.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogResponse403.prototype['additional_data'] = undefined; - - - - - - -export default CallLogResponse403; - diff --git a/src/model/CallLogResponse404.js b/src/model/CallLogResponse404.js deleted file mode 100644 index eefa042a..00000000 --- a/src/model/CallLogResponse404.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogResponse404 model module. - * @module model/CallLogResponse404 - * @version 1.0.0 - */ -class CallLogResponse404 { - /** - * Constructs a new CallLogResponse404. - * @alias module:model/CallLogResponse404 - */ - constructor() { - - CallLogResponse404.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogResponse404 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogResponse404} obj Optional instance to populate. - * @return {module:model/CallLogResponse404} The populated CallLogResponse404 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogResponse404(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogResponse404.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogResponse404.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogResponse404.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogResponse404.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogResponse404.prototype['additional_data'] = undefined; - - - - - - -export default CallLogResponse404; - diff --git a/src/model/CallLogResponse409.js b/src/model/CallLogResponse409.js deleted file mode 100644 index 1d032fcd..00000000 --- a/src/model/CallLogResponse409.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogResponse409 model module. - * @module model/CallLogResponse409 - * @version 1.0.0 - */ -class CallLogResponse409 { - /** - * Constructs a new CallLogResponse409. - * @alias module:model/CallLogResponse409 - */ - constructor() { - - CallLogResponse409.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogResponse409 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogResponse409} obj Optional instance to populate. - * @return {module:model/CallLogResponse409} The populated CallLogResponse409 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogResponse409(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogResponse409.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogResponse409.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogResponse409.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogResponse409.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogResponse409.prototype['additional_data'] = undefined; - - - - - - -export default CallLogResponse409; - diff --git a/src/model/CallLogResponse410.js b/src/model/CallLogResponse410.js deleted file mode 100644 index 8f7e359d..00000000 --- a/src/model/CallLogResponse410.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogResponse410 model module. - * @module model/CallLogResponse410 - * @version 1.0.0 - */ -class CallLogResponse410 { - /** - * Constructs a new CallLogResponse410. - * @alias module:model/CallLogResponse410 - */ - constructor() { - - CallLogResponse410.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogResponse410 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogResponse410} obj Optional instance to populate. - * @return {module:model/CallLogResponse410} The populated CallLogResponse410 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogResponse410(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogResponse410.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogResponse410.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogResponse410.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogResponse410.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogResponse410.prototype['additional_data'] = undefined; - - - - - - -export default CallLogResponse410; - diff --git a/src/model/CallLogResponse500.js b/src/model/CallLogResponse500.js deleted file mode 100644 index b27d47c3..00000000 --- a/src/model/CallLogResponse500.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CallLogResponse500 model module. - * @module model/CallLogResponse500 - * @version 1.0.0 - */ -class CallLogResponse500 { - /** - * Constructs a new CallLogResponse500. - * @alias module:model/CallLogResponse500 - */ - constructor() { - - CallLogResponse500.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogResponse500 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogResponse500} obj Optional instance to populate. - * @return {module:model/CallLogResponse500} The populated CallLogResponse500 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogResponse500(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -CallLogResponse500.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -CallLogResponse500.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -CallLogResponse500.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -CallLogResponse500.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -CallLogResponse500.prototype['additional_data'] = undefined; - - - - - - -export default CallLogResponse500; - diff --git a/src/model/CallLogsResponse.js b/src/model/CallLogsResponse.js deleted file mode 100644 index 250d2595..00000000 --- a/src/model/CallLogsResponse.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import CallLogsResponseAdditionalData from './CallLogsResponseAdditionalData'; -import ResponseCallLogObject from './ResponseCallLogObject'; - -/** - * The CallLogsResponse model module. - * @module model/CallLogsResponse - * @version 1.0.0 - */ -class CallLogsResponse { - /** - * Constructs a new CallLogsResponse. - * @alias module:model/CallLogsResponse - */ - constructor() { - - CallLogsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogsResponse} obj Optional instance to populate. - * @return {module:model/CallLogsResponse} The populated CallLogsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogsResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ResponseCallLogObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = CallLogsResponseAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -CallLogsResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -CallLogsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/CallLogsResponseAdditionalData} additional_data - */ -CallLogsResponse.prototype['additional_data'] = undefined; - - - - - - -export default CallLogsResponse; - diff --git a/src/model/CallLogsResponseAdditionalData.js b/src/model/CallLogsResponseAdditionalData.js deleted file mode 100644 index f6570ace..00000000 --- a/src/model/CallLogsResponseAdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; - -/** - * The CallLogsResponseAdditionalData model module. - * @module model/CallLogsResponseAdditionalData - * @version 1.0.0 - */ -class CallLogsResponseAdditionalData { - /** - * Constructs a new CallLogsResponseAdditionalData. - * @alias module:model/CallLogsResponseAdditionalData - */ - constructor() { - - CallLogsResponseAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CallLogsResponseAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CallLogsResponseAdditionalData} obj Optional instance to populate. - * @return {module:model/CallLogsResponseAdditionalData} The populated CallLogsResponseAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CallLogsResponseAdditionalData(); - - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = AdditionalData.constructFromObject(data['pagination']); - - delete data['pagination']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/AdditionalData} pagination - */ -CallLogsResponseAdditionalData.prototype['pagination'] = undefined; - - - - - - -export default CallLogsResponseAdditionalData; - diff --git a/src/model/ChangelogResponse.js b/src/model/ChangelogResponse.js deleted file mode 100644 index a793389c..00000000 --- a/src/model/ChangelogResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; -import BaseResponse from './BaseResponse'; -import ChangelogResponseAllOf from './ChangelogResponseAllOf'; -import ChangelogResponseAllOfData from './ChangelogResponseAllOfData'; - -/** - * The ChangelogResponse model module. - * @module model/ChangelogResponse - * @version 1.0.0 - */ -class ChangelogResponse { - /** - * Constructs a new ChangelogResponse. - * @alias module:model/ChangelogResponse - * @implements module:model/BaseResponse - * @implements module:model/ChangelogResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ChangelogResponseAllOf.initialize(this); - ChangelogResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ChangelogResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChangelogResponse} obj Optional instance to populate. - * @return {module:model/ChangelogResponse} The populated ChangelogResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ChangelogResponse(); - BaseResponse.constructFromObject(data, obj); - ChangelogResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ChangelogResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ChangelogResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -ChangelogResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -ChangelogResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ChangelogResponseAllOf interface: -/** - * @member {Array.} data - */ -ChangelogResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -ChangelogResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default ChangelogResponse; - diff --git a/src/model/ChangelogResponseAllOf.js b/src/model/ChangelogResponseAllOf.js deleted file mode 100644 index 627cd40f..00000000 --- a/src/model/ChangelogResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; -import ChangelogResponseAllOfData from './ChangelogResponseAllOfData'; - -/** - * The ChangelogResponseAllOf model module. - * @module model/ChangelogResponseAllOf - * @version 1.0.0 - */ -class ChangelogResponseAllOf { - /** - * Constructs a new ChangelogResponseAllOf. - * @alias module:model/ChangelogResponseAllOf - */ - constructor() { - - ChangelogResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ChangelogResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChangelogResponseAllOf} obj Optional instance to populate. - * @return {module:model/ChangelogResponseAllOf} The populated ChangelogResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ChangelogResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ChangelogResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Array.} data - */ -ChangelogResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -ChangelogResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default ChangelogResponseAllOf; - diff --git a/src/model/ChangelogResponseAllOfData.js b/src/model/ChangelogResponseAllOfData.js deleted file mode 100644 index ff821251..00000000 --- a/src/model/ChangelogResponseAllOfData.js +++ /dev/null @@ -1,156 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ChangelogResponseAllOfData model module. - * @module model/ChangelogResponseAllOfData - * @version 1.0.0 - */ -class ChangelogResponseAllOfData { - /** - * Constructs a new ChangelogResponseAllOfData. - * @alias module:model/ChangelogResponseAllOfData - */ - constructor() { - - ChangelogResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ChangelogResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChangelogResponseAllOfData} obj Optional instance to populate. - * @return {module:model/ChangelogResponseAllOfData} The populated ChangelogResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ChangelogResponseAllOfData(); - - if (data.hasOwnProperty('field_key')) { - obj['field_key'] = ApiClient.convertToType(data['field_key'], 'String'); - - delete data['field_key']; - } - if (data.hasOwnProperty('old_value')) { - obj['old_value'] = ApiClient.convertToType(data['old_value'], 'String'); - - delete data['old_value']; - } - if (data.hasOwnProperty('new_value')) { - obj['new_value'] = ApiClient.convertToType(data['new_value'], 'String'); - - delete data['new_value']; - } - if (data.hasOwnProperty('actor_user_id')) { - obj['actor_user_id'] = ApiClient.convertToType(data['actor_user_id'], 'Number'); - - delete data['actor_user_id']; - } - if (data.hasOwnProperty('time')) { - obj['time'] = ApiClient.convertToType(data['time'], 'String'); - - delete data['time']; - } - if (data.hasOwnProperty('change_source')) { - obj['change_source'] = ApiClient.convertToType(data['change_source'], 'String'); - - delete data['change_source']; - } - if (data.hasOwnProperty('change_source_user_agent')) { - obj['change_source_user_agent'] = ApiClient.convertToType(data['change_source_user_agent'], 'String'); - - delete data['change_source_user_agent']; - } - if (data.hasOwnProperty('is_bulk_update_flag')) { - obj['is_bulk_update_flag'] = ApiClient.convertToType(data['is_bulk_update_flag'], 'Boolean'); - - delete data['is_bulk_update_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The key of the field that was changed - * @member {String} field_key - */ -ChangelogResponseAllOfData.prototype['field_key'] = undefined; - -/** - * The value of the field before the change - * @member {String} old_value - */ -ChangelogResponseAllOfData.prototype['old_value'] = undefined; - -/** - * The value of the field after the change - * @member {String} new_value - */ -ChangelogResponseAllOfData.prototype['new_value'] = undefined; - -/** - * The ID of the user who made the change - * @member {Number} actor_user_id - */ -ChangelogResponseAllOfData.prototype['actor_user_id'] = undefined; - -/** - * The date and time of the change - * @member {String} time - */ -ChangelogResponseAllOfData.prototype['time'] = undefined; - -/** - * The source of change, for example 'app', 'mobile', 'api', etc. - * @member {String} change_source - */ -ChangelogResponseAllOfData.prototype['change_source'] = undefined; - -/** - * The user agent from which the change was made - * @member {String} change_source_user_agent - */ -ChangelogResponseAllOfData.prototype['change_source_user_agent'] = undefined; - -/** - * Whether the change was made as part of a bulk update - * @member {Boolean} is_bulk_update_flag - */ -ChangelogResponseAllOfData.prototype['is_bulk_update_flag'] = undefined; - - - - - - -export default ChangelogResponseAllOfData; - diff --git a/src/model/ChannelObject.js b/src/model/ChannelObject.js deleted file mode 100644 index 1eabcb89..00000000 --- a/src/model/ChannelObject.js +++ /dev/null @@ -1,156 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ChannelObject model module. - * @module model/ChannelObject - * @version 1.0.0 - */ -class ChannelObject { - /** - * Constructs a new ChannelObject. - * @alias module:model/ChannelObject - * @param name {String} The name of the channel - * @param providerChannelId {String} The channel ID - */ - constructor(name, providerChannelId) { - - ChannelObject.initialize(this, name, providerChannelId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name, providerChannelId) { - obj['name'] = name; - obj['provider_channel_id'] = providerChannelId; - } - - /** - * Constructs a ChannelObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChannelObject} obj Optional instance to populate. - * @return {module:model/ChannelObject} The populated ChannelObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ChannelObject(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('provider_channel_id')) { - obj['provider_channel_id'] = ApiClient.convertToType(data['provider_channel_id'], 'String'); - - delete data['provider_channel_id']; - } - if (data.hasOwnProperty('avatar_url')) { - obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String'); - - delete data['avatar_url']; - } - if (data.hasOwnProperty('template_support')) { - obj['template_support'] = ApiClient.convertToType(data['template_support'], 'Boolean'); - - delete data['template_support']; - } - if (data.hasOwnProperty('provider_type')) { - obj['provider_type'] = ApiClient.convertToType(data['provider_type'], 'String'); - - delete data['provider_type']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the channel - * @member {String} name - */ -ChannelObject.prototype['name'] = undefined; - -/** - * The channel ID - * @member {String} provider_channel_id - */ -ChannelObject.prototype['provider_channel_id'] = undefined; - -/** - * The URL for an icon that represents your channel - * @member {String} avatar_url - */ -ChannelObject.prototype['avatar_url'] = undefined; - -/** - * If true, enables templates logic on UI. Requires getTemplates endpoint implemented. Find out more [here](https://pipedrive.readme.io/docs/implementing-messaging-app-extension). - * @member {Boolean} template_support - * @default false - */ -ChannelObject.prototype['template_support'] = false; - -/** - * It controls the icons (like the icon next to the conversation) - * @member {module:model/ChannelObject.ProviderTypeEnum} provider_type - * @default 'other' - */ -ChannelObject.prototype['provider_type'] = 'other'; - - - - - -/** - * Allowed values for the provider_type property. - * @enum {String} - * @readonly - */ -ChannelObject['ProviderTypeEnum'] = { - - /** - * value: "facebook" - * @const - */ - "facebook": "facebook", - - /** - * value: "whatsapp" - * @const - */ - "whatsapp": "whatsapp", - - /** - * value: "other" - * @const - */ - "other": "other" -}; - - - -export default ChannelObject; - diff --git a/src/model/ChannelObjectResponse.js b/src/model/ChannelObjectResponse.js deleted file mode 100644 index f20c21e4..00000000 --- a/src/model/ChannelObjectResponse.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ChannelObjectResponseData from './ChannelObjectResponseData'; - -/** - * The ChannelObjectResponse model module. - * @module model/ChannelObjectResponse - * @version 1.0.0 - */ -class ChannelObjectResponse { - /** - * Constructs a new ChannelObjectResponse. - * @alias module:model/ChannelObjectResponse - */ - constructor() { - - ChannelObjectResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ChannelObjectResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChannelObjectResponse} obj Optional instance to populate. - * @return {module:model/ChannelObjectResponse} The populated ChannelObjectResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ChannelObjectResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ChannelObjectResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -ChannelObjectResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ChannelObjectResponseData} data - */ -ChannelObjectResponse.prototype['data'] = undefined; - - - - - - -export default ChannelObjectResponse; - diff --git a/src/model/ChannelObjectResponseData.js b/src/model/ChannelObjectResponseData.js deleted file mode 100644 index cca22633..00000000 --- a/src/model/ChannelObjectResponseData.js +++ /dev/null @@ -1,205 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ChannelObjectResponseData model module. - * @module model/ChannelObjectResponseData - * @version 1.0.0 - */ -class ChannelObjectResponseData { - /** - * Constructs a new ChannelObjectResponseData. - * @alias module:model/ChannelObjectResponseData - */ - constructor() { - - ChannelObjectResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ChannelObjectResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChannelObjectResponseData} obj Optional instance to populate. - * @return {module:model/ChannelObjectResponseData} The populated ChannelObjectResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ChannelObjectResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('avatar_url')) { - obj['avatar_url'] = ApiClient.convertToType(data['avatar_url'], 'String'); - - delete data['avatar_url']; - } - if (data.hasOwnProperty('provider_channel_id')) { - obj['provider_channel_id'] = ApiClient.convertToType(data['provider_channel_id'], 'String'); - - delete data['provider_channel_id']; - } - if (data.hasOwnProperty('marketplace_client_id')) { - obj['marketplace_client_id'] = ApiClient.convertToType(data['marketplace_client_id'], 'String'); - - delete data['marketplace_client_id']; - } - if (data.hasOwnProperty('pd_company_id')) { - obj['pd_company_id'] = ApiClient.convertToType(data['pd_company_id'], 'Number'); - - delete data['pd_company_id']; - } - if (data.hasOwnProperty('pd_user_id')) { - obj['pd_user_id'] = ApiClient.convertToType(data['pd_user_id'], 'Number'); - - delete data['pd_user_id']; - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - - delete data['created_at']; - } - if (data.hasOwnProperty('provider_type')) { - obj['provider_type'] = ApiClient.convertToType(data['provider_type'], 'String'); - - delete data['provider_type']; - } - if (data.hasOwnProperty('template_support')) { - obj['template_support'] = ApiClient.convertToType(data['template_support'], 'Boolean'); - - delete data['template_support']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The unique channel ID used internally in omnichannel-api and the frontend of the extension - * @member {String} id - */ -ChannelObjectResponseData.prototype['id'] = undefined; - -/** - * The name of the channel - * @member {String} name - */ -ChannelObjectResponseData.prototype['name'] = undefined; - -/** - * The URL for an icon that represents your channel - * @member {String} avatar_url - */ -ChannelObjectResponseData.prototype['avatar_url'] = undefined; - -/** - * The channel ID you specified while creating the channel - * @member {String} provider_channel_id - */ -ChannelObjectResponseData.prototype['provider_channel_id'] = undefined; - -/** - * The client_id of your app in Pipedrive marketplace - * @member {String} marketplace_client_id - */ -ChannelObjectResponseData.prototype['marketplace_client_id'] = undefined; - -/** - * The ID of the user's company in Pipedrive - * @member {Number} pd_company_id - */ -ChannelObjectResponseData.prototype['pd_company_id'] = undefined; - -/** - * The ID of the user in Pipedrive - * @member {Number} pd_user_id - */ -ChannelObjectResponseData.prototype['pd_user_id'] = undefined; - -/** - * The date and time when your channel was created in the API - * @member {Date} created_at - */ -ChannelObjectResponseData.prototype['created_at'] = undefined; - -/** - * Value of the provider_type sent to this endpoint - * @member {module:model/ChannelObjectResponseData.ProviderTypeEnum} provider_type - */ -ChannelObjectResponseData.prototype['provider_type'] = undefined; - -/** - * Value of the template_support sent to this endpoint - * @member {Boolean} template_support - */ -ChannelObjectResponseData.prototype['template_support'] = undefined; - - - - - -/** - * Allowed values for the provider_type property. - * @enum {String} - * @readonly - */ -ChannelObjectResponseData['ProviderTypeEnum'] = { - - /** - * value: "facebook" - * @const - */ - "facebook": "facebook", - - /** - * value: "whatsapp" - * @const - */ - "whatsapp": "whatsapp", - - /** - * value: "other" - * @const - */ - "other": "other" -}; - - - -export default ChannelObjectResponseData; - diff --git a/src/model/CommentPostPutObject.js b/src/model/CommentPostPutObject.js deleted file mode 100644 index ad215787..00000000 --- a/src/model/CommentPostPutObject.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CommentPostPutObject model module. - * @module model/CommentPostPutObject - * @version 1.0.0 - */ -class CommentPostPutObject { - /** - * Constructs a new CommentPostPutObject. - * @alias module:model/CommentPostPutObject - * @param content {String} The content of the comment in HTML format. Subject to sanitization on the back-end. - */ - constructor(content) { - - CommentPostPutObject.initialize(this, content); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, content) { - obj['content'] = content; - } - - /** - * Constructs a CommentPostPutObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CommentPostPutObject} obj Optional instance to populate. - * @return {module:model/CommentPostPutObject} The populated CommentPostPutObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CommentPostPutObject(); - - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - - delete data['content']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The content of the comment in HTML format. Subject to sanitization on the back-end. - * @member {String} content - */ -CommentPostPutObject.prototype['content'] = undefined; - - - - - - -export default CommentPostPutObject; - diff --git a/src/model/CommonMailThread.js b/src/model/CommonMailThread.js deleted file mode 100644 index 9c3b58bf..00000000 --- a/src/model/CommonMailThread.js +++ /dev/null @@ -1,223 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBooleanDefault0 from './NumberBooleanDefault0'; - -/** - * The CommonMailThread model module. - * @module model/CommonMailThread - * @version 1.0.0 - */ -class CommonMailThread { - /** - * Constructs a new CommonMailThread. - * @alias module:model/CommonMailThread - */ - constructor() { - - CommonMailThread.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CommonMailThread from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CommonMailThread} obj Optional instance to populate. - * @return {module:model/CommonMailThread} The populated CommonMailThread instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CommonMailThread(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = ApiClient.convertToType(data['account_id'], 'String'); - - delete data['account_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('snippet')) { - obj['snippet'] = ApiClient.convertToType(data['snippet'], 'String'); - - delete data['snippet']; - } - if (data.hasOwnProperty('read_flag')) { - obj['read_flag'] = ApiClient.convertToType(data['read_flag'], NumberBooleanDefault0); - - delete data['read_flag']; - } - if (data.hasOwnProperty('mail_tracking_status')) { - obj['mail_tracking_status'] = ApiClient.convertToType(data['mail_tracking_status'], 'String'); - - delete data['mail_tracking_status']; - } - if (data.hasOwnProperty('has_attachments_flag')) { - obj['has_attachments_flag'] = ApiClient.convertToType(data['has_attachments_flag'], NumberBooleanDefault0); - - delete data['has_attachments_flag']; - } - if (data.hasOwnProperty('has_inline_attachments_flag')) { - obj['has_inline_attachments_flag'] = ApiClient.convertToType(data['has_inline_attachments_flag'], NumberBooleanDefault0); - - delete data['has_inline_attachments_flag']; - } - if (data.hasOwnProperty('has_real_attachments_flag')) { - obj['has_real_attachments_flag'] = ApiClient.convertToType(data['has_real_attachments_flag'], NumberBooleanDefault0); - - delete data['has_real_attachments_flag']; - } - if (data.hasOwnProperty('deleted_flag')) { - obj['deleted_flag'] = ApiClient.convertToType(data['deleted_flag'], NumberBooleanDefault0); - - delete data['deleted_flag']; - } - if (data.hasOwnProperty('synced_flag')) { - obj['synced_flag'] = ApiClient.convertToType(data['synced_flag'], NumberBooleanDefault0); - - delete data['synced_flag']; - } - if (data.hasOwnProperty('smart_bcc_flag')) { - obj['smart_bcc_flag'] = ApiClient.convertToType(data['smart_bcc_flag'], NumberBooleanDefault0); - - delete data['smart_bcc_flag']; - } - if (data.hasOwnProperty('mail_link_tracking_enabled_flag')) { - obj['mail_link_tracking_enabled_flag'] = ApiClient.convertToType(data['mail_link_tracking_enabled_flag'], NumberBooleanDefault0); - - delete data['mail_link_tracking_enabled_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * ID of the mail thread - * @member {Number} id - */ -CommonMailThread.prototype['id'] = undefined; - -/** - * The connection account ID - * @member {String} account_id - */ -CommonMailThread.prototype['account_id'] = undefined; - -/** - * ID of the user whom mail message will be assigned to - * @member {Number} user_id - */ -CommonMailThread.prototype['user_id'] = undefined; - -/** - * The subject - * @member {String} subject - */ -CommonMailThread.prototype['subject'] = undefined; - -/** - * A snippet - * @member {String} snippet - */ -CommonMailThread.prototype['snippet'] = undefined; - -/** - * Whether the mail thread is read - * @member {module:model/NumberBooleanDefault0} read_flag - */ -CommonMailThread.prototype['read_flag'] = undefined; - -/** - * Mail tracking status - * @member {String} mail_tracking_status - */ -CommonMailThread.prototype['mail_tracking_status'] = undefined; - -/** - * Whether the mail thread has an attachment - * @member {module:model/NumberBooleanDefault0} has_attachments_flag - */ -CommonMailThread.prototype['has_attachments_flag'] = undefined; - -/** - * Whether the mail thread has inline attachments - * @member {module:model/NumberBooleanDefault0} has_inline_attachments_flag - */ -CommonMailThread.prototype['has_inline_attachments_flag'] = undefined; - -/** - * Whether the mail thread has real attachments (which are not inline) - * @member {module:model/NumberBooleanDefault0} has_real_attachments_flag - */ -CommonMailThread.prototype['has_real_attachments_flag'] = undefined; - -/** - * Whether the mail thread is deleted - * @member {module:model/NumberBooleanDefault0} deleted_flag - */ -CommonMailThread.prototype['deleted_flag'] = undefined; - -/** - * Whether the mail thread is synced - * @member {module:model/NumberBooleanDefault0} synced_flag - */ -CommonMailThread.prototype['synced_flag'] = undefined; - -/** - * Whether one of the parties of the mail thread is Bcc - * @member {module:model/NumberBooleanDefault0} smart_bcc_flag - */ -CommonMailThread.prototype['smart_bcc_flag'] = undefined; - -/** - * Whether the link tracking of the mail thread is enabled - * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag - */ -CommonMailThread.prototype['mail_link_tracking_enabled_flag'] = undefined; - - - - - - -export default CommonMailThread; - diff --git a/src/model/CreateRemoteFileAndLinkItToItem.js b/src/model/CreateRemoteFileAndLinkItToItem.js deleted file mode 100644 index 655c3df1..00000000 --- a/src/model/CreateRemoteFileAndLinkItToItem.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FileData from './FileData'; - -/** - * The CreateRemoteFileAndLinkItToItem model module. - * @module model/CreateRemoteFileAndLinkItToItem - * @version 1.0.0 - */ -class CreateRemoteFileAndLinkItToItem { - /** - * Constructs a new CreateRemoteFileAndLinkItToItem. - * @alias module:model/CreateRemoteFileAndLinkItToItem - */ - constructor() { - - CreateRemoteFileAndLinkItToItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CreateRemoteFileAndLinkItToItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateRemoteFileAndLinkItToItem} obj Optional instance to populate. - * @return {module:model/CreateRemoteFileAndLinkItToItem} The populated CreateRemoteFileAndLinkItToItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateRemoteFileAndLinkItToItem(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FileData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -CreateRemoteFileAndLinkItToItem.prototype['success'] = undefined; - -/** - * @member {module:model/FileData} data - */ -CreateRemoteFileAndLinkItToItem.prototype['data'] = undefined; - - - - - - -export default CreateRemoteFileAndLinkItToItem; - diff --git a/src/model/CreateTeam.js b/src/model/CreateTeam.js deleted file mode 100644 index fd091a7c..00000000 --- a/src/model/CreateTeam.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CreateTeam model module. - * @module model/CreateTeam - * @version 1.0.0 - */ -class CreateTeam { - /** - * Constructs a new CreateTeam. - * @alias module:model/CreateTeam - */ - constructor() { - - CreateTeam.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CreateTeam from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateTeam} obj Optional instance to populate. - * @return {module:model/CreateTeam} The populated CreateTeam instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateTeam(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('manager_id')) { - obj['manager_id'] = ApiClient.convertToType(data['manager_id'], 'Number'); - - delete data['manager_id']; - } - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], ['Number']); - - delete data['users']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The team name - * @member {String} name - */ -CreateTeam.prototype['name'] = undefined; - -/** - * The team description - * @member {String} description - */ -CreateTeam.prototype['description'] = undefined; - -/** - * The team manager ID - * @member {Number} manager_id - */ -CreateTeam.prototype['manager_id'] = undefined; - -/** - * The list of user IDs - * @member {Array.} users - */ -CreateTeam.prototype['users'] = undefined; - - - - - - -export default CreateTeam; - diff --git a/src/model/Currencies.js b/src/model/Currencies.js deleted file mode 100644 index c2accda2..00000000 --- a/src/model/Currencies.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseCurrency from './BaseCurrency'; - -/** - * The Currencies model module. - * @module model/Currencies - * @version 1.0.0 - */ -class Currencies { - /** - * Constructs a new Currencies. - * @alias module:model/Currencies - */ - constructor() { - - Currencies.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Currencies from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Currencies} obj Optional instance to populate. - * @return {module:model/Currencies} The populated Currencies instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Currencies(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseCurrency]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -Currencies.prototype['success'] = undefined; - -/** - * The array of currencies - * @member {Array.} data - */ -Currencies.prototype['data'] = undefined; - - - - - - -export default Currencies; - diff --git a/src/model/DealCollectionResponseObject.js b/src/model/DealCollectionResponseObject.js deleted file mode 100644 index 1bb782f3..00000000 --- a/src/model/DealCollectionResponseObject.js +++ /dev/null @@ -1,299 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealCollectionResponseObject model module. - * @module model/DealCollectionResponseObject - * @version 1.0.0 - */ -class DealCollectionResponseObject { - /** - * Constructs a new DealCollectionResponseObject. - * @alias module:model/DealCollectionResponseObject - */ - constructor() { - - DealCollectionResponseObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealCollectionResponseObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealCollectionResponseObject} obj Optional instance to populate. - * @return {module:model/DealCollectionResponseObject} The populated DealCollectionResponseObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealCollectionResponseObject(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('creator_user_id')) { - obj['creator_user_id'] = ApiClient.convertToType(data['creator_user_id'], 'Number'); - - delete data['creator_user_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('probability')) { - obj['probability'] = ApiClient.convertToType(data['probability'], 'Number'); - - delete data['probability']; - } - if (data.hasOwnProperty('lost_reason')) { - obj['lost_reason'] = ApiClient.convertToType(data['lost_reason'], 'String'); - - delete data['lost_reason']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('close_time')) { - obj['close_time'] = ApiClient.convertToType(data['close_time'], 'String'); - - delete data['close_time']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('won_time')) { - obj['won_time'] = ApiClient.convertToType(data['won_time'], 'String'); - - delete data['won_time']; - } - if (data.hasOwnProperty('lost_time')) { - obj['lost_time'] = ApiClient.convertToType(data['lost_time'], 'String'); - - delete data['lost_time']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal - * @member {Number} id - */ -DealCollectionResponseObject.prototype['id'] = undefined; - -/** - * The ID of the deal creator - * @member {Number} creator_user_id - */ -DealCollectionResponseObject.prototype['creator_user_id'] = undefined; - -/** - * The ID of the user - * @member {Number} user_id - */ -DealCollectionResponseObject.prototype['user_id'] = undefined; - -/** - * The ID of the person associated with the deal - * @member {Number} person_id - */ -DealCollectionResponseObject.prototype['person_id'] = undefined; - -/** - * The ID of the organization associated with the deal - * @member {Number} org_id - */ -DealCollectionResponseObject.prototype['org_id'] = undefined; - -/** - * The ID of the deal stage - * @member {Number} stage_id - */ -DealCollectionResponseObject.prototype['stage_id'] = undefined; - -/** - * The title of the deal - * @member {String} title - */ -DealCollectionResponseObject.prototype['title'] = undefined; - -/** - * The value of the deal - * @member {Number} value - */ -DealCollectionResponseObject.prototype['value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} currency - */ -DealCollectionResponseObject.prototype['currency'] = undefined; - -/** - * The creation date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -DealCollectionResponseObject.prototype['add_time'] = undefined; - -/** - * The last update date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -DealCollectionResponseObject.prototype['update_time'] = undefined; - -/** - * The status of the deal - * @member {String} status - */ -DealCollectionResponseObject.prototype['status'] = undefined; - -/** - * The success probability percentage of the deal - * @member {Number} probability - */ -DealCollectionResponseObject.prototype['probability'] = undefined; - -/** - * The reason for losing the deal - * @member {String} lost_reason - */ -DealCollectionResponseObject.prototype['lost_reason'] = undefined; - -/** - * The visibility of the deal - * @member {String} visible_to - */ -DealCollectionResponseObject.prototype['visible_to'] = undefined; - -/** - * The date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} close_time - */ -DealCollectionResponseObject.prototype['close_time'] = undefined; - -/** - * The ID of the pipeline associated with the deal - * @member {Number} pipeline_id - */ -DealCollectionResponseObject.prototype['pipeline_id'] = undefined; - -/** - * The date and time of changing the deal status to won in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} won_time - */ -DealCollectionResponseObject.prototype['won_time'] = undefined; - -/** - * The date and time of changing the deal status to lost in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} lost_time - */ -DealCollectionResponseObject.prototype['lost_time'] = undefined; - -/** - * The expected close date of the deal - * @member {Date} expected_close_date - */ -DealCollectionResponseObject.prototype['expected_close_date'] = undefined; - -/** - * The label or multiple labels assigned to the deal - * @member {String} label - */ -DealCollectionResponseObject.prototype['label'] = undefined; - - - - - - -export default DealCollectionResponseObject; - diff --git a/src/model/DealCountAndActivityInfo.js b/src/model/DealCountAndActivityInfo.js deleted file mode 100644 index a530c91c..00000000 --- a/src/model/DealCountAndActivityInfo.js +++ /dev/null @@ -1,284 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityInfo from './ActivityInfo'; -import DealsCountInfo from './DealsCountInfo'; - -/** - * The DealCountAndActivityInfo model module. - * @module model/DealCountAndActivityInfo - * @version 1.0.0 - */ -class DealCountAndActivityInfo { - /** - * Constructs a new DealCountAndActivityInfo. - * @alias module:model/DealCountAndActivityInfo - * @implements module:model/DealsCountInfo - * @implements module:model/ActivityInfo - */ - constructor() { - DealsCountInfo.initialize(this);ActivityInfo.initialize(this); - DealCountAndActivityInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealCountAndActivityInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealCountAndActivityInfo} obj Optional instance to populate. - * @return {module:model/DealCountAndActivityInfo} The populated DealCountAndActivityInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealCountAndActivityInfo(); - DealsCountInfo.constructFromObject(data, obj); - ActivityInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -DealCountAndActivityInfo.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -DealCountAndActivityInfo.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -DealCountAndActivityInfo.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -DealCountAndActivityInfo.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -DealCountAndActivityInfo.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -DealCountAndActivityInfo.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -DealCountAndActivityInfo.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -DealCountAndActivityInfo.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -DealCountAndActivityInfo.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -DealCountAndActivityInfo.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -DealCountAndActivityInfo.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -DealCountAndActivityInfo.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -DealCountAndActivityInfo.prototype['last_activity_date'] = undefined; - - -// Implement DealsCountInfo interface: -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -DealsCountInfo.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -DealsCountInfo.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -DealsCountInfo.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -DealsCountInfo.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -DealsCountInfo.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -DealsCountInfo.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -DealsCountInfo.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -DealsCountInfo.prototype['related_lost_deals_count'] = undefined; -// Implement ActivityInfo interface: -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -ActivityInfo.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -ActivityInfo.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -ActivityInfo.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -ActivityInfo.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -ActivityInfo.prototype['last_activity_date'] = undefined; - - - - -export default DealCountAndActivityInfo; - diff --git a/src/model/DealFlowResponse.js b/src/model/DealFlowResponse.js deleted file mode 100644 index f1632985..00000000 --- a/src/model/DealFlowResponse.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import DealFlowResponseAllOf from './DealFlowResponseAllOf'; -import DealFlowResponseAllOfData from './DealFlowResponseAllOfData'; -import DealFlowResponseAllOfRelatedObjects from './DealFlowResponseAllOfRelatedObjects'; - -/** - * The DealFlowResponse model module. - * @module model/DealFlowResponse - * @version 1.0.0 - */ -class DealFlowResponse { - /** - * Constructs a new DealFlowResponse. - * @alias module:model/DealFlowResponse - * @implements module:model/BaseResponse - * @implements module:model/DealFlowResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);DealFlowResponseAllOf.initialize(this); - DealFlowResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealFlowResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealFlowResponse} obj Optional instance to populate. - * @return {module:model/DealFlowResponse} The populated DealFlowResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealFlowResponse(); - BaseResponse.constructFromObject(data, obj); - DealFlowResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [DealFlowResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = DealFlowResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DealFlowResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -DealFlowResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -DealFlowResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/DealFlowResponseAllOfRelatedObjects} related_objects - */ -DealFlowResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement DealFlowResponseAllOf interface: -/** - * @member {Array.} data - */ -DealFlowResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -DealFlowResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/DealFlowResponseAllOfRelatedObjects} related_objects - */ -DealFlowResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default DealFlowResponse; - diff --git a/src/model/DealFlowResponseAllOf.js b/src/model/DealFlowResponseAllOf.js deleted file mode 100644 index 3c0398ff..00000000 --- a/src/model/DealFlowResponseAllOf.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import DealFlowResponseAllOfData from './DealFlowResponseAllOfData'; -import DealFlowResponseAllOfRelatedObjects from './DealFlowResponseAllOfRelatedObjects'; - -/** - * The DealFlowResponseAllOf model module. - * @module model/DealFlowResponseAllOf - * @version 1.0.0 - */ -class DealFlowResponseAllOf { - /** - * Constructs a new DealFlowResponseAllOf. - * @alias module:model/DealFlowResponseAllOf - */ - constructor() { - - DealFlowResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealFlowResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealFlowResponseAllOf} obj Optional instance to populate. - * @return {module:model/DealFlowResponseAllOf} The populated DealFlowResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealFlowResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [DealFlowResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = DealFlowResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Array.} data - */ -DealFlowResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -DealFlowResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/DealFlowResponseAllOfRelatedObjects} related_objects - */ -DealFlowResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default DealFlowResponseAllOf; - diff --git a/src/model/DealFlowResponseAllOfData.js b/src/model/DealFlowResponseAllOfData.js deleted file mode 100644 index 9323e243..00000000 --- a/src/model/DealFlowResponseAllOfData.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealFlowResponseAllOfData model module. - * @module model/DealFlowResponseAllOfData - * @version 1.0.0 - */ -class DealFlowResponseAllOfData { - /** - * Constructs a new DealFlowResponseAllOfData. - * @alias module:model/DealFlowResponseAllOfData - */ - constructor() { - - DealFlowResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealFlowResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealFlowResponseAllOfData} obj Optional instance to populate. - * @return {module:model/DealFlowResponseAllOfData} The populated DealFlowResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealFlowResponseAllOfData(); - - if (data.hasOwnProperty('object')) { - obj['object'] = ApiClient.convertToType(data['object'], 'String'); - - delete data['object']; - } - if (data.hasOwnProperty('timestamp')) { - obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String'); - - delete data['timestamp']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The type of the deal update. (Possible object types - dealChange, note, activity, mailMessage, invoice, document, file) - * @member {String} object - */ -DealFlowResponseAllOfData.prototype['object'] = undefined; - -/** - * The creation date and time of the update - * @member {String} timestamp - */ -DealFlowResponseAllOfData.prototype['timestamp'] = undefined; - -/** - * The data related to the update - * @member {Object} data - */ -DealFlowResponseAllOfData.prototype['data'] = undefined; - - - - - - -export default DealFlowResponseAllOfData; - diff --git a/src/model/DealFlowResponseAllOfRelatedObjects.js b/src/model/DealFlowResponseAllOfRelatedObjects.js deleted file mode 100644 index 7d23ca40..00000000 --- a/src/model/DealFlowResponseAllOfRelatedObjects.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedDealData from './RelatedDealData'; -import RelatedOrganizationData from './RelatedOrganizationData'; -import RelatedPersonDataWithActiveFlag from './RelatedPersonDataWithActiveFlag'; -import RelatedUserData from './RelatedUserData'; - -/** - * The DealFlowResponseAllOfRelatedObjects model module. - * @module model/DealFlowResponseAllOfRelatedObjects - * @version 1.0.0 - */ -class DealFlowResponseAllOfRelatedObjects { - /** - * Constructs a new DealFlowResponseAllOfRelatedObjects. - * @alias module:model/DealFlowResponseAllOfRelatedObjects - */ - constructor() { - - DealFlowResponseAllOfRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealFlowResponseAllOfRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealFlowResponseAllOfRelatedObjects} obj Optional instance to populate. - * @return {module:model/DealFlowResponseAllOfRelatedObjects} The populated DealFlowResponseAllOfRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealFlowResponseAllOfRelatedObjects(); - - if (data.hasOwnProperty('deal')) { - obj['deal'] = RelatedDealData.constructFromObject(data['deal']); - - delete data['deal']; - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationData.constructFromObject(data['organization']); - - delete data['organization']; - } - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = RelatedPersonDataWithActiveFlag.constructFromObject(data['person']); - - delete data['person']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedDealData} deal - */ -DealFlowResponseAllOfRelatedObjects.prototype['deal'] = undefined; - -/** - * @member {module:model/RelatedOrganizationData} organization - */ -DealFlowResponseAllOfRelatedObjects.prototype['organization'] = undefined; - -/** - * @member {module:model/RelatedUserData} user - */ -DealFlowResponseAllOfRelatedObjects.prototype['user'] = undefined; - -/** - * @member {module:model/RelatedPersonDataWithActiveFlag} person - */ -DealFlowResponseAllOfRelatedObjects.prototype['person'] = undefined; - - - - - - -export default DealFlowResponseAllOfRelatedObjects; - diff --git a/src/model/DealListActivitiesResponse.js b/src/model/DealListActivitiesResponse.js deleted file mode 100644 index e34e68be..00000000 --- a/src/model/DealListActivitiesResponse.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityDistributionDataWithAdditionalData from './ActivityDistributionDataWithAdditionalData'; -import ActivityResponseObject from './ActivityResponseObject'; -import BaseResponse from './BaseResponse'; -import DealListActivitiesResponseAllOf from './DealListActivitiesResponseAllOf'; -import DealListActivitiesResponseAllOfRelatedObjects from './DealListActivitiesResponseAllOfRelatedObjects'; - -/** - * The DealListActivitiesResponse model module. - * @module model/DealListActivitiesResponse - * @version 1.0.0 - */ -class DealListActivitiesResponse { - /** - * Constructs a new DealListActivitiesResponse. - * @alias module:model/DealListActivitiesResponse - * @implements module:model/BaseResponse - * @implements module:model/DealListActivitiesResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);DealListActivitiesResponseAllOf.initialize(this); - DealListActivitiesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealListActivitiesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealListActivitiesResponse} obj Optional instance to populate. - * @return {module:model/DealListActivitiesResponse} The populated DealListActivitiesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealListActivitiesResponse(); - BaseResponse.constructFromObject(data, obj); - DealListActivitiesResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ActivityResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ActivityDistributionDataWithAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = DealListActivitiesResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DealListActivitiesResponse.prototype['success'] = undefined; - -/** - * The array of activities - * @member {Array.} data - */ -DealListActivitiesResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ActivityDistributionDataWithAdditionalData} additional_data - */ -DealListActivitiesResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/DealListActivitiesResponseAllOfRelatedObjects} related_objects - */ -DealListActivitiesResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement DealListActivitiesResponseAllOf interface: -/** - * The array of activities - * @member {Array.} data - */ -DealListActivitiesResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ActivityDistributionDataWithAdditionalData} additional_data - */ -DealListActivitiesResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/DealListActivitiesResponseAllOfRelatedObjects} related_objects - */ -DealListActivitiesResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default DealListActivitiesResponse; - diff --git a/src/model/DealListActivitiesResponseAllOf.js b/src/model/DealListActivitiesResponseAllOf.js deleted file mode 100644 index b1601674..00000000 --- a/src/model/DealListActivitiesResponseAllOf.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityDistributionDataWithAdditionalData from './ActivityDistributionDataWithAdditionalData'; -import ActivityResponseObject from './ActivityResponseObject'; -import DealListActivitiesResponseAllOfRelatedObjects from './DealListActivitiesResponseAllOfRelatedObjects'; - -/** - * The DealListActivitiesResponseAllOf model module. - * @module model/DealListActivitiesResponseAllOf - * @version 1.0.0 - */ -class DealListActivitiesResponseAllOf { - /** - * Constructs a new DealListActivitiesResponseAllOf. - * @alias module:model/DealListActivitiesResponseAllOf - */ - constructor() { - - DealListActivitiesResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealListActivitiesResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealListActivitiesResponseAllOf} obj Optional instance to populate. - * @return {module:model/DealListActivitiesResponseAllOf} The populated DealListActivitiesResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealListActivitiesResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ActivityResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ActivityDistributionDataWithAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = DealListActivitiesResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of activities - * @member {Array.} data - */ -DealListActivitiesResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ActivityDistributionDataWithAdditionalData} additional_data - */ -DealListActivitiesResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/DealListActivitiesResponseAllOfRelatedObjects} related_objects - */ -DealListActivitiesResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default DealListActivitiesResponseAllOf; - diff --git a/src/model/DealListActivitiesResponseAllOfRelatedObjects.js b/src/model/DealListActivitiesResponseAllOfRelatedObjects.js deleted file mode 100644 index 58931b3e..00000000 --- a/src/model/DealListActivitiesResponseAllOfRelatedObjects.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedDealData from './RelatedDealData'; -import RelatedOrganizationDataWithActiveFlag from './RelatedOrganizationDataWithActiveFlag'; -import RelatedPersonDataWithActiveFlag from './RelatedPersonDataWithActiveFlag'; -import RelatedUserData from './RelatedUserData'; - -/** - * The DealListActivitiesResponseAllOfRelatedObjects model module. - * @module model/DealListActivitiesResponseAllOfRelatedObjects - * @version 1.0.0 - */ -class DealListActivitiesResponseAllOfRelatedObjects { - /** - * Constructs a new DealListActivitiesResponseAllOfRelatedObjects. - * @alias module:model/DealListActivitiesResponseAllOfRelatedObjects - */ - constructor() { - - DealListActivitiesResponseAllOfRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealListActivitiesResponseAllOfRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealListActivitiesResponseAllOfRelatedObjects} obj Optional instance to populate. - * @return {module:model/DealListActivitiesResponseAllOfRelatedObjects} The populated DealListActivitiesResponseAllOfRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealListActivitiesResponseAllOfRelatedObjects(); - - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationDataWithActiveFlag.constructFromObject(data['organization']); - - delete data['organization']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = RelatedPersonDataWithActiveFlag.constructFromObject(data['person']); - - delete data['person']; - } - if (data.hasOwnProperty('deal')) { - obj['deal'] = RelatedDealData.constructFromObject(data['deal']); - - delete data['deal']; - } - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedOrganizationDataWithActiveFlag} organization - */ -DealListActivitiesResponseAllOfRelatedObjects.prototype['organization'] = undefined; - -/** - * @member {module:model/RelatedPersonDataWithActiveFlag} person - */ -DealListActivitiesResponseAllOfRelatedObjects.prototype['person'] = undefined; - -/** - * @member {module:model/RelatedDealData} deal - */ -DealListActivitiesResponseAllOfRelatedObjects.prototype['deal'] = undefined; - -/** - * @member {module:model/RelatedUserData} user - */ -DealListActivitiesResponseAllOfRelatedObjects.prototype['user'] = undefined; - - - - - - -export default DealListActivitiesResponseAllOfRelatedObjects; - diff --git a/src/model/DealNonStrict.js b/src/model/DealNonStrict.js deleted file mode 100644 index d9564463..00000000 --- a/src/model/DealNonStrict.js +++ /dev/null @@ -1,1144 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseDeal from './BaseDeal'; -import DealNonStrictModeFields from './DealNonStrictModeFields'; -import DealNonStrictModeFieldsCreatorUserId from './DealNonStrictModeFieldsCreatorUserId'; -import DealOrganizationDataWithId from './DealOrganizationDataWithId'; -import DealPersonDataWithId from './DealPersonDataWithId'; -import DealUserDataWithId from './DealUserDataWithId'; - -/** - * The DealNonStrict model module. - * @module model/DealNonStrict - * @version 1.0.0 - */ -class DealNonStrict { - /** - * Constructs a new DealNonStrict. - * @alias module:model/DealNonStrict - * @implements module:model/DealNonStrictModeFields - * @implements module:model/BaseDeal - */ - constructor() { - DealNonStrictModeFields.initialize(this);BaseDeal.initialize(this); - DealNonStrict.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealNonStrict from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealNonStrict} obj Optional instance to populate. - * @return {module:model/DealNonStrict} The populated DealNonStrict instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealNonStrict(); - DealNonStrictModeFields.constructFromObject(data, obj); - BaseDeal.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('creator_user_id')) { - obj['creator_user_id'] = DealNonStrictModeFieldsCreatorUserId.constructFromObject(data['creator_user_id']); - - delete data['creator_user_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = DealUserDataWithId.constructFromObject(data['user_id']); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = DealPersonDataWithId.constructFromObject(data['person_id']); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = DealOrganizationDataWithId.constructFromObject(data['org_id']); - - delete data['org_id']; - } - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('stage_change_time')) { - obj['stage_change_time'] = ApiClient.convertToType(data['stage_change_time'], 'String'); - - delete data['stage_change_time']; - } - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); - - delete data['active']; - } - if (data.hasOwnProperty('deleted')) { - obj['deleted'] = ApiClient.convertToType(data['deleted'], 'Boolean'); - - delete data['deleted']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('probability')) { - obj['probability'] = ApiClient.convertToType(data['probability'], 'Number'); - - delete data['probability']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - if (data.hasOwnProperty('lost_reason')) { - obj['lost_reason'] = ApiClient.convertToType(data['lost_reason'], 'String'); - - delete data['lost_reason']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('close_time')) { - obj['close_time'] = ApiClient.convertToType(data['close_time'], 'String'); - - delete data['close_time']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('won_time')) { - obj['won_time'] = ApiClient.convertToType(data['won_time'], 'String'); - - delete data['won_time']; - } - if (data.hasOwnProperty('first_won_time')) { - obj['first_won_time'] = ApiClient.convertToType(data['first_won_time'], 'String'); - - delete data['first_won_time']; - } - if (data.hasOwnProperty('lost_time')) { - obj['lost_time'] = ApiClient.convertToType(data['lost_time'], 'String'); - - delete data['lost_time']; - } - if (data.hasOwnProperty('products_count')) { - obj['products_count'] = ApiClient.convertToType(data['products_count'], 'Number'); - - delete data['products_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('participants_count')) { - obj['participants_count'] = ApiClient.convertToType(data['participants_count'], 'Number'); - - delete data['participants_count']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - if (data.hasOwnProperty('stage_order_nr')) { - obj['stage_order_nr'] = ApiClient.convertToType(data['stage_order_nr'], 'Number'); - - delete data['stage_order_nr']; - } - if (data.hasOwnProperty('person_name')) { - obj['person_name'] = ApiClient.convertToType(data['person_name'], 'String'); - - delete data['person_name']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('next_activity_subject')) { - obj['next_activity_subject'] = ApiClient.convertToType(data['next_activity_subject'], 'String'); - - delete data['next_activity_subject']; - } - if (data.hasOwnProperty('next_activity_type')) { - obj['next_activity_type'] = ApiClient.convertToType(data['next_activity_type'], 'String'); - - delete data['next_activity_type']; - } - if (data.hasOwnProperty('next_activity_duration')) { - obj['next_activity_duration'] = ApiClient.convertToType(data['next_activity_duration'], 'String'); - - delete data['next_activity_duration']; - } - if (data.hasOwnProperty('next_activity_note')) { - obj['next_activity_note'] = ApiClient.convertToType(data['next_activity_note'], 'String'); - - delete data['next_activity_note']; - } - if (data.hasOwnProperty('formatted_value')) { - obj['formatted_value'] = ApiClient.convertToType(data['formatted_value'], 'String'); - - delete data['formatted_value']; - } - if (data.hasOwnProperty('weighted_value')) { - obj['weighted_value'] = ApiClient.convertToType(data['weighted_value'], 'Number'); - - delete data['weighted_value']; - } - if (data.hasOwnProperty('formatted_weighted_value')) { - obj['formatted_weighted_value'] = ApiClient.convertToType(data['formatted_weighted_value'], 'String'); - - delete data['formatted_weighted_value']; - } - if (data.hasOwnProperty('weighted_value_currency')) { - obj['weighted_value_currency'] = ApiClient.convertToType(data['weighted_value_currency'], 'String'); - - delete data['weighted_value_currency']; - } - if (data.hasOwnProperty('rotten_time')) { - obj['rotten_time'] = ApiClient.convertToType(data['rotten_time'], 'String'); - - delete data['rotten_time']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('org_hidden')) { - obj['org_hidden'] = ApiClient.convertToType(data['org_hidden'], 'Boolean'); - - delete data['org_hidden']; - } - if (data.hasOwnProperty('person_hidden')) { - obj['person_hidden'] = ApiClient.convertToType(data['person_hidden'], 'Boolean'); - - delete data['person_hidden']; - } - if (data.hasOwnProperty('origin')) { - obj['origin'] = ApiClient.convertToType(data['origin'], 'String'); - - delete data['origin']; - } - if (data.hasOwnProperty('origin_id')) { - obj['origin_id'] = ApiClient.convertToType(data['origin_id'], 'String'); - - delete data['origin_id']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - if (data.hasOwnProperty('arr')) { - obj['arr'] = ApiClient.convertToType(data['arr'], 'Number'); - - delete data['arr']; - } - if (data.hasOwnProperty('mrr')) { - obj['mrr'] = ApiClient.convertToType(data['mrr'], 'Number'); - - delete data['mrr']; - } - if (data.hasOwnProperty('acv')) { - obj['acv'] = ApiClient.convertToType(data['acv'], 'Number'); - - delete data['acv']; - } - if (data.hasOwnProperty('arr_currency')) { - obj['arr_currency'] = ApiClient.convertToType(data['arr_currency'], 'String'); - - delete data['arr_currency']; - } - if (data.hasOwnProperty('mrr_currency')) { - obj['mrr_currency'] = ApiClient.convertToType(data['mrr_currency'], 'String'); - - delete data['mrr_currency']; - } - if (data.hasOwnProperty('acv_currency')) { - obj['acv_currency'] = ApiClient.convertToType(data['acv_currency'], 'String'); - - delete data['acv_currency']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal - * @member {Number} id - */ -DealNonStrict.prototype['id'] = undefined; - -/** - * @member {module:model/DealNonStrictModeFieldsCreatorUserId} creator_user_id - */ -DealNonStrict.prototype['creator_user_id'] = undefined; - -/** - * @member {module:model/DealUserDataWithId} user_id - */ -DealNonStrict.prototype['user_id'] = undefined; - -/** - * @member {module:model/DealPersonDataWithId} person_id - */ -DealNonStrict.prototype['person_id'] = undefined; - -/** - * @member {module:model/DealOrganizationDataWithId} org_id - */ -DealNonStrict.prototype['org_id'] = undefined; - -/** - * The ID of the deal stage - * @member {Number} stage_id - */ -DealNonStrict.prototype['stage_id'] = undefined; - -/** - * The title of the deal - * @member {String} title - */ -DealNonStrict.prototype['title'] = undefined; - -/** - * The value of the deal - * @member {Number} value - */ -DealNonStrict.prototype['value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} currency - */ -DealNonStrict.prototype['currency'] = undefined; - -/** - * The creation date and time of the deal - * @member {String} add_time - */ -DealNonStrict.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the deal - * @member {String} update_time - */ -DealNonStrict.prototype['update_time'] = undefined; - -/** - * The last updated date and time of the deal stage - * @member {String} stage_change_time - */ -DealNonStrict.prototype['stage_change_time'] = undefined; - -/** - * Whether the deal is active or not - * @member {Boolean} active - */ -DealNonStrict.prototype['active'] = undefined; - -/** - * Whether the deal is deleted or not - * @member {Boolean} deleted - */ -DealNonStrict.prototype['deleted'] = undefined; - -/** - * The status of the deal - * @member {String} status - */ -DealNonStrict.prototype['status'] = undefined; - -/** - * The success probability percentage of the deal - * @member {Number} probability - */ -DealNonStrict.prototype['probability'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -DealNonStrict.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -DealNonStrict.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -DealNonStrict.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -DealNonStrict.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -DealNonStrict.prototype['last_activity_date'] = undefined; - -/** - * The reason for losing the deal - * @member {String} lost_reason - */ -DealNonStrict.prototype['lost_reason'] = undefined; - -/** - * The visibility of the deal - * @member {String} visible_to - */ -DealNonStrict.prototype['visible_to'] = undefined; - -/** - * The date and time of closing the deal - * @member {String} close_time - */ -DealNonStrict.prototype['close_time'] = undefined; - -/** - * The ID of the pipeline associated with the deal - * @member {Number} pipeline_id - */ -DealNonStrict.prototype['pipeline_id'] = undefined; - -/** - * The date and time of changing the deal status as won - * @member {String} won_time - */ -DealNonStrict.prototype['won_time'] = undefined; - -/** - * The date and time of the first time changing the deal status as won - * @member {String} first_won_time - */ -DealNonStrict.prototype['first_won_time'] = undefined; - -/** - * The date and time of changing the deal status as lost - * @member {String} lost_time - */ -DealNonStrict.prototype['lost_time'] = undefined; - -/** - * The number of products associated with the deal - * @member {Number} products_count - */ -DealNonStrict.prototype['products_count'] = undefined; - -/** - * The number of files associated with the deal - * @member {Number} files_count - */ -DealNonStrict.prototype['files_count'] = undefined; - -/** - * The number of notes associated with the deal - * @member {Number} notes_count - */ -DealNonStrict.prototype['notes_count'] = undefined; - -/** - * The number of followers associated with the deal - * @member {Number} followers_count - */ -DealNonStrict.prototype['followers_count'] = undefined; - -/** - * The number of emails associated with the deal - * @member {Number} email_messages_count - */ -DealNonStrict.prototype['email_messages_count'] = undefined; - -/** - * The number of activities associated with the deal - * @member {Number} activities_count - */ -DealNonStrict.prototype['activities_count'] = undefined; - -/** - * The number of completed activities associated with the deal - * @member {Number} done_activities_count - */ -DealNonStrict.prototype['done_activities_count'] = undefined; - -/** - * The number of incomplete activities associated with the deal - * @member {Number} undone_activities_count - */ -DealNonStrict.prototype['undone_activities_count'] = undefined; - -/** - * The number of participants associated with the deal - * @member {Number} participants_count - */ -DealNonStrict.prototype['participants_count'] = undefined; - -/** - * The expected close date of the deal - * @member {Date} expected_close_date - */ -DealNonStrict.prototype['expected_close_date'] = undefined; - -/** - * The date and time of the last incoming email associated with the deal - * @member {String} last_incoming_mail_time - */ -DealNonStrict.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the deal - * @member {String} last_outgoing_mail_time - */ -DealNonStrict.prototype['last_outgoing_mail_time'] = undefined; - -/** - * The label or multiple labels assigned to the deal - * @member {String} label - */ -DealNonStrict.prototype['label'] = undefined; - -/** - * The order number of the deal stage associated with the deal - * @member {Number} stage_order_nr - */ -DealNonStrict.prototype['stage_order_nr'] = undefined; - -/** - * The name of the person associated with the deal - * @member {String} person_name - */ -DealNonStrict.prototype['person_name'] = undefined; - -/** - * The name of the organization associated with the deal - * @member {String} org_name - */ -DealNonStrict.prototype['org_name'] = undefined; - -/** - * The subject of the next activity associated with the deal - * @member {String} next_activity_subject - */ -DealNonStrict.prototype['next_activity_subject'] = undefined; - -/** - * The type of the next activity associated with the deal - * @member {String} next_activity_type - */ -DealNonStrict.prototype['next_activity_type'] = undefined; - -/** - * The duration of the next activity associated with the deal - * @member {String} next_activity_duration - */ -DealNonStrict.prototype['next_activity_duration'] = undefined; - -/** - * The note of the next activity associated with the deal - * @member {String} next_activity_note - */ -DealNonStrict.prototype['next_activity_note'] = undefined; - -/** - * The deal value formatted with selected currency. E.g. US$500 - * @member {String} formatted_value - */ -DealNonStrict.prototype['formatted_value'] = undefined; - -/** - * Probability times deal value. Probability can either be deal probability or if not set, then stage probability. - * @member {Number} weighted_value - */ -DealNonStrict.prototype['weighted_value'] = undefined; - -/** - * The weighted_value formatted with selected currency. E.g. US$500 - * @member {String} formatted_weighted_value - */ -DealNonStrict.prototype['formatted_weighted_value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} weighted_value_currency - */ -DealNonStrict.prototype['weighted_value_currency'] = undefined; - -/** - * The date and time of changing the deal status as rotten - * @member {String} rotten_time - */ -DealNonStrict.prototype['rotten_time'] = undefined; - -/** - * The name of the deal owner - * @member {String} owner_name - */ -DealNonStrict.prototype['owner_name'] = undefined; - -/** - * The BCC email of the deal - * @member {String} cc_email - */ -DealNonStrict.prototype['cc_email'] = undefined; - -/** - * If the organization that is associated with the deal is hidden or not - * @member {Boolean} org_hidden - */ -DealNonStrict.prototype['org_hidden'] = undefined; - -/** - * If the person that is associated with the deal is hidden or not - * @member {Boolean} person_hidden - */ -DealNonStrict.prototype['person_hidden'] = undefined; - -/** - * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. - * @member {String} origin - */ -DealNonStrict.prototype['origin'] = undefined; - -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. - * @member {String} origin_id - */ -DealNonStrict.prototype['origin_id'] = undefined; - -/** - * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. - * @member {Number} channel - */ -DealNonStrict.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -DealNonStrict.prototype['channel_id'] = undefined; - -/** - * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} arr - */ -DealNonStrict.prototype['arr'] = undefined; - -/** - * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} mrr - */ -DealNonStrict.prototype['mrr'] = undefined; - -/** - * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal - * @member {Number} acv - */ -DealNonStrict.prototype['acv'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null - * @member {String} arr_currency - */ -DealNonStrict.prototype['arr_currency'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null - * @member {String} mrr_currency - */ -DealNonStrict.prototype['mrr_currency'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null - * @member {String} acv_currency - */ -DealNonStrict.prototype['acv_currency'] = undefined; - - -// Implement DealNonStrictModeFields interface: -/** - * The ID of the deal - * @member {Number} id - */ -DealNonStrictModeFields.prototype['id'] = undefined; -/** - * @member {module:model/DealNonStrictModeFieldsCreatorUserId} creator_user_id - */ -DealNonStrictModeFields.prototype['creator_user_id'] = undefined; -/** - * @member {module:model/DealUserDataWithId} user_id - */ -DealNonStrictModeFields.prototype['user_id'] = undefined; -/** - * @member {module:model/DealPersonDataWithId} person_id - */ -DealNonStrictModeFields.prototype['person_id'] = undefined; -/** - * @member {module:model/DealOrganizationDataWithId} org_id - */ -DealNonStrictModeFields.prototype['org_id'] = undefined; -// Implement BaseDeal interface: -/** - * The ID of the deal stage - * @member {Number} stage_id - */ -BaseDeal.prototype['stage_id'] = undefined; -/** - * The title of the deal - * @member {String} title - */ -BaseDeal.prototype['title'] = undefined; -/** - * The value of the deal - * @member {Number} value - */ -BaseDeal.prototype['value'] = undefined; -/** - * The currency associated with the deal - * @member {String} currency - */ -BaseDeal.prototype['currency'] = undefined; -/** - * The creation date and time of the deal - * @member {String} add_time - */ -BaseDeal.prototype['add_time'] = undefined; -/** - * The last updated date and time of the deal - * @member {String} update_time - */ -BaseDeal.prototype['update_time'] = undefined; -/** - * The last updated date and time of the deal stage - * @member {String} stage_change_time - */ -BaseDeal.prototype['stage_change_time'] = undefined; -/** - * Whether the deal is active or not - * @member {Boolean} active - */ -BaseDeal.prototype['active'] = undefined; -/** - * Whether the deal is deleted or not - * @member {Boolean} deleted - */ -BaseDeal.prototype['deleted'] = undefined; -/** - * The status of the deal - * @member {String} status - */ -BaseDeal.prototype['status'] = undefined; -/** - * The success probability percentage of the deal - * @member {Number} probability - */ -BaseDeal.prototype['probability'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -BaseDeal.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -BaseDeal.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -BaseDeal.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -BaseDeal.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -BaseDeal.prototype['last_activity_date'] = undefined; -/** - * The reason for losing the deal - * @member {String} lost_reason - */ -BaseDeal.prototype['lost_reason'] = undefined; -/** - * The visibility of the deal - * @member {String} visible_to - */ -BaseDeal.prototype['visible_to'] = undefined; -/** - * The date and time of closing the deal - * @member {String} close_time - */ -BaseDeal.prototype['close_time'] = undefined; -/** - * The ID of the pipeline associated with the deal - * @member {Number} pipeline_id - */ -BaseDeal.prototype['pipeline_id'] = undefined; -/** - * The date and time of changing the deal status as won - * @member {String} won_time - */ -BaseDeal.prototype['won_time'] = undefined; -/** - * The date and time of the first time changing the deal status as won - * @member {String} first_won_time - */ -BaseDeal.prototype['first_won_time'] = undefined; -/** - * The date and time of changing the deal status as lost - * @member {String} lost_time - */ -BaseDeal.prototype['lost_time'] = undefined; -/** - * The number of products associated with the deal - * @member {Number} products_count - */ -BaseDeal.prototype['products_count'] = undefined; -/** - * The number of files associated with the deal - * @member {Number} files_count - */ -BaseDeal.prototype['files_count'] = undefined; -/** - * The number of notes associated with the deal - * @member {Number} notes_count - */ -BaseDeal.prototype['notes_count'] = undefined; -/** - * The number of followers associated with the deal - * @member {Number} followers_count - */ -BaseDeal.prototype['followers_count'] = undefined; -/** - * The number of emails associated with the deal - * @member {Number} email_messages_count - */ -BaseDeal.prototype['email_messages_count'] = undefined; -/** - * The number of activities associated with the deal - * @member {Number} activities_count - */ -BaseDeal.prototype['activities_count'] = undefined; -/** - * The number of completed activities associated with the deal - * @member {Number} done_activities_count - */ -BaseDeal.prototype['done_activities_count'] = undefined; -/** - * The number of incomplete activities associated with the deal - * @member {Number} undone_activities_count - */ -BaseDeal.prototype['undone_activities_count'] = undefined; -/** - * The number of participants associated with the deal - * @member {Number} participants_count - */ -BaseDeal.prototype['participants_count'] = undefined; -/** - * The expected close date of the deal - * @member {Date} expected_close_date - */ -BaseDeal.prototype['expected_close_date'] = undefined; -/** - * The date and time of the last incoming email associated with the deal - * @member {String} last_incoming_mail_time - */ -BaseDeal.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the deal - * @member {String} last_outgoing_mail_time - */ -BaseDeal.prototype['last_outgoing_mail_time'] = undefined; -/** - * The label or multiple labels assigned to the deal - * @member {String} label - */ -BaseDeal.prototype['label'] = undefined; -/** - * The order number of the deal stage associated with the deal - * @member {Number} stage_order_nr - */ -BaseDeal.prototype['stage_order_nr'] = undefined; -/** - * The name of the person associated with the deal - * @member {String} person_name - */ -BaseDeal.prototype['person_name'] = undefined; -/** - * The name of the organization associated with the deal - * @member {String} org_name - */ -BaseDeal.prototype['org_name'] = undefined; -/** - * The subject of the next activity associated with the deal - * @member {String} next_activity_subject - */ -BaseDeal.prototype['next_activity_subject'] = undefined; -/** - * The type of the next activity associated with the deal - * @member {String} next_activity_type - */ -BaseDeal.prototype['next_activity_type'] = undefined; -/** - * The duration of the next activity associated with the deal - * @member {String} next_activity_duration - */ -BaseDeal.prototype['next_activity_duration'] = undefined; -/** - * The note of the next activity associated with the deal - * @member {String} next_activity_note - */ -BaseDeal.prototype['next_activity_note'] = undefined; -/** - * The deal value formatted with selected currency. E.g. US$500 - * @member {String} formatted_value - */ -BaseDeal.prototype['formatted_value'] = undefined; -/** - * Probability times deal value. Probability can either be deal probability or if not set, then stage probability. - * @member {Number} weighted_value - */ -BaseDeal.prototype['weighted_value'] = undefined; -/** - * The weighted_value formatted with selected currency. E.g. US$500 - * @member {String} formatted_weighted_value - */ -BaseDeal.prototype['formatted_weighted_value'] = undefined; -/** - * The currency associated with the deal - * @member {String} weighted_value_currency - */ -BaseDeal.prototype['weighted_value_currency'] = undefined; -/** - * The date and time of changing the deal status as rotten - * @member {String} rotten_time - */ -BaseDeal.prototype['rotten_time'] = undefined; -/** - * The name of the deal owner - * @member {String} owner_name - */ -BaseDeal.prototype['owner_name'] = undefined; -/** - * The BCC email of the deal - * @member {String} cc_email - */ -BaseDeal.prototype['cc_email'] = undefined; -/** - * If the organization that is associated with the deal is hidden or not - * @member {Boolean} org_hidden - */ -BaseDeal.prototype['org_hidden'] = undefined; -/** - * If the person that is associated with the deal is hidden or not - * @member {Boolean} person_hidden - */ -BaseDeal.prototype['person_hidden'] = undefined; -/** - * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. - * @member {String} origin - */ -BaseDeal.prototype['origin'] = undefined; -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. - * @member {String} origin_id - */ -BaseDeal.prototype['origin_id'] = undefined; -/** - * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. - * @member {Number} channel - */ -BaseDeal.prototype['channel'] = undefined; -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -BaseDeal.prototype['channel_id'] = undefined; -/** - * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} arr - */ -BaseDeal.prototype['arr'] = undefined; -/** - * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} mrr - */ -BaseDeal.prototype['mrr'] = undefined; -/** - * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal - * @member {Number} acv - */ -BaseDeal.prototype['acv'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null - * @member {String} arr_currency - */ -BaseDeal.prototype['arr_currency'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null - * @member {String} mrr_currency - */ -BaseDeal.prototype['mrr_currency'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null - * @member {String} acv_currency - */ -BaseDeal.prototype['acv_currency'] = undefined; - - - - -export default DealNonStrict; - diff --git a/src/model/DealNonStrictModeFields.js b/src/model/DealNonStrictModeFields.js deleted file mode 100644 index a6251c14..00000000 --- a/src/model/DealNonStrictModeFields.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealNonStrictModeFieldsCreatorUserId from './DealNonStrictModeFieldsCreatorUserId'; -import DealOrganizationDataWithId from './DealOrganizationDataWithId'; -import DealPersonDataWithId from './DealPersonDataWithId'; -import DealUserDataWithId from './DealUserDataWithId'; - -/** - * The DealNonStrictModeFields model module. - * @module model/DealNonStrictModeFields - * @version 1.0.0 - */ -class DealNonStrictModeFields { - /** - * Constructs a new DealNonStrictModeFields. - * @alias module:model/DealNonStrictModeFields - */ - constructor() { - - DealNonStrictModeFields.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealNonStrictModeFields from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealNonStrictModeFields} obj Optional instance to populate. - * @return {module:model/DealNonStrictModeFields} The populated DealNonStrictModeFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealNonStrictModeFields(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('creator_user_id')) { - obj['creator_user_id'] = DealNonStrictModeFieldsCreatorUserId.constructFromObject(data['creator_user_id']); - - delete data['creator_user_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = DealUserDataWithId.constructFromObject(data['user_id']); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = DealPersonDataWithId.constructFromObject(data['person_id']); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = DealOrganizationDataWithId.constructFromObject(data['org_id']); - - delete data['org_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal - * @member {Number} id - */ -DealNonStrictModeFields.prototype['id'] = undefined; - -/** - * @member {module:model/DealNonStrictModeFieldsCreatorUserId} creator_user_id - */ -DealNonStrictModeFields.prototype['creator_user_id'] = undefined; - -/** - * @member {module:model/DealUserDataWithId} user_id - */ -DealNonStrictModeFields.prototype['user_id'] = undefined; - -/** - * @member {module:model/DealPersonDataWithId} person_id - */ -DealNonStrictModeFields.prototype['person_id'] = undefined; - -/** - * @member {module:model/DealOrganizationDataWithId} org_id - */ -DealNonStrictModeFields.prototype['org_id'] = undefined; - - - - - - -export default DealNonStrictModeFields; - diff --git a/src/model/DealNonStrictModeFieldsCreatorUserId.js b/src/model/DealNonStrictModeFieldsCreatorUserId.js deleted file mode 100644 index 87769e59..00000000 --- a/src/model/DealNonStrictModeFieldsCreatorUserId.js +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealNonStrictModeFieldsCreatorUserId model module. - * @module model/DealNonStrictModeFieldsCreatorUserId - * @version 1.0.0 - */ -class DealNonStrictModeFieldsCreatorUserId { - /** - * Constructs a new DealNonStrictModeFieldsCreatorUserId. - * The creator of the deal - * @alias module:model/DealNonStrictModeFieldsCreatorUserId - */ - constructor() { - - DealNonStrictModeFieldsCreatorUserId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealNonStrictModeFieldsCreatorUserId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealNonStrictModeFieldsCreatorUserId} obj Optional instance to populate. - * @return {module:model/DealNonStrictModeFieldsCreatorUserId} The populated DealNonStrictModeFieldsCreatorUserId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealNonStrictModeFieldsCreatorUserId(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('has_pic')) { - obj['has_pic'] = ApiClient.convertToType(data['has_pic'], 'Boolean'); - - delete data['has_pic']; - } - if (data.hasOwnProperty('pic_hash')) { - obj['pic_hash'] = ApiClient.convertToType(data['pic_hash'], 'String'); - - delete data['pic_hash']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal creator - * @member {Number} id - */ -DealNonStrictModeFieldsCreatorUserId.prototype['id'] = undefined; - -/** - * The name of the deal creator - * @member {String} name - */ -DealNonStrictModeFieldsCreatorUserId.prototype['name'] = undefined; - -/** - * The email of the deal creator - * @member {String} email - */ -DealNonStrictModeFieldsCreatorUserId.prototype['email'] = undefined; - -/** - * If the creator has a picture or not - * @member {Boolean} has_pic - */ -DealNonStrictModeFieldsCreatorUserId.prototype['has_pic'] = undefined; - -/** - * The creator picture hash - * @member {String} pic_hash - */ -DealNonStrictModeFieldsCreatorUserId.prototype['pic_hash'] = undefined; - -/** - * Whether the creator is active or not - * @member {Boolean} active_flag - */ -DealNonStrictModeFieldsCreatorUserId.prototype['active_flag'] = undefined; - -/** - * The ID of the deal creator - * @member {Number} value - */ -DealNonStrictModeFieldsCreatorUserId.prototype['value'] = undefined; - - - - - - -export default DealNonStrictModeFieldsCreatorUserId; - diff --git a/src/model/DealNonStrictWithDetails.js b/src/model/DealNonStrictWithDetails.js deleted file mode 100644 index 7c63e988..00000000 --- a/src/model/DealNonStrictWithDetails.js +++ /dev/null @@ -1,1237 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealNonStrict from './DealNonStrict'; -import DealNonStrictModeFieldsCreatorUserId from './DealNonStrictModeFieldsCreatorUserId'; -import DealNonStrictWithDetailsAllOf from './DealNonStrictWithDetailsAllOf'; -import DealNonStrictWithDetailsAllOfAge from './DealNonStrictWithDetailsAllOfAge'; -import DealNonStrictWithDetailsAllOfAverageTimeToWon from './DealNonStrictWithDetailsAllOfAverageTimeToWon'; -import DealNonStrictWithDetailsAllOfStayInPipelineStages from './DealNonStrictWithDetailsAllOfStayInPipelineStages'; -import DealOrganizationDataWithId from './DealOrganizationDataWithId'; -import DealPersonDataWithId from './DealPersonDataWithId'; -import DealUserDataWithId from './DealUserDataWithId'; - -/** - * The DealNonStrictWithDetails model module. - * @module model/DealNonStrictWithDetails - * @version 1.0.0 - */ -class DealNonStrictWithDetails { - /** - * Constructs a new DealNonStrictWithDetails. - * @alias module:model/DealNonStrictWithDetails - * @implements module:model/DealNonStrict - * @implements module:model/DealNonStrictWithDetailsAllOf - */ - constructor() { - DealNonStrict.initialize(this);DealNonStrictWithDetailsAllOf.initialize(this); - DealNonStrictWithDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealNonStrictWithDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealNonStrictWithDetails} obj Optional instance to populate. - * @return {module:model/DealNonStrictWithDetails} The populated DealNonStrictWithDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealNonStrictWithDetails(); - DealNonStrict.constructFromObject(data, obj); - DealNonStrictWithDetailsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('creator_user_id')) { - obj['creator_user_id'] = DealNonStrictModeFieldsCreatorUserId.constructFromObject(data['creator_user_id']); - - delete data['creator_user_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = DealUserDataWithId.constructFromObject(data['user_id']); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = DealPersonDataWithId.constructFromObject(data['person_id']); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = DealOrganizationDataWithId.constructFromObject(data['org_id']); - - delete data['org_id']; - } - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('stage_change_time')) { - obj['stage_change_time'] = ApiClient.convertToType(data['stage_change_time'], 'String'); - - delete data['stage_change_time']; - } - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); - - delete data['active']; - } - if (data.hasOwnProperty('deleted')) { - obj['deleted'] = ApiClient.convertToType(data['deleted'], 'Boolean'); - - delete data['deleted']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('probability')) { - obj['probability'] = ApiClient.convertToType(data['probability'], 'Number'); - - delete data['probability']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - if (data.hasOwnProperty('lost_reason')) { - obj['lost_reason'] = ApiClient.convertToType(data['lost_reason'], 'String'); - - delete data['lost_reason']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('close_time')) { - obj['close_time'] = ApiClient.convertToType(data['close_time'], 'String'); - - delete data['close_time']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('won_time')) { - obj['won_time'] = ApiClient.convertToType(data['won_time'], 'String'); - - delete data['won_time']; - } - if (data.hasOwnProperty('first_won_time')) { - obj['first_won_time'] = ApiClient.convertToType(data['first_won_time'], 'String'); - - delete data['first_won_time']; - } - if (data.hasOwnProperty('lost_time')) { - obj['lost_time'] = ApiClient.convertToType(data['lost_time'], 'String'); - - delete data['lost_time']; - } - if (data.hasOwnProperty('products_count')) { - obj['products_count'] = ApiClient.convertToType(data['products_count'], 'Number'); - - delete data['products_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('participants_count')) { - obj['participants_count'] = ApiClient.convertToType(data['participants_count'], 'Number'); - - delete data['participants_count']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - if (data.hasOwnProperty('stage_order_nr')) { - obj['stage_order_nr'] = ApiClient.convertToType(data['stage_order_nr'], 'Number'); - - delete data['stage_order_nr']; - } - if (data.hasOwnProperty('person_name')) { - obj['person_name'] = ApiClient.convertToType(data['person_name'], 'String'); - - delete data['person_name']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('next_activity_subject')) { - obj['next_activity_subject'] = ApiClient.convertToType(data['next_activity_subject'], 'String'); - - delete data['next_activity_subject']; - } - if (data.hasOwnProperty('next_activity_type')) { - obj['next_activity_type'] = ApiClient.convertToType(data['next_activity_type'], 'String'); - - delete data['next_activity_type']; - } - if (data.hasOwnProperty('next_activity_duration')) { - obj['next_activity_duration'] = ApiClient.convertToType(data['next_activity_duration'], 'String'); - - delete data['next_activity_duration']; - } - if (data.hasOwnProperty('next_activity_note')) { - obj['next_activity_note'] = ApiClient.convertToType(data['next_activity_note'], 'String'); - - delete data['next_activity_note']; - } - if (data.hasOwnProperty('formatted_value')) { - obj['formatted_value'] = ApiClient.convertToType(data['formatted_value'], 'String'); - - delete data['formatted_value']; - } - if (data.hasOwnProperty('weighted_value')) { - obj['weighted_value'] = ApiClient.convertToType(data['weighted_value'], 'Number'); - - delete data['weighted_value']; - } - if (data.hasOwnProperty('formatted_weighted_value')) { - obj['formatted_weighted_value'] = ApiClient.convertToType(data['formatted_weighted_value'], 'String'); - - delete data['formatted_weighted_value']; - } - if (data.hasOwnProperty('weighted_value_currency')) { - obj['weighted_value_currency'] = ApiClient.convertToType(data['weighted_value_currency'], 'String'); - - delete data['weighted_value_currency']; - } - if (data.hasOwnProperty('rotten_time')) { - obj['rotten_time'] = ApiClient.convertToType(data['rotten_time'], 'String'); - - delete data['rotten_time']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('org_hidden')) { - obj['org_hidden'] = ApiClient.convertToType(data['org_hidden'], 'Boolean'); - - delete data['org_hidden']; - } - if (data.hasOwnProperty('person_hidden')) { - obj['person_hidden'] = ApiClient.convertToType(data['person_hidden'], 'Boolean'); - - delete data['person_hidden']; - } - if (data.hasOwnProperty('origin')) { - obj['origin'] = ApiClient.convertToType(data['origin'], 'String'); - - delete data['origin']; - } - if (data.hasOwnProperty('origin_id')) { - obj['origin_id'] = ApiClient.convertToType(data['origin_id'], 'String'); - - delete data['origin_id']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - if (data.hasOwnProperty('arr')) { - obj['arr'] = ApiClient.convertToType(data['arr'], 'Number'); - - delete data['arr']; - } - if (data.hasOwnProperty('mrr')) { - obj['mrr'] = ApiClient.convertToType(data['mrr'], 'Number'); - - delete data['mrr']; - } - if (data.hasOwnProperty('acv')) { - obj['acv'] = ApiClient.convertToType(data['acv'], 'Number'); - - delete data['acv']; - } - if (data.hasOwnProperty('arr_currency')) { - obj['arr_currency'] = ApiClient.convertToType(data['arr_currency'], 'String'); - - delete data['arr_currency']; - } - if (data.hasOwnProperty('mrr_currency')) { - obj['mrr_currency'] = ApiClient.convertToType(data['mrr_currency'], 'String'); - - delete data['mrr_currency']; - } - if (data.hasOwnProperty('acv_currency')) { - obj['acv_currency'] = ApiClient.convertToType(data['acv_currency'], 'String'); - - delete data['acv_currency']; - } - if (data.hasOwnProperty('average_time_to_won')) { - obj['average_time_to_won'] = DealNonStrictWithDetailsAllOfAverageTimeToWon.constructFromObject(data['average_time_to_won']); - - delete data['average_time_to_won']; - } - if (data.hasOwnProperty('average_stage_progress')) { - obj['average_stage_progress'] = ApiClient.convertToType(data['average_stage_progress'], 'Number'); - - delete data['average_stage_progress']; - } - if (data.hasOwnProperty('age')) { - obj['age'] = DealNonStrictWithDetailsAllOfAge.constructFromObject(data['age']); - - delete data['age']; - } - if (data.hasOwnProperty('stay_in_pipeline_stages')) { - obj['stay_in_pipeline_stages'] = DealNonStrictWithDetailsAllOfStayInPipelineStages.constructFromObject(data['stay_in_pipeline_stages']); - - delete data['stay_in_pipeline_stages']; - } - if (data.hasOwnProperty('last_activity')) { - obj['last_activity'] = ApiClient.convertToType(data['last_activity'], Object); - - delete data['last_activity']; - } - if (data.hasOwnProperty('next_activity')) { - obj['next_activity'] = ApiClient.convertToType(data['next_activity'], Object); - - delete data['next_activity']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal - * @member {Number} id - */ -DealNonStrictWithDetails.prototype['id'] = undefined; - -/** - * @member {module:model/DealNonStrictModeFieldsCreatorUserId} creator_user_id - */ -DealNonStrictWithDetails.prototype['creator_user_id'] = undefined; - -/** - * @member {module:model/DealUserDataWithId} user_id - */ -DealNonStrictWithDetails.prototype['user_id'] = undefined; - -/** - * @member {module:model/DealPersonDataWithId} person_id - */ -DealNonStrictWithDetails.prototype['person_id'] = undefined; - -/** - * @member {module:model/DealOrganizationDataWithId} org_id - */ -DealNonStrictWithDetails.prototype['org_id'] = undefined; - -/** - * The ID of the deal stage - * @member {Number} stage_id - */ -DealNonStrictWithDetails.prototype['stage_id'] = undefined; - -/** - * The title of the deal - * @member {String} title - */ -DealNonStrictWithDetails.prototype['title'] = undefined; - -/** - * The value of the deal - * @member {Number} value - */ -DealNonStrictWithDetails.prototype['value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} currency - */ -DealNonStrictWithDetails.prototype['currency'] = undefined; - -/** - * The creation date and time of the deal - * @member {String} add_time - */ -DealNonStrictWithDetails.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the deal - * @member {String} update_time - */ -DealNonStrictWithDetails.prototype['update_time'] = undefined; - -/** - * The last updated date and time of the deal stage - * @member {String} stage_change_time - */ -DealNonStrictWithDetails.prototype['stage_change_time'] = undefined; - -/** - * Whether the deal is active or not - * @member {Boolean} active - */ -DealNonStrictWithDetails.prototype['active'] = undefined; - -/** - * Whether the deal is deleted or not - * @member {Boolean} deleted - */ -DealNonStrictWithDetails.prototype['deleted'] = undefined; - -/** - * The status of the deal - * @member {String} status - */ -DealNonStrictWithDetails.prototype['status'] = undefined; - -/** - * The success probability percentage of the deal - * @member {Number} probability - */ -DealNonStrictWithDetails.prototype['probability'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -DealNonStrictWithDetails.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -DealNonStrictWithDetails.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -DealNonStrictWithDetails.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -DealNonStrictWithDetails.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -DealNonStrictWithDetails.prototype['last_activity_date'] = undefined; - -/** - * The reason for losing the deal - * @member {String} lost_reason - */ -DealNonStrictWithDetails.prototype['lost_reason'] = undefined; - -/** - * The visibility of the deal - * @member {String} visible_to - */ -DealNonStrictWithDetails.prototype['visible_to'] = undefined; - -/** - * The date and time of closing the deal - * @member {String} close_time - */ -DealNonStrictWithDetails.prototype['close_time'] = undefined; - -/** - * The ID of the pipeline associated with the deal - * @member {Number} pipeline_id - */ -DealNonStrictWithDetails.prototype['pipeline_id'] = undefined; - -/** - * The date and time of changing the deal status as won - * @member {String} won_time - */ -DealNonStrictWithDetails.prototype['won_time'] = undefined; - -/** - * The date and time of the first time changing the deal status as won - * @member {String} first_won_time - */ -DealNonStrictWithDetails.prototype['first_won_time'] = undefined; - -/** - * The date and time of changing the deal status as lost - * @member {String} lost_time - */ -DealNonStrictWithDetails.prototype['lost_time'] = undefined; - -/** - * The number of products associated with the deal - * @member {Number} products_count - */ -DealNonStrictWithDetails.prototype['products_count'] = undefined; - -/** - * The number of files associated with the deal - * @member {Number} files_count - */ -DealNonStrictWithDetails.prototype['files_count'] = undefined; - -/** - * The number of notes associated with the deal - * @member {Number} notes_count - */ -DealNonStrictWithDetails.prototype['notes_count'] = undefined; - -/** - * The number of followers associated with the deal - * @member {Number} followers_count - */ -DealNonStrictWithDetails.prototype['followers_count'] = undefined; - -/** - * The number of emails associated with the deal - * @member {Number} email_messages_count - */ -DealNonStrictWithDetails.prototype['email_messages_count'] = undefined; - -/** - * The number of activities associated with the deal - * @member {Number} activities_count - */ -DealNonStrictWithDetails.prototype['activities_count'] = undefined; - -/** - * The number of completed activities associated with the deal - * @member {Number} done_activities_count - */ -DealNonStrictWithDetails.prototype['done_activities_count'] = undefined; - -/** - * The number of incomplete activities associated with the deal - * @member {Number} undone_activities_count - */ -DealNonStrictWithDetails.prototype['undone_activities_count'] = undefined; - -/** - * The number of participants associated with the deal - * @member {Number} participants_count - */ -DealNonStrictWithDetails.prototype['participants_count'] = undefined; - -/** - * The expected close date of the deal - * @member {Date} expected_close_date - */ -DealNonStrictWithDetails.prototype['expected_close_date'] = undefined; - -/** - * The date and time of the last incoming email associated with the deal - * @member {String} last_incoming_mail_time - */ -DealNonStrictWithDetails.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the deal - * @member {String} last_outgoing_mail_time - */ -DealNonStrictWithDetails.prototype['last_outgoing_mail_time'] = undefined; - -/** - * The label or multiple labels assigned to the deal - * @member {String} label - */ -DealNonStrictWithDetails.prototype['label'] = undefined; - -/** - * The order number of the deal stage associated with the deal - * @member {Number} stage_order_nr - */ -DealNonStrictWithDetails.prototype['stage_order_nr'] = undefined; - -/** - * The name of the person associated with the deal - * @member {String} person_name - */ -DealNonStrictWithDetails.prototype['person_name'] = undefined; - -/** - * The name of the organization associated with the deal - * @member {String} org_name - */ -DealNonStrictWithDetails.prototype['org_name'] = undefined; - -/** - * The subject of the next activity associated with the deal - * @member {String} next_activity_subject - */ -DealNonStrictWithDetails.prototype['next_activity_subject'] = undefined; - -/** - * The type of the next activity associated with the deal - * @member {String} next_activity_type - */ -DealNonStrictWithDetails.prototype['next_activity_type'] = undefined; - -/** - * The duration of the next activity associated with the deal - * @member {String} next_activity_duration - */ -DealNonStrictWithDetails.prototype['next_activity_duration'] = undefined; - -/** - * The note of the next activity associated with the deal - * @member {String} next_activity_note - */ -DealNonStrictWithDetails.prototype['next_activity_note'] = undefined; - -/** - * The deal value formatted with selected currency. E.g. US$500 - * @member {String} formatted_value - */ -DealNonStrictWithDetails.prototype['formatted_value'] = undefined; - -/** - * Probability times deal value. Probability can either be deal probability or if not set, then stage probability. - * @member {Number} weighted_value - */ -DealNonStrictWithDetails.prototype['weighted_value'] = undefined; - -/** - * The weighted_value formatted with selected currency. E.g. US$500 - * @member {String} formatted_weighted_value - */ -DealNonStrictWithDetails.prototype['formatted_weighted_value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} weighted_value_currency - */ -DealNonStrictWithDetails.prototype['weighted_value_currency'] = undefined; - -/** - * The date and time of changing the deal status as rotten - * @member {String} rotten_time - */ -DealNonStrictWithDetails.prototype['rotten_time'] = undefined; - -/** - * The name of the deal owner - * @member {String} owner_name - */ -DealNonStrictWithDetails.prototype['owner_name'] = undefined; - -/** - * The BCC email of the deal - * @member {String} cc_email - */ -DealNonStrictWithDetails.prototype['cc_email'] = undefined; - -/** - * If the organization that is associated with the deal is hidden or not - * @member {Boolean} org_hidden - */ -DealNonStrictWithDetails.prototype['org_hidden'] = undefined; - -/** - * If the person that is associated with the deal is hidden or not - * @member {Boolean} person_hidden - */ -DealNonStrictWithDetails.prototype['person_hidden'] = undefined; - -/** - * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. - * @member {String} origin - */ -DealNonStrictWithDetails.prototype['origin'] = undefined; - -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. - * @member {String} origin_id - */ -DealNonStrictWithDetails.prototype['origin_id'] = undefined; - -/** - * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. - * @member {Number} channel - */ -DealNonStrictWithDetails.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -DealNonStrictWithDetails.prototype['channel_id'] = undefined; - -/** - * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} arr - */ -DealNonStrictWithDetails.prototype['arr'] = undefined; - -/** - * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} mrr - */ -DealNonStrictWithDetails.prototype['mrr'] = undefined; - -/** - * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal - * @member {Number} acv - */ -DealNonStrictWithDetails.prototype['acv'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null - * @member {String} arr_currency - */ -DealNonStrictWithDetails.prototype['arr_currency'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null - * @member {String} mrr_currency - */ -DealNonStrictWithDetails.prototype['mrr_currency'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null - * @member {String} acv_currency - */ -DealNonStrictWithDetails.prototype['acv_currency'] = undefined; - -/** - * @member {module:model/DealNonStrictWithDetailsAllOfAverageTimeToWon} average_time_to_won - */ -DealNonStrictWithDetails.prototype['average_time_to_won'] = undefined; - -/** - * The average of the deal stage progression - * @member {Number} average_stage_progress - */ -DealNonStrictWithDetails.prototype['average_stage_progress'] = undefined; - -/** - * @member {module:model/DealNonStrictWithDetailsAllOfAge} age - */ -DealNonStrictWithDetails.prototype['age'] = undefined; - -/** - * @member {module:model/DealNonStrictWithDetailsAllOfStayInPipelineStages} stay_in_pipeline_stages - */ -DealNonStrictWithDetails.prototype['stay_in_pipeline_stages'] = undefined; - -/** - * The details of the last activity associated with the deal - * @member {Object} last_activity - */ -DealNonStrictWithDetails.prototype['last_activity'] = undefined; - -/** - * The details of the next activity associated with the deal - * @member {Object} next_activity - */ -DealNonStrictWithDetails.prototype['next_activity'] = undefined; - - -// Implement DealNonStrict interface: -/** - * The ID of the deal - * @member {Number} id - */ -DealNonStrict.prototype['id'] = undefined; -/** - * @member {module:model/DealNonStrictModeFieldsCreatorUserId} creator_user_id - */ -DealNonStrict.prototype['creator_user_id'] = undefined; -/** - * @member {module:model/DealUserDataWithId} user_id - */ -DealNonStrict.prototype['user_id'] = undefined; -/** - * @member {module:model/DealPersonDataWithId} person_id - */ -DealNonStrict.prototype['person_id'] = undefined; -/** - * @member {module:model/DealOrganizationDataWithId} org_id - */ -DealNonStrict.prototype['org_id'] = undefined; -/** - * The ID of the deal stage - * @member {Number} stage_id - */ -DealNonStrict.prototype['stage_id'] = undefined; -/** - * The title of the deal - * @member {String} title - */ -DealNonStrict.prototype['title'] = undefined; -/** - * The value of the deal - * @member {Number} value - */ -DealNonStrict.prototype['value'] = undefined; -/** - * The currency associated with the deal - * @member {String} currency - */ -DealNonStrict.prototype['currency'] = undefined; -/** - * The creation date and time of the deal - * @member {String} add_time - */ -DealNonStrict.prototype['add_time'] = undefined; -/** - * The last updated date and time of the deal - * @member {String} update_time - */ -DealNonStrict.prototype['update_time'] = undefined; -/** - * The last updated date and time of the deal stage - * @member {String} stage_change_time - */ -DealNonStrict.prototype['stage_change_time'] = undefined; -/** - * Whether the deal is active or not - * @member {Boolean} active - */ -DealNonStrict.prototype['active'] = undefined; -/** - * Whether the deal is deleted or not - * @member {Boolean} deleted - */ -DealNonStrict.prototype['deleted'] = undefined; -/** - * The status of the deal - * @member {String} status - */ -DealNonStrict.prototype['status'] = undefined; -/** - * The success probability percentage of the deal - * @member {Number} probability - */ -DealNonStrict.prototype['probability'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -DealNonStrict.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -DealNonStrict.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -DealNonStrict.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -DealNonStrict.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -DealNonStrict.prototype['last_activity_date'] = undefined; -/** - * The reason for losing the deal - * @member {String} lost_reason - */ -DealNonStrict.prototype['lost_reason'] = undefined; -/** - * The visibility of the deal - * @member {String} visible_to - */ -DealNonStrict.prototype['visible_to'] = undefined; -/** - * The date and time of closing the deal - * @member {String} close_time - */ -DealNonStrict.prototype['close_time'] = undefined; -/** - * The ID of the pipeline associated with the deal - * @member {Number} pipeline_id - */ -DealNonStrict.prototype['pipeline_id'] = undefined; -/** - * The date and time of changing the deal status as won - * @member {String} won_time - */ -DealNonStrict.prototype['won_time'] = undefined; -/** - * The date and time of the first time changing the deal status as won - * @member {String} first_won_time - */ -DealNonStrict.prototype['first_won_time'] = undefined; -/** - * The date and time of changing the deal status as lost - * @member {String} lost_time - */ -DealNonStrict.prototype['lost_time'] = undefined; -/** - * The number of products associated with the deal - * @member {Number} products_count - */ -DealNonStrict.prototype['products_count'] = undefined; -/** - * The number of files associated with the deal - * @member {Number} files_count - */ -DealNonStrict.prototype['files_count'] = undefined; -/** - * The number of notes associated with the deal - * @member {Number} notes_count - */ -DealNonStrict.prototype['notes_count'] = undefined; -/** - * The number of followers associated with the deal - * @member {Number} followers_count - */ -DealNonStrict.prototype['followers_count'] = undefined; -/** - * The number of emails associated with the deal - * @member {Number} email_messages_count - */ -DealNonStrict.prototype['email_messages_count'] = undefined; -/** - * The number of activities associated with the deal - * @member {Number} activities_count - */ -DealNonStrict.prototype['activities_count'] = undefined; -/** - * The number of completed activities associated with the deal - * @member {Number} done_activities_count - */ -DealNonStrict.prototype['done_activities_count'] = undefined; -/** - * The number of incomplete activities associated with the deal - * @member {Number} undone_activities_count - */ -DealNonStrict.prototype['undone_activities_count'] = undefined; -/** - * The number of participants associated with the deal - * @member {Number} participants_count - */ -DealNonStrict.prototype['participants_count'] = undefined; -/** - * The expected close date of the deal - * @member {Date} expected_close_date - */ -DealNonStrict.prototype['expected_close_date'] = undefined; -/** - * The date and time of the last incoming email associated with the deal - * @member {String} last_incoming_mail_time - */ -DealNonStrict.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the deal - * @member {String} last_outgoing_mail_time - */ -DealNonStrict.prototype['last_outgoing_mail_time'] = undefined; -/** - * The label or multiple labels assigned to the deal - * @member {String} label - */ -DealNonStrict.prototype['label'] = undefined; -/** - * The order number of the deal stage associated with the deal - * @member {Number} stage_order_nr - */ -DealNonStrict.prototype['stage_order_nr'] = undefined; -/** - * The name of the person associated with the deal - * @member {String} person_name - */ -DealNonStrict.prototype['person_name'] = undefined; -/** - * The name of the organization associated with the deal - * @member {String} org_name - */ -DealNonStrict.prototype['org_name'] = undefined; -/** - * The subject of the next activity associated with the deal - * @member {String} next_activity_subject - */ -DealNonStrict.prototype['next_activity_subject'] = undefined; -/** - * The type of the next activity associated with the deal - * @member {String} next_activity_type - */ -DealNonStrict.prototype['next_activity_type'] = undefined; -/** - * The duration of the next activity associated with the deal - * @member {String} next_activity_duration - */ -DealNonStrict.prototype['next_activity_duration'] = undefined; -/** - * The note of the next activity associated with the deal - * @member {String} next_activity_note - */ -DealNonStrict.prototype['next_activity_note'] = undefined; -/** - * The deal value formatted with selected currency. E.g. US$500 - * @member {String} formatted_value - */ -DealNonStrict.prototype['formatted_value'] = undefined; -/** - * Probability times deal value. Probability can either be deal probability or if not set, then stage probability. - * @member {Number} weighted_value - */ -DealNonStrict.prototype['weighted_value'] = undefined; -/** - * The weighted_value formatted with selected currency. E.g. US$500 - * @member {String} formatted_weighted_value - */ -DealNonStrict.prototype['formatted_weighted_value'] = undefined; -/** - * The currency associated with the deal - * @member {String} weighted_value_currency - */ -DealNonStrict.prototype['weighted_value_currency'] = undefined; -/** - * The date and time of changing the deal status as rotten - * @member {String} rotten_time - */ -DealNonStrict.prototype['rotten_time'] = undefined; -/** - * The name of the deal owner - * @member {String} owner_name - */ -DealNonStrict.prototype['owner_name'] = undefined; -/** - * The BCC email of the deal - * @member {String} cc_email - */ -DealNonStrict.prototype['cc_email'] = undefined; -/** - * If the organization that is associated with the deal is hidden or not - * @member {Boolean} org_hidden - */ -DealNonStrict.prototype['org_hidden'] = undefined; -/** - * If the person that is associated with the deal is hidden or not - * @member {Boolean} person_hidden - */ -DealNonStrict.prototype['person_hidden'] = undefined; -/** - * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. - * @member {String} origin - */ -DealNonStrict.prototype['origin'] = undefined; -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. - * @member {String} origin_id - */ -DealNonStrict.prototype['origin_id'] = undefined; -/** - * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. - * @member {Number} channel - */ -DealNonStrict.prototype['channel'] = undefined; -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -DealNonStrict.prototype['channel_id'] = undefined; -/** - * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} arr - */ -DealNonStrict.prototype['arr'] = undefined; -/** - * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} mrr - */ -DealNonStrict.prototype['mrr'] = undefined; -/** - * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal - * @member {Number} acv - */ -DealNonStrict.prototype['acv'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null - * @member {String} arr_currency - */ -DealNonStrict.prototype['arr_currency'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null - * @member {String} mrr_currency - */ -DealNonStrict.prototype['mrr_currency'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null - * @member {String} acv_currency - */ -DealNonStrict.prototype['acv_currency'] = undefined; -// Implement DealNonStrictWithDetailsAllOf interface: -/** - * @member {module:model/DealNonStrictWithDetailsAllOfAverageTimeToWon} average_time_to_won - */ -DealNonStrictWithDetailsAllOf.prototype['average_time_to_won'] = undefined; -/** - * The average of the deal stage progression - * @member {Number} average_stage_progress - */ -DealNonStrictWithDetailsAllOf.prototype['average_stage_progress'] = undefined; -/** - * @member {module:model/DealNonStrictWithDetailsAllOfAge} age - */ -DealNonStrictWithDetailsAllOf.prototype['age'] = undefined; -/** - * @member {module:model/DealNonStrictWithDetailsAllOfStayInPipelineStages} stay_in_pipeline_stages - */ -DealNonStrictWithDetailsAllOf.prototype['stay_in_pipeline_stages'] = undefined; -/** - * The details of the last activity associated with the deal - * @member {Object} last_activity - */ -DealNonStrictWithDetailsAllOf.prototype['last_activity'] = undefined; -/** - * The details of the next activity associated with the deal - * @member {Object} next_activity - */ -DealNonStrictWithDetailsAllOf.prototype['next_activity'] = undefined; - - - - -export default DealNonStrictWithDetails; - diff --git a/src/model/DealNonStrictWithDetailsAllOf.js b/src/model/DealNonStrictWithDetailsAllOf.js deleted file mode 100644 index 0aba2db2..00000000 --- a/src/model/DealNonStrictWithDetailsAllOf.js +++ /dev/null @@ -1,134 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealNonStrictWithDetailsAllOfAge from './DealNonStrictWithDetailsAllOfAge'; -import DealNonStrictWithDetailsAllOfAverageTimeToWon from './DealNonStrictWithDetailsAllOfAverageTimeToWon'; -import DealNonStrictWithDetailsAllOfStayInPipelineStages from './DealNonStrictWithDetailsAllOfStayInPipelineStages'; - -/** - * The DealNonStrictWithDetailsAllOf model module. - * @module model/DealNonStrictWithDetailsAllOf - * @version 1.0.0 - */ -class DealNonStrictWithDetailsAllOf { - /** - * Constructs a new DealNonStrictWithDetailsAllOf. - * @alias module:model/DealNonStrictWithDetailsAllOf - */ - constructor() { - - DealNonStrictWithDetailsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealNonStrictWithDetailsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealNonStrictWithDetailsAllOf} obj Optional instance to populate. - * @return {module:model/DealNonStrictWithDetailsAllOf} The populated DealNonStrictWithDetailsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealNonStrictWithDetailsAllOf(); - - if (data.hasOwnProperty('average_time_to_won')) { - obj['average_time_to_won'] = DealNonStrictWithDetailsAllOfAverageTimeToWon.constructFromObject(data['average_time_to_won']); - - delete data['average_time_to_won']; - } - if (data.hasOwnProperty('average_stage_progress')) { - obj['average_stage_progress'] = ApiClient.convertToType(data['average_stage_progress'], 'Number'); - - delete data['average_stage_progress']; - } - if (data.hasOwnProperty('age')) { - obj['age'] = DealNonStrictWithDetailsAllOfAge.constructFromObject(data['age']); - - delete data['age']; - } - if (data.hasOwnProperty('stay_in_pipeline_stages')) { - obj['stay_in_pipeline_stages'] = DealNonStrictWithDetailsAllOfStayInPipelineStages.constructFromObject(data['stay_in_pipeline_stages']); - - delete data['stay_in_pipeline_stages']; - } - if (data.hasOwnProperty('last_activity')) { - obj['last_activity'] = ApiClient.convertToType(data['last_activity'], Object); - - delete data['last_activity']; - } - if (data.hasOwnProperty('next_activity')) { - obj['next_activity'] = ApiClient.convertToType(data['next_activity'], Object); - - delete data['next_activity']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DealNonStrictWithDetailsAllOfAverageTimeToWon} average_time_to_won - */ -DealNonStrictWithDetailsAllOf.prototype['average_time_to_won'] = undefined; - -/** - * The average of the deal stage progression - * @member {Number} average_stage_progress - */ -DealNonStrictWithDetailsAllOf.prototype['average_stage_progress'] = undefined; - -/** - * @member {module:model/DealNonStrictWithDetailsAllOfAge} age - */ -DealNonStrictWithDetailsAllOf.prototype['age'] = undefined; - -/** - * @member {module:model/DealNonStrictWithDetailsAllOfStayInPipelineStages} stay_in_pipeline_stages - */ -DealNonStrictWithDetailsAllOf.prototype['stay_in_pipeline_stages'] = undefined; - -/** - * The details of the last activity associated with the deal - * @member {Object} last_activity - */ -DealNonStrictWithDetailsAllOf.prototype['last_activity'] = undefined; - -/** - * The details of the next activity associated with the deal - * @member {Object} next_activity - */ -DealNonStrictWithDetailsAllOf.prototype['next_activity'] = undefined; - - - - - - -export default DealNonStrictWithDetailsAllOf; - diff --git a/src/model/DealNonStrictWithDetailsAllOfAge.js b/src/model/DealNonStrictWithDetailsAllOfAge.js deleted file mode 100644 index e5741b41..00000000 --- a/src/model/DealNonStrictWithDetailsAllOfAge.js +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealNonStrictWithDetailsAllOfAge model module. - * @module model/DealNonStrictWithDetailsAllOfAge - * @version 1.0.0 - */ -class DealNonStrictWithDetailsAllOfAge { - /** - * Constructs a new DealNonStrictWithDetailsAllOfAge. - * The lifetime of the deal - * @alias module:model/DealNonStrictWithDetailsAllOfAge - */ - constructor() { - - DealNonStrictWithDetailsAllOfAge.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealNonStrictWithDetailsAllOfAge from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealNonStrictWithDetailsAllOfAge} obj Optional instance to populate. - * @return {module:model/DealNonStrictWithDetailsAllOfAge} The populated DealNonStrictWithDetailsAllOfAge instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealNonStrictWithDetailsAllOfAge(); - - if (data.hasOwnProperty('y')) { - obj['y'] = ApiClient.convertToType(data['y'], 'Number'); - - delete data['y']; - } - if (data.hasOwnProperty('m')) { - obj['m'] = ApiClient.convertToType(data['m'], 'Number'); - - delete data['m']; - } - if (data.hasOwnProperty('d')) { - obj['d'] = ApiClient.convertToType(data['d'], 'Number'); - - delete data['d']; - } - if (data.hasOwnProperty('h')) { - obj['h'] = ApiClient.convertToType(data['h'], 'Number'); - - delete data['h']; - } - if (data.hasOwnProperty('i')) { - obj['i'] = ApiClient.convertToType(data['i'], 'Number'); - - delete data['i']; - } - if (data.hasOwnProperty('s')) { - obj['s'] = ApiClient.convertToType(data['s'], 'Number'); - - delete data['s']; - } - if (data.hasOwnProperty('total_seconds')) { - obj['total_seconds'] = ApiClient.convertToType(data['total_seconds'], 'Number'); - - delete data['total_seconds']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Years - * @member {Number} y - */ -DealNonStrictWithDetailsAllOfAge.prototype['y'] = undefined; - -/** - * Months - * @member {Number} m - */ -DealNonStrictWithDetailsAllOfAge.prototype['m'] = undefined; - -/** - * Days - * @member {Number} d - */ -DealNonStrictWithDetailsAllOfAge.prototype['d'] = undefined; - -/** - * Hours - * @member {Number} h - */ -DealNonStrictWithDetailsAllOfAge.prototype['h'] = undefined; - -/** - * Minutes - * @member {Number} i - */ -DealNonStrictWithDetailsAllOfAge.prototype['i'] = undefined; - -/** - * Seconds - * @member {Number} s - */ -DealNonStrictWithDetailsAllOfAge.prototype['s'] = undefined; - -/** - * The total time in seconds - * @member {Number} total_seconds - */ -DealNonStrictWithDetailsAllOfAge.prototype['total_seconds'] = undefined; - - - - - - -export default DealNonStrictWithDetailsAllOfAge; - diff --git a/src/model/DealNonStrictWithDetailsAllOfAverageTimeToWon.js b/src/model/DealNonStrictWithDetailsAllOfAverageTimeToWon.js deleted file mode 100644 index 4f677066..00000000 --- a/src/model/DealNonStrictWithDetailsAllOfAverageTimeToWon.js +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealNonStrictWithDetailsAllOfAverageTimeToWon model module. - * @module model/DealNonStrictWithDetailsAllOfAverageTimeToWon - * @version 1.0.0 - */ -class DealNonStrictWithDetailsAllOfAverageTimeToWon { - /** - * Constructs a new DealNonStrictWithDetailsAllOfAverageTimeToWon. - * The average time to win the deal - * @alias module:model/DealNonStrictWithDetailsAllOfAverageTimeToWon - */ - constructor() { - - DealNonStrictWithDetailsAllOfAverageTimeToWon.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealNonStrictWithDetailsAllOfAverageTimeToWon from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealNonStrictWithDetailsAllOfAverageTimeToWon} obj Optional instance to populate. - * @return {module:model/DealNonStrictWithDetailsAllOfAverageTimeToWon} The populated DealNonStrictWithDetailsAllOfAverageTimeToWon instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealNonStrictWithDetailsAllOfAverageTimeToWon(); - - if (data.hasOwnProperty('y')) { - obj['y'] = ApiClient.convertToType(data['y'], 'Number'); - - delete data['y']; - } - if (data.hasOwnProperty('m')) { - obj['m'] = ApiClient.convertToType(data['m'], 'Number'); - - delete data['m']; - } - if (data.hasOwnProperty('d')) { - obj['d'] = ApiClient.convertToType(data['d'], 'Number'); - - delete data['d']; - } - if (data.hasOwnProperty('h')) { - obj['h'] = ApiClient.convertToType(data['h'], 'Number'); - - delete data['h']; - } - if (data.hasOwnProperty('i')) { - obj['i'] = ApiClient.convertToType(data['i'], 'Number'); - - delete data['i']; - } - if (data.hasOwnProperty('s')) { - obj['s'] = ApiClient.convertToType(data['s'], 'Number'); - - delete data['s']; - } - if (data.hasOwnProperty('total_seconds')) { - obj['total_seconds'] = ApiClient.convertToType(data['total_seconds'], 'Number'); - - delete data['total_seconds']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Years - * @member {Number} y - */ -DealNonStrictWithDetailsAllOfAverageTimeToWon.prototype['y'] = undefined; - -/** - * Months - * @member {Number} m - */ -DealNonStrictWithDetailsAllOfAverageTimeToWon.prototype['m'] = undefined; - -/** - * Days - * @member {Number} d - */ -DealNonStrictWithDetailsAllOfAverageTimeToWon.prototype['d'] = undefined; - -/** - * Hours - * @member {Number} h - */ -DealNonStrictWithDetailsAllOfAverageTimeToWon.prototype['h'] = undefined; - -/** - * Minutes - * @member {Number} i - */ -DealNonStrictWithDetailsAllOfAverageTimeToWon.prototype['i'] = undefined; - -/** - * Seconds - * @member {Number} s - */ -DealNonStrictWithDetailsAllOfAverageTimeToWon.prototype['s'] = undefined; - -/** - * The total time in seconds - * @member {Number} total_seconds - */ -DealNonStrictWithDetailsAllOfAverageTimeToWon.prototype['total_seconds'] = undefined; - - - - - - -export default DealNonStrictWithDetailsAllOfAverageTimeToWon; - diff --git a/src/model/DealNonStrictWithDetailsAllOfStayInPipelineStages.js b/src/model/DealNonStrictWithDetailsAllOfStayInPipelineStages.js deleted file mode 100644 index 578b9e6a..00000000 --- a/src/model/DealNonStrictWithDetailsAllOfStayInPipelineStages.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealNonStrictWithDetailsAllOfStayInPipelineStages model module. - * @module model/DealNonStrictWithDetailsAllOfStayInPipelineStages - * @version 1.0.0 - */ -class DealNonStrictWithDetailsAllOfStayInPipelineStages { - /** - * Constructs a new DealNonStrictWithDetailsAllOfStayInPipelineStages. - * The details of the duration of the deal being in each stage of the pipeline - * @alias module:model/DealNonStrictWithDetailsAllOfStayInPipelineStages - */ - constructor() { - - DealNonStrictWithDetailsAllOfStayInPipelineStages.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealNonStrictWithDetailsAllOfStayInPipelineStages from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealNonStrictWithDetailsAllOfStayInPipelineStages} obj Optional instance to populate. - * @return {module:model/DealNonStrictWithDetailsAllOfStayInPipelineStages} The populated DealNonStrictWithDetailsAllOfStayInPipelineStages instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealNonStrictWithDetailsAllOfStayInPipelineStages(); - - if (data.hasOwnProperty('times_in_stages')) { - obj['times_in_stages'] = ApiClient.convertToType(data['times_in_stages'], Object); - - delete data['times_in_stages']; - } - if (data.hasOwnProperty('order_of_stages')) { - obj['order_of_stages'] = ApiClient.convertToType(data['order_of_stages'], ['Number']); - - delete data['order_of_stages']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The number of seconds a deal has been in each stage of the pipeline - * @member {Object} times_in_stages - */ -DealNonStrictWithDetailsAllOfStayInPipelineStages.prototype['times_in_stages'] = undefined; - -/** - * The order of the deal progression through the pipeline stages - * @member {Array.} order_of_stages - */ -DealNonStrictWithDetailsAllOfStayInPipelineStages.prototype['order_of_stages'] = undefined; - - - - - - -export default DealNonStrictWithDetailsAllOfStayInPipelineStages; - diff --git a/src/model/DealOrganizationData.js b/src/model/DealOrganizationData.js deleted file mode 100644 index 218006ce..00000000 --- a/src/model/DealOrganizationData.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealOrganizationData model module. - * @module model/DealOrganizationData - * @version 1.0.0 - */ -class DealOrganizationData { - /** - * Constructs a new DealOrganizationData. - * The organization which is associated with the deal - * @alias module:model/DealOrganizationData - */ - constructor() { - - DealOrganizationData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealOrganizationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealOrganizationData} obj Optional instance to populate. - * @return {module:model/DealOrganizationData} The populated DealOrganizationData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealOrganizationData(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the organization associated with the deal - * @member {String} name - */ -DealOrganizationData.prototype['name'] = undefined; - -/** - * The number of people connected with the organization that is associated with the deal - * @member {Number} people_count - */ -DealOrganizationData.prototype['people_count'] = undefined; - -/** - * The ID of the owner of the organization that is associated with the deal - * @member {Number} owner_id - */ -DealOrganizationData.prototype['owner_id'] = undefined; - -/** - * The address of the organization that is associated with the deal - * @member {String} address - */ -DealOrganizationData.prototype['address'] = undefined; - -/** - * Whether the associated organization is active or not - * @member {Boolean} active_flag - */ -DealOrganizationData.prototype['active_flag'] = undefined; - -/** - * The BCC email of the organization associated with the deal - * @member {String} cc_email - */ -DealOrganizationData.prototype['cc_email'] = undefined; - - - - - - -export default DealOrganizationData; - diff --git a/src/model/DealOrganizationDataWithId.js b/src/model/DealOrganizationDataWithId.js deleted file mode 100644 index 90d1d195..00000000 --- a/src/model/DealOrganizationDataWithId.js +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealOrganizationData from './DealOrganizationData'; -import DealOrganizationDataWithIdAllOf from './DealOrganizationDataWithIdAllOf'; - -/** - * The DealOrganizationDataWithId model module. - * @module model/DealOrganizationDataWithId - * @version 1.0.0 - */ -class DealOrganizationDataWithId { - /** - * Constructs a new DealOrganizationDataWithId. - * @alias module:model/DealOrganizationDataWithId - * @implements module:model/DealOrganizationData - * @implements module:model/DealOrganizationDataWithIdAllOf - */ - constructor() { - DealOrganizationData.initialize(this);DealOrganizationDataWithIdAllOf.initialize(this); - DealOrganizationDataWithId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealOrganizationDataWithId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealOrganizationDataWithId} obj Optional instance to populate. - * @return {module:model/DealOrganizationDataWithId} The populated DealOrganizationDataWithId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealOrganizationDataWithId(); - DealOrganizationData.constructFromObject(data, obj); - DealOrganizationDataWithIdAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the organization associated with the deal - * @member {String} name - */ -DealOrganizationDataWithId.prototype['name'] = undefined; - -/** - * The number of people connected with the organization that is associated with the deal - * @member {Number} people_count - */ -DealOrganizationDataWithId.prototype['people_count'] = undefined; - -/** - * The ID of the owner of the organization that is associated with the deal - * @member {Number} owner_id - */ -DealOrganizationDataWithId.prototype['owner_id'] = undefined; - -/** - * The address of the organization that is associated with the deal - * @member {String} address - */ -DealOrganizationDataWithId.prototype['address'] = undefined; - -/** - * Whether the associated organization is active or not - * @member {Boolean} active_flag - */ -DealOrganizationDataWithId.prototype['active_flag'] = undefined; - -/** - * The BCC email of the organization associated with the deal - * @member {String} cc_email - */ -DealOrganizationDataWithId.prototype['cc_email'] = undefined; - -/** - * The ID of the organization associated with the deal - * @member {Number} value - */ -DealOrganizationDataWithId.prototype['value'] = undefined; - - -// Implement DealOrganizationData interface: -/** - * The name of the organization associated with the deal - * @member {String} name - */ -DealOrganizationData.prototype['name'] = undefined; -/** - * The number of people connected with the organization that is associated with the deal - * @member {Number} people_count - */ -DealOrganizationData.prototype['people_count'] = undefined; -/** - * The ID of the owner of the organization that is associated with the deal - * @member {Number} owner_id - */ -DealOrganizationData.prototype['owner_id'] = undefined; -/** - * The address of the organization that is associated with the deal - * @member {String} address - */ -DealOrganizationData.prototype['address'] = undefined; -/** - * Whether the associated organization is active or not - * @member {Boolean} active_flag - */ -DealOrganizationData.prototype['active_flag'] = undefined; -/** - * The BCC email of the organization associated with the deal - * @member {String} cc_email - */ -DealOrganizationData.prototype['cc_email'] = undefined; -// Implement DealOrganizationDataWithIdAllOf interface: -/** - * The ID of the organization associated with the deal - * @member {Number} value - */ -DealOrganizationDataWithIdAllOf.prototype['value'] = undefined; - - - - -export default DealOrganizationDataWithId; - diff --git a/src/model/DealOrganizationDataWithIdAllOf.js b/src/model/DealOrganizationDataWithIdAllOf.js deleted file mode 100644 index 75811775..00000000 --- a/src/model/DealOrganizationDataWithIdAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealOrganizationDataWithIdAllOf model module. - * @module model/DealOrganizationDataWithIdAllOf - * @version 1.0.0 - */ -class DealOrganizationDataWithIdAllOf { - /** - * Constructs a new DealOrganizationDataWithIdAllOf. - * @alias module:model/DealOrganizationDataWithIdAllOf - */ - constructor() { - - DealOrganizationDataWithIdAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealOrganizationDataWithIdAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealOrganizationDataWithIdAllOf} obj Optional instance to populate. - * @return {module:model/DealOrganizationDataWithIdAllOf} The populated DealOrganizationDataWithIdAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealOrganizationDataWithIdAllOf(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization associated with the deal - * @member {Number} value - */ -DealOrganizationDataWithIdAllOf.prototype['value'] = undefined; - - - - - - -export default DealOrganizationDataWithIdAllOf; - diff --git a/src/model/DealParticipantCountInfo.js b/src/model/DealParticipantCountInfo.js deleted file mode 100644 index 076371e3..00000000 --- a/src/model/DealParticipantCountInfo.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealParticipantCountInfo model module. - * @module model/DealParticipantCountInfo - * @version 1.0.0 - */ -class DealParticipantCountInfo { - /** - * Constructs a new DealParticipantCountInfo. - * @alias module:model/DealParticipantCountInfo - */ - constructor() { - - DealParticipantCountInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealParticipantCountInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealParticipantCountInfo} obj Optional instance to populate. - * @return {module:model/DealParticipantCountInfo} The populated DealParticipantCountInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealParticipantCountInfo(); - - if (data.hasOwnProperty('participant_open_deals_count')) { - obj['participant_open_deals_count'] = ApiClient.convertToType(data['participant_open_deals_count'], 'Number'); - - delete data['participant_open_deals_count']; - } - if (data.hasOwnProperty('participant_closed_deals_count')) { - obj['participant_closed_deals_count'] = ApiClient.convertToType(data['participant_closed_deals_count'], 'Number'); - - delete data['participant_closed_deals_count']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of open participant deals related with the item - * @member {Number} participant_open_deals_count - */ -DealParticipantCountInfo.prototype['participant_open_deals_count'] = undefined; - -/** - * The count of closed participant deals related with the item - * @member {Number} participant_closed_deals_count - */ -DealParticipantCountInfo.prototype['participant_closed_deals_count'] = undefined; - - - - - - -export default DealParticipantCountInfo; - diff --git a/src/model/DealParticipants.js b/src/model/DealParticipants.js deleted file mode 100644 index 6cf6d403..00000000 --- a/src/model/DealParticipants.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import GetDealsRelatedObjects from './GetDealsRelatedObjects'; -import PersonItem from './PersonItem'; - -/** - * The DealParticipants model module. - * @module model/DealParticipants - * @version 1.0.0 - */ -class DealParticipants { - /** - * Constructs a new DealParticipants. - * @alias module:model/DealParticipants - */ - constructor() { - - DealParticipants.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealParticipants from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealParticipants} obj Optional instance to populate. - * @return {module:model/DealParticipants} The populated DealParticipants instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealParticipants(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PersonItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = GetDealsRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DealParticipants.prototype['success'] = undefined; - -/** - * The array of participants - * @member {Array.} data - */ -DealParticipants.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -DealParticipants.prototype['additional_data'] = undefined; - -/** - * @member {module:model/GetDealsRelatedObjects} related_objects - */ -DealParticipants.prototype['related_objects'] = undefined; - - - - - - -export default DealParticipants; - diff --git a/src/model/DealParticipantsChangelog.js b/src/model/DealParticipantsChangelog.js deleted file mode 100644 index cff6d439..00000000 --- a/src/model/DealParticipantsChangelog.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealParticipantsChangelog model module. - * @module model/DealParticipantsChangelog - * @version 1.0.0 - */ -class DealParticipantsChangelog { - /** - * Constructs a new DealParticipantsChangelog. - * @alias module:model/DealParticipantsChangelog - */ - constructor() { - - DealParticipantsChangelog.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealParticipantsChangelog from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealParticipantsChangelog} obj Optional instance to populate. - * @return {module:model/DealParticipantsChangelog} The populated DealParticipantsChangelog instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealParticipantsChangelog(); - - if (data.hasOwnProperty('actor_user_id')) { - obj['actor_user_id'] = ApiClient.convertToType(data['actor_user_id'], 'Number'); - - delete data['actor_user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('action')) { - obj['action'] = ApiClient.convertToType(data['action'], 'String'); - - delete data['action']; - } - if (data.hasOwnProperty('time')) { - obj['time'] = ApiClient.convertToType(data['time'], 'String'); - - delete data['time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} actor_user_id - */ -DealParticipantsChangelog.prototype['actor_user_id'] = undefined; - -/** - * The ID of the person - * @member {Number} person_id - */ -DealParticipantsChangelog.prototype['person_id'] = undefined; - -/** - * Deal participant action type - * @member {String} action - */ -DealParticipantsChangelog.prototype['action'] = undefined; - -/** - * The deal participant action log time - * @member {String} time - */ -DealParticipantsChangelog.prototype['time'] = undefined; - - - - - - -export default DealParticipantsChangelog; - diff --git a/src/model/DealPersonData.js b/src/model/DealPersonData.js deleted file mode 100644 index e093dacb..00000000 --- a/src/model/DealPersonData.js +++ /dev/null @@ -1,126 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealPersonDataEmail from './DealPersonDataEmail'; -import DealPersonDataPhone from './DealPersonDataPhone'; - -/** - * The DealPersonData model module. - * @module model/DealPersonData - * @version 1.0.0 - */ -class DealPersonData { - /** - * Constructs a new DealPersonData. - * The person who is associated with the deal - * @alias module:model/DealPersonData - */ - constructor() { - - DealPersonData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealPersonData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealPersonData} obj Optional instance to populate. - * @return {module:model/DealPersonData} The populated DealPersonData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealPersonData(); - - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], [DealPersonDataEmail]); - - delete data['email']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], [DealPersonDataPhone]); - - delete data['phone']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Whether the associated person is active or not - * @member {Boolean} active_flag - */ -DealPersonData.prototype['active_flag'] = undefined; - -/** - * The name of the person associated with the deal - * @member {String} name - */ -DealPersonData.prototype['name'] = undefined; - -/** - * The emails of the person associated with the deal - * @member {Array.} email - */ -DealPersonData.prototype['email'] = undefined; - -/** - * The phone numbers of the person associated with the deal - * @member {Array.} phone - */ -DealPersonData.prototype['phone'] = undefined; - -/** - * The ID of the owner of the person that is associated with the deal - * @member {Number} owner_id - */ -DealPersonData.prototype['owner_id'] = undefined; - - - - - - -export default DealPersonData; - diff --git a/src/model/DealPersonDataEmail.js b/src/model/DealPersonDataEmail.js deleted file mode 100644 index c8eefb60..00000000 --- a/src/model/DealPersonDataEmail.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealPersonDataEmail model module. - * @module model/DealPersonDataEmail - * @version 1.0.0 - */ -class DealPersonDataEmail { - /** - * Constructs a new DealPersonDataEmail. - * @alias module:model/DealPersonDataEmail - */ - constructor() { - - DealPersonDataEmail.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealPersonDataEmail from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealPersonDataEmail} obj Optional instance to populate. - * @return {module:model/DealPersonDataEmail} The populated DealPersonDataEmail instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealPersonDataEmail(); - - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - - delete data['value']; - } - if (data.hasOwnProperty('primary')) { - obj['primary'] = ApiClient.convertToType(data['primary'], 'Boolean'); - - delete data['primary']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The type of the email - * @member {String} label - */ -DealPersonDataEmail.prototype['label'] = undefined; - -/** - * The email of the associated person - * @member {String} value - */ -DealPersonDataEmail.prototype['value'] = undefined; - -/** - * If this is the primary email or not - * @member {Boolean} primary - */ -DealPersonDataEmail.prototype['primary'] = undefined; - - - - - - -export default DealPersonDataEmail; - diff --git a/src/model/DealPersonDataPhone.js b/src/model/DealPersonDataPhone.js deleted file mode 100644 index aa6cb5f7..00000000 --- a/src/model/DealPersonDataPhone.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealPersonDataPhone model module. - * @module model/DealPersonDataPhone - * @version 1.0.0 - */ -class DealPersonDataPhone { - /** - * Constructs a new DealPersonDataPhone. - * @alias module:model/DealPersonDataPhone - */ - constructor() { - - DealPersonDataPhone.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealPersonDataPhone from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealPersonDataPhone} obj Optional instance to populate. - * @return {module:model/DealPersonDataPhone} The populated DealPersonDataPhone instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealPersonDataPhone(); - - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - - delete data['value']; - } - if (data.hasOwnProperty('primary')) { - obj['primary'] = ApiClient.convertToType(data['primary'], 'Boolean'); - - delete data['primary']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The type of the phone number - * @member {String} label - */ -DealPersonDataPhone.prototype['label'] = undefined; - -/** - * The phone number of the person associated with the deal - * @member {String} value - */ -DealPersonDataPhone.prototype['value'] = undefined; - -/** - * If this is the primary phone number or not - * @member {Boolean} primary - */ -DealPersonDataPhone.prototype['primary'] = undefined; - - - - - - -export default DealPersonDataPhone; - diff --git a/src/model/DealPersonDataWithId.js b/src/model/DealPersonDataWithId.js deleted file mode 100644 index c5ff98e4..00000000 --- a/src/model/DealPersonDataWithId.js +++ /dev/null @@ -1,174 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealPersonData from './DealPersonData'; -import DealPersonDataEmail from './DealPersonDataEmail'; -import DealPersonDataPhone from './DealPersonDataPhone'; -import DealPersonDataWithIdAllOf from './DealPersonDataWithIdAllOf'; - -/** - * The DealPersonDataWithId model module. - * @module model/DealPersonDataWithId - * @version 1.0.0 - */ -class DealPersonDataWithId { - /** - * Constructs a new DealPersonDataWithId. - * @alias module:model/DealPersonDataWithId - * @implements module:model/DealPersonData - * @implements module:model/DealPersonDataWithIdAllOf - */ - constructor() { - DealPersonData.initialize(this);DealPersonDataWithIdAllOf.initialize(this); - DealPersonDataWithId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealPersonDataWithId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealPersonDataWithId} obj Optional instance to populate. - * @return {module:model/DealPersonDataWithId} The populated DealPersonDataWithId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealPersonDataWithId(); - DealPersonData.constructFromObject(data, obj); - DealPersonDataWithIdAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], [DealPersonDataEmail]); - - delete data['email']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], [DealPersonDataPhone]); - - delete data['phone']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Whether the associated person is active or not - * @member {Boolean} active_flag - */ -DealPersonDataWithId.prototype['active_flag'] = undefined; - -/** - * The name of the person associated with the deal - * @member {String} name - */ -DealPersonDataWithId.prototype['name'] = undefined; - -/** - * The emails of the person associated with the deal - * @member {Array.} email - */ -DealPersonDataWithId.prototype['email'] = undefined; - -/** - * The phone numbers of the person associated with the deal - * @member {Array.} phone - */ -DealPersonDataWithId.prototype['phone'] = undefined; - -/** - * The ID of the owner of the person that is associated with the deal - * @member {Number} owner_id - */ -DealPersonDataWithId.prototype['owner_id'] = undefined; - -/** - * The ID of the person associated with the deal - * @member {Number} value - */ -DealPersonDataWithId.prototype['value'] = undefined; - - -// Implement DealPersonData interface: -/** - * Whether the associated person is active or not - * @member {Boolean} active_flag - */ -DealPersonData.prototype['active_flag'] = undefined; -/** - * The name of the person associated with the deal - * @member {String} name - */ -DealPersonData.prototype['name'] = undefined; -/** - * The emails of the person associated with the deal - * @member {Array.} email - */ -DealPersonData.prototype['email'] = undefined; -/** - * The phone numbers of the person associated with the deal - * @member {Array.} phone - */ -DealPersonData.prototype['phone'] = undefined; -/** - * The ID of the owner of the person that is associated with the deal - * @member {Number} owner_id - */ -DealPersonData.prototype['owner_id'] = undefined; -// Implement DealPersonDataWithIdAllOf interface: -/** - * The ID of the person associated with the deal - * @member {Number} value - */ -DealPersonDataWithIdAllOf.prototype['value'] = undefined; - - - - -export default DealPersonDataWithId; - diff --git a/src/model/DealPersonDataWithIdAllOf.js b/src/model/DealPersonDataWithIdAllOf.js deleted file mode 100644 index 94bd6dcb..00000000 --- a/src/model/DealPersonDataWithIdAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealPersonDataWithIdAllOf model module. - * @module model/DealPersonDataWithIdAllOf - * @version 1.0.0 - */ -class DealPersonDataWithIdAllOf { - /** - * Constructs a new DealPersonDataWithIdAllOf. - * @alias module:model/DealPersonDataWithIdAllOf - */ - constructor() { - - DealPersonDataWithIdAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealPersonDataWithIdAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealPersonDataWithIdAllOf} obj Optional instance to populate. - * @return {module:model/DealPersonDataWithIdAllOf} The populated DealPersonDataWithIdAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealPersonDataWithIdAllOf(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person associated with the deal - * @member {Number} value - */ -DealPersonDataWithIdAllOf.prototype['value'] = undefined; - - - - - - -export default DealPersonDataWithIdAllOf; - diff --git a/src/model/DealProductRequestBody.js b/src/model/DealProductRequestBody.js deleted file mode 100644 index df1187e4..00000000 --- a/src/model/DealProductRequestBody.js +++ /dev/null @@ -1,230 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealProductRequestBody model module. - * @module model/DealProductRequestBody - * @version 1.0.0 - */ -class DealProductRequestBody { - /** - * Constructs a new DealProductRequestBody. - * @alias module:model/DealProductRequestBody - */ - constructor() { - - DealProductRequestBody.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealProductRequestBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealProductRequestBody} obj Optional instance to populate. - * @return {module:model/DealProductRequestBody} The populated DealProductRequestBody instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealProductRequestBody(); - - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('item_price')) { - obj['item_price'] = ApiClient.convertToType(data['item_price'], 'Number'); - - delete data['item_price']; - } - if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number'); - - delete data['quantity']; - } - if (data.hasOwnProperty('discount')) { - obj['discount'] = ApiClient.convertToType(data['discount'], 'Number'); - - delete data['discount']; - } - if (data.hasOwnProperty('discount_type')) { - obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String'); - - delete data['discount_type']; - } - if (data.hasOwnProperty('product_variation_id')) { - obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); - - delete data['product_variation_id']; - } - if (data.hasOwnProperty('comments')) { - obj['comments'] = ApiClient.convertToType(data['comments'], 'String'); - - delete data['comments']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('tax_method')) { - obj['tax_method'] = ApiClient.convertToType(data['tax_method'], 'String'); - - delete data['tax_method']; - } - if (data.hasOwnProperty('enabled_flag')) { - obj['enabled_flag'] = ApiClient.convertToType(data['enabled_flag'], 'Boolean'); - - delete data['enabled_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product to use - * @member {Number} product_id - */ -DealProductRequestBody.prototype['product_id'] = undefined; - -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -DealProductRequestBody.prototype['item_price'] = undefined; - -/** - * How many items of this product will be added to the deal - * @member {Number} quantity - */ -DealProductRequestBody.prototype['quantity'] = undefined; - -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -DealProductRequestBody.prototype['discount'] = 0; - -/** - * The type of the discount's value - * @member {module:model/DealProductRequestBody.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -DealProductRequestBody.prototype['discount_type'] = 'percentage'; - -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -DealProductRequestBody.prototype['product_variation_id'] = undefined; - -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -DealProductRequestBody.prototype['comments'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -DealProductRequestBody.prototype['tax'] = 0; - -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount - * @member {module:model/DealProductRequestBody.TaxMethodEnum} tax_method - */ -DealProductRequestBody.prototype['tax_method'] = undefined; - -/** - * Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring - * @member {Boolean} enabled_flag - * @default true - */ -DealProductRequestBody.prototype['enabled_flag'] = true; - - - - - -/** - * Allowed values for the discount_type property. - * @enum {String} - * @readonly - */ -DealProductRequestBody['DiscountTypeEnum'] = { - - /** - * value: "percentage" - * @const - */ - "percentage": "percentage", - - /** - * value: "amount" - * @const - */ - "amount": "amount" -}; - - -/** - * Allowed values for the tax_method property. - * @enum {String} - * @readonly - */ -DealProductRequestBody['TaxMethodEnum'] = { - - /** - * value: "exclusive" - * @const - */ - "exclusive": "exclusive", - - /** - * value: "inclusive" - * @const - */ - "inclusive": "inclusive", - - /** - * value: "none" - * @const - */ - "none": "none" -}; - - - -export default DealProductRequestBody; - diff --git a/src/model/DealProductUnitDuration.js b/src/model/DealProductUnitDuration.js deleted file mode 100644 index 395ce68a..00000000 --- a/src/model/DealProductUnitDuration.js +++ /dev/null @@ -1,75 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class DealProductUnitDuration. -* @enum {} -* @readonly -*/ -export default class DealProductUnitDuration { - - /** - * value: "hourly" - * @const - */ - "hourly" = "hourly"; - - - /** - * value: "daily" - * @const - */ - "daily" = "daily"; - - - /** - * value: "weekly" - * @const - */ - "weekly" = "weekly"; - - - /** - * value: "monthly" - * @const - */ - "monthly" = "monthly"; - - - /** - * value: "yearly" - * @const - */ - "yearly" = "yearly"; - - - - /** - * Returns a DealProductUnitDuration enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/DealProductUnitDuration} The enum DealProductUnitDuration value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/DealSearchItem.js b/src/model/DealSearchItem.js deleted file mode 100644 index bf67e0e1..00000000 --- a/src/model/DealSearchItem.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealSearchItemItem from './DealSearchItemItem'; - -/** - * The DealSearchItem model module. - * @module model/DealSearchItem - * @version 1.0.0 - */ -class DealSearchItem { - /** - * Constructs a new DealSearchItem. - * @alias module:model/DealSearchItem - */ - constructor() { - - DealSearchItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSearchItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSearchItem} obj Optional instance to populate. - * @return {module:model/DealSearchItem} The populated DealSearchItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSearchItem(); - - if (data.hasOwnProperty('result_score')) { - obj['result_score'] = ApiClient.convertToType(data['result_score'], 'Number'); - - delete data['result_score']; - } - if (data.hasOwnProperty('item')) { - obj['item'] = DealSearchItemItem.constructFromObject(data['item']); - - delete data['item']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Search result relevancy - * @member {Number} result_score - */ -DealSearchItem.prototype['result_score'] = undefined; - -/** - * @member {module:model/DealSearchItemItem} item - */ -DealSearchItem.prototype['item'] = undefined; - - - - - - -export default DealSearchItem; - diff --git a/src/model/DealSearchItemItem.js b/src/model/DealSearchItemItem.js deleted file mode 100644 index 46374801..00000000 --- a/src/model/DealSearchItemItem.js +++ /dev/null @@ -1,211 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealSearchItemItemOrganization from './DealSearchItemItemOrganization'; -import DealSearchItemItemOwner from './DealSearchItemItemOwner'; -import DealSearchItemItemPerson from './DealSearchItemItemPerson'; -import DealSearchItemItemStage from './DealSearchItemItemStage'; - -/** - * The DealSearchItemItem model module. - * @module model/DealSearchItemItem - * @version 1.0.0 - */ -class DealSearchItemItem { - /** - * Constructs a new DealSearchItemItem. - * @alias module:model/DealSearchItemItem - */ - constructor() { - - DealSearchItemItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSearchItemItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSearchItemItem} obj Optional instance to populate. - * @return {module:model/DealSearchItemItem} The populated DealSearchItemItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSearchItemItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'Number'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner')) { - obj['owner'] = DealSearchItemItemOwner.constructFromObject(data['owner']); - - delete data['owner']; - } - if (data.hasOwnProperty('stage')) { - obj['stage'] = DealSearchItemItemStage.constructFromObject(data['stage']); - - delete data['stage']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = DealSearchItemItemPerson.constructFromObject(data['person']); - - delete data['person']; - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = DealSearchItemItemOrganization.constructFromObject(data['organization']); - - delete data['organization']; - } - if (data.hasOwnProperty('custom_fields')) { - obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], ['String']); - - delete data['custom_fields']; - } - if (data.hasOwnProperty('notes')) { - obj['notes'] = ApiClient.convertToType(data['notes'], ['String']); - - delete data['notes']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal - * @member {Number} id - */ -DealSearchItemItem.prototype['id'] = undefined; - -/** - * The type of the item - * @member {String} type - */ -DealSearchItemItem.prototype['type'] = undefined; - -/** - * The title of the deal - * @member {String} title - */ -DealSearchItemItem.prototype['title'] = undefined; - -/** - * The value of the deal - * @member {Number} value - */ -DealSearchItemItem.prototype['value'] = undefined; - -/** - * The currency of the deal - * @member {String} currency - */ -DealSearchItemItem.prototype['currency'] = undefined; - -/** - * The status of the deal - * @member {String} status - */ -DealSearchItemItem.prototype['status'] = undefined; - -/** - * The visibility of the deal - * @member {Number} visible_to - */ -DealSearchItemItem.prototype['visible_to'] = undefined; - -/** - * @member {module:model/DealSearchItemItemOwner} owner - */ -DealSearchItemItem.prototype['owner'] = undefined; - -/** - * @member {module:model/DealSearchItemItemStage} stage - */ -DealSearchItemItem.prototype['stage'] = undefined; - -/** - * @member {module:model/DealSearchItemItemPerson} person - */ -DealSearchItemItem.prototype['person'] = undefined; - -/** - * @member {module:model/DealSearchItemItemOrganization} organization - */ -DealSearchItemItem.prototype['organization'] = undefined; - -/** - * Custom fields - * @member {Array.} custom_fields - */ -DealSearchItemItem.prototype['custom_fields'] = undefined; - -/** - * An array of notes - * @member {Array.} notes - */ -DealSearchItemItem.prototype['notes'] = undefined; - - - - - - -export default DealSearchItemItem; - diff --git a/src/model/DealSearchItemItemOrganization.js b/src/model/DealSearchItemItemOrganization.js deleted file mode 100644 index 5aaa2bcf..00000000 --- a/src/model/DealSearchItemItemOrganization.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealSearchItemItemOrganization model module. - * @module model/DealSearchItemItemOrganization - * @version 1.0.0 - */ -class DealSearchItemItemOrganization { - /** - * Constructs a new DealSearchItemItemOrganization. - * @alias module:model/DealSearchItemItemOrganization - */ - constructor() { - - DealSearchItemItemOrganization.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSearchItemItemOrganization from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSearchItemItemOrganization} obj Optional instance to populate. - * @return {module:model/DealSearchItemItemOrganization} The populated DealSearchItemItemOrganization instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSearchItemItemOrganization(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization the deal is associated with - * @member {Number} id - */ -DealSearchItemItemOrganization.prototype['id'] = undefined; - -/** - * The name of the organization the deal is associated with - * @member {String} name - */ -DealSearchItemItemOrganization.prototype['name'] = undefined; - - - - - - -export default DealSearchItemItemOrganization; - diff --git a/src/model/DealSearchItemItemOwner.js b/src/model/DealSearchItemItemOwner.js deleted file mode 100644 index d76f3905..00000000 --- a/src/model/DealSearchItemItemOwner.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealSearchItemItemOwner model module. - * @module model/DealSearchItemItemOwner - * @version 1.0.0 - */ -class DealSearchItemItemOwner { - /** - * Constructs a new DealSearchItemItemOwner. - * @alias module:model/DealSearchItemItemOwner - */ - constructor() { - - DealSearchItemItemOwner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSearchItemItemOwner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSearchItemItemOwner} obj Optional instance to populate. - * @return {module:model/DealSearchItemItemOwner} The populated DealSearchItemItemOwner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSearchItemItemOwner(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the owner of the deal - * @member {Number} id - */ -DealSearchItemItemOwner.prototype['id'] = undefined; - - - - - - -export default DealSearchItemItemOwner; - diff --git a/src/model/DealSearchItemItemPerson.js b/src/model/DealSearchItemItemPerson.js deleted file mode 100644 index dd63d2d1..00000000 --- a/src/model/DealSearchItemItemPerson.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealSearchItemItemPerson model module. - * @module model/DealSearchItemItemPerson - * @version 1.0.0 - */ -class DealSearchItemItemPerson { - /** - * Constructs a new DealSearchItemItemPerson. - * @alias module:model/DealSearchItemItemPerson - */ - constructor() { - - DealSearchItemItemPerson.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSearchItemItemPerson from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSearchItemItemPerson} obj Optional instance to populate. - * @return {module:model/DealSearchItemItemPerson} The populated DealSearchItemItemPerson instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSearchItemItemPerson(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person the deal is associated with - * @member {Number} id - */ -DealSearchItemItemPerson.prototype['id'] = undefined; - -/** - * The name of the person the deal is associated with - * @member {String} name - */ -DealSearchItemItemPerson.prototype['name'] = undefined; - - - - - - -export default DealSearchItemItemPerson; - diff --git a/src/model/DealSearchItemItemStage.js b/src/model/DealSearchItemItemStage.js deleted file mode 100644 index dc5a6088..00000000 --- a/src/model/DealSearchItemItemStage.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealSearchItemItemStage model module. - * @module model/DealSearchItemItemStage - * @version 1.0.0 - */ -class DealSearchItemItemStage { - /** - * Constructs a new DealSearchItemItemStage. - * @alias module:model/DealSearchItemItemStage - */ - constructor() { - - DealSearchItemItemStage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSearchItemItemStage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSearchItemItemStage} obj Optional instance to populate. - * @return {module:model/DealSearchItemItemStage} The populated DealSearchItemItemStage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSearchItemItemStage(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the stage of the deal - * @member {Number} id - */ -DealSearchItemItemStage.prototype['id'] = undefined; - -/** - * The name of the stage of the deal - * @member {String} name - */ -DealSearchItemItemStage.prototype['name'] = undefined; - - - - - - -export default DealSearchItemItemStage; - diff --git a/src/model/DealSearchResponse.js b/src/model/DealSearchResponse.js deleted file mode 100644 index b1840e01..00000000 --- a/src/model/DealSearchResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import DealSearchResponseAllOf from './DealSearchResponseAllOf'; -import DealSearchResponseAllOfData from './DealSearchResponseAllOfData'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; - -/** - * The DealSearchResponse model module. - * @module model/DealSearchResponse - * @version 1.0.0 - */ -class DealSearchResponse { - /** - * Constructs a new DealSearchResponse. - * @alias module:model/DealSearchResponse - * @implements module:model/BaseResponse - * @implements module:model/DealSearchResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);DealSearchResponseAllOf.initialize(this); - DealSearchResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSearchResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSearchResponse} obj Optional instance to populate. - * @return {module:model/DealSearchResponse} The populated DealSearchResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSearchResponse(); - BaseResponse.constructFromObject(data, obj); - DealSearchResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DealSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DealSearchResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DealSearchResponseAllOfData} data - */ -DealSearchResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -DealSearchResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement DealSearchResponseAllOf interface: -/** - * @member {module:model/DealSearchResponseAllOfData} data - */ -DealSearchResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -DealSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default DealSearchResponse; - diff --git a/src/model/DealSearchResponseAllOf.js b/src/model/DealSearchResponseAllOf.js deleted file mode 100644 index 5f8dfcf8..00000000 --- a/src/model/DealSearchResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealSearchResponseAllOfData from './DealSearchResponseAllOfData'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; - -/** - * The DealSearchResponseAllOf model module. - * @module model/DealSearchResponseAllOf - * @version 1.0.0 - */ -class DealSearchResponseAllOf { - /** - * Constructs a new DealSearchResponseAllOf. - * @alias module:model/DealSearchResponseAllOf - */ - constructor() { - - DealSearchResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSearchResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSearchResponseAllOf} obj Optional instance to populate. - * @return {module:model/DealSearchResponseAllOf} The populated DealSearchResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSearchResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = DealSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DealSearchResponseAllOfData} data - */ -DealSearchResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -DealSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default DealSearchResponseAllOf; - diff --git a/src/model/DealSearchResponseAllOfData.js b/src/model/DealSearchResponseAllOfData.js deleted file mode 100644 index 7daac855..00000000 --- a/src/model/DealSearchResponseAllOfData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealSearchItem from './DealSearchItem'; - -/** - * The DealSearchResponseAllOfData model module. - * @module model/DealSearchResponseAllOfData - * @version 1.0.0 - */ -class DealSearchResponseAllOfData { - /** - * Constructs a new DealSearchResponseAllOfData. - * @alias module:model/DealSearchResponseAllOfData - */ - constructor() { - - DealSearchResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSearchResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSearchResponseAllOfData} obj Optional instance to populate. - * @return {module:model/DealSearchResponseAllOfData} The populated DealSearchResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSearchResponseAllOfData(); - - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [DealSearchItem]); - - delete data['items']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of deals - * @member {Array.} items - */ -DealSearchResponseAllOfData.prototype['items'] = undefined; - - - - - - -export default DealSearchResponseAllOfData; - diff --git a/src/model/DealStrict.js b/src/model/DealStrict.js deleted file mode 100644 index e5a404f2..00000000 --- a/src/model/DealStrict.js +++ /dev/null @@ -1,1148 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseDeal from './BaseDeal'; -import DealStrictModeFields from './DealStrictModeFields'; - -/** - * The DealStrict model module. - * @module model/DealStrict - * @version 1.0.0 - */ -class DealStrict { - /** - * Constructs a new DealStrict. - * @alias module:model/DealStrict - * @implements module:model/DealStrictModeFields - * @implements module:model/BaseDeal - */ - constructor() { - DealStrictModeFields.initialize(this);BaseDeal.initialize(this); - DealStrict.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealStrict from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealStrict} obj Optional instance to populate. - * @return {module:model/DealStrict} The populated DealStrict instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealStrict(); - DealStrictModeFields.constructFromObject(data, obj); - BaseDeal.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('creator_user_id')) { - obj['creator_user_id'] = ApiClient.convertToType(data['creator_user_id'], 'Number'); - - delete data['creator_user_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('stage_change_time')) { - obj['stage_change_time'] = ApiClient.convertToType(data['stage_change_time'], 'String'); - - delete data['stage_change_time']; - } - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); - - delete data['active']; - } - if (data.hasOwnProperty('deleted')) { - obj['deleted'] = ApiClient.convertToType(data['deleted'], 'Boolean'); - - delete data['deleted']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('probability')) { - obj['probability'] = ApiClient.convertToType(data['probability'], 'Number'); - - delete data['probability']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - if (data.hasOwnProperty('lost_reason')) { - obj['lost_reason'] = ApiClient.convertToType(data['lost_reason'], 'String'); - - delete data['lost_reason']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('close_time')) { - obj['close_time'] = ApiClient.convertToType(data['close_time'], 'String'); - - delete data['close_time']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('won_time')) { - obj['won_time'] = ApiClient.convertToType(data['won_time'], 'String'); - - delete data['won_time']; - } - if (data.hasOwnProperty('first_won_time')) { - obj['first_won_time'] = ApiClient.convertToType(data['first_won_time'], 'String'); - - delete data['first_won_time']; - } - if (data.hasOwnProperty('lost_time')) { - obj['lost_time'] = ApiClient.convertToType(data['lost_time'], 'String'); - - delete data['lost_time']; - } - if (data.hasOwnProperty('products_count')) { - obj['products_count'] = ApiClient.convertToType(data['products_count'], 'Number'); - - delete data['products_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('participants_count')) { - obj['participants_count'] = ApiClient.convertToType(data['participants_count'], 'Number'); - - delete data['participants_count']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - if (data.hasOwnProperty('stage_order_nr')) { - obj['stage_order_nr'] = ApiClient.convertToType(data['stage_order_nr'], 'Number'); - - delete data['stage_order_nr']; - } - if (data.hasOwnProperty('person_name')) { - obj['person_name'] = ApiClient.convertToType(data['person_name'], 'String'); - - delete data['person_name']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('next_activity_subject')) { - obj['next_activity_subject'] = ApiClient.convertToType(data['next_activity_subject'], 'String'); - - delete data['next_activity_subject']; - } - if (data.hasOwnProperty('next_activity_type')) { - obj['next_activity_type'] = ApiClient.convertToType(data['next_activity_type'], 'String'); - - delete data['next_activity_type']; - } - if (data.hasOwnProperty('next_activity_duration')) { - obj['next_activity_duration'] = ApiClient.convertToType(data['next_activity_duration'], 'String'); - - delete data['next_activity_duration']; - } - if (data.hasOwnProperty('next_activity_note')) { - obj['next_activity_note'] = ApiClient.convertToType(data['next_activity_note'], 'String'); - - delete data['next_activity_note']; - } - if (data.hasOwnProperty('formatted_value')) { - obj['formatted_value'] = ApiClient.convertToType(data['formatted_value'], 'String'); - - delete data['formatted_value']; - } - if (data.hasOwnProperty('weighted_value')) { - obj['weighted_value'] = ApiClient.convertToType(data['weighted_value'], 'Number'); - - delete data['weighted_value']; - } - if (data.hasOwnProperty('formatted_weighted_value')) { - obj['formatted_weighted_value'] = ApiClient.convertToType(data['formatted_weighted_value'], 'String'); - - delete data['formatted_weighted_value']; - } - if (data.hasOwnProperty('weighted_value_currency')) { - obj['weighted_value_currency'] = ApiClient.convertToType(data['weighted_value_currency'], 'String'); - - delete data['weighted_value_currency']; - } - if (data.hasOwnProperty('rotten_time')) { - obj['rotten_time'] = ApiClient.convertToType(data['rotten_time'], 'String'); - - delete data['rotten_time']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('org_hidden')) { - obj['org_hidden'] = ApiClient.convertToType(data['org_hidden'], 'Boolean'); - - delete data['org_hidden']; - } - if (data.hasOwnProperty('person_hidden')) { - obj['person_hidden'] = ApiClient.convertToType(data['person_hidden'], 'Boolean'); - - delete data['person_hidden']; - } - if (data.hasOwnProperty('origin')) { - obj['origin'] = ApiClient.convertToType(data['origin'], 'String'); - - delete data['origin']; - } - if (data.hasOwnProperty('origin_id')) { - obj['origin_id'] = ApiClient.convertToType(data['origin_id'], 'String'); - - delete data['origin_id']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - if (data.hasOwnProperty('arr')) { - obj['arr'] = ApiClient.convertToType(data['arr'], 'Number'); - - delete data['arr']; - } - if (data.hasOwnProperty('mrr')) { - obj['mrr'] = ApiClient.convertToType(data['mrr'], 'Number'); - - delete data['mrr']; - } - if (data.hasOwnProperty('acv')) { - obj['acv'] = ApiClient.convertToType(data['acv'], 'Number'); - - delete data['acv']; - } - if (data.hasOwnProperty('arr_currency')) { - obj['arr_currency'] = ApiClient.convertToType(data['arr_currency'], 'String'); - - delete data['arr_currency']; - } - if (data.hasOwnProperty('mrr_currency')) { - obj['mrr_currency'] = ApiClient.convertToType(data['mrr_currency'], 'String'); - - delete data['mrr_currency']; - } - if (data.hasOwnProperty('acv_currency')) { - obj['acv_currency'] = ApiClient.convertToType(data['acv_currency'], 'String'); - - delete data['acv_currency']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal - * @member {Number} id - */ -DealStrict.prototype['id'] = undefined; - -/** - * The ID of the deal creator - * @member {Number} creator_user_id - */ -DealStrict.prototype['creator_user_id'] = undefined; - -/** - * The ID of the user - * @member {Number} user_id - */ -DealStrict.prototype['user_id'] = undefined; - -/** - * The ID of the person associated with the deal - * @member {Number} person_id - */ -DealStrict.prototype['person_id'] = undefined; - -/** - * The ID of the organization associated with the deal - * @member {Number} org_id - */ -DealStrict.prototype['org_id'] = undefined; - -/** - * The ID of the deal stage - * @member {Number} stage_id - */ -DealStrict.prototype['stage_id'] = undefined; - -/** - * The title of the deal - * @member {String} title - */ -DealStrict.prototype['title'] = undefined; - -/** - * The value of the deal - * @member {Number} value - */ -DealStrict.prototype['value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} currency - */ -DealStrict.prototype['currency'] = undefined; - -/** - * The creation date and time of the deal - * @member {String} add_time - */ -DealStrict.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the deal - * @member {String} update_time - */ -DealStrict.prototype['update_time'] = undefined; - -/** - * The last updated date and time of the deal stage - * @member {String} stage_change_time - */ -DealStrict.prototype['stage_change_time'] = undefined; - -/** - * Whether the deal is active or not - * @member {Boolean} active - */ -DealStrict.prototype['active'] = undefined; - -/** - * Whether the deal is deleted or not - * @member {Boolean} deleted - */ -DealStrict.prototype['deleted'] = undefined; - -/** - * The status of the deal - * @member {String} status - */ -DealStrict.prototype['status'] = undefined; - -/** - * The success probability percentage of the deal - * @member {Number} probability - */ -DealStrict.prototype['probability'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -DealStrict.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -DealStrict.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -DealStrict.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -DealStrict.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -DealStrict.prototype['last_activity_date'] = undefined; - -/** - * The reason for losing the deal - * @member {String} lost_reason - */ -DealStrict.prototype['lost_reason'] = undefined; - -/** - * The visibility of the deal - * @member {String} visible_to - */ -DealStrict.prototype['visible_to'] = undefined; - -/** - * The date and time of closing the deal - * @member {String} close_time - */ -DealStrict.prototype['close_time'] = undefined; - -/** - * The ID of the pipeline associated with the deal - * @member {Number} pipeline_id - */ -DealStrict.prototype['pipeline_id'] = undefined; - -/** - * The date and time of changing the deal status as won - * @member {String} won_time - */ -DealStrict.prototype['won_time'] = undefined; - -/** - * The date and time of the first time changing the deal status as won - * @member {String} first_won_time - */ -DealStrict.prototype['first_won_time'] = undefined; - -/** - * The date and time of changing the deal status as lost - * @member {String} lost_time - */ -DealStrict.prototype['lost_time'] = undefined; - -/** - * The number of products associated with the deal - * @member {Number} products_count - */ -DealStrict.prototype['products_count'] = undefined; - -/** - * The number of files associated with the deal - * @member {Number} files_count - */ -DealStrict.prototype['files_count'] = undefined; - -/** - * The number of notes associated with the deal - * @member {Number} notes_count - */ -DealStrict.prototype['notes_count'] = undefined; - -/** - * The number of followers associated with the deal - * @member {Number} followers_count - */ -DealStrict.prototype['followers_count'] = undefined; - -/** - * The number of emails associated with the deal - * @member {Number} email_messages_count - */ -DealStrict.prototype['email_messages_count'] = undefined; - -/** - * The number of activities associated with the deal - * @member {Number} activities_count - */ -DealStrict.prototype['activities_count'] = undefined; - -/** - * The number of completed activities associated with the deal - * @member {Number} done_activities_count - */ -DealStrict.prototype['done_activities_count'] = undefined; - -/** - * The number of incomplete activities associated with the deal - * @member {Number} undone_activities_count - */ -DealStrict.prototype['undone_activities_count'] = undefined; - -/** - * The number of participants associated with the deal - * @member {Number} participants_count - */ -DealStrict.prototype['participants_count'] = undefined; - -/** - * The expected close date of the deal - * @member {Date} expected_close_date - */ -DealStrict.prototype['expected_close_date'] = undefined; - -/** - * The date and time of the last incoming email associated with the deal - * @member {String} last_incoming_mail_time - */ -DealStrict.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the deal - * @member {String} last_outgoing_mail_time - */ -DealStrict.prototype['last_outgoing_mail_time'] = undefined; - -/** - * The label or multiple labels assigned to the deal - * @member {String} label - */ -DealStrict.prototype['label'] = undefined; - -/** - * The order number of the deal stage associated with the deal - * @member {Number} stage_order_nr - */ -DealStrict.prototype['stage_order_nr'] = undefined; - -/** - * The name of the person associated with the deal - * @member {String} person_name - */ -DealStrict.prototype['person_name'] = undefined; - -/** - * The name of the organization associated with the deal - * @member {String} org_name - */ -DealStrict.prototype['org_name'] = undefined; - -/** - * The subject of the next activity associated with the deal - * @member {String} next_activity_subject - */ -DealStrict.prototype['next_activity_subject'] = undefined; - -/** - * The type of the next activity associated with the deal - * @member {String} next_activity_type - */ -DealStrict.prototype['next_activity_type'] = undefined; - -/** - * The duration of the next activity associated with the deal - * @member {String} next_activity_duration - */ -DealStrict.prototype['next_activity_duration'] = undefined; - -/** - * The note of the next activity associated with the deal - * @member {String} next_activity_note - */ -DealStrict.prototype['next_activity_note'] = undefined; - -/** - * The deal value formatted with selected currency. E.g. US$500 - * @member {String} formatted_value - */ -DealStrict.prototype['formatted_value'] = undefined; - -/** - * Probability times deal value. Probability can either be deal probability or if not set, then stage probability. - * @member {Number} weighted_value - */ -DealStrict.prototype['weighted_value'] = undefined; - -/** - * The weighted_value formatted with selected currency. E.g. US$500 - * @member {String} formatted_weighted_value - */ -DealStrict.prototype['formatted_weighted_value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} weighted_value_currency - */ -DealStrict.prototype['weighted_value_currency'] = undefined; - -/** - * The date and time of changing the deal status as rotten - * @member {String} rotten_time - */ -DealStrict.prototype['rotten_time'] = undefined; - -/** - * The name of the deal owner - * @member {String} owner_name - */ -DealStrict.prototype['owner_name'] = undefined; - -/** - * The BCC email of the deal - * @member {String} cc_email - */ -DealStrict.prototype['cc_email'] = undefined; - -/** - * If the organization that is associated with the deal is hidden or not - * @member {Boolean} org_hidden - */ -DealStrict.prototype['org_hidden'] = undefined; - -/** - * If the person that is associated with the deal is hidden or not - * @member {Boolean} person_hidden - */ -DealStrict.prototype['person_hidden'] = undefined; - -/** - * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. - * @member {String} origin - */ -DealStrict.prototype['origin'] = undefined; - -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. - * @member {String} origin_id - */ -DealStrict.prototype['origin_id'] = undefined; - -/** - * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. - * @member {Number} channel - */ -DealStrict.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -DealStrict.prototype['channel_id'] = undefined; - -/** - * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} arr - */ -DealStrict.prototype['arr'] = undefined; - -/** - * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} mrr - */ -DealStrict.prototype['mrr'] = undefined; - -/** - * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal - * @member {Number} acv - */ -DealStrict.prototype['acv'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null - * @member {String} arr_currency - */ -DealStrict.prototype['arr_currency'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null - * @member {String} mrr_currency - */ -DealStrict.prototype['mrr_currency'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null - * @member {String} acv_currency - */ -DealStrict.prototype['acv_currency'] = undefined; - - -// Implement DealStrictModeFields interface: -/** - * The ID of the deal - * @member {Number} id - */ -DealStrictModeFields.prototype['id'] = undefined; -/** - * The ID of the deal creator - * @member {Number} creator_user_id - */ -DealStrictModeFields.prototype['creator_user_id'] = undefined; -/** - * The ID of the user - * @member {Number} user_id - */ -DealStrictModeFields.prototype['user_id'] = undefined; -/** - * The ID of the person associated with the deal - * @member {Number} person_id - */ -DealStrictModeFields.prototype['person_id'] = undefined; -/** - * The ID of the organization associated with the deal - * @member {Number} org_id - */ -DealStrictModeFields.prototype['org_id'] = undefined; -// Implement BaseDeal interface: -/** - * The ID of the deal stage - * @member {Number} stage_id - */ -BaseDeal.prototype['stage_id'] = undefined; -/** - * The title of the deal - * @member {String} title - */ -BaseDeal.prototype['title'] = undefined; -/** - * The value of the deal - * @member {Number} value - */ -BaseDeal.prototype['value'] = undefined; -/** - * The currency associated with the deal - * @member {String} currency - */ -BaseDeal.prototype['currency'] = undefined; -/** - * The creation date and time of the deal - * @member {String} add_time - */ -BaseDeal.prototype['add_time'] = undefined; -/** - * The last updated date and time of the deal - * @member {String} update_time - */ -BaseDeal.prototype['update_time'] = undefined; -/** - * The last updated date and time of the deal stage - * @member {String} stage_change_time - */ -BaseDeal.prototype['stage_change_time'] = undefined; -/** - * Whether the deal is active or not - * @member {Boolean} active - */ -BaseDeal.prototype['active'] = undefined; -/** - * Whether the deal is deleted or not - * @member {Boolean} deleted - */ -BaseDeal.prototype['deleted'] = undefined; -/** - * The status of the deal - * @member {String} status - */ -BaseDeal.prototype['status'] = undefined; -/** - * The success probability percentage of the deal - * @member {Number} probability - */ -BaseDeal.prototype['probability'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -BaseDeal.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -BaseDeal.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -BaseDeal.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -BaseDeal.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -BaseDeal.prototype['last_activity_date'] = undefined; -/** - * The reason for losing the deal - * @member {String} lost_reason - */ -BaseDeal.prototype['lost_reason'] = undefined; -/** - * The visibility of the deal - * @member {String} visible_to - */ -BaseDeal.prototype['visible_to'] = undefined; -/** - * The date and time of closing the deal - * @member {String} close_time - */ -BaseDeal.prototype['close_time'] = undefined; -/** - * The ID of the pipeline associated with the deal - * @member {Number} pipeline_id - */ -BaseDeal.prototype['pipeline_id'] = undefined; -/** - * The date and time of changing the deal status as won - * @member {String} won_time - */ -BaseDeal.prototype['won_time'] = undefined; -/** - * The date and time of the first time changing the deal status as won - * @member {String} first_won_time - */ -BaseDeal.prototype['first_won_time'] = undefined; -/** - * The date and time of changing the deal status as lost - * @member {String} lost_time - */ -BaseDeal.prototype['lost_time'] = undefined; -/** - * The number of products associated with the deal - * @member {Number} products_count - */ -BaseDeal.prototype['products_count'] = undefined; -/** - * The number of files associated with the deal - * @member {Number} files_count - */ -BaseDeal.prototype['files_count'] = undefined; -/** - * The number of notes associated with the deal - * @member {Number} notes_count - */ -BaseDeal.prototype['notes_count'] = undefined; -/** - * The number of followers associated with the deal - * @member {Number} followers_count - */ -BaseDeal.prototype['followers_count'] = undefined; -/** - * The number of emails associated with the deal - * @member {Number} email_messages_count - */ -BaseDeal.prototype['email_messages_count'] = undefined; -/** - * The number of activities associated with the deal - * @member {Number} activities_count - */ -BaseDeal.prototype['activities_count'] = undefined; -/** - * The number of completed activities associated with the deal - * @member {Number} done_activities_count - */ -BaseDeal.prototype['done_activities_count'] = undefined; -/** - * The number of incomplete activities associated with the deal - * @member {Number} undone_activities_count - */ -BaseDeal.prototype['undone_activities_count'] = undefined; -/** - * The number of participants associated with the deal - * @member {Number} participants_count - */ -BaseDeal.prototype['participants_count'] = undefined; -/** - * The expected close date of the deal - * @member {Date} expected_close_date - */ -BaseDeal.prototype['expected_close_date'] = undefined; -/** - * The date and time of the last incoming email associated with the deal - * @member {String} last_incoming_mail_time - */ -BaseDeal.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the deal - * @member {String} last_outgoing_mail_time - */ -BaseDeal.prototype['last_outgoing_mail_time'] = undefined; -/** - * The label or multiple labels assigned to the deal - * @member {String} label - */ -BaseDeal.prototype['label'] = undefined; -/** - * The order number of the deal stage associated with the deal - * @member {Number} stage_order_nr - */ -BaseDeal.prototype['stage_order_nr'] = undefined; -/** - * The name of the person associated with the deal - * @member {String} person_name - */ -BaseDeal.prototype['person_name'] = undefined; -/** - * The name of the organization associated with the deal - * @member {String} org_name - */ -BaseDeal.prototype['org_name'] = undefined; -/** - * The subject of the next activity associated with the deal - * @member {String} next_activity_subject - */ -BaseDeal.prototype['next_activity_subject'] = undefined; -/** - * The type of the next activity associated with the deal - * @member {String} next_activity_type - */ -BaseDeal.prototype['next_activity_type'] = undefined; -/** - * The duration of the next activity associated with the deal - * @member {String} next_activity_duration - */ -BaseDeal.prototype['next_activity_duration'] = undefined; -/** - * The note of the next activity associated with the deal - * @member {String} next_activity_note - */ -BaseDeal.prototype['next_activity_note'] = undefined; -/** - * The deal value formatted with selected currency. E.g. US$500 - * @member {String} formatted_value - */ -BaseDeal.prototype['formatted_value'] = undefined; -/** - * Probability times deal value. Probability can either be deal probability or if not set, then stage probability. - * @member {Number} weighted_value - */ -BaseDeal.prototype['weighted_value'] = undefined; -/** - * The weighted_value formatted with selected currency. E.g. US$500 - * @member {String} formatted_weighted_value - */ -BaseDeal.prototype['formatted_weighted_value'] = undefined; -/** - * The currency associated with the deal - * @member {String} weighted_value_currency - */ -BaseDeal.prototype['weighted_value_currency'] = undefined; -/** - * The date and time of changing the deal status as rotten - * @member {String} rotten_time - */ -BaseDeal.prototype['rotten_time'] = undefined; -/** - * The name of the deal owner - * @member {String} owner_name - */ -BaseDeal.prototype['owner_name'] = undefined; -/** - * The BCC email of the deal - * @member {String} cc_email - */ -BaseDeal.prototype['cc_email'] = undefined; -/** - * If the organization that is associated with the deal is hidden or not - * @member {Boolean} org_hidden - */ -BaseDeal.prototype['org_hidden'] = undefined; -/** - * If the person that is associated with the deal is hidden or not - * @member {Boolean} person_hidden - */ -BaseDeal.prototype['person_hidden'] = undefined; -/** - * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. - * @member {String} origin - */ -BaseDeal.prototype['origin'] = undefined; -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. - * @member {String} origin_id - */ -BaseDeal.prototype['origin_id'] = undefined; -/** - * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. - * @member {Number} channel - */ -BaseDeal.prototype['channel'] = undefined; -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -BaseDeal.prototype['channel_id'] = undefined; -/** - * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} arr - */ -BaseDeal.prototype['arr'] = undefined; -/** - * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} mrr - */ -BaseDeal.prototype['mrr'] = undefined; -/** - * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal - * @member {Number} acv - */ -BaseDeal.prototype['acv'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null - * @member {String} arr_currency - */ -BaseDeal.prototype['arr_currency'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null - * @member {String} mrr_currency - */ -BaseDeal.prototype['mrr_currency'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null - * @member {String} acv_currency - */ -BaseDeal.prototype['acv_currency'] = undefined; - - - - -export default DealStrict; - diff --git a/src/model/DealStrictModeFields.js b/src/model/DealStrictModeFields.js deleted file mode 100644 index c3264101..00000000 --- a/src/model/DealStrictModeFields.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealStrictModeFields model module. - * @module model/DealStrictModeFields - * @version 1.0.0 - */ -class DealStrictModeFields { - /** - * Constructs a new DealStrictModeFields. - * @alias module:model/DealStrictModeFields - */ - constructor() { - - DealStrictModeFields.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealStrictModeFields from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealStrictModeFields} obj Optional instance to populate. - * @return {module:model/DealStrictModeFields} The populated DealStrictModeFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealStrictModeFields(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('creator_user_id')) { - obj['creator_user_id'] = ApiClient.convertToType(data['creator_user_id'], 'Number'); - - delete data['creator_user_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal - * @member {Number} id - */ -DealStrictModeFields.prototype['id'] = undefined; - -/** - * The ID of the deal creator - * @member {Number} creator_user_id - */ -DealStrictModeFields.prototype['creator_user_id'] = undefined; - -/** - * The ID of the user - * @member {Number} user_id - */ -DealStrictModeFields.prototype['user_id'] = undefined; - -/** - * The ID of the person associated with the deal - * @member {Number} person_id - */ -DealStrictModeFields.prototype['person_id'] = undefined; - -/** - * The ID of the organization associated with the deal - * @member {Number} org_id - */ -DealStrictModeFields.prototype['org_id'] = undefined; - - - - - - -export default DealStrictModeFields; - diff --git a/src/model/DealStrictWithMergeId.js b/src/model/DealStrictWithMergeId.js deleted file mode 100644 index 6cc1565b..00000000 --- a/src/model/DealStrictWithMergeId.js +++ /dev/null @@ -1,1164 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealStrict from './DealStrict'; -import DealStrictWithMergeIdAllOf from './DealStrictWithMergeIdAllOf'; - -/** - * The DealStrictWithMergeId model module. - * @module model/DealStrictWithMergeId - * @version 1.0.0 - */ -class DealStrictWithMergeId { - /** - * Constructs a new DealStrictWithMergeId. - * @alias module:model/DealStrictWithMergeId - * @implements module:model/DealStrict - * @implements module:model/DealStrictWithMergeIdAllOf - */ - constructor() { - DealStrict.initialize(this);DealStrictWithMergeIdAllOf.initialize(this); - DealStrictWithMergeId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealStrictWithMergeId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealStrictWithMergeId} obj Optional instance to populate. - * @return {module:model/DealStrictWithMergeId} The populated DealStrictWithMergeId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealStrictWithMergeId(); - DealStrict.constructFromObject(data, obj); - DealStrictWithMergeIdAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('creator_user_id')) { - obj['creator_user_id'] = ApiClient.convertToType(data['creator_user_id'], 'Number'); - - delete data['creator_user_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('stage_change_time')) { - obj['stage_change_time'] = ApiClient.convertToType(data['stage_change_time'], 'String'); - - delete data['stage_change_time']; - } - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); - - delete data['active']; - } - if (data.hasOwnProperty('deleted')) { - obj['deleted'] = ApiClient.convertToType(data['deleted'], 'Boolean'); - - delete data['deleted']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('probability')) { - obj['probability'] = ApiClient.convertToType(data['probability'], 'Number'); - - delete data['probability']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - if (data.hasOwnProperty('lost_reason')) { - obj['lost_reason'] = ApiClient.convertToType(data['lost_reason'], 'String'); - - delete data['lost_reason']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('close_time')) { - obj['close_time'] = ApiClient.convertToType(data['close_time'], 'String'); - - delete data['close_time']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('won_time')) { - obj['won_time'] = ApiClient.convertToType(data['won_time'], 'String'); - - delete data['won_time']; - } - if (data.hasOwnProperty('first_won_time')) { - obj['first_won_time'] = ApiClient.convertToType(data['first_won_time'], 'String'); - - delete data['first_won_time']; - } - if (data.hasOwnProperty('lost_time')) { - obj['lost_time'] = ApiClient.convertToType(data['lost_time'], 'String'); - - delete data['lost_time']; - } - if (data.hasOwnProperty('products_count')) { - obj['products_count'] = ApiClient.convertToType(data['products_count'], 'Number'); - - delete data['products_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('participants_count')) { - obj['participants_count'] = ApiClient.convertToType(data['participants_count'], 'Number'); - - delete data['participants_count']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - if (data.hasOwnProperty('stage_order_nr')) { - obj['stage_order_nr'] = ApiClient.convertToType(data['stage_order_nr'], 'Number'); - - delete data['stage_order_nr']; - } - if (data.hasOwnProperty('person_name')) { - obj['person_name'] = ApiClient.convertToType(data['person_name'], 'String'); - - delete data['person_name']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('next_activity_subject')) { - obj['next_activity_subject'] = ApiClient.convertToType(data['next_activity_subject'], 'String'); - - delete data['next_activity_subject']; - } - if (data.hasOwnProperty('next_activity_type')) { - obj['next_activity_type'] = ApiClient.convertToType(data['next_activity_type'], 'String'); - - delete data['next_activity_type']; - } - if (data.hasOwnProperty('next_activity_duration')) { - obj['next_activity_duration'] = ApiClient.convertToType(data['next_activity_duration'], 'String'); - - delete data['next_activity_duration']; - } - if (data.hasOwnProperty('next_activity_note')) { - obj['next_activity_note'] = ApiClient.convertToType(data['next_activity_note'], 'String'); - - delete data['next_activity_note']; - } - if (data.hasOwnProperty('formatted_value')) { - obj['formatted_value'] = ApiClient.convertToType(data['formatted_value'], 'String'); - - delete data['formatted_value']; - } - if (data.hasOwnProperty('weighted_value')) { - obj['weighted_value'] = ApiClient.convertToType(data['weighted_value'], 'Number'); - - delete data['weighted_value']; - } - if (data.hasOwnProperty('formatted_weighted_value')) { - obj['formatted_weighted_value'] = ApiClient.convertToType(data['formatted_weighted_value'], 'String'); - - delete data['formatted_weighted_value']; - } - if (data.hasOwnProperty('weighted_value_currency')) { - obj['weighted_value_currency'] = ApiClient.convertToType(data['weighted_value_currency'], 'String'); - - delete data['weighted_value_currency']; - } - if (data.hasOwnProperty('rotten_time')) { - obj['rotten_time'] = ApiClient.convertToType(data['rotten_time'], 'String'); - - delete data['rotten_time']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('org_hidden')) { - obj['org_hidden'] = ApiClient.convertToType(data['org_hidden'], 'Boolean'); - - delete data['org_hidden']; - } - if (data.hasOwnProperty('person_hidden')) { - obj['person_hidden'] = ApiClient.convertToType(data['person_hidden'], 'Boolean'); - - delete data['person_hidden']; - } - if (data.hasOwnProperty('origin')) { - obj['origin'] = ApiClient.convertToType(data['origin'], 'String'); - - delete data['origin']; - } - if (data.hasOwnProperty('origin_id')) { - obj['origin_id'] = ApiClient.convertToType(data['origin_id'], 'String'); - - delete data['origin_id']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - if (data.hasOwnProperty('arr')) { - obj['arr'] = ApiClient.convertToType(data['arr'], 'Number'); - - delete data['arr']; - } - if (data.hasOwnProperty('mrr')) { - obj['mrr'] = ApiClient.convertToType(data['mrr'], 'Number'); - - delete data['mrr']; - } - if (data.hasOwnProperty('acv')) { - obj['acv'] = ApiClient.convertToType(data['acv'], 'Number'); - - delete data['acv']; - } - if (data.hasOwnProperty('arr_currency')) { - obj['arr_currency'] = ApiClient.convertToType(data['arr_currency'], 'String'); - - delete data['arr_currency']; - } - if (data.hasOwnProperty('mrr_currency')) { - obj['mrr_currency'] = ApiClient.convertToType(data['mrr_currency'], 'String'); - - delete data['mrr_currency']; - } - if (data.hasOwnProperty('acv_currency')) { - obj['acv_currency'] = ApiClient.convertToType(data['acv_currency'], 'String'); - - delete data['acv_currency']; - } - if (data.hasOwnProperty('merge_what_id')) { - obj['merge_what_id'] = ApiClient.convertToType(data['merge_what_id'], 'Number'); - - delete data['merge_what_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal - * @member {Number} id - */ -DealStrictWithMergeId.prototype['id'] = undefined; - -/** - * The ID of the deal creator - * @member {Number} creator_user_id - */ -DealStrictWithMergeId.prototype['creator_user_id'] = undefined; - -/** - * The ID of the user - * @member {Number} user_id - */ -DealStrictWithMergeId.prototype['user_id'] = undefined; - -/** - * The ID of the person associated with the deal - * @member {Number} person_id - */ -DealStrictWithMergeId.prototype['person_id'] = undefined; - -/** - * The ID of the organization associated with the deal - * @member {Number} org_id - */ -DealStrictWithMergeId.prototype['org_id'] = undefined; - -/** - * The ID of the deal stage - * @member {Number} stage_id - */ -DealStrictWithMergeId.prototype['stage_id'] = undefined; - -/** - * The title of the deal - * @member {String} title - */ -DealStrictWithMergeId.prototype['title'] = undefined; - -/** - * The value of the deal - * @member {Number} value - */ -DealStrictWithMergeId.prototype['value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} currency - */ -DealStrictWithMergeId.prototype['currency'] = undefined; - -/** - * The creation date and time of the deal - * @member {String} add_time - */ -DealStrictWithMergeId.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the deal - * @member {String} update_time - */ -DealStrictWithMergeId.prototype['update_time'] = undefined; - -/** - * The last updated date and time of the deal stage - * @member {String} stage_change_time - */ -DealStrictWithMergeId.prototype['stage_change_time'] = undefined; - -/** - * Whether the deal is active or not - * @member {Boolean} active - */ -DealStrictWithMergeId.prototype['active'] = undefined; - -/** - * Whether the deal is deleted or not - * @member {Boolean} deleted - */ -DealStrictWithMergeId.prototype['deleted'] = undefined; - -/** - * The status of the deal - * @member {String} status - */ -DealStrictWithMergeId.prototype['status'] = undefined; - -/** - * The success probability percentage of the deal - * @member {Number} probability - */ -DealStrictWithMergeId.prototype['probability'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -DealStrictWithMergeId.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -DealStrictWithMergeId.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -DealStrictWithMergeId.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -DealStrictWithMergeId.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -DealStrictWithMergeId.prototype['last_activity_date'] = undefined; - -/** - * The reason for losing the deal - * @member {String} lost_reason - */ -DealStrictWithMergeId.prototype['lost_reason'] = undefined; - -/** - * The visibility of the deal - * @member {String} visible_to - */ -DealStrictWithMergeId.prototype['visible_to'] = undefined; - -/** - * The date and time of closing the deal - * @member {String} close_time - */ -DealStrictWithMergeId.prototype['close_time'] = undefined; - -/** - * The ID of the pipeline associated with the deal - * @member {Number} pipeline_id - */ -DealStrictWithMergeId.prototype['pipeline_id'] = undefined; - -/** - * The date and time of changing the deal status as won - * @member {String} won_time - */ -DealStrictWithMergeId.prototype['won_time'] = undefined; - -/** - * The date and time of the first time changing the deal status as won - * @member {String} first_won_time - */ -DealStrictWithMergeId.prototype['first_won_time'] = undefined; - -/** - * The date and time of changing the deal status as lost - * @member {String} lost_time - */ -DealStrictWithMergeId.prototype['lost_time'] = undefined; - -/** - * The number of products associated with the deal - * @member {Number} products_count - */ -DealStrictWithMergeId.prototype['products_count'] = undefined; - -/** - * The number of files associated with the deal - * @member {Number} files_count - */ -DealStrictWithMergeId.prototype['files_count'] = undefined; - -/** - * The number of notes associated with the deal - * @member {Number} notes_count - */ -DealStrictWithMergeId.prototype['notes_count'] = undefined; - -/** - * The number of followers associated with the deal - * @member {Number} followers_count - */ -DealStrictWithMergeId.prototype['followers_count'] = undefined; - -/** - * The number of emails associated with the deal - * @member {Number} email_messages_count - */ -DealStrictWithMergeId.prototype['email_messages_count'] = undefined; - -/** - * The number of activities associated with the deal - * @member {Number} activities_count - */ -DealStrictWithMergeId.prototype['activities_count'] = undefined; - -/** - * The number of completed activities associated with the deal - * @member {Number} done_activities_count - */ -DealStrictWithMergeId.prototype['done_activities_count'] = undefined; - -/** - * The number of incomplete activities associated with the deal - * @member {Number} undone_activities_count - */ -DealStrictWithMergeId.prototype['undone_activities_count'] = undefined; - -/** - * The number of participants associated with the deal - * @member {Number} participants_count - */ -DealStrictWithMergeId.prototype['participants_count'] = undefined; - -/** - * The expected close date of the deal - * @member {Date} expected_close_date - */ -DealStrictWithMergeId.prototype['expected_close_date'] = undefined; - -/** - * The date and time of the last incoming email associated with the deal - * @member {String} last_incoming_mail_time - */ -DealStrictWithMergeId.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the deal - * @member {String} last_outgoing_mail_time - */ -DealStrictWithMergeId.prototype['last_outgoing_mail_time'] = undefined; - -/** - * The label or multiple labels assigned to the deal - * @member {String} label - */ -DealStrictWithMergeId.prototype['label'] = undefined; - -/** - * The order number of the deal stage associated with the deal - * @member {Number} stage_order_nr - */ -DealStrictWithMergeId.prototype['stage_order_nr'] = undefined; - -/** - * The name of the person associated with the deal - * @member {String} person_name - */ -DealStrictWithMergeId.prototype['person_name'] = undefined; - -/** - * The name of the organization associated with the deal - * @member {String} org_name - */ -DealStrictWithMergeId.prototype['org_name'] = undefined; - -/** - * The subject of the next activity associated with the deal - * @member {String} next_activity_subject - */ -DealStrictWithMergeId.prototype['next_activity_subject'] = undefined; - -/** - * The type of the next activity associated with the deal - * @member {String} next_activity_type - */ -DealStrictWithMergeId.prototype['next_activity_type'] = undefined; - -/** - * The duration of the next activity associated with the deal - * @member {String} next_activity_duration - */ -DealStrictWithMergeId.prototype['next_activity_duration'] = undefined; - -/** - * The note of the next activity associated with the deal - * @member {String} next_activity_note - */ -DealStrictWithMergeId.prototype['next_activity_note'] = undefined; - -/** - * The deal value formatted with selected currency. E.g. US$500 - * @member {String} formatted_value - */ -DealStrictWithMergeId.prototype['formatted_value'] = undefined; - -/** - * Probability times deal value. Probability can either be deal probability or if not set, then stage probability. - * @member {Number} weighted_value - */ -DealStrictWithMergeId.prototype['weighted_value'] = undefined; - -/** - * The weighted_value formatted with selected currency. E.g. US$500 - * @member {String} formatted_weighted_value - */ -DealStrictWithMergeId.prototype['formatted_weighted_value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} weighted_value_currency - */ -DealStrictWithMergeId.prototype['weighted_value_currency'] = undefined; - -/** - * The date and time of changing the deal status as rotten - * @member {String} rotten_time - */ -DealStrictWithMergeId.prototype['rotten_time'] = undefined; - -/** - * The name of the deal owner - * @member {String} owner_name - */ -DealStrictWithMergeId.prototype['owner_name'] = undefined; - -/** - * The BCC email of the deal - * @member {String} cc_email - */ -DealStrictWithMergeId.prototype['cc_email'] = undefined; - -/** - * If the organization that is associated with the deal is hidden or not - * @member {Boolean} org_hidden - */ -DealStrictWithMergeId.prototype['org_hidden'] = undefined; - -/** - * If the person that is associated with the deal is hidden or not - * @member {Boolean} person_hidden - */ -DealStrictWithMergeId.prototype['person_hidden'] = undefined; - -/** - * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. - * @member {String} origin - */ -DealStrictWithMergeId.prototype['origin'] = undefined; - -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. - * @member {String} origin_id - */ -DealStrictWithMergeId.prototype['origin_id'] = undefined; - -/** - * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. - * @member {Number} channel - */ -DealStrictWithMergeId.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -DealStrictWithMergeId.prototype['channel_id'] = undefined; - -/** - * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} arr - */ -DealStrictWithMergeId.prototype['arr'] = undefined; - -/** - * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} mrr - */ -DealStrictWithMergeId.prototype['mrr'] = undefined; - -/** - * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal - * @member {Number} acv - */ -DealStrictWithMergeId.prototype['acv'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null - * @member {String} arr_currency - */ -DealStrictWithMergeId.prototype['arr_currency'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null - * @member {String} mrr_currency - */ -DealStrictWithMergeId.prototype['mrr_currency'] = undefined; - -/** - * Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null - * @member {String} acv_currency - */ -DealStrictWithMergeId.prototype['acv_currency'] = undefined; - -/** - * The deal ID of the deal which the original deal was merged with - * @member {Number} merge_what_id - */ -DealStrictWithMergeId.prototype['merge_what_id'] = undefined; - - -// Implement DealStrict interface: -/** - * The ID of the deal - * @member {Number} id - */ -DealStrict.prototype['id'] = undefined; -/** - * The ID of the deal creator - * @member {Number} creator_user_id - */ -DealStrict.prototype['creator_user_id'] = undefined; -/** - * The ID of the user - * @member {Number} user_id - */ -DealStrict.prototype['user_id'] = undefined; -/** - * The ID of the person associated with the deal - * @member {Number} person_id - */ -DealStrict.prototype['person_id'] = undefined; -/** - * The ID of the organization associated with the deal - * @member {Number} org_id - */ -DealStrict.prototype['org_id'] = undefined; -/** - * The ID of the deal stage - * @member {Number} stage_id - */ -DealStrict.prototype['stage_id'] = undefined; -/** - * The title of the deal - * @member {String} title - */ -DealStrict.prototype['title'] = undefined; -/** - * The value of the deal - * @member {Number} value - */ -DealStrict.prototype['value'] = undefined; -/** - * The currency associated with the deal - * @member {String} currency - */ -DealStrict.prototype['currency'] = undefined; -/** - * The creation date and time of the deal - * @member {String} add_time - */ -DealStrict.prototype['add_time'] = undefined; -/** - * The last updated date and time of the deal - * @member {String} update_time - */ -DealStrict.prototype['update_time'] = undefined; -/** - * The last updated date and time of the deal stage - * @member {String} stage_change_time - */ -DealStrict.prototype['stage_change_time'] = undefined; -/** - * Whether the deal is active or not - * @member {Boolean} active - */ -DealStrict.prototype['active'] = undefined; -/** - * Whether the deal is deleted or not - * @member {Boolean} deleted - */ -DealStrict.prototype['deleted'] = undefined; -/** - * The status of the deal - * @member {String} status - */ -DealStrict.prototype['status'] = undefined; -/** - * The success probability percentage of the deal - * @member {Number} probability - */ -DealStrict.prototype['probability'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -DealStrict.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -DealStrict.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -DealStrict.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -DealStrict.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -DealStrict.prototype['last_activity_date'] = undefined; -/** - * The reason for losing the deal - * @member {String} lost_reason - */ -DealStrict.prototype['lost_reason'] = undefined; -/** - * The visibility of the deal - * @member {String} visible_to - */ -DealStrict.prototype['visible_to'] = undefined; -/** - * The date and time of closing the deal - * @member {String} close_time - */ -DealStrict.prototype['close_time'] = undefined; -/** - * The ID of the pipeline associated with the deal - * @member {Number} pipeline_id - */ -DealStrict.prototype['pipeline_id'] = undefined; -/** - * The date and time of changing the deal status as won - * @member {String} won_time - */ -DealStrict.prototype['won_time'] = undefined; -/** - * The date and time of the first time changing the deal status as won - * @member {String} first_won_time - */ -DealStrict.prototype['first_won_time'] = undefined; -/** - * The date and time of changing the deal status as lost - * @member {String} lost_time - */ -DealStrict.prototype['lost_time'] = undefined; -/** - * The number of products associated with the deal - * @member {Number} products_count - */ -DealStrict.prototype['products_count'] = undefined; -/** - * The number of files associated with the deal - * @member {Number} files_count - */ -DealStrict.prototype['files_count'] = undefined; -/** - * The number of notes associated with the deal - * @member {Number} notes_count - */ -DealStrict.prototype['notes_count'] = undefined; -/** - * The number of followers associated with the deal - * @member {Number} followers_count - */ -DealStrict.prototype['followers_count'] = undefined; -/** - * The number of emails associated with the deal - * @member {Number} email_messages_count - */ -DealStrict.prototype['email_messages_count'] = undefined; -/** - * The number of activities associated with the deal - * @member {Number} activities_count - */ -DealStrict.prototype['activities_count'] = undefined; -/** - * The number of completed activities associated with the deal - * @member {Number} done_activities_count - */ -DealStrict.prototype['done_activities_count'] = undefined; -/** - * The number of incomplete activities associated with the deal - * @member {Number} undone_activities_count - */ -DealStrict.prototype['undone_activities_count'] = undefined; -/** - * The number of participants associated with the deal - * @member {Number} participants_count - */ -DealStrict.prototype['participants_count'] = undefined; -/** - * The expected close date of the deal - * @member {Date} expected_close_date - */ -DealStrict.prototype['expected_close_date'] = undefined; -/** - * The date and time of the last incoming email associated with the deal - * @member {String} last_incoming_mail_time - */ -DealStrict.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the deal - * @member {String} last_outgoing_mail_time - */ -DealStrict.prototype['last_outgoing_mail_time'] = undefined; -/** - * The label or multiple labels assigned to the deal - * @member {String} label - */ -DealStrict.prototype['label'] = undefined; -/** - * The order number of the deal stage associated with the deal - * @member {Number} stage_order_nr - */ -DealStrict.prototype['stage_order_nr'] = undefined; -/** - * The name of the person associated with the deal - * @member {String} person_name - */ -DealStrict.prototype['person_name'] = undefined; -/** - * The name of the organization associated with the deal - * @member {String} org_name - */ -DealStrict.prototype['org_name'] = undefined; -/** - * The subject of the next activity associated with the deal - * @member {String} next_activity_subject - */ -DealStrict.prototype['next_activity_subject'] = undefined; -/** - * The type of the next activity associated with the deal - * @member {String} next_activity_type - */ -DealStrict.prototype['next_activity_type'] = undefined; -/** - * The duration of the next activity associated with the deal - * @member {String} next_activity_duration - */ -DealStrict.prototype['next_activity_duration'] = undefined; -/** - * The note of the next activity associated with the deal - * @member {String} next_activity_note - */ -DealStrict.prototype['next_activity_note'] = undefined; -/** - * The deal value formatted with selected currency. E.g. US$500 - * @member {String} formatted_value - */ -DealStrict.prototype['formatted_value'] = undefined; -/** - * Probability times deal value. Probability can either be deal probability or if not set, then stage probability. - * @member {Number} weighted_value - */ -DealStrict.prototype['weighted_value'] = undefined; -/** - * The weighted_value formatted with selected currency. E.g. US$500 - * @member {String} formatted_weighted_value - */ -DealStrict.prototype['formatted_weighted_value'] = undefined; -/** - * The currency associated with the deal - * @member {String} weighted_value_currency - */ -DealStrict.prototype['weighted_value_currency'] = undefined; -/** - * The date and time of changing the deal status as rotten - * @member {String} rotten_time - */ -DealStrict.prototype['rotten_time'] = undefined; -/** - * The name of the deal owner - * @member {String} owner_name - */ -DealStrict.prototype['owner_name'] = undefined; -/** - * The BCC email of the deal - * @member {String} cc_email - */ -DealStrict.prototype['cc_email'] = undefined; -/** - * If the organization that is associated with the deal is hidden or not - * @member {Boolean} org_hidden - */ -DealStrict.prototype['org_hidden'] = undefined; -/** - * If the person that is associated with the deal is hidden or not - * @member {Boolean} person_hidden - */ -DealStrict.prototype['person_hidden'] = undefined; -/** - * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. - * @member {String} origin - */ -DealStrict.prototype['origin'] = undefined; -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. - * @member {String} origin_id - */ -DealStrict.prototype['origin_id'] = undefined; -/** - * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. - * @member {Number} channel - */ -DealStrict.prototype['channel'] = undefined; -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -DealStrict.prototype['channel_id'] = undefined; -/** - * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} arr - */ -DealStrict.prototype['arr'] = undefined; -/** - * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal - * @member {Number} mrr - */ -DealStrict.prototype['mrr'] = undefined; -/** - * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal - * @member {Number} acv - */ -DealStrict.prototype['acv'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null - * @member {String} arr_currency - */ -DealStrict.prototype['arr_currency'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null - * @member {String} mrr_currency - */ -DealStrict.prototype['mrr_currency'] = undefined; -/** - * Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null - * @member {String} acv_currency - */ -DealStrict.prototype['acv_currency'] = undefined; -// Implement DealStrictWithMergeIdAllOf interface: -/** - * The deal ID of the deal which the original deal was merged with - * @member {Number} merge_what_id - */ -DealStrictWithMergeIdAllOf.prototype['merge_what_id'] = undefined; - - - - -export default DealStrictWithMergeId; - diff --git a/src/model/DealStrictWithMergeIdAllOf.js b/src/model/DealStrictWithMergeIdAllOf.js deleted file mode 100644 index 3256bb08..00000000 --- a/src/model/DealStrictWithMergeIdAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealStrictWithMergeIdAllOf model module. - * @module model/DealStrictWithMergeIdAllOf - * @version 1.0.0 - */ -class DealStrictWithMergeIdAllOf { - /** - * Constructs a new DealStrictWithMergeIdAllOf. - * @alias module:model/DealStrictWithMergeIdAllOf - */ - constructor() { - - DealStrictWithMergeIdAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealStrictWithMergeIdAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealStrictWithMergeIdAllOf} obj Optional instance to populate. - * @return {module:model/DealStrictWithMergeIdAllOf} The populated DealStrictWithMergeIdAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealStrictWithMergeIdAllOf(); - - if (data.hasOwnProperty('merge_what_id')) { - obj['merge_what_id'] = ApiClient.convertToType(data['merge_what_id'], 'Number'); - - delete data['merge_what_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The deal ID of the deal which the original deal was merged with - * @member {Number} merge_what_id - */ -DealStrictWithMergeIdAllOf.prototype['merge_what_id'] = undefined; - - - - - - -export default DealStrictWithMergeIdAllOf; - diff --git a/src/model/DealSummary.js b/src/model/DealSummary.js deleted file mode 100644 index f80b2b81..00000000 --- a/src/model/DealSummary.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealSummaryPerCurrency from './DealSummaryPerCurrency'; -import DealSummaryPerCurrencyFull from './DealSummaryPerCurrencyFull'; -import DealSummaryPerStages from './DealSummaryPerStages'; - -/** - * The DealSummary model module. - * @module model/DealSummary - * @version 1.0.0 - */ -class DealSummary { - /** - * Constructs a new DealSummary. - * Deals summary - * @alias module:model/DealSummary - */ - constructor() { - - DealSummary.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSummary from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSummary} obj Optional instance to populate. - * @return {module:model/DealSummary} The populated DealSummary instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSummary(); - - if (data.hasOwnProperty('per_stages')) { - obj['per_stages'] = DealSummaryPerStages.constructFromObject(data['per_stages']); - - delete data['per_stages']; - } - if (data.hasOwnProperty('per_currency')) { - obj['per_currency'] = DealSummaryPerCurrency.constructFromObject(data['per_currency']); - - delete data['per_currency']; - } - if (data.hasOwnProperty('total_count')) { - obj['total_count'] = ApiClient.convertToType(data['total_count'], 'Number'); - - delete data['total_count']; - } - if (data.hasOwnProperty('per_currency_full')) { - obj['per_currency_full'] = DealSummaryPerCurrencyFull.constructFromObject(data['per_currency_full']); - - delete data['per_currency_full']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DealSummaryPerStages} per_stages - */ -DealSummary.prototype['per_stages'] = undefined; - -/** - * @member {module:model/DealSummaryPerCurrency} per_currency - */ -DealSummary.prototype['per_currency'] = undefined; - -/** - * Deals count - * @member {Number} total_count - */ -DealSummary.prototype['total_count'] = undefined; - -/** - * @member {module:model/DealSummaryPerCurrencyFull} per_currency_full - */ -DealSummary.prototype['per_currency_full'] = undefined; - - - - - - -export default DealSummary; - diff --git a/src/model/DealSummaryPerCurrency.js b/src/model/DealSummaryPerCurrency.js deleted file mode 100644 index 743994f2..00000000 --- a/src/model/DealSummaryPerCurrency.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealSummaryPerCurrency model module. - * @module model/DealSummaryPerCurrency - * @version 1.0.0 - */ -class DealSummaryPerCurrency { - /** - * Constructs a new DealSummaryPerCurrency. - * The currency count summary - * @alias module:model/DealSummaryPerCurrency - */ - constructor() { - - DealSummaryPerCurrency.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSummaryPerCurrency from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSummaryPerCurrency} obj Optional instance to populate. - * @return {module:model/DealSummaryPerCurrency} The populated DealSummaryPerCurrency instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSummaryPerCurrency(); - - if (data.hasOwnProperty('CURRENCY_ID')) { - obj['CURRENCY_ID'] = ApiClient.convertToType(data['CURRENCY_ID'], 'Number'); - - delete data['CURRENCY_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Deals count per currency. This parameter is dynamic and changes according to `currency_id` value. - * @member {Number} CURRENCY_ID - */ -DealSummaryPerCurrency.prototype['CURRENCY_ID'] = undefined; - - - - - - -export default DealSummaryPerCurrency; - diff --git a/src/model/DealSummaryPerCurrencyFull.js b/src/model/DealSummaryPerCurrencyFull.js deleted file mode 100644 index 2ce7366c..00000000 --- a/src/model/DealSummaryPerCurrencyFull.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealSummaryPerCurrencyFullCURRENCYID from './DealSummaryPerCurrencyFullCURRENCYID'; - -/** - * The DealSummaryPerCurrencyFull model module. - * @module model/DealSummaryPerCurrencyFull - * @version 1.0.0 - */ -class DealSummaryPerCurrencyFull { - /** - * Constructs a new DealSummaryPerCurrencyFull. - * Full currency summaries - * @alias module:model/DealSummaryPerCurrencyFull - */ - constructor() { - - DealSummaryPerCurrencyFull.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSummaryPerCurrencyFull from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSummaryPerCurrencyFull} obj Optional instance to populate. - * @return {module:model/DealSummaryPerCurrencyFull} The populated DealSummaryPerCurrencyFull instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSummaryPerCurrencyFull(); - - if (data.hasOwnProperty('CURRENCY_ID')) { - obj['CURRENCY_ID'] = DealSummaryPerCurrencyFullCURRENCYID.constructFromObject(data['CURRENCY_ID']); - - delete data['CURRENCY_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DealSummaryPerCurrencyFullCURRENCYID} CURRENCY_ID - */ -DealSummaryPerCurrencyFull.prototype['CURRENCY_ID'] = undefined; - - - - - - -export default DealSummaryPerCurrencyFull; - diff --git a/src/model/DealSummaryPerCurrencyFullCURRENCYID.js b/src/model/DealSummaryPerCurrencyFullCURRENCYID.js deleted file mode 100644 index 9c7f8819..00000000 --- a/src/model/DealSummaryPerCurrencyFullCURRENCYID.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealSummaryPerCurrencyFullCURRENCYID model module. - * @module model/DealSummaryPerCurrencyFullCURRENCYID - * @version 1.0.0 - */ -class DealSummaryPerCurrencyFullCURRENCYID { - /** - * Constructs a new DealSummaryPerCurrencyFullCURRENCYID. - * The currency summary. This parameter is dynamic and changes according to `currency_id` value. - * @alias module:model/DealSummaryPerCurrencyFullCURRENCYID - */ - constructor() { - - DealSummaryPerCurrencyFullCURRENCYID.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSummaryPerCurrencyFullCURRENCYID from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSummaryPerCurrencyFullCURRENCYID} obj Optional instance to populate. - * @return {module:model/DealSummaryPerCurrencyFullCURRENCYID} The populated DealSummaryPerCurrencyFullCURRENCYID instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSummaryPerCurrencyFullCURRENCYID(); - - if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number'); - - delete data['count']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Deals count per currency - * @member {Number} count - */ -DealSummaryPerCurrencyFullCURRENCYID.prototype['count'] = undefined; - -/** - * Deals value per currency - * @member {Number} value - */ -DealSummaryPerCurrencyFullCURRENCYID.prototype['value'] = undefined; - - - - - - -export default DealSummaryPerCurrencyFullCURRENCYID; - diff --git a/src/model/DealSummaryPerStages.js b/src/model/DealSummaryPerStages.js deleted file mode 100644 index 040c235f..00000000 --- a/src/model/DealSummaryPerStages.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealSummaryPerStagesSTAGEID from './DealSummaryPerStagesSTAGEID'; - -/** - * The DealSummaryPerStages model module. - * @module model/DealSummaryPerStages - * @version 1.0.0 - */ -class DealSummaryPerStages { - /** - * Constructs a new DealSummaryPerStages. - * The stage objects containing deals currency information - * @alias module:model/DealSummaryPerStages - */ - constructor() { - - DealSummaryPerStages.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSummaryPerStages from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSummaryPerStages} obj Optional instance to populate. - * @return {module:model/DealSummaryPerStages} The populated DealSummaryPerStages instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSummaryPerStages(); - - if (data.hasOwnProperty('STAGE_ID')) { - obj['STAGE_ID'] = DealSummaryPerStagesSTAGEID.constructFromObject(data['STAGE_ID']); - - delete data['STAGE_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DealSummaryPerStagesSTAGEID} STAGE_ID - */ -DealSummaryPerStages.prototype['STAGE_ID'] = undefined; - - - - - - -export default DealSummaryPerStages; - diff --git a/src/model/DealSummaryPerStagesSTAGEID.js b/src/model/DealSummaryPerStagesSTAGEID.js deleted file mode 100644 index 56fe355c..00000000 --- a/src/model/DealSummaryPerStagesSTAGEID.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealSummaryPerStagesSTAGEIDCURRENCYID from './DealSummaryPerStagesSTAGEIDCURRENCYID'; - -/** - * The DealSummaryPerStagesSTAGEID model module. - * @module model/DealSummaryPerStagesSTAGEID - * @version 1.0.0 - */ -class DealSummaryPerStagesSTAGEID { - /** - * Constructs a new DealSummaryPerStagesSTAGEID. - * The currency summaries per stage. This parameter is dynamic and changes according to `stage_id` value. - * @alias module:model/DealSummaryPerStagesSTAGEID - */ - constructor() { - - DealSummaryPerStagesSTAGEID.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSummaryPerStagesSTAGEID from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSummaryPerStagesSTAGEID} obj Optional instance to populate. - * @return {module:model/DealSummaryPerStagesSTAGEID} The populated DealSummaryPerStagesSTAGEID instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSummaryPerStagesSTAGEID(); - - if (data.hasOwnProperty('CURRENCY_ID')) { - obj['CURRENCY_ID'] = DealSummaryPerStagesSTAGEIDCURRENCYID.constructFromObject(data['CURRENCY_ID']); - - delete data['CURRENCY_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DealSummaryPerStagesSTAGEIDCURRENCYID} CURRENCY_ID - */ -DealSummaryPerStagesSTAGEID.prototype['CURRENCY_ID'] = undefined; - - - - - - -export default DealSummaryPerStagesSTAGEID; - diff --git a/src/model/DealSummaryPerStagesSTAGEIDCURRENCYID.js b/src/model/DealSummaryPerStagesSTAGEIDCURRENCYID.js deleted file mode 100644 index 865d103f..00000000 --- a/src/model/DealSummaryPerStagesSTAGEIDCURRENCYID.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealSummaryPerStagesSTAGEIDCURRENCYID model module. - * @module model/DealSummaryPerStagesSTAGEIDCURRENCYID - * @version 1.0.0 - */ -class DealSummaryPerStagesSTAGEIDCURRENCYID { - /** - * Constructs a new DealSummaryPerStagesSTAGEIDCURRENCYID. - * The currency summary. This parameter is dynamic and changes according to `currency_id` value. - * @alias module:model/DealSummaryPerStagesSTAGEIDCURRENCYID - */ - constructor() { - - DealSummaryPerStagesSTAGEIDCURRENCYID.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealSummaryPerStagesSTAGEIDCURRENCYID from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealSummaryPerStagesSTAGEIDCURRENCYID} obj Optional instance to populate. - * @return {module:model/DealSummaryPerStagesSTAGEIDCURRENCYID} The populated DealSummaryPerStagesSTAGEIDCURRENCYID instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealSummaryPerStagesSTAGEIDCURRENCYID(); - - if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number'); - - delete data['count']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('value_formatted')) { - obj['value_formatted'] = ApiClient.convertToType(data['value_formatted'], 'String'); - - delete data['value_formatted']; - } - if (data.hasOwnProperty('weighted_value')) { - obj['weighted_value'] = ApiClient.convertToType(data['weighted_value'], 'Number'); - - delete data['weighted_value']; - } - if (data.hasOwnProperty('weighted_value_formatted')) { - obj['weighted_value_formatted'] = ApiClient.convertToType(data['weighted_value_formatted'], 'String'); - - delete data['weighted_value_formatted']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Deals count per currency - * @member {Number} count - */ -DealSummaryPerStagesSTAGEIDCURRENCYID.prototype['count'] = undefined; - -/** - * Deals value per currency - * @member {Number} value - */ -DealSummaryPerStagesSTAGEIDCURRENCYID.prototype['value'] = undefined; - -/** - * Deals value formatted per currency - * @member {String} value_formatted - */ -DealSummaryPerStagesSTAGEIDCURRENCYID.prototype['value_formatted'] = undefined; - -/** - * Deals weighted value per currency - * @member {Number} weighted_value - */ -DealSummaryPerStagesSTAGEIDCURRENCYID.prototype['weighted_value'] = undefined; - -/** - * Deals weighted value formatted per currency - * @member {String} weighted_value_formatted - */ -DealSummaryPerStagesSTAGEIDCURRENCYID.prototype['weighted_value_formatted'] = undefined; - - - - - - -export default DealSummaryPerStagesSTAGEIDCURRENCYID; - diff --git a/src/model/DealTitleParameter.js b/src/model/DealTitleParameter.js deleted file mode 100644 index c32cac9d..00000000 --- a/src/model/DealTitleParameter.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealTitleParameter model module. - * @module model/DealTitleParameter - * @version 1.0.0 - */ -class DealTitleParameter { - /** - * Constructs a new DealTitleParameter. - * @alias module:model/DealTitleParameter - */ - constructor() { - - DealTitleParameter.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealTitleParameter from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealTitleParameter} obj Optional instance to populate. - * @return {module:model/DealTitleParameter} The populated DealTitleParameter instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealTitleParameter(); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the deal - * @member {String} title - */ -DealTitleParameter.prototype['title'] = undefined; - - - - - - -export default DealTitleParameter; - diff --git a/src/model/DealUserData.js b/src/model/DealUserData.js deleted file mode 100644 index ba6fc55e..00000000 --- a/src/model/DealUserData.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealUserData model module. - * @module model/DealUserData - * @version 1.0.0 - */ -class DealUserData { - /** - * Constructs a new DealUserData. - * The user who is associated with the deal - * @alias module:model/DealUserData - */ - constructor() { - - DealUserData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealUserData} obj Optional instance to populate. - * @return {module:model/DealUserData} The populated DealUserData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealUserData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('has_pic')) { - obj['has_pic'] = ApiClient.convertToType(data['has_pic'], 'Boolean'); - - delete data['has_pic']; - } - if (data.hasOwnProperty('pic_hash')) { - obj['pic_hash'] = ApiClient.convertToType(data['pic_hash'], 'String'); - - delete data['pic_hash']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} id - */ -DealUserData.prototype['id'] = undefined; - -/** - * The name of the user - * @member {String} name - */ -DealUserData.prototype['name'] = undefined; - -/** - * The email of the user - * @member {String} email - */ -DealUserData.prototype['email'] = undefined; - -/** - * If the user has a picture or not - * @member {Boolean} has_pic - */ -DealUserData.prototype['has_pic'] = undefined; - -/** - * The user picture hash - * @member {String} pic_hash - */ -DealUserData.prototype['pic_hash'] = undefined; - -/** - * Whether the user is active or not - * @member {Boolean} active_flag - */ -DealUserData.prototype['active_flag'] = undefined; - - - - - - -export default DealUserData; - diff --git a/src/model/DealUserDataWithId.js b/src/model/DealUserDataWithId.js deleted file mode 100644 index d296f41c..00000000 --- a/src/model/DealUserDataWithId.js +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealUserData from './DealUserData'; -import DealUserDataWithIdAllOf from './DealUserDataWithIdAllOf'; - -/** - * The DealUserDataWithId model module. - * @module model/DealUserDataWithId - * @version 1.0.0 - */ -class DealUserDataWithId { - /** - * Constructs a new DealUserDataWithId. - * @alias module:model/DealUserDataWithId - * @implements module:model/DealUserData - * @implements module:model/DealUserDataWithIdAllOf - */ - constructor() { - DealUserData.initialize(this);DealUserDataWithIdAllOf.initialize(this); - DealUserDataWithId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealUserDataWithId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealUserDataWithId} obj Optional instance to populate. - * @return {module:model/DealUserDataWithId} The populated DealUserDataWithId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealUserDataWithId(); - DealUserData.constructFromObject(data, obj); - DealUserDataWithIdAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('has_pic')) { - obj['has_pic'] = ApiClient.convertToType(data['has_pic'], 'Boolean'); - - delete data['has_pic']; - } - if (data.hasOwnProperty('pic_hash')) { - obj['pic_hash'] = ApiClient.convertToType(data['pic_hash'], 'String'); - - delete data['pic_hash']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} id - */ -DealUserDataWithId.prototype['id'] = undefined; - -/** - * The name of the user - * @member {String} name - */ -DealUserDataWithId.prototype['name'] = undefined; - -/** - * The email of the user - * @member {String} email - */ -DealUserDataWithId.prototype['email'] = undefined; - -/** - * If the user has a picture or not - * @member {Boolean} has_pic - */ -DealUserDataWithId.prototype['has_pic'] = undefined; - -/** - * The user picture hash - * @member {String} pic_hash - */ -DealUserDataWithId.prototype['pic_hash'] = undefined; - -/** - * Whether the user is active or not - * @member {Boolean} active_flag - */ -DealUserDataWithId.prototype['active_flag'] = undefined; - -/** - * The ID of the user - * @member {Number} value - */ -DealUserDataWithId.prototype['value'] = undefined; - - -// Implement DealUserData interface: -/** - * The ID of the user - * @member {Number} id - */ -DealUserData.prototype['id'] = undefined; -/** - * The name of the user - * @member {String} name - */ -DealUserData.prototype['name'] = undefined; -/** - * The email of the user - * @member {String} email - */ -DealUserData.prototype['email'] = undefined; -/** - * If the user has a picture or not - * @member {Boolean} has_pic - */ -DealUserData.prototype['has_pic'] = undefined; -/** - * The user picture hash - * @member {String} pic_hash - */ -DealUserData.prototype['pic_hash'] = undefined; -/** - * Whether the user is active or not - * @member {Boolean} active_flag - */ -DealUserData.prototype['active_flag'] = undefined; -// Implement DealUserDataWithIdAllOf interface: -/** - * The ID of the user - * @member {Number} value - */ -DealUserDataWithIdAllOf.prototype['value'] = undefined; - - - - -export default DealUserDataWithId; - diff --git a/src/model/DealUserDataWithIdAllOf.js b/src/model/DealUserDataWithIdAllOf.js deleted file mode 100644 index fb1bda33..00000000 --- a/src/model/DealUserDataWithIdAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealUserDataWithIdAllOf model module. - * @module model/DealUserDataWithIdAllOf - * @version 1.0.0 - */ -class DealUserDataWithIdAllOf { - /** - * Constructs a new DealUserDataWithIdAllOf. - * @alias module:model/DealUserDataWithIdAllOf - */ - constructor() { - - DealUserDataWithIdAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealUserDataWithIdAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealUserDataWithIdAllOf} obj Optional instance to populate. - * @return {module:model/DealUserDataWithIdAllOf} The populated DealUserDataWithIdAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealUserDataWithIdAllOf(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} value - */ -DealUserDataWithIdAllOf.prototype['value'] = undefined; - - - - - - -export default DealUserDataWithIdAllOf; - diff --git a/src/model/DealsCountAndActivityInfo.js b/src/model/DealsCountAndActivityInfo.js deleted file mode 100644 index 97262ccd..00000000 --- a/src/model/DealsCountAndActivityInfo.js +++ /dev/null @@ -1,284 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityInfo from './ActivityInfo'; -import DealsCountInfo from './DealsCountInfo'; - -/** - * The DealsCountAndActivityInfo model module. - * @module model/DealsCountAndActivityInfo - * @version 1.0.0 - */ -class DealsCountAndActivityInfo { - /** - * Constructs a new DealsCountAndActivityInfo. - * @alias module:model/DealsCountAndActivityInfo - * @implements module:model/DealsCountInfo - * @implements module:model/ActivityInfo - */ - constructor() { - DealsCountInfo.initialize(this);ActivityInfo.initialize(this); - DealsCountAndActivityInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealsCountAndActivityInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealsCountAndActivityInfo} obj Optional instance to populate. - * @return {module:model/DealsCountAndActivityInfo} The populated DealsCountAndActivityInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealsCountAndActivityInfo(); - DealsCountInfo.constructFromObject(data, obj); - ActivityInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -DealsCountAndActivityInfo.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -DealsCountAndActivityInfo.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -DealsCountAndActivityInfo.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -DealsCountAndActivityInfo.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -DealsCountAndActivityInfo.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -DealsCountAndActivityInfo.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -DealsCountAndActivityInfo.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -DealsCountAndActivityInfo.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -DealsCountAndActivityInfo.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -DealsCountAndActivityInfo.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -DealsCountAndActivityInfo.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -DealsCountAndActivityInfo.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -DealsCountAndActivityInfo.prototype['last_activity_date'] = undefined; - - -// Implement DealsCountInfo interface: -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -DealsCountInfo.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -DealsCountInfo.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -DealsCountInfo.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -DealsCountInfo.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -DealsCountInfo.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -DealsCountInfo.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -DealsCountInfo.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -DealsCountInfo.prototype['related_lost_deals_count'] = undefined; -// Implement ActivityInfo interface: -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -ActivityInfo.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -ActivityInfo.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -ActivityInfo.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -ActivityInfo.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -ActivityInfo.prototype['last_activity_date'] = undefined; - - - - -export default DealsCountAndActivityInfo; - diff --git a/src/model/DealsCountInfo.js b/src/model/DealsCountInfo.js deleted file mode 100644 index 31fdec2d..00000000 --- a/src/model/DealsCountInfo.js +++ /dev/null @@ -1,156 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealsCountInfo model module. - * @module model/DealsCountInfo - * @version 1.0.0 - */ -class DealsCountInfo { - /** - * Constructs a new DealsCountInfo. - * @alias module:model/DealsCountInfo - */ - constructor() { - - DealsCountInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealsCountInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealsCountInfo} obj Optional instance to populate. - * @return {module:model/DealsCountInfo} The populated DealsCountInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealsCountInfo(); - - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -DealsCountInfo.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -DealsCountInfo.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -DealsCountInfo.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -DealsCountInfo.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -DealsCountInfo.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -DealsCountInfo.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -DealsCountInfo.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -DealsCountInfo.prototype['related_lost_deals_count'] = undefined; - - - - - - -export default DealsCountInfo; - diff --git a/src/model/DealsMovementsInfo.js b/src/model/DealsMovementsInfo.js deleted file mode 100644 index 24ba1366..00000000 --- a/src/model/DealsMovementsInfo.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealsMovementsInfoFormattedValues from './DealsMovementsInfoFormattedValues'; -import DealsMovementsInfoValues from './DealsMovementsInfoValues'; - -/** - * The DealsMovementsInfo model module. - * @module model/DealsMovementsInfo - * @version 1.0.0 - */ -class DealsMovementsInfo { - /** - * Constructs a new DealsMovementsInfo. - * Deals summary - * @alias module:model/DealsMovementsInfo - */ - constructor() { - - DealsMovementsInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealsMovementsInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealsMovementsInfo} obj Optional instance to populate. - * @return {module:model/DealsMovementsInfo} The populated DealsMovementsInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealsMovementsInfo(); - - if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number'); - - delete data['count']; - } - if (data.hasOwnProperty('deals_ids')) { - obj['deals_ids'] = ApiClient.convertToType(data['deals_ids'], ['Number']); - - delete data['deals_ids']; - } - if (data.hasOwnProperty('values')) { - obj['values'] = DealsMovementsInfoValues.constructFromObject(data['values']); - - delete data['values']; - } - if (data.hasOwnProperty('formatted_values')) { - obj['formatted_values'] = DealsMovementsInfoFormattedValues.constructFromObject(data['formatted_values']); - - delete data['formatted_values']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of the deals - * @member {Number} count - */ -DealsMovementsInfo.prototype['count'] = undefined; - -/** - * The IDs of the deals that have been moved - * @member {Array.} deals_ids - */ -DealsMovementsInfo.prototype['deals_ids'] = undefined; - -/** - * @member {module:model/DealsMovementsInfoValues} values - */ -DealsMovementsInfo.prototype['values'] = undefined; - -/** - * @member {module:model/DealsMovementsInfoFormattedValues} formatted_values - */ -DealsMovementsInfo.prototype['formatted_values'] = undefined; - - - - - - -export default DealsMovementsInfo; - diff --git a/src/model/DealsMovementsInfoFormattedValues.js b/src/model/DealsMovementsInfoFormattedValues.js deleted file mode 100644 index 4fea6189..00000000 --- a/src/model/DealsMovementsInfoFormattedValues.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealsMovementsInfoFormattedValues model module. - * @module model/DealsMovementsInfoFormattedValues - * @version 1.0.0 - */ -class DealsMovementsInfoFormattedValues { - /** - * Constructs a new DealsMovementsInfoFormattedValues. - * The formatted values of the deals - * @alias module:model/DealsMovementsInfoFormattedValues - */ - constructor() { - - DealsMovementsInfoFormattedValues.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealsMovementsInfoFormattedValues from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealsMovementsInfoFormattedValues} obj Optional instance to populate. - * @return {module:model/DealsMovementsInfoFormattedValues} The populated DealsMovementsInfoFormattedValues instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealsMovementsInfoFormattedValues(); - - if (data.hasOwnProperty('CURRENCY_ID')) { - obj['CURRENCY_ID'] = ApiClient.convertToType(data['CURRENCY_ID'], 'String'); - - delete data['CURRENCY_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The formatted values of the deals - * @member {String} CURRENCY_ID - */ -DealsMovementsInfoFormattedValues.prototype['CURRENCY_ID'] = undefined; - - - - - - -export default DealsMovementsInfoFormattedValues; - diff --git a/src/model/DealsMovementsInfoValues.js b/src/model/DealsMovementsInfoValues.js deleted file mode 100644 index 0b40523f..00000000 --- a/src/model/DealsMovementsInfoValues.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DealsMovementsInfoValues model module. - * @module model/DealsMovementsInfoValues - * @version 1.0.0 - */ -class DealsMovementsInfoValues { - /** - * Constructs a new DealsMovementsInfoValues. - * The values of the deals - * @alias module:model/DealsMovementsInfoValues - */ - constructor() { - - DealsMovementsInfoValues.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DealsMovementsInfoValues from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DealsMovementsInfoValues} obj Optional instance to populate. - * @return {module:model/DealsMovementsInfoValues} The populated DealsMovementsInfoValues instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DealsMovementsInfoValues(); - - if (data.hasOwnProperty('CURRENCY_ID')) { - obj['CURRENCY_ID'] = ApiClient.convertToType(data['CURRENCY_ID'], 'Number'); - - delete data['CURRENCY_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The value of the deals - * @member {Number} CURRENCY_ID - */ -DealsMovementsInfoValues.prototype['CURRENCY_ID'] = undefined; - - - - - - -export default DealsMovementsInfoValues; - diff --git a/src/model/DeleteActivitiesResponse.js b/src/model/DeleteActivitiesResponse.js deleted file mode 100644 index cec108e1..00000000 --- a/src/model/DeleteActivitiesResponse.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteActivitiesResponseData from './DeleteActivitiesResponseData'; - -/** - * The DeleteActivitiesResponse model module. - * @module model/DeleteActivitiesResponse - * @version 1.0.0 - */ -class DeleteActivitiesResponse { - /** - * Constructs a new DeleteActivitiesResponse. - * @alias module:model/DeleteActivitiesResponse - */ - constructor() { - - DeleteActivitiesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteActivitiesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteActivitiesResponse} obj Optional instance to populate. - * @return {module:model/DeleteActivitiesResponse} The populated DeleteActivitiesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteActivitiesResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteActivitiesResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -DeleteActivitiesResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteActivitiesResponseData} data - */ -DeleteActivitiesResponse.prototype['data'] = undefined; - - - - - - -export default DeleteActivitiesResponse; - diff --git a/src/model/DeleteActivitiesResponse200.js b/src/model/DeleteActivitiesResponse200.js deleted file mode 100644 index 9ef86ac1..00000000 --- a/src/model/DeleteActivitiesResponse200.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteActivitiesResponse200Data from './DeleteActivitiesResponse200Data'; - -/** - * The DeleteActivitiesResponse200 model module. - * @module model/DeleteActivitiesResponse200 - * @version 1.0.0 - */ -class DeleteActivitiesResponse200 { - /** - * Constructs a new DeleteActivitiesResponse200. - * @alias module:model/DeleteActivitiesResponse200 - */ - constructor() { - - DeleteActivitiesResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteActivitiesResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteActivitiesResponse200} obj Optional instance to populate. - * @return {module:model/DeleteActivitiesResponse200} The populated DeleteActivitiesResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteActivitiesResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteActivitiesResponse200Data.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -DeleteActivitiesResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteActivitiesResponse200Data} data - */ -DeleteActivitiesResponse200.prototype['data'] = undefined; - - - - - - -export default DeleteActivitiesResponse200; - diff --git a/src/model/DeleteActivitiesResponse200Data.js b/src/model/DeleteActivitiesResponse200Data.js deleted file mode 100644 index 1180f5dc..00000000 --- a/src/model/DeleteActivitiesResponse200Data.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteActivitiesResponse200Data model module. - * @module model/DeleteActivitiesResponse200Data - * @version 1.0.0 - */ -class DeleteActivitiesResponse200Data { - /** - * Constructs a new DeleteActivitiesResponse200Data. - * @alias module:model/DeleteActivitiesResponse200Data - */ - constructor() { - - DeleteActivitiesResponse200Data.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteActivitiesResponse200Data from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteActivitiesResponse200Data} obj Optional instance to populate. - * @return {module:model/DeleteActivitiesResponse200Data} The populated DeleteActivitiesResponse200Data instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteActivitiesResponse200Data(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * An array of the IDs of activities that were deleted - * @member {Array.} id - */ -DeleteActivitiesResponse200Data.prototype['id'] = undefined; - - - - - - -export default DeleteActivitiesResponse200Data; - diff --git a/src/model/DeleteActivitiesResponseData.js b/src/model/DeleteActivitiesResponseData.js deleted file mode 100644 index 00f92709..00000000 --- a/src/model/DeleteActivitiesResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteActivitiesResponseData model module. - * @module model/DeleteActivitiesResponseData - * @version 1.0.0 - */ -class DeleteActivitiesResponseData { - /** - * Constructs a new DeleteActivitiesResponseData. - * @alias module:model/DeleteActivitiesResponseData - */ - constructor() { - - DeleteActivitiesResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteActivitiesResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteActivitiesResponseData} obj Optional instance to populate. - * @return {module:model/DeleteActivitiesResponseData} The populated DeleteActivitiesResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteActivitiesResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * An array of the IDs of activities that were deleted - * @member {Array.} id - */ -DeleteActivitiesResponseData.prototype['id'] = undefined; - - - - - - -export default DeleteActivitiesResponseData; - diff --git a/src/model/DeleteActivityResponse.js b/src/model/DeleteActivityResponse.js deleted file mode 100644 index dcaba59d..00000000 --- a/src/model/DeleteActivityResponse.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteActivityResponseData from './DeleteActivityResponseData'; - -/** - * The DeleteActivityResponse model module. - * @module model/DeleteActivityResponse - * @version 1.0.0 - */ -class DeleteActivityResponse { - /** - * Constructs a new DeleteActivityResponse. - * @alias module:model/DeleteActivityResponse - */ - constructor() { - - DeleteActivityResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteActivityResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteActivityResponse} obj Optional instance to populate. - * @return {module:model/DeleteActivityResponse} The populated DeleteActivityResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteActivityResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteActivityResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -DeleteActivityResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteActivityResponseData} data - */ -DeleteActivityResponse.prototype['data'] = undefined; - - - - - - -export default DeleteActivityResponse; - diff --git a/src/model/DeleteActivityResponse200.js b/src/model/DeleteActivityResponse200.js deleted file mode 100644 index 858b0760..00000000 --- a/src/model/DeleteActivityResponse200.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteActivityResponse200Data from './DeleteActivityResponse200Data'; - -/** - * The DeleteActivityResponse200 model module. - * @module model/DeleteActivityResponse200 - * @version 1.0.0 - */ -class DeleteActivityResponse200 { - /** - * Constructs a new DeleteActivityResponse200. - * @alias module:model/DeleteActivityResponse200 - */ - constructor() { - - DeleteActivityResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteActivityResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteActivityResponse200} obj Optional instance to populate. - * @return {module:model/DeleteActivityResponse200} The populated DeleteActivityResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteActivityResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteActivityResponse200Data.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -DeleteActivityResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteActivityResponse200Data} data - */ -DeleteActivityResponse200.prototype['data'] = undefined; - - - - - - -export default DeleteActivityResponse200; - diff --git a/src/model/DeleteActivityResponse200Data.js b/src/model/DeleteActivityResponse200Data.js deleted file mode 100644 index 5f3db2f1..00000000 --- a/src/model/DeleteActivityResponse200Data.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteActivityResponse200Data model module. - * @module model/DeleteActivityResponse200Data - * @version 1.0.0 - */ -class DeleteActivityResponse200Data { - /** - * Constructs a new DeleteActivityResponse200Data. - * @alias module:model/DeleteActivityResponse200Data - */ - constructor() { - - DeleteActivityResponse200Data.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteActivityResponse200Data from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteActivityResponse200Data} obj Optional instance to populate. - * @return {module:model/DeleteActivityResponse200Data} The populated DeleteActivityResponse200Data instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteActivityResponse200Data(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the activity that was deleted - * @member {Number} id - */ -DeleteActivityResponse200Data.prototype['id'] = undefined; - - - - - - -export default DeleteActivityResponse200Data; - diff --git a/src/model/DeleteActivityResponseData.js b/src/model/DeleteActivityResponseData.js deleted file mode 100644 index 2f60836c..00000000 --- a/src/model/DeleteActivityResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteActivityResponseData model module. - * @module model/DeleteActivityResponseData - * @version 1.0.0 - */ -class DeleteActivityResponseData { - /** - * Constructs a new DeleteActivityResponseData. - * @alias module:model/DeleteActivityResponseData - */ - constructor() { - - DeleteActivityResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteActivityResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteActivityResponseData} obj Optional instance to populate. - * @return {module:model/DeleteActivityResponseData} The populated DeleteActivityResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteActivityResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the activity that was deleted - * @member {Number} id - */ -DeleteActivityResponseData.prototype['id'] = undefined; - - - - - - -export default DeleteActivityResponseData; - diff --git a/src/model/DeleteChannelSuccess.js b/src/model/DeleteChannelSuccess.js deleted file mode 100644 index 553551ee..00000000 --- a/src/model/DeleteChannelSuccess.js +++ /dev/null @@ -1,78 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteChannelSuccess model module. - * @module model/DeleteChannelSuccess - * @version 1.0.0 - */ -class DeleteChannelSuccess { - /** - * Constructs a new DeleteChannelSuccess. - * @alias module:model/DeleteChannelSuccess - */ - constructor() { - - DeleteChannelSuccess.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteChannelSuccess from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteChannelSuccess} obj Optional instance to populate. - * @return {module:model/DeleteChannelSuccess} The populated DeleteChannelSuccess instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteChannelSuccess(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -DeleteChannelSuccess.prototype['success'] = undefined; - - - - - - -export default DeleteChannelSuccess; - diff --git a/src/model/DeleteComment.js b/src/model/DeleteComment.js deleted file mode 100644 index 08ac5a96..00000000 --- a/src/model/DeleteComment.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteComment model module. - * @module model/DeleteComment - * @version 1.0.0 - */ -class DeleteComment { - /** - * Constructs a new DeleteComment. - * @alias module:model/DeleteComment - */ - constructor() { - - DeleteComment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteComment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteComment} obj Optional instance to populate. - * @return {module:model/DeleteComment} The populated DeleteComment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteComment(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'Boolean'); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteComment.prototype['success'] = undefined; - -/** - * If the response is successful or not - * @member {Boolean} data - */ -DeleteComment.prototype['data'] = undefined; - - - - - - -export default DeleteComment; - diff --git a/src/model/DeleteConversationSuccess.js b/src/model/DeleteConversationSuccess.js deleted file mode 100644 index f117391c..00000000 --- a/src/model/DeleteConversationSuccess.js +++ /dev/null @@ -1,78 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteConversationSuccess model module. - * @module model/DeleteConversationSuccess - * @version 1.0.0 - */ -class DeleteConversationSuccess { - /** - * Constructs a new DeleteConversationSuccess. - * @alias module:model/DeleteConversationSuccess - */ - constructor() { - - DeleteConversationSuccess.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteConversationSuccess from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteConversationSuccess} obj Optional instance to populate. - * @return {module:model/DeleteConversationSuccess} The populated DeleteConversationSuccess instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteConversationSuccess(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -DeleteConversationSuccess.prototype['success'] = undefined; - - - - - - -export default DeleteConversationSuccess; - diff --git a/src/model/DeleteDeal.js b/src/model/DeleteDeal.js deleted file mode 100644 index d49815bf..00000000 --- a/src/model/DeleteDeal.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteDealData from './DeleteDealData'; - -/** - * The DeleteDeal model module. - * @module model/DeleteDeal - * @version 1.0.0 - */ -class DeleteDeal { - /** - * Constructs a new DeleteDeal. - * @alias module:model/DeleteDeal - */ - constructor() { - - DeleteDeal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteDeal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteDeal} obj Optional instance to populate. - * @return {module:model/DeleteDeal} The populated DeleteDeal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteDeal(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteDealData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteDeal.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteDealData} data - */ -DeleteDeal.prototype['data'] = undefined; - - - - - - -export default DeleteDeal; - diff --git a/src/model/DeleteDealData.js b/src/model/DeleteDealData.js deleted file mode 100644 index 86b67abc..00000000 --- a/src/model/DeleteDealData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteDealData model module. - * @module model/DeleteDealData - * @version 1.0.0 - */ -class DeleteDealData { - /** - * Constructs a new DeleteDealData. - * @alias module:model/DeleteDealData - */ - constructor() { - - DeleteDealData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteDealData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteDealData} obj Optional instance to populate. - * @return {module:model/DeleteDealData} The populated DeleteDealData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteDealData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal that was deleted - * @member {Number} id - */ -DeleteDealData.prototype['id'] = undefined; - - - - - - -export default DeleteDealData; - diff --git a/src/model/DeleteDealFollower.js b/src/model/DeleteDealFollower.js deleted file mode 100644 index dd97b747..00000000 --- a/src/model/DeleteDealFollower.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteDealFollowerData from './DeleteDealFollowerData'; - -/** - * The DeleteDealFollower model module. - * @module model/DeleteDealFollower - * @version 1.0.0 - */ -class DeleteDealFollower { - /** - * Constructs a new DeleteDealFollower. - * @alias module:model/DeleteDealFollower - */ - constructor() { - - DeleteDealFollower.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteDealFollower from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteDealFollower} obj Optional instance to populate. - * @return {module:model/DeleteDealFollower} The populated DeleteDealFollower instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteDealFollower(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteDealFollowerData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteDealFollower.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteDealFollowerData} data - */ -DeleteDealFollower.prototype['data'] = undefined; - - - - - - -export default DeleteDealFollower; - diff --git a/src/model/DeleteDealFollowerData.js b/src/model/DeleteDealFollowerData.js deleted file mode 100644 index ccd2e3a3..00000000 --- a/src/model/DeleteDealFollowerData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteDealFollowerData model module. - * @module model/DeleteDealFollowerData - * @version 1.0.0 - */ -class DeleteDealFollowerData { - /** - * Constructs a new DeleteDealFollowerData. - * @alias module:model/DeleteDealFollowerData - */ - constructor() { - - DeleteDealFollowerData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteDealFollowerData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteDealFollowerData} obj Optional instance to populate. - * @return {module:model/DeleteDealFollowerData} The populated DeleteDealFollowerData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteDealFollowerData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal follower that was deleted - * @member {Number} id - */ -DeleteDealFollowerData.prototype['id'] = undefined; - - - - - - -export default DeleteDealFollowerData; - diff --git a/src/model/DeleteDealParticipant.js b/src/model/DeleteDealParticipant.js deleted file mode 100644 index ef36ce8f..00000000 --- a/src/model/DeleteDealParticipant.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteDealParticipantData from './DeleteDealParticipantData'; - -/** - * The DeleteDealParticipant model module. - * @module model/DeleteDealParticipant - * @version 1.0.0 - */ -class DeleteDealParticipant { - /** - * Constructs a new DeleteDealParticipant. - * @alias module:model/DeleteDealParticipant - */ - constructor() { - - DeleteDealParticipant.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteDealParticipant from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteDealParticipant} obj Optional instance to populate. - * @return {module:model/DeleteDealParticipant} The populated DeleteDealParticipant instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteDealParticipant(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteDealParticipantData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteDealParticipant.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteDealParticipantData} data - */ -DeleteDealParticipant.prototype['data'] = undefined; - - - - - - -export default DeleteDealParticipant; - diff --git a/src/model/DeleteDealParticipantData.js b/src/model/DeleteDealParticipantData.js deleted file mode 100644 index d5637fdb..00000000 --- a/src/model/DeleteDealParticipantData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteDealParticipantData model module. - * @module model/DeleteDealParticipantData - * @version 1.0.0 - */ -class DeleteDealParticipantData { - /** - * Constructs a new DeleteDealParticipantData. - * @alias module:model/DeleteDealParticipantData - */ - constructor() { - - DeleteDealParticipantData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteDealParticipantData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteDealParticipantData} obj Optional instance to populate. - * @return {module:model/DeleteDealParticipantData} The populated DeleteDealParticipantData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteDealParticipantData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal participant that was deleted - * @member {Number} id - */ -DeleteDealParticipantData.prototype['id'] = undefined; - - - - - - -export default DeleteDealParticipantData; - diff --git a/src/model/DeleteDealProduct.js b/src/model/DeleteDealProduct.js deleted file mode 100644 index 42ac037a..00000000 --- a/src/model/DeleteDealProduct.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteDealProductData from './DeleteDealProductData'; - -/** - * The DeleteDealProduct model module. - * @module model/DeleteDealProduct - * @version 1.0.0 - */ -class DeleteDealProduct { - /** - * Constructs a new DeleteDealProduct. - * @alias module:model/DeleteDealProduct - */ - constructor() { - - DeleteDealProduct.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteDealProduct from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteDealProduct} obj Optional instance to populate. - * @return {module:model/DeleteDealProduct} The populated DeleteDealProduct instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteDealProduct(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteDealProductData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteDealProduct.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteDealProductData} data - */ -DeleteDealProduct.prototype['data'] = undefined; - - - - - - -export default DeleteDealProduct; - diff --git a/src/model/DeleteDealProductData.js b/src/model/DeleteDealProductData.js deleted file mode 100644 index 2ce5f246..00000000 --- a/src/model/DeleteDealProductData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteDealProductData model module. - * @module model/DeleteDealProductData - * @version 1.0.0 - */ -class DeleteDealProductData { - /** - * Constructs a new DeleteDealProductData. - * @alias module:model/DeleteDealProductData - */ - constructor() { - - DeleteDealProductData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteDealProductData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteDealProductData} obj Optional instance to populate. - * @return {module:model/DeleteDealProductData} The populated DeleteDealProductData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteDealProductData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of an attached product that was deleted from the deal - * @member {Number} id - */ -DeleteDealProductData.prototype['id'] = undefined; - - - - - - -export default DeleteDealProductData; - diff --git a/src/model/DeleteFile.js b/src/model/DeleteFile.js deleted file mode 100644 index c0b370d1..00000000 --- a/src/model/DeleteFile.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteFileData from './DeleteFileData'; - -/** - * The DeleteFile model module. - * @module model/DeleteFile - * @version 1.0.0 - */ -class DeleteFile { - /** - * Constructs a new DeleteFile. - * @alias module:model/DeleteFile - */ - constructor() { - - DeleteFile.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteFile from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteFile} obj Optional instance to populate. - * @return {module:model/DeleteFile} The populated DeleteFile instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteFile(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteFileData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteFile.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteFileData} data - */ -DeleteFile.prototype['data'] = undefined; - - - - - - -export default DeleteFile; - diff --git a/src/model/DeleteFileData.js b/src/model/DeleteFileData.js deleted file mode 100644 index e2c47530..00000000 --- a/src/model/DeleteFileData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteFileData model module. - * @module model/DeleteFileData - * @version 1.0.0 - */ -class DeleteFileData { - /** - * Constructs a new DeleteFileData. - * @alias module:model/DeleteFileData - */ - constructor() { - - DeleteFileData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteFileData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteFileData} obj Optional instance to populate. - * @return {module:model/DeleteFileData} The populated DeleteFileData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteFileData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the file - * @member {Number} id - */ -DeleteFileData.prototype['id'] = undefined; - - - - - - -export default DeleteFileData; - diff --git a/src/model/DeleteGoalResponse.js b/src/model/DeleteGoalResponse.js deleted file mode 100644 index 4914e6ef..00000000 --- a/src/model/DeleteGoalResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteGoalResponse model module. - * @module model/DeleteGoalResponse - * @version 1.0.0 - */ -class DeleteGoalResponse { - /** - * Constructs a new DeleteGoalResponse. - * @alias module:model/DeleteGoalResponse - */ - constructor() { - - DeleteGoalResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteGoalResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteGoalResponse} obj Optional instance to populate. - * @return {module:model/DeleteGoalResponse} The populated DeleteGoalResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteGoalResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteGoalResponse.prototype['success'] = undefined; - - - - - - -export default DeleteGoalResponse; - diff --git a/src/model/DeleteGoalResponse200.js b/src/model/DeleteGoalResponse200.js deleted file mode 100644 index 1cd80775..00000000 --- a/src/model/DeleteGoalResponse200.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteGoalResponse200 model module. - * @module model/DeleteGoalResponse200 - * @version 1.0.0 - */ -class DeleteGoalResponse200 { - /** - * Constructs a new DeleteGoalResponse200. - * @alias module:model/DeleteGoalResponse200 - */ - constructor() { - - DeleteGoalResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteGoalResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteGoalResponse200} obj Optional instance to populate. - * @return {module:model/DeleteGoalResponse200} The populated DeleteGoalResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteGoalResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteGoalResponse200.prototype['success'] = undefined; - - - - - - -export default DeleteGoalResponse200; - diff --git a/src/model/DeleteLeadIdResponse.js b/src/model/DeleteLeadIdResponse.js deleted file mode 100644 index a9ab81ee..00000000 --- a/src/model/DeleteLeadIdResponse.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetLeadIdResponseData from './GetLeadIdResponseData'; - -/** - * The DeleteLeadIdResponse model module. - * @module model/DeleteLeadIdResponse - * @version 1.0.0 - */ -class DeleteLeadIdResponse { - /** - * Constructs a new DeleteLeadIdResponse. - * @alias module:model/DeleteLeadIdResponse - */ - constructor() { - - DeleteLeadIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteLeadIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteLeadIdResponse} obj Optional instance to populate. - * @return {module:model/DeleteLeadIdResponse} The populated DeleteLeadIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteLeadIdResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = GetLeadIdResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -DeleteLeadIdResponse.prototype['success'] = undefined; - -/** - * @member {module:model/GetLeadIdResponseData} data - */ -DeleteLeadIdResponse.prototype['data'] = undefined; - - - - - - -export default DeleteLeadIdResponse; - diff --git a/src/model/DeleteMultipleDeals.js b/src/model/DeleteMultipleDeals.js deleted file mode 100644 index 1096f2b2..00000000 --- a/src/model/DeleteMultipleDeals.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteMultipleDealsData from './DeleteMultipleDealsData'; - -/** - * The DeleteMultipleDeals model module. - * @module model/DeleteMultipleDeals - * @version 1.0.0 - */ -class DeleteMultipleDeals { - /** - * Constructs a new DeleteMultipleDeals. - * @alias module:model/DeleteMultipleDeals - */ - constructor() { - - DeleteMultipleDeals.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteMultipleDeals from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteMultipleDeals} obj Optional instance to populate. - * @return {module:model/DeleteMultipleDeals} The populated DeleteMultipleDeals instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteMultipleDeals(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteMultipleDealsData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DeleteMultipleDeals.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteMultipleDealsData} data - */ -DeleteMultipleDeals.prototype['data'] = undefined; - - - - - - -export default DeleteMultipleDeals; - diff --git a/src/model/DeleteMultipleDealsData.js b/src/model/DeleteMultipleDealsData.js deleted file mode 100644 index bae52c5e..00000000 --- a/src/model/DeleteMultipleDealsData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteMultipleDealsData model module. - * @module model/DeleteMultipleDealsData - * @version 1.0.0 - */ -class DeleteMultipleDealsData { - /** - * Constructs a new DeleteMultipleDealsData. - * @alias module:model/DeleteMultipleDealsData - */ - constructor() { - - DeleteMultipleDealsData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteMultipleDealsData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteMultipleDealsData} obj Optional instance to populate. - * @return {module:model/DeleteMultipleDealsData} The populated DeleteMultipleDealsData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteMultipleDealsData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of deleted deals IDs - * @member {Array.} id - */ -DeleteMultipleDealsData.prototype['id'] = undefined; - - - - - - -export default DeleteMultipleDealsData; - diff --git a/src/model/DeleteMultipleProductFieldsResponse.js b/src/model/DeleteMultipleProductFieldsResponse.js deleted file mode 100644 index 042e2fc7..00000000 --- a/src/model/DeleteMultipleProductFieldsResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteMultipleProductFieldsResponseData from './DeleteMultipleProductFieldsResponseData'; - -/** - * The DeleteMultipleProductFieldsResponse model module. - * @module model/DeleteMultipleProductFieldsResponse - * @version 1.0.0 - */ -class DeleteMultipleProductFieldsResponse { - /** - * Constructs a new DeleteMultipleProductFieldsResponse. - * @alias module:model/DeleteMultipleProductFieldsResponse - */ - constructor() { - - DeleteMultipleProductFieldsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteMultipleProductFieldsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteMultipleProductFieldsResponse} obj Optional instance to populate. - * @return {module:model/DeleteMultipleProductFieldsResponse} The populated DeleteMultipleProductFieldsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteMultipleProductFieldsResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteMultipleProductFieldsResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DeleteMultipleProductFieldsResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteMultipleProductFieldsResponseData} data - */ -DeleteMultipleProductFieldsResponse.prototype['data'] = undefined; - - - - - - -export default DeleteMultipleProductFieldsResponse; - diff --git a/src/model/DeleteMultipleProductFieldsResponseData.js b/src/model/DeleteMultipleProductFieldsResponseData.js deleted file mode 100644 index ce5d0d2a..00000000 --- a/src/model/DeleteMultipleProductFieldsResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteMultipleProductFieldsResponseData model module. - * @module model/DeleteMultipleProductFieldsResponseData - * @version 1.0.0 - */ -class DeleteMultipleProductFieldsResponseData { - /** - * Constructs a new DeleteMultipleProductFieldsResponseData. - * @alias module:model/DeleteMultipleProductFieldsResponseData - */ - constructor() { - - DeleteMultipleProductFieldsResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteMultipleProductFieldsResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteMultipleProductFieldsResponseData} obj Optional instance to populate. - * @return {module:model/DeleteMultipleProductFieldsResponseData} The populated DeleteMultipleProductFieldsResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteMultipleProductFieldsResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Array of all the IDs of the deleted product fields - * @member {Array.} id - */ -DeleteMultipleProductFieldsResponseData.prototype['id'] = undefined; - - - - - - -export default DeleteMultipleProductFieldsResponseData; - diff --git a/src/model/DeleteNote.js b/src/model/DeleteNote.js deleted file mode 100644 index 8cc37d5a..00000000 --- a/src/model/DeleteNote.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteNote model module. - * @module model/DeleteNote - * @version 1.0.0 - */ -class DeleteNote { - /** - * Constructs a new DeleteNote. - * @alias module:model/DeleteNote - */ - constructor() { - - DeleteNote.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteNote from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteNote} obj Optional instance to populate. - * @return {module:model/DeleteNote} The populated DeleteNote instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteNote(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'Boolean'); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteNote.prototype['success'] = undefined; - -/** - * If the response is successful or not - * @member {Boolean} data - */ -DeleteNote.prototype['data'] = undefined; - - - - - - -export default DeleteNote; - diff --git a/src/model/DeletePersonResponse.js b/src/model/DeletePersonResponse.js deleted file mode 100644 index 4c1f51fc..00000000 --- a/src/model/DeletePersonResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import DeletePersonResponseAllOf from './DeletePersonResponseAllOf'; -import DeletePersonResponseAllOfData from './DeletePersonResponseAllOfData'; - -/** - * The DeletePersonResponse model module. - * @module model/DeletePersonResponse - * @version 1.0.0 - */ -class DeletePersonResponse { - /** - * Constructs a new DeletePersonResponse. - * @alias module:model/DeletePersonResponse - * @implements module:model/BaseResponse - * @implements module:model/DeletePersonResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);DeletePersonResponseAllOf.initialize(this); - DeletePersonResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeletePersonResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletePersonResponse} obj Optional instance to populate. - * @return {module:model/DeletePersonResponse} The populated DeletePersonResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeletePersonResponse(); - BaseResponse.constructFromObject(data, obj); - DeletePersonResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeletePersonResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DeletePersonResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeletePersonResponseAllOfData} data - */ -DeletePersonResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement DeletePersonResponseAllOf interface: -/** - * @member {module:model/DeletePersonResponseAllOfData} data - */ -DeletePersonResponseAllOf.prototype['data'] = undefined; - - - - -export default DeletePersonResponse; - diff --git a/src/model/DeletePersonResponseAllOf.js b/src/model/DeletePersonResponseAllOf.js deleted file mode 100644 index 288bb12f..00000000 --- a/src/model/DeletePersonResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeletePersonResponseAllOfData from './DeletePersonResponseAllOfData'; - -/** - * The DeletePersonResponseAllOf model module. - * @module model/DeletePersonResponseAllOf - * @version 1.0.0 - */ -class DeletePersonResponseAllOf { - /** - * Constructs a new DeletePersonResponseAllOf. - * @alias module:model/DeletePersonResponseAllOf - */ - constructor() { - - DeletePersonResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeletePersonResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletePersonResponseAllOf} obj Optional instance to populate. - * @return {module:model/DeletePersonResponseAllOf} The populated DeletePersonResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeletePersonResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = DeletePersonResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DeletePersonResponseAllOfData} data - */ -DeletePersonResponseAllOf.prototype['data'] = undefined; - - - - - - -export default DeletePersonResponseAllOf; - diff --git a/src/model/DeletePersonResponseAllOfData.js b/src/model/DeletePersonResponseAllOfData.js deleted file mode 100644 index cccf2fa8..00000000 --- a/src/model/DeletePersonResponseAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeletePersonResponseAllOfData model module. - * @module model/DeletePersonResponseAllOfData - * @version 1.0.0 - */ -class DeletePersonResponseAllOfData { - /** - * Constructs a new DeletePersonResponseAllOfData. - * @alias module:model/DeletePersonResponseAllOfData - */ - constructor() { - - DeletePersonResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeletePersonResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletePersonResponseAllOfData} obj Optional instance to populate. - * @return {module:model/DeletePersonResponseAllOfData} The populated DeletePersonResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeletePersonResponseAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deleted person - * @member {Number} id - */ -DeletePersonResponseAllOfData.prototype['id'] = undefined; - - - - - - -export default DeletePersonResponseAllOfData; - diff --git a/src/model/DeletePersonsInBulkResponse.js b/src/model/DeletePersonsInBulkResponse.js deleted file mode 100644 index e4960c4b..00000000 --- a/src/model/DeletePersonsInBulkResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import DeletePersonsInBulkResponseAllOf from './DeletePersonsInBulkResponseAllOf'; -import DeletePersonsInBulkResponseAllOfData from './DeletePersonsInBulkResponseAllOfData'; - -/** - * The DeletePersonsInBulkResponse model module. - * @module model/DeletePersonsInBulkResponse - * @version 1.0.0 - */ -class DeletePersonsInBulkResponse { - /** - * Constructs a new DeletePersonsInBulkResponse. - * @alias module:model/DeletePersonsInBulkResponse - * @implements module:model/BaseResponse - * @implements module:model/DeletePersonsInBulkResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);DeletePersonsInBulkResponseAllOf.initialize(this); - DeletePersonsInBulkResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeletePersonsInBulkResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletePersonsInBulkResponse} obj Optional instance to populate. - * @return {module:model/DeletePersonsInBulkResponse} The populated DeletePersonsInBulkResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeletePersonsInBulkResponse(); - BaseResponse.constructFromObject(data, obj); - DeletePersonsInBulkResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeletePersonsInBulkResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DeletePersonsInBulkResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeletePersonsInBulkResponseAllOfData} data - */ -DeletePersonsInBulkResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement DeletePersonsInBulkResponseAllOf interface: -/** - * @member {module:model/DeletePersonsInBulkResponseAllOfData} data - */ -DeletePersonsInBulkResponseAllOf.prototype['data'] = undefined; - - - - -export default DeletePersonsInBulkResponse; - diff --git a/src/model/DeletePersonsInBulkResponseAllOf.js b/src/model/DeletePersonsInBulkResponseAllOf.js deleted file mode 100644 index a992e5c8..00000000 --- a/src/model/DeletePersonsInBulkResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeletePersonsInBulkResponseAllOfData from './DeletePersonsInBulkResponseAllOfData'; - -/** - * The DeletePersonsInBulkResponseAllOf model module. - * @module model/DeletePersonsInBulkResponseAllOf - * @version 1.0.0 - */ -class DeletePersonsInBulkResponseAllOf { - /** - * Constructs a new DeletePersonsInBulkResponseAllOf. - * @alias module:model/DeletePersonsInBulkResponseAllOf - */ - constructor() { - - DeletePersonsInBulkResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeletePersonsInBulkResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletePersonsInBulkResponseAllOf} obj Optional instance to populate. - * @return {module:model/DeletePersonsInBulkResponseAllOf} The populated DeletePersonsInBulkResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeletePersonsInBulkResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = DeletePersonsInBulkResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DeletePersonsInBulkResponseAllOfData} data - */ -DeletePersonsInBulkResponseAllOf.prototype['data'] = undefined; - - - - - - -export default DeletePersonsInBulkResponseAllOf; - diff --git a/src/model/DeletePersonsInBulkResponseAllOfData.js b/src/model/DeletePersonsInBulkResponseAllOfData.js deleted file mode 100644 index 94e2de6f..00000000 --- a/src/model/DeletePersonsInBulkResponseAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeletePersonsInBulkResponseAllOfData model module. - * @module model/DeletePersonsInBulkResponseAllOfData - * @version 1.0.0 - */ -class DeletePersonsInBulkResponseAllOfData { - /** - * Constructs a new DeletePersonsInBulkResponseAllOfData. - * @alias module:model/DeletePersonsInBulkResponseAllOfData - */ - constructor() { - - DeletePersonsInBulkResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeletePersonsInBulkResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletePersonsInBulkResponseAllOfData} obj Optional instance to populate. - * @return {module:model/DeletePersonsInBulkResponseAllOfData} The populated DeletePersonsInBulkResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeletePersonsInBulkResponseAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of deleted persons IDs - * @member {Array.} id - */ -DeletePersonsInBulkResponseAllOfData.prototype['id'] = undefined; - - - - - - -export default DeletePersonsInBulkResponseAllOfData; - diff --git a/src/model/DeletePipelineResponse.js b/src/model/DeletePipelineResponse.js deleted file mode 100644 index ce34ab97..00000000 --- a/src/model/DeletePipelineResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeletePipelineResponseData from './DeletePipelineResponseData'; - -/** - * The DeletePipelineResponse model module. - * @module model/DeletePipelineResponse - * @version 1.0.0 - */ -class DeletePipelineResponse { - /** - * Constructs a new DeletePipelineResponse. - * @alias module:model/DeletePipelineResponse - */ - constructor() { - - DeletePipelineResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeletePipelineResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletePipelineResponse} obj Optional instance to populate. - * @return {module:model/DeletePipelineResponse} The populated DeletePipelineResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeletePipelineResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeletePipelineResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeletePipelineResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeletePipelineResponseData} data - */ -DeletePipelineResponse.prototype['data'] = undefined; - - - - - - -export default DeletePipelineResponse; - diff --git a/src/model/DeletePipelineResponse200.js b/src/model/DeletePipelineResponse200.js deleted file mode 100644 index 7c7a92b8..00000000 --- a/src/model/DeletePipelineResponse200.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeletePipelineResponse200Data from './DeletePipelineResponse200Data'; - -/** - * The DeletePipelineResponse200 model module. - * @module model/DeletePipelineResponse200 - * @version 1.0.0 - */ -class DeletePipelineResponse200 { - /** - * Constructs a new DeletePipelineResponse200. - * @alias module:model/DeletePipelineResponse200 - */ - constructor() { - - DeletePipelineResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeletePipelineResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletePipelineResponse200} obj Optional instance to populate. - * @return {module:model/DeletePipelineResponse200} The populated DeletePipelineResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeletePipelineResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeletePipelineResponse200Data.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeletePipelineResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/DeletePipelineResponse200Data} data - */ -DeletePipelineResponse200.prototype['data'] = undefined; - - - - - - -export default DeletePipelineResponse200; - diff --git a/src/model/DeletePipelineResponse200Data.js b/src/model/DeletePipelineResponse200Data.js deleted file mode 100644 index 900a7244..00000000 --- a/src/model/DeletePipelineResponse200Data.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeletePipelineResponse200Data model module. - * @module model/DeletePipelineResponse200Data - * @version 1.0.0 - */ -class DeletePipelineResponse200Data { - /** - * Constructs a new DeletePipelineResponse200Data. - * @alias module:model/DeletePipelineResponse200Data - */ - constructor() { - - DeletePipelineResponse200Data.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeletePipelineResponse200Data from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletePipelineResponse200Data} obj Optional instance to populate. - * @return {module:model/DeletePipelineResponse200Data} The populated DeletePipelineResponse200Data instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeletePipelineResponse200Data(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Deleted Pipeline ID - * @member {Number} id - */ -DeletePipelineResponse200Data.prototype['id'] = undefined; - - - - - - -export default DeletePipelineResponse200Data; - diff --git a/src/model/DeletePipelineResponseData.js b/src/model/DeletePipelineResponseData.js deleted file mode 100644 index d18bdf7b..00000000 --- a/src/model/DeletePipelineResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeletePipelineResponseData model module. - * @module model/DeletePipelineResponseData - * @version 1.0.0 - */ -class DeletePipelineResponseData { - /** - * Constructs a new DeletePipelineResponseData. - * @alias module:model/DeletePipelineResponseData - */ - constructor() { - - DeletePipelineResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeletePipelineResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeletePipelineResponseData} obj Optional instance to populate. - * @return {module:model/DeletePipelineResponseData} The populated DeletePipelineResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeletePipelineResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Deleted Pipeline ID - * @member {Number} id - */ -DeletePipelineResponseData.prototype['id'] = undefined; - - - - - - -export default DeletePipelineResponseData; - diff --git a/src/model/DeleteProductFieldResponse.js b/src/model/DeleteProductFieldResponse.js deleted file mode 100644 index a16874aa..00000000 --- a/src/model/DeleteProductFieldResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteProductFieldResponseData from './DeleteProductFieldResponseData'; - -/** - * The DeleteProductFieldResponse model module. - * @module model/DeleteProductFieldResponse - * @version 1.0.0 - */ -class DeleteProductFieldResponse { - /** - * Constructs a new DeleteProductFieldResponse. - * @alias module:model/DeleteProductFieldResponse - */ - constructor() { - - DeleteProductFieldResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteProductFieldResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteProductFieldResponse} obj Optional instance to populate. - * @return {module:model/DeleteProductFieldResponse} The populated DeleteProductFieldResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteProductFieldResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteProductFieldResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DeleteProductFieldResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteProductFieldResponseData} data - */ -DeleteProductFieldResponse.prototype['data'] = undefined; - - - - - - -export default DeleteProductFieldResponse; - diff --git a/src/model/DeleteProductFieldResponseData.js b/src/model/DeleteProductFieldResponseData.js deleted file mode 100644 index 7d6770a1..00000000 --- a/src/model/DeleteProductFieldResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteProductFieldResponseData model module. - * @module model/DeleteProductFieldResponseData - * @version 1.0.0 - */ -class DeleteProductFieldResponseData { - /** - * Constructs a new DeleteProductFieldResponseData. - * @alias module:model/DeleteProductFieldResponseData - */ - constructor() { - - DeleteProductFieldResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteProductFieldResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteProductFieldResponseData} obj Optional instance to populate. - * @return {module:model/DeleteProductFieldResponseData} The populated DeleteProductFieldResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteProductFieldResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deleted product field - * @member {Number} id - */ -DeleteProductFieldResponseData.prototype['id'] = undefined; - - - - - - -export default DeleteProductFieldResponseData; - diff --git a/src/model/DeleteProductFollowerResponse.js b/src/model/DeleteProductFollowerResponse.js deleted file mode 100644 index b569e6db..00000000 --- a/src/model/DeleteProductFollowerResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteProductFollowerResponseData from './DeleteProductFollowerResponseData'; - -/** - * The DeleteProductFollowerResponse model module. - * @module model/DeleteProductFollowerResponse - * @version 1.0.0 - */ -class DeleteProductFollowerResponse { - /** - * Constructs a new DeleteProductFollowerResponse. - * @alias module:model/DeleteProductFollowerResponse - */ - constructor() { - - DeleteProductFollowerResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteProductFollowerResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteProductFollowerResponse} obj Optional instance to populate. - * @return {module:model/DeleteProductFollowerResponse} The populated DeleteProductFollowerResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteProductFollowerResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteProductFollowerResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DeleteProductFollowerResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteProductFollowerResponseData} data - */ -DeleteProductFollowerResponse.prototype['data'] = undefined; - - - - - - -export default DeleteProductFollowerResponse; - diff --git a/src/model/DeleteProductFollowerResponseData.js b/src/model/DeleteProductFollowerResponseData.js deleted file mode 100644 index e866976b..00000000 --- a/src/model/DeleteProductFollowerResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteProductFollowerResponseData model module. - * @module model/DeleteProductFollowerResponseData - * @version 1.0.0 - */ -class DeleteProductFollowerResponseData { - /** - * Constructs a new DeleteProductFollowerResponseData. - * @alias module:model/DeleteProductFollowerResponseData - */ - constructor() { - - DeleteProductFollowerResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteProductFollowerResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteProductFollowerResponseData} obj Optional instance to populate. - * @return {module:model/DeleteProductFollowerResponseData} The populated DeleteProductFollowerResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteProductFollowerResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the removed follower - * @member {Number} id - */ -DeleteProductFollowerResponseData.prototype['id'] = undefined; - - - - - - -export default DeleteProductFollowerResponseData; - diff --git a/src/model/DeleteProductResponse.js b/src/model/DeleteProductResponse.js deleted file mode 100644 index 2b78f381..00000000 --- a/src/model/DeleteProductResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteProductResponseData from './DeleteProductResponseData'; - -/** - * The DeleteProductResponse model module. - * @module model/DeleteProductResponse - * @version 1.0.0 - */ -class DeleteProductResponse { - /** - * Constructs a new DeleteProductResponse. - * @alias module:model/DeleteProductResponse - */ - constructor() { - - DeleteProductResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteProductResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteProductResponse} obj Optional instance to populate. - * @return {module:model/DeleteProductResponse} The populated DeleteProductResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteProductResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteProductResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DeleteProductResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteProductResponseData} data - */ -DeleteProductResponse.prototype['data'] = undefined; - - - - - - -export default DeleteProductResponse; - diff --git a/src/model/DeleteProductResponseData.js b/src/model/DeleteProductResponseData.js deleted file mode 100644 index 400ecfad..00000000 --- a/src/model/DeleteProductResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteProductResponseData model module. - * @module model/DeleteProductResponseData - * @version 1.0.0 - */ -class DeleteProductResponseData { - /** - * Constructs a new DeleteProductResponseData. - * @alias module:model/DeleteProductResponseData - */ - constructor() { - - DeleteProductResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteProductResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteProductResponseData} obj Optional instance to populate. - * @return {module:model/DeleteProductResponseData} The populated DeleteProductResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteProductResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the removed product - * @member {Number} id - */ -DeleteProductResponseData.prototype['id'] = undefined; - - - - - - -export default DeleteProductResponseData; - diff --git a/src/model/DeleteProject.js b/src/model/DeleteProject.js deleted file mode 100644 index 86abdbcc..00000000 --- a/src/model/DeleteProject.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteProjectData from './DeleteProjectData'; - -/** - * The DeleteProject model module. - * @module model/DeleteProject - * @version 1.0.0 - */ -class DeleteProject { - /** - * Constructs a new DeleteProject. - * @alias module:model/DeleteProject - */ - constructor() { - - DeleteProject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteProject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteProject} obj Optional instance to populate. - * @return {module:model/DeleteProject} The populated DeleteProject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteProject(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteProjectData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteProject.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteProjectData} data - */ -DeleteProject.prototype['data'] = undefined; - - - - - - -export default DeleteProject; - diff --git a/src/model/DeleteProjectData.js b/src/model/DeleteProjectData.js deleted file mode 100644 index ad58ee68..00000000 --- a/src/model/DeleteProjectData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteProjectData model module. - * @module model/DeleteProjectData - * @version 1.0.0 - */ -class DeleteProjectData { - /** - * Constructs a new DeleteProjectData. - * @alias module:model/DeleteProjectData - */ - constructor() { - - DeleteProjectData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteProjectData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteProjectData} obj Optional instance to populate. - * @return {module:model/DeleteProjectData} The populated DeleteProjectData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteProjectData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the project that was deleted - * @member {Number} id - */ -DeleteProjectData.prototype['id'] = undefined; - - - - - - -export default DeleteProjectData; - diff --git a/src/model/DeleteProjectResponse.js b/src/model/DeleteProjectResponse.js deleted file mode 100644 index 6a045da3..00000000 --- a/src/model/DeleteProjectResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteProject from './DeleteProject'; - -/** - * The DeleteProjectResponse model module. - * @module model/DeleteProjectResponse - * @version 1.0.0 - */ -class DeleteProjectResponse { - /** - * Constructs a new DeleteProjectResponse. - * @alias module:model/DeleteProjectResponse - */ - constructor() { - - DeleteProjectResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteProjectResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteProjectResponse} obj Optional instance to populate. - * @return {module:model/DeleteProjectResponse} The populated DeleteProjectResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteProjectResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteProject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -DeleteProjectResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteProject} data - */ -DeleteProjectResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -DeleteProjectResponse.prototype['additional_data'] = undefined; - - - - - - -export default DeleteProjectResponse; - diff --git a/src/model/DeleteProjectResponse200.js b/src/model/DeleteProjectResponse200.js deleted file mode 100644 index aaaf76d0..00000000 --- a/src/model/DeleteProjectResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteProject from './DeleteProject'; - -/** - * The DeleteProjectResponse200 model module. - * @module model/DeleteProjectResponse200 - * @version 1.0.0 - */ -class DeleteProjectResponse200 { - /** - * Constructs a new DeleteProjectResponse200. - * @alias module:model/DeleteProjectResponse200 - */ - constructor() { - - DeleteProjectResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteProjectResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteProjectResponse200} obj Optional instance to populate. - * @return {module:model/DeleteProjectResponse200} The populated DeleteProjectResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteProjectResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteProject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -DeleteProjectResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteProject} data - */ -DeleteProjectResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -DeleteProjectResponse200.prototype['additional_data'] = undefined; - - - - - - -export default DeleteProjectResponse200; - diff --git a/src/model/DeleteResponse.js b/src/model/DeleteResponse.js deleted file mode 100644 index 3f647672..00000000 --- a/src/model/DeleteResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import DeleteResponseAllOf from './DeleteResponseAllOf'; -import DeleteResponseAllOfData from './DeleteResponseAllOfData'; - -/** - * The DeleteResponse model module. - * @module model/DeleteResponse - * @version 1.0.0 - */ -class DeleteResponse { - /** - * Constructs a new DeleteResponse. - * @alias module:model/DeleteResponse - * @implements module:model/BaseResponse - * @implements module:model/DeleteResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);DeleteResponseAllOf.initialize(this); - DeleteResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteResponse} obj Optional instance to populate. - * @return {module:model/DeleteResponse} The populated DeleteResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteResponse(); - BaseResponse.constructFromObject(data, obj); - DeleteResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DeleteResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteResponseAllOfData} data - */ -DeleteResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement DeleteResponseAllOf interface: -/** - * @member {module:model/DeleteResponseAllOfData} data - */ -DeleteResponseAllOf.prototype['data'] = undefined; - - - - -export default DeleteResponse; - diff --git a/src/model/DeleteResponseAllOf.js b/src/model/DeleteResponseAllOf.js deleted file mode 100644 index a3263459..00000000 --- a/src/model/DeleteResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteResponseAllOfData from './DeleteResponseAllOfData'; - -/** - * The DeleteResponseAllOf model module. - * @module model/DeleteResponseAllOf - * @version 1.0.0 - */ -class DeleteResponseAllOf { - /** - * Constructs a new DeleteResponseAllOf. - * @alias module:model/DeleteResponseAllOf - */ - constructor() { - - DeleteResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteResponseAllOf} obj Optional instance to populate. - * @return {module:model/DeleteResponseAllOf} The populated DeleteResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DeleteResponseAllOfData} data - */ -DeleteResponseAllOf.prototype['data'] = undefined; - - - - - - -export default DeleteResponseAllOf; - diff --git a/src/model/DeleteResponseAllOfData.js b/src/model/DeleteResponseAllOfData.js deleted file mode 100644 index a17fb2bc..00000000 --- a/src/model/DeleteResponseAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteResponseAllOfData model module. - * @module model/DeleteResponseAllOfData - * @version 1.0.0 - */ -class DeleteResponseAllOfData { - /** - * Constructs a new DeleteResponseAllOfData. - * @alias module:model/DeleteResponseAllOfData - */ - constructor() { - - DeleteResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteResponseAllOfData} obj Optional instance to populate. - * @return {module:model/DeleteResponseAllOfData} The populated DeleteResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteResponseAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the field that was deleted - * @member {Number} id - */ -DeleteResponseAllOfData.prototype['id'] = undefined; - - - - - - -export default DeleteResponseAllOfData; - diff --git a/src/model/DeleteRole.js b/src/model/DeleteRole.js deleted file mode 100644 index de6e1ae1..00000000 --- a/src/model/DeleteRole.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import DeleteRoleAllOf from './DeleteRoleAllOf'; -import DeleteRoleAllOfData from './DeleteRoleAllOfData'; - -/** - * The DeleteRole model module. - * @module model/DeleteRole - * @version 1.0.0 - */ -class DeleteRole { - /** - * Constructs a new DeleteRole. - * @alias module:model/DeleteRole - * @implements module:model/BaseResponse - * @implements module:model/DeleteRoleAllOf - */ - constructor() { - BaseResponse.initialize(this);DeleteRoleAllOf.initialize(this); - DeleteRole.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRole} obj Optional instance to populate. - * @return {module:model/DeleteRole} The populated DeleteRole instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRole(); - BaseResponse.constructFromObject(data, obj); - DeleteRoleAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteRoleAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DeleteRole.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteRoleAllOfData} data - */ -DeleteRole.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement DeleteRoleAllOf interface: -/** - * @member {module:model/DeleteRoleAllOfData} data - */ -DeleteRoleAllOf.prototype['data'] = undefined; - - - - -export default DeleteRole; - diff --git a/src/model/DeleteRoleAllOf.js b/src/model/DeleteRoleAllOf.js deleted file mode 100644 index d498ea86..00000000 --- a/src/model/DeleteRoleAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteRoleAllOfData from './DeleteRoleAllOfData'; - -/** - * The DeleteRoleAllOf model module. - * @module model/DeleteRoleAllOf - * @version 1.0.0 - */ -class DeleteRoleAllOf { - /** - * Constructs a new DeleteRoleAllOf. - * @alias module:model/DeleteRoleAllOf - */ - constructor() { - - DeleteRoleAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteRoleAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleAllOf} obj Optional instance to populate. - * @return {module:model/DeleteRoleAllOf} The populated DeleteRoleAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRoleAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteRoleAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DeleteRoleAllOfData} data - */ -DeleteRoleAllOf.prototype['data'] = undefined; - - - - - - -export default DeleteRoleAllOf; - diff --git a/src/model/DeleteRoleAllOfData.js b/src/model/DeleteRoleAllOfData.js deleted file mode 100644 index 788571f9..00000000 --- a/src/model/DeleteRoleAllOfData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteRoleAllOfData model module. - * @module model/DeleteRoleAllOfData - * @version 1.0.0 - */ -class DeleteRoleAllOfData { - /** - * Constructs a new DeleteRoleAllOfData. - * The response data - * @alias module:model/DeleteRoleAllOfData - */ - constructor() { - - DeleteRoleAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteRoleAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleAllOfData} obj Optional instance to populate. - * @return {module:model/DeleteRoleAllOfData} The populated DeleteRoleAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRoleAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deleted role - * @member {Number} id - */ -DeleteRoleAllOfData.prototype['id'] = undefined; - - - - - - -export default DeleteRoleAllOfData; - diff --git a/src/model/DeleteRoleAssignment.js b/src/model/DeleteRoleAssignment.js deleted file mode 100644 index 377707ea..00000000 --- a/src/model/DeleteRoleAssignment.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import DeleteRoleAssignmentAllOf from './DeleteRoleAssignmentAllOf'; -import DeleteRoleAssignmentAllOfData from './DeleteRoleAssignmentAllOfData'; - -/** - * The DeleteRoleAssignment model module. - * @module model/DeleteRoleAssignment - * @version 1.0.0 - */ -class DeleteRoleAssignment { - /** - * Constructs a new DeleteRoleAssignment. - * @alias module:model/DeleteRoleAssignment - * @implements module:model/BaseResponse - * @implements module:model/DeleteRoleAssignmentAllOf - */ - constructor() { - BaseResponse.initialize(this);DeleteRoleAssignmentAllOf.initialize(this); - DeleteRoleAssignment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteRoleAssignment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleAssignment} obj Optional instance to populate. - * @return {module:model/DeleteRoleAssignment} The populated DeleteRoleAssignment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRoleAssignment(); - BaseResponse.constructFromObject(data, obj); - DeleteRoleAssignmentAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteRoleAssignmentAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -DeleteRoleAssignment.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteRoleAssignmentAllOfData} data - */ -DeleteRoleAssignment.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement DeleteRoleAssignmentAllOf interface: -/** - * @member {module:model/DeleteRoleAssignmentAllOfData} data - */ -DeleteRoleAssignmentAllOf.prototype['data'] = undefined; - - - - -export default DeleteRoleAssignment; - diff --git a/src/model/DeleteRoleAssignmentAllOf.js b/src/model/DeleteRoleAssignmentAllOf.js deleted file mode 100644 index 6567e724..00000000 --- a/src/model/DeleteRoleAssignmentAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteRoleAssignmentAllOfData from './DeleteRoleAssignmentAllOfData'; - -/** - * The DeleteRoleAssignmentAllOf model module. - * @module model/DeleteRoleAssignmentAllOf - * @version 1.0.0 - */ -class DeleteRoleAssignmentAllOf { - /** - * Constructs a new DeleteRoleAssignmentAllOf. - * @alias module:model/DeleteRoleAssignmentAllOf - */ - constructor() { - - DeleteRoleAssignmentAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteRoleAssignmentAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleAssignmentAllOf} obj Optional instance to populate. - * @return {module:model/DeleteRoleAssignmentAllOf} The populated DeleteRoleAssignmentAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRoleAssignmentAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteRoleAssignmentAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DeleteRoleAssignmentAllOfData} data - */ -DeleteRoleAssignmentAllOf.prototype['data'] = undefined; - - - - - - -export default DeleteRoleAssignmentAllOf; - diff --git a/src/model/DeleteRoleAssignmentAllOfData.js b/src/model/DeleteRoleAssignmentAllOfData.js deleted file mode 100644 index 2d24bab3..00000000 --- a/src/model/DeleteRoleAssignmentAllOfData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteRoleAssignmentAllOfData model module. - * @module model/DeleteRoleAssignmentAllOfData - * @version 1.0.0 - */ -class DeleteRoleAssignmentAllOfData { - /** - * Constructs a new DeleteRoleAssignmentAllOfData. - * The response data - * @alias module:model/DeleteRoleAssignmentAllOfData - */ - constructor() { - - DeleteRoleAssignmentAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteRoleAssignmentAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleAssignmentAllOfData} obj Optional instance to populate. - * @return {module:model/DeleteRoleAssignmentAllOfData} The populated DeleteRoleAssignmentAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRoleAssignmentAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the role the user was removed from - * @member {Number} id - */ -DeleteRoleAssignmentAllOfData.prototype['id'] = undefined; - - - - - - -export default DeleteRoleAssignmentAllOfData; - diff --git a/src/model/DeleteRoleAssignmentRequest.js b/src/model/DeleteRoleAssignmentRequest.js deleted file mode 100644 index a5eacf6d..00000000 --- a/src/model/DeleteRoleAssignmentRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteRoleAssignmentRequest model module. - * @module model/DeleteRoleAssignmentRequest - * @version 1.0.0 - */ -class DeleteRoleAssignmentRequest { - /** - * Constructs a new DeleteRoleAssignmentRequest. - * @alias module:model/DeleteRoleAssignmentRequest - * @param userId {Number} The ID of the user - */ - constructor(userId) { - - DeleteRoleAssignmentRequest.initialize(this, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId) { - obj['user_id'] = userId; - } - - /** - * Constructs a DeleteRoleAssignmentRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteRoleAssignmentRequest} obj Optional instance to populate. - * @return {module:model/DeleteRoleAssignmentRequest} The populated DeleteRoleAssignmentRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteRoleAssignmentRequest(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} user_id - */ -DeleteRoleAssignmentRequest.prototype['user_id'] = undefined; - - - - - - -export default DeleteRoleAssignmentRequest; - diff --git a/src/model/DeleteStageResponse.js b/src/model/DeleteStageResponse.js deleted file mode 100644 index 2eb296e1..00000000 --- a/src/model/DeleteStageResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteStageResponseData from './DeleteStageResponseData'; - -/** - * The DeleteStageResponse model module. - * @module model/DeleteStageResponse - * @version 1.0.0 - */ -class DeleteStageResponse { - /** - * Constructs a new DeleteStageResponse. - * @alias module:model/DeleteStageResponse - */ - constructor() { - - DeleteStageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteStageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteStageResponse} obj Optional instance to populate. - * @return {module:model/DeleteStageResponse} The populated DeleteStageResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteStageResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteStageResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteStageResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteStageResponseData} data - */ -DeleteStageResponse.prototype['data'] = undefined; - - - - - - -export default DeleteStageResponse; - diff --git a/src/model/DeleteStageResponse200.js b/src/model/DeleteStageResponse200.js deleted file mode 100644 index 5748e62b..00000000 --- a/src/model/DeleteStageResponse200.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteStageResponse200Data from './DeleteStageResponse200Data'; - -/** - * The DeleteStageResponse200 model module. - * @module model/DeleteStageResponse200 - * @version 1.0.0 - */ -class DeleteStageResponse200 { - /** - * Constructs a new DeleteStageResponse200. - * @alias module:model/DeleteStageResponse200 - */ - constructor() { - - DeleteStageResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteStageResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteStageResponse200} obj Optional instance to populate. - * @return {module:model/DeleteStageResponse200} The populated DeleteStageResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteStageResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteStageResponse200Data.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteStageResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteStageResponse200Data} data - */ -DeleteStageResponse200.prototype['data'] = undefined; - - - - - - -export default DeleteStageResponse200; - diff --git a/src/model/DeleteStageResponse200Data.js b/src/model/DeleteStageResponse200Data.js deleted file mode 100644 index ad23f17b..00000000 --- a/src/model/DeleteStageResponse200Data.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteStageResponse200Data model module. - * @module model/DeleteStageResponse200Data - * @version 1.0.0 - */ -class DeleteStageResponse200Data { - /** - * Constructs a new DeleteStageResponse200Data. - * @alias module:model/DeleteStageResponse200Data - */ - constructor() { - - DeleteStageResponse200Data.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteStageResponse200Data from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteStageResponse200Data} obj Optional instance to populate. - * @return {module:model/DeleteStageResponse200Data} The populated DeleteStageResponse200Data instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteStageResponse200Data(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Deleted stage ID - * @member {Number} id - */ -DeleteStageResponse200Data.prototype['id'] = undefined; - - - - - - -export default DeleteStageResponse200Data; - diff --git a/src/model/DeleteStageResponseData.js b/src/model/DeleteStageResponseData.js deleted file mode 100644 index 181aa18e..00000000 --- a/src/model/DeleteStageResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteStageResponseData model module. - * @module model/DeleteStageResponseData - * @version 1.0.0 - */ -class DeleteStageResponseData { - /** - * Constructs a new DeleteStageResponseData. - * @alias module:model/DeleteStageResponseData - */ - constructor() { - - DeleteStageResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteStageResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteStageResponseData} obj Optional instance to populate. - * @return {module:model/DeleteStageResponseData} The populated DeleteStageResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteStageResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Deleted stage ID - * @member {Number} id - */ -DeleteStageResponseData.prototype['id'] = undefined; - - - - - - -export default DeleteStageResponseData; - diff --git a/src/model/DeleteStagesResponse.js b/src/model/DeleteStagesResponse.js deleted file mode 100644 index 568caff5..00000000 --- a/src/model/DeleteStagesResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteStagesResponseData from './DeleteStagesResponseData'; - -/** - * The DeleteStagesResponse model module. - * @module model/DeleteStagesResponse - * @version 1.0.0 - */ -class DeleteStagesResponse { - /** - * Constructs a new DeleteStagesResponse. - * @alias module:model/DeleteStagesResponse - */ - constructor() { - - DeleteStagesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteStagesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteStagesResponse} obj Optional instance to populate. - * @return {module:model/DeleteStagesResponse} The populated DeleteStagesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteStagesResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteStagesResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteStagesResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteStagesResponseData} data - */ -DeleteStagesResponse.prototype['data'] = undefined; - - - - - - -export default DeleteStagesResponse; - diff --git a/src/model/DeleteStagesResponse200.js b/src/model/DeleteStagesResponse200.js deleted file mode 100644 index bc811ad9..00000000 --- a/src/model/DeleteStagesResponse200.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteStagesResponse200Data from './DeleteStagesResponse200Data'; - -/** - * The DeleteStagesResponse200 model module. - * @module model/DeleteStagesResponse200 - * @version 1.0.0 - */ -class DeleteStagesResponse200 { - /** - * Constructs a new DeleteStagesResponse200. - * @alias module:model/DeleteStagesResponse200 - */ - constructor() { - - DeleteStagesResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteStagesResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteStagesResponse200} obj Optional instance to populate. - * @return {module:model/DeleteStagesResponse200} The populated DeleteStagesResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteStagesResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteStagesResponse200Data.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteStagesResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteStagesResponse200Data} data - */ -DeleteStagesResponse200.prototype['data'] = undefined; - - - - - - -export default DeleteStagesResponse200; - diff --git a/src/model/DeleteStagesResponse200Data.js b/src/model/DeleteStagesResponse200Data.js deleted file mode 100644 index 7839de82..00000000 --- a/src/model/DeleteStagesResponse200Data.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteStagesResponse200Data model module. - * @module model/DeleteStagesResponse200Data - * @version 1.0.0 - */ -class DeleteStagesResponse200Data { - /** - * Constructs a new DeleteStagesResponse200Data. - * @alias module:model/DeleteStagesResponse200Data - */ - constructor() { - - DeleteStagesResponse200Data.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteStagesResponse200Data from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteStagesResponse200Data} obj Optional instance to populate. - * @return {module:model/DeleteStagesResponse200Data} The populated DeleteStagesResponse200Data instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteStagesResponse200Data(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of deleted stage IDs - * @member {Array.} id - */ -DeleteStagesResponse200Data.prototype['id'] = undefined; - - - - - - -export default DeleteStagesResponse200Data; - diff --git a/src/model/DeleteStagesResponseData.js b/src/model/DeleteStagesResponseData.js deleted file mode 100644 index ab9c3a93..00000000 --- a/src/model/DeleteStagesResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteStagesResponseData model module. - * @module model/DeleteStagesResponseData - * @version 1.0.0 - */ -class DeleteStagesResponseData { - /** - * Constructs a new DeleteStagesResponseData. - * @alias module:model/DeleteStagesResponseData - */ - constructor() { - - DeleteStagesResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteStagesResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteStagesResponseData} obj Optional instance to populate. - * @return {module:model/DeleteStagesResponseData} The populated DeleteStagesResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteStagesResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of deleted stage IDs - * @member {Array.} id - */ -DeleteStagesResponseData.prototype['id'] = undefined; - - - - - - -export default DeleteStagesResponseData; - diff --git a/src/model/DeleteTask.js b/src/model/DeleteTask.js deleted file mode 100644 index 32ba1360..00000000 --- a/src/model/DeleteTask.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteTaskData from './DeleteTaskData'; - -/** - * The DeleteTask model module. - * @module model/DeleteTask - * @version 1.0.0 - */ -class DeleteTask { - /** - * Constructs a new DeleteTask. - * @alias module:model/DeleteTask - */ - constructor() { - - DeleteTask.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteTask from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteTask} obj Optional instance to populate. - * @return {module:model/DeleteTask} The populated DeleteTask instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteTask(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteTaskData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -DeleteTask.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteTaskData} data - */ -DeleteTask.prototype['data'] = undefined; - - - - - - -export default DeleteTask; - diff --git a/src/model/DeleteTaskData.js b/src/model/DeleteTaskData.js deleted file mode 100644 index da981303..00000000 --- a/src/model/DeleteTaskData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteTaskData model module. - * @module model/DeleteTaskData - * @version 1.0.0 - */ -class DeleteTaskData { - /** - * Constructs a new DeleteTaskData. - * @alias module:model/DeleteTaskData - */ - constructor() { - - DeleteTaskData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteTaskData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteTaskData} obj Optional instance to populate. - * @return {module:model/DeleteTaskData} The populated DeleteTaskData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteTaskData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the task that was deleted - * @member {Number} id - */ -DeleteTaskData.prototype['id'] = undefined; - - - - - - -export default DeleteTaskData; - diff --git a/src/model/DeleteTaskResponse.js b/src/model/DeleteTaskResponse.js deleted file mode 100644 index dba5adab..00000000 --- a/src/model/DeleteTaskResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteTask from './DeleteTask'; - -/** - * The DeleteTaskResponse model module. - * @module model/DeleteTaskResponse - * @version 1.0.0 - */ -class DeleteTaskResponse { - /** - * Constructs a new DeleteTaskResponse. - * @alias module:model/DeleteTaskResponse - */ - constructor() { - - DeleteTaskResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteTaskResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteTaskResponse} obj Optional instance to populate. - * @return {module:model/DeleteTaskResponse} The populated DeleteTaskResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteTaskResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteTask.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -DeleteTaskResponse.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteTask} data - */ -DeleteTaskResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -DeleteTaskResponse.prototype['additional_data'] = undefined; - - - - - - -export default DeleteTaskResponse; - diff --git a/src/model/DeleteTaskResponse200.js b/src/model/DeleteTaskResponse200.js deleted file mode 100644 index 0e7ac1ae..00000000 --- a/src/model/DeleteTaskResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DeleteTask from './DeleteTask'; - -/** - * The DeleteTaskResponse200 model module. - * @module model/DeleteTaskResponse200 - * @version 1.0.0 - */ -class DeleteTaskResponse200 { - /** - * Constructs a new DeleteTaskResponse200. - * @alias module:model/DeleteTaskResponse200 - */ - constructor() { - - DeleteTaskResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteTaskResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteTaskResponse200} obj Optional instance to populate. - * @return {module:model/DeleteTaskResponse200} The populated DeleteTaskResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteTaskResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DeleteTask.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -DeleteTaskResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/DeleteTask} data - */ -DeleteTaskResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -DeleteTaskResponse200.prototype['additional_data'] = undefined; - - - - - - -export default DeleteTaskResponse200; - diff --git a/src/model/DeleteTeamUserRequest.js b/src/model/DeleteTeamUserRequest.js deleted file mode 100644 index 5d551a84..00000000 --- a/src/model/DeleteTeamUserRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteTeamUserRequest model module. - * @module model/DeleteTeamUserRequest - * @version 1.0.0 - */ -class DeleteTeamUserRequest { - /** - * Constructs a new DeleteTeamUserRequest. - * @alias module:model/DeleteTeamUserRequest - * @param users {Array.} The list of user IDs - */ - constructor(users) { - - DeleteTeamUserRequest.initialize(this, users); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, users) { - obj['users'] = users; - } - - /** - * Constructs a DeleteTeamUserRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteTeamUserRequest} obj Optional instance to populate. - * @return {module:model/DeleteTeamUserRequest} The populated DeleteTeamUserRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteTeamUserRequest(); - - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], ['Number']); - - delete data['users']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of user IDs - * @member {Array.} users - */ -DeleteTeamUserRequest.prototype['users'] = undefined; - - - - - - -export default DeleteTeamUserRequest; - diff --git a/src/model/Duration.js b/src/model/Duration.js deleted file mode 100644 index 6b019c1b..00000000 --- a/src/model/Duration.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Duration model module. - * @module model/Duration - * @version 1.0.0 - */ -class Duration { - /** - * Constructs a new Duration. - * The duration of the goal - * @alias module:model/Duration - */ - constructor() { - - Duration.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Duration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Duration} obj Optional instance to populate. - * @return {module:model/Duration} The populated Duration instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Duration(); - - if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'String'); - - delete data['start']; - } - if (data.hasOwnProperty('end')) { - obj['end'] = ApiClient.convertToType(data['end'], 'String'); - - delete data['end']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The start date of the goal - * @member {String} start - */ -Duration.prototype['start'] = undefined; - -/** - * The end date of the goal - * @member {String} end - */ -Duration.prototype['end'] = undefined; - - - - - - -export default Duration; - diff --git a/src/model/EditPipeline.js b/src/model/EditPipeline.js deleted file mode 100644 index 7caae730..00000000 --- a/src/model/EditPipeline.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePipelineWithSelectedFlag from './BasePipelineWithSelectedFlag'; -import BaseResponse from './BaseResponse'; -import EditPipelineAllOf from './EditPipelineAllOf'; - -/** - * The EditPipeline model module. - * @module model/EditPipeline - * @version 1.0.0 - */ -class EditPipeline { - /** - * Constructs a new EditPipeline. - * @alias module:model/EditPipeline - * @implements module:model/BaseResponse - * @implements module:model/EditPipelineAllOf - */ - constructor() { - BaseResponse.initialize(this);EditPipelineAllOf.initialize(this); - EditPipeline.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a EditPipeline from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EditPipeline} obj Optional instance to populate. - * @return {module:model/EditPipeline} The populated EditPipeline instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new EditPipeline(); - BaseResponse.constructFromObject(data, obj); - EditPipelineAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], BasePipelineWithSelectedFlag); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -EditPipeline.prototype['success'] = undefined; - -/** - * The pipeline object - * @member {module:model/BasePipelineWithSelectedFlag} data - */ -EditPipeline.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement EditPipelineAllOf interface: -/** - * The pipeline object - * @member {module:model/BasePipelineWithSelectedFlag} data - */ -EditPipelineAllOf.prototype['data'] = undefined; - - - - -export default EditPipeline; - diff --git a/src/model/EditPipelineAllOf.js b/src/model/EditPipelineAllOf.js deleted file mode 100644 index b05c45a4..00000000 --- a/src/model/EditPipelineAllOf.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePipelineWithSelectedFlag from './BasePipelineWithSelectedFlag'; - -/** - * The EditPipelineAllOf model module. - * @module model/EditPipelineAllOf - * @version 1.0.0 - */ -class EditPipelineAllOf { - /** - * Constructs a new EditPipelineAllOf. - * @alias module:model/EditPipelineAllOf - */ - constructor() { - - EditPipelineAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a EditPipelineAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EditPipelineAllOf} obj Optional instance to populate. - * @return {module:model/EditPipelineAllOf} The populated EditPipelineAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new EditPipelineAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], BasePipelineWithSelectedFlag); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The pipeline object - * @member {module:model/BasePipelineWithSelectedFlag} data - */ -EditPipelineAllOf.prototype['data'] = undefined; - - - - - - -export default EditPipelineAllOf; - diff --git a/src/model/EmailInfo.js b/src/model/EmailInfo.js deleted file mode 100644 index 89b30acf..00000000 --- a/src/model/EmailInfo.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The EmailInfo model module. - * @module model/EmailInfo - * @version 1.0.0 - */ -class EmailInfo { - /** - * Constructs a new EmailInfo. - * @alias module:model/EmailInfo - */ - constructor() { - - EmailInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a EmailInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EmailInfo} obj Optional instance to populate. - * @return {module:model/EmailInfo} The populated EmailInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new EmailInfo(); - - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -EmailInfo.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -EmailInfo.prototype['last_outgoing_mail_time'] = undefined; - - - - - - -export default EmailInfo; - diff --git a/src/model/ExpectedOutcome.js b/src/model/ExpectedOutcome.js deleted file mode 100644 index 30190477..00000000 --- a/src/model/ExpectedOutcome.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ExpectedOutcome model module. - * @module model/ExpectedOutcome - * @version 1.0.0 - */ -class ExpectedOutcome { - /** - * Constructs a new ExpectedOutcome. - * The expected outcome of the goal - * @alias module:model/ExpectedOutcome - */ - constructor() { - - ExpectedOutcome.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ExpectedOutcome from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ExpectedOutcome} obj Optional instance to populate. - * @return {module:model/ExpectedOutcome} The populated ExpectedOutcome instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ExpectedOutcome(); - - if (data.hasOwnProperty('target')) { - obj['target'] = ApiClient.convertToType(data['target'], 'Number'); - - delete data['target']; - } - if (data.hasOwnProperty('tracking_metric')) { - obj['tracking_metric'] = ApiClient.convertToType(data['tracking_metric'], 'String'); - - delete data['tracking_metric']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The numeric target of the goal - * @member {Number} target - */ -ExpectedOutcome.prototype['target'] = undefined; - -/** - * The tracking metric of the goal - * @member {String} tracking_metric - */ -ExpectedOutcome.prototype['tracking_metric'] = undefined; - - - - - - -export default ExpectedOutcome; - diff --git a/src/model/FailResponse.js b/src/model/FailResponse.js deleted file mode 100644 index 6ba99bd2..00000000 --- a/src/model/FailResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FailResponse model module. - * @module model/FailResponse - * @version 1.0.0 - */ -class FailResponse { - /** - * Constructs a new FailResponse. - * @alias module:model/FailResponse - */ - constructor() { - - FailResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FailResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FailResponse} obj Optional instance to populate. - * @return {module:model/FailResponse} The populated FailResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FailResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -FailResponse.prototype['success'] = undefined; - -/** - * The error message - * @member {String} error - */ -FailResponse.prototype['error'] = undefined; - - - - - - -export default FailResponse; - diff --git a/src/model/Field.js b/src/model/Field.js deleted file mode 100644 index 76323f1f..00000000 --- a/src/model/Field.js +++ /dev/null @@ -1,332 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FieldTypeAsString from './FieldTypeAsString'; - -/** - * The Field model module. - * @module model/Field - * @version 1.0.0 - */ -class Field { - /** - * Constructs a new Field. - * @alias module:model/Field - */ - constructor() { - - Field.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Field from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Field} obj Optional instance to populate. - * @return {module:model/Field} The populated Field instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Field(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - - delete data['key']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('field_type')) { - obj['field_type'] = ApiClient.convertToType(data['field_type'], FieldTypeAsString); - - delete data['field_type']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - if (data.hasOwnProperty('last_updated_by_user_id')) { - obj['last_updated_by_user_id'] = ApiClient.convertToType(data['last_updated_by_user_id'], 'Number'); - - delete data['last_updated_by_user_id']; - } - if (data.hasOwnProperty('created_by_user_id')) { - obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); - - delete data['created_by_user_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('edit_flag')) { - obj['edit_flag'] = ApiClient.convertToType(data['edit_flag'], 'Boolean'); - - delete data['edit_flag']; - } - if (data.hasOwnProperty('index_visible_flag')) { - obj['index_visible_flag'] = ApiClient.convertToType(data['index_visible_flag'], 'Boolean'); - - delete data['index_visible_flag']; - } - if (data.hasOwnProperty('details_visible_flag')) { - obj['details_visible_flag'] = ApiClient.convertToType(data['details_visible_flag'], 'Boolean'); - - delete data['details_visible_flag']; - } - if (data.hasOwnProperty('add_visible_flag')) { - obj['add_visible_flag'] = ApiClient.convertToType(data['add_visible_flag'], 'Boolean'); - - delete data['add_visible_flag']; - } - if (data.hasOwnProperty('important_flag')) { - obj['important_flag'] = ApiClient.convertToType(data['important_flag'], 'Boolean'); - - delete data['important_flag']; - } - if (data.hasOwnProperty('bulk_edit_allowed')) { - obj['bulk_edit_allowed'] = ApiClient.convertToType(data['bulk_edit_allowed'], 'Boolean'); - - delete data['bulk_edit_allowed']; - } - if (data.hasOwnProperty('searchable_flag')) { - obj['searchable_flag'] = ApiClient.convertToType(data['searchable_flag'], 'Boolean'); - - delete data['searchable_flag']; - } - if (data.hasOwnProperty('filtering_allowed')) { - obj['filtering_allowed'] = ApiClient.convertToType(data['filtering_allowed'], 'Boolean'); - - delete data['filtering_allowed']; - } - if (data.hasOwnProperty('sortable_flag')) { - obj['sortable_flag'] = ApiClient.convertToType(data['sortable_flag'], 'Boolean'); - - delete data['sortable_flag']; - } - if (data.hasOwnProperty('mandatory_flag')) { - obj['mandatory_flag'] = ApiClient.convertToType(data['mandatory_flag'], 'Boolean'); - - delete data['mandatory_flag']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Object]); - - delete data['options']; - } - if (data.hasOwnProperty('options_deleted')) { - obj['options_deleted'] = ApiClient.convertToType(data['options_deleted'], [Object]); - - delete data['options_deleted']; - } - if (data.hasOwnProperty('is_subfield')) { - obj['is_subfield'] = ApiClient.convertToType(data['is_subfield'], 'Boolean'); - - delete data['is_subfield']; - } - if (data.hasOwnProperty('subfields')) { - obj['subfields'] = ApiClient.convertToType(data['subfields'], [Object]); - - delete data['subfields']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the field. Value is `null` in case of subfields. - * @member {Number} id - */ -Field.prototype['id'] = undefined; - -/** - * The key of the field. For custom fields this is generated upon creation. - * @member {String} key - */ -Field.prototype['key'] = undefined; - -/** - * The name of the field - * @member {String} name - */ -Field.prototype['name'] = undefined; - -/** - * The order number of the field - * @member {Number} order_nr - */ -Field.prototype['order_nr'] = undefined; - -/** - * @member {module:model/FieldTypeAsString} field_type - */ -Field.prototype['field_type'] = undefined; - -/** - * The creation time of the field - * @member {Date} add_time - */ -Field.prototype['add_time'] = undefined; - -/** - * The update time of the field - * @member {Date} update_time - */ -Field.prototype['update_time'] = undefined; - -/** - * The ID of the user who created or most recently updated the field, only applicable for custom fields - * @member {Number} last_updated_by_user_id - */ -Field.prototype['last_updated_by_user_id'] = undefined; - -/** - * The ID of the user who created the field - * @member {Number} created_by_user_id - */ -Field.prototype['created_by_user_id'] = undefined; - -/** - * The active flag of the field - * @member {Boolean} active_flag - */ -Field.prototype['active_flag'] = undefined; - -/** - * The edit flag of the field - * @member {Boolean} edit_flag - */ -Field.prototype['edit_flag'] = undefined; - -/** - * Not used - * @member {Boolean} index_visible_flag - */ -Field.prototype['index_visible_flag'] = undefined; - -/** - * Not used - * @member {Boolean} details_visible_flag - */ -Field.prototype['details_visible_flag'] = undefined; - -/** - * Not used - * @member {Boolean} add_visible_flag - */ -Field.prototype['add_visible_flag'] = undefined; - -/** - * Not used - * @member {Boolean} important_flag - */ -Field.prototype['important_flag'] = undefined; - -/** - * Whether or not the field of an item can be edited in bulk - * @member {Boolean} bulk_edit_allowed - */ -Field.prototype['bulk_edit_allowed'] = undefined; - -/** - * Whether or not items can be searched by this field - * @member {Boolean} searchable_flag - */ -Field.prototype['searchable_flag'] = undefined; - -/** - * Whether or not items can be filtered by this field - * @member {Boolean} filtering_allowed - */ -Field.prototype['filtering_allowed'] = undefined; - -/** - * Whether or not items can be sorted by this field - * @member {Boolean} sortable_flag - */ -Field.prototype['sortable_flag'] = undefined; - -/** - * Whether or not the field is mandatory - * @member {Boolean} mandatory_flag - */ -Field.prototype['mandatory_flag'] = undefined; - -/** - * The options of the field. When there are no options, `null` is returned. - * @member {Array.} options - */ -Field.prototype['options'] = undefined; - -/** - * The deleted options of the field. Only present when there is at least 1 deleted option. - * @member {Array.} options_deleted - */ -Field.prototype['options_deleted'] = undefined; - -/** - * Whether or not the field is a subfield of another field. Only present if field is subfield. - * @member {Boolean} is_subfield - */ -Field.prototype['is_subfield'] = undefined; - -/** - * The subfields of the field. Only present when the field has subfields. - * @member {Array.} subfields - */ -Field.prototype['subfields'] = undefined; - - - - - - -export default Field; - diff --git a/src/model/FieldCreateRequest.js b/src/model/FieldCreateRequest.js deleted file mode 100644 index 720e2506..00000000 --- a/src/model/FieldCreateRequest.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FieldCreateRequestAllOf from './FieldCreateRequestAllOf'; -import FieldType from './FieldType'; -import FieldTypeAsString from './FieldTypeAsString'; - -/** - * The FieldCreateRequest model module. - * @module model/FieldCreateRequest - * @version 1.0.0 - */ -class FieldCreateRequest { - /** - * Constructs a new FieldCreateRequest. - * @alias module:model/FieldCreateRequest - * @implements module:model/FieldCreateRequestAllOf - * @implements module:model/FieldType - * @param name {String} The name of the field - * @param fieldType {module:model/FieldTypeAsString} - */ - constructor(name, fieldType) { - FieldCreateRequestAllOf.initialize(this, name);FieldType.initialize(this, fieldType); - FieldCreateRequest.initialize(this, name, fieldType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name, fieldType) { - obj['name'] = name; - obj['field_type'] = fieldType; - } - - /** - * Constructs a FieldCreateRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FieldCreateRequest} obj Optional instance to populate. - * @return {module:model/FieldCreateRequest} The populated FieldCreateRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FieldCreateRequest(); - FieldCreateRequestAllOf.constructFromObject(data, obj); - FieldType.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Object]); - - delete data['options']; - } - if (data.hasOwnProperty('add_visible_flag')) { - obj['add_visible_flag'] = ApiClient.convertToType(data['add_visible_flag'], 'Boolean'); - - delete data['add_visible_flag']; - } - if (data.hasOwnProperty('field_type')) { - obj['field_type'] = FieldTypeAsString.constructFromObject(data['field_type']); - - delete data['field_type']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the field - * @member {String} name - */ -FieldCreateRequest.prototype['name'] = undefined; - -/** - * When `field_type` is either set or enum, possible options must be supplied as a JSON-encoded sequential array of objects. Example: `[{\"label\":\"New Item\"}]` - * @member {Array.} options - */ -FieldCreateRequest.prototype['options'] = undefined; - -/** - * Whether the field is available in the 'add new' modal or not (both in the web and mobile app) - * @member {Boolean} add_visible_flag - * @default true - */ -FieldCreateRequest.prototype['add_visible_flag'] = true; - -/** - * @member {module:model/FieldTypeAsString} field_type - */ -FieldCreateRequest.prototype['field_type'] = undefined; - - -// Implement FieldCreateRequestAllOf interface: -/** - * The name of the field - * @member {String} name - */ -FieldCreateRequestAllOf.prototype['name'] = undefined; -/** - * When `field_type` is either set or enum, possible options must be supplied as a JSON-encoded sequential array of objects. Example: `[{\"label\":\"New Item\"}]` - * @member {Array.} options - */ -FieldCreateRequestAllOf.prototype['options'] = undefined; -/** - * Whether the field is available in the 'add new' modal or not (both in the web and mobile app) - * @member {Boolean} add_visible_flag - * @default true - */ -FieldCreateRequestAllOf.prototype['add_visible_flag'] = true; -// Implement FieldType interface: -/** - * @member {module:model/FieldTypeAsString} field_type - */ -FieldType.prototype['field_type'] = undefined; - - - - -export default FieldCreateRequest; - diff --git a/src/model/FieldCreateRequestAllOf.js b/src/model/FieldCreateRequestAllOf.js deleted file mode 100644 index ea3cf803..00000000 --- a/src/model/FieldCreateRequestAllOf.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FieldCreateRequestAllOf model module. - * @module model/FieldCreateRequestAllOf - * @version 1.0.0 - */ -class FieldCreateRequestAllOf { - /** - * Constructs a new FieldCreateRequestAllOf. - * @alias module:model/FieldCreateRequestAllOf - * @param name {String} The name of the field - */ - constructor(name) { - - FieldCreateRequestAllOf.initialize(this, name); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name) { - obj['name'] = name; - } - - /** - * Constructs a FieldCreateRequestAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FieldCreateRequestAllOf} obj Optional instance to populate. - * @return {module:model/FieldCreateRequestAllOf} The populated FieldCreateRequestAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FieldCreateRequestAllOf(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Object]); - - delete data['options']; - } - if (data.hasOwnProperty('add_visible_flag')) { - obj['add_visible_flag'] = ApiClient.convertToType(data['add_visible_flag'], 'Boolean'); - - delete data['add_visible_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the field - * @member {String} name - */ -FieldCreateRequestAllOf.prototype['name'] = undefined; - -/** - * When `field_type` is either set or enum, possible options must be supplied as a JSON-encoded sequential array of objects. Example: `[{\"label\":\"New Item\"}]` - * @member {Array.} options - */ -FieldCreateRequestAllOf.prototype['options'] = undefined; - -/** - * Whether the field is available in the 'add new' modal or not (both in the web and mobile app) - * @member {Boolean} add_visible_flag - * @default true - */ -FieldCreateRequestAllOf.prototype['add_visible_flag'] = true; - - - - - - -export default FieldCreateRequestAllOf; - diff --git a/src/model/FieldResponse.js b/src/model/FieldResponse.js deleted file mode 100644 index a3054eb0..00000000 --- a/src/model/FieldResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import Field from './Field'; -import FieldResponseAllOf from './FieldResponseAllOf'; - -/** - * The FieldResponse model module. - * @module model/FieldResponse - * @version 1.0.0 - */ -class FieldResponse { - /** - * Constructs a new FieldResponse. - * @alias module:model/FieldResponse - * @implements module:model/BaseResponse - * @implements module:model/FieldResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);FieldResponseAllOf.initialize(this); - FieldResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FieldResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FieldResponse} obj Optional instance to populate. - * @return {module:model/FieldResponse} The populated FieldResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FieldResponse(); - BaseResponse.constructFromObject(data, obj); - FieldResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = Field.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -FieldResponse.prototype['success'] = undefined; - -/** - * @member {module:model/Field} data - */ -FieldResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement FieldResponseAllOf interface: -/** - * @member {module:model/Field} data - */ -FieldResponseAllOf.prototype['data'] = undefined; - - - - -export default FieldResponse; - diff --git a/src/model/FieldResponseAllOf.js b/src/model/FieldResponseAllOf.js deleted file mode 100644 index 10082958..00000000 --- a/src/model/FieldResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Field from './Field'; - -/** - * The FieldResponseAllOf model module. - * @module model/FieldResponseAllOf - * @version 1.0.0 - */ -class FieldResponseAllOf { - /** - * Constructs a new FieldResponseAllOf. - * @alias module:model/FieldResponseAllOf - */ - constructor() { - - FieldResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FieldResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FieldResponseAllOf} obj Optional instance to populate. - * @return {module:model/FieldResponseAllOf} The populated FieldResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FieldResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = Field.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/Field} data - */ -FieldResponseAllOf.prototype['data'] = undefined; - - - - - - -export default FieldResponseAllOf; - diff --git a/src/model/FieldType.js b/src/model/FieldType.js deleted file mode 100644 index cde4baba..00000000 --- a/src/model/FieldType.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FieldTypeAsString from './FieldTypeAsString'; - -/** - * The FieldType model module. - * @module model/FieldType - * @version 1.0.0 - */ -class FieldType { - /** - * Constructs a new FieldType. - * @alias module:model/FieldType - * @param fieldType {module:model/FieldTypeAsString} - */ - constructor(fieldType) { - - FieldType.initialize(this, fieldType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, fieldType) { - obj['field_type'] = fieldType; - } - - /** - * Constructs a FieldType from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FieldType} obj Optional instance to populate. - * @return {module:model/FieldType} The populated FieldType instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FieldType(); - - if (data.hasOwnProperty('field_type')) { - obj['field_type'] = FieldTypeAsString.constructFromObject(data['field_type']); - - delete data['field_type']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/FieldTypeAsString} field_type - */ -FieldType.prototype['field_type'] = undefined; - - - - - - -export default FieldType; - diff --git a/src/model/FieldTypeAsString.js b/src/model/FieldTypeAsString.js deleted file mode 100644 index 1df72334..00000000 --- a/src/model/FieldTypeAsString.js +++ /dev/null @@ -1,159 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class FieldTypeAsString. -* @enum {} -* @readonly -*/ -export default class FieldTypeAsString { - - /** - * value: "address" - * @const - */ - "address" = "address"; - - - /** - * value: "date" - * @const - */ - "date" = "date"; - - - /** - * value: "daterange" - * @const - */ - "daterange" = "daterange"; - - - /** - * value: "double" - * @const - */ - "double" = "double"; - - - /** - * value: "enum" - * @const - */ - "enum" = "enum"; - - - /** - * value: "monetary" - * @const - */ - "monetary" = "monetary"; - - - /** - * value: "org" - * @const - */ - "org" = "org"; - - - /** - * value: "people" - * @const - */ - "people" = "people"; - - - /** - * value: "phone" - * @const - */ - "phone" = "phone"; - - - /** - * value: "set" - * @const - */ - "set" = "set"; - - - /** - * value: "text" - * @const - */ - "text" = "text"; - - - /** - * value: "time" - * @const - */ - "time" = "time"; - - - /** - * value: "timerange" - * @const - */ - "timerange" = "timerange"; - - - /** - * value: "user" - * @const - */ - "user" = "user"; - - - /** - * value: "varchar" - * @const - */ - "varchar" = "varchar"; - - - /** - * value: "varchar_auto" - * @const - */ - "varchar_auto" = "varchar_auto"; - - - /** - * value: "visible_to" - * @const - */ - "visible_to" = "visible_to"; - - - - /** - * Returns a FieldTypeAsString enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/FieldTypeAsString} The enum FieldTypeAsString value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/FieldUpdateRequest.js b/src/model/FieldUpdateRequest.js deleted file mode 100644 index 8932f0f6..00000000 --- a/src/model/FieldUpdateRequest.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FieldUpdateRequest model module. - * @module model/FieldUpdateRequest - * @version 1.0.0 - */ -class FieldUpdateRequest { - /** - * Constructs a new FieldUpdateRequest. - * @alias module:model/FieldUpdateRequest - */ - constructor() { - - FieldUpdateRequest.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FieldUpdateRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FieldUpdateRequest} obj Optional instance to populate. - * @return {module:model/FieldUpdateRequest} The populated FieldUpdateRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FieldUpdateRequest(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Object]); - - delete data['options']; - } - if (data.hasOwnProperty('add_visible_flag')) { - obj['add_visible_flag'] = ApiClient.convertToType(data['add_visible_flag'], 'Boolean'); - - delete data['add_visible_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the field - * @member {String} name - */ -FieldUpdateRequest.prototype['name'] = undefined; - -/** - * When `field_type` is either set or enum, possible options must be supplied as a JSON-encoded sequential array of objects. All active items must be supplied and already existing items must have their ID supplied. New items only require a label. Example: `[{\"id\":123,\"label\":\"Existing Item\"},{\"label\":\"New Item\"}]` - * @member {Array.} options - */ -FieldUpdateRequest.prototype['options'] = undefined; - -/** - * Whether the field is available in 'add new' modal or not (both in web and mobile app) - * @member {Boolean} add_visible_flag - * @default true - */ -FieldUpdateRequest.prototype['add_visible_flag'] = true; - - - - - - -export default FieldUpdateRequest; - diff --git a/src/model/FieldsResponse.js b/src/model/FieldsResponse.js deleted file mode 100644 index c75f6083..00000000 --- a/src/model/FieldsResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import FieldsResponseAllOf from './FieldsResponseAllOf'; -import GetField from './GetField'; - -/** - * The FieldsResponse model module. - * @module model/FieldsResponse - * @version 1.0.0 - */ -class FieldsResponse { - /** - * Constructs a new FieldsResponse. - * @alias module:model/FieldsResponse - * @implements module:model/BaseResponse - * @implements module:model/FieldsResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);FieldsResponseAllOf.initialize(this); - FieldsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FieldsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FieldsResponse} obj Optional instance to populate. - * @return {module:model/FieldsResponse} The populated FieldsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FieldsResponse(); - BaseResponse.constructFromObject(data, obj); - FieldsResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [GetField]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -FieldsResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -FieldsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -FieldsResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement FieldsResponseAllOf interface: -/** - * @member {Array.} data - */ -FieldsResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -FieldsResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default FieldsResponse; - diff --git a/src/model/FieldsResponseAllOf.js b/src/model/FieldsResponseAllOf.js deleted file mode 100644 index b0f07312..00000000 --- a/src/model/FieldsResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import GetField from './GetField'; - -/** - * The FieldsResponseAllOf model module. - * @module model/FieldsResponseAllOf - * @version 1.0.0 - */ -class FieldsResponseAllOf { - /** - * Constructs a new FieldsResponseAllOf. - * @alias module:model/FieldsResponseAllOf - */ - constructor() { - - FieldsResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FieldsResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FieldsResponseAllOf} obj Optional instance to populate. - * @return {module:model/FieldsResponseAllOf} The populated FieldsResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FieldsResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [GetField]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Array.} data - */ -FieldsResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -FieldsResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default FieldsResponseAllOf; - diff --git a/src/model/FileData.js b/src/model/FileData.js deleted file mode 100644 index d6efa5a2..00000000 --- a/src/model/FileData.js +++ /dev/null @@ -1,377 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FileData model module. - * @module model/FileData - * @version 1.0.0 - */ -class FileData { - /** - * Constructs a new FileData. - * The file data - * @alias module:model/FileData - */ - constructor() { - - FileData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FileData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FileData} obj Optional instance to populate. - * @return {module:model/FileData} The populated FileData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FileData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('activity_id')) { - obj['activity_id'] = ApiClient.convertToType(data['activity_id'], 'Number'); - - delete data['activity_id']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('file_name')) { - obj['file_name'] = ApiClient.convertToType(data['file_name'], 'String'); - - delete data['file_name']; - } - if (data.hasOwnProperty('file_size')) { - obj['file_size'] = ApiClient.convertToType(data['file_size'], 'Number'); - - delete data['file_size']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('inline_flag')) { - obj['inline_flag'] = ApiClient.convertToType(data['inline_flag'], 'Boolean'); - - delete data['inline_flag']; - } - if (data.hasOwnProperty('remote_location')) { - obj['remote_location'] = ApiClient.convertToType(data['remote_location'], 'String'); - - delete data['remote_location']; - } - if (data.hasOwnProperty('remote_id')) { - obj['remote_id'] = ApiClient.convertToType(data['remote_id'], 'String'); - - delete data['remote_id']; - } - if (data.hasOwnProperty('cid')) { - obj['cid'] = ApiClient.convertToType(data['cid'], 'String'); - - delete data['cid']; - } - if (data.hasOwnProperty('s3_bucket')) { - obj['s3_bucket'] = ApiClient.convertToType(data['s3_bucket'], 'String'); - - delete data['s3_bucket']; - } - if (data.hasOwnProperty('mail_message_id')) { - obj['mail_message_id'] = ApiClient.convertToType(data['mail_message_id'], 'String'); - - delete data['mail_message_id']; - } - if (data.hasOwnProperty('mail_template_id')) { - obj['mail_template_id'] = ApiClient.convertToType(data['mail_template_id'], 'String'); - - delete data['mail_template_id']; - } - if (data.hasOwnProperty('deal_name')) { - obj['deal_name'] = ApiClient.convertToType(data['deal_name'], 'String'); - - delete data['deal_name']; - } - if (data.hasOwnProperty('person_name')) { - obj['person_name'] = ApiClient.convertToType(data['person_name'], 'String'); - - delete data['person_name']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String'); - - delete data['product_name']; - } - if (data.hasOwnProperty('lead_name')) { - obj['lead_name'] = ApiClient.convertToType(data['lead_name'], 'String'); - - delete data['lead_name']; - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - - delete data['url']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the file - * @member {Number} id - */ -FileData.prototype['id'] = undefined; - -/** - * The ID of the user to associate the file with - * @member {Number} user_id - */ -FileData.prototype['user_id'] = undefined; - -/** - * The ID of the deal to associate the file with - * @member {Number} deal_id - */ -FileData.prototype['deal_id'] = undefined; - -/** - * The ID of the person to associate the file with - * @member {Number} person_id - */ -FileData.prototype['person_id'] = undefined; - -/** - * The ID of the organization to associate the file with - * @member {Number} org_id - */ -FileData.prototype['org_id'] = undefined; - -/** - * The ID of the product to associate the file with - * @member {Number} product_id - */ -FileData.prototype['product_id'] = undefined; - -/** - * The ID of the activity to associate the file with - * @member {Number} activity_id - */ -FileData.prototype['activity_id'] = undefined; - -/** - * The ID of the lead to associate the file with - * @member {String} lead_id - */ -FileData.prototype['lead_id'] = undefined; - -/** - * The date and time when the file was added/created. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -FileData.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the file. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -FileData.prototype['update_time'] = undefined; - -/** - * The original name of the file - * @member {String} file_name - */ -FileData.prototype['file_name'] = undefined; - -/** - * The size of the file - * @member {Number} file_size - */ -FileData.prototype['file_size'] = undefined; - -/** - * Whether the user is active or not. false = Not activated, true = Activated - * @member {Boolean} active_flag - */ -FileData.prototype['active_flag'] = undefined; - -/** - * Whether the file was uploaded as inline or not - * @member {Boolean} inline_flag - */ -FileData.prototype['inline_flag'] = undefined; - -/** - * The location type to send the file to. Only googledrive is supported at the moment. - * @member {String} remote_location - */ -FileData.prototype['remote_location'] = undefined; - -/** - * The ID of the remote item - * @member {String} remote_id - */ -FileData.prototype['remote_id'] = undefined; - -/** - * The ID of the inline attachment - * @member {String} cid - */ -FileData.prototype['cid'] = undefined; - -/** - * The location of the cloud storage - * @member {String} s3_bucket - */ -FileData.prototype['s3_bucket'] = undefined; - -/** - * The ID of the mail message to associate the file with - * @member {String} mail_message_id - */ -FileData.prototype['mail_message_id'] = undefined; - -/** - * The ID of the mail template to associate the file with - * @member {String} mail_template_id - */ -FileData.prototype['mail_template_id'] = undefined; - -/** - * The name of the deal associated with the file - * @member {String} deal_name - */ -FileData.prototype['deal_name'] = undefined; - -/** - * The name of the person associated with the file - * @member {String} person_name - */ -FileData.prototype['person_name'] = undefined; - -/** - * The name of the organization associated with the file - * @member {String} org_name - */ -FileData.prototype['org_name'] = undefined; - -/** - * The name of the product associated with the file - * @member {String} product_name - */ -FileData.prototype['product_name'] = undefined; - -/** - * The name of the lead associated with the file - * @member {String} lead_name - */ -FileData.prototype['lead_name'] = undefined; - -/** - * The URL of the download file - * @member {String} url - */ -FileData.prototype['url'] = undefined; - -/** - * The visible name of the file - * @member {String} name - */ -FileData.prototype['name'] = undefined; - -/** - * The description of the file - * @member {String} description - */ -FileData.prototype['description'] = undefined; - - - - - - -export default FileData; - diff --git a/src/model/FileItem.js b/src/model/FileItem.js deleted file mode 100644 index 939e2cef..00000000 --- a/src/model/FileItem.js +++ /dev/null @@ -1,377 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FileItem model module. - * @module model/FileItem - * @version 1.0.0 - */ -class FileItem { - /** - * Constructs a new FileItem. - * The file data - * @alias module:model/FileItem - */ - constructor() { - - FileItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FileItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FileItem} obj Optional instance to populate. - * @return {module:model/FileItem} The populated FileItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FileItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('activity_id')) { - obj['activity_id'] = ApiClient.convertToType(data['activity_id'], 'Number'); - - delete data['activity_id']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('file_name')) { - obj['file_name'] = ApiClient.convertToType(data['file_name'], 'String'); - - delete data['file_name']; - } - if (data.hasOwnProperty('file_size')) { - obj['file_size'] = ApiClient.convertToType(data['file_size'], 'Number'); - - delete data['file_size']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('inline_flag')) { - obj['inline_flag'] = ApiClient.convertToType(data['inline_flag'], 'Boolean'); - - delete data['inline_flag']; - } - if (data.hasOwnProperty('remote_location')) { - obj['remote_location'] = ApiClient.convertToType(data['remote_location'], 'String'); - - delete data['remote_location']; - } - if (data.hasOwnProperty('remote_id')) { - obj['remote_id'] = ApiClient.convertToType(data['remote_id'], 'String'); - - delete data['remote_id']; - } - if (data.hasOwnProperty('cid')) { - obj['cid'] = ApiClient.convertToType(data['cid'], 'String'); - - delete data['cid']; - } - if (data.hasOwnProperty('s3_bucket')) { - obj['s3_bucket'] = ApiClient.convertToType(data['s3_bucket'], 'String'); - - delete data['s3_bucket']; - } - if (data.hasOwnProperty('mail_message_id')) { - obj['mail_message_id'] = ApiClient.convertToType(data['mail_message_id'], 'String'); - - delete data['mail_message_id']; - } - if (data.hasOwnProperty('mail_template_id')) { - obj['mail_template_id'] = ApiClient.convertToType(data['mail_template_id'], 'String'); - - delete data['mail_template_id']; - } - if (data.hasOwnProperty('deal_name')) { - obj['deal_name'] = ApiClient.convertToType(data['deal_name'], 'String'); - - delete data['deal_name']; - } - if (data.hasOwnProperty('person_name')) { - obj['person_name'] = ApiClient.convertToType(data['person_name'], 'String'); - - delete data['person_name']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String'); - - delete data['product_name']; - } - if (data.hasOwnProperty('lead_name')) { - obj['lead_name'] = ApiClient.convertToType(data['lead_name'], 'String'); - - delete data['lead_name']; - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - - delete data['url']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the file - * @member {Number} id - */ -FileItem.prototype['id'] = undefined; - -/** - * The ID of the user to associate the file with - * @member {Number} user_id - */ -FileItem.prototype['user_id'] = undefined; - -/** - * The ID of the deal to associate the file with - * @member {Number} deal_id - */ -FileItem.prototype['deal_id'] = undefined; - -/** - * The ID of the person to associate the file with - * @member {Number} person_id - */ -FileItem.prototype['person_id'] = undefined; - -/** - * The ID of the organization to associate the file with - * @member {Number} org_id - */ -FileItem.prototype['org_id'] = undefined; - -/** - * The ID of the product to associate the file with - * @member {Number} product_id - */ -FileItem.prototype['product_id'] = undefined; - -/** - * The ID of the activity to associate the file with - * @member {Number} activity_id - */ -FileItem.prototype['activity_id'] = undefined; - -/** - * The ID of the lead to associate the file with - * @member {String} lead_id - */ -FileItem.prototype['lead_id'] = undefined; - -/** - * The date and time when the file was added/created. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -FileItem.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the file. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -FileItem.prototype['update_time'] = undefined; - -/** - * The original name of the file - * @member {String} file_name - */ -FileItem.prototype['file_name'] = undefined; - -/** - * The size of the file - * @member {Number} file_size - */ -FileItem.prototype['file_size'] = undefined; - -/** - * Whether the user is active or not. false = Not activated, true = Activated - * @member {Boolean} active_flag - */ -FileItem.prototype['active_flag'] = undefined; - -/** - * Whether the file was uploaded as inline or not - * @member {Boolean} inline_flag - */ -FileItem.prototype['inline_flag'] = undefined; - -/** - * The location type to send the file to. Only googledrive is supported at the moment. - * @member {String} remote_location - */ -FileItem.prototype['remote_location'] = undefined; - -/** - * The ID of the remote item - * @member {String} remote_id - */ -FileItem.prototype['remote_id'] = undefined; - -/** - * The ID of the inline attachment - * @member {String} cid - */ -FileItem.prototype['cid'] = undefined; - -/** - * The location of the cloud storage - * @member {String} s3_bucket - */ -FileItem.prototype['s3_bucket'] = undefined; - -/** - * The ID of the mail message to associate the file with - * @member {String} mail_message_id - */ -FileItem.prototype['mail_message_id'] = undefined; - -/** - * The ID of the mail template to associate the file with - * @member {String} mail_template_id - */ -FileItem.prototype['mail_template_id'] = undefined; - -/** - * The name of the deal associated with the dile - * @member {String} deal_name - */ -FileItem.prototype['deal_name'] = undefined; - -/** - * The name of the person associated with the file - * @member {String} person_name - */ -FileItem.prototype['person_name'] = undefined; - -/** - * The name of the organization associated with the file - * @member {String} org_name - */ -FileItem.prototype['org_name'] = undefined; - -/** - * The name of the product associated with the file - * @member {String} product_name - */ -FileItem.prototype['product_name'] = undefined; - -/** - * The name of the lead associated with the file - * @member {String} lead_name - */ -FileItem.prototype['lead_name'] = undefined; - -/** - * The URL of the download file - * @member {String} url - */ -FileItem.prototype['url'] = undefined; - -/** - * The visible name of the file - * @member {String} name - */ -FileItem.prototype['name'] = undefined; - -/** - * The description of the file - * @member {String} description - */ -FileItem.prototype['description'] = undefined; - - - - - - -export default FileItem; - diff --git a/src/model/FilterGetItem.js b/src/model/FilterGetItem.js deleted file mode 100644 index 69a87689..00000000 --- a/src/model/FilterGetItem.js +++ /dev/null @@ -1,168 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FilterGetItem model module. - * @module model/FilterGetItem - * @version 1.0.0 - */ -class FilterGetItem { - /** - * Constructs a new FilterGetItem. - * The filter object - * @alias module:model/FilterGetItem - */ - constructor() { - - FilterGetItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FilterGetItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FilterGetItem} obj Optional instance to populate. - * @return {module:model/FilterGetItem} The populated FilterGetItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FilterGetItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'Number'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('custom_view_id')) { - obj['custom_view_id'] = ApiClient.convertToType(data['custom_view_id'], 'Number'); - - delete data['custom_view_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the filter - * @member {Number} id - */ -FilterGetItem.prototype['id'] = undefined; - -/** - * The name of the filter - * @member {String} name - */ -FilterGetItem.prototype['name'] = undefined; - -/** - * The active flag of the filter - * @member {Boolean} active_flag - */ -FilterGetItem.prototype['active_flag'] = undefined; - -/** - * The type of the item - * @member {String} type - */ -FilterGetItem.prototype['type'] = undefined; - -/** - * The owner of the filter - * @member {Number} user_id - */ -FilterGetItem.prototype['user_id'] = undefined; - -/** - * The date and time when the filter was added - * @member {String} add_time - */ -FilterGetItem.prototype['add_time'] = undefined; - -/** - * The date and time when the filter was updated - * @member {String} update_time - */ -FilterGetItem.prototype['update_time'] = undefined; - -/** - * The visibility group ID of who can see then filter - * @member {Number} visible_to - */ -FilterGetItem.prototype['visible_to'] = undefined; - -/** - * Used by Pipedrive webapp - * @member {Number} custom_view_id - */ -FilterGetItem.prototype['custom_view_id'] = undefined; - - - - - - -export default FilterGetItem; - diff --git a/src/model/FilterType.js b/src/model/FilterType.js deleted file mode 100644 index c6ebaf77..00000000 --- a/src/model/FilterType.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class FilterType. -* @enum {} -* @readonly -*/ -export default class FilterType { - - /** - * value: "deals" - * @const - */ - "deals" = "deals"; - - - /** - * value: "leads" - * @const - */ - "leads" = "leads"; - - - /** - * value: "org" - * @const - */ - "org" = "org"; - - - /** - * value: "people" - * @const - */ - "people" = "people"; - - - /** - * value: "products" - * @const - */ - "products" = "products"; - - - /** - * value: "activity" - * @const - */ - "activity" = "activity"; - - - /** - * value: "projects" - * @const - */ - "projects" = "projects"; - - - - /** - * Returns a FilterType enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/FilterType} The enum FilterType value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/FiltersBulkDeleteResponse.js b/src/model/FiltersBulkDeleteResponse.js deleted file mode 100644 index 4cc584d7..00000000 --- a/src/model/FiltersBulkDeleteResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import FiltersBulkDeleteResponseAllOf from './FiltersBulkDeleteResponseAllOf'; -import FiltersBulkDeleteResponseAllOfData from './FiltersBulkDeleteResponseAllOfData'; - -/** - * The FiltersBulkDeleteResponse model module. - * @module model/FiltersBulkDeleteResponse - * @version 1.0.0 - */ -class FiltersBulkDeleteResponse { - /** - * Constructs a new FiltersBulkDeleteResponse. - * @alias module:model/FiltersBulkDeleteResponse - * @implements module:model/BaseResponse - * @implements module:model/FiltersBulkDeleteResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);FiltersBulkDeleteResponseAllOf.initialize(this); - FiltersBulkDeleteResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersBulkDeleteResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersBulkDeleteResponse} obj Optional instance to populate. - * @return {module:model/FiltersBulkDeleteResponse} The populated FiltersBulkDeleteResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersBulkDeleteResponse(); - BaseResponse.constructFromObject(data, obj); - FiltersBulkDeleteResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FiltersBulkDeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -FiltersBulkDeleteResponse.prototype['success'] = undefined; - -/** - * @member {module:model/FiltersBulkDeleteResponseAllOfData} data - */ -FiltersBulkDeleteResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement FiltersBulkDeleteResponseAllOf interface: -/** - * @member {module:model/FiltersBulkDeleteResponseAllOfData} data - */ -FiltersBulkDeleteResponseAllOf.prototype['data'] = undefined; - - - - -export default FiltersBulkDeleteResponse; - diff --git a/src/model/FiltersBulkDeleteResponseAllOf.js b/src/model/FiltersBulkDeleteResponseAllOf.js deleted file mode 100644 index db6f2312..00000000 --- a/src/model/FiltersBulkDeleteResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FiltersBulkDeleteResponseAllOfData from './FiltersBulkDeleteResponseAllOfData'; - -/** - * The FiltersBulkDeleteResponseAllOf model module. - * @module model/FiltersBulkDeleteResponseAllOf - * @version 1.0.0 - */ -class FiltersBulkDeleteResponseAllOf { - /** - * Constructs a new FiltersBulkDeleteResponseAllOf. - * @alias module:model/FiltersBulkDeleteResponseAllOf - */ - constructor() { - - FiltersBulkDeleteResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersBulkDeleteResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersBulkDeleteResponseAllOf} obj Optional instance to populate. - * @return {module:model/FiltersBulkDeleteResponseAllOf} The populated FiltersBulkDeleteResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersBulkDeleteResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = FiltersBulkDeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/FiltersBulkDeleteResponseAllOfData} data - */ -FiltersBulkDeleteResponseAllOf.prototype['data'] = undefined; - - - - - - -export default FiltersBulkDeleteResponseAllOf; - diff --git a/src/model/FiltersBulkDeleteResponseAllOfData.js b/src/model/FiltersBulkDeleteResponseAllOfData.js deleted file mode 100644 index ae8a1089..00000000 --- a/src/model/FiltersBulkDeleteResponseAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FiltersBulkDeleteResponseAllOfData model module. - * @module model/FiltersBulkDeleteResponseAllOfData - * @version 1.0.0 - */ -class FiltersBulkDeleteResponseAllOfData { - /** - * Constructs a new FiltersBulkDeleteResponseAllOfData. - * @alias module:model/FiltersBulkDeleteResponseAllOfData - */ - constructor() { - - FiltersBulkDeleteResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersBulkDeleteResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersBulkDeleteResponseAllOfData} obj Optional instance to populate. - * @return {module:model/FiltersBulkDeleteResponseAllOfData} The populated FiltersBulkDeleteResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersBulkDeleteResponseAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of the IDs of the deleted filter - * @member {Array.} id - */ -FiltersBulkDeleteResponseAllOfData.prototype['id'] = undefined; - - - - - - -export default FiltersBulkDeleteResponseAllOfData; - diff --git a/src/model/FiltersBulkGetResponse.js b/src/model/FiltersBulkGetResponse.js deleted file mode 100644 index 2ec52215..00000000 --- a/src/model/FiltersBulkGetResponse.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import FilterGetItem from './FilterGetItem'; -import FiltersBulkGetResponseAllOf from './FiltersBulkGetResponseAllOf'; - -/** - * The FiltersBulkGetResponse model module. - * @module model/FiltersBulkGetResponse - * @version 1.0.0 - */ -class FiltersBulkGetResponse { - /** - * Constructs a new FiltersBulkGetResponse. - * @alias module:model/FiltersBulkGetResponse - * @implements module:model/BaseResponse - * @implements module:model/FiltersBulkGetResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);FiltersBulkGetResponseAllOf.initialize(this); - FiltersBulkGetResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersBulkGetResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersBulkGetResponse} obj Optional instance to populate. - * @return {module:model/FiltersBulkGetResponse} The populated FiltersBulkGetResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersBulkGetResponse(); - BaseResponse.constructFromObject(data, obj); - FiltersBulkGetResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [FilterGetItem]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -FiltersBulkGetResponse.prototype['success'] = undefined; - -/** - * The array of filters - * @member {Array.} data - */ -FiltersBulkGetResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement FiltersBulkGetResponseAllOf interface: -/** - * The array of filters - * @member {Array.} data - */ -FiltersBulkGetResponseAllOf.prototype['data'] = undefined; - - - - -export default FiltersBulkGetResponse; - diff --git a/src/model/FiltersBulkGetResponseAllOf.js b/src/model/FiltersBulkGetResponseAllOf.js deleted file mode 100644 index 099a27f1..00000000 --- a/src/model/FiltersBulkGetResponseAllOf.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FilterGetItem from './FilterGetItem'; - -/** - * The FiltersBulkGetResponseAllOf model module. - * @module model/FiltersBulkGetResponseAllOf - * @version 1.0.0 - */ -class FiltersBulkGetResponseAllOf { - /** - * Constructs a new FiltersBulkGetResponseAllOf. - * @alias module:model/FiltersBulkGetResponseAllOf - */ - constructor() { - - FiltersBulkGetResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersBulkGetResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersBulkGetResponseAllOf} obj Optional instance to populate. - * @return {module:model/FiltersBulkGetResponseAllOf} The populated FiltersBulkGetResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersBulkGetResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [FilterGetItem]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of filters - * @member {Array.} data - */ -FiltersBulkGetResponseAllOf.prototype['data'] = undefined; - - - - - - -export default FiltersBulkGetResponseAllOf; - diff --git a/src/model/FiltersDeleteResponse.js b/src/model/FiltersDeleteResponse.js deleted file mode 100644 index 2f26af1f..00000000 --- a/src/model/FiltersDeleteResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import FiltersDeleteResponseAllOf from './FiltersDeleteResponseAllOf'; -import FiltersDeleteResponseAllOfData from './FiltersDeleteResponseAllOfData'; - -/** - * The FiltersDeleteResponse model module. - * @module model/FiltersDeleteResponse - * @version 1.0.0 - */ -class FiltersDeleteResponse { - /** - * Constructs a new FiltersDeleteResponse. - * @alias module:model/FiltersDeleteResponse - * @implements module:model/BaseResponse - * @implements module:model/FiltersDeleteResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);FiltersDeleteResponseAllOf.initialize(this); - FiltersDeleteResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersDeleteResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersDeleteResponse} obj Optional instance to populate. - * @return {module:model/FiltersDeleteResponse} The populated FiltersDeleteResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersDeleteResponse(); - BaseResponse.constructFromObject(data, obj); - FiltersDeleteResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FiltersDeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -FiltersDeleteResponse.prototype['success'] = undefined; - -/** - * @member {module:model/FiltersDeleteResponseAllOfData} data - */ -FiltersDeleteResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement FiltersDeleteResponseAllOf interface: -/** - * @member {module:model/FiltersDeleteResponseAllOfData} data - */ -FiltersDeleteResponseAllOf.prototype['data'] = undefined; - - - - -export default FiltersDeleteResponse; - diff --git a/src/model/FiltersDeleteResponseAllOf.js b/src/model/FiltersDeleteResponseAllOf.js deleted file mode 100644 index 69007ae1..00000000 --- a/src/model/FiltersDeleteResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FiltersDeleteResponseAllOfData from './FiltersDeleteResponseAllOfData'; - -/** - * The FiltersDeleteResponseAllOf model module. - * @module model/FiltersDeleteResponseAllOf - * @version 1.0.0 - */ -class FiltersDeleteResponseAllOf { - /** - * Constructs a new FiltersDeleteResponseAllOf. - * @alias module:model/FiltersDeleteResponseAllOf - */ - constructor() { - - FiltersDeleteResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersDeleteResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersDeleteResponseAllOf} obj Optional instance to populate. - * @return {module:model/FiltersDeleteResponseAllOf} The populated FiltersDeleteResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersDeleteResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = FiltersDeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/FiltersDeleteResponseAllOfData} data - */ -FiltersDeleteResponseAllOf.prototype['data'] = undefined; - - - - - - -export default FiltersDeleteResponseAllOf; - diff --git a/src/model/FiltersDeleteResponseAllOfData.js b/src/model/FiltersDeleteResponseAllOfData.js deleted file mode 100644 index 0b87a815..00000000 --- a/src/model/FiltersDeleteResponseAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FiltersDeleteResponseAllOfData model module. - * @module model/FiltersDeleteResponseAllOfData - * @version 1.0.0 - */ -class FiltersDeleteResponseAllOfData { - /** - * Constructs a new FiltersDeleteResponseAllOfData. - * @alias module:model/FiltersDeleteResponseAllOfData - */ - constructor() { - - FiltersDeleteResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersDeleteResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersDeleteResponseAllOfData} obj Optional instance to populate. - * @return {module:model/FiltersDeleteResponseAllOfData} The populated FiltersDeleteResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersDeleteResponseAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deleted filter - * @member {Number} id - */ -FiltersDeleteResponseAllOfData.prototype['id'] = undefined; - - - - - - -export default FiltersDeleteResponseAllOfData; - diff --git a/src/model/FiltersGetResponse.js b/src/model/FiltersGetResponse.js deleted file mode 100644 index 079151df..00000000 --- a/src/model/FiltersGetResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import FilterGetItem from './FilterGetItem'; -import FiltersGetResponseAllOf from './FiltersGetResponseAllOf'; - -/** - * The FiltersGetResponse model module. - * @module model/FiltersGetResponse - * @version 1.0.0 - */ -class FiltersGetResponse { - /** - * Constructs a new FiltersGetResponse. - * @alias module:model/FiltersGetResponse - * @implements module:model/BaseResponse - * @implements module:model/FiltersGetResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);FiltersGetResponseAllOf.initialize(this); - FiltersGetResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersGetResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersGetResponse} obj Optional instance to populate. - * @return {module:model/FiltersGetResponse} The populated FiltersGetResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersGetResponse(); - BaseResponse.constructFromObject(data, obj); - FiltersGetResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FilterGetItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -FiltersGetResponse.prototype['success'] = undefined; - -/** - * @member {module:model/FilterGetItem} data - */ -FiltersGetResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement FiltersGetResponseAllOf interface: -/** - * @member {module:model/FilterGetItem} data - */ -FiltersGetResponseAllOf.prototype['data'] = undefined; - - - - -export default FiltersGetResponse; - diff --git a/src/model/FiltersGetResponseAllOf.js b/src/model/FiltersGetResponseAllOf.js deleted file mode 100644 index c08201d3..00000000 --- a/src/model/FiltersGetResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FilterGetItem from './FilterGetItem'; - -/** - * The FiltersGetResponseAllOf model module. - * @module model/FiltersGetResponseAllOf - * @version 1.0.0 - */ -class FiltersGetResponseAllOf { - /** - * Constructs a new FiltersGetResponseAllOf. - * @alias module:model/FiltersGetResponseAllOf - */ - constructor() { - - FiltersGetResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersGetResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersGetResponseAllOf} obj Optional instance to populate. - * @return {module:model/FiltersGetResponseAllOf} The populated FiltersGetResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersGetResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = FilterGetItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/FilterGetItem} data - */ -FiltersGetResponseAllOf.prototype['data'] = undefined; - - - - - - -export default FiltersGetResponseAllOf; - diff --git a/src/model/FiltersPostResponse.js b/src/model/FiltersPostResponse.js deleted file mode 100644 index 2839827a..00000000 --- a/src/model/FiltersPostResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import FiltersPostResponseAllOf from './FiltersPostResponseAllOf'; -import FiltersPostResponseAllOfData from './FiltersPostResponseAllOfData'; - -/** - * The FiltersPostResponse model module. - * @module model/FiltersPostResponse - * @version 1.0.0 - */ -class FiltersPostResponse { - /** - * Constructs a new FiltersPostResponse. - * @alias module:model/FiltersPostResponse - * @implements module:model/BaseResponse - * @implements module:model/FiltersPostResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);FiltersPostResponseAllOf.initialize(this); - FiltersPostResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersPostResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersPostResponse} obj Optional instance to populate. - * @return {module:model/FiltersPostResponse} The populated FiltersPostResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersPostResponse(); - BaseResponse.constructFromObject(data, obj); - FiltersPostResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FiltersPostResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -FiltersPostResponse.prototype['success'] = undefined; - -/** - * @member {module:model/FiltersPostResponseAllOfData} data - */ -FiltersPostResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement FiltersPostResponseAllOf interface: -/** - * @member {module:model/FiltersPostResponseAllOfData} data - */ -FiltersPostResponseAllOf.prototype['data'] = undefined; - - - - -export default FiltersPostResponse; - diff --git a/src/model/FiltersPostResponseAllOf.js b/src/model/FiltersPostResponseAllOf.js deleted file mode 100644 index 64afb15e..00000000 --- a/src/model/FiltersPostResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FiltersPostResponseAllOfData from './FiltersPostResponseAllOfData'; - -/** - * The FiltersPostResponseAllOf model module. - * @module model/FiltersPostResponseAllOf - * @version 1.0.0 - */ -class FiltersPostResponseAllOf { - /** - * Constructs a new FiltersPostResponseAllOf. - * @alias module:model/FiltersPostResponseAllOf - */ - constructor() { - - FiltersPostResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersPostResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersPostResponseAllOf} obj Optional instance to populate. - * @return {module:model/FiltersPostResponseAllOf} The populated FiltersPostResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersPostResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = FiltersPostResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/FiltersPostResponseAllOfData} data - */ -FiltersPostResponseAllOf.prototype['data'] = undefined; - - - - - - -export default FiltersPostResponseAllOf; - diff --git a/src/model/FiltersPostResponseAllOfData.js b/src/model/FiltersPostResponseAllOfData.js deleted file mode 100644 index 66549e97..00000000 --- a/src/model/FiltersPostResponseAllOfData.js +++ /dev/null @@ -1,189 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FilterType from './FilterType'; - -/** - * The FiltersPostResponseAllOfData model module. - * @module model/FiltersPostResponseAllOfData - * @version 1.0.0 - */ -class FiltersPostResponseAllOfData { - /** - * Constructs a new FiltersPostResponseAllOfData. - * @alias module:model/FiltersPostResponseAllOfData - */ - constructor() { - - FiltersPostResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FiltersPostResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FiltersPostResponseAllOfData} obj Optional instance to populate. - * @return {module:model/FiltersPostResponseAllOfData} The populated FiltersPostResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FiltersPostResponseAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = FilterType.constructFromObject(data['type']); - - delete data['type']; - } - if (data.hasOwnProperty('temporary_flag')) { - obj['temporary_flag'] = ApiClient.convertToType(data['temporary_flag'], 'Boolean'); - - delete data['temporary_flag']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'Number'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('custom_view_id')) { - obj['custom_view_id'] = ApiClient.convertToType(data['custom_view_id'], 'Number'); - - delete data['custom_view_id']; - } - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], Object); - - delete data['conditions']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the created filter - * @member {Number} id - */ -FiltersPostResponseAllOfData.prototype['id'] = undefined; - -/** - * The name of the created filter - * @member {String} name - */ -FiltersPostResponseAllOfData.prototype['name'] = undefined; - -/** - * The activity flag of the created filter - * @member {Boolean} active_flag - */ -FiltersPostResponseAllOfData.prototype['active_flag'] = undefined; - -/** - * @member {module:model/FilterType} type - */ -FiltersPostResponseAllOfData.prototype['type'] = undefined; - -/** - * If the created filter is temporary or not - * @member {Boolean} temporary_flag - */ -FiltersPostResponseAllOfData.prototype['temporary_flag'] = undefined; - -/** - * The user ID of the created filter - * @member {Number} user_id - */ -FiltersPostResponseAllOfData.prototype['user_id'] = undefined; - -/** - * The add time of the created filter - * @member {String} add_time - */ -FiltersPostResponseAllOfData.prototype['add_time'] = undefined; - -/** - * The update time of the created filter - * @member {String} update_time - */ -FiltersPostResponseAllOfData.prototype['update_time'] = undefined; - -/** - * The visibility group ID of the created filter - * @member {Number} visible_to - */ -FiltersPostResponseAllOfData.prototype['visible_to'] = undefined; - -/** - * The custom view ID of the created filter - * @member {Number} custom_view_id - */ -FiltersPostResponseAllOfData.prototype['custom_view_id'] = undefined; - -/** - * The created filter conditions object - * @member {Object} conditions - */ -FiltersPostResponseAllOfData.prototype['conditions'] = undefined; - - - - - - -export default FiltersPostResponseAllOfData; - diff --git a/src/model/FindGoalResponse.js b/src/model/FindGoalResponse.js deleted file mode 100644 index 22f2fc19..00000000 --- a/src/model/FindGoalResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GoalsResponseComponent from './GoalsResponseComponent'; - -/** - * The FindGoalResponse model module. - * @module model/FindGoalResponse - * @version 1.0.0 - */ -class FindGoalResponse { - /** - * Constructs a new FindGoalResponse. - * @alias module:model/FindGoalResponse - */ - constructor() { - - FindGoalResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FindGoalResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FindGoalResponse} obj Optional instance to populate. - * @return {module:model/FindGoalResponse} The populated FindGoalResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FindGoalResponse(); - - if (data.hasOwnProperty('goals')) { - obj['goals'] = ApiClient.convertToType(data['goals'], [GoalsResponseComponent]); - - delete data['goals']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Array.} goals - */ -FindGoalResponse.prototype['goals'] = undefined; - - - - - - -export default FindGoalResponse; - diff --git a/src/model/FindProductsByNameResponse.js b/src/model/FindProductsByNameResponse.js deleted file mode 100644 index 9ce6976b..00000000 --- a/src/model/FindProductsByNameResponse.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FindProductsByNameResponseData from './FindProductsByNameResponseData'; - -/** - * The FindProductsByNameResponse model module. - * @module model/FindProductsByNameResponse - * @version 1.0.0 - */ -class FindProductsByNameResponse { - /** - * Constructs a new FindProductsByNameResponse. - * @alias module:model/FindProductsByNameResponse - */ - constructor() { - - FindProductsByNameResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FindProductsByNameResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FindProductsByNameResponse} obj Optional instance to populate. - * @return {module:model/FindProductsByNameResponse} The populated FindProductsByNameResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FindProductsByNameResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FindProductsByNameResponseData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -FindProductsByNameResponse.prototype['success'] = undefined; - -/** - * @member {module:model/FindProductsByNameResponseData} data - */ -FindProductsByNameResponse.prototype['data'] = undefined; - -/** - * Any additional data related to the Products - * @member {Object} additional_data - */ -FindProductsByNameResponse.prototype['additional_data'] = undefined; - - - - - - -export default FindProductsByNameResponse; - diff --git a/src/model/FindProductsByNameResponseData.js b/src/model/FindProductsByNameResponseData.js deleted file mode 100644 index 6376b5db..00000000 --- a/src/model/FindProductsByNameResponseData.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FindProductsByNameResponseData model module. - * @module model/FindProductsByNameResponseData - * @version 1.0.0 - */ -class FindProductsByNameResponseData { - /** - * Constructs a new FindProductsByNameResponseData. - * @alias module:model/FindProductsByNameResponseData - */ - constructor() { - - FindProductsByNameResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FindProductsByNameResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FindProductsByNameResponseData} obj Optional instance to populate. - * @return {module:model/FindProductsByNameResponseData} The populated FindProductsByNameResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FindProductsByNameResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('variation_id')) { - obj['variation_id'] = ApiClient.convertToType(data['variation_id'], 'String'); - - delete data['variation_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('variation_name')) { - obj['variation_name'] = ApiClient.convertToType(data['variation_name'], 'String'); - - delete data['variation_name']; - } - if (data.hasOwnProperty('price')) { - obj['price'] = ApiClient.convertToType(data['price'], 'Number'); - - delete data['price']; - } - if (data.hasOwnProperty('price_formatted')) { - obj['price_formatted'] = ApiClient.convertToType(data['price_formatted'], 'String'); - - delete data['price_formatted']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the Product - * @member {Number} id - */ -FindProductsByNameResponseData.prototype['id'] = undefined; - -/** - * The ID of the price variation of the Product - * @member {String} variation_id - */ -FindProductsByNameResponseData.prototype['variation_id'] = undefined; - -/** - * The name of the Product - * @member {String} name - */ -FindProductsByNameResponseData.prototype['name'] = undefined; - -/** - * The title of the Product - * @member {String} title - */ -FindProductsByNameResponseData.prototype['title'] = undefined; - -/** - * The name of the price variation of the Product - * @member {String} variation_name - */ -FindProductsByNameResponseData.prototype['variation_name'] = undefined; - -/** - * The value corresponding to the Product price - * @member {Number} price - */ -FindProductsByNameResponseData.prototype['price'] = undefined; - -/** - * The Product price with the currency format - * @member {String} price_formatted - */ -FindProductsByNameResponseData.prototype['price_formatted'] = undefined; - - - - - - -export default FindProductsByNameResponseData; - diff --git a/src/model/FollowerData.js b/src/model/FollowerData.js deleted file mode 100644 index 785b0834..00000000 --- a/src/model/FollowerData.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FollowerData model module. - * @module model/FollowerData - * @version 1.0.0 - */ -class FollowerData { - /** - * Constructs a new FollowerData. - * @alias module:model/FollowerData - */ - constructor() { - - FollowerData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FollowerData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FollowerData} obj Optional instance to populate. - * @return {module:model/FollowerData} The populated FollowerData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FollowerData(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('pic_hash')) { - obj['pic_hash'] = ApiClient.convertToType(data['pic_hash'], 'String'); - - delete data['pic_hash']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the follower - * @member {String} name - */ -FollowerData.prototype['name'] = undefined; - -/** - * The email of the follower - * @member {String} email - */ -FollowerData.prototype['email'] = undefined; - -/** - * The user ID of the follower - * @member {Number} user_id - */ -FollowerData.prototype['user_id'] = undefined; - -/** - * The follower picture hash - * @member {String} pic_hash - */ -FollowerData.prototype['pic_hash'] = undefined; - - - - - - -export default FollowerData; - diff --git a/src/model/FollowerDataWithID.js b/src/model/FollowerDataWithID.js deleted file mode 100644 index cf5daf5f..00000000 --- a/src/model/FollowerDataWithID.js +++ /dev/null @@ -1,156 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FollowerData from './FollowerData'; -import FollowerDataWithIDAllOf from './FollowerDataWithIDAllOf'; - -/** - * The FollowerDataWithID model module. - * @module model/FollowerDataWithID - * @version 1.0.0 - */ -class FollowerDataWithID { - /** - * Constructs a new FollowerDataWithID. - * @alias module:model/FollowerDataWithID - * @implements module:model/FollowerDataWithIDAllOf - * @implements module:model/FollowerData - */ - constructor() { - FollowerDataWithIDAllOf.initialize(this);FollowerData.initialize(this); - FollowerDataWithID.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FollowerDataWithID from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FollowerDataWithID} obj Optional instance to populate. - * @return {module:model/FollowerDataWithID} The populated FollowerDataWithID instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FollowerDataWithID(); - FollowerDataWithIDAllOf.constructFromObject(data, obj); - FollowerData.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('pic_hash')) { - obj['pic_hash'] = ApiClient.convertToType(data['pic_hash'], 'String'); - - delete data['pic_hash']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the follower associated with the item - * @member {Number} id - */ -FollowerDataWithID.prototype['id'] = undefined; - -/** - * The name of the follower - * @member {String} name - */ -FollowerDataWithID.prototype['name'] = undefined; - -/** - * The email of the follower - * @member {String} email - */ -FollowerDataWithID.prototype['email'] = undefined; - -/** - * The user ID of the follower - * @member {Number} user_id - */ -FollowerDataWithID.prototype['user_id'] = undefined; - -/** - * The follower picture hash - * @member {String} pic_hash - */ -FollowerDataWithID.prototype['pic_hash'] = undefined; - - -// Implement FollowerDataWithIDAllOf interface: -/** - * The ID of the follower associated with the item - * @member {Number} id - */ -FollowerDataWithIDAllOf.prototype['id'] = undefined; -// Implement FollowerData interface: -/** - * The name of the follower - * @member {String} name - */ -FollowerData.prototype['name'] = undefined; -/** - * The email of the follower - * @member {String} email - */ -FollowerData.prototype['email'] = undefined; -/** - * The user ID of the follower - * @member {Number} user_id - */ -FollowerData.prototype['user_id'] = undefined; -/** - * The follower picture hash - * @member {String} pic_hash - */ -FollowerData.prototype['pic_hash'] = undefined; - - - - -export default FollowerDataWithID; - diff --git a/src/model/FollowerDataWithIDAllOf.js b/src/model/FollowerDataWithIDAllOf.js deleted file mode 100644 index dc3eca73..00000000 --- a/src/model/FollowerDataWithIDAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FollowerDataWithIDAllOf model module. - * @module model/FollowerDataWithIDAllOf - * @version 1.0.0 - */ -class FollowerDataWithIDAllOf { - /** - * Constructs a new FollowerDataWithIDAllOf. - * @alias module:model/FollowerDataWithIDAllOf - */ - constructor() { - - FollowerDataWithIDAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FollowerDataWithIDAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FollowerDataWithIDAllOf} obj Optional instance to populate. - * @return {module:model/FollowerDataWithIDAllOf} The populated FollowerDataWithIDAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FollowerDataWithIDAllOf(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the follower associated with the item - * @member {Number} id - */ -FollowerDataWithIDAllOf.prototype['id'] = undefined; - - - - - - -export default FollowerDataWithIDAllOf; - diff --git a/src/model/FullProjectObject.js b/src/model/FullProjectObject.js deleted file mode 100644 index fad9604a..00000000 --- a/src/model/FullProjectObject.js +++ /dev/null @@ -1,336 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectMandatoryObjectFragment from './ProjectMandatoryObjectFragment'; -import ProjectNotChangeableObjectFragment from './ProjectNotChangeableObjectFragment'; -import ProjectObjectFragment from './ProjectObjectFragment'; - -/** - * The FullProjectObject model module. - * @module model/FullProjectObject - * @version 1.0.0 - */ -class FullProjectObject { - /** - * Constructs a new FullProjectObject. - * @alias module:model/FullProjectObject - * @implements module:model/ProjectMandatoryObjectFragment - * @implements module:model/ProjectObjectFragment - * @implements module:model/ProjectNotChangeableObjectFragment - */ - constructor() { - ProjectMandatoryObjectFragment.initialize(this);ProjectObjectFragment.initialize(this);ProjectNotChangeableObjectFragment.initialize(this); - FullProjectObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FullProjectObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FullProjectObject} obj Optional instance to populate. - * @return {module:model/FullProjectObject} The populated FullProjectObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FullProjectObject(); - ProjectMandatoryObjectFragment.constructFromObject(data, obj); - ProjectObjectFragment.constructFromObject(data, obj); - ProjectNotChangeableObjectFragment.constructFromObject(data, obj); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('board_id')) { - obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); - - delete data['board_id']; - } - if (data.hasOwnProperty('phase_id')) { - obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); - - delete data['phase_id']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('start_date')) { - obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); - - delete data['start_date']; - } - if (data.hasOwnProperty('end_date')) { - obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); - - delete data['end_date']; - } - if (data.hasOwnProperty('deal_ids')) { - obj['deal_ids'] = ApiClient.convertToType(data['deal_ids'], ['Number']); - - delete data['deal_ids']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('labels')) { - obj['labels'] = ApiClient.convertToType(data['labels'], ['Number']); - - delete data['labels']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('status_change_time')) { - obj['status_change_time'] = ApiClient.convertToType(data['status_change_time'], 'String'); - - delete data['status_change_time']; - } - if (data.hasOwnProperty('archive_time')) { - obj['archive_time'] = ApiClient.convertToType(data['archive_time'], 'String'); - - delete data['archive_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the project - * @member {String} title - */ -FullProjectObject.prototype['title'] = undefined; - -/** - * The ID of the board this project is associated with - * @member {Number} board_id - */ -FullProjectObject.prototype['board_id'] = undefined; - -/** - * The ID of the phase this project is associated with - * @member {Number} phase_id - */ -FullProjectObject.prototype['phase_id'] = undefined; - -/** - * The description of the project - * @member {String} description - */ -FullProjectObject.prototype['description'] = undefined; - -/** - * The status of the project - * @member {String} status - */ -FullProjectObject.prototype['status'] = undefined; - -/** - * The ID of a project owner - * @member {Number} owner_id - */ -FullProjectObject.prototype['owner_id'] = undefined; - -/** - * The start date of the project. Format: YYYY-MM-DD. - * @member {Date} start_date - */ -FullProjectObject.prototype['start_date'] = undefined; - -/** - * The end date of the project. Format: YYYY-MM-DD. - * @member {Date} end_date - */ -FullProjectObject.prototype['end_date'] = undefined; - -/** - * An array of IDs of the deals this project is associated with - * @member {Array.} deal_ids - */ -FullProjectObject.prototype['deal_ids'] = undefined; - -/** - * The ID of the organization this project is associated with - * @member {Number} org_id - */ -FullProjectObject.prototype['org_id'] = undefined; - -/** - * The ID of the person this project is associated with - * @member {Number} person_id - */ -FullProjectObject.prototype['person_id'] = undefined; - -/** - * An array of IDs of the labels this project has - * @member {Array.} labels - */ -FullProjectObject.prototype['labels'] = undefined; - -/** - * The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -FullProjectObject.prototype['add_time'] = undefined; - -/** - * The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -FullProjectObject.prototype['update_time'] = undefined; - -/** - * The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} status_change_time - */ -FullProjectObject.prototype['status_change_time'] = undefined; - -/** - * The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. - * @member {String} archive_time - */ -FullProjectObject.prototype['archive_time'] = undefined; - - -// Implement ProjectMandatoryObjectFragment interface: -/** - * The title of the project - * @member {String} title - */ -ProjectMandatoryObjectFragment.prototype['title'] = undefined; -/** - * The ID of the board this project is associated with - * @member {Number} board_id - */ -ProjectMandatoryObjectFragment.prototype['board_id'] = undefined; -/** - * The ID of the phase this project is associated with - * @member {Number} phase_id - */ -ProjectMandatoryObjectFragment.prototype['phase_id'] = undefined; -// Implement ProjectObjectFragment interface: -/** - * The description of the project - * @member {String} description - */ -ProjectObjectFragment.prototype['description'] = undefined; -/** - * The status of the project - * @member {String} status - */ -ProjectObjectFragment.prototype['status'] = undefined; -/** - * The ID of a project owner - * @member {Number} owner_id - */ -ProjectObjectFragment.prototype['owner_id'] = undefined; -/** - * The start date of the project. Format: YYYY-MM-DD. - * @member {Date} start_date - */ -ProjectObjectFragment.prototype['start_date'] = undefined; -/** - * The end date of the project. Format: YYYY-MM-DD. - * @member {Date} end_date - */ -ProjectObjectFragment.prototype['end_date'] = undefined; -/** - * An array of IDs of the deals this project is associated with - * @member {Array.} deal_ids - */ -ProjectObjectFragment.prototype['deal_ids'] = undefined; -/** - * The ID of the organization this project is associated with - * @member {Number} org_id - */ -ProjectObjectFragment.prototype['org_id'] = undefined; -/** - * The ID of the person this project is associated with - * @member {Number} person_id - */ -ProjectObjectFragment.prototype['person_id'] = undefined; -/** - * An array of IDs of the labels this project has - * @member {Array.} labels - */ -ProjectObjectFragment.prototype['labels'] = undefined; -// Implement ProjectNotChangeableObjectFragment interface: -/** - * The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -ProjectNotChangeableObjectFragment.prototype['add_time'] = undefined; -/** - * The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -ProjectNotChangeableObjectFragment.prototype['update_time'] = undefined; -/** - * The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} status_change_time - */ -ProjectNotChangeableObjectFragment.prototype['status_change_time'] = undefined; -/** - * The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. - * @member {String} archive_time - */ -ProjectNotChangeableObjectFragment.prototype['archive_time'] = undefined; - - - - -export default FullProjectObject; - diff --git a/src/model/FullRole.js b/src/model/FullRole.js deleted file mode 100644 index 935ef26a..00000000 --- a/src/model/FullRole.js +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FullRoleAllOf from './FullRoleAllOf'; -import SubRole from './SubRole'; - -/** - * The FullRole model module. - * @module model/FullRole - * @version 1.0.0 - */ -class FullRole { - /** - * Constructs a new FullRole. - * @alias module:model/FullRole - * @implements module:model/SubRole - * @implements module:model/FullRoleAllOf - */ - constructor() { - SubRole.initialize(this);FullRoleAllOf.initialize(this); - FullRole.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FullRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FullRole} obj Optional instance to populate. - * @return {module:model/FullRole} The populated FullRole instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FullRole(); - SubRole.constructFromObject(data, obj); - FullRoleAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('parent_role_id')) { - obj['parent_role_id'] = ApiClient.convertToType(data['parent_role_id'], 'Number'); - - delete data['parent_role_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('assignment_count')) { - obj['assignment_count'] = ApiClient.convertToType(data['assignment_count'], 'String'); - - delete data['assignment_count']; - } - if (data.hasOwnProperty('sub_role_count')) { - obj['sub_role_count'] = ApiClient.convertToType(data['sub_role_count'], 'String'); - - delete data['sub_role_count']; - } - if (data.hasOwnProperty('level')) { - obj['level'] = ApiClient.convertToType(data['level'], 'Number'); - - delete data['level']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the parent role - * @member {Number} parent_role_id - */ -FullRole.prototype['parent_role_id'] = undefined; - -/** - * The name of the role - * @member {String} name - */ -FullRole.prototype['name'] = undefined; - -/** - * The ID of the role - * @member {Number} id - */ -FullRole.prototype['id'] = undefined; - -/** - * Whether the role is active or not - * @member {Boolean} active_flag - */ -FullRole.prototype['active_flag'] = undefined; - -/** - * The number of users assigned to this role - * @member {String} assignment_count - */ -FullRole.prototype['assignment_count'] = undefined; - -/** - * The number of sub-roles - * @member {String} sub_role_count - */ -FullRole.prototype['sub_role_count'] = undefined; - -/** - * The level of role in the role hierarchy - * @member {Number} level - */ -FullRole.prototype['level'] = undefined; - - -// Implement SubRole interface: -/** - * The ID of the parent role - * @member {Number} parent_role_id - */ -SubRole.prototype['parent_role_id'] = undefined; -/** - * The name of the role - * @member {String} name - */ -SubRole.prototype['name'] = undefined; -/** - * The ID of the role - * @member {Number} id - */ -SubRole.prototype['id'] = undefined; -/** - * Whether the role is active or not - * @member {Boolean} active_flag - */ -SubRole.prototype['active_flag'] = undefined; -/** - * The number of users assigned to this role - * @member {String} assignment_count - */ -SubRole.prototype['assignment_count'] = undefined; -/** - * The number of sub-roles - * @member {String} sub_role_count - */ -SubRole.prototype['sub_role_count'] = undefined; -// Implement FullRoleAllOf interface: -/** - * The level of role in the role hierarchy - * @member {Number} level - */ -FullRoleAllOf.prototype['level'] = undefined; - - - - -export default FullRole; - diff --git a/src/model/FullRoleAllOf.js b/src/model/FullRoleAllOf.js deleted file mode 100644 index 4db2662c..00000000 --- a/src/model/FullRoleAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The FullRoleAllOf model module. - * @module model/FullRoleAllOf - * @version 1.0.0 - */ -class FullRoleAllOf { - /** - * Constructs a new FullRoleAllOf. - * @alias module:model/FullRoleAllOf - */ - constructor() { - - FullRoleAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FullRoleAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FullRoleAllOf} obj Optional instance to populate. - * @return {module:model/FullRoleAllOf} The populated FullRoleAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FullRoleAllOf(); - - if (data.hasOwnProperty('level')) { - obj['level'] = ApiClient.convertToType(data['level'], 'Number'); - - delete data['level']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The level of role in the role hierarchy - * @member {Number} level - */ -FullRoleAllOf.prototype['level'] = undefined; - - - - - - -export default FullRoleAllOf; - diff --git a/src/model/FullTaskObject.js b/src/model/FullTaskObject.js deleted file mode 100644 index 88d7fd10..00000000 --- a/src/model/FullTaskObject.js +++ /dev/null @@ -1,257 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBoolean from './NumberBoolean'; -import TaskMandatoryObjectFragment from './TaskMandatoryObjectFragment'; -import TaskNotChangeableObjectFragment from './TaskNotChangeableObjectFragment'; -import TaskObjectFragment from './TaskObjectFragment'; - -/** - * The FullTaskObject model module. - * @module model/FullTaskObject - * @version 1.0.0 - */ -class FullTaskObject { - /** - * Constructs a new FullTaskObject. - * @alias module:model/FullTaskObject - * @implements module:model/TaskMandatoryObjectFragment - * @implements module:model/TaskObjectFragment - * @implements module:model/TaskNotChangeableObjectFragment - */ - constructor() { - TaskMandatoryObjectFragment.initialize(this);TaskObjectFragment.initialize(this);TaskNotChangeableObjectFragment.initialize(this); - FullTaskObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a FullTaskObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/FullTaskObject} obj Optional instance to populate. - * @return {module:model/FullTaskObject} The populated FullTaskObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new FullTaskObject(); - TaskMandatoryObjectFragment.constructFromObject(data, obj); - TaskObjectFragment.constructFromObject(data, obj); - TaskNotChangeableObjectFragment.constructFromObject(data, obj); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('project_id')) { - obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); - - delete data['project_id']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('parent_task_id')) { - obj['parent_task_id'] = ApiClient.convertToType(data['parent_task_id'], 'Number'); - - delete data['parent_task_id']; - } - if (data.hasOwnProperty('assignee_id')) { - obj['assignee_id'] = ApiClient.convertToType(data['assignee_id'], 'Number'); - - delete data['assignee_id']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); - - delete data['done']; - } - if (data.hasOwnProperty('due_date')) { - obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); - - delete data['due_date']; - } - if (data.hasOwnProperty('creator_id')) { - obj['creator_id'] = ApiClient.convertToType(data['creator_id'], 'Number'); - - delete data['creator_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('marked_as_done_time')) { - obj['marked_as_done_time'] = ApiClient.convertToType(data['marked_as_done_time'], 'String'); - - delete data['marked_as_done_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the task - * @member {String} title - */ -FullTaskObject.prototype['title'] = undefined; - -/** - * The ID of the project this task is associated with - * @member {Number} project_id - */ -FullTaskObject.prototype['project_id'] = undefined; - -/** - * The description of the task - * @member {String} description - */ -FullTaskObject.prototype['description'] = undefined; - -/** - * The ID of a parent task. Can not be ID of a task which is already a subtask. - * @member {Number} parent_task_id - */ -FullTaskObject.prototype['parent_task_id'] = undefined; - -/** - * The ID of the user who will be the assignee of the task - * @member {Number} assignee_id - */ -FullTaskObject.prototype['assignee_id'] = undefined; - -/** - * Whether the task is done or not. 0 = Not done, 1 = Done. - * @member {module:model/NumberBoolean} done - */ -FullTaskObject.prototype['done'] = undefined; - -/** - * The due date of the task. Format: YYYY-MM-DD. - * @member {Date} due_date - */ -FullTaskObject.prototype['due_date'] = undefined; - -/** - * The creator of a task - * @member {Number} creator_id - */ -FullTaskObject.prototype['creator_id'] = undefined; - -/** - * The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -FullTaskObject.prototype['add_time'] = undefined; - -/** - * The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -FullTaskObject.prototype['update_time'] = undefined; - -/** - * The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} marked_as_done_time - */ -FullTaskObject.prototype['marked_as_done_time'] = undefined; - - -// Implement TaskMandatoryObjectFragment interface: -/** - * The title of the task - * @member {String} title - */ -TaskMandatoryObjectFragment.prototype['title'] = undefined; -/** - * The ID of the project this task is associated with - * @member {Number} project_id - */ -TaskMandatoryObjectFragment.prototype['project_id'] = undefined; -// Implement TaskObjectFragment interface: -/** - * The description of the task - * @member {String} description - */ -TaskObjectFragment.prototype['description'] = undefined; -/** - * The ID of a parent task. Can not be ID of a task which is already a subtask. - * @member {Number} parent_task_id - */ -TaskObjectFragment.prototype['parent_task_id'] = undefined; -/** - * The ID of the user who will be the assignee of the task - * @member {Number} assignee_id - */ -TaskObjectFragment.prototype['assignee_id'] = undefined; -/** - * Whether the task is done or not. 0 = Not done, 1 = Done. - * @member {module:model/NumberBoolean} done - */ -TaskObjectFragment.prototype['done'] = undefined; -/** - * The due date of the task. Format: YYYY-MM-DD. - * @member {Date} due_date - */ -TaskObjectFragment.prototype['due_date'] = undefined; -// Implement TaskNotChangeableObjectFragment interface: -/** - * The creator of a task - * @member {Number} creator_id - */ -TaskNotChangeableObjectFragment.prototype['creator_id'] = undefined; -/** - * The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -TaskNotChangeableObjectFragment.prototype['add_time'] = undefined; -/** - * The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -TaskNotChangeableObjectFragment.prototype['update_time'] = undefined; -/** - * The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} marked_as_done_time - */ -TaskNotChangeableObjectFragment.prototype['marked_as_done_time'] = undefined; - - - - -export default FullTaskObject; - diff --git a/src/model/GetActivitiesCollectionResponse.js b/src/model/GetActivitiesCollectionResponse.js deleted file mode 100644 index 034295a2..00000000 --- a/src/model/GetActivitiesCollectionResponse.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityCollectionResponseObject from './ActivityCollectionResponseObject'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; - -/** - * The GetActivitiesCollectionResponse model module. - * @module model/GetActivitiesCollectionResponse - * @version 1.0.0 - */ -class GetActivitiesCollectionResponse { - /** - * Constructs a new GetActivitiesCollectionResponse. - * @alias module:model/GetActivitiesCollectionResponse - */ - constructor() { - - GetActivitiesCollectionResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetActivitiesCollectionResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetActivitiesCollectionResponse} obj Optional instance to populate. - * @return {module:model/GetActivitiesCollectionResponse} The populated GetActivitiesCollectionResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetActivitiesCollectionResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ActivityCollectionResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetActivitiesCollectionResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetActivitiesCollectionResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -GetActivitiesCollectionResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetActivitiesCollectionResponse; - diff --git a/src/model/GetActivitiesCollectionResponse200.js b/src/model/GetActivitiesCollectionResponse200.js deleted file mode 100644 index 7785db6e..00000000 --- a/src/model/GetActivitiesCollectionResponse200.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityCollectionResponseObject from './ActivityCollectionResponseObject'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; - -/** - * The GetActivitiesCollectionResponse200 model module. - * @module model/GetActivitiesCollectionResponse200 - * @version 1.0.0 - */ -class GetActivitiesCollectionResponse200 { - /** - * Constructs a new GetActivitiesCollectionResponse200. - * @alias module:model/GetActivitiesCollectionResponse200 - */ - constructor() { - - GetActivitiesCollectionResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetActivitiesCollectionResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetActivitiesCollectionResponse200} obj Optional instance to populate. - * @return {module:model/GetActivitiesCollectionResponse200} The populated GetActivitiesCollectionResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetActivitiesCollectionResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ActivityCollectionResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetActivitiesCollectionResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetActivitiesCollectionResponse200.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -GetActivitiesCollectionResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetActivitiesCollectionResponse200; - diff --git a/src/model/GetActivitiesResponse.js b/src/model/GetActivitiesResponse.js deleted file mode 100644 index 3841fc51..00000000 --- a/src/model/GetActivitiesResponse.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityResponseObject from './ActivityResponseObject'; -import GetActivitiesResponseRelatedObjects from './GetActivitiesResponseRelatedObjects'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; - -/** - * The GetActivitiesResponse model module. - * @module model/GetActivitiesResponse - * @version 1.0.0 - */ -class GetActivitiesResponse { - /** - * Constructs a new GetActivitiesResponse. - * @alias module:model/GetActivitiesResponse - */ - constructor() { - - GetActivitiesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetActivitiesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetActivitiesResponse} obj Optional instance to populate. - * @return {module:model/GetActivitiesResponse} The populated GetActivitiesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetActivitiesResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ActivityResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = GetActivitiesResponseRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetActivitiesResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetActivitiesResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -GetActivitiesResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/GetActivitiesResponseRelatedObjects} related_objects - */ -GetActivitiesResponse.prototype['related_objects'] = undefined; - - - - - - -export default GetActivitiesResponse; - diff --git a/src/model/GetActivitiesResponse200.js b/src/model/GetActivitiesResponse200.js deleted file mode 100644 index 67f159c0..00000000 --- a/src/model/GetActivitiesResponse200.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityResponseObject from './ActivityResponseObject'; -import GetActivitiesResponse200RelatedObjects from './GetActivitiesResponse200RelatedObjects'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; - -/** - * The GetActivitiesResponse200 model module. - * @module model/GetActivitiesResponse200 - * @version 1.0.0 - */ -class GetActivitiesResponse200 { - /** - * Constructs a new GetActivitiesResponse200. - * @alias module:model/GetActivitiesResponse200 - */ - constructor() { - - GetActivitiesResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetActivitiesResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetActivitiesResponse200} obj Optional instance to populate. - * @return {module:model/GetActivitiesResponse200} The populated GetActivitiesResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetActivitiesResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ActivityResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = GetActivitiesResponse200RelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetActivitiesResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetActivitiesResponse200.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -GetActivitiesResponse200.prototype['additional_data'] = undefined; - -/** - * @member {module:model/GetActivitiesResponse200RelatedObjects} related_objects - */ -GetActivitiesResponse200.prototype['related_objects'] = undefined; - - - - - - -export default GetActivitiesResponse200; - diff --git a/src/model/GetActivitiesResponse200RelatedObjects.js b/src/model/GetActivitiesResponse200RelatedObjects.js deleted file mode 100644 index c1e5d0f1..00000000 --- a/src/model/GetActivitiesResponse200RelatedObjects.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedDealData from './RelatedDealData'; -import RelatedOrganizationData from './RelatedOrganizationData'; -import RelatedPersonData from './RelatedPersonData'; -import RelatedUserData from './RelatedUserData'; - -/** - * The GetActivitiesResponse200RelatedObjects model module. - * @module model/GetActivitiesResponse200RelatedObjects - * @version 1.0.0 - */ -class GetActivitiesResponse200RelatedObjects { - /** - * Constructs a new GetActivitiesResponse200RelatedObjects. - * @alias module:model/GetActivitiesResponse200RelatedObjects - */ - constructor() { - - GetActivitiesResponse200RelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetActivitiesResponse200RelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetActivitiesResponse200RelatedObjects} obj Optional instance to populate. - * @return {module:model/GetActivitiesResponse200RelatedObjects} The populated GetActivitiesResponse200RelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetActivitiesResponse200RelatedObjects(); - - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - if (data.hasOwnProperty('deal')) { - obj['deal'] = RelatedDealData.constructFromObject(data['deal']); - - delete data['deal']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = RelatedPersonData.constructFromObject(data['person']); - - delete data['person']; - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationData.constructFromObject(data['organization']); - - delete data['organization']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedUserData} user - */ -GetActivitiesResponse200RelatedObjects.prototype['user'] = undefined; - -/** - * @member {module:model/RelatedDealData} deal - */ -GetActivitiesResponse200RelatedObjects.prototype['deal'] = undefined; - -/** - * @member {module:model/RelatedPersonData} person - */ -GetActivitiesResponse200RelatedObjects.prototype['person'] = undefined; - -/** - * @member {module:model/RelatedOrganizationData} organization - */ -GetActivitiesResponse200RelatedObjects.prototype['organization'] = undefined; - - - - - - -export default GetActivitiesResponse200RelatedObjects; - diff --git a/src/model/GetActivitiesResponseRelatedObjects.js b/src/model/GetActivitiesResponseRelatedObjects.js deleted file mode 100644 index 1aee4882..00000000 --- a/src/model/GetActivitiesResponseRelatedObjects.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedDealData from './RelatedDealData'; -import RelatedOrganizationData from './RelatedOrganizationData'; -import RelatedPersonData from './RelatedPersonData'; -import RelatedUserData from './RelatedUserData'; - -/** - * The GetActivitiesResponseRelatedObjects model module. - * @module model/GetActivitiesResponseRelatedObjects - * @version 1.0.0 - */ -class GetActivitiesResponseRelatedObjects { - /** - * Constructs a new GetActivitiesResponseRelatedObjects. - * @alias module:model/GetActivitiesResponseRelatedObjects - */ - constructor() { - - GetActivitiesResponseRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetActivitiesResponseRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetActivitiesResponseRelatedObjects} obj Optional instance to populate. - * @return {module:model/GetActivitiesResponseRelatedObjects} The populated GetActivitiesResponseRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetActivitiesResponseRelatedObjects(); - - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - if (data.hasOwnProperty('deal')) { - obj['deal'] = RelatedDealData.constructFromObject(data['deal']); - - delete data['deal']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = RelatedPersonData.constructFromObject(data['person']); - - delete data['person']; - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationData.constructFromObject(data['organization']); - - delete data['organization']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedUserData} user - */ -GetActivitiesResponseRelatedObjects.prototype['user'] = undefined; - -/** - * @member {module:model/RelatedDealData} deal - */ -GetActivitiesResponseRelatedObjects.prototype['deal'] = undefined; - -/** - * @member {module:model/RelatedPersonData} person - */ -GetActivitiesResponseRelatedObjects.prototype['person'] = undefined; - -/** - * @member {module:model/RelatedOrganizationData} organization - */ -GetActivitiesResponseRelatedObjects.prototype['organization'] = undefined; - - - - - - -export default GetActivitiesResponseRelatedObjects; - diff --git a/src/model/GetActivityResponse.js b/src/model/GetActivityResponse.js deleted file mode 100644 index d1eab3f9..00000000 --- a/src/model/GetActivityResponse.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityResponseObject from './ActivityResponseObject'; -import GetActivitiesResponseRelatedObjects from './GetActivitiesResponseRelatedObjects'; - -/** - * The GetActivityResponse model module. - * @module model/GetActivityResponse - * @version 1.0.0 - */ -class GetActivityResponse { - /** - * Constructs a new GetActivityResponse. - * @alias module:model/GetActivityResponse - */ - constructor() { - - GetActivityResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetActivityResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetActivityResponse} obj Optional instance to populate. - * @return {module:model/GetActivityResponse} The populated GetActivityResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetActivityResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = GetActivitiesResponseRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetActivityResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ActivityResponseObject} data - */ -GetActivityResponse.prototype['data'] = undefined; - -/** - * @member {module:model/GetActivitiesResponseRelatedObjects} related_objects - */ -GetActivityResponse.prototype['related_objects'] = undefined; - - - - - - -export default GetActivityResponse; - diff --git a/src/model/GetActivityResponse200.js b/src/model/GetActivityResponse200.js deleted file mode 100644 index de9d3b92..00000000 --- a/src/model/GetActivityResponse200.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityResponseObject from './ActivityResponseObject'; -import GetActivitiesResponse200RelatedObjects from './GetActivitiesResponse200RelatedObjects'; - -/** - * The GetActivityResponse200 model module. - * @module model/GetActivityResponse200 - * @version 1.0.0 - */ -class GetActivityResponse200 { - /** - * Constructs a new GetActivityResponse200. - * @alias module:model/GetActivityResponse200 - */ - constructor() { - - GetActivityResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetActivityResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetActivityResponse200} obj Optional instance to populate. - * @return {module:model/GetActivityResponse200} The populated GetActivityResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetActivityResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = GetActivitiesResponse200RelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetActivityResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/ActivityResponseObject} data - */ -GetActivityResponse200.prototype['data'] = undefined; - -/** - * @member {module:model/GetActivitiesResponse200RelatedObjects} related_objects - */ -GetActivityResponse200.prototype['related_objects'] = undefined; - - - - - - -export default GetActivityResponse200; - diff --git a/src/model/GetAddProductAttachementDetails.js b/src/model/GetAddProductAttachementDetails.js deleted file mode 100644 index a0338da9..00000000 --- a/src/model/GetAddProductAttachementDetails.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddProductAttachmentDetails from './AddProductAttachmentDetails'; - -/** - * The GetAddProductAttachementDetails model module. - * @module model/GetAddProductAttachementDetails - * @version 1.0.0 - */ -class GetAddProductAttachementDetails { - /** - * Constructs a new GetAddProductAttachementDetails. - * @alias module:model/GetAddProductAttachementDetails - */ - constructor() { - - GetAddProductAttachementDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetAddProductAttachementDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAddProductAttachementDetails} obj Optional instance to populate. - * @return {module:model/GetAddProductAttachementDetails} The populated GetAddProductAttachementDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAddProductAttachementDetails(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], AddProductAttachmentDetails); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetAddProductAttachementDetails.prototype['success'] = undefined; - -/** - * The added product object attached to the deal - * @member {module:model/AddProductAttachmentDetails} data - */ -GetAddProductAttachementDetails.prototype['data'] = undefined; - - - - - - -export default GetAddProductAttachementDetails; - diff --git a/src/model/GetAddProductAttachmentDetails.js b/src/model/GetAddProductAttachmentDetails.js deleted file mode 100644 index 663d1bcf..00000000 --- a/src/model/GetAddProductAttachmentDetails.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddProductAttachmentDetails from './AddProductAttachmentDetails'; - -/** - * The GetAddProductAttachmentDetails model module. - * @module model/GetAddProductAttachmentDetails - * @version 1.0.0 - */ -class GetAddProductAttachmentDetails { - /** - * Constructs a new GetAddProductAttachmentDetails. - * @alias module:model/GetAddProductAttachmentDetails - */ - constructor() { - - GetAddProductAttachmentDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetAddProductAttachmentDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAddProductAttachmentDetails} obj Optional instance to populate. - * @return {module:model/GetAddProductAttachmentDetails} The populated GetAddProductAttachmentDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAddProductAttachmentDetails(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], AddProductAttachmentDetails); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetAddProductAttachmentDetails.prototype['success'] = undefined; - -/** - * The added product object attached to the deal - * @member {module:model/AddProductAttachmentDetails} data - */ -GetAddProductAttachmentDetails.prototype['data'] = undefined; - - - - - - -export default GetAddProductAttachmentDetails; - diff --git a/src/model/GetAddUpdateStage.js b/src/model/GetAddUpdateStage.js deleted file mode 100644 index cedde708..00000000 --- a/src/model/GetAddUpdateStage.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseStage from './BaseStage'; - -/** - * The GetAddUpdateStage model module. - * @module model/GetAddUpdateStage - * @version 1.0.0 - */ -class GetAddUpdateStage { - /** - * Constructs a new GetAddUpdateStage. - * @alias module:model/GetAddUpdateStage - */ - constructor() { - - GetAddUpdateStage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetAddUpdateStage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAddUpdateStage} obj Optional instance to populate. - * @return {module:model/GetAddUpdateStage} The populated GetAddUpdateStage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAddUpdateStage(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseStage.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetAddUpdateStage.prototype['success'] = undefined; - -/** - * @member {module:model/BaseStage} data - */ -GetAddUpdateStage.prototype['data'] = undefined; - - - - - - -export default GetAddUpdateStage; - diff --git a/src/model/GetAddedDeal.js b/src/model/GetAddedDeal.js deleted file mode 100644 index 741133d9..00000000 --- a/src/model/GetAddedDeal.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealNonStrict from './DealNonStrict'; -import GetDealsRelatedObjects from './GetDealsRelatedObjects'; - -/** - * The GetAddedDeal model module. - * @module model/GetAddedDeal - * @version 1.0.0 - */ -class GetAddedDeal { - /** - * Constructs a new GetAddedDeal. - * @alias module:model/GetAddedDeal - */ - constructor() { - - GetAddedDeal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetAddedDeal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAddedDeal} obj Optional instance to populate. - * @return {module:model/GetAddedDeal} The populated GetAddedDeal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAddedDeal(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DealNonStrict.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = GetDealsRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetAddedDeal.prototype['success'] = undefined; - -/** - * @member {module:model/DealNonStrict} data - */ -GetAddedDeal.prototype['data'] = undefined; - -/** - * @member {module:model/GetDealsRelatedObjects} related_objects - */ -GetAddedDeal.prototype['related_objects'] = undefined; - - - - - - -export default GetAddedDeal; - diff --git a/src/model/GetAddedDealAdditionalData.js b/src/model/GetAddedDealAdditionalData.js deleted file mode 100644 index 91866806..00000000 --- a/src/model/GetAddedDealAdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetAddedDealAdditionalData model module. - * @module model/GetAddedDealAdditionalData - * @version 1.0.0 - */ -class GetAddedDealAdditionalData { - /** - * Constructs a new GetAddedDealAdditionalData. - * @alias module:model/GetAddedDealAdditionalData - */ - constructor() { - - GetAddedDealAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetAddedDealAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAddedDealAdditionalData} obj Optional instance to populate. - * @return {module:model/GetAddedDealAdditionalData} The populated GetAddedDealAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAddedDealAdditionalData(); - - if (data.hasOwnProperty('matches_filters')) { - obj['matches_filters'] = ApiClient.convertToType(data['matches_filters'], ['Number']); - - delete data['matches_filters']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of filter ID's with what this added deal matches - * @member {Array.} matches_filters - */ -GetAddedDealAdditionalData.prototype['matches_filters'] = undefined; - - - - - - -export default GetAddedDealAdditionalData; - diff --git a/src/model/GetAllFiles.js b/src/model/GetAllFiles.js deleted file mode 100644 index 993edfc5..00000000 --- a/src/model/GetAllFiles.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithPaginationDetails from './AdditionalDataWithPaginationDetails'; -import FileData from './FileData'; - -/** - * The GetAllFiles model module. - * @module model/GetAllFiles - * @version 1.0.0 - */ -class GetAllFiles { - /** - * Constructs a new GetAllFiles. - * @alias module:model/GetAllFiles - */ - constructor() { - - GetAllFiles.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetAllFiles from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAllFiles} obj Optional instance to populate. - * @return {module:model/GetAllFiles} The populated GetAllFiles instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllFiles(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [FileData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithPaginationDetails.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetAllFiles.prototype['success'] = undefined; - -/** - * The array of all uploaded files - * @member {Array.} data - */ -GetAllFiles.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithPaginationDetails} additional_data - */ -GetAllFiles.prototype['additional_data'] = undefined; - - - - - - -export default GetAllFiles; - diff --git a/src/model/GetAllPersonsResponse.js b/src/model/GetAllPersonsResponse.js deleted file mode 100644 index 37440d27..00000000 --- a/src/model/GetAllPersonsResponse.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import BaseResponse from './BaseResponse'; -import GetAllPersonsResponseAllOf from './GetAllPersonsResponseAllOf'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import PersonItem from './PersonItem'; - -/** - * The GetAllPersonsResponse model module. - * @module model/GetAllPersonsResponse - * @version 1.0.0 - */ -class GetAllPersonsResponse { - /** - * Constructs a new GetAllPersonsResponse. - * @alias module:model/GetAllPersonsResponse - * @implements module:model/BaseResponse - * @implements module:model/GetAllPersonsResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);GetAllPersonsResponseAllOf.initialize(this); - GetAllPersonsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetAllPersonsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAllPersonsResponse} obj Optional instance to populate. - * @return {module:model/GetAllPersonsResponse} The populated GetAllPersonsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllPersonsResponse(); - BaseResponse.constructFromObject(data, obj); - GetAllPersonsResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PersonItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetAllPersonsResponse.prototype['success'] = undefined; - -/** - * The array of persons - * @member {Array.} data - */ -GetAllPersonsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -GetAllPersonsResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -GetAllPersonsResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetAllPersonsResponseAllOf interface: -/** - * The array of persons - * @member {Array.} data - */ -GetAllPersonsResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -GetAllPersonsResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -GetAllPersonsResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default GetAllPersonsResponse; - diff --git a/src/model/GetAllPersonsResponseAllOf.js b/src/model/GetAllPersonsResponseAllOf.js deleted file mode 100644 index a38ec2dc..00000000 --- a/src/model/GetAllPersonsResponseAllOf.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import PersonItem from './PersonItem'; - -/** - * The GetAllPersonsResponseAllOf model module. - * @module model/GetAllPersonsResponseAllOf - * @version 1.0.0 - */ -class GetAllPersonsResponseAllOf { - /** - * Constructs a new GetAllPersonsResponseAllOf. - * @alias module:model/GetAllPersonsResponseAllOf - */ - constructor() { - - GetAllPersonsResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetAllPersonsResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAllPersonsResponseAllOf} obj Optional instance to populate. - * @return {module:model/GetAllPersonsResponseAllOf} The populated GetAllPersonsResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllPersonsResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PersonItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of persons - * @member {Array.} data - */ -GetAllPersonsResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -GetAllPersonsResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -GetAllPersonsResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default GetAllPersonsResponseAllOf; - diff --git a/src/model/GetAllPipelines.js b/src/model/GetAllPipelines.js deleted file mode 100644 index e36fb931..00000000 --- a/src/model/GetAllPipelines.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePipelineWithSelectedFlag from './BasePipelineWithSelectedFlag'; -import BaseResponse from './BaseResponse'; -import GetAllPipelinesAllOf from './GetAllPipelinesAllOf'; - -/** - * The GetAllPipelines model module. - * @module model/GetAllPipelines - * @version 1.0.0 - */ -class GetAllPipelines { - /** - * Constructs a new GetAllPipelines. - * @alias module:model/GetAllPipelines - * @implements module:model/BaseResponse - * @implements module:model/GetAllPipelinesAllOf - */ - constructor() { - BaseResponse.initialize(this);GetAllPipelinesAllOf.initialize(this); - GetAllPipelines.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetAllPipelines from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAllPipelines} obj Optional instance to populate. - * @return {module:model/GetAllPipelines} The populated GetAllPipelines instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllPipelines(); - BaseResponse.constructFromObject(data, obj); - GetAllPipelinesAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BasePipelineWithSelectedFlag]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetAllPipelines.prototype['success'] = undefined; - -/** - * Pipelines array - * @member {Array.} data - */ -GetAllPipelines.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetAllPipelinesAllOf interface: -/** - * Pipelines array - * @member {Array.} data - */ -GetAllPipelinesAllOf.prototype['data'] = undefined; - - - - -export default GetAllPipelines; - diff --git a/src/model/GetAllPipelinesAllOf.js b/src/model/GetAllPipelinesAllOf.js deleted file mode 100644 index 4cf5225f..00000000 --- a/src/model/GetAllPipelinesAllOf.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePipelineWithSelectedFlag from './BasePipelineWithSelectedFlag'; - -/** - * The GetAllPipelinesAllOf model module. - * @module model/GetAllPipelinesAllOf - * @version 1.0.0 - */ -class GetAllPipelinesAllOf { - /** - * Constructs a new GetAllPipelinesAllOf. - * @alias module:model/GetAllPipelinesAllOf - */ - constructor() { - - GetAllPipelinesAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetAllPipelinesAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAllPipelinesAllOf} obj Optional instance to populate. - * @return {module:model/GetAllPipelinesAllOf} The populated GetAllPipelinesAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllPipelinesAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BasePipelineWithSelectedFlag]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Pipelines array - * @member {Array.} data - */ -GetAllPipelinesAllOf.prototype['data'] = undefined; - - - - - - -export default GetAllPipelinesAllOf; - diff --git a/src/model/GetAllProductFieldsResponse.js b/src/model/GetAllProductFieldsResponse.js deleted file mode 100644 index eefccf84..00000000 --- a/src/model/GetAllProductFieldsResponse.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetProductField from './GetProductField'; - -/** - * The GetAllProductFieldsResponse model module. - * @module model/GetAllProductFieldsResponse - * @version 1.0.0 - */ -class GetAllProductFieldsResponse { - /** - * Constructs a new GetAllProductFieldsResponse. - * @alias module:model/GetAllProductFieldsResponse - */ - constructor() { - - GetAllProductFieldsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetAllProductFieldsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetAllProductFieldsResponse} obj Optional instance to populate. - * @return {module:model/GetAllProductFieldsResponse} The populated GetAllProductFieldsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetAllProductFieldsResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [GetProductField]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetAllProductFieldsResponse.prototype['success'] = undefined; - -/** - * Array containing data for all product fields - * @member {Array.} data - */ -GetAllProductFieldsResponse.prototype['data'] = undefined; - -/** - * Additional data for the product field, such as pagination - * @member {Object} additional_data - */ -GetAllProductFieldsResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetAllProductFieldsResponse; - diff --git a/src/model/GetComments.js b/src/model/GetComments.js deleted file mode 100644 index 01452a51..00000000 --- a/src/model/GetComments.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithOffsetPagination from './AdditionalDataWithOffsetPagination'; -import BaseComment from './BaseComment'; - -/** - * The GetComments model module. - * @module model/GetComments - * @version 1.0.0 - */ -class GetComments { - /** - * Constructs a new GetComments. - * @alias module:model/GetComments - */ - constructor() { - - GetComments.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetComments from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetComments} obj Optional instance to populate. - * @return {module:model/GetComments} The populated GetComments instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetComments(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseComment]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithOffsetPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetComments.prototype['success'] = undefined; - -/** - * The array of comments - * @member {Array.} data - */ -GetComments.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithOffsetPagination} additional_data - */ -GetComments.prototype['additional_data'] = undefined; - - - - - - -export default GetComments; - diff --git a/src/model/GetDeal.js b/src/model/GetDeal.js deleted file mode 100644 index feac4341..00000000 --- a/src/model/GetDeal.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealNonStrictWithDetails from './DealNonStrictWithDetails'; -import GetDealAdditionalData from './GetDealAdditionalData'; -import GetDealRelatedObjects from './GetDealRelatedObjects'; - -/** - * The GetDeal model module. - * @module model/GetDeal - * @version 1.0.0 - */ -class GetDeal { - /** - * Constructs a new GetDeal. - * @alias module:model/GetDeal - */ - constructor() { - - GetDeal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDeal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDeal} obj Optional instance to populate. - * @return {module:model/GetDeal} The populated GetDeal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDeal(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DealNonStrictWithDetails.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = GetDealAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = GetDealRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetDeal.prototype['success'] = undefined; - -/** - * @member {module:model/DealNonStrictWithDetails} data - */ -GetDeal.prototype['data'] = undefined; - -/** - * @member {module:model/GetDealAdditionalData} additional_data - */ -GetDeal.prototype['additional_data'] = undefined; - -/** - * @member {module:model/GetDealRelatedObjects} related_objects - */ -GetDeal.prototype['related_objects'] = undefined; - - - - - - -export default GetDeal; - diff --git a/src/model/GetDealAdditionalData.js b/src/model/GetDealAdditionalData.js deleted file mode 100644 index 5e9b2fd0..00000000 --- a/src/model/GetDealAdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetDealAdditionalData model module. - * @module model/GetDealAdditionalData - * @version 1.0.0 - */ -class GetDealAdditionalData { - /** - * Constructs a new GetDealAdditionalData. - * @alias module:model/GetDealAdditionalData - */ - constructor() { - - GetDealAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealAdditionalData} obj Optional instance to populate. - * @return {module:model/GetDealAdditionalData} The populated GetDealAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealAdditionalData(); - - if (data.hasOwnProperty('dropbox_email')) { - obj['dropbox_email'] = ApiClient.convertToType(data['dropbox_email'], 'String'); - - delete data['dropbox_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The BCC email of the deal - * @member {String} dropbox_email - */ -GetDealAdditionalData.prototype['dropbox_email'] = undefined; - - - - - - -export default GetDealAdditionalData; - diff --git a/src/model/GetDealRelatedObjects.js b/src/model/GetDealRelatedObjects.js deleted file mode 100644 index 4f8e4cd4..00000000 --- a/src/model/GetDealRelatedObjects.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedOrganizationDataWithActiveFlag from './RelatedOrganizationDataWithActiveFlag'; -import RelatedPersonDataWithActiveFlag from './RelatedPersonDataWithActiveFlag'; -import RelatedUserData from './RelatedUserData'; - -/** - * The GetDealRelatedObjects model module. - * @module model/GetDealRelatedObjects - * @version 1.0.0 - */ -class GetDealRelatedObjects { - /** - * Constructs a new GetDealRelatedObjects. - * @alias module:model/GetDealRelatedObjects - */ - constructor() { - - GetDealRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealRelatedObjects} obj Optional instance to populate. - * @return {module:model/GetDealRelatedObjects} The populated GetDealRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealRelatedObjects(); - - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = RelatedPersonDataWithActiveFlag.constructFromObject(data['person']); - - delete data['person']; - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationDataWithActiveFlag.constructFromObject(data['organization']); - - delete data['organization']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedUserData} user - */ -GetDealRelatedObjects.prototype['user'] = undefined; - -/** - * @member {module:model/RelatedPersonDataWithActiveFlag} person - */ -GetDealRelatedObjects.prototype['person'] = undefined; - -/** - * @member {module:model/RelatedOrganizationDataWithActiveFlag} organization - */ -GetDealRelatedObjects.prototype['organization'] = undefined; - - - - - - -export default GetDealRelatedObjects; - diff --git a/src/model/GetDeals.js b/src/model/GetDeals.js deleted file mode 100644 index 348d617d..00000000 --- a/src/model/GetDeals.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import DealNonStrict from './DealNonStrict'; -import GetDealsRelatedObjects from './GetDealsRelatedObjects'; - -/** - * The GetDeals model module. - * @module model/GetDeals - * @version 1.0.0 - */ -class GetDeals { - /** - * Constructs a new GetDeals. - * @alias module:model/GetDeals - */ - constructor() { - - GetDeals.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDeals from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDeals} obj Optional instance to populate. - * @return {module:model/GetDeals} The populated GetDeals instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDeals(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [DealNonStrict]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = GetDealsRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetDeals.prototype['success'] = undefined; - -/** - * The array of deals - * @member {Array.} data - */ -GetDeals.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -GetDeals.prototype['additional_data'] = undefined; - -/** - * @member {module:model/GetDealsRelatedObjects} related_objects - */ -GetDeals.prototype['related_objects'] = undefined; - - - - - - -export default GetDeals; - diff --git a/src/model/GetDealsByName.js b/src/model/GetDealsByName.js deleted file mode 100644 index a09c80b0..00000000 --- a/src/model/GetDealsByName.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetDealsByNameAdditionalData from './GetDealsByNameAdditionalData'; -import GetDealsByNameData from './GetDealsByNameData'; - -/** - * The GetDealsByName model module. - * @module model/GetDealsByName - * @version 1.0.0 - */ -class GetDealsByName { - /** - * Constructs a new GetDealsByName. - * @alias module:model/GetDealsByName - */ - constructor() { - - GetDealsByName.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsByName from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsByName} obj Optional instance to populate. - * @return {module:model/GetDealsByName} The populated GetDealsByName instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsByName(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [GetDealsByNameData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = GetDealsByNameAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetDealsByName.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetDealsByName.prototype['data'] = undefined; - -/** - * @member {module:model/GetDealsByNameAdditionalData} additional_data - */ -GetDealsByName.prototype['additional_data'] = undefined; - - - - - - -export default GetDealsByName; - diff --git a/src/model/GetDealsByNameAdditionalData.js b/src/model/GetDealsByNameAdditionalData.js deleted file mode 100644 index 26fd182f..00000000 --- a/src/model/GetDealsByNameAdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; - -/** - * The GetDealsByNameAdditionalData model module. - * @module model/GetDealsByNameAdditionalData - * @version 1.0.0 - */ -class GetDealsByNameAdditionalData { - /** - * Constructs a new GetDealsByNameAdditionalData. - * @alias module:model/GetDealsByNameAdditionalData - */ - constructor() { - - GetDealsByNameAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsByNameAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsByNameAdditionalData} obj Optional instance to populate. - * @return {module:model/GetDealsByNameAdditionalData} The populated GetDealsByNameAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsByNameAdditionalData(); - - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = AdditionalData.constructFromObject(data['pagination']); - - delete data['pagination']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/AdditionalData} pagination - */ -GetDealsByNameAdditionalData.prototype['pagination'] = undefined; - - - - - - -export default GetDealsByNameAdditionalData; - diff --git a/src/model/GetDealsByNameData.js b/src/model/GetDealsByNameData.js deleted file mode 100644 index 8d7d1fd8..00000000 --- a/src/model/GetDealsByNameData.js +++ /dev/null @@ -1,212 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetDealsByNameData model module. - * @module model/GetDealsByNameData - * @version 1.0.0 - */ -class GetDealsByNameData { - /** - * Constructs a new GetDealsByNameData. - * The array of Deals filtered by name - * @alias module:model/GetDealsByNameData - */ - constructor() { - - GetDealsByNameData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsByNameData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsByNameData} obj Optional instance to populate. - * @return {module:model/GetDealsByNameData} The populated GetDealsByNameData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsByNameData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('person_name')) { - obj['person_name'] = ApiClient.convertToType(data['person_name'], 'String'); - - delete data['person_name']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('organization_name')) { - obj['organization_name'] = ApiClient.convertToType(data['organization_name'], 'String'); - - delete data['organization_name']; - } - if (data.hasOwnProperty('organization_id')) { - obj['organization_id'] = ApiClient.convertToType(data['organization_id'], 'Number'); - - delete data['organization_id']; - } - if (data.hasOwnProperty('formatted_value')) { - obj['formatted_value'] = ApiClient.convertToType(data['formatted_value'], 'String'); - - delete data['formatted_value']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the Deal - * @member {Number} id - */ -GetDealsByNameData.prototype['id'] = undefined; - -/** - * The title of the Deal - * @member {String} title - */ -GetDealsByNameData.prototype['title'] = undefined; - -/** - * The ID of the User who is associated with the Deal - * @member {Number} user_id - */ -GetDealsByNameData.prototype['user_id'] = undefined; - -/** - * The visibility of the Deal - * @member {String} visible_to - */ -GetDealsByNameData.prototype['visible_to'] = undefined; - -/** - * The status of the Deal - * @member {String} status - */ -GetDealsByNameData.prototype['status'] = undefined; - -/** - * The value of the Deal - * @member {Number} value - */ -GetDealsByNameData.prototype['value'] = undefined; - -/** - * The currency associated with the Deal - * @member {String} currency - */ -GetDealsByNameData.prototype['currency'] = undefined; - -/** - * The name of the Person associated with the Deal - * @member {String} person_name - */ -GetDealsByNameData.prototype['person_name'] = undefined; - -/** - * The ID of the Person associated with the Deal - * @member {Number} person_id - */ -GetDealsByNameData.prototype['person_id'] = undefined; - -/** - * The name of the Organization associated with the Deal - * @member {String} organization_name - */ -GetDealsByNameData.prototype['organization_name'] = undefined; - -/** - * The ID of the Person associated with the Deal - * @member {Number} organization_id - */ -GetDealsByNameData.prototype['organization_id'] = undefined; - -/** - * The Deal value formatted with selected currency. E.g. US$500 - * @member {String} formatted_value - */ -GetDealsByNameData.prototype['formatted_value'] = undefined; - -/** - * The Cc email of the Deal - * @member {String} cc_email - */ -GetDealsByNameData.prototype['cc_email'] = undefined; - - - - - - -export default GetDealsByNameData; - diff --git a/src/model/GetDealsCollection.js b/src/model/GetDealsCollection.js deleted file mode 100644 index c7eace11..00000000 --- a/src/model/GetDealsCollection.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; -import DealCollectionResponseObject from './DealCollectionResponseObject'; - -/** - * The GetDealsCollection model module. - * @module model/GetDealsCollection - * @version 1.0.0 - */ -class GetDealsCollection { - /** - * Constructs a new GetDealsCollection. - * @alias module:model/GetDealsCollection - */ - constructor() { - - GetDealsCollection.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsCollection from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsCollection} obj Optional instance to populate. - * @return {module:model/GetDealsCollection} The populated GetDealsCollection instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsCollection(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [DealCollectionResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetDealsCollection.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetDealsCollection.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -GetDealsCollection.prototype['additional_data'] = undefined; - - - - - - -export default GetDealsCollection; - diff --git a/src/model/GetDealsConversionRatesInPipeline.js b/src/model/GetDealsConversionRatesInPipeline.js deleted file mode 100644 index bba2574d..00000000 --- a/src/model/GetDealsConversionRatesInPipeline.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import GetDealsConversionRatesInPipelineAllOf from './GetDealsConversionRatesInPipelineAllOf'; -import GetDealsConversionRatesInPipelineAllOfData from './GetDealsConversionRatesInPipelineAllOfData'; - -/** - * The GetDealsConversionRatesInPipeline model module. - * @module model/GetDealsConversionRatesInPipeline - * @version 1.0.0 - */ -class GetDealsConversionRatesInPipeline { - /** - * Constructs a new GetDealsConversionRatesInPipeline. - * @alias module:model/GetDealsConversionRatesInPipeline - * @implements module:model/BaseResponse - * @implements module:model/GetDealsConversionRatesInPipelineAllOf - */ - constructor() { - BaseResponse.initialize(this);GetDealsConversionRatesInPipelineAllOf.initialize(this); - GetDealsConversionRatesInPipeline.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsConversionRatesInPipeline from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsConversionRatesInPipeline} obj Optional instance to populate. - * @return {module:model/GetDealsConversionRatesInPipeline} The populated GetDealsConversionRatesInPipeline instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsConversionRatesInPipeline(); - BaseResponse.constructFromObject(data, obj); - GetDealsConversionRatesInPipelineAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = GetDealsConversionRatesInPipelineAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetDealsConversionRatesInPipeline.prototype['success'] = undefined; - -/** - * @member {module:model/GetDealsConversionRatesInPipelineAllOfData} data - */ -GetDealsConversionRatesInPipeline.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetDealsConversionRatesInPipelineAllOf interface: -/** - * @member {module:model/GetDealsConversionRatesInPipelineAllOfData} data - */ -GetDealsConversionRatesInPipelineAllOf.prototype['data'] = undefined; - - - - -export default GetDealsConversionRatesInPipeline; - diff --git a/src/model/GetDealsConversionRatesInPipelineAllOf.js b/src/model/GetDealsConversionRatesInPipelineAllOf.js deleted file mode 100644 index e45c40e8..00000000 --- a/src/model/GetDealsConversionRatesInPipelineAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetDealsConversionRatesInPipelineAllOfData from './GetDealsConversionRatesInPipelineAllOfData'; - -/** - * The GetDealsConversionRatesInPipelineAllOf model module. - * @module model/GetDealsConversionRatesInPipelineAllOf - * @version 1.0.0 - */ -class GetDealsConversionRatesInPipelineAllOf { - /** - * Constructs a new GetDealsConversionRatesInPipelineAllOf. - * @alias module:model/GetDealsConversionRatesInPipelineAllOf - */ - constructor() { - - GetDealsConversionRatesInPipelineAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsConversionRatesInPipelineAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsConversionRatesInPipelineAllOf} obj Optional instance to populate. - * @return {module:model/GetDealsConversionRatesInPipelineAllOf} The populated GetDealsConversionRatesInPipelineAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsConversionRatesInPipelineAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = GetDealsConversionRatesInPipelineAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/GetDealsConversionRatesInPipelineAllOfData} data - */ -GetDealsConversionRatesInPipelineAllOf.prototype['data'] = undefined; - - - - - - -export default GetDealsConversionRatesInPipelineAllOf; - diff --git a/src/model/GetDealsConversionRatesInPipelineAllOfData.js b/src/model/GetDealsConversionRatesInPipelineAllOfData.js deleted file mode 100644 index 3dc034e4..00000000 --- a/src/model/GetDealsConversionRatesInPipelineAllOfData.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import StageConversions from './StageConversions'; - -/** - * The GetDealsConversionRatesInPipelineAllOfData model module. - * @module model/GetDealsConversionRatesInPipelineAllOfData - * @version 1.0.0 - */ -class GetDealsConversionRatesInPipelineAllOfData { - /** - * Constructs a new GetDealsConversionRatesInPipelineAllOfData. - * The pipeline object - * @alias module:model/GetDealsConversionRatesInPipelineAllOfData - */ - constructor() { - - GetDealsConversionRatesInPipelineAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsConversionRatesInPipelineAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsConversionRatesInPipelineAllOfData} obj Optional instance to populate. - * @return {module:model/GetDealsConversionRatesInPipelineAllOfData} The populated GetDealsConversionRatesInPipelineAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsConversionRatesInPipelineAllOfData(); - - if (data.hasOwnProperty('stage_conversions')) { - obj['stage_conversions'] = ApiClient.convertToType(data['stage_conversions'], [StageConversions]); - - delete data['stage_conversions']; - } - if (data.hasOwnProperty('won_conversion')) { - obj['won_conversion'] = ApiClient.convertToType(data['won_conversion'], 'Number'); - - delete data['won_conversion']; - } - if (data.hasOwnProperty('lost_conversion')) { - obj['lost_conversion'] = ApiClient.convertToType(data['lost_conversion'], 'Number'); - - delete data['lost_conversion']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The stage conversions - * @member {Array.} stage_conversions - */ -GetDealsConversionRatesInPipelineAllOfData.prototype['stage_conversions'] = undefined; - -/** - * The won conversion - * @member {Number} won_conversion - */ -GetDealsConversionRatesInPipelineAllOfData.prototype['won_conversion'] = undefined; - -/** - * The lost conversion - * @member {Number} lost_conversion - */ -GetDealsConversionRatesInPipelineAllOfData.prototype['lost_conversion'] = undefined; - - - - - - -export default GetDealsConversionRatesInPipelineAllOfData; - diff --git a/src/model/GetDealsMovementsInPipeline.js b/src/model/GetDealsMovementsInPipeline.js deleted file mode 100644 index 4c7fa306..00000000 --- a/src/model/GetDealsMovementsInPipeline.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import GetDealsMovementsInPipelineAllOf from './GetDealsMovementsInPipelineAllOf'; -import GetDealsMovementsInPipelineAllOfData from './GetDealsMovementsInPipelineAllOfData'; - -/** - * The GetDealsMovementsInPipeline model module. - * @module model/GetDealsMovementsInPipeline - * @version 1.0.0 - */ -class GetDealsMovementsInPipeline { - /** - * Constructs a new GetDealsMovementsInPipeline. - * @alias module:model/GetDealsMovementsInPipeline - * @implements module:model/BaseResponse - * @implements module:model/GetDealsMovementsInPipelineAllOf - */ - constructor() { - BaseResponse.initialize(this);GetDealsMovementsInPipelineAllOf.initialize(this); - GetDealsMovementsInPipeline.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsMovementsInPipeline from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsMovementsInPipeline} obj Optional instance to populate. - * @return {module:model/GetDealsMovementsInPipeline} The populated GetDealsMovementsInPipeline instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsMovementsInPipeline(); - BaseResponse.constructFromObject(data, obj); - GetDealsMovementsInPipelineAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = GetDealsMovementsInPipelineAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetDealsMovementsInPipeline.prototype['success'] = undefined; - -/** - * @member {module:model/GetDealsMovementsInPipelineAllOfData} data - */ -GetDealsMovementsInPipeline.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetDealsMovementsInPipelineAllOf interface: -/** - * @member {module:model/GetDealsMovementsInPipelineAllOfData} data - */ -GetDealsMovementsInPipelineAllOf.prototype['data'] = undefined; - - - - -export default GetDealsMovementsInPipeline; - diff --git a/src/model/GetDealsMovementsInPipelineAllOf.js b/src/model/GetDealsMovementsInPipelineAllOf.js deleted file mode 100644 index 790d4f39..00000000 --- a/src/model/GetDealsMovementsInPipelineAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetDealsMovementsInPipelineAllOfData from './GetDealsMovementsInPipelineAllOfData'; - -/** - * The GetDealsMovementsInPipelineAllOf model module. - * @module model/GetDealsMovementsInPipelineAllOf - * @version 1.0.0 - */ -class GetDealsMovementsInPipelineAllOf { - /** - * Constructs a new GetDealsMovementsInPipelineAllOf. - * @alias module:model/GetDealsMovementsInPipelineAllOf - */ - constructor() { - - GetDealsMovementsInPipelineAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsMovementsInPipelineAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsMovementsInPipelineAllOf} obj Optional instance to populate. - * @return {module:model/GetDealsMovementsInPipelineAllOf} The populated GetDealsMovementsInPipelineAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsMovementsInPipelineAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = GetDealsMovementsInPipelineAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/GetDealsMovementsInPipelineAllOfData} data - */ -GetDealsMovementsInPipelineAllOf.prototype['data'] = undefined; - - - - - - -export default GetDealsMovementsInPipelineAllOf; - diff --git a/src/model/GetDealsMovementsInPipelineAllOfData.js b/src/model/GetDealsMovementsInPipelineAllOfData.js deleted file mode 100644 index 197c2789..00000000 --- a/src/model/GetDealsMovementsInPipelineAllOfData.js +++ /dev/null @@ -1,132 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealsMovementsInfo from './DealsMovementsInfo'; -import GetDealsMovementsInPipelineAllOfDataAverageAgeInDays from './GetDealsMovementsInPipelineAllOfDataAverageAgeInDays'; -import GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages from './GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages'; - -/** - * The GetDealsMovementsInPipelineAllOfData model module. - * @module model/GetDealsMovementsInPipelineAllOfData - * @version 1.0.0 - */ -class GetDealsMovementsInPipelineAllOfData { - /** - * Constructs a new GetDealsMovementsInPipelineAllOfData. - * The pipeline object - * @alias module:model/GetDealsMovementsInPipelineAllOfData - */ - constructor() { - - GetDealsMovementsInPipelineAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsMovementsInPipelineAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsMovementsInPipelineAllOfData} obj Optional instance to populate. - * @return {module:model/GetDealsMovementsInPipelineAllOfData} The populated GetDealsMovementsInPipelineAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsMovementsInPipelineAllOfData(); - - if (data.hasOwnProperty('movements_between_stages')) { - obj['movements_between_stages'] = GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.constructFromObject(data['movements_between_stages']); - - delete data['movements_between_stages']; - } - if (data.hasOwnProperty('new_deals')) { - obj['new_deals'] = DealsMovementsInfo.constructFromObject(data['new_deals']); - - delete data['new_deals']; - } - if (data.hasOwnProperty('deals_left_open')) { - obj['deals_left_open'] = DealsMovementsInfo.constructFromObject(data['deals_left_open']); - - delete data['deals_left_open']; - } - if (data.hasOwnProperty('won_deals')) { - obj['won_deals'] = DealsMovementsInfo.constructFromObject(data['won_deals']); - - delete data['won_deals']; - } - if (data.hasOwnProperty('lost_deals')) { - obj['lost_deals'] = DealsMovementsInfo.constructFromObject(data['lost_deals']); - - delete data['lost_deals']; - } - if (data.hasOwnProperty('average_age_in_days')) { - obj['average_age_in_days'] = GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.constructFromObject(data['average_age_in_days']); - - delete data['average_age_in_days']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages} movements_between_stages - */ -GetDealsMovementsInPipelineAllOfData.prototype['movements_between_stages'] = undefined; - -/** - * @member {module:model/DealsMovementsInfo} new_deals - */ -GetDealsMovementsInPipelineAllOfData.prototype['new_deals'] = undefined; - -/** - * @member {module:model/DealsMovementsInfo} deals_left_open - */ -GetDealsMovementsInPipelineAllOfData.prototype['deals_left_open'] = undefined; - -/** - * @member {module:model/DealsMovementsInfo} won_deals - */ -GetDealsMovementsInPipelineAllOfData.prototype['won_deals'] = undefined; - -/** - * @member {module:model/DealsMovementsInfo} lost_deals - */ -GetDealsMovementsInPipelineAllOfData.prototype['lost_deals'] = undefined; - -/** - * @member {module:model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays} average_age_in_days - */ -GetDealsMovementsInPipelineAllOfData.prototype['average_age_in_days'] = undefined; - - - - - - -export default GetDealsMovementsInPipelineAllOfData; - diff --git a/src/model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.js b/src/model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.js deleted file mode 100644 index f4c807f8..00000000 --- a/src/model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages from './GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages'; - -/** - * The GetDealsMovementsInPipelineAllOfDataAverageAgeInDays model module. - * @module model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays - * @version 1.0.0 - */ -class GetDealsMovementsInPipelineAllOfDataAverageAgeInDays { - /** - * Constructs a new GetDealsMovementsInPipelineAllOfDataAverageAgeInDays. - * The moved deals average age in days - * @alias module:model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays - */ - constructor() { - - GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsMovementsInPipelineAllOfDataAverageAgeInDays from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays} obj Optional instance to populate. - * @return {module:model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays} The populated GetDealsMovementsInPipelineAllOfDataAverageAgeInDays instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsMovementsInPipelineAllOfDataAverageAgeInDays(); - - if (data.hasOwnProperty('across_all_stages')) { - obj['across_all_stages'] = ApiClient.convertToType(data['across_all_stages'], 'Number'); - - delete data['across_all_stages']; - } - if (data.hasOwnProperty('by_stages')) { - obj['by_stages'] = ApiClient.convertToType(data['by_stages'], [GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages]); - - delete data['by_stages']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The moved deals average age across all stages - * @member {Number} across_all_stages - */ -GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.prototype['across_all_stages'] = undefined; - -/** - * The moved deals average age by stages - * @member {Array.} by_stages - */ -GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.prototype['by_stages'] = undefined; - - - - - - -export default GetDealsMovementsInPipelineAllOfDataAverageAgeInDays; - diff --git a/src/model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.js b/src/model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.js deleted file mode 100644 index 5376dbea..00000000 --- a/src/model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages model module. - * @module model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages - * @version 1.0.0 - */ -class GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages { - /** - * Constructs a new GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages. - * The moved deals average age by the stage - * @alias module:model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages - */ - constructor() { - - GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages} obj Optional instance to populate. - * @return {module:model/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages} The populated GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages(); - - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The stage ID - * @member {Number} stage_id - */ -GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.prototype['stage_id'] = undefined; - -/** - * The average deals age in specific stage - * @member {Number} value - */ -GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.prototype['value'] = undefined; - - - - - - -export default GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages; - diff --git a/src/model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.js b/src/model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.js deleted file mode 100644 index 9cad9cbb..00000000 --- a/src/model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages model module. - * @module model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages - * @version 1.0.0 - */ -class GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages { - /** - * Constructs a new GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages. - * Movements between stages - * @alias module:model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages - */ - constructor() { - - GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages} obj Optional instance to populate. - * @return {module:model/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages} The populated GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages(); - - if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number'); - - delete data['count']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of the deals that have been moved between stages - * @member {Number} count - */ -GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.prototype['count'] = undefined; - - - - - - -export default GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages; - diff --git a/src/model/GetDealsRelatedObjects.js b/src/model/GetDealsRelatedObjects.js deleted file mode 100644 index 45bb34b6..00000000 --- a/src/model/GetDealsRelatedObjects.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedOrganizationDataWithActiveFlag from './RelatedOrganizationDataWithActiveFlag'; -import RelatedPersonDataWithActiveFlag from './RelatedPersonDataWithActiveFlag'; -import RelatedUserData from './RelatedUserData'; - -/** - * The GetDealsRelatedObjects model module. - * @module model/GetDealsRelatedObjects - * @version 1.0.0 - */ -class GetDealsRelatedObjects { - /** - * Constructs a new GetDealsRelatedObjects. - * @alias module:model/GetDealsRelatedObjects - */ - constructor() { - - GetDealsRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsRelatedObjects} obj Optional instance to populate. - * @return {module:model/GetDealsRelatedObjects} The populated GetDealsRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsRelatedObjects(); - - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationDataWithActiveFlag.constructFromObject(data['organization']); - - delete data['organization']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = RelatedPersonDataWithActiveFlag.constructFromObject(data['person']); - - delete data['person']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedUserData} user - */ -GetDealsRelatedObjects.prototype['user'] = undefined; - -/** - * @member {module:model/RelatedOrganizationDataWithActiveFlag} organization - */ -GetDealsRelatedObjects.prototype['organization'] = undefined; - -/** - * @member {module:model/RelatedPersonDataWithActiveFlag} person - */ -GetDealsRelatedObjects.prototype['person'] = undefined; - - - - - - -export default GetDealsRelatedObjects; - diff --git a/src/model/GetDealsSummary.js b/src/model/GetDealsSummary.js deleted file mode 100644 index c5a85377..00000000 --- a/src/model/GetDealsSummary.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetDealsSummaryData from './GetDealsSummaryData'; - -/** - * The GetDealsSummary model module. - * @module model/GetDealsSummary - * @version 1.0.0 - */ -class GetDealsSummary { - /** - * Constructs a new GetDealsSummary. - * @alias module:model/GetDealsSummary - */ - constructor() { - - GetDealsSummary.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsSummary from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsSummary} obj Optional instance to populate. - * @return {module:model/GetDealsSummary} The populated GetDealsSummary instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsSummary(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = GetDealsSummaryData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetDealsSummary.prototype['success'] = undefined; - -/** - * @member {module:model/GetDealsSummaryData} data - */ -GetDealsSummary.prototype['data'] = undefined; - - - - - - -export default GetDealsSummary; - diff --git a/src/model/GetDealsSummaryData.js b/src/model/GetDealsSummaryData.js deleted file mode 100644 index 619cd2c8..00000000 --- a/src/model/GetDealsSummaryData.js +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetDealsSummaryDataValuesTotal from './GetDealsSummaryDataValuesTotal'; -import GetDealsSummaryDataWeightedValuesTotal from './GetDealsSummaryDataWeightedValuesTotal'; - -/** - * The GetDealsSummaryData model module. - * @module model/GetDealsSummaryData - * @version 1.0.0 - */ -class GetDealsSummaryData { - /** - * Constructs a new GetDealsSummaryData. - * The summary of deals - * @alias module:model/GetDealsSummaryData - */ - constructor() { - - GetDealsSummaryData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsSummaryData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsSummaryData} obj Optional instance to populate. - * @return {module:model/GetDealsSummaryData} The populated GetDealsSummaryData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsSummaryData(); - - if (data.hasOwnProperty('values_total')) { - obj['values_total'] = GetDealsSummaryDataValuesTotal.constructFromObject(data['values_total']); - - delete data['values_total']; - } - if (data.hasOwnProperty('weighted_values_total')) { - obj['weighted_values_total'] = GetDealsSummaryDataWeightedValuesTotal.constructFromObject(data['weighted_values_total']); - - delete data['weighted_values_total']; - } - if (data.hasOwnProperty('total_count')) { - obj['total_count'] = ApiClient.convertToType(data['total_count'], 'Number'); - - delete data['total_count']; - } - if (data.hasOwnProperty('total_currency_converted_value')) { - obj['total_currency_converted_value'] = ApiClient.convertToType(data['total_currency_converted_value'], 'Number'); - - delete data['total_currency_converted_value']; - } - if (data.hasOwnProperty('total_weighted_currency_converted_value')) { - obj['total_weighted_currency_converted_value'] = ApiClient.convertToType(data['total_weighted_currency_converted_value'], 'Number'); - - delete data['total_weighted_currency_converted_value']; - } - if (data.hasOwnProperty('total_currency_converted_value_formatted')) { - obj['total_currency_converted_value_formatted'] = ApiClient.convertToType(data['total_currency_converted_value_formatted'], 'String'); - - delete data['total_currency_converted_value_formatted']; - } - if (data.hasOwnProperty('total_weighted_currency_converted_value_formatted')) { - obj['total_weighted_currency_converted_value_formatted'] = ApiClient.convertToType(data['total_weighted_currency_converted_value_formatted'], 'String'); - - delete data['total_weighted_currency_converted_value_formatted']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/GetDealsSummaryDataValuesTotal} values_total - */ -GetDealsSummaryData.prototype['values_total'] = undefined; - -/** - * @member {module:model/GetDealsSummaryDataWeightedValuesTotal} weighted_values_total - */ -GetDealsSummaryData.prototype['weighted_values_total'] = undefined; - -/** - * The total number of deals - * @member {Number} total_count - */ -GetDealsSummaryData.prototype['total_count'] = undefined; - -/** - * The total value of deals converted into the company default currency - * @member {Number} total_currency_converted_value - */ -GetDealsSummaryData.prototype['total_currency_converted_value'] = undefined; - -/** - * The total weighted value of deals converted into the company default currency - * @member {Number} total_weighted_currency_converted_value - */ -GetDealsSummaryData.prototype['total_weighted_currency_converted_value'] = undefined; - -/** - * The total converted value of deals formatted with the company default currency. E.g. US$5,100.96 - * @member {String} total_currency_converted_value_formatted - */ -GetDealsSummaryData.prototype['total_currency_converted_value_formatted'] = undefined; - -/** - * The total weighted value of deals formatted with the company default currency. E.g. US$5,100.96 - * @member {String} total_weighted_currency_converted_value_formatted - */ -GetDealsSummaryData.prototype['total_weighted_currency_converted_value_formatted'] = undefined; - - - - - - -export default GetDealsSummaryData; - diff --git a/src/model/GetDealsSummaryDataValuesTotal.js b/src/model/GetDealsSummaryDataValuesTotal.js deleted file mode 100644 index af2532af..00000000 --- a/src/model/GetDealsSummaryDataValuesTotal.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetDealsSummaryDataValuesTotal model module. - * @module model/GetDealsSummaryDataValuesTotal - * @version 1.0.0 - */ -class GetDealsSummaryDataValuesTotal { - /** - * Constructs a new GetDealsSummaryDataValuesTotal. - * The total values of the deals grouped by deal currency - * @alias module:model/GetDealsSummaryDataValuesTotal - */ - constructor() { - - GetDealsSummaryDataValuesTotal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsSummaryDataValuesTotal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsSummaryDataValuesTotal} obj Optional instance to populate. - * @return {module:model/GetDealsSummaryDataValuesTotal} The populated GetDealsSummaryDataValuesTotal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsSummaryDataValuesTotal(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number'); - - delete data['count']; - } - if (data.hasOwnProperty('value_converted')) { - obj['value_converted'] = ApiClient.convertToType(data['value_converted'], 'Number'); - - delete data['value_converted']; - } - if (data.hasOwnProperty('value_formatted')) { - obj['value_formatted'] = ApiClient.convertToType(data['value_formatted'], 'String'); - - delete data['value_formatted']; - } - if (data.hasOwnProperty('value_converted_formatted')) { - obj['value_converted_formatted'] = ApiClient.convertToType(data['value_converted_formatted'], 'String'); - - delete data['value_converted_formatted']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The total value of deals in the deal currency group - * @member {Number} value - */ -GetDealsSummaryDataValuesTotal.prototype['value'] = undefined; - -/** - * The number of deals in the deal currency group - * @member {Number} count - */ -GetDealsSummaryDataValuesTotal.prototype['count'] = undefined; - -/** - * The total value of deals converted into the company default currency - * @member {Number} value_converted - */ -GetDealsSummaryDataValuesTotal.prototype['value_converted'] = undefined; - -/** - * The total value of deals formatted with deal currency. E.g. €50 - * @member {String} value_formatted - */ -GetDealsSummaryDataValuesTotal.prototype['value_formatted'] = undefined; - -/** - * The value_converted formatted with deal currency. E.g. US$50.10 - * @member {String} value_converted_formatted - */ -GetDealsSummaryDataValuesTotal.prototype['value_converted_formatted'] = undefined; - - - - - - -export default GetDealsSummaryDataValuesTotal; - diff --git a/src/model/GetDealsSummaryDataWeightedValuesTotal.js b/src/model/GetDealsSummaryDataWeightedValuesTotal.js deleted file mode 100644 index 46aeb35d..00000000 --- a/src/model/GetDealsSummaryDataWeightedValuesTotal.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetDealsSummaryDataWeightedValuesTotal model module. - * @module model/GetDealsSummaryDataWeightedValuesTotal - * @version 1.0.0 - */ -class GetDealsSummaryDataWeightedValuesTotal { - /** - * Constructs a new GetDealsSummaryDataWeightedValuesTotal. - * The total weighted values of the deals grouped by deal currency. The weighted value is calculated as probability times deal value. - * @alias module:model/GetDealsSummaryDataWeightedValuesTotal - */ - constructor() { - - GetDealsSummaryDataWeightedValuesTotal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsSummaryDataWeightedValuesTotal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsSummaryDataWeightedValuesTotal} obj Optional instance to populate. - * @return {module:model/GetDealsSummaryDataWeightedValuesTotal} The populated GetDealsSummaryDataWeightedValuesTotal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsSummaryDataWeightedValuesTotal(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number'); - - delete data['count']; - } - if (data.hasOwnProperty('value_formatted')) { - obj['value_formatted'] = ApiClient.convertToType(data['value_formatted'], 'String'); - - delete data['value_formatted']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The total weighted value of the deals in the deal currency group - * @member {Number} value - */ -GetDealsSummaryDataWeightedValuesTotal.prototype['value'] = undefined; - -/** - * The number of deals in the deal currency group - * @member {Number} count - */ -GetDealsSummaryDataWeightedValuesTotal.prototype['count'] = undefined; - -/** - * The total weighted value of the deals formatted with deal currency. E.g. €50 - * @member {String} value_formatted - */ -GetDealsSummaryDataWeightedValuesTotal.prototype['value_formatted'] = undefined; - - - - - - -export default GetDealsSummaryDataWeightedValuesTotal; - diff --git a/src/model/GetDealsTimeline.js b/src/model/GetDealsTimeline.js deleted file mode 100644 index c7f52af0..00000000 --- a/src/model/GetDealsTimeline.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetDealsTimelineData from './GetDealsTimelineData'; - -/** - * The GetDealsTimeline model module. - * @module model/GetDealsTimeline - * @version 1.0.0 - */ -class GetDealsTimeline { - /** - * Constructs a new GetDealsTimeline. - * @alias module:model/GetDealsTimeline - */ - constructor() { - - GetDealsTimeline.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsTimeline from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsTimeline} obj Optional instance to populate. - * @return {module:model/GetDealsTimeline} The populated GetDealsTimeline instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsTimeline(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = GetDealsTimelineData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetDealsTimeline.prototype['success'] = undefined; - -/** - * @member {module:model/GetDealsTimelineData} data - */ -GetDealsTimeline.prototype['data'] = undefined; - - - - - - -export default GetDealsTimeline; - diff --git a/src/model/GetDealsTimelineData.js b/src/model/GetDealsTimelineData.js deleted file mode 100644 index bca5c726..00000000 --- a/src/model/GetDealsTimelineData.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealStrict from './DealStrict'; -import GetDealsTimelineDataTotals from './GetDealsTimelineDataTotals'; - -/** - * The GetDealsTimelineData model module. - * @module model/GetDealsTimelineData - * @version 1.0.0 - */ -class GetDealsTimelineData { - /** - * Constructs a new GetDealsTimelineData. - * Open and won deals grouped into periods by defined interval, amount and date-type dealField (`field_key`) - * @alias module:model/GetDealsTimelineData - */ - constructor() { - - GetDealsTimelineData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsTimelineData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsTimelineData} obj Optional instance to populate. - * @return {module:model/GetDealsTimelineData} The populated GetDealsTimelineData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsTimelineData(); - - if (data.hasOwnProperty('period_start')) { - obj['period_start'] = ApiClient.convertToType(data['period_start'], 'String'); - - delete data['period_start']; - } - if (data.hasOwnProperty('period_end')) { - obj['period_end'] = ApiClient.convertToType(data['period_end'], 'String'); - - delete data['period_end']; - } - if (data.hasOwnProperty('deals')) { - obj['deals'] = ApiClient.convertToType(data['deals'], [DealStrict]); - - delete data['deals']; - } - if (data.hasOwnProperty('totals')) { - obj['totals'] = GetDealsTimelineDataTotals.constructFromObject(data['totals']); - - delete data['totals']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The start date and time of the period - * @member {String} period_start - */ -GetDealsTimelineData.prototype['period_start'] = undefined; - -/** - * The end date and time of the period - * @member {String} period_end - */ -GetDealsTimelineData.prototype['period_end'] = undefined; - -/** - * @member {Array.} deals - */ -GetDealsTimelineData.prototype['deals'] = undefined; - -/** - * @member {module:model/GetDealsTimelineDataTotals} totals - */ -GetDealsTimelineData.prototype['totals'] = undefined; - - - - - - -export default GetDealsTimelineData; - diff --git a/src/model/GetDealsTimelineDataTotals.js b/src/model/GetDealsTimelineDataTotals.js deleted file mode 100644 index c52c7a9e..00000000 --- a/src/model/GetDealsTimelineDataTotals.js +++ /dev/null @@ -1,157 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetDealsTimelineDataTotals model module. - * @module model/GetDealsTimelineDataTotals - * @version 1.0.0 - */ -class GetDealsTimelineDataTotals { - /** - * Constructs a new GetDealsTimelineDataTotals. - * The total values of deals for the given period - * @alias module:model/GetDealsTimelineDataTotals - */ - constructor() { - - GetDealsTimelineDataTotals.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDealsTimelineDataTotals from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDealsTimelineDataTotals} obj Optional instance to populate. - * @return {module:model/GetDealsTimelineDataTotals} The populated GetDealsTimelineDataTotals instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDealsTimelineDataTotals(); - - if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number'); - - delete data['count']; - } - if (data.hasOwnProperty('values')) { - obj['values'] = ApiClient.convertToType(data['values'], Object); - - delete data['values']; - } - if (data.hasOwnProperty('weighted_values')) { - obj['weighted_values'] = ApiClient.convertToType(data['weighted_values'], Object); - - delete data['weighted_values']; - } - if (data.hasOwnProperty('open_count')) { - obj['open_count'] = ApiClient.convertToType(data['open_count'], 'Number'); - - delete data['open_count']; - } - if (data.hasOwnProperty('open_values')) { - obj['open_values'] = ApiClient.convertToType(data['open_values'], Object); - - delete data['open_values']; - } - if (data.hasOwnProperty('weighted_open_values')) { - obj['weighted_open_values'] = ApiClient.convertToType(data['weighted_open_values'], Object); - - delete data['weighted_open_values']; - } - if (data.hasOwnProperty('won_count')) { - obj['won_count'] = ApiClient.convertToType(data['won_count'], 'Number'); - - delete data['won_count']; - } - if (data.hasOwnProperty('won_values')) { - obj['won_values'] = ApiClient.convertToType(data['won_values'], Object); - - delete data['won_values']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The number of deals for the given period - * @member {Number} count - */ -GetDealsTimelineDataTotals.prototype['count'] = undefined; - -/** - * The total values of deals grouped by deal currency - * @member {Object} values - */ -GetDealsTimelineDataTotals.prototype['values'] = undefined; - -/** - * The total weighted values of deals for the given period grouped by deal currency. The weighted value of a deal is calculated as probability times deal value. - * @member {Object} weighted_values - */ -GetDealsTimelineDataTotals.prototype['weighted_values'] = undefined; - -/** - * The number of open deals for the given period - * @member {Number} open_count - */ -GetDealsTimelineDataTotals.prototype['open_count'] = undefined; - -/** - * The total values of open deals for the given period grouped by deal currency - * @member {Object} open_values - */ -GetDealsTimelineDataTotals.prototype['open_values'] = undefined; - -/** - * The total weighted values of open deals for the given period grouped by deal currency. The weighted value of a deal is calculated as probability times deal value. - * @member {Object} weighted_open_values - */ -GetDealsTimelineDataTotals.prototype['weighted_open_values'] = undefined; - -/** - * The number of won deals for the given period - * @member {Number} won_count - */ -GetDealsTimelineDataTotals.prototype['won_count'] = undefined; - -/** - * The total values of won deals for the given period grouped by deal currency - * @member {Object} won_values - */ -GetDealsTimelineDataTotals.prototype['won_values'] = undefined; - - - - - - -export default GetDealsTimelineDataTotals; - diff --git a/src/model/GetDuplicatedDeal.js b/src/model/GetDuplicatedDeal.js deleted file mode 100644 index bc4fa58e..00000000 --- a/src/model/GetDuplicatedDeal.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealStrict from './DealStrict'; - -/** - * The GetDuplicatedDeal model module. - * @module model/GetDuplicatedDeal - * @version 1.0.0 - */ -class GetDuplicatedDeal { - /** - * Constructs a new GetDuplicatedDeal. - * @alias module:model/GetDuplicatedDeal - */ - constructor() { - - GetDuplicatedDeal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDuplicatedDeal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDuplicatedDeal} obj Optional instance to populate. - * @return {module:model/GetDuplicatedDeal} The populated GetDuplicatedDeal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDuplicatedDeal(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DealStrict.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetDuplicatedDeal.prototype['success'] = undefined; - -/** - * @member {module:model/DealStrict} data - */ -GetDuplicatedDeal.prototype['data'] = undefined; - - - - - - -export default GetDuplicatedDeal; - diff --git a/src/model/GetField.js b/src/model/GetField.js deleted file mode 100644 index c543f465..00000000 --- a/src/model/GetField.js +++ /dev/null @@ -1,463 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Field from './Field'; -import GetFieldAllOf from './GetFieldAllOf'; -import InternalFieldType from './InternalFieldType'; - -/** - * The GetField model module. - * @module model/GetField - * @version 1.0.0 - */ -class GetField { - /** - * Constructs a new GetField. - * @alias module:model/GetField - * @implements module:model/Field - * @implements module:model/GetFieldAllOf - */ - constructor() { - Field.initialize(this);GetFieldAllOf.initialize(this); - GetField.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetField from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetField} obj Optional instance to populate. - * @return {module:model/GetField} The populated GetField instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetField(); - Field.constructFromObject(data, obj); - GetFieldAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - - delete data['key']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('field_type')) { - obj['field_type'] = InternalFieldType.constructFromObject(data['field_type']); - - delete data['field_type']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - if (data.hasOwnProperty('last_updated_by_user_id')) { - obj['last_updated_by_user_id'] = ApiClient.convertToType(data['last_updated_by_user_id'], 'Number'); - - delete data['last_updated_by_user_id']; - } - if (data.hasOwnProperty('created_by_user_id')) { - obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); - - delete data['created_by_user_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('edit_flag')) { - obj['edit_flag'] = ApiClient.convertToType(data['edit_flag'], 'Boolean'); - - delete data['edit_flag']; - } - if (data.hasOwnProperty('index_visible_flag')) { - obj['index_visible_flag'] = ApiClient.convertToType(data['index_visible_flag'], 'Boolean'); - - delete data['index_visible_flag']; - } - if (data.hasOwnProperty('details_visible_flag')) { - obj['details_visible_flag'] = ApiClient.convertToType(data['details_visible_flag'], 'Boolean'); - - delete data['details_visible_flag']; - } - if (data.hasOwnProperty('add_visible_flag')) { - obj['add_visible_flag'] = ApiClient.convertToType(data['add_visible_flag'], 'Boolean'); - - delete data['add_visible_flag']; - } - if (data.hasOwnProperty('important_flag')) { - obj['important_flag'] = ApiClient.convertToType(data['important_flag'], 'Boolean'); - - delete data['important_flag']; - } - if (data.hasOwnProperty('bulk_edit_allowed')) { - obj['bulk_edit_allowed'] = ApiClient.convertToType(data['bulk_edit_allowed'], 'Boolean'); - - delete data['bulk_edit_allowed']; - } - if (data.hasOwnProperty('searchable_flag')) { - obj['searchable_flag'] = ApiClient.convertToType(data['searchable_flag'], 'Boolean'); - - delete data['searchable_flag']; - } - if (data.hasOwnProperty('filtering_allowed')) { - obj['filtering_allowed'] = ApiClient.convertToType(data['filtering_allowed'], 'Boolean'); - - delete data['filtering_allowed']; - } - if (data.hasOwnProperty('sortable_flag')) { - obj['sortable_flag'] = ApiClient.convertToType(data['sortable_flag'], 'Boolean'); - - delete data['sortable_flag']; - } - if (data.hasOwnProperty('mandatory_flag')) { - obj['mandatory_flag'] = ApiClient.convertToType(data['mandatory_flag'], 'Boolean'); - - delete data['mandatory_flag']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Object]); - - delete data['options']; - } - if (data.hasOwnProperty('options_deleted')) { - obj['options_deleted'] = ApiClient.convertToType(data['options_deleted'], [Object]); - - delete data['options_deleted']; - } - if (data.hasOwnProperty('is_subfield')) { - obj['is_subfield'] = ApiClient.convertToType(data['is_subfield'], 'Boolean'); - - delete data['is_subfield']; - } - if (data.hasOwnProperty('subfields')) { - obj['subfields'] = ApiClient.convertToType(data['subfields'], [Object]); - - delete data['subfields']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the field. Value is `null` in case of subfields. - * @member {Number} id - */ -GetField.prototype['id'] = undefined; - -/** - * The key of the field. For custom fields this is generated upon creation. - * @member {String} key - */ -GetField.prototype['key'] = undefined; - -/** - * The name of the field - * @member {String} name - */ -GetField.prototype['name'] = undefined; - -/** - * The order number of the field - * @member {Number} order_nr - */ -GetField.prototype['order_nr'] = undefined; - -/** - * @member {module:model/InternalFieldType} field_type - */ -GetField.prototype['field_type'] = undefined; - -/** - * The creation time of the field - * @member {Date} add_time - */ -GetField.prototype['add_time'] = undefined; - -/** - * The update time of the field - * @member {Date} update_time - */ -GetField.prototype['update_time'] = undefined; - -/** - * The ID of the user who created or most recently updated the field, only applicable for custom fields - * @member {Number} last_updated_by_user_id - */ -GetField.prototype['last_updated_by_user_id'] = undefined; - -/** - * The ID of the user who created the field - * @member {Number} created_by_user_id - */ -GetField.prototype['created_by_user_id'] = undefined; - -/** - * The active flag of the field - * @member {Boolean} active_flag - */ -GetField.prototype['active_flag'] = undefined; - -/** - * The edit flag of the field - * @member {Boolean} edit_flag - */ -GetField.prototype['edit_flag'] = undefined; - -/** - * Not used - * @member {Boolean} index_visible_flag - */ -GetField.prototype['index_visible_flag'] = undefined; - -/** - * Not used - * @member {Boolean} details_visible_flag - */ -GetField.prototype['details_visible_flag'] = undefined; - -/** - * Not used - * @member {Boolean} add_visible_flag - */ -GetField.prototype['add_visible_flag'] = undefined; - -/** - * Not used - * @member {Boolean} important_flag - */ -GetField.prototype['important_flag'] = undefined; - -/** - * Whether or not the field of an item can be edited in bulk - * @member {Boolean} bulk_edit_allowed - */ -GetField.prototype['bulk_edit_allowed'] = undefined; - -/** - * Whether or not items can be searched by this field - * @member {Boolean} searchable_flag - */ -GetField.prototype['searchable_flag'] = undefined; - -/** - * Whether or not items can be filtered by this field - * @member {Boolean} filtering_allowed - */ -GetField.prototype['filtering_allowed'] = undefined; - -/** - * Whether or not items can be sorted by this field - * @member {Boolean} sortable_flag - */ -GetField.prototype['sortable_flag'] = undefined; - -/** - * Whether or not the field is mandatory - * @member {Boolean} mandatory_flag - */ -GetField.prototype['mandatory_flag'] = undefined; - -/** - * The options of the field. When there are no options, `null` is returned. - * @member {Array.} options - */ -GetField.prototype['options'] = undefined; - -/** - * The deleted options of the field. Only present when there is at least 1 deleted option. - * @member {Array.} options_deleted - */ -GetField.prototype['options_deleted'] = undefined; - -/** - * Whether or not the field is a subfield of another field. Only present if field is subfield. - * @member {Boolean} is_subfield - */ -GetField.prototype['is_subfield'] = undefined; - -/** - * The subfields of the field. Only present when the field has subfields. - * @member {Array.} subfields - */ -GetField.prototype['subfields'] = undefined; - - -// Implement Field interface: -/** - * The ID of the field. Value is `null` in case of subfields. - * @member {Number} id - */ -Field.prototype['id'] = undefined; -/** - * The key of the field. For custom fields this is generated upon creation. - * @member {String} key - */ -Field.prototype['key'] = undefined; -/** - * The name of the field - * @member {String} name - */ -Field.prototype['name'] = undefined; -/** - * The order number of the field - * @member {Number} order_nr - */ -Field.prototype['order_nr'] = undefined; -/** - * @member {module:model/FieldTypeAsString} field_type - */ -Field.prototype['field_type'] = undefined; -/** - * The creation time of the field - * @member {Date} add_time - */ -Field.prototype['add_time'] = undefined; -/** - * The update time of the field - * @member {Date} update_time - */ -Field.prototype['update_time'] = undefined; -/** - * The ID of the user who created or most recently updated the field, only applicable for custom fields - * @member {Number} last_updated_by_user_id - */ -Field.prototype['last_updated_by_user_id'] = undefined; -/** - * The ID of the user who created the field - * @member {Number} created_by_user_id - */ -Field.prototype['created_by_user_id'] = undefined; -/** - * The active flag of the field - * @member {Boolean} active_flag - */ -Field.prototype['active_flag'] = undefined; -/** - * The edit flag of the field - * @member {Boolean} edit_flag - */ -Field.prototype['edit_flag'] = undefined; -/** - * Not used - * @member {Boolean} index_visible_flag - */ -Field.prototype['index_visible_flag'] = undefined; -/** - * Not used - * @member {Boolean} details_visible_flag - */ -Field.prototype['details_visible_flag'] = undefined; -/** - * Not used - * @member {Boolean} add_visible_flag - */ -Field.prototype['add_visible_flag'] = undefined; -/** - * Not used - * @member {Boolean} important_flag - */ -Field.prototype['important_flag'] = undefined; -/** - * Whether or not the field of an item can be edited in bulk - * @member {Boolean} bulk_edit_allowed - */ -Field.prototype['bulk_edit_allowed'] = undefined; -/** - * Whether or not items can be searched by this field - * @member {Boolean} searchable_flag - */ -Field.prototype['searchable_flag'] = undefined; -/** - * Whether or not items can be filtered by this field - * @member {Boolean} filtering_allowed - */ -Field.prototype['filtering_allowed'] = undefined; -/** - * Whether or not items can be sorted by this field - * @member {Boolean} sortable_flag - */ -Field.prototype['sortable_flag'] = undefined; -/** - * Whether or not the field is mandatory - * @member {Boolean} mandatory_flag - */ -Field.prototype['mandatory_flag'] = undefined; -/** - * The options of the field. When there are no options, `null` is returned. - * @member {Array.} options - */ -Field.prototype['options'] = undefined; -/** - * The deleted options of the field. Only present when there is at least 1 deleted option. - * @member {Array.} options_deleted - */ -Field.prototype['options_deleted'] = undefined; -/** - * Whether or not the field is a subfield of another field. Only present if field is subfield. - * @member {Boolean} is_subfield - */ -Field.prototype['is_subfield'] = undefined; -/** - * The subfields of the field. Only present when the field has subfields. - * @member {Array.} subfields - */ -Field.prototype['subfields'] = undefined; -// Implement GetFieldAllOf interface: -/** - * @member {module:model/InternalFieldType} field_type - */ -GetFieldAllOf.prototype['field_type'] = undefined; - - - - -export default GetField; - diff --git a/src/model/GetFieldAllOf.js b/src/model/GetFieldAllOf.js deleted file mode 100644 index 4676bb99..00000000 --- a/src/model/GetFieldAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import InternalFieldType from './InternalFieldType'; - -/** - * The GetFieldAllOf model module. - * @module model/GetFieldAllOf - * @version 1.0.0 - */ -class GetFieldAllOf { - /** - * Constructs a new GetFieldAllOf. - * @alias module:model/GetFieldAllOf - */ - constructor() { - - GetFieldAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetFieldAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetFieldAllOf} obj Optional instance to populate. - * @return {module:model/GetFieldAllOf} The populated GetFieldAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetFieldAllOf(); - - if (data.hasOwnProperty('field_type')) { - obj['field_type'] = InternalFieldType.constructFromObject(data['field_type']); - - delete data['field_type']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/InternalFieldType} field_type - */ -GetFieldAllOf.prototype['field_type'] = undefined; - - - - - - -export default GetFieldAllOf; - diff --git a/src/model/GetGoalResultResponse.js b/src/model/GetGoalResultResponse.js deleted file mode 100644 index 8d29bc0b..00000000 --- a/src/model/GetGoalResultResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GoalResults from './GoalResults'; - -/** - * The GetGoalResultResponse model module. - * @module model/GetGoalResultResponse - * @version 1.0.0 - */ -class GetGoalResultResponse { - /** - * Constructs a new GetGoalResultResponse. - * @alias module:model/GetGoalResultResponse - */ - constructor() { - - GetGoalResultResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetGoalResultResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetGoalResultResponse} obj Optional instance to populate. - * @return {module:model/GetGoalResultResponse} The populated GetGoalResultResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetGoalResultResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = GoalResults.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetGoalResultResponse.prototype['success'] = undefined; - -/** - * @member {module:model/GoalResults} data - */ -GetGoalResultResponse.prototype['data'] = undefined; - - - - - - -export default GetGoalResultResponse; - diff --git a/src/model/GetGoalResultResponse200.js b/src/model/GetGoalResultResponse200.js deleted file mode 100644 index ea5661c1..00000000 --- a/src/model/GetGoalResultResponse200.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GoalResults from './GoalResults'; - -/** - * The GetGoalResultResponse200 model module. - * @module model/GetGoalResultResponse200 - * @version 1.0.0 - */ -class GetGoalResultResponse200 { - /** - * Constructs a new GetGoalResultResponse200. - * @alias module:model/GetGoalResultResponse200 - */ - constructor() { - - GetGoalResultResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetGoalResultResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetGoalResultResponse200} obj Optional instance to populate. - * @return {module:model/GetGoalResultResponse200} The populated GetGoalResultResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetGoalResultResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = GoalResults.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetGoalResultResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/GoalResults} data - */ -GetGoalResultResponse200.prototype['data'] = undefined; - - - - - - -export default GetGoalResultResponse200; - diff --git a/src/model/GetGoalsResponse.js b/src/model/GetGoalsResponse.js deleted file mode 100644 index 5df5bac0..00000000 --- a/src/model/GetGoalsResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FindGoalResponse from './FindGoalResponse'; - -/** - * The GetGoalsResponse model module. - * @module model/GetGoalsResponse - * @version 1.0.0 - */ -class GetGoalsResponse { - /** - * Constructs a new GetGoalsResponse. - * @alias module:model/GetGoalsResponse - */ - constructor() { - - GetGoalsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetGoalsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetGoalsResponse} obj Optional instance to populate. - * @return {module:model/GetGoalsResponse} The populated GetGoalsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetGoalsResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FindGoalResponse.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetGoalsResponse.prototype['success'] = undefined; - -/** - * @member {module:model/FindGoalResponse} data - */ -GetGoalsResponse.prototype['data'] = undefined; - - - - - - -export default GetGoalsResponse; - diff --git a/src/model/GetGoalsResponse200.js b/src/model/GetGoalsResponse200.js deleted file mode 100644 index 110ed3f7..00000000 --- a/src/model/GetGoalsResponse200.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FindGoalResponse from './FindGoalResponse'; - -/** - * The GetGoalsResponse200 model module. - * @module model/GetGoalsResponse200 - * @version 1.0.0 - */ -class GetGoalsResponse200 { - /** - * Constructs a new GetGoalsResponse200. - * @alias module:model/GetGoalsResponse200 - */ - constructor() { - - GetGoalsResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetGoalsResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetGoalsResponse200} obj Optional instance to populate. - * @return {module:model/GetGoalsResponse200} The populated GetGoalsResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetGoalsResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FindGoalResponse.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetGoalsResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/FindGoalResponse} data - */ -GetGoalsResponse200.prototype['data'] = undefined; - - - - - - -export default GetGoalsResponse200; - diff --git a/src/model/GetLeadIdResponse.js b/src/model/GetLeadIdResponse.js deleted file mode 100644 index 0ec72c3a..00000000 --- a/src/model/GetLeadIdResponse.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetLeadIdResponseData from './GetLeadIdResponseData'; - -/** - * The GetLeadIdResponse model module. - * @module model/GetLeadIdResponse - * @version 1.0.0 - */ -class GetLeadIdResponse { - /** - * Constructs a new GetLeadIdResponse. - * @alias module:model/GetLeadIdResponse - */ - constructor() { - - GetLeadIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetLeadIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetLeadIdResponse} obj Optional instance to populate. - * @return {module:model/GetLeadIdResponse} The populated GetLeadIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetLeadIdResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = GetLeadIdResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetLeadIdResponse.prototype['success'] = undefined; - -/** - * @member {module:model/GetLeadIdResponseData} data - */ -GetLeadIdResponse.prototype['data'] = undefined; - - - - - - -export default GetLeadIdResponse; - diff --git a/src/model/GetLeadIdResponseData.js b/src/model/GetLeadIdResponseData.js deleted file mode 100644 index 116e5906..00000000 --- a/src/model/GetLeadIdResponseData.js +++ /dev/null @@ -1,78 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetLeadIdResponseData model module. - * @module model/GetLeadIdResponseData - * @version 1.0.0 - */ -class GetLeadIdResponseData { - /** - * Constructs a new GetLeadIdResponseData. - * @alias module:model/GetLeadIdResponseData - */ - constructor() { - - GetLeadIdResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetLeadIdResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetLeadIdResponseData} obj Optional instance to populate. - * @return {module:model/GetLeadIdResponseData} The populated GetLeadIdResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetLeadIdResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {String} id - */ -GetLeadIdResponseData.prototype['id'] = undefined; - - - - - - -export default GetLeadIdResponseData; - diff --git a/src/model/GetLeadLabelsResponse.js b/src/model/GetLeadLabelsResponse.js deleted file mode 100644 index 3129a3ca..00000000 --- a/src/model/GetLeadLabelsResponse.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadLabelResponse from './LeadLabelResponse'; - -/** - * The GetLeadLabelsResponse model module. - * @module model/GetLeadLabelsResponse - * @version 1.0.0 - */ -class GetLeadLabelsResponse { - /** - * Constructs a new GetLeadLabelsResponse. - * @alias module:model/GetLeadLabelsResponse - */ - constructor() { - - GetLeadLabelsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetLeadLabelsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetLeadLabelsResponse} obj Optional instance to populate. - * @return {module:model/GetLeadLabelsResponse} The populated GetLeadLabelsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetLeadLabelsResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [LeadLabelResponse]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetLeadLabelsResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetLeadLabelsResponse.prototype['data'] = undefined; - - - - - - -export default GetLeadLabelsResponse; - diff --git a/src/model/GetLeadLabelsResponse200.js b/src/model/GetLeadLabelsResponse200.js deleted file mode 100644 index 902a2aa4..00000000 --- a/src/model/GetLeadLabelsResponse200.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadLabelResponse from './LeadLabelResponse'; - -/** - * The GetLeadLabelsResponse200 model module. - * @module model/GetLeadLabelsResponse200 - * @version 1.0.0 - */ -class GetLeadLabelsResponse200 { - /** - * Constructs a new GetLeadLabelsResponse200. - * @alias module:model/GetLeadLabelsResponse200 - */ - constructor() { - - GetLeadLabelsResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetLeadLabelsResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetLeadLabelsResponse200} obj Optional instance to populate. - * @return {module:model/GetLeadLabelsResponse200} The populated GetLeadLabelsResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetLeadLabelsResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [LeadLabelResponse]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetLeadLabelsResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetLeadLabelsResponse200.prototype['data'] = undefined; - - - - - - -export default GetLeadLabelsResponse200; - diff --git a/src/model/GetLeadResponse.js b/src/model/GetLeadResponse.js deleted file mode 100644 index 3dcef68f..00000000 --- a/src/model/GetLeadResponse.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadResponse from './LeadResponse'; - -/** - * The GetLeadResponse model module. - * @module model/GetLeadResponse - * @version 1.0.0 - */ -class GetLeadResponse { - /** - * Constructs a new GetLeadResponse. - * @alias module:model/GetLeadResponse - */ - constructor() { - - GetLeadResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetLeadResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetLeadResponse} obj Optional instance to populate. - * @return {module:model/GetLeadResponse} The populated GetLeadResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetLeadResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = LeadResponse.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetLeadResponse.prototype['success'] = undefined; - -/** - * @member {module:model/LeadResponse} data - */ -GetLeadResponse.prototype['data'] = undefined; - - - - - - -export default GetLeadResponse; - diff --git a/src/model/GetLeadSourcesResponse200.js b/src/model/GetLeadSourcesResponse200.js deleted file mode 100644 index 3c63bed9..00000000 --- a/src/model/GetLeadSourcesResponse200.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetLeadSourcesResponse200Data from './GetLeadSourcesResponse200Data'; - -/** - * The GetLeadSourcesResponse200 model module. - * @module model/GetLeadSourcesResponse200 - * @version 1.0.0 - */ -class GetLeadSourcesResponse200 { - /** - * Constructs a new GetLeadSourcesResponse200. - * @alias module:model/GetLeadSourcesResponse200 - */ - constructor() { - - GetLeadSourcesResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetLeadSourcesResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetLeadSourcesResponse200} obj Optional instance to populate. - * @return {module:model/GetLeadSourcesResponse200} The populated GetLeadSourcesResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetLeadSourcesResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [GetLeadSourcesResponse200Data]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetLeadSourcesResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetLeadSourcesResponse200.prototype['data'] = undefined; - - - - - - -export default GetLeadSourcesResponse200; - diff --git a/src/model/GetLeadSourcesResponse200Data.js b/src/model/GetLeadSourcesResponse200Data.js deleted file mode 100644 index 41bd6a54..00000000 --- a/src/model/GetLeadSourcesResponse200Data.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetLeadSourcesResponse200Data model module. - * @module model/GetLeadSourcesResponse200Data - * @version 1.0.0 - */ -class GetLeadSourcesResponse200Data { - /** - * Constructs a new GetLeadSourcesResponse200Data. - * @alias module:model/GetLeadSourcesResponse200Data - */ - constructor() { - - GetLeadSourcesResponse200Data.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetLeadSourcesResponse200Data from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetLeadSourcesResponse200Data} obj Optional instance to populate. - * @return {module:model/GetLeadSourcesResponse200Data} The populated GetLeadSourcesResponse200Data instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetLeadSourcesResponse200Data(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The unique name of a lead source - * @member {String} name - */ -GetLeadSourcesResponse200Data.prototype['name'] = undefined; - - - - - - -export default GetLeadSourcesResponse200Data; - diff --git a/src/model/GetLeadsResponse.js b/src/model/GetLeadsResponse.js deleted file mode 100644 index 4e74b17e..00000000 --- a/src/model/GetLeadsResponse.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import LeadResponse from './LeadResponse'; - -/** - * The GetLeadsResponse model module. - * @module model/GetLeadsResponse - * @version 1.0.0 - */ -class GetLeadsResponse { - /** - * Constructs a new GetLeadsResponse. - * @alias module:model/GetLeadsResponse - */ - constructor() { - - GetLeadsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetLeadsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetLeadsResponse} obj Optional instance to populate. - * @return {module:model/GetLeadsResponse} The populated GetLeadsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetLeadsResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [LeadResponse]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetLeadsResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetLeadsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -GetLeadsResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetLeadsResponse; - diff --git a/src/model/GetLeadsResponse200.js b/src/model/GetLeadsResponse200.js deleted file mode 100644 index 91f63bb2..00000000 --- a/src/model/GetLeadsResponse200.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import LeadResponse from './LeadResponse'; - -/** - * The GetLeadsResponse200 model module. - * @module model/GetLeadsResponse200 - * @version 1.0.0 - */ -class GetLeadsResponse200 { - /** - * Constructs a new GetLeadsResponse200. - * @alias module:model/GetLeadsResponse200 - */ - constructor() { - - GetLeadsResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetLeadsResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetLeadsResponse200} obj Optional instance to populate. - * @return {module:model/GetLeadsResponse200} The populated GetLeadsResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetLeadsResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [LeadResponse]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetLeadsResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetLeadsResponse200.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -GetLeadsResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetLeadsResponse200; - diff --git a/src/model/GetLeadsSourceResponse.js b/src/model/GetLeadsSourceResponse.js deleted file mode 100644 index 23da8367..00000000 --- a/src/model/GetLeadsSourceResponse.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetLeadsSourceResponseData from './GetLeadsSourceResponseData'; - -/** - * The GetLeadsSourceResponse model module. - * @module model/GetLeadsSourceResponse - * @version 1.0.0 - */ -class GetLeadsSourceResponse { - /** - * Constructs a new GetLeadsSourceResponse. - * @alias module:model/GetLeadsSourceResponse - */ - constructor() { - - GetLeadsSourceResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetLeadsSourceResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetLeadsSourceResponse} obj Optional instance to populate. - * @return {module:model/GetLeadsSourceResponse} The populated GetLeadsSourceResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetLeadsSourceResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [GetLeadsSourceResponseData]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetLeadsSourceResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetLeadsSourceResponse.prototype['data'] = undefined; - - - - - - -export default GetLeadsSourceResponse; - diff --git a/src/model/GetLeadsSourceResponseData.js b/src/model/GetLeadsSourceResponseData.js deleted file mode 100644 index fbe95762..00000000 --- a/src/model/GetLeadsSourceResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetLeadsSourceResponseData model module. - * @module model/GetLeadsSourceResponseData - * @version 1.0.0 - */ -class GetLeadsSourceResponseData { - /** - * Constructs a new GetLeadsSourceResponseData. - * @alias module:model/GetLeadsSourceResponseData - */ - constructor() { - - GetLeadsSourceResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetLeadsSourceResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetLeadsSourceResponseData} obj Optional instance to populate. - * @return {module:model/GetLeadsSourceResponseData} The populated GetLeadsSourceResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetLeadsSourceResponseData(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The unique name of a lead source - * @member {String} name - */ -GetLeadsSourceResponseData.prototype['name'] = undefined; - - - - - - -export default GetLeadsSourceResponseData; - diff --git a/src/model/GetMergedDeal.js b/src/model/GetMergedDeal.js deleted file mode 100644 index 80fc8daa..00000000 --- a/src/model/GetMergedDeal.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealStrictWithMergeId from './DealStrictWithMergeId'; - -/** - * The GetMergedDeal model module. - * @module model/GetMergedDeal - * @version 1.0.0 - */ -class GetMergedDeal { - /** - * Constructs a new GetMergedDeal. - * @alias module:model/GetMergedDeal - */ - constructor() { - - GetMergedDeal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetMergedDeal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetMergedDeal} obj Optional instance to populate. - * @return {module:model/GetMergedDeal} The populated GetMergedDeal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetMergedDeal(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DealStrictWithMergeId.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetMergedDeal.prototype['success'] = undefined; - -/** - * @member {module:model/DealStrictWithMergeId} data - */ -GetMergedDeal.prototype['data'] = undefined; - - - - - - -export default GetMergedDeal; - diff --git a/src/model/GetNoteField.js b/src/model/GetNoteField.js deleted file mode 100644 index 2b1b4a4f..00000000 --- a/src/model/GetNoteField.js +++ /dev/null @@ -1,224 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetFieldAllOf from './GetFieldAllOf'; -import InternalFieldType from './InternalFieldType'; -import NoteField from './NoteField'; -import NoteFieldOptions from './NoteFieldOptions'; - -/** - * The GetNoteField model module. - * @module model/GetNoteField - * @version 1.0.0 - */ -class GetNoteField { - /** - * Constructs a new GetNoteField. - * @alias module:model/GetNoteField - * @implements module:model/NoteField - * @implements module:model/GetFieldAllOf - */ - constructor() { - NoteField.initialize(this);GetFieldAllOf.initialize(this); - GetNoteField.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetNoteField from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetNoteField} obj Optional instance to populate. - * @return {module:model/GetNoteField} The populated GetNoteField instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetNoteField(); - NoteField.constructFromObject(data, obj); - GetFieldAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - - delete data['key']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('field_type')) { - obj['field_type'] = InternalFieldType.constructFromObject(data['field_type']); - - delete data['field_type']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('edit_flag')) { - obj['edit_flag'] = ApiClient.convertToType(data['edit_flag'], 'Boolean'); - - delete data['edit_flag']; - } - if (data.hasOwnProperty('bulk_edit_allowed')) { - obj['bulk_edit_allowed'] = ApiClient.convertToType(data['bulk_edit_allowed'], 'Boolean'); - - delete data['bulk_edit_allowed']; - } - if (data.hasOwnProperty('mandatory_flag')) { - obj['mandatory_flag'] = ApiClient.convertToType(data['mandatory_flag'], 'Boolean'); - - delete data['mandatory_flag']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [NoteFieldOptions]); - - delete data['options']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the field - * @member {Number} id - */ -GetNoteField.prototype['id'] = undefined; - -/** - * The key of the field - * @member {String} key - */ -GetNoteField.prototype['key'] = undefined; - -/** - * The name of the field - * @member {String} name - */ -GetNoteField.prototype['name'] = undefined; - -/** - * @member {module:model/InternalFieldType} field_type - */ -GetNoteField.prototype['field_type'] = undefined; - -/** - * The active flag of the field - * @member {Boolean} active_flag - */ -GetNoteField.prototype['active_flag'] = undefined; - -/** - * The edit flag of the field - * @member {Boolean} edit_flag - */ -GetNoteField.prototype['edit_flag'] = undefined; - -/** - * Not used - * @member {Boolean} bulk_edit_allowed - */ -GetNoteField.prototype['bulk_edit_allowed'] = undefined; - -/** - * Whether or not the field is mandatory - * @member {Boolean} mandatory_flag - */ -GetNoteField.prototype['mandatory_flag'] = undefined; - -/** - * The options of the field. When there are no options, `null` is returned. - * @member {Array.} options - */ -GetNoteField.prototype['options'] = undefined; - - -// Implement NoteField interface: -/** - * The ID of the field - * @member {Number} id - */ -NoteField.prototype['id'] = undefined; -/** - * The key of the field - * @member {String} key - */ -NoteField.prototype['key'] = undefined; -/** - * The name of the field - * @member {String} name - */ -NoteField.prototype['name'] = undefined; -/** - * @member {module:model/FieldTypeAsString} field_type - */ -NoteField.prototype['field_type'] = undefined; -/** - * The active flag of the field - * @member {Boolean} active_flag - */ -NoteField.prototype['active_flag'] = undefined; -/** - * The edit flag of the field - * @member {Boolean} edit_flag - */ -NoteField.prototype['edit_flag'] = undefined; -/** - * Not used - * @member {Boolean} bulk_edit_allowed - */ -NoteField.prototype['bulk_edit_allowed'] = undefined; -/** - * Whether or not the field is mandatory - * @member {Boolean} mandatory_flag - */ -NoteField.prototype['mandatory_flag'] = undefined; -/** - * The options of the field. When there are no options, `null` is returned. - * @member {Array.} options - */ -NoteField.prototype['options'] = undefined; -// Implement GetFieldAllOf interface: -/** - * @member {module:model/InternalFieldType} field_type - */ -GetFieldAllOf.prototype['field_type'] = undefined; - - - - -export default GetNoteField; - diff --git a/src/model/GetNotes.js b/src/model/GetNotes.js deleted file mode 100644 index 80766a28..00000000 --- a/src/model/GetNotes.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithOffsetPagination from './AdditionalDataWithOffsetPagination'; -import BaseNote from './BaseNote'; - -/** - * The GetNotes model module. - * @module model/GetNotes - * @version 1.0.0 - */ -class GetNotes { - /** - * Constructs a new GetNotes. - * @alias module:model/GetNotes - */ - constructor() { - - GetNotes.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetNotes from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetNotes} obj Optional instance to populate. - * @return {module:model/GetNotes} The populated GetNotes instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetNotes(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseNote]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithOffsetPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetNotes.prototype['success'] = undefined; - -/** - * The array of notes - * @member {Array.} data - */ -GetNotes.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithOffsetPagination} additional_data - */ -GetNotes.prototype['additional_data'] = undefined; - - - - - - -export default GetNotes; - diff --git a/src/model/GetOneFile.js b/src/model/GetOneFile.js deleted file mode 100644 index 19e0e95b..00000000 --- a/src/model/GetOneFile.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FileData from './FileData'; - -/** - * The GetOneFile model module. - * @module model/GetOneFile - * @version 1.0.0 - */ -class GetOneFile { - /** - * Constructs a new GetOneFile. - * @alias module:model/GetOneFile - */ - constructor() { - - GetOneFile.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetOneFile from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetOneFile} obj Optional instance to populate. - * @return {module:model/GetOneFile} The populated GetOneFile instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetOneFile(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FileData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetOneFile.prototype['success'] = undefined; - -/** - * @member {module:model/FileData} data - */ -GetOneFile.prototype['data'] = undefined; - - - - - - -export default GetOneFile; - diff --git a/src/model/GetOnePipeline.js b/src/model/GetOnePipeline.js deleted file mode 100644 index fb0d854b..00000000 --- a/src/model/GetOnePipeline.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import GetOnePipelineAllOf from './GetOnePipelineAllOf'; -import PipelineDetails from './PipelineDetails'; - -/** - * The GetOnePipeline model module. - * @module model/GetOnePipeline - * @version 1.0.0 - */ -class GetOnePipeline { - /** - * Constructs a new GetOnePipeline. - * @alias module:model/GetOnePipeline - * @implements module:model/BaseResponse - * @implements module:model/GetOnePipelineAllOf - */ - constructor() { - BaseResponse.initialize(this);GetOnePipelineAllOf.initialize(this); - GetOnePipeline.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetOnePipeline from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetOnePipeline} obj Optional instance to populate. - * @return {module:model/GetOnePipeline} The populated GetOnePipeline instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetOnePipeline(); - BaseResponse.constructFromObject(data, obj); - GetOnePipelineAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = PipelineDetails.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetOnePipeline.prototype['success'] = undefined; - -/** - * @member {module:model/PipelineDetails} data - */ -GetOnePipeline.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetOnePipelineAllOf interface: -/** - * @member {module:model/PipelineDetails} data - */ -GetOnePipelineAllOf.prototype['data'] = undefined; - - - - -export default GetOnePipeline; - diff --git a/src/model/GetOnePipelineAllOf.js b/src/model/GetOnePipelineAllOf.js deleted file mode 100644 index 190cee4e..00000000 --- a/src/model/GetOnePipelineAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PipelineDetails from './PipelineDetails'; - -/** - * The GetOnePipelineAllOf model module. - * @module model/GetOnePipelineAllOf - * @version 1.0.0 - */ -class GetOnePipelineAllOf { - /** - * Constructs a new GetOnePipelineAllOf. - * @alias module:model/GetOnePipelineAllOf - */ - constructor() { - - GetOnePipelineAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetOnePipelineAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetOnePipelineAllOf} obj Optional instance to populate. - * @return {module:model/GetOnePipelineAllOf} The populated GetOnePipelineAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetOnePipelineAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = PipelineDetails.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/PipelineDetails} data - */ -GetOnePipelineAllOf.prototype['data'] = undefined; - - - - - - -export default GetOnePipelineAllOf; - diff --git a/src/model/GetOneStage.js b/src/model/GetOneStage.js deleted file mode 100644 index 7e1a4b82..00000000 --- a/src/model/GetOneStage.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import StageDetails from './StageDetails'; - -/** - * The GetOneStage model module. - * @module model/GetOneStage - * @version 1.0.0 - */ -class GetOneStage { - /** - * Constructs a new GetOneStage. - * @alias module:model/GetOneStage - */ - constructor() { - - GetOneStage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetOneStage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetOneStage} obj Optional instance to populate. - * @return {module:model/GetOneStage} The populated GetOneStage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetOneStage(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = StageDetails.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetOneStage.prototype['success'] = undefined; - -/** - * @member {module:model/StageDetails} data - */ -GetOneStage.prototype['data'] = undefined; - - - - - - -export default GetOneStage; - diff --git a/src/model/GetPersonDetailsResponse.js b/src/model/GetPersonDetailsResponse.js deleted file mode 100644 index 5c47c714..00000000 --- a/src/model/GetPersonDetailsResponse.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import BaseResponse from './BaseResponse'; -import GetPersonDetailsResponseAllOf from './GetPersonDetailsResponseAllOf'; -import GetPersonDetailsResponseAllOfAdditionalData from './GetPersonDetailsResponseAllOfAdditionalData'; -import PersonItem from './PersonItem'; - -/** - * The GetPersonDetailsResponse model module. - * @module model/GetPersonDetailsResponse - * @version 1.0.0 - */ -class GetPersonDetailsResponse { - /** - * Constructs a new GetPersonDetailsResponse. - * @alias module:model/GetPersonDetailsResponse - * @implements module:model/BaseResponse - * @implements module:model/GetPersonDetailsResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);GetPersonDetailsResponseAllOf.initialize(this); - GetPersonDetailsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetPersonDetailsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetPersonDetailsResponse} obj Optional instance to populate. - * @return {module:model/GetPersonDetailsResponse} The populated GetPersonDetailsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetPersonDetailsResponse(); - BaseResponse.constructFromObject(data, obj); - GetPersonDetailsResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = PersonItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = GetPersonDetailsResponseAllOfAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetPersonDetailsResponse.prototype['success'] = undefined; - -/** - * @member {module:model/PersonItem} data - */ -GetPersonDetailsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/GetPersonDetailsResponseAllOfAdditionalData} additional_data - */ -GetPersonDetailsResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -GetPersonDetailsResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetPersonDetailsResponseAllOf interface: -/** - * @member {module:model/PersonItem} data - */ -GetPersonDetailsResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/GetPersonDetailsResponseAllOfAdditionalData} additional_data - */ -GetPersonDetailsResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -GetPersonDetailsResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default GetPersonDetailsResponse; - diff --git a/src/model/GetPersonDetailsResponseAllOf.js b/src/model/GetPersonDetailsResponseAllOf.js deleted file mode 100644 index c9588163..00000000 --- a/src/model/GetPersonDetailsResponseAllOf.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import GetPersonDetailsResponseAllOfAdditionalData from './GetPersonDetailsResponseAllOfAdditionalData'; -import PersonItem from './PersonItem'; - -/** - * The GetPersonDetailsResponseAllOf model module. - * @module model/GetPersonDetailsResponseAllOf - * @version 1.0.0 - */ -class GetPersonDetailsResponseAllOf { - /** - * Constructs a new GetPersonDetailsResponseAllOf. - * @alias module:model/GetPersonDetailsResponseAllOf - */ - constructor() { - - GetPersonDetailsResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetPersonDetailsResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetPersonDetailsResponseAllOf} obj Optional instance to populate. - * @return {module:model/GetPersonDetailsResponseAllOf} The populated GetPersonDetailsResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetPersonDetailsResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = PersonItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = GetPersonDetailsResponseAllOfAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/PersonItem} data - */ -GetPersonDetailsResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/GetPersonDetailsResponseAllOfAdditionalData} additional_data - */ -GetPersonDetailsResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -GetPersonDetailsResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default GetPersonDetailsResponseAllOf; - diff --git a/src/model/GetPersonDetailsResponseAllOfAdditionalData.js b/src/model/GetPersonDetailsResponseAllOfAdditionalData.js deleted file mode 100644 index 89b5fecd..00000000 --- a/src/model/GetPersonDetailsResponseAllOfAdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetPersonDetailsResponseAllOfAdditionalData model module. - * @module model/GetPersonDetailsResponseAllOfAdditionalData - * @version 1.0.0 - */ -class GetPersonDetailsResponseAllOfAdditionalData { - /** - * Constructs a new GetPersonDetailsResponseAllOfAdditionalData. - * @alias module:model/GetPersonDetailsResponseAllOfAdditionalData - */ - constructor() { - - GetPersonDetailsResponseAllOfAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetPersonDetailsResponseAllOfAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetPersonDetailsResponseAllOfAdditionalData} obj Optional instance to populate. - * @return {module:model/GetPersonDetailsResponseAllOfAdditionalData} The populated GetPersonDetailsResponseAllOfAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetPersonDetailsResponseAllOfAdditionalData(); - - if (data.hasOwnProperty('dropbox_email')) { - obj['dropbox_email'] = ApiClient.convertToType(data['dropbox_email'], 'String'); - - delete data['dropbox_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Dropbox email for the person - * @member {String} dropbox_email - */ -GetPersonDetailsResponseAllOfAdditionalData.prototype['dropbox_email'] = undefined; - - - - - - -export default GetPersonDetailsResponseAllOfAdditionalData; - diff --git a/src/model/GetProductAttachementDetails.js b/src/model/GetProductAttachementDetails.js deleted file mode 100644 index 63eb50ee..00000000 --- a/src/model/GetProductAttachementDetails.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProductAttachmentDetails from './ProductAttachmentDetails'; - -/** - * The GetProductAttachementDetails model module. - * @module model/GetProductAttachementDetails - * @version 1.0.0 - */ -class GetProductAttachementDetails { - /** - * Constructs a new GetProductAttachementDetails. - * @alias module:model/GetProductAttachementDetails - */ - constructor() { - - GetProductAttachementDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProductAttachementDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProductAttachementDetails} obj Optional instance to populate. - * @return {module:model/GetProductAttachementDetails} The populated GetProductAttachementDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProductAttachementDetails(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], ProductAttachmentDetails); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetProductAttachementDetails.prototype['success'] = undefined; - -/** - * The updated product object attached to the deal - * @member {module:model/ProductAttachmentDetails} data - */ -GetProductAttachementDetails.prototype['data'] = undefined; - - - - - - -export default GetProductAttachementDetails; - diff --git a/src/model/GetProductAttachmentDetails.js b/src/model/GetProductAttachmentDetails.js deleted file mode 100644 index fcc3da50..00000000 --- a/src/model/GetProductAttachmentDetails.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProductAttachmentDetails from './ProductAttachmentDetails'; - -/** - * The GetProductAttachmentDetails model module. - * @module model/GetProductAttachmentDetails - * @version 1.0.0 - */ -class GetProductAttachmentDetails { - /** - * Constructs a new GetProductAttachmentDetails. - * @alias module:model/GetProductAttachmentDetails - */ - constructor() { - - GetProductAttachmentDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProductAttachmentDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProductAttachmentDetails} obj Optional instance to populate. - * @return {module:model/GetProductAttachmentDetails} The populated GetProductAttachmentDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProductAttachmentDetails(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], ProductAttachmentDetails); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetProductAttachmentDetails.prototype['success'] = undefined; - -/** - * The updated product object attached to the deal - * @member {module:model/ProductAttachmentDetails} data - */ -GetProductAttachmentDetails.prototype['data'] = undefined; - - - - - - -export default GetProductAttachmentDetails; - diff --git a/src/model/GetProductField.js b/src/model/GetProductField.js deleted file mode 100644 index da872f67..00000000 --- a/src/model/GetProductField.js +++ /dev/null @@ -1,388 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetFieldAllOf from './GetFieldAllOf'; -import InternalFieldType from './InternalFieldType'; -import ProductField from './ProductField'; - -/** - * The GetProductField model module. - * @module model/GetProductField - * @version 1.0.0 - */ -class GetProductField { - /** - * Constructs a new GetProductField. - * @alias module:model/GetProductField - * @implements module:model/ProductField - * @implements module:model/GetFieldAllOf - * @param name {String} The name of the field - * @param fieldType {module:model/InternalFieldType} - */ - constructor(name, fieldType) { - ProductField.initialize(this, name, fieldType);GetFieldAllOf.initialize(this); - GetProductField.initialize(this, name, fieldType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name, fieldType) { - obj['name'] = name; - obj['field_type'] = fieldType; - } - - /** - * Constructs a GetProductField from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProductField} obj Optional instance to populate. - * @return {module:model/GetProductField} The populated GetProductField instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProductField(); - ProductField.constructFromObject(data, obj); - GetFieldAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Object]); - - delete data['options']; - } - if (data.hasOwnProperty('field_type')) { - obj['field_type'] = InternalFieldType.constructFromObject(data['field_type']); - - delete data['field_type']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - - delete data['key']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('last_updated_by_user_id')) { - obj['last_updated_by_user_id'] = ApiClient.convertToType(data['last_updated_by_user_id'], 'Number'); - - delete data['last_updated_by_user_id']; - } - if (data.hasOwnProperty('created_by_user_id')) { - obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); - - delete data['created_by_user_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('edit_flag')) { - obj['edit_flag'] = ApiClient.convertToType(data['edit_flag'], 'Boolean'); - - delete data['edit_flag']; - } - if (data.hasOwnProperty('add_visible_flag')) { - obj['add_visible_flag'] = ApiClient.convertToType(data['add_visible_flag'], 'Boolean'); - - delete data['add_visible_flag']; - } - if (data.hasOwnProperty('important_flag')) { - obj['important_flag'] = ApiClient.convertToType(data['important_flag'], 'Boolean'); - - delete data['important_flag']; - } - if (data.hasOwnProperty('bulk_edit_allowed')) { - obj['bulk_edit_allowed'] = ApiClient.convertToType(data['bulk_edit_allowed'], 'Boolean'); - - delete data['bulk_edit_allowed']; - } - if (data.hasOwnProperty('searchable_flag')) { - obj['searchable_flag'] = ApiClient.convertToType(data['searchable_flag'], 'Boolean'); - - delete data['searchable_flag']; - } - if (data.hasOwnProperty('filtering_allowed')) { - obj['filtering_allowed'] = ApiClient.convertToType(data['filtering_allowed'], 'Boolean'); - - delete data['filtering_allowed']; - } - if (data.hasOwnProperty('sortable_flag')) { - obj['sortable_flag'] = ApiClient.convertToType(data['sortable_flag'], 'Boolean'); - - delete data['sortable_flag']; - } - if (data.hasOwnProperty('mandatory_flag')) { - obj['mandatory_flag'] = ApiClient.convertToType(data['mandatory_flag'], 'Boolean'); - - delete data['mandatory_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the field - * @member {String} name - */ -GetProductField.prototype['name'] = undefined; - -/** - * When `field_type` is either `set` or `enum`, possible options must be supplied as a JSON-encoded sequential array, for example:
`[{\"label\":\"red\"}, {\"label\":\"blue\"}, {\"label\":\"lilac\"}]` - * @member {Array.} options - */ -GetProductField.prototype['options'] = undefined; - -/** - * @member {module:model/InternalFieldType} field_type - */ -GetProductField.prototype['field_type'] = undefined; - -/** - * The ID of the product field - * @member {Number} id - */ -GetProductField.prototype['id'] = undefined; - -/** - * The key of the product field - * @member {String} key - */ -GetProductField.prototype['key'] = undefined; - -/** - * The position (index) of the product field in the detail view - * @member {Number} order_nr - */ -GetProductField.prototype['order_nr'] = undefined; - -/** - * The product field creation time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -GetProductField.prototype['add_time'] = undefined; - -/** - * The product field last update time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -GetProductField.prototype['update_time'] = undefined; - -/** - * The ID of the last user to update the product field - * @member {Number} last_updated_by_user_id - */ -GetProductField.prototype['last_updated_by_user_id'] = undefined; - -/** - * The ID of the user who created the product field - * @member {Number} created_by_user_id - */ -GetProductField.prototype['created_by_user_id'] = undefined; - -/** - * Whether or not the product field is currently active - * @member {Boolean} active_flag - */ -GetProductField.prototype['active_flag'] = undefined; - -/** - * Whether or not the product field name and metadata is editable - * @member {Boolean} edit_flag - */ -GetProductField.prototype['edit_flag'] = undefined; - -/** - * Whether or not the product field is visible in the Add Product Modal - * @member {Boolean} add_visible_flag - */ -GetProductField.prototype['add_visible_flag'] = undefined; - -/** - * Whether or not the product field is marked as important - * @member {Boolean} important_flag - */ -GetProductField.prototype['important_flag'] = undefined; - -/** - * Whether or not the product field data can be edited - * @member {Boolean} bulk_edit_allowed - */ -GetProductField.prototype['bulk_edit_allowed'] = undefined; - -/** - * Whether or not the product field is searchable - * @member {Boolean} searchable_flag - */ -GetProductField.prototype['searchable_flag'] = undefined; - -/** - * Whether or not the product field value can be used when filtering searches - * @member {Boolean} filtering_allowed - */ -GetProductField.prototype['filtering_allowed'] = undefined; - -/** - * Whether or not the product field is sortable - * @member {Boolean} sortable_flag - */ -GetProductField.prototype['sortable_flag'] = undefined; - -/** - * Whether or not the product field is mandatory when creating products - * @member {Boolean} mandatory_flag - */ -GetProductField.prototype['mandatory_flag'] = undefined; - - -// Implement ProductField interface: -/** - * The name of the field - * @member {String} name - */ -ProductField.prototype['name'] = undefined; -/** - * When `field_type` is either `set` or `enum`, possible options must be supplied as a JSON-encoded sequential array, for example:
`[{\"label\":\"red\"}, {\"label\":\"blue\"}, {\"label\":\"lilac\"}]` - * @member {Array.} options - */ -ProductField.prototype['options'] = undefined; -/** - * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
- * @member {module:model/ProductField.FieldTypeEnum} field_type - */ -ProductField.prototype['field_type'] = undefined; -/** - * The ID of the product field - * @member {Number} id - */ -ProductField.prototype['id'] = undefined; -/** - * The key of the product field - * @member {String} key - */ -ProductField.prototype['key'] = undefined; -/** - * The position (index) of the product field in the detail view - * @member {Number} order_nr - */ -ProductField.prototype['order_nr'] = undefined; -/** - * The product field creation time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -ProductField.prototype['add_time'] = undefined; -/** - * The product field last update time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -ProductField.prototype['update_time'] = undefined; -/** - * The ID of the last user to update the product field - * @member {Number} last_updated_by_user_id - */ -ProductField.prototype['last_updated_by_user_id'] = undefined; -/** - * The ID of the user who created the product field - * @member {Number} created_by_user_id - */ -ProductField.prototype['created_by_user_id'] = undefined; -/** - * Whether or not the product field is currently active - * @member {Boolean} active_flag - */ -ProductField.prototype['active_flag'] = undefined; -/** - * Whether or not the product field name and metadata is editable - * @member {Boolean} edit_flag - */ -ProductField.prototype['edit_flag'] = undefined; -/** - * Whether or not the product field is visible in the Add Product Modal - * @member {Boolean} add_visible_flag - */ -ProductField.prototype['add_visible_flag'] = undefined; -/** - * Whether or not the product field is marked as important - * @member {Boolean} important_flag - */ -ProductField.prototype['important_flag'] = undefined; -/** - * Whether or not the product field data can be edited - * @member {Boolean} bulk_edit_allowed - */ -ProductField.prototype['bulk_edit_allowed'] = undefined; -/** - * Whether or not the product field is searchable - * @member {Boolean} searchable_flag - */ -ProductField.prototype['searchable_flag'] = undefined; -/** - * Whether or not the product field value can be used when filtering searches - * @member {Boolean} filtering_allowed - */ -ProductField.prototype['filtering_allowed'] = undefined; -/** - * Whether or not the product field is sortable - * @member {Boolean} sortable_flag - */ -ProductField.prototype['sortable_flag'] = undefined; -/** - * Whether or not the product field is mandatory when creating products - * @member {Boolean} mandatory_flag - */ -ProductField.prototype['mandatory_flag'] = undefined; -// Implement GetFieldAllOf interface: -/** - * @member {module:model/InternalFieldType} field_type - */ -GetFieldAllOf.prototype['field_type'] = undefined; - - - - -export default GetProductField; - diff --git a/src/model/GetProductFieldResponse.js b/src/model/GetProductFieldResponse.js deleted file mode 100644 index c6a4e238..00000000 --- a/src/model/GetProductFieldResponse.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProductField from './ProductField'; - -/** - * The GetProductFieldResponse model module. - * @module model/GetProductFieldResponse - * @version 1.0.0 - */ -class GetProductFieldResponse { - /** - * Constructs a new GetProductFieldResponse. - * @alias module:model/GetProductFieldResponse - */ - constructor() { - - GetProductFieldResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProductFieldResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProductFieldResponse} obj Optional instance to populate. - * @return {module:model/GetProductFieldResponse} The populated GetProductFieldResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProductFieldResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], ProductField); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetProductFieldResponse.prototype['success'] = undefined; - -/** - * All data for the product field - * @member {module:model/ProductField} data - */ -GetProductFieldResponse.prototype['data'] = undefined; - - - - - - -export default GetProductFieldResponse; - diff --git a/src/model/GetProjectBoardResponse.js b/src/model/GetProjectBoardResponse.js deleted file mode 100644 index 6542f594..00000000 --- a/src/model/GetProjectBoardResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectBoardObject from './ProjectBoardObject'; - -/** - * The GetProjectBoardResponse model module. - * @module model/GetProjectBoardResponse - * @version 1.0.0 - */ -class GetProjectBoardResponse { - /** - * Constructs a new GetProjectBoardResponse. - * @alias module:model/GetProjectBoardResponse - */ - constructor() { - - GetProjectBoardResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectBoardResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectBoardResponse} obj Optional instance to populate. - * @return {module:model/GetProjectBoardResponse} The populated GetProjectBoardResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectBoardResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectBoardObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectBoardResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectBoardObject} data - */ -GetProjectBoardResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectBoardResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectBoardResponse; - diff --git a/src/model/GetProjectBoardResponse200.js b/src/model/GetProjectBoardResponse200.js deleted file mode 100644 index d4358f73..00000000 --- a/src/model/GetProjectBoardResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectBoardObject from './ProjectBoardObject'; - -/** - * The GetProjectBoardResponse200 model module. - * @module model/GetProjectBoardResponse200 - * @version 1.0.0 - */ -class GetProjectBoardResponse200 { - /** - * Constructs a new GetProjectBoardResponse200. - * @alias module:model/GetProjectBoardResponse200 - */ - constructor() { - - GetProjectBoardResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectBoardResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectBoardResponse200} obj Optional instance to populate. - * @return {module:model/GetProjectBoardResponse200} The populated GetProjectBoardResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectBoardResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectBoardObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectBoardResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectBoardObject} data - */ -GetProjectBoardResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectBoardResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectBoardResponse200; - diff --git a/src/model/GetProjectBoardsResponse.js b/src/model/GetProjectBoardsResponse.js deleted file mode 100644 index 142d33fc..00000000 --- a/src/model/GetProjectBoardsResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectBoardObject from './ProjectBoardObject'; - -/** - * The GetProjectBoardsResponse model module. - * @module model/GetProjectBoardsResponse - * @version 1.0.0 - */ -class GetProjectBoardsResponse { - /** - * Constructs a new GetProjectBoardsResponse. - * @alias module:model/GetProjectBoardsResponse - */ - constructor() { - - GetProjectBoardsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectBoardsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectBoardsResponse} obj Optional instance to populate. - * @return {module:model/GetProjectBoardsResponse} The populated GetProjectBoardsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectBoardsResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProjectBoardObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectBoardsResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectBoardsResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectBoardsResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectBoardsResponse; - diff --git a/src/model/GetProjectBoardsResponse200.js b/src/model/GetProjectBoardsResponse200.js deleted file mode 100644 index 86a0e64e..00000000 --- a/src/model/GetProjectBoardsResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectBoardObject from './ProjectBoardObject'; - -/** - * The GetProjectBoardsResponse200 model module. - * @module model/GetProjectBoardsResponse200 - * @version 1.0.0 - */ -class GetProjectBoardsResponse200 { - /** - * Constructs a new GetProjectBoardsResponse200. - * @alias module:model/GetProjectBoardsResponse200 - */ - constructor() { - - GetProjectBoardsResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectBoardsResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectBoardsResponse200} obj Optional instance to populate. - * @return {module:model/GetProjectBoardsResponse200} The populated GetProjectBoardsResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectBoardsResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProjectBoardObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectBoardsResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectBoardsResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectBoardsResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectBoardsResponse200; - diff --git a/src/model/GetProjectGroupsResponse.js b/src/model/GetProjectGroupsResponse.js deleted file mode 100644 index c7a50b1e..00000000 --- a/src/model/GetProjectGroupsResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectGroupsObject from './ProjectGroupsObject'; - -/** - * The GetProjectGroupsResponse model module. - * @module model/GetProjectGroupsResponse - * @version 1.0.0 - */ -class GetProjectGroupsResponse { - /** - * Constructs a new GetProjectGroupsResponse. - * @alias module:model/GetProjectGroupsResponse - */ - constructor() { - - GetProjectGroupsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectGroupsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectGroupsResponse} obj Optional instance to populate. - * @return {module:model/GetProjectGroupsResponse} The populated GetProjectGroupsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectGroupsResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProjectGroupsObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectGroupsResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectGroupsResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectGroupsResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectGroupsResponse; - diff --git a/src/model/GetProjectGroupsResponse200.js b/src/model/GetProjectGroupsResponse200.js deleted file mode 100644 index c2c57380..00000000 --- a/src/model/GetProjectGroupsResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectGroupsObject from './ProjectGroupsObject'; - -/** - * The GetProjectGroupsResponse200 model module. - * @module model/GetProjectGroupsResponse200 - * @version 1.0.0 - */ -class GetProjectGroupsResponse200 { - /** - * Constructs a new GetProjectGroupsResponse200. - * @alias module:model/GetProjectGroupsResponse200 - */ - constructor() { - - GetProjectGroupsResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectGroupsResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectGroupsResponse200} obj Optional instance to populate. - * @return {module:model/GetProjectGroupsResponse200} The populated GetProjectGroupsResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectGroupsResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProjectGroupsObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectGroupsResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectGroupsResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectGroupsResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectGroupsResponse200; - diff --git a/src/model/GetProjectPhaseResponse.js b/src/model/GetProjectPhaseResponse.js deleted file mode 100644 index 336712a1..00000000 --- a/src/model/GetProjectPhaseResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPhaseObject from './ProjectPhaseObject'; - -/** - * The GetProjectPhaseResponse model module. - * @module model/GetProjectPhaseResponse - * @version 1.0.0 - */ -class GetProjectPhaseResponse { - /** - * Constructs a new GetProjectPhaseResponse. - * @alias module:model/GetProjectPhaseResponse - */ - constructor() { - - GetProjectPhaseResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectPhaseResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectPhaseResponse} obj Optional instance to populate. - * @return {module:model/GetProjectPhaseResponse} The populated GetProjectPhaseResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectPhaseResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectPhaseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectPhaseResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectPhaseObject} data - */ -GetProjectPhaseResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectPhaseResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectPhaseResponse; - diff --git a/src/model/GetProjectPhaseResponse200.js b/src/model/GetProjectPhaseResponse200.js deleted file mode 100644 index 84f2f4e1..00000000 --- a/src/model/GetProjectPhaseResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPhaseObject from './ProjectPhaseObject'; - -/** - * The GetProjectPhaseResponse200 model module. - * @module model/GetProjectPhaseResponse200 - * @version 1.0.0 - */ -class GetProjectPhaseResponse200 { - /** - * Constructs a new GetProjectPhaseResponse200. - * @alias module:model/GetProjectPhaseResponse200 - */ - constructor() { - - GetProjectPhaseResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectPhaseResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectPhaseResponse200} obj Optional instance to populate. - * @return {module:model/GetProjectPhaseResponse200} The populated GetProjectPhaseResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectPhaseResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectPhaseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectPhaseResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectPhaseObject} data - */ -GetProjectPhaseResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectPhaseResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectPhaseResponse200; - diff --git a/src/model/GetProjectPhasesResponse.js b/src/model/GetProjectPhasesResponse.js deleted file mode 100644 index 26b285b1..00000000 --- a/src/model/GetProjectPhasesResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPhaseObject from './ProjectPhaseObject'; - -/** - * The GetProjectPhasesResponse model module. - * @module model/GetProjectPhasesResponse - * @version 1.0.0 - */ -class GetProjectPhasesResponse { - /** - * Constructs a new GetProjectPhasesResponse. - * @alias module:model/GetProjectPhasesResponse - */ - constructor() { - - GetProjectPhasesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectPhasesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectPhasesResponse} obj Optional instance to populate. - * @return {module:model/GetProjectPhasesResponse} The populated GetProjectPhasesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectPhasesResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProjectPhaseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectPhasesResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectPhasesResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectPhasesResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectPhasesResponse; - diff --git a/src/model/GetProjectPhasesResponse200.js b/src/model/GetProjectPhasesResponse200.js deleted file mode 100644 index ee40fc70..00000000 --- a/src/model/GetProjectPhasesResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPhaseObject from './ProjectPhaseObject'; - -/** - * The GetProjectPhasesResponse200 model module. - * @module model/GetProjectPhasesResponse200 - * @version 1.0.0 - */ -class GetProjectPhasesResponse200 { - /** - * Constructs a new GetProjectPhasesResponse200. - * @alias module:model/GetProjectPhasesResponse200 - */ - constructor() { - - GetProjectPhasesResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectPhasesResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectPhasesResponse200} obj Optional instance to populate. - * @return {module:model/GetProjectPhasesResponse200} The populated GetProjectPhasesResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectPhasesResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProjectPhaseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectPhasesResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectPhasesResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectPhasesResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectPhasesResponse200; - diff --git a/src/model/GetProjectPlanResponse.js b/src/model/GetProjectPlanResponse.js deleted file mode 100644 index ce86ee4c..00000000 --- a/src/model/GetProjectPlanResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPlanItemObject from './ProjectPlanItemObject'; - -/** - * The GetProjectPlanResponse model module. - * @module model/GetProjectPlanResponse - * @version 1.0.0 - */ -class GetProjectPlanResponse { - /** - * Constructs a new GetProjectPlanResponse. - * @alias module:model/GetProjectPlanResponse - */ - constructor() { - - GetProjectPlanResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectPlanResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectPlanResponse} obj Optional instance to populate. - * @return {module:model/GetProjectPlanResponse} The populated GetProjectPlanResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectPlanResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProjectPlanItemObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectPlanResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectPlanResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectPlanResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectPlanResponse; - diff --git a/src/model/GetProjectPlanResponse200.js b/src/model/GetProjectPlanResponse200.js deleted file mode 100644 index 531c1a01..00000000 --- a/src/model/GetProjectPlanResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPlanItemObject from './ProjectPlanItemObject'; - -/** - * The GetProjectPlanResponse200 model module. - * @module model/GetProjectPlanResponse200 - * @version 1.0.0 - */ -class GetProjectPlanResponse200 { - /** - * Constructs a new GetProjectPlanResponse200. - * @alias module:model/GetProjectPlanResponse200 - */ - constructor() { - - GetProjectPlanResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectPlanResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectPlanResponse200} obj Optional instance to populate. - * @return {module:model/GetProjectPlanResponse200} The populated GetProjectPlanResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectPlanResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProjectPlanItemObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectPlanResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectPlanResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectPlanResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectPlanResponse200; - diff --git a/src/model/GetProjectResponse.js b/src/model/GetProjectResponse.js deleted file mode 100644 index d0e61835..00000000 --- a/src/model/GetProjectResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectResponseObject from './ProjectResponseObject'; - -/** - * The GetProjectResponse model module. - * @module model/GetProjectResponse - * @version 1.0.0 - */ -class GetProjectResponse { - /** - * Constructs a new GetProjectResponse. - * @alias module:model/GetProjectResponse - */ - constructor() { - - GetProjectResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectResponse} obj Optional instance to populate. - * @return {module:model/GetProjectResponse} The populated GetProjectResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectResponseObject} data - */ -GetProjectResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectResponse; - diff --git a/src/model/GetProjectResponse200.js b/src/model/GetProjectResponse200.js deleted file mode 100644 index 883328cc..00000000 --- a/src/model/GetProjectResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectResponseObject from './ProjectResponseObject'; - -/** - * The GetProjectResponse200 model module. - * @module model/GetProjectResponse200 - * @version 1.0.0 - */ -class GetProjectResponse200 { - /** - * Constructs a new GetProjectResponse200. - * @alias module:model/GetProjectResponse200 - */ - constructor() { - - GetProjectResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectResponse200} obj Optional instance to populate. - * @return {module:model/GetProjectResponse200} The populated GetProjectResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectResponseObject} data - */ -GetProjectResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectResponse200; - diff --git a/src/model/GetProjectTemplateResponse.js b/src/model/GetProjectTemplateResponse.js deleted file mode 100644 index 6d943b85..00000000 --- a/src/model/GetProjectTemplateResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import TemplateResponseObject from './TemplateResponseObject'; - -/** - * The GetProjectTemplateResponse model module. - * @module model/GetProjectTemplateResponse - * @version 1.0.0 - */ -class GetProjectTemplateResponse { - /** - * Constructs a new GetProjectTemplateResponse. - * @alias module:model/GetProjectTemplateResponse - */ - constructor() { - - GetProjectTemplateResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectTemplateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectTemplateResponse} obj Optional instance to populate. - * @return {module:model/GetProjectTemplateResponse} The populated GetProjectTemplateResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectTemplateResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = TemplateResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectTemplateResponse.prototype['success'] = undefined; - -/** - * @member {module:model/TemplateResponseObject} data - */ -GetProjectTemplateResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectTemplateResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectTemplateResponse; - diff --git a/src/model/GetProjectTemplateResponse200.js b/src/model/GetProjectTemplateResponse200.js deleted file mode 100644 index 698cec69..00000000 --- a/src/model/GetProjectTemplateResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import TemplateResponseObject from './TemplateResponseObject'; - -/** - * The GetProjectTemplateResponse200 model module. - * @module model/GetProjectTemplateResponse200 - * @version 1.0.0 - */ -class GetProjectTemplateResponse200 { - /** - * Constructs a new GetProjectTemplateResponse200. - * @alias module:model/GetProjectTemplateResponse200 - */ - constructor() { - - GetProjectTemplateResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectTemplateResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectTemplateResponse200} obj Optional instance to populate. - * @return {module:model/GetProjectTemplateResponse200} The populated GetProjectTemplateResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectTemplateResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = TemplateResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectTemplateResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/TemplateResponseObject} data - */ -GetProjectTemplateResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetProjectTemplateResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectTemplateResponse200; - diff --git a/src/model/GetProjectTemplatesResponse.js b/src/model/GetProjectTemplatesResponse.js deleted file mode 100644 index 89eb6a06..00000000 --- a/src/model/GetProjectTemplatesResponse.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; -import TemplateResponseObject from './TemplateResponseObject'; - -/** - * The GetProjectTemplatesResponse model module. - * @module model/GetProjectTemplatesResponse - * @version 1.0.0 - */ -class GetProjectTemplatesResponse { - /** - * Constructs a new GetProjectTemplatesResponse. - * @alias module:model/GetProjectTemplatesResponse - */ - constructor() { - - GetProjectTemplatesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectTemplatesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectTemplatesResponse} obj Optional instance to populate. - * @return {module:model/GetProjectTemplatesResponse} The populated GetProjectTemplatesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectTemplatesResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [TemplateResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectTemplatesResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectTemplatesResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -GetProjectTemplatesResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectTemplatesResponse; - diff --git a/src/model/GetProjectTemplatesResponse200.js b/src/model/GetProjectTemplatesResponse200.js deleted file mode 100644 index c94c6f56..00000000 --- a/src/model/GetProjectTemplatesResponse200.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; -import TemplateResponseObject from './TemplateResponseObject'; - -/** - * The GetProjectTemplatesResponse200 model module. - * @module model/GetProjectTemplatesResponse200 - * @version 1.0.0 - */ -class GetProjectTemplatesResponse200 { - /** - * Constructs a new GetProjectTemplatesResponse200. - * @alias module:model/GetProjectTemplatesResponse200 - */ - constructor() { - - GetProjectTemplatesResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectTemplatesResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectTemplatesResponse200} obj Optional instance to populate. - * @return {module:model/GetProjectTemplatesResponse200} The populated GetProjectTemplatesResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectTemplatesResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [TemplateResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectTemplatesResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectTemplatesResponse200.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -GetProjectTemplatesResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectTemplatesResponse200; - diff --git a/src/model/GetProjectsResponse.js b/src/model/GetProjectsResponse.js deleted file mode 100644 index 0a624a6a..00000000 --- a/src/model/GetProjectsResponse.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; -import ProjectResponseObject from './ProjectResponseObject'; - -/** - * The GetProjectsResponse model module. - * @module model/GetProjectsResponse - * @version 1.0.0 - */ -class GetProjectsResponse { - /** - * Constructs a new GetProjectsResponse. - * @alias module:model/GetProjectsResponse - */ - constructor() { - - GetProjectsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectsResponse} obj Optional instance to populate. - * @return {module:model/GetProjectsResponse} The populated GetProjectsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectsResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProjectResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectsResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -GetProjectsResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectsResponse; - diff --git a/src/model/GetProjectsResponse200.js b/src/model/GetProjectsResponse200.js deleted file mode 100644 index 98e69a6e..00000000 --- a/src/model/GetProjectsResponse200.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; -import ProjectResponseObject from './ProjectResponseObject'; - -/** - * The GetProjectsResponse200 model module. - * @module model/GetProjectsResponse200 - * @version 1.0.0 - */ -class GetProjectsResponse200 { - /** - * Constructs a new GetProjectsResponse200. - * @alias module:model/GetProjectsResponse200 - */ - constructor() { - - GetProjectsResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetProjectsResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetProjectsResponse200} obj Optional instance to populate. - * @return {module:model/GetProjectsResponse200} The populated GetProjectsResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetProjectsResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProjectResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetProjectsResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetProjectsResponse200.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -GetProjectsResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetProjectsResponse200; - diff --git a/src/model/GetRecents.js b/src/model/GetRecents.js deleted file mode 100644 index baa7b893..00000000 --- a/src/model/GetRecents.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AnyOfRecents from './AnyOfRecents'; -import GetRecentsAdditionalData from './GetRecentsAdditionalData'; - -/** - * The GetRecents model module. - * @module model/GetRecents - * @version 1.0.0 - */ -class GetRecents { - /** - * Constructs a new GetRecents. - * @alias module:model/GetRecents - */ - constructor() { - - GetRecents.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRecents from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRecents} obj Optional instance to populate. - * @return {module:model/GetRecents} The populated GetRecents instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRecents(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [AnyOfRecents]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = GetRecentsAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetRecents.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetRecents.prototype['data'] = undefined; - -/** - * @member {module:model/GetRecentsAdditionalData} additional_data - */ -GetRecents.prototype['additional_data'] = undefined; - - - - - - -export default GetRecents; - diff --git a/src/model/GetRecentsAdditionalData.js b/src/model/GetRecentsAdditionalData.js deleted file mode 100644 index 4905161f..00000000 --- a/src/model/GetRecentsAdditionalData.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; - -/** - * The GetRecentsAdditionalData model module. - * @module model/GetRecentsAdditionalData - * @version 1.0.0 - */ -class GetRecentsAdditionalData { - /** - * Constructs a new GetRecentsAdditionalData. - * @alias module:model/GetRecentsAdditionalData - */ - constructor() { - - GetRecentsAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRecentsAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRecentsAdditionalData} obj Optional instance to populate. - * @return {module:model/GetRecentsAdditionalData} The populated GetRecentsAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRecentsAdditionalData(); - - if (data.hasOwnProperty('since_timestamp')) { - obj['since_timestamp'] = ApiClient.convertToType(data['since_timestamp'], 'String'); - - delete data['since_timestamp']; - } - if (data.hasOwnProperty('last_timestamp_on_page')) { - obj['last_timestamp_on_page'] = ApiClient.convertToType(data['last_timestamp_on_page'], 'String'); - - delete data['last_timestamp_on_page']; - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = AdditionalData.constructFromObject(data['pagination']); - - delete data['pagination']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} since_timestamp - */ -GetRecentsAdditionalData.prototype['since_timestamp'] = undefined; - -/** - * The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} last_timestamp_on_page - */ -GetRecentsAdditionalData.prototype['last_timestamp_on_page'] = undefined; - -/** - * @member {module:model/AdditionalData} pagination - */ -GetRecentsAdditionalData.prototype['pagination'] = undefined; - - - - - - -export default GetRecentsAdditionalData; - diff --git a/src/model/GetRole.js b/src/model/GetRole.js deleted file mode 100644 index c55746d3..00000000 --- a/src/model/GetRole.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import GetRoleAllOf from './GetRoleAllOf'; -import GetRoleAllOfAdditionalData from './GetRoleAllOfAdditionalData'; -import SubRole from './SubRole'; - -/** - * The GetRole model module. - * @module model/GetRole - * @version 1.0.0 - */ -class GetRole { - /** - * Constructs a new GetRole. - * @alias module:model/GetRole - * @implements module:model/BaseResponse - * @implements module:model/GetRoleAllOf - */ - constructor() { - BaseResponse.initialize(this);GetRoleAllOf.initialize(this); - GetRole.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRole} obj Optional instance to populate. - * @return {module:model/GetRole} The populated GetRole instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRole(); - BaseResponse.constructFromObject(data, obj); - GetRoleAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = SubRole.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = GetRoleAllOfAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetRole.prototype['success'] = undefined; - -/** - * @member {module:model/SubRole} data - */ -GetRole.prototype['data'] = undefined; - -/** - * @member {module:model/GetRoleAllOfAdditionalData} additional_data - */ -GetRole.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetRoleAllOf interface: -/** - * @member {module:model/SubRole} data - */ -GetRoleAllOf.prototype['data'] = undefined; -/** - * @member {module:model/GetRoleAllOfAdditionalData} additional_data - */ -GetRoleAllOf.prototype['additional_data'] = undefined; - - - - -export default GetRole; - diff --git a/src/model/GetRoleAllOf.js b/src/model/GetRoleAllOf.js deleted file mode 100644 index 779175d3..00000000 --- a/src/model/GetRoleAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetRoleAllOfAdditionalData from './GetRoleAllOfAdditionalData'; -import SubRole from './SubRole'; - -/** - * The GetRoleAllOf model module. - * @module model/GetRoleAllOf - * @version 1.0.0 - */ -class GetRoleAllOf { - /** - * Constructs a new GetRoleAllOf. - * @alias module:model/GetRoleAllOf - */ - constructor() { - - GetRoleAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRoleAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRoleAllOf} obj Optional instance to populate. - * @return {module:model/GetRoleAllOf} The populated GetRoleAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRoleAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = SubRole.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = GetRoleAllOfAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/SubRole} data - */ -GetRoleAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/GetRoleAllOfAdditionalData} additional_data - */ -GetRoleAllOf.prototype['additional_data'] = undefined; - - - - - - -export default GetRoleAllOf; - diff --git a/src/model/GetRoleAllOfAdditionalData.js b/src/model/GetRoleAllOfAdditionalData.js deleted file mode 100644 index 984278db..00000000 --- a/src/model/GetRoleAllOfAdditionalData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RoleSettings from './RoleSettings'; - -/** - * The GetRoleAllOfAdditionalData model module. - * @module model/GetRoleAllOfAdditionalData - * @version 1.0.0 - */ -class GetRoleAllOfAdditionalData { - /** - * Constructs a new GetRoleAllOfAdditionalData. - * The additional data in the role - * @alias module:model/GetRoleAllOfAdditionalData - */ - constructor() { - - GetRoleAllOfAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRoleAllOfAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRoleAllOfAdditionalData} obj Optional instance to populate. - * @return {module:model/GetRoleAllOfAdditionalData} The populated GetRoleAllOfAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRoleAllOfAdditionalData(); - - if (data.hasOwnProperty('settings')) { - obj['settings'] = RoleSettings.constructFromObject(data['settings']); - - delete data['settings']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RoleSettings} settings - */ -GetRoleAllOfAdditionalData.prototype['settings'] = undefined; - - - - - - -export default GetRoleAllOfAdditionalData; - diff --git a/src/model/GetRoleAssignments.js b/src/model/GetRoleAssignments.js deleted file mode 100644 index 9e20e2db..00000000 --- a/src/model/GetRoleAssignments.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import GetRoleAssignmentsAllOf from './GetRoleAssignmentsAllOf'; -import RoleAssignment from './RoleAssignment'; -import RolesAdditionalData from './RolesAdditionalData'; - -/** - * The GetRoleAssignments model module. - * @module model/GetRoleAssignments - * @version 1.0.0 - */ -class GetRoleAssignments { - /** - * Constructs a new GetRoleAssignments. - * @alias module:model/GetRoleAssignments - * @implements module:model/BaseResponse - * @implements module:model/GetRoleAssignmentsAllOf - */ - constructor() { - BaseResponse.initialize(this);GetRoleAssignmentsAllOf.initialize(this); - GetRoleAssignments.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRoleAssignments from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRoleAssignments} obj Optional instance to populate. - * @return {module:model/GetRoleAssignments} The populated GetRoleAssignments instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRoleAssignments(); - BaseResponse.constructFromObject(data, obj); - GetRoleAssignmentsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [RoleAssignment]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = RolesAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetRoleAssignments.prototype['success'] = undefined; - -/** - * The role assignments - * @member {Array.} data - */ -GetRoleAssignments.prototype['data'] = undefined; - -/** - * @member {module:model/RolesAdditionalData} additional_data - */ -GetRoleAssignments.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetRoleAssignmentsAllOf interface: -/** - * The role assignments - * @member {Array.} data - */ -GetRoleAssignmentsAllOf.prototype['data'] = undefined; -/** - * @member {module:model/RolesAdditionalData} additional_data - */ -GetRoleAssignmentsAllOf.prototype['additional_data'] = undefined; - - - - -export default GetRoleAssignments; - diff --git a/src/model/GetRoleAssignmentsAllOf.js b/src/model/GetRoleAssignmentsAllOf.js deleted file mode 100644 index 75330be0..00000000 --- a/src/model/GetRoleAssignmentsAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RoleAssignment from './RoleAssignment'; -import RolesAdditionalData from './RolesAdditionalData'; - -/** - * The GetRoleAssignmentsAllOf model module. - * @module model/GetRoleAssignmentsAllOf - * @version 1.0.0 - */ -class GetRoleAssignmentsAllOf { - /** - * Constructs a new GetRoleAssignmentsAllOf. - * @alias module:model/GetRoleAssignmentsAllOf - */ - constructor() { - - GetRoleAssignmentsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRoleAssignmentsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRoleAssignmentsAllOf} obj Optional instance to populate. - * @return {module:model/GetRoleAssignmentsAllOf} The populated GetRoleAssignmentsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRoleAssignmentsAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [RoleAssignment]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = RolesAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The role assignments - * @member {Array.} data - */ -GetRoleAssignmentsAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/RolesAdditionalData} additional_data - */ -GetRoleAssignmentsAllOf.prototype['additional_data'] = undefined; - - - - - - -export default GetRoleAssignmentsAllOf; - diff --git a/src/model/GetRolePipelines.js b/src/model/GetRolePipelines.js deleted file mode 100644 index 3c787afb..00000000 --- a/src/model/GetRolePipelines.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import GetRolePipelinesAllOf from './GetRolePipelinesAllOf'; -import GetRolePipelinesAllOfData from './GetRolePipelinesAllOfData'; - -/** - * The GetRolePipelines model module. - * @module model/GetRolePipelines - * @version 1.0.0 - */ -class GetRolePipelines { - /** - * Constructs a new GetRolePipelines. - * @alias module:model/GetRolePipelines - * @implements module:model/BaseResponse - * @implements module:model/GetRolePipelinesAllOf - */ - constructor() { - BaseResponse.initialize(this);GetRolePipelinesAllOf.initialize(this); - GetRolePipelines.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRolePipelines from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRolePipelines} obj Optional instance to populate. - * @return {module:model/GetRolePipelines} The populated GetRolePipelines instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRolePipelines(); - BaseResponse.constructFromObject(data, obj); - GetRolePipelinesAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = GetRolePipelinesAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetRolePipelines.prototype['success'] = undefined; - -/** - * @member {module:model/GetRolePipelinesAllOfData} data - */ -GetRolePipelines.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetRolePipelinesAllOf interface: -/** - * @member {module:model/GetRolePipelinesAllOfData} data - */ -GetRolePipelinesAllOf.prototype['data'] = undefined; - - - - -export default GetRolePipelines; - diff --git a/src/model/GetRolePipelinesAllOf.js b/src/model/GetRolePipelinesAllOf.js deleted file mode 100644 index 1b9db180..00000000 --- a/src/model/GetRolePipelinesAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetRolePipelinesAllOfData from './GetRolePipelinesAllOfData'; - -/** - * The GetRolePipelinesAllOf model module. - * @module model/GetRolePipelinesAllOf - * @version 1.0.0 - */ -class GetRolePipelinesAllOf { - /** - * Constructs a new GetRolePipelinesAllOf. - * @alias module:model/GetRolePipelinesAllOf - */ - constructor() { - - GetRolePipelinesAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRolePipelinesAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRolePipelinesAllOf} obj Optional instance to populate. - * @return {module:model/GetRolePipelinesAllOf} The populated GetRolePipelinesAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRolePipelinesAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = GetRolePipelinesAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/GetRolePipelinesAllOfData} data - */ -GetRolePipelinesAllOf.prototype['data'] = undefined; - - - - - - -export default GetRolePipelinesAllOf; - diff --git a/src/model/GetRolePipelinesAllOfData.js b/src/model/GetRolePipelinesAllOfData.js deleted file mode 100644 index 72457f58..00000000 --- a/src/model/GetRolePipelinesAllOfData.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetRolePipelinesAllOfData model module. - * @module model/GetRolePipelinesAllOfData - * @version 1.0.0 - */ -class GetRolePipelinesAllOfData { - /** - * Constructs a new GetRolePipelinesAllOfData. - * The response data - * @alias module:model/GetRolePipelinesAllOfData - */ - constructor() { - - GetRolePipelinesAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRolePipelinesAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRolePipelinesAllOfData} obj Optional instance to populate. - * @return {module:model/GetRolePipelinesAllOfData} The populated GetRolePipelinesAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRolePipelinesAllOfData(); - - if (data.hasOwnProperty('pipeline_ids')) { - obj['pipeline_ids'] = ApiClient.convertToType(data['pipeline_ids'], ['Number']); - - delete data['pipeline_ids']; - } - if (data.hasOwnProperty('visible')) { - obj['visible'] = ApiClient.convertToType(data['visible'], 'Boolean'); - - delete data['visible']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Either visible or hidden pipeline ids - * @member {Array.} pipeline_ids - */ -GetRolePipelinesAllOfData.prototype['pipeline_ids'] = undefined; - -/** - * Whether visible or hidden pipeline ids were returned - * @member {Boolean} visible - */ -GetRolePipelinesAllOfData.prototype['visible'] = undefined; - - - - - - -export default GetRolePipelinesAllOfData; - diff --git a/src/model/GetRoleSettings.js b/src/model/GetRoleSettings.js deleted file mode 100644 index 8a6bf471..00000000 --- a/src/model/GetRoleSettings.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import GetRoleSettingsAllOf from './GetRoleSettingsAllOf'; -import RoleSettings from './RoleSettings'; - -/** - * The GetRoleSettings model module. - * @module model/GetRoleSettings - * @version 1.0.0 - */ -class GetRoleSettings { - /** - * Constructs a new GetRoleSettings. - * @alias module:model/GetRoleSettings - * @implements module:model/BaseResponse - * @implements module:model/GetRoleSettingsAllOf - */ - constructor() { - BaseResponse.initialize(this);GetRoleSettingsAllOf.initialize(this); - GetRoleSettings.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRoleSettings from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRoleSettings} obj Optional instance to populate. - * @return {module:model/GetRoleSettings} The populated GetRoleSettings instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRoleSettings(); - BaseResponse.constructFromObject(data, obj); - GetRoleSettingsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = RoleSettings.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetRoleSettings.prototype['success'] = undefined; - -/** - * @member {module:model/RoleSettings} data - */ -GetRoleSettings.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetRoleSettingsAllOf interface: -/** - * @member {module:model/RoleSettings} data - */ -GetRoleSettingsAllOf.prototype['data'] = undefined; - - - - -export default GetRoleSettings; - diff --git a/src/model/GetRoleSettingsAllOf.js b/src/model/GetRoleSettingsAllOf.js deleted file mode 100644 index 0618b401..00000000 --- a/src/model/GetRoleSettingsAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RoleSettings from './RoleSettings'; - -/** - * The GetRoleSettingsAllOf model module. - * @module model/GetRoleSettingsAllOf - * @version 1.0.0 - */ -class GetRoleSettingsAllOf { - /** - * Constructs a new GetRoleSettingsAllOf. - * @alias module:model/GetRoleSettingsAllOf - */ - constructor() { - - GetRoleSettingsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRoleSettingsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRoleSettingsAllOf} obj Optional instance to populate. - * @return {module:model/GetRoleSettingsAllOf} The populated GetRoleSettingsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRoleSettingsAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = RoleSettings.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RoleSettings} data - */ -GetRoleSettingsAllOf.prototype['data'] = undefined; - - - - - - -export default GetRoleSettingsAllOf; - diff --git a/src/model/GetRoleSubroles.js b/src/model/GetRoleSubroles.js deleted file mode 100644 index 38b75ae9..00000000 --- a/src/model/GetRoleSubroles.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import GetRoleSubrolesAllOf from './GetRoleSubrolesAllOf'; -import RolesAdditionalData from './RolesAdditionalData'; -import SubRole from './SubRole'; - -/** - * The GetRoleSubroles model module. - * @module model/GetRoleSubroles - * @version 1.0.0 - */ -class GetRoleSubroles { - /** - * Constructs a new GetRoleSubroles. - * @alias module:model/GetRoleSubroles - * @implements module:model/BaseResponse - * @implements module:model/GetRoleSubrolesAllOf - */ - constructor() { - BaseResponse.initialize(this);GetRoleSubrolesAllOf.initialize(this); - GetRoleSubroles.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRoleSubroles from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRoleSubroles} obj Optional instance to populate. - * @return {module:model/GetRoleSubroles} The populated GetRoleSubroles instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRoleSubroles(); - BaseResponse.constructFromObject(data, obj); - GetRoleSubrolesAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [SubRole]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = RolesAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetRoleSubroles.prototype['success'] = undefined; - -/** - * The array of sub-roles - * @member {Array.} data - */ -GetRoleSubroles.prototype['data'] = undefined; - -/** - * @member {module:model/RolesAdditionalData} additional_data - */ -GetRoleSubroles.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetRoleSubrolesAllOf interface: -/** - * The array of sub-roles - * @member {Array.} data - */ -GetRoleSubrolesAllOf.prototype['data'] = undefined; -/** - * @member {module:model/RolesAdditionalData} additional_data - */ -GetRoleSubrolesAllOf.prototype['additional_data'] = undefined; - - - - -export default GetRoleSubroles; - diff --git a/src/model/GetRoleSubrolesAllOf.js b/src/model/GetRoleSubrolesAllOf.js deleted file mode 100644 index 1231d40a..00000000 --- a/src/model/GetRoleSubrolesAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RolesAdditionalData from './RolesAdditionalData'; -import SubRole from './SubRole'; - -/** - * The GetRoleSubrolesAllOf model module. - * @module model/GetRoleSubrolesAllOf - * @version 1.0.0 - */ -class GetRoleSubrolesAllOf { - /** - * Constructs a new GetRoleSubrolesAllOf. - * @alias module:model/GetRoleSubrolesAllOf - */ - constructor() { - - GetRoleSubrolesAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRoleSubrolesAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRoleSubrolesAllOf} obj Optional instance to populate. - * @return {module:model/GetRoleSubrolesAllOf} The populated GetRoleSubrolesAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRoleSubrolesAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [SubRole]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = RolesAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of sub-roles - * @member {Array.} data - */ -GetRoleSubrolesAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/RolesAdditionalData} additional_data - */ -GetRoleSubrolesAllOf.prototype['additional_data'] = undefined; - - - - - - -export default GetRoleSubrolesAllOf; - diff --git a/src/model/GetRoles.js b/src/model/GetRoles.js deleted file mode 100644 index 8dee1dcb..00000000 --- a/src/model/GetRoles.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import FullRole from './FullRole'; -import GetRolesAllOf from './GetRolesAllOf'; -import RolesAdditionalData from './RolesAdditionalData'; - -/** - * The GetRoles model module. - * @module model/GetRoles - * @version 1.0.0 - */ -class GetRoles { - /** - * Constructs a new GetRoles. - * @alias module:model/GetRoles - * @implements module:model/BaseResponse - * @implements module:model/GetRolesAllOf - */ - constructor() { - BaseResponse.initialize(this);GetRolesAllOf.initialize(this); - GetRoles.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRoles from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRoles} obj Optional instance to populate. - * @return {module:model/GetRoles} The populated GetRoles instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRoles(); - BaseResponse.constructFromObject(data, obj); - GetRolesAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [FullRole]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = RolesAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -GetRoles.prototype['success'] = undefined; - -/** - * The array of roles - * @member {Array.} data - */ -GetRoles.prototype['data'] = undefined; - -/** - * @member {module:model/RolesAdditionalData} additional_data - */ -GetRoles.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement GetRolesAllOf interface: -/** - * The array of roles - * @member {Array.} data - */ -GetRolesAllOf.prototype['data'] = undefined; -/** - * @member {module:model/RolesAdditionalData} additional_data - */ -GetRolesAllOf.prototype['additional_data'] = undefined; - - - - -export default GetRoles; - diff --git a/src/model/GetRolesAllOf.js b/src/model/GetRolesAllOf.js deleted file mode 100644 index 4dc5d7f3..00000000 --- a/src/model/GetRolesAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FullRole from './FullRole'; -import RolesAdditionalData from './RolesAdditionalData'; - -/** - * The GetRolesAllOf model module. - * @module model/GetRolesAllOf - * @version 1.0.0 - */ -class GetRolesAllOf { - /** - * Constructs a new GetRolesAllOf. - * @alias module:model/GetRolesAllOf - */ - constructor() { - - GetRolesAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetRolesAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetRolesAllOf} obj Optional instance to populate. - * @return {module:model/GetRolesAllOf} The populated GetRolesAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetRolesAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [FullRole]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = RolesAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of roles - * @member {Array.} data - */ -GetRolesAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/RolesAdditionalData} additional_data - */ -GetRolesAllOf.prototype['additional_data'] = undefined; - - - - - - -export default GetRolesAllOf; - diff --git a/src/model/GetStageDeals.js b/src/model/GetStageDeals.js deleted file mode 100644 index 64f48060..00000000 --- a/src/model/GetStageDeals.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import DealStrict from './DealStrict'; - -/** - * The GetStageDeals model module. - * @module model/GetStageDeals - * @version 1.0.0 - */ -class GetStageDeals { - /** - * Constructs a new GetStageDeals. - * @alias module:model/GetStageDeals - */ - constructor() { - - GetStageDeals.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetStageDeals from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetStageDeals} obj Optional instance to populate. - * @return {module:model/GetStageDeals} The populated GetStageDeals instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetStageDeals(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [DealStrict]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetStageDeals.prototype['success'] = undefined; - -/** - * The array of deals - * @member {Array.} data - */ -GetStageDeals.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -GetStageDeals.prototype['additional_data'] = undefined; - - - - - - -export default GetStageDeals; - diff --git a/src/model/GetStages.js b/src/model/GetStages.js deleted file mode 100644 index 17001ee5..00000000 --- a/src/model/GetStages.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import StageWithPipelineInfo from './StageWithPipelineInfo'; - -/** - * The GetStages model module. - * @module model/GetStages - * @version 1.0.0 - */ -class GetStages { - /** - * Constructs a new GetStages. - * @alias module:model/GetStages - */ - constructor() { - - GetStages.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetStages from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetStages} obj Optional instance to populate. - * @return {module:model/GetStages} The populated GetStages instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetStages(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [StageWithPipelineInfo]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GetStages.prototype['success'] = undefined; - -/** - * The array of stages - * @member {Array.} data - */ -GetStages.prototype['data'] = undefined; - - - - - - -export default GetStages; - diff --git a/src/model/GetTaskResponse.js b/src/model/GetTaskResponse.js deleted file mode 100644 index b5200c49..00000000 --- a/src/model/GetTaskResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import TaskResponseObject from './TaskResponseObject'; - -/** - * The GetTaskResponse model module. - * @module model/GetTaskResponse - * @version 1.0.0 - */ -class GetTaskResponse { - /** - * Constructs a new GetTaskResponse. - * @alias module:model/GetTaskResponse - */ - constructor() { - - GetTaskResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetTaskResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTaskResponse} obj Optional instance to populate. - * @return {module:model/GetTaskResponse} The populated GetTaskResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetTaskResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = TaskResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetTaskResponse.prototype['success'] = undefined; - -/** - * @member {module:model/TaskResponseObject} data - */ -GetTaskResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetTaskResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetTaskResponse; - diff --git a/src/model/GetTaskResponse200.js b/src/model/GetTaskResponse200.js deleted file mode 100644 index e113baf5..00000000 --- a/src/model/GetTaskResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import TaskResponseObject from './TaskResponseObject'; - -/** - * The GetTaskResponse200 model module. - * @module model/GetTaskResponse200 - * @version 1.0.0 - */ -class GetTaskResponse200 { - /** - * Constructs a new GetTaskResponse200. - * @alias module:model/GetTaskResponse200 - */ - constructor() { - - GetTaskResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetTaskResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTaskResponse200} obj Optional instance to populate. - * @return {module:model/GetTaskResponse200} The populated GetTaskResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetTaskResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = TaskResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetTaskResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/TaskResponseObject} data - */ -GetTaskResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -GetTaskResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetTaskResponse200; - diff --git a/src/model/GetTasksResponse.js b/src/model/GetTasksResponse.js deleted file mode 100644 index bf3f3dcb..00000000 --- a/src/model/GetTasksResponse.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; -import TaskResponseObject from './TaskResponseObject'; - -/** - * The GetTasksResponse model module. - * @module model/GetTasksResponse - * @version 1.0.0 - */ -class GetTasksResponse { - /** - * Constructs a new GetTasksResponse. - * @alias module:model/GetTasksResponse - */ - constructor() { - - GetTasksResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetTasksResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTasksResponse} obj Optional instance to populate. - * @return {module:model/GetTasksResponse} The populated GetTasksResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetTasksResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [TaskResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetTasksResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetTasksResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -GetTasksResponse.prototype['additional_data'] = undefined; - - - - - - -export default GetTasksResponse; - diff --git a/src/model/GetTasksResponse200.js b/src/model/GetTasksResponse200.js deleted file mode 100644 index 3192e516..00000000 --- a/src/model/GetTasksResponse200.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; -import TaskResponseObject from './TaskResponseObject'; - -/** - * The GetTasksResponse200 model module. - * @module model/GetTasksResponse200 - * @version 1.0.0 - */ -class GetTasksResponse200 { - /** - * Constructs a new GetTasksResponse200. - * @alias module:model/GetTasksResponse200 - */ - constructor() { - - GetTasksResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetTasksResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetTasksResponse200} obj Optional instance to populate. - * @return {module:model/GetTasksResponse200} The populated GetTasksResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetTasksResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [TaskResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -GetTasksResponse200.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -GetTasksResponse200.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -GetTasksResponse200.prototype['additional_data'] = undefined; - - - - - - -export default GetTasksResponse200; - diff --git a/src/model/GlobalMessageBaseResponse.js b/src/model/GlobalMessageBaseResponse.js deleted file mode 100644 index 7df1634d..00000000 --- a/src/model/GlobalMessageBaseResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GlobalMessageBaseResponse model module. - * @module model/GlobalMessageBaseResponse - * @version 1.0.0 - */ -class GlobalMessageBaseResponse { - /** - * Constructs a new GlobalMessageBaseResponse. - * @alias module:model/GlobalMessageBaseResponse - */ - constructor() { - - GlobalMessageBaseResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GlobalMessageBaseResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GlobalMessageBaseResponse} obj Optional instance to populate. - * @return {module:model/GlobalMessageBaseResponse} The populated GlobalMessageBaseResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GlobalMessageBaseResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GlobalMessageBaseResponse.prototype['success'] = undefined; - - - - - - -export default GlobalMessageBaseResponse; - diff --git a/src/model/GlobalMessageData.js b/src/model/GlobalMessageData.js deleted file mode 100644 index 63c89f54..00000000 --- a/src/model/GlobalMessageData.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GlobalMessageUserData from './GlobalMessageUserData'; - -/** - * The GlobalMessageData model module. - * @module model/GlobalMessageData - * @version 1.0.0 - */ -class GlobalMessageData { - /** - * Constructs a new GlobalMessageData. - * The global message data - * @alias module:model/GlobalMessageData - */ - constructor() { - - GlobalMessageData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GlobalMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GlobalMessageData} obj Optional instance to populate. - * @return {module:model/GlobalMessageData} The populated GlobalMessageData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GlobalMessageData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('type_info')) { - obj['type_info'] = GlobalMessageUserData.constructFromObject(data['type_info']); - - delete data['type_info']; - } - if (data.hasOwnProperty('user_data')) { - obj['user_data'] = ApiClient.convertToType(data['user_data'], Object); - - delete data['user_data']; - } - if (data.hasOwnProperty('html')) { - obj['html'] = ApiClient.convertToType(data['html'], 'String'); - - delete data['html']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the global message - * @member {Number} id - */ -GlobalMessageData.prototype['id'] = undefined; - -/** - * The ID of the user related to the global message - * @member {Number} user_id - */ -GlobalMessageData.prototype['user_id'] = undefined; - -/** - * The ID of the company related to the global message - * @member {Number} company_id - */ -GlobalMessageData.prototype['company_id'] = undefined; - -/** - * @member {module:model/GlobalMessageUserData} type_info - */ -GlobalMessageData.prototype['type_info'] = undefined; - -/** - * The user data for the global message (such as `user_id`, `name`, `email`, `phone`) - * @member {Object} user_data - */ -GlobalMessageData.prototype['user_data'] = undefined; - -/** - * HTML for each returned global message to render views - * @member {String} html - */ -GlobalMessageData.prototype['html'] = undefined; - - - - - - -export default GlobalMessageData; - diff --git a/src/model/GlobalMessageDelete.js b/src/model/GlobalMessageDelete.js deleted file mode 100644 index 63ad78e0..00000000 --- a/src/model/GlobalMessageDelete.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GlobalMessageBaseResponse from './GlobalMessageBaseResponse'; -import GlobalMessageData from './GlobalMessageData'; -import GlobalMessageDeleteAllOf from './GlobalMessageDeleteAllOf'; - -/** - * The GlobalMessageDelete model module. - * @module model/GlobalMessageDelete - * @version 1.0.0 - */ -class GlobalMessageDelete { - /** - * Constructs a new GlobalMessageDelete. - * @alias module:model/GlobalMessageDelete - * @implements module:model/GlobalMessageBaseResponse - * @implements module:model/GlobalMessageDeleteAllOf - */ - constructor() { - GlobalMessageBaseResponse.initialize(this);GlobalMessageDeleteAllOf.initialize(this); - GlobalMessageDelete.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GlobalMessageDelete from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GlobalMessageDelete} obj Optional instance to populate. - * @return {module:model/GlobalMessageDelete} The populated GlobalMessageDelete instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GlobalMessageDelete(); - GlobalMessageBaseResponse.constructFromObject(data, obj); - GlobalMessageDeleteAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = GlobalMessageData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('handle_time')) { - obj['handle_time'] = ApiClient.convertToType(data['handle_time'], 'Number'); - - delete data['handle_time']; - } - if (data.hasOwnProperty('_req_time_ctx_ms')) { - obj['_req_time_ctx_ms'] = ApiClient.convertToType(data['_req_time_ctx_ms'], Object); - - delete data['_req_time_ctx_ms']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GlobalMessageDelete.prototype['success'] = undefined; - -/** - * @member {module:model/GlobalMessageData} data - */ -GlobalMessageDelete.prototype['data'] = undefined; - -/** - * The total time of the controller processing - * @member {Number} handle_time - */ -GlobalMessageDelete.prototype['handle_time'] = undefined; - -/** - * The list of timers formatted by name and elapsed time in ms (such as `app`, `app_xss_clean`, `db_connect`) - * @member {Object} _req_time_ctx_ms - */ -GlobalMessageDelete.prototype['_req_time_ctx_ms'] = undefined; - - -// Implement GlobalMessageBaseResponse interface: -/** - * If the request was successful or not - * @member {Boolean} success - */ -GlobalMessageBaseResponse.prototype['success'] = undefined; -// Implement GlobalMessageDeleteAllOf interface: -/** - * @member {module:model/GlobalMessageData} data - */ -GlobalMessageDeleteAllOf.prototype['data'] = undefined; -/** - * The total time of the controller processing - * @member {Number} handle_time - */ -GlobalMessageDeleteAllOf.prototype['handle_time'] = undefined; -/** - * The list of timers formatted by name and elapsed time in ms (such as `app`, `app_xss_clean`, `db_connect`) - * @member {Object} _req_time_ctx_ms - */ -GlobalMessageDeleteAllOf.prototype['_req_time_ctx_ms'] = undefined; - - - - -export default GlobalMessageDelete; - diff --git a/src/model/GlobalMessageDeleteAllOf.js b/src/model/GlobalMessageDeleteAllOf.js deleted file mode 100644 index eb2543de..00000000 --- a/src/model/GlobalMessageDeleteAllOf.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GlobalMessageData from './GlobalMessageData'; - -/** - * The GlobalMessageDeleteAllOf model module. - * @module model/GlobalMessageDeleteAllOf - * @version 1.0.0 - */ -class GlobalMessageDeleteAllOf { - /** - * Constructs a new GlobalMessageDeleteAllOf. - * @alias module:model/GlobalMessageDeleteAllOf - */ - constructor() { - - GlobalMessageDeleteAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GlobalMessageDeleteAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GlobalMessageDeleteAllOf} obj Optional instance to populate. - * @return {module:model/GlobalMessageDeleteAllOf} The populated GlobalMessageDeleteAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GlobalMessageDeleteAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = GlobalMessageData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('handle_time')) { - obj['handle_time'] = ApiClient.convertToType(data['handle_time'], 'Number'); - - delete data['handle_time']; - } - if (data.hasOwnProperty('_req_time_ctx_ms')) { - obj['_req_time_ctx_ms'] = ApiClient.convertToType(data['_req_time_ctx_ms'], Object); - - delete data['_req_time_ctx_ms']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/GlobalMessageData} data - */ -GlobalMessageDeleteAllOf.prototype['data'] = undefined; - -/** - * The total time of the controller processing - * @member {Number} handle_time - */ -GlobalMessageDeleteAllOf.prototype['handle_time'] = undefined; - -/** - * The list of timers formatted by name and elapsed time in ms (such as `app`, `app_xss_clean`, `db_connect`) - * @member {Object} _req_time_ctx_ms - */ -GlobalMessageDeleteAllOf.prototype['_req_time_ctx_ms'] = undefined; - - - - - - -export default GlobalMessageDeleteAllOf; - diff --git a/src/model/GlobalMessageGet.js b/src/model/GlobalMessageGet.js deleted file mode 100644 index 9dbc17d8..00000000 --- a/src/model/GlobalMessageGet.js +++ /dev/null @@ -1,141 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GlobalMessageBaseResponse from './GlobalMessageBaseResponse'; -import GlobalMessageData from './GlobalMessageData'; -import GlobalMessageGetAllOf from './GlobalMessageGetAllOf'; - -/** - * The GlobalMessageGet model module. - * @module model/GlobalMessageGet - * @version 1.0.0 - */ -class GlobalMessageGet { - /** - * Constructs a new GlobalMessageGet. - * @alias module:model/GlobalMessageGet - * @implements module:model/GlobalMessageBaseResponse - * @implements module:model/GlobalMessageGetAllOf - */ - constructor() { - GlobalMessageBaseResponse.initialize(this);GlobalMessageGetAllOf.initialize(this); - GlobalMessageGet.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GlobalMessageGet from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GlobalMessageGet} obj Optional instance to populate. - * @return {module:model/GlobalMessageGet} The populated GlobalMessageGet instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GlobalMessageGet(); - GlobalMessageBaseResponse.constructFromObject(data, obj); - GlobalMessageGetAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [GlobalMessageData]); - - delete data['data']; - } - if (data.hasOwnProperty('handle_time')) { - obj['handle_time'] = ApiClient.convertToType(data['handle_time'], 'Number'); - - delete data['handle_time']; - } - if (data.hasOwnProperty('_req_time_ctx_ms')) { - obj['_req_time_ctx_ms'] = ApiClient.convertToType(data['_req_time_ctx_ms'], Object); - - delete data['_req_time_ctx_ms']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -GlobalMessageGet.prototype['success'] = undefined; - -/** - * The array of global messages - * @member {Array.} data - */ -GlobalMessageGet.prototype['data'] = undefined; - -/** - * The total time of the controller processing - * @member {Number} handle_time - */ -GlobalMessageGet.prototype['handle_time'] = undefined; - -/** - * The list of timers formatted by name and elapsed time in ms (such as `app`, `app_xss_clean`, `app_sanitizer_xss`) - * @member {Object} _req_time_ctx_ms - */ -GlobalMessageGet.prototype['_req_time_ctx_ms'] = undefined; - - -// Implement GlobalMessageBaseResponse interface: -/** - * If the request was successful or not - * @member {Boolean} success - */ -GlobalMessageBaseResponse.prototype['success'] = undefined; -// Implement GlobalMessageGetAllOf interface: -/** - * The array of global messages - * @member {Array.} data - */ -GlobalMessageGetAllOf.prototype['data'] = undefined; -/** - * The total time of the controller processing - * @member {Number} handle_time - */ -GlobalMessageGetAllOf.prototype['handle_time'] = undefined; -/** - * The list of timers formatted by name and elapsed time in ms (such as `app`, `app_xss_clean`, `app_sanitizer_xss`) - * @member {Object} _req_time_ctx_ms - */ -GlobalMessageGetAllOf.prototype['_req_time_ctx_ms'] = undefined; - - - - -export default GlobalMessageGet; - diff --git a/src/model/GlobalMessageGetAllOf.js b/src/model/GlobalMessageGetAllOf.js deleted file mode 100644 index 83535272..00000000 --- a/src/model/GlobalMessageGetAllOf.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GlobalMessageData from './GlobalMessageData'; - -/** - * The GlobalMessageGetAllOf model module. - * @module model/GlobalMessageGetAllOf - * @version 1.0.0 - */ -class GlobalMessageGetAllOf { - /** - * Constructs a new GlobalMessageGetAllOf. - * @alias module:model/GlobalMessageGetAllOf - */ - constructor() { - - GlobalMessageGetAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GlobalMessageGetAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GlobalMessageGetAllOf} obj Optional instance to populate. - * @return {module:model/GlobalMessageGetAllOf} The populated GlobalMessageGetAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GlobalMessageGetAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [GlobalMessageData]); - - delete data['data']; - } - if (data.hasOwnProperty('handle_time')) { - obj['handle_time'] = ApiClient.convertToType(data['handle_time'], 'Number'); - - delete data['handle_time']; - } - if (data.hasOwnProperty('_req_time_ctx_ms')) { - obj['_req_time_ctx_ms'] = ApiClient.convertToType(data['_req_time_ctx_ms'], Object); - - delete data['_req_time_ctx_ms']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of global messages - * @member {Array.} data - */ -GlobalMessageGetAllOf.prototype['data'] = undefined; - -/** - * The total time of the controller processing - * @member {Number} handle_time - */ -GlobalMessageGetAllOf.prototype['handle_time'] = undefined; - -/** - * The list of timers formatted by name and elapsed time in ms (such as `app`, `app_xss_clean`, `app_sanitizer_xss`) - * @member {Object} _req_time_ctx_ms - */ -GlobalMessageGetAllOf.prototype['_req_time_ctx_ms'] = undefined; - - - - - - -export default GlobalMessageGetAllOf; - diff --git a/src/model/GlobalMessageUserData.js b/src/model/GlobalMessageUserData.js deleted file mode 100644 index a589f287..00000000 --- a/src/model/GlobalMessageUserData.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GlobalMessageUserData model module. - * @module model/GlobalMessageUserData - * @version 1.0.0 - */ -class GlobalMessageUserData { - /** - * Constructs a new GlobalMessageUserData. - * The global message type info - * @alias module:model/GlobalMessageUserData - */ - constructor() { - - GlobalMessageUserData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GlobalMessageUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GlobalMessageUserData} obj Optional instance to populate. - * @return {module:model/GlobalMessageUserData} The populated GlobalMessageUserData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GlobalMessageUserData(); - - if (data.hasOwnProperty('message_type')) { - obj['message_type'] = ApiClient.convertToType(data['message_type'], 'String'); - - delete data['message_type']; - } - if (data.hasOwnProperty('dismissible_flag')) { - obj['dismissible_flag'] = ApiClient.convertToType(data['dismissible_flag'], 'Boolean'); - - delete data['dismissible_flag']; - } - if (data.hasOwnProperty('priority')) { - obj['priority'] = ApiClient.convertToType(data['priority'], 'Number'); - - delete data['priority']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The global message type for validation checks - * @member {String} message_type - */ -GlobalMessageUserData.prototype['message_type'] = undefined; - -/** - * Whether a user can dismiss the global message or not - * @member {Boolean} dismissible_flag - */ -GlobalMessageUserData.prototype['dismissible_flag'] = undefined; - -/** - * Sorts messages by priority DESC (from 0 to 10) - * @member {Number} priority - */ -GlobalMessageUserData.prototype['priority'] = undefined; - - - - - - -export default GlobalMessageUserData; - diff --git a/src/model/GoalResults.js b/src/model/GoalResults.js deleted file mode 100644 index 08b864b0..00000000 --- a/src/model/GoalResults.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GoalsResponseComponent from './GoalsResponseComponent'; - -/** - * The GoalResults model module. - * @module model/GoalResults - * @version 1.0.0 - */ -class GoalResults { - /** - * Constructs a new GoalResults. - * @alias module:model/GoalResults - */ - constructor() { - - GoalResults.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GoalResults from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GoalResults} obj Optional instance to populate. - * @return {module:model/GoalResults} The populated GoalResults instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GoalResults(); - - if (data.hasOwnProperty('progress')) { - obj['progress'] = ApiClient.convertToType(data['progress'], 'Number'); - - delete data['progress']; - } - if (data.hasOwnProperty('goal')) { - obj['goal'] = GoalsResponseComponent.constructFromObject(data['goal']); - - delete data['goal']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The numeric progress of the goal - * @member {Number} progress - */ -GoalResults.prototype['progress'] = undefined; - -/** - * @member {module:model/GoalsResponseComponent} goal - */ -GoalResults.prototype['goal'] = undefined; - - - - - - -export default GoalResults; - diff --git a/src/model/GoalType.js b/src/model/GoalType.js deleted file mode 100644 index f9cb3a74..00000000 --- a/src/model/GoalType.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Params from './Params'; - -/** - * The GoalType model module. - * @module model/GoalType - * @version 1.0.0 - */ -class GoalType { - /** - * Constructs a new GoalType. - * The type of the goal - * @alias module:model/GoalType - */ - constructor() { - - GoalType.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GoalType from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GoalType} obj Optional instance to populate. - * @return {module:model/GoalType} The populated GoalType instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GoalType(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('params')) { - obj['params'] = Params.constructFromObject(data['params']); - - delete data['params']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the goal type - * @member {String} name - */ -GoalType.prototype['name'] = undefined; - -/** - * @member {module:model/Params} params - */ -GoalType.prototype['params'] = undefined; - - - - - - -export default GoalType; - diff --git a/src/model/GoalsResponseComponent.js b/src/model/GoalsResponseComponent.js deleted file mode 100644 index 12874bb8..00000000 --- a/src/model/GoalsResponseComponent.js +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Assignee from './Assignee'; -import Duration from './Duration'; -import ExpectedOutcome from './ExpectedOutcome'; -import GoalType from './GoalType'; - -/** - * The GoalsResponseComponent model module. - * @module model/GoalsResponseComponent - * @version 1.0.0 - */ -class GoalsResponseComponent { - /** - * Constructs a new GoalsResponseComponent. - * @alias module:model/GoalsResponseComponent - */ - constructor() { - - GoalsResponseComponent.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GoalsResponseComponent from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GoalsResponseComponent} obj Optional instance to populate. - * @return {module:model/GoalsResponseComponent} The populated GoalsResponseComponent instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GoalsResponseComponent(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = GoalType.constructFromObject(data['type']); - - delete data['type']; - } - if (data.hasOwnProperty('assignee')) { - obj['assignee'] = Assignee.constructFromObject(data['assignee']); - - delete data['assignee']; - } - if (data.hasOwnProperty('interval')) { - obj['interval'] = ApiClient.convertToType(data['interval'], 'String'); - - delete data['interval']; - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = Duration.constructFromObject(data['duration']); - - delete data['duration']; - } - if (data.hasOwnProperty('expected_outcome')) { - obj['expected_outcome'] = ExpectedOutcome.constructFromObject(data['expected_outcome']); - - delete data['expected_outcome']; - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); - - delete data['is_active']; - } - if (data.hasOwnProperty('report_ids')) { - obj['report_ids'] = ApiClient.convertToType(data['report_ids'], ['String']); - - delete data['report_ids']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the goal - * @member {String} id - */ -GoalsResponseComponent.prototype['id'] = undefined; - -/** - * The ID of the creator of the goal - * @member {Number} owner_id - */ -GoalsResponseComponent.prototype['owner_id'] = undefined; - -/** - * The title of the goal - * @member {String} title - */ -GoalsResponseComponent.prototype['title'] = undefined; - -/** - * @member {module:model/GoalType} type - */ -GoalsResponseComponent.prototype['type'] = undefined; - -/** - * @member {module:model/Assignee} assignee - */ -GoalsResponseComponent.prototype['assignee'] = undefined; - -/** - * The interval of the goal - * @member {String} interval - */ -GoalsResponseComponent.prototype['interval'] = undefined; - -/** - * @member {module:model/Duration} duration - */ -GoalsResponseComponent.prototype['duration'] = undefined; - -/** - * @member {module:model/ExpectedOutcome} expected_outcome - */ -GoalsResponseComponent.prototype['expected_outcome'] = undefined; - -/** - * Whether the goal is currently active or not - * @member {Boolean} is_active - */ -GoalsResponseComponent.prototype['is_active'] = undefined; - -/** - * The IDs of the reports that belong to the goal - * @member {Array.} report_ids - */ -GoalsResponseComponent.prototype['report_ids'] = undefined; - - - - - - -export default GoalsResponseComponent; - diff --git a/src/model/IconKey.js b/src/model/IconKey.js deleted file mode 100644 index db359bdf..00000000 --- a/src/model/IconKey.js +++ /dev/null @@ -1,320 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class IconKey. -* @enum {} -* @readonly -*/ -export default class IconKey { - - /** - * value: "task" - * @const - */ - "task" = "task"; - - - /** - * value: "email" - * @const - */ - "email" = "email"; - - - /** - * value: "meeting" - * @const - */ - "meeting" = "meeting"; - - - /** - * value: "deadline" - * @const - */ - "deadline" = "deadline"; - - - /** - * value: "call" - * @const - */ - "call" = "call"; - - - /** - * value: "lunch" - * @const - */ - "lunch" = "lunch"; - - - /** - * value: "calendar" - * @const - */ - "calendar" = "calendar"; - - - /** - * value: "downarrow" - * @const - */ - "downarrow" = "downarrow"; - - - /** - * value: "document" - * @const - */ - "document" = "document"; - - - /** - * value: "smartphone" - * @const - */ - "smartphone" = "smartphone"; - - - /** - * value: "camera" - * @const - */ - "camera" = "camera"; - - - /** - * value: "scissors" - * @const - */ - "scissors" = "scissors"; - - - /** - * value: "cogs" - * @const - */ - "cogs" = "cogs"; - - - /** - * value: "bubble" - * @const - */ - "bubble" = "bubble"; - - - /** - * value: "uparrow" - * @const - */ - "uparrow" = "uparrow"; - - - /** - * value: "checkbox" - * @const - */ - "checkbox" = "checkbox"; - - - /** - * value: "signpost" - * @const - */ - "signpost" = "signpost"; - - - /** - * value: "shuffle" - * @const - */ - "shuffle" = "shuffle"; - - - /** - * value: "addressbook" - * @const - */ - "addressbook" = "addressbook"; - - - /** - * value: "linegraph" - * @const - */ - "linegraph" = "linegraph"; - - - /** - * value: "picture" - * @const - */ - "picture" = "picture"; - - - /** - * value: "car" - * @const - */ - "car" = "car"; - - - /** - * value: "world" - * @const - */ - "world" = "world"; - - - /** - * value: "search" - * @const - */ - "search" = "search"; - - - /** - * value: "clip" - * @const - */ - "clip" = "clip"; - - - /** - * value: "sound" - * @const - */ - "sound" = "sound"; - - - /** - * value: "brush" - * @const - */ - "brush" = "brush"; - - - /** - * value: "key" - * @const - */ - "key" = "key"; - - - /** - * value: "padlock" - * @const - */ - "padlock" = "padlock"; - - - /** - * value: "pricetag" - * @const - */ - "pricetag" = "pricetag"; - - - /** - * value: "suitcase" - * @const - */ - "suitcase" = "suitcase"; - - - /** - * value: "finish" - * @const - */ - "finish" = "finish"; - - - /** - * value: "plane" - * @const - */ - "plane" = "plane"; - - - /** - * value: "loop" - * @const - */ - "loop" = "loop"; - - - /** - * value: "wifi" - * @const - */ - "wifi" = "wifi"; - - - /** - * value: "truck" - * @const - */ - "truck" = "truck"; - - - /** - * value: "cart" - * @const - */ - "cart" = "cart"; - - - /** - * value: "bulb" - * @const - */ - "bulb" = "bulb"; - - - /** - * value: "bell" - * @const - */ - "bell" = "bell"; - - - /** - * value: "presentation" - * @const - */ - "presentation" = "presentation"; - - - - /** - * Returns a IconKey enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/IconKey} The enum IconKey value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/InlineResponse200.js b/src/model/InlineResponse200.js deleted file mode 100644 index 2f639910..00000000 --- a/src/model/InlineResponse200.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MessageObject from './MessageObject'; - -/** - * The InlineResponse200 model module. - * @module model/InlineResponse200 - * @version 1.0.0 - */ -class InlineResponse200 { - /** - * Constructs a new InlineResponse200. - * @alias module:model/InlineResponse200 - */ - constructor() { - - InlineResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse200} obj Optional instance to populate. - * @return {module:model/InlineResponse200} The populated InlineResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = MessageObject.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -InlineResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/MessageObject} data - */ -InlineResponse200.prototype['data'] = undefined; - - - - - - -export default InlineResponse200; - diff --git a/src/model/InlineResponse2001.js b/src/model/InlineResponse2001.js deleted file mode 100644 index 02373205..00000000 --- a/src/model/InlineResponse2001.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; -import OrganizationsCollectionResponseObject from './OrganizationsCollectionResponseObject'; - -/** - * The InlineResponse2001 model module. - * @module model/InlineResponse2001 - * @version 1.0.0 - */ -class InlineResponse2001 { - /** - * Constructs a new InlineResponse2001. - * @alias module:model/InlineResponse2001 - */ - constructor() { - - InlineResponse2001.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse2001 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse2001} obj Optional instance to populate. - * @return {module:model/InlineResponse2001} The populated InlineResponse2001 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse2001(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [OrganizationsCollectionResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -InlineResponse2001.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -InlineResponse2001.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -InlineResponse2001.prototype['additional_data'] = undefined; - - - - - - -export default InlineResponse2001; - diff --git a/src/model/InlineResponse2002.js b/src/model/InlineResponse2002.js deleted file mode 100644 index 7ecdd623..00000000 --- a/src/model/InlineResponse2002.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalDataWithCursorPagination from './AdditionalDataWithCursorPagination'; -import PersonsCollectionResponseObject from './PersonsCollectionResponseObject'; - -/** - * The InlineResponse2002 model module. - * @module model/InlineResponse2002 - * @version 1.0.0 - */ -class InlineResponse2002 { - /** - * Constructs a new InlineResponse2002. - * @alias module:model/InlineResponse2002 - */ - constructor() { - - InlineResponse2002.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse2002 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse2002} obj Optional instance to populate. - * @return {module:model/InlineResponse2002} The populated InlineResponse2002 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse2002(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PersonsCollectionResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalDataWithCursorPagination.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -InlineResponse2002.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -InlineResponse2002.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalDataWithCursorPagination} additional_data - */ -InlineResponse2002.prototype['additional_data'] = undefined; - - - - - - -export default InlineResponse2002; - diff --git a/src/model/InlineResponse400.js b/src/model/InlineResponse400.js deleted file mode 100644 index f1149cf5..00000000 --- a/src/model/InlineResponse400.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import InlineResponse400AdditionalData from './InlineResponse400AdditionalData'; - -/** - * The InlineResponse400 model module. - * @module model/InlineResponse400 - * @version 1.0.0 - */ -class InlineResponse400 { - /** - * Constructs a new InlineResponse400. - * @alias module:model/InlineResponse400 - */ - constructor() { - - InlineResponse400.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse400 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse400} obj Optional instance to populate. - * @return {module:model/InlineResponse400} The populated InlineResponse400 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse400(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = InlineResponse400AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -InlineResponse400.prototype['success'] = undefined; - -/** - * The error description - * @member {String} error - */ -InlineResponse400.prototype['error'] = undefined; - -/** - * @member {String} error_info - */ -InlineResponse400.prototype['error_info'] = undefined; - -/** - * @member {module:model/InlineResponse400AdditionalData} additional_data - */ -InlineResponse400.prototype['additional_data'] = undefined; - - - - - - -export default InlineResponse400; - diff --git a/src/model/InlineResponse4001.js b/src/model/InlineResponse4001.js deleted file mode 100644 index dd09ed27..00000000 --- a/src/model/InlineResponse4001.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import InlineResponse4001AdditionalData from './InlineResponse4001AdditionalData'; - -/** - * The InlineResponse4001 model module. - * @module model/InlineResponse4001 - * @version 1.0.0 - */ -class InlineResponse4001 { - /** - * Constructs a new InlineResponse4001. - * @alias module:model/InlineResponse4001 - */ - constructor() { - - InlineResponse4001.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse4001 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse4001} obj Optional instance to populate. - * @return {module:model/InlineResponse4001} The populated InlineResponse4001 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse4001(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = InlineResponse4001AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -InlineResponse4001.prototype['success'] = undefined; - -/** - * The error description - * @member {String} error - */ -InlineResponse4001.prototype['error'] = undefined; - -/** - * @member {String} error_info - */ -InlineResponse4001.prototype['error_info'] = undefined; - -/** - * @member {module:model/InlineResponse4001AdditionalData} additional_data - */ -InlineResponse4001.prototype['additional_data'] = undefined; - - - - - - -export default InlineResponse4001; - diff --git a/src/model/InlineResponse4001AdditionalData.js b/src/model/InlineResponse4001AdditionalData.js deleted file mode 100644 index 4bf79c67..00000000 --- a/src/model/InlineResponse4001AdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The InlineResponse4001AdditionalData model module. - * @module model/InlineResponse4001AdditionalData - * @version 1.0.0 - */ -class InlineResponse4001AdditionalData { - /** - * Constructs a new InlineResponse4001AdditionalData. - * @alias module:model/InlineResponse4001AdditionalData - */ - constructor() { - - InlineResponse4001AdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse4001AdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse4001AdditionalData} obj Optional instance to populate. - * @return {module:model/InlineResponse4001AdditionalData} The populated InlineResponse4001AdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse4001AdditionalData(); - - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * An error code sent by the API - * @member {String} code - */ -InlineResponse4001AdditionalData.prototype['code'] = undefined; - - - - - - -export default InlineResponse4001AdditionalData; - diff --git a/src/model/InlineResponse400AdditionalData.js b/src/model/InlineResponse400AdditionalData.js deleted file mode 100644 index 0feab592..00000000 --- a/src/model/InlineResponse400AdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The InlineResponse400AdditionalData model module. - * @module model/InlineResponse400AdditionalData - * @version 1.0.0 - */ -class InlineResponse400AdditionalData { - /** - * Constructs a new InlineResponse400AdditionalData. - * @alias module:model/InlineResponse400AdditionalData - */ - constructor() { - - InlineResponse400AdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse400AdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse400AdditionalData} obj Optional instance to populate. - * @return {module:model/InlineResponse400AdditionalData} The populated InlineResponse400AdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse400AdditionalData(); - - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * An error code sent by the API - * @member {String} code - */ -InlineResponse400AdditionalData.prototype['code'] = undefined; - - - - - - -export default InlineResponse400AdditionalData; - diff --git a/src/model/InlineResponse403.js b/src/model/InlineResponse403.js deleted file mode 100644 index 559ab2c6..00000000 --- a/src/model/InlineResponse403.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import InlineResponse403AdditionalData from './InlineResponse403AdditionalData'; - -/** - * The InlineResponse403 model module. - * @module model/InlineResponse403 - * @version 1.0.0 - */ -class InlineResponse403 { - /** - * Constructs a new InlineResponse403. - * @alias module:model/InlineResponse403 - */ - constructor() { - - InlineResponse403.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse403 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse403} obj Optional instance to populate. - * @return {module:model/InlineResponse403} The populated InlineResponse403 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse403(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = InlineResponse403AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -InlineResponse403.prototype['success'] = undefined; - -/** - * The error description - * @member {String} error - */ -InlineResponse403.prototype['error'] = undefined; - -/** - * @member {String} error_info - */ -InlineResponse403.prototype['error_info'] = undefined; - -/** - * @member {module:model/InlineResponse403AdditionalData} additional_data - */ -InlineResponse403.prototype['additional_data'] = undefined; - - - - - - -export default InlineResponse403; - diff --git a/src/model/InlineResponse4031.js b/src/model/InlineResponse4031.js deleted file mode 100644 index 7c825aa0..00000000 --- a/src/model/InlineResponse4031.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import InlineResponse4031AdditionalData from './InlineResponse4031AdditionalData'; - -/** - * The InlineResponse4031 model module. - * @module model/InlineResponse4031 - * @version 1.0.0 - */ -class InlineResponse4031 { - /** - * Constructs a new InlineResponse4031. - * @alias module:model/InlineResponse4031 - */ - constructor() { - - InlineResponse4031.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse4031 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse4031} obj Optional instance to populate. - * @return {module:model/InlineResponse4031} The populated InlineResponse4031 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse4031(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = InlineResponse4031AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -InlineResponse4031.prototype['success'] = undefined; - -/** - * The error description - * @member {String} error - */ -InlineResponse4031.prototype['error'] = undefined; - -/** - * @member {String} error_info - */ -InlineResponse4031.prototype['error_info'] = undefined; - -/** - * @member {module:model/InlineResponse4031AdditionalData} additional_data - */ -InlineResponse4031.prototype['additional_data'] = undefined; - - - - - - -export default InlineResponse4031; - diff --git a/src/model/InlineResponse4031AdditionalData.js b/src/model/InlineResponse4031AdditionalData.js deleted file mode 100644 index 04b996ab..00000000 --- a/src/model/InlineResponse4031AdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The InlineResponse4031AdditionalData model module. - * @module model/InlineResponse4031AdditionalData - * @version 1.0.0 - */ -class InlineResponse4031AdditionalData { - /** - * Constructs a new InlineResponse4031AdditionalData. - * @alias module:model/InlineResponse4031AdditionalData - */ - constructor() { - - InlineResponse4031AdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse4031AdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse4031AdditionalData} obj Optional instance to populate. - * @return {module:model/InlineResponse4031AdditionalData} The populated InlineResponse4031AdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse4031AdditionalData(); - - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * An error code sent by the API - * @member {String} code - */ -InlineResponse4031AdditionalData.prototype['code'] = undefined; - - - - - - -export default InlineResponse4031AdditionalData; - diff --git a/src/model/InlineResponse403AdditionalData.js b/src/model/InlineResponse403AdditionalData.js deleted file mode 100644 index 726c8507..00000000 --- a/src/model/InlineResponse403AdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The InlineResponse403AdditionalData model module. - * @module model/InlineResponse403AdditionalData - * @version 1.0.0 - */ -class InlineResponse403AdditionalData { - /** - * Constructs a new InlineResponse403AdditionalData. - * @alias module:model/InlineResponse403AdditionalData - */ - constructor() { - - InlineResponse403AdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse403AdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse403AdditionalData} obj Optional instance to populate. - * @return {module:model/InlineResponse403AdditionalData} The populated InlineResponse403AdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse403AdditionalData(); - - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * An error code sent by the API - * @member {String} code - */ -InlineResponse403AdditionalData.prototype['code'] = undefined; - - - - - - -export default InlineResponse403AdditionalData; - diff --git a/src/model/InlineResponse404.js b/src/model/InlineResponse404.js deleted file mode 100644 index fa4d657d..00000000 --- a/src/model/InlineResponse404.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import InlineResponse404AdditionalData from './InlineResponse404AdditionalData'; - -/** - * The InlineResponse404 model module. - * @module model/InlineResponse404 - * @version 1.0.0 - */ -class InlineResponse404 { - /** - * Constructs a new InlineResponse404. - * @alias module:model/InlineResponse404 - */ - constructor() { - - InlineResponse404.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse404 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse404} obj Optional instance to populate. - * @return {module:model/InlineResponse404} The populated InlineResponse404 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse404(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = InlineResponse404AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -InlineResponse404.prototype['success'] = undefined; - -/** - * The error description - * @member {String} error - */ -InlineResponse404.prototype['error'] = undefined; - -/** - * @member {String} error_info - */ -InlineResponse404.prototype['error_info'] = undefined; - -/** - * @member {module:model/InlineResponse404AdditionalData} additional_data - */ -InlineResponse404.prototype['additional_data'] = undefined; - - - - - - -export default InlineResponse404; - diff --git a/src/model/InlineResponse404AdditionalData.js b/src/model/InlineResponse404AdditionalData.js deleted file mode 100644 index d93926d2..00000000 --- a/src/model/InlineResponse404AdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The InlineResponse404AdditionalData model module. - * @module model/InlineResponse404AdditionalData - * @version 1.0.0 - */ -class InlineResponse404AdditionalData { - /** - * Constructs a new InlineResponse404AdditionalData. - * @alias module:model/InlineResponse404AdditionalData - */ - constructor() { - - InlineResponse404AdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a InlineResponse404AdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/InlineResponse404AdditionalData} obj Optional instance to populate. - * @return {module:model/InlineResponse404AdditionalData} The populated InlineResponse404AdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new InlineResponse404AdditionalData(); - - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * An error code sent by the API - * @member {String} code - */ -InlineResponse404AdditionalData.prototype['code'] = undefined; - - - - - - -export default InlineResponse404AdditionalData; - diff --git a/src/model/InternalFieldType.js b/src/model/InternalFieldType.js deleted file mode 100644 index 81475337..00000000 --- a/src/model/InternalFieldType.js +++ /dev/null @@ -1,278 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class InternalFieldType. -* @enum {} -* @readonly -*/ -export default class InternalFieldType { - - /** - * value: "boolean" - * @const - */ - "boolean" = "boolean"; - - - /** - * value: "double" - * @const - */ - "double" = "double"; - - - /** - * value: "int" - * @const - */ - "int" = "int"; - - - /** - * value: "json" - * @const - */ - "json" = "json"; - - - /** - * value: "date" - * @const - */ - "date" = "date"; - - - /** - * value: "daterange" - * @const - */ - "daterange" = "daterange"; - - - /** - * value: "time" - * @const - */ - "time" = "time"; - - - /** - * value: "timerange" - * @const - */ - "timerange" = "timerange"; - - - /** - * value: "text" - * @const - */ - "text" = "text"; - - - /** - * value: "varchar" - * @const - */ - "varchar" = "varchar"; - - - /** - * value: "varchar_auto" - * @const - */ - "varchar_auto" = "varchar_auto"; - - - /** - * value: "varchar_options" - * @const - */ - "varchar_options" = "varchar_options"; - - - /** - * value: "address" - * @const - */ - "address" = "address"; - - - /** - * value: "enum" - * @const - */ - "enum" = "enum"; - - - /** - * value: "monetary" - * @const - */ - "monetary" = "monetary"; - - - /** - * value: "phone" - * @const - */ - "phone" = "phone"; - - - /** - * value: "set" - * @const - */ - "set" = "set"; - - - /** - * value: "activity" - * @const - */ - "activity" = "activity"; - - - /** - * value: "deal" - * @const - */ - "deal" = "deal"; - - - /** - * value: "lead" - * @const - */ - "lead" = "lead"; - - - /** - * value: "org" - * @const - */ - "org" = "org"; - - - /** - * value: "people" - * @const - */ - "people" = "people"; - - - /** - * value: "pipeline" - * @const - */ - "pipeline" = "pipeline"; - - - /** - * value: "product" - * @const - */ - "product" = "product"; - - - /** - * value: "project" - * @const - */ - "project" = "project"; - - - /** - * value: "stage" - * @const - */ - "stage" = "stage"; - - - /** - * value: "user" - * @const - */ - "user" = "user"; - - - /** - * value: "billing_frequency" - * @const - */ - "billing_frequency" = "billing_frequency"; - - - /** - * value: "picture" - * @const - */ - "picture" = "picture"; - - - /** - * value: "price_list" - * @const - */ - "price_list" = "price_list"; - - - /** - * value: "projects_board" - * @const - */ - "projects_board" = "projects_board"; - - - /** - * value: "projects_phase" - * @const - */ - "projects_phase" = "projects_phase"; - - - /** - * value: "status" - * @const - */ - "status" = "status"; - - - /** - * value: "visible_to" - * @const - */ - "visible_to" = "visible_to"; - - - - /** - * Returns a InternalFieldType enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/InternalFieldType} The enum InternalFieldType value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/ItemSearchAdditionalData.js b/src/model/ItemSearchAdditionalData.js deleted file mode 100644 index 95703d18..00000000 --- a/src/model/ItemSearchAdditionalData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ItemSearchAdditionalDataPagination from './ItemSearchAdditionalDataPagination'; - -/** - * The ItemSearchAdditionalData model module. - * @module model/ItemSearchAdditionalData - * @version 1.0.0 - */ -class ItemSearchAdditionalData { - /** - * Constructs a new ItemSearchAdditionalData. - * @alias module:model/ItemSearchAdditionalData - */ - constructor() { - - ItemSearchAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ItemSearchAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemSearchAdditionalData} obj Optional instance to populate. - * @return {module:model/ItemSearchAdditionalData} The populated ItemSearchAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemSearchAdditionalData(); - - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = ItemSearchAdditionalDataPagination.constructFromObject(data['pagination']); - - delete data['pagination']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ItemSearchAdditionalDataPagination} pagination - */ -ItemSearchAdditionalData.prototype['pagination'] = undefined; - - - - - - -export default ItemSearchAdditionalData; - diff --git a/src/model/ItemSearchAdditionalDataPagination.js b/src/model/ItemSearchAdditionalDataPagination.js deleted file mode 100644 index 7d6789b6..00000000 --- a/src/model/ItemSearchAdditionalDataPagination.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ItemSearchAdditionalDataPagination model module. - * @module model/ItemSearchAdditionalDataPagination - * @version 1.0.0 - */ -class ItemSearchAdditionalDataPagination { - /** - * Constructs a new ItemSearchAdditionalDataPagination. - * Pagination details of the list - * @alias module:model/ItemSearchAdditionalDataPagination - */ - constructor() { - - ItemSearchAdditionalDataPagination.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ItemSearchAdditionalDataPagination from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemSearchAdditionalDataPagination} obj Optional instance to populate. - * @return {module:model/ItemSearchAdditionalDataPagination} The populated ItemSearchAdditionalDataPagination instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemSearchAdditionalDataPagination(); - - if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number'); - - delete data['start']; - } - if (data.hasOwnProperty('limit')) { - obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); - - delete data['limit']; - } - if (data.hasOwnProperty('more_items_in_collection')) { - obj['more_items_in_collection'] = ApiClient.convertToType(data['more_items_in_collection'], 'Boolean'); - - delete data['more_items_in_collection']; - } - if (data.hasOwnProperty('next_start')) { - obj['next_start'] = ApiClient.convertToType(data['next_start'], 'Number'); - - delete data['next_start']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Pagination start - * @member {Number} start - */ -ItemSearchAdditionalDataPagination.prototype['start'] = undefined; - -/** - * Items shown per page - * @member {Number} limit - */ -ItemSearchAdditionalDataPagination.prototype['limit'] = undefined; - -/** - * Whether there are more list items in the collection than displayed - * @member {Boolean} more_items_in_collection - */ -ItemSearchAdditionalDataPagination.prototype['more_items_in_collection'] = undefined; - -/** - * Next pagination start - * @member {Number} next_start - */ -ItemSearchAdditionalDataPagination.prototype['next_start'] = undefined; - - - - - - -export default ItemSearchAdditionalDataPagination; - diff --git a/src/model/ItemSearchFieldResponse.js b/src/model/ItemSearchFieldResponse.js deleted file mode 100644 index f3ca2316..00000000 --- a/src/model/ItemSearchFieldResponse.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import ItemSearchFieldResponseAllOf from './ItemSearchFieldResponseAllOf'; -import ItemSearchFieldResponseAllOfData from './ItemSearchFieldResponseAllOfData'; - -/** - * The ItemSearchFieldResponse model module. - * @module model/ItemSearchFieldResponse - * @version 1.0.0 - */ -class ItemSearchFieldResponse { - /** - * Constructs a new ItemSearchFieldResponse. - * @alias module:model/ItemSearchFieldResponse - * @implements module:model/BaseResponse - * @implements module:model/ItemSearchFieldResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ItemSearchFieldResponseAllOf.initialize(this); - ItemSearchFieldResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ItemSearchFieldResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemSearchFieldResponse} obj Optional instance to populate. - * @return {module:model/ItemSearchFieldResponse} The populated ItemSearchFieldResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemSearchFieldResponse(); - BaseResponse.constructFromObject(data, obj); - ItemSearchFieldResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ItemSearchFieldResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ItemSearchFieldResponse.prototype['success'] = undefined; - -/** - * The array of results - * @member {Array.} data - */ -ItemSearchFieldResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ItemSearchFieldResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ItemSearchFieldResponseAllOf interface: -/** - * The array of results - * @member {Array.} data - */ -ItemSearchFieldResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ItemSearchFieldResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default ItemSearchFieldResponse; - diff --git a/src/model/ItemSearchFieldResponseAllOf.js b/src/model/ItemSearchFieldResponseAllOf.js deleted file mode 100644 index 522d6187..00000000 --- a/src/model/ItemSearchFieldResponseAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import ItemSearchFieldResponseAllOfData from './ItemSearchFieldResponseAllOfData'; - -/** - * The ItemSearchFieldResponseAllOf model module. - * @module model/ItemSearchFieldResponseAllOf - * @version 1.0.0 - */ -class ItemSearchFieldResponseAllOf { - /** - * Constructs a new ItemSearchFieldResponseAllOf. - * @alias module:model/ItemSearchFieldResponseAllOf - */ - constructor() { - - ItemSearchFieldResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ItemSearchFieldResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemSearchFieldResponseAllOf} obj Optional instance to populate. - * @return {module:model/ItemSearchFieldResponseAllOf} The populated ItemSearchFieldResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemSearchFieldResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ItemSearchFieldResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of results - * @member {Array.} data - */ -ItemSearchFieldResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ItemSearchFieldResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default ItemSearchFieldResponseAllOf; - diff --git a/src/model/ItemSearchFieldResponseAllOfData.js b/src/model/ItemSearchFieldResponseAllOfData.js deleted file mode 100644 index dead9a5b..00000000 --- a/src/model/ItemSearchFieldResponseAllOfData.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ItemSearchFieldResponseAllOfData model module. - * @module model/ItemSearchFieldResponseAllOfData - * @version 1.0.0 - */ -class ItemSearchFieldResponseAllOfData { - /** - * Constructs a new ItemSearchFieldResponseAllOfData. - * @alias module:model/ItemSearchFieldResponseAllOfData - */ - constructor() { - - ItemSearchFieldResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ItemSearchFieldResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemSearchFieldResponseAllOfData} obj Optional instance to populate. - * @return {module:model/ItemSearchFieldResponseAllOfData} The populated ItemSearchFieldResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemSearchFieldResponseAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('$field_key')) { - obj['$field_key'] = ApiClient.convertToType(data['$field_key'], Object); - - delete data['$field_key']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the item - * @member {Number} id - */ -ItemSearchFieldResponseAllOfData.prototype['id'] = undefined; - -/** - * The value of the searched `field_key` - * @member {Object} $field_key - */ -ItemSearchFieldResponseAllOfData.prototype['$field_key'] = undefined; - - - - - - -export default ItemSearchFieldResponseAllOfData; - diff --git a/src/model/ItemSearchItem.js b/src/model/ItemSearchItem.js deleted file mode 100644 index b0e47282..00000000 --- a/src/model/ItemSearchItem.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ItemSearchItem model module. - * @module model/ItemSearchItem - * @version 1.0.0 - */ -class ItemSearchItem { - /** - * Constructs a new ItemSearchItem. - * @alias module:model/ItemSearchItem - */ - constructor() { - - ItemSearchItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ItemSearchItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemSearchItem} obj Optional instance to populate. - * @return {module:model/ItemSearchItem} The populated ItemSearchItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemSearchItem(); - - if (data.hasOwnProperty('result_score')) { - obj['result_score'] = ApiClient.convertToType(data['result_score'], 'Number'); - - delete data['result_score']; - } - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], Object); - - delete data['item']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Search result relevancy - * @member {Number} result_score - */ -ItemSearchItem.prototype['result_score'] = undefined; - -/** - * Item - * @member {Object} item - */ -ItemSearchItem.prototype['item'] = undefined; - - - - - - -export default ItemSearchItem; - diff --git a/src/model/ItemSearchResponse.js b/src/model/ItemSearchResponse.js deleted file mode 100644 index 21dbabb3..00000000 --- a/src/model/ItemSearchResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import ItemSearchResponseAllOf from './ItemSearchResponseAllOf'; -import ItemSearchResponseAllOfData from './ItemSearchResponseAllOfData'; - -/** - * The ItemSearchResponse model module. - * @module model/ItemSearchResponse - * @version 1.0.0 - */ -class ItemSearchResponse { - /** - * Constructs a new ItemSearchResponse. - * @alias module:model/ItemSearchResponse - * @implements module:model/BaseResponse - * @implements module:model/ItemSearchResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ItemSearchResponseAllOf.initialize(this); - ItemSearchResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ItemSearchResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemSearchResponse} obj Optional instance to populate. - * @return {module:model/ItemSearchResponse} The populated ItemSearchResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemSearchResponse(); - BaseResponse.constructFromObject(data, obj); - ItemSearchResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ItemSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ItemSearchResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ItemSearchResponseAllOfData} data - */ -ItemSearchResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ItemSearchResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ItemSearchResponseAllOf interface: -/** - * @member {module:model/ItemSearchResponseAllOfData} data - */ -ItemSearchResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ItemSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default ItemSearchResponse; - diff --git a/src/model/ItemSearchResponseAllOf.js b/src/model/ItemSearchResponseAllOf.js deleted file mode 100644 index 28138e99..00000000 --- a/src/model/ItemSearchResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import ItemSearchResponseAllOfData from './ItemSearchResponseAllOfData'; - -/** - * The ItemSearchResponseAllOf model module. - * @module model/ItemSearchResponseAllOf - * @version 1.0.0 - */ -class ItemSearchResponseAllOf { - /** - * Constructs a new ItemSearchResponseAllOf. - * @alias module:model/ItemSearchResponseAllOf - */ - constructor() { - - ItemSearchResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ItemSearchResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemSearchResponseAllOf} obj Optional instance to populate. - * @return {module:model/ItemSearchResponseAllOf} The populated ItemSearchResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemSearchResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ItemSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ItemSearchResponseAllOfData} data - */ -ItemSearchResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ItemSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default ItemSearchResponseAllOf; - diff --git a/src/model/ItemSearchResponseAllOfData.js b/src/model/ItemSearchResponseAllOfData.js deleted file mode 100644 index 3c8cbadb..00000000 --- a/src/model/ItemSearchResponseAllOfData.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ItemSearchItem from './ItemSearchItem'; - -/** - * The ItemSearchResponseAllOfData model module. - * @module model/ItemSearchResponseAllOfData - * @version 1.0.0 - */ -class ItemSearchResponseAllOfData { - /** - * Constructs a new ItemSearchResponseAllOfData. - * @alias module:model/ItemSearchResponseAllOfData - */ - constructor() { - - ItemSearchResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ItemSearchResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ItemSearchResponseAllOfData} obj Optional instance to populate. - * @return {module:model/ItemSearchResponseAllOfData} The populated ItemSearchResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ItemSearchResponseAllOfData(); - - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [ItemSearchItem]); - - delete data['items']; - } - if (data.hasOwnProperty('related_items')) { - obj['related_items'] = ApiClient.convertToType(data['related_items'], [ItemSearchItem]); - - delete data['related_items']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of found items - * @member {Array.} items - */ -ItemSearchResponseAllOfData.prototype['items'] = undefined; - -/** - * The array of related items if `search_for_related_items` was enabled - * @member {Array.} related_items - */ -ItemSearchResponseAllOfData.prototype['related_items'] = undefined; - - - - - - -export default ItemSearchResponseAllOfData; - diff --git a/src/model/LeadIdResponse200.js b/src/model/LeadIdResponse200.js deleted file mode 100644 index 01369be6..00000000 --- a/src/model/LeadIdResponse200.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadIdResponse200Data from './LeadIdResponse200Data'; - -/** - * The LeadIdResponse200 model module. - * @module model/LeadIdResponse200 - * @version 1.0.0 - */ -class LeadIdResponse200 { - /** - * Constructs a new LeadIdResponse200. - * @alias module:model/LeadIdResponse200 - */ - constructor() { - - LeadIdResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadIdResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadIdResponse200} obj Optional instance to populate. - * @return {module:model/LeadIdResponse200} The populated LeadIdResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadIdResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = LeadIdResponse200Data.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -LeadIdResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/LeadIdResponse200Data} data - */ -LeadIdResponse200.prototype['data'] = undefined; - - - - - - -export default LeadIdResponse200; - diff --git a/src/model/LeadIdResponse200Data.js b/src/model/LeadIdResponse200Data.js deleted file mode 100644 index 40286da0..00000000 --- a/src/model/LeadIdResponse200Data.js +++ /dev/null @@ -1,78 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The LeadIdResponse200Data model module. - * @module model/LeadIdResponse200Data - * @version 1.0.0 - */ -class LeadIdResponse200Data { - /** - * Constructs a new LeadIdResponse200Data. - * @alias module:model/LeadIdResponse200Data - */ - constructor() { - - LeadIdResponse200Data.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadIdResponse200Data from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadIdResponse200Data} obj Optional instance to populate. - * @return {module:model/LeadIdResponse200Data} The populated LeadIdResponse200Data instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadIdResponse200Data(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {String} id - */ -LeadIdResponse200Data.prototype['id'] = undefined; - - - - - - -export default LeadIdResponse200Data; - diff --git a/src/model/LeadLabelColor.js b/src/model/LeadLabelColor.js deleted file mode 100644 index dc36e276..00000000 --- a/src/model/LeadLabelColor.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class LeadLabelColor. -* @enum {} -* @readonly -*/ -export default class LeadLabelColor { - - /** - * value: "green" - * @const - */ - "green" = "green"; - - - /** - * value: "blue" - * @const - */ - "blue" = "blue"; - - - /** - * value: "red" - * @const - */ - "red" = "red"; - - - /** - * value: "yellow" - * @const - */ - "yellow" = "yellow"; - - - /** - * value: "purple" - * @const - */ - "purple" = "purple"; - - - /** - * value: "gray" - * @const - */ - "gray" = "gray"; - - - - /** - * Returns a LeadLabelColor enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/LeadLabelColor} The enum LeadLabelColor value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/LeadLabelResponse.js b/src/model/LeadLabelResponse.js deleted file mode 100644 index 0c2218a7..00000000 --- a/src/model/LeadLabelResponse.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadLabelColor from './LeadLabelColor'; - -/** - * The LeadLabelResponse model module. - * @module model/LeadLabelResponse - * @version 1.0.0 - */ -class LeadLabelResponse { - /** - * Constructs a new LeadLabelResponse. - * @alias module:model/LeadLabelResponse - */ - constructor() { - - LeadLabelResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadLabelResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadLabelResponse} obj Optional instance to populate. - * @return {module:model/LeadLabelResponse} The populated LeadLabelResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadLabelResponse(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('color')) { - obj['color'] = LeadLabelColor.constructFromObject(data['color']); - - delete data['color']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The unique ID of the lead label - * @member {String} id - */ -LeadLabelResponse.prototype['id'] = undefined; - -/** - * The name of the lead label - * @member {String} name - */ -LeadLabelResponse.prototype['name'] = undefined; - -/** - * @member {module:model/LeadLabelColor} color - */ -LeadLabelResponse.prototype['color'] = undefined; - -/** - * The date and time of when the lead label was created. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. - * @member {Date} add_time - */ -LeadLabelResponse.prototype['add_time'] = undefined; - -/** - * The date and time of when the lead label was last updated. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. - * @member {Date} update_time - */ -LeadLabelResponse.prototype['update_time'] = undefined; - - - - - - -export default LeadLabelResponse; - diff --git a/src/model/LeadNotFoundResponse.js b/src/model/LeadNotFoundResponse.js deleted file mode 100644 index 2370d33a..00000000 --- a/src/model/LeadNotFoundResponse.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The LeadNotFoundResponse model module. - * @module model/LeadNotFoundResponse - * @version 1.0.0 - */ -class LeadNotFoundResponse { - /** - * Constructs a new LeadNotFoundResponse. - * @alias module:model/LeadNotFoundResponse - */ - constructor() { - - LeadNotFoundResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadNotFoundResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadNotFoundResponse} obj Optional instance to populate. - * @return {module:model/LeadNotFoundResponse} The populated LeadNotFoundResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadNotFoundResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -LeadNotFoundResponse.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -LeadNotFoundResponse.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -LeadNotFoundResponse.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -LeadNotFoundResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -LeadNotFoundResponse.prototype['additional_data'] = undefined; - - - - - - -export default LeadNotFoundResponse; - diff --git a/src/model/LeadResponse.js b/src/model/LeadResponse.js deleted file mode 100644 index 97ca48d4..00000000 --- a/src/model/LeadResponse.js +++ /dev/null @@ -1,300 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadValue from './LeadValue'; -import VisibleTo from './VisibleTo'; - -/** - * The LeadResponse model module. - * @module model/LeadResponse - * @version 1.0.0 - */ -class LeadResponse { - /** - * Constructs a new LeadResponse. - * @alias module:model/LeadResponse - */ - constructor() { - - LeadResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadResponse} obj Optional instance to populate. - * @return {module:model/LeadResponse} The populated LeadResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadResponse(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('creator_id')) { - obj['creator_id'] = ApiClient.convertToType(data['creator_id'], 'Number'); - - delete data['creator_id']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['String']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('organization_id')) { - obj['organization_id'] = ApiClient.convertToType(data['organization_id'], 'Number'); - - delete data['organization_id']; - } - if (data.hasOwnProperty('source_name')) { - obj['source_name'] = ApiClient.convertToType(data['source_name'], 'String'); - - delete data['source_name']; - } - if (data.hasOwnProperty('origin')) { - obj['origin'] = ApiClient.convertToType(data['origin'], 'String'); - - delete data['origin']; - } - if (data.hasOwnProperty('origin_id')) { - obj['origin_id'] = ApiClient.convertToType(data['origin_id'], 'String'); - - delete data['origin_id']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - if (data.hasOwnProperty('is_archived')) { - obj['is_archived'] = ApiClient.convertToType(data['is_archived'], 'Boolean'); - - delete data['is_archived']; - } - if (data.hasOwnProperty('was_seen')) { - obj['was_seen'] = ApiClient.convertToType(data['was_seen'], 'Boolean'); - - delete data['was_seen']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = LeadValue.constructFromObject(data['value']); - - delete data['value']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The unique ID of the lead in the UUID format - * @member {String} id - */ -LeadResponse.prototype['id'] = undefined; - -/** - * The title of the lead - * @member {String} title - */ -LeadResponse.prototype['title'] = undefined; - -/** - * The ID of the user who owns the lead - * @member {Number} owner_id - */ -LeadResponse.prototype['owner_id'] = undefined; - -/** - * The ID of the user who created the lead - * @member {Number} creator_id - */ -LeadResponse.prototype['creator_id'] = undefined; - -/** - * The IDs of the lead labels which are associated with the lead - * @member {Array.} label_ids - */ -LeadResponse.prototype['label_ids'] = undefined; - -/** - * The ID of a person which this lead is linked to - * @member {Number} person_id - */ -LeadResponse.prototype['person_id'] = undefined; - -/** - * The ID of an organization which this lead is linked to - * @member {Number} organization_id - */ -LeadResponse.prototype['organization_id'] = undefined; - -/** - * Defines where the lead comes from. Will be `API` if the lead was created through the Public API and will be `Manually created` if the lead was created manually through the UI. - * @member {String} source_name - */ -LeadResponse.prototype['source_name'] = undefined; - -/** - * The way this Lead was created. `origin` field is set by Pipedrive when Lead is created and cannot be changed. - * @member {String} origin - */ -LeadResponse.prototype['origin'] = undefined; - -/** - * The optional ID to further distinguish the origin of the lead - e.g. Which API integration created this Lead. - * @member {String} origin_id - */ -LeadResponse.prototype['origin_id'] = undefined; - -/** - * The ID of your Marketing channel this Lead was created from. Recognized Marketing channels can be configured in your Company settings. - * @member {Number} channel - */ -LeadResponse.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -LeadResponse.prototype['channel_id'] = undefined; - -/** - * A flag indicating whether the lead is archived or not - * @member {Boolean} is_archived - */ -LeadResponse.prototype['is_archived'] = undefined; - -/** - * A flag indicating whether the lead was seen by someone in the Pipedrive UI - * @member {Boolean} was_seen - */ -LeadResponse.prototype['was_seen'] = undefined; - -/** - * @member {module:model/LeadValue} value - */ -LeadResponse.prototype['value'] = undefined; - -/** - * The date of when the deal which will be created from the lead is expected to be closed. In ISO 8601 format: YYYY-MM-DD. - * @member {Date} expected_close_date - */ -LeadResponse.prototype['expected_close_date'] = undefined; - -/** - * The ID of the next activity associated with the lead - * @member {Number} next_activity_id - */ -LeadResponse.prototype['next_activity_id'] = undefined; - -/** - * The date and time of when the lead was created. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. - * @member {Date} add_time - */ -LeadResponse.prototype['add_time'] = undefined; - -/** - * The date and time of when the lead was last updated. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. - * @member {Date} update_time - */ -LeadResponse.prototype['update_time'] = undefined; - -/** - * The visibility of the lead. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user.
ValueDescription
`1`Owner & followers (private)
`3`Entire company (shared)
- * @member {module:model/VisibleTo} visible_to - */ -LeadResponse.prototype['visible_to'] = undefined; - -/** - * The BCC email of the lead - * @member {String} cc_email - */ -LeadResponse.prototype['cc_email'] = undefined; - - - - - - -export default LeadResponse; - diff --git a/src/model/LeadResponse404.js b/src/model/LeadResponse404.js deleted file mode 100644 index 699f85f1..00000000 --- a/src/model/LeadResponse404.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The LeadResponse404 model module. - * @module model/LeadResponse404 - * @version 1.0.0 - */ -class LeadResponse404 { - /** - * Constructs a new LeadResponse404. - * @alias module:model/LeadResponse404 - */ - constructor() { - - LeadResponse404.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadResponse404 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadResponse404} obj Optional instance to populate. - * @return {module:model/LeadResponse404} The populated LeadResponse404 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadResponse404(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('error_info')) { - obj['error_info'] = ApiClient.convertToType(data['error_info'], 'String'); - - delete data['error_info']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -LeadResponse404.prototype['success'] = undefined; - -/** - * The description of the error - * @member {String} error - */ -LeadResponse404.prototype['error'] = undefined; - -/** - * A message describing how to solve the problem - * @member {String} error_info - */ -LeadResponse404.prototype['error_info'] = undefined; - -/** - * @member {Object} data - */ -LeadResponse404.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -LeadResponse404.prototype['additional_data'] = undefined; - - - - - - -export default LeadResponse404; - diff --git a/src/model/LeadSearchItem.js b/src/model/LeadSearchItem.js deleted file mode 100644 index d3bdb5c5..00000000 --- a/src/model/LeadSearchItem.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadSearchItemItem from './LeadSearchItemItem'; - -/** - * The LeadSearchItem model module. - * @module model/LeadSearchItem - * @version 1.0.0 - */ -class LeadSearchItem { - /** - * Constructs a new LeadSearchItem. - * @alias module:model/LeadSearchItem - */ - constructor() { - - LeadSearchItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadSearchItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadSearchItem} obj Optional instance to populate. - * @return {module:model/LeadSearchItem} The populated LeadSearchItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadSearchItem(); - - if (data.hasOwnProperty('result_score')) { - obj['result_score'] = ApiClient.convertToType(data['result_score'], 'Number'); - - delete data['result_score']; - } - if (data.hasOwnProperty('item')) { - obj['item'] = LeadSearchItemItem.constructFromObject(data['item']); - - delete data['item']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Search result relevancy - * @member {Number} result_score - */ -LeadSearchItem.prototype['result_score'] = undefined; - -/** - * @member {module:model/LeadSearchItemItem} item - */ -LeadSearchItem.prototype['item'] = undefined; - - - - - - -export default LeadSearchItem; - diff --git a/src/model/LeadSearchItemItem.js b/src/model/LeadSearchItemItem.js deleted file mode 100644 index 5c280a1f..00000000 --- a/src/model/LeadSearchItemItem.js +++ /dev/null @@ -1,220 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadSearchItemItemOrganization from './LeadSearchItemItemOrganization'; -import LeadSearchItemItemOwner from './LeadSearchItemItemOwner'; -import LeadSearchItemItemPerson from './LeadSearchItemItemPerson'; - -/** - * The LeadSearchItemItem model module. - * @module model/LeadSearchItemItem - * @version 1.0.0 - */ -class LeadSearchItemItem { - /** - * Constructs a new LeadSearchItemItem. - * @alias module:model/LeadSearchItemItem - */ - constructor() { - - LeadSearchItemItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadSearchItemItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadSearchItemItem} obj Optional instance to populate. - * @return {module:model/LeadSearchItemItem} The populated LeadSearchItemItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadSearchItemItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('owner')) { - obj['owner'] = LeadSearchItemItemOwner.constructFromObject(data['owner']); - - delete data['owner']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = LeadSearchItemItemPerson.constructFromObject(data['person']); - - delete data['person']; - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = LeadSearchItemItemOrganization.constructFromObject(data['organization']); - - delete data['organization']; - } - if (data.hasOwnProperty('phones')) { - obj['phones'] = ApiClient.convertToType(data['phones'], ['String']); - - delete data['phones']; - } - if (data.hasOwnProperty('emails')) { - obj['emails'] = ApiClient.convertToType(data['emails'], ['String']); - - delete data['emails']; - } - if (data.hasOwnProperty('custom_fields')) { - obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], ['String']); - - delete data['custom_fields']; - } - if (data.hasOwnProperty('notes')) { - obj['notes'] = ApiClient.convertToType(data['notes'], ['String']); - - delete data['notes']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'Number'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('is_archived')) { - obj['is_archived'] = ApiClient.convertToType(data['is_archived'], 'Boolean'); - - delete data['is_archived']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the lead - * @member {String} id - */ -LeadSearchItemItem.prototype['id'] = undefined; - -/** - * The type of the item - * @member {String} type - */ -LeadSearchItemItem.prototype['type'] = undefined; - -/** - * The title of the lead - * @member {String} title - */ -LeadSearchItemItem.prototype['title'] = undefined; - -/** - * @member {module:model/LeadSearchItemItemOwner} owner - */ -LeadSearchItemItem.prototype['owner'] = undefined; - -/** - * @member {module:model/LeadSearchItemItemPerson} person - */ -LeadSearchItemItem.prototype['person'] = undefined; - -/** - * @member {module:model/LeadSearchItemItemOrganization} organization - */ -LeadSearchItemItem.prototype['organization'] = undefined; - -/** - * @member {Array.} phones - */ -LeadSearchItemItem.prototype['phones'] = undefined; - -/** - * @member {Array.} emails - */ -LeadSearchItemItem.prototype['emails'] = undefined; - -/** - * Custom fields - * @member {Array.} custom_fields - */ -LeadSearchItemItem.prototype['custom_fields'] = undefined; - -/** - * An array of notes - * @member {Array.} notes - */ -LeadSearchItemItem.prototype['notes'] = undefined; - -/** - * The value of the lead - * @member {Number} value - */ -LeadSearchItemItem.prototype['value'] = undefined; - -/** - * The currency of the lead - * @member {String} currency - */ -LeadSearchItemItem.prototype['currency'] = undefined; - -/** - * The visibility of the lead - * @member {Number} visible_to - */ -LeadSearchItemItem.prototype['visible_to'] = undefined; - -/** - * A flag indicating whether the lead is archived or not - * @member {Boolean} is_archived - */ -LeadSearchItemItem.prototype['is_archived'] = undefined; - - - - - - -export default LeadSearchItemItem; - diff --git a/src/model/LeadSearchItemItemOrganization.js b/src/model/LeadSearchItemItemOrganization.js deleted file mode 100644 index 29043092..00000000 --- a/src/model/LeadSearchItemItemOrganization.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The LeadSearchItemItemOrganization model module. - * @module model/LeadSearchItemItemOrganization - * @version 1.0.0 - */ -class LeadSearchItemItemOrganization { - /** - * Constructs a new LeadSearchItemItemOrganization. - * @alias module:model/LeadSearchItemItemOrganization - */ - constructor() { - - LeadSearchItemItemOrganization.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadSearchItemItemOrganization from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadSearchItemItemOrganization} obj Optional instance to populate. - * @return {module:model/LeadSearchItemItemOrganization} The populated LeadSearchItemItemOrganization instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadSearchItemItemOrganization(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization the lead is associated with - * @member {Number} id - */ -LeadSearchItemItemOrganization.prototype['id'] = undefined; - -/** - * The name of the organization the lead is associated with - * @member {String} name - */ -LeadSearchItemItemOrganization.prototype['name'] = undefined; - - - - - - -export default LeadSearchItemItemOrganization; - diff --git a/src/model/LeadSearchItemItemOwner.js b/src/model/LeadSearchItemItemOwner.js deleted file mode 100644 index c063f872..00000000 --- a/src/model/LeadSearchItemItemOwner.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The LeadSearchItemItemOwner model module. - * @module model/LeadSearchItemItemOwner - * @version 1.0.0 - */ -class LeadSearchItemItemOwner { - /** - * Constructs a new LeadSearchItemItemOwner. - * @alias module:model/LeadSearchItemItemOwner - */ - constructor() { - - LeadSearchItemItemOwner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadSearchItemItemOwner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadSearchItemItemOwner} obj Optional instance to populate. - * @return {module:model/LeadSearchItemItemOwner} The populated LeadSearchItemItemOwner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadSearchItemItemOwner(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the owner of the lead - * @member {Number} id - */ -LeadSearchItemItemOwner.prototype['id'] = undefined; - - - - - - -export default LeadSearchItemItemOwner; - diff --git a/src/model/LeadSearchItemItemPerson.js b/src/model/LeadSearchItemItemPerson.js deleted file mode 100644 index e8de7e84..00000000 --- a/src/model/LeadSearchItemItemPerson.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The LeadSearchItemItemPerson model module. - * @module model/LeadSearchItemItemPerson - * @version 1.0.0 - */ -class LeadSearchItemItemPerson { - /** - * Constructs a new LeadSearchItemItemPerson. - * @alias module:model/LeadSearchItemItemPerson - */ - constructor() { - - LeadSearchItemItemPerson.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadSearchItemItemPerson from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadSearchItemItemPerson} obj Optional instance to populate. - * @return {module:model/LeadSearchItemItemPerson} The populated LeadSearchItemItemPerson instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadSearchItemItemPerson(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person the lead is associated with - * @member {Number} id - */ -LeadSearchItemItemPerson.prototype['id'] = undefined; - -/** - * The name of the person the lead is associated with - * @member {String} name - */ -LeadSearchItemItemPerson.prototype['name'] = undefined; - - - - - - -export default LeadSearchItemItemPerson; - diff --git a/src/model/LeadSearchResponse.js b/src/model/LeadSearchResponse.js deleted file mode 100644 index 39179890..00000000 --- a/src/model/LeadSearchResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import LeadSearchResponseAllOf from './LeadSearchResponseAllOf'; -import LeadSearchResponseAllOfData from './LeadSearchResponseAllOfData'; - -/** - * The LeadSearchResponse model module. - * @module model/LeadSearchResponse - * @version 1.0.0 - */ -class LeadSearchResponse { - /** - * Constructs a new LeadSearchResponse. - * @alias module:model/LeadSearchResponse - * @implements module:model/BaseResponse - * @implements module:model/LeadSearchResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);LeadSearchResponseAllOf.initialize(this); - LeadSearchResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadSearchResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadSearchResponse} obj Optional instance to populate. - * @return {module:model/LeadSearchResponse} The populated LeadSearchResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadSearchResponse(); - BaseResponse.constructFromObject(data, obj); - LeadSearchResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = LeadSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -LeadSearchResponse.prototype['success'] = undefined; - -/** - * @member {module:model/LeadSearchResponseAllOfData} data - */ -LeadSearchResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -LeadSearchResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement LeadSearchResponseAllOf interface: -/** - * @member {module:model/LeadSearchResponseAllOfData} data - */ -LeadSearchResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -LeadSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default LeadSearchResponse; - diff --git a/src/model/LeadSearchResponseAllOf.js b/src/model/LeadSearchResponseAllOf.js deleted file mode 100644 index 87a260d4..00000000 --- a/src/model/LeadSearchResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import LeadSearchResponseAllOfData from './LeadSearchResponseAllOfData'; - -/** - * The LeadSearchResponseAllOf model module. - * @module model/LeadSearchResponseAllOf - * @version 1.0.0 - */ -class LeadSearchResponseAllOf { - /** - * Constructs a new LeadSearchResponseAllOf. - * @alias module:model/LeadSearchResponseAllOf - */ - constructor() { - - LeadSearchResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadSearchResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadSearchResponseAllOf} obj Optional instance to populate. - * @return {module:model/LeadSearchResponseAllOf} The populated LeadSearchResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadSearchResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = LeadSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/LeadSearchResponseAllOfData} data - */ -LeadSearchResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -LeadSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default LeadSearchResponseAllOf; - diff --git a/src/model/LeadSearchResponseAllOfData.js b/src/model/LeadSearchResponseAllOfData.js deleted file mode 100644 index 01b92682..00000000 --- a/src/model/LeadSearchResponseAllOfData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadSearchItem from './LeadSearchItem'; - -/** - * The LeadSearchResponseAllOfData model module. - * @module model/LeadSearchResponseAllOfData - * @version 1.0.0 - */ -class LeadSearchResponseAllOfData { - /** - * Constructs a new LeadSearchResponseAllOfData. - * @alias module:model/LeadSearchResponseAllOfData - */ - constructor() { - - LeadSearchResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LeadSearchResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadSearchResponseAllOfData} obj Optional instance to populate. - * @return {module:model/LeadSearchResponseAllOfData} The populated LeadSearchResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadSearchResponseAllOfData(); - - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [LeadSearchItem]); - - delete data['items']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of leads - * @member {Array.} items - */ -LeadSearchResponseAllOfData.prototype['items'] = undefined; - - - - - - -export default LeadSearchResponseAllOfData; - diff --git a/src/model/LeadValue.js b/src/model/LeadValue.js deleted file mode 100644 index 197846dd..00000000 --- a/src/model/LeadValue.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The LeadValue model module. - * @module model/LeadValue - * @version 1.0.0 - */ -class LeadValue { - /** - * Constructs a new LeadValue. - * The potential value of the lead represented by a JSON object: `{ \"amount\": 200, \"currency\": \"EUR\" }`. Both amount and currency are required. - * @alias module:model/LeadValue - * @param amount {Number} - * @param currency {String} - */ - constructor(amount, currency) { - - LeadValue.initialize(this, amount, currency); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, amount, currency) { - obj['amount'] = amount; - obj['currency'] = currency; - } - - /** - * Constructs a LeadValue from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeadValue} obj Optional instance to populate. - * @return {module:model/LeadValue} The populated LeadValue instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeadValue(); - - if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); - - delete data['amount']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Number} amount - */ -LeadValue.prototype['amount'] = undefined; - -/** - * @member {String} currency - */ -LeadValue.prototype['currency'] = undefined; - - - - - - -export default LeadValue; - diff --git a/src/model/LinkFileToItemRequest.js b/src/model/LinkFileToItemRequest.js deleted file mode 100644 index 17c642df..00000000 --- a/src/model/LinkFileToItemRequest.js +++ /dev/null @@ -1,162 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The LinkFileToItemRequest model module. - * @module model/LinkFileToItemRequest - * @version 1.0.0 - */ -class LinkFileToItemRequest { - /** - * Constructs a new LinkFileToItemRequest. - * @alias module:model/LinkFileToItemRequest - * @param itemType {module:model/LinkFileToItemRequest.ItemTypeEnum} The item type - * @param itemId {Number} ID of the item to associate the file with - * @param remoteId {String} The remote item id - * @param remoteLocation {module:model/LinkFileToItemRequest.RemoteLocationEnum} The location type to send the file to. Only `googledrive` is supported at the moment. - */ - constructor(itemType, itemId, remoteId, remoteLocation) { - - LinkFileToItemRequest.initialize(this, itemType, itemId, remoteId, remoteLocation); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, itemType, itemId, remoteId, remoteLocation) { - obj['item_type'] = itemType; - obj['item_id'] = itemId; - obj['remote_id'] = remoteId; - obj['remote_location'] = remoteLocation; - } - - /** - * Constructs a LinkFileToItemRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LinkFileToItemRequest} obj Optional instance to populate. - * @return {module:model/LinkFileToItemRequest} The populated LinkFileToItemRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LinkFileToItemRequest(); - - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = ApiClient.convertToType(data['item_type'], 'String'); - - delete data['item_type']; - } - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'Number'); - - delete data['item_id']; - } - if (data.hasOwnProperty('remote_id')) { - obj['remote_id'] = ApiClient.convertToType(data['remote_id'], 'String'); - - delete data['remote_id']; - } - if (data.hasOwnProperty('remote_location')) { - obj['remote_location'] = ApiClient.convertToType(data['remote_location'], 'String'); - - delete data['remote_location']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * The item type - * @member {module:model/LinkFileToItemRequest.ItemTypeEnum} item_type - */ -LinkFileToItemRequest.prototype['item_type'] = undefined; - -/** - * ID of the item to associate the file with - * @member {Number} item_id - */ -LinkFileToItemRequest.prototype['item_id'] = undefined; - -/** - * The remote item id - * @member {String} remote_id - */ -LinkFileToItemRequest.prototype['remote_id'] = undefined; - -/** - * The location type to send the file to. Only `googledrive` is supported at the moment. - * @member {module:model/LinkFileToItemRequest.RemoteLocationEnum} remote_location - */ -LinkFileToItemRequest.prototype['remote_location'] = undefined; - - - - - -/** - * Allowed values for the item_type property. - * @enum {String} - * @readonly - */ -LinkFileToItemRequest['ItemTypeEnum'] = { - - /** - * value: "deal" - * @const - */ - "deal": "deal", - - /** - * value: "organization" - * @const - */ - "organization": "organization", - - /** - * value: "person" - * @const - */ - "person": "person" -}; - - -/** - * Allowed values for the remote_location property. - * @enum {String} - * @readonly - */ -LinkFileToItemRequest['RemoteLocationEnum'] = { - - /** - * value: "googledrive" - * @const - */ - "googledrive": "googledrive" -}; - - - -export default LinkFileToItemRequest; - diff --git a/src/model/LinkRemoteFileToItem.js b/src/model/LinkRemoteFileToItem.js deleted file mode 100644 index 0a089d6d..00000000 --- a/src/model/LinkRemoteFileToItem.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FileData from './FileData'; - -/** - * The LinkRemoteFileToItem model module. - * @module model/LinkRemoteFileToItem - * @version 1.0.0 - */ -class LinkRemoteFileToItem { - /** - * Constructs a new LinkRemoteFileToItem. - * @alias module:model/LinkRemoteFileToItem - */ - constructor() { - - LinkRemoteFileToItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a LinkRemoteFileToItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LinkRemoteFileToItem} obj Optional instance to populate. - * @return {module:model/LinkRemoteFileToItem} The populated LinkRemoteFileToItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LinkRemoteFileToItem(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FileData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -LinkRemoteFileToItem.prototype['success'] = undefined; - -/** - * @member {module:model/FileData} data - */ -LinkRemoteFileToItem.prototype['data'] = undefined; - - - - - - -export default LinkRemoteFileToItem; - diff --git a/src/model/ListActivitiesResponse.js b/src/model/ListActivitiesResponse.js deleted file mode 100644 index d71925eb..00000000 --- a/src/model/ListActivitiesResponse.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityDistributionDataWithAdditionalData from './ActivityDistributionDataWithAdditionalData'; -import ActivityResponseObject from './ActivityResponseObject'; -import BaseResponse from './BaseResponse'; -import ListActivitiesResponseAllOf from './ListActivitiesResponseAllOf'; - -/** - * The ListActivitiesResponse model module. - * @module model/ListActivitiesResponse - * @version 1.0.0 - */ -class ListActivitiesResponse { - /** - * Constructs a new ListActivitiesResponse. - * @alias module:model/ListActivitiesResponse - * @implements module:model/BaseResponse - * @implements module:model/ListActivitiesResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ListActivitiesResponseAllOf.initialize(this); - ListActivitiesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListActivitiesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListActivitiesResponse} obj Optional instance to populate. - * @return {module:model/ListActivitiesResponse} The populated ListActivitiesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListActivitiesResponse(); - BaseResponse.constructFromObject(data, obj); - ListActivitiesResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ActivityResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ActivityDistributionDataWithAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListActivitiesResponse.prototype['success'] = undefined; - -/** - * The array of activities - * @member {Array.} data - */ -ListActivitiesResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ActivityDistributionDataWithAdditionalData} additional_data - */ -ListActivitiesResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListActivitiesResponseAllOf interface: -/** - * The array of activities - * @member {Array.} data - */ -ListActivitiesResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ActivityDistributionDataWithAdditionalData} additional_data - */ -ListActivitiesResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default ListActivitiesResponse; - diff --git a/src/model/ListActivitiesResponseAllOf.js b/src/model/ListActivitiesResponseAllOf.js deleted file mode 100644 index a4c08dba..00000000 --- a/src/model/ListActivitiesResponseAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityDistributionDataWithAdditionalData from './ActivityDistributionDataWithAdditionalData'; -import ActivityResponseObject from './ActivityResponseObject'; - -/** - * The ListActivitiesResponseAllOf model module. - * @module model/ListActivitiesResponseAllOf - * @version 1.0.0 - */ -class ListActivitiesResponseAllOf { - /** - * Constructs a new ListActivitiesResponseAllOf. - * @alias module:model/ListActivitiesResponseAllOf - */ - constructor() { - - ListActivitiesResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListActivitiesResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListActivitiesResponseAllOf} obj Optional instance to populate. - * @return {module:model/ListActivitiesResponseAllOf} The populated ListActivitiesResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListActivitiesResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ActivityResponseObject]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ActivityDistributionDataWithAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of activities - * @member {Array.} data - */ -ListActivitiesResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ActivityDistributionDataWithAdditionalData} additional_data - */ -ListActivitiesResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default ListActivitiesResponseAllOf; - diff --git a/src/model/ListDealsResponse.js b/src/model/ListDealsResponse.js deleted file mode 100644 index d6fd171c..00000000 --- a/src/model/ListDealsResponse.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import DealNonStrict from './DealNonStrict'; -import ListDealsResponseAllOf from './ListDealsResponseAllOf'; -import ListDealsResponseAllOfRelatedObjects from './ListDealsResponseAllOfRelatedObjects'; - -/** - * The ListDealsResponse model module. - * @module model/ListDealsResponse - * @version 1.0.0 - */ -class ListDealsResponse { - /** - * Constructs a new ListDealsResponse. - * @alias module:model/ListDealsResponse - * @implements module:model/BaseResponse - * @implements module:model/ListDealsResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ListDealsResponseAllOf.initialize(this); - ListDealsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListDealsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListDealsResponse} obj Optional instance to populate. - * @return {module:model/ListDealsResponse} The populated ListDealsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListDealsResponse(); - BaseResponse.constructFromObject(data, obj); - ListDealsResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [DealNonStrict]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = ListDealsResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListDealsResponse.prototype['success'] = undefined; - -/** - * The array of deals - * @member {Array.} data - */ -ListDealsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListDealsResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/ListDealsResponseAllOfRelatedObjects} related_objects - */ -ListDealsResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListDealsResponseAllOf interface: -/** - * The array of deals - * @member {Array.} data - */ -ListDealsResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -ListDealsResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/ListDealsResponseAllOfRelatedObjects} related_objects - */ -ListDealsResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default ListDealsResponse; - diff --git a/src/model/ListDealsResponseAllOf.js b/src/model/ListDealsResponseAllOf.js deleted file mode 100644 index a9604a78..00000000 --- a/src/model/ListDealsResponseAllOf.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import DealNonStrict from './DealNonStrict'; -import ListDealsResponseAllOfRelatedObjects from './ListDealsResponseAllOfRelatedObjects'; - -/** - * The ListDealsResponseAllOf model module. - * @module model/ListDealsResponseAllOf - * @version 1.0.0 - */ -class ListDealsResponseAllOf { - /** - * Constructs a new ListDealsResponseAllOf. - * @alias module:model/ListDealsResponseAllOf - */ - constructor() { - - ListDealsResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListDealsResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListDealsResponseAllOf} obj Optional instance to populate. - * @return {module:model/ListDealsResponseAllOf} The populated ListDealsResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListDealsResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [DealNonStrict]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = ListDealsResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of deals - * @member {Array.} data - */ -ListDealsResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListDealsResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/ListDealsResponseAllOfRelatedObjects} related_objects - */ -ListDealsResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default ListDealsResponseAllOf; - diff --git a/src/model/ListDealsResponseAllOfRelatedObjects.js b/src/model/ListDealsResponseAllOfRelatedObjects.js deleted file mode 100644 index a4170933..00000000 --- a/src/model/ListDealsResponseAllOfRelatedObjects.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePipeline from './BasePipeline'; -import BaseStage from './BaseStage'; -import RelatedOrganizationDataWithActiveFlag from './RelatedOrganizationDataWithActiveFlag'; -import RelatedPersonDataWithActiveFlag from './RelatedPersonDataWithActiveFlag'; -import RelatedUserData from './RelatedUserData'; - -/** - * The ListDealsResponseAllOfRelatedObjects model module. - * @module model/ListDealsResponseAllOfRelatedObjects - * @version 1.0.0 - */ -class ListDealsResponseAllOfRelatedObjects { - /** - * Constructs a new ListDealsResponseAllOfRelatedObjects. - * @alias module:model/ListDealsResponseAllOfRelatedObjects - */ - constructor() { - - ListDealsResponseAllOfRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListDealsResponseAllOfRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListDealsResponseAllOfRelatedObjects} obj Optional instance to populate. - * @return {module:model/ListDealsResponseAllOfRelatedObjects} The populated ListDealsResponseAllOfRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListDealsResponseAllOfRelatedObjects(); - - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationDataWithActiveFlag.constructFromObject(data['organization']); - - delete data['organization']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = RelatedPersonDataWithActiveFlag.constructFromObject(data['person']); - - delete data['person']; - } - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - if (data.hasOwnProperty('stage')) { - obj['stage'] = BaseStage.constructFromObject(data['stage']); - - delete data['stage']; - } - if (data.hasOwnProperty('pipeline')) { - obj['pipeline'] = BasePipeline.constructFromObject(data['pipeline']); - - delete data['pipeline']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedOrganizationDataWithActiveFlag} organization - */ -ListDealsResponseAllOfRelatedObjects.prototype['organization'] = undefined; - -/** - * @member {module:model/RelatedPersonDataWithActiveFlag} person - */ -ListDealsResponseAllOfRelatedObjects.prototype['person'] = undefined; - -/** - * @member {module:model/RelatedUserData} user - */ -ListDealsResponseAllOfRelatedObjects.prototype['user'] = undefined; - -/** - * @member {module:model/BaseStage} stage - */ -ListDealsResponseAllOfRelatedObjects.prototype['stage'] = undefined; - -/** - * @member {module:model/BasePipeline} pipeline - */ -ListDealsResponseAllOfRelatedObjects.prototype['pipeline'] = undefined; - - - - - - -export default ListDealsResponseAllOfRelatedObjects; - diff --git a/src/model/ListFilesResponse.js b/src/model/ListFilesResponse.js deleted file mode 100644 index 3d6117bb..00000000 --- a/src/model/ListFilesResponse.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import FileItem from './FileItem'; -import ListFilesResponseAllOf from './ListFilesResponseAllOf'; - -/** - * The ListFilesResponse model module. - * @module model/ListFilesResponse - * @version 1.0.0 - */ -class ListFilesResponse { - /** - * Constructs a new ListFilesResponse. - * @alias module:model/ListFilesResponse - * @implements module:model/BaseResponse - * @implements module:model/ListFilesResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ListFilesResponseAllOf.initialize(this); - ListFilesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListFilesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListFilesResponse} obj Optional instance to populate. - * @return {module:model/ListFilesResponse} The populated ListFilesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListFilesResponse(); - BaseResponse.constructFromObject(data, obj); - ListFilesResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [FileItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListFilesResponse.prototype['success'] = undefined; - -/** - * The array of files - * @member {Array.} data - */ -ListFilesResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListFilesResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListFilesResponseAllOf interface: -/** - * The array of files - * @member {Array.} data - */ -ListFilesResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -ListFilesResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default ListFilesResponse; - diff --git a/src/model/ListFilesResponseAllOf.js b/src/model/ListFilesResponseAllOf.js deleted file mode 100644 index fe20be81..00000000 --- a/src/model/ListFilesResponseAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import FileItem from './FileItem'; - -/** - * The ListFilesResponseAllOf model module. - * @module model/ListFilesResponseAllOf - * @version 1.0.0 - */ -class ListFilesResponseAllOf { - /** - * Constructs a new ListFilesResponseAllOf. - * @alias module:model/ListFilesResponseAllOf - */ - constructor() { - - ListFilesResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListFilesResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListFilesResponseAllOf} obj Optional instance to populate. - * @return {module:model/ListFilesResponseAllOf} The populated ListFilesResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListFilesResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [FileItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of files - * @member {Array.} data - */ -ListFilesResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListFilesResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default ListFilesResponseAllOf; - diff --git a/src/model/ListFollowersResponse.js b/src/model/ListFollowersResponse.js deleted file mode 100644 index 2d882b65..00000000 --- a/src/model/ListFollowersResponse.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import ListFollowersResponseAllOf from './ListFollowersResponseAllOf'; -import ListFollowersResponseAllOfData from './ListFollowersResponseAllOfData'; - -/** - * The ListFollowersResponse model module. - * @module model/ListFollowersResponse - * @version 1.0.0 - */ -class ListFollowersResponse { - /** - * Constructs a new ListFollowersResponse. - * @alias module:model/ListFollowersResponse - * @implements module:model/BaseResponse - * @implements module:model/ListFollowersResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ListFollowersResponseAllOf.initialize(this); - ListFollowersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListFollowersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListFollowersResponse} obj Optional instance to populate. - * @return {module:model/ListFollowersResponse} The populated ListFollowersResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListFollowersResponse(); - BaseResponse.constructFromObject(data, obj); - ListFollowersResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ListFollowersResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListFollowersResponse.prototype['success'] = undefined; - -/** - * The list of followers - * @member {Array.} data - */ -ListFollowersResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListFollowersResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListFollowersResponseAllOf interface: -/** - * The list of followers - * @member {Array.} data - */ -ListFollowersResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -ListFollowersResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default ListFollowersResponse; - diff --git a/src/model/ListFollowersResponseAllOf.js b/src/model/ListFollowersResponseAllOf.js deleted file mode 100644 index 37589ebf..00000000 --- a/src/model/ListFollowersResponseAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import ListFollowersResponseAllOfData from './ListFollowersResponseAllOfData'; - -/** - * The ListFollowersResponseAllOf model module. - * @module model/ListFollowersResponseAllOf - * @version 1.0.0 - */ -class ListFollowersResponseAllOf { - /** - * Constructs a new ListFollowersResponseAllOf. - * @alias module:model/ListFollowersResponseAllOf - */ - constructor() { - - ListFollowersResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListFollowersResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListFollowersResponseAllOf} obj Optional instance to populate. - * @return {module:model/ListFollowersResponseAllOf} The populated ListFollowersResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListFollowersResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ListFollowersResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of followers - * @member {Array.} data - */ -ListFollowersResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListFollowersResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default ListFollowersResponseAllOf; - diff --git a/src/model/ListFollowersResponseAllOfData.js b/src/model/ListFollowersResponseAllOfData.js deleted file mode 100644 index 56e0fa0e..00000000 --- a/src/model/ListFollowersResponseAllOfData.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListFollowersResponseAllOfData model module. - * @module model/ListFollowersResponseAllOfData - * @version 1.0.0 - */ -class ListFollowersResponseAllOfData { - /** - * Constructs a new ListFollowersResponseAllOfData. - * @alias module:model/ListFollowersResponseAllOfData - */ - constructor() { - - ListFollowersResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListFollowersResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListFollowersResponseAllOfData} obj Optional instance to populate. - * @return {module:model/ListFollowersResponseAllOfData} The populated ListFollowersResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListFollowersResponseAllOfData(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} user_id - */ -ListFollowersResponseAllOfData.prototype['user_id'] = undefined; - -/** - * The ID of the user follower - * @member {Number} id - */ -ListFollowersResponseAllOfData.prototype['id'] = undefined; - -/** - * The ID of the deal which the follower was added to - * @member {Number} deal_id - */ -ListFollowersResponseAllOfData.prototype['deal_id'] = undefined; - -/** - * The date and time when the follower was added to the person - * @member {String} add_time - */ -ListFollowersResponseAllOfData.prototype['add_time'] = undefined; - - - - - - -export default ListFollowersResponseAllOfData; - diff --git a/src/model/ListMailMessagesResponse.js b/src/model/ListMailMessagesResponse.js deleted file mode 100644 index f5459a18..00000000 --- a/src/model/ListMailMessagesResponse.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import ListMailMessagesResponseAllOf from './ListMailMessagesResponseAllOf'; -import ListMailMessagesResponseAllOfData from './ListMailMessagesResponseAllOfData'; - -/** - * The ListMailMessagesResponse model module. - * @module model/ListMailMessagesResponse - * @version 1.0.0 - */ -class ListMailMessagesResponse { - /** - * Constructs a new ListMailMessagesResponse. - * @alias module:model/ListMailMessagesResponse - * @implements module:model/BaseResponse - * @implements module:model/ListMailMessagesResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ListMailMessagesResponseAllOf.initialize(this); - ListMailMessagesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListMailMessagesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMailMessagesResponse} obj Optional instance to populate. - * @return {module:model/ListMailMessagesResponse} The populated ListMailMessagesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMailMessagesResponse(); - BaseResponse.constructFromObject(data, obj); - ListMailMessagesResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ListMailMessagesResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListMailMessagesResponse.prototype['success'] = undefined; - -/** - * The array of mail messages - * @member {Array.} data - */ -ListMailMessagesResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListMailMessagesResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListMailMessagesResponseAllOf interface: -/** - * The array of mail messages - * @member {Array.} data - */ -ListMailMessagesResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -ListMailMessagesResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default ListMailMessagesResponse; - diff --git a/src/model/ListMailMessagesResponseAllOf.js b/src/model/ListMailMessagesResponseAllOf.js deleted file mode 100644 index 350c1b60..00000000 --- a/src/model/ListMailMessagesResponseAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import ListMailMessagesResponseAllOfData from './ListMailMessagesResponseAllOfData'; - -/** - * The ListMailMessagesResponseAllOf model module. - * @module model/ListMailMessagesResponseAllOf - * @version 1.0.0 - */ -class ListMailMessagesResponseAllOf { - /** - * Constructs a new ListMailMessagesResponseAllOf. - * @alias module:model/ListMailMessagesResponseAllOf - */ - constructor() { - - ListMailMessagesResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListMailMessagesResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMailMessagesResponseAllOf} obj Optional instance to populate. - * @return {module:model/ListMailMessagesResponseAllOf} The populated ListMailMessagesResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMailMessagesResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ListMailMessagesResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of mail messages - * @member {Array.} data - */ -ListMailMessagesResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListMailMessagesResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default ListMailMessagesResponseAllOf; - diff --git a/src/model/ListMailMessagesResponseAllOfData.js b/src/model/ListMailMessagesResponseAllOfData.js deleted file mode 100644 index 50227039..00000000 --- a/src/model/ListMailMessagesResponseAllOfData.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MailMessageItemForList from './MailMessageItemForList'; - -/** - * The ListMailMessagesResponseAllOfData model module. - * @module model/ListMailMessagesResponseAllOfData - * @version 1.0.0 - */ -class ListMailMessagesResponseAllOfData { - /** - * Constructs a new ListMailMessagesResponseAllOfData. - * @alias module:model/ListMailMessagesResponseAllOfData - */ - constructor() { - - ListMailMessagesResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListMailMessagesResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMailMessagesResponseAllOfData} obj Optional instance to populate. - * @return {module:model/ListMailMessagesResponseAllOfData} The populated ListMailMessagesResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMailMessagesResponseAllOfData(); - - if (data.hasOwnProperty('object')) { - obj['object'] = ApiClient.convertToType(data['object'], 'String'); - - delete data['object']; - } - if (data.hasOwnProperty('timestamp')) { - obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String'); - - delete data['timestamp']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = MailMessageItemForList.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The type of the data item - * @member {String} object - */ -ListMailMessagesResponseAllOfData.prototype['object'] = undefined; - -/** - * The date and time when the item was created - * @member {String} timestamp - */ -ListMailMessagesResponseAllOfData.prototype['timestamp'] = undefined; - -/** - * @member {module:model/MailMessageItemForList} data - */ -ListMailMessagesResponseAllOfData.prototype['data'] = undefined; - - - - - - -export default ListMailMessagesResponseAllOfData; - diff --git a/src/model/ListPermittedUsersResponse.js b/src/model/ListPermittedUsersResponse.js deleted file mode 100644 index 1d602cd7..00000000 --- a/src/model/ListPermittedUsersResponse.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; - -/** - * The ListPermittedUsersResponse model module. - * @module model/ListPermittedUsersResponse - * @version 1.0.0 - */ -class ListPermittedUsersResponse { - /** - * Constructs a new ListPermittedUsersResponse. - * @alias module:model/ListPermittedUsersResponse - * @implements module:model/BaseResponse - */ - constructor() { - BaseResponse.initialize(this); - ListPermittedUsersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPermittedUsersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPermittedUsersResponse} obj Optional instance to populate. - * @return {module:model/ListPermittedUsersResponse} The populated ListPermittedUsersResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPermittedUsersResponse(); - BaseResponse.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListPermittedUsersResponse.prototype['success'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; - - - - -export default ListPermittedUsersResponse; - diff --git a/src/model/ListPermittedUsersResponse1.js b/src/model/ListPermittedUsersResponse1.js deleted file mode 100644 index 5e7aa1fb..00000000 --- a/src/model/ListPermittedUsersResponse1.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import ListPermittedUsersResponse1AllOf from './ListPermittedUsersResponse1AllOf'; - -/** - * The ListPermittedUsersResponse1 model module. - * @module model/ListPermittedUsersResponse1 - * @version 1.0.0 - */ -class ListPermittedUsersResponse1 { - /** - * Constructs a new ListPermittedUsersResponse1. - * @alias module:model/ListPermittedUsersResponse1 - * @implements module:model/BaseResponse - * @implements module:model/ListPermittedUsersResponse1AllOf - */ - constructor() { - BaseResponse.initialize(this);ListPermittedUsersResponse1AllOf.initialize(this); - ListPermittedUsersResponse1.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPermittedUsersResponse1 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPermittedUsersResponse1} obj Optional instance to populate. - * @return {module:model/ListPermittedUsersResponse1} The populated ListPermittedUsersResponse1 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPermittedUsersResponse1(); - BaseResponse.constructFromObject(data, obj); - ListPermittedUsersResponse1AllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], ['Number']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListPermittedUsersResponse1.prototype['success'] = undefined; - -/** - * The list of permitted user IDs - * @member {Array.} data - */ -ListPermittedUsersResponse1.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListPermittedUsersResponse1AllOf interface: -/** - * The list of permitted user IDs - * @member {Array.} data - */ -ListPermittedUsersResponse1AllOf.prototype['data'] = undefined; - - - - -export default ListPermittedUsersResponse1; - diff --git a/src/model/ListPermittedUsersResponse1AllOf.js b/src/model/ListPermittedUsersResponse1AllOf.js deleted file mode 100644 index 51cf6ba4..00000000 --- a/src/model/ListPermittedUsersResponse1AllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListPermittedUsersResponse1AllOf model module. - * @module model/ListPermittedUsersResponse1AllOf - * @version 1.0.0 - */ -class ListPermittedUsersResponse1AllOf { - /** - * Constructs a new ListPermittedUsersResponse1AllOf. - * @alias module:model/ListPermittedUsersResponse1AllOf - */ - constructor() { - - ListPermittedUsersResponse1AllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPermittedUsersResponse1AllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPermittedUsersResponse1AllOf} obj Optional instance to populate. - * @return {module:model/ListPermittedUsersResponse1AllOf} The populated ListPermittedUsersResponse1AllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPermittedUsersResponse1AllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], ['Number']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of permitted user IDs - * @member {Array.} data - */ -ListPermittedUsersResponse1AllOf.prototype['data'] = undefined; - - - - - - -export default ListPermittedUsersResponse1AllOf; - diff --git a/src/model/ListPermittedUsersResponse2.js b/src/model/ListPermittedUsersResponse2.js deleted file mode 100644 index 61449d83..00000000 --- a/src/model/ListPermittedUsersResponse2.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import ListPermittedUsersResponse2AllOf from './ListPermittedUsersResponse2AllOf'; - -/** - * The ListPermittedUsersResponse2 model module. - * @module model/ListPermittedUsersResponse2 - * @version 1.0.0 - */ -class ListPermittedUsersResponse2 { - /** - * Constructs a new ListPermittedUsersResponse2. - * @alias module:model/ListPermittedUsersResponse2 - * @implements module:model/BaseResponse - * @implements module:model/ListPermittedUsersResponse2AllOf - */ - constructor() { - BaseResponse.initialize(this);ListPermittedUsersResponse2AllOf.initialize(this); - ListPermittedUsersResponse2.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPermittedUsersResponse2 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPermittedUsersResponse2} obj Optional instance to populate. - * @return {module:model/ListPermittedUsersResponse2} The populated ListPermittedUsersResponse2 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPermittedUsersResponse2(); - BaseResponse.constructFromObject(data, obj); - ListPermittedUsersResponse2AllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], ['Number']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListPermittedUsersResponse2.prototype['success'] = undefined; - -/** - * The list of permitted Users IDs - * @member {Array.} data - */ -ListPermittedUsersResponse2.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListPermittedUsersResponse2AllOf interface: -/** - * The list of permitted Users IDs - * @member {Array.} data - */ -ListPermittedUsersResponse2AllOf.prototype['data'] = undefined; - - - - -export default ListPermittedUsersResponse2; - diff --git a/src/model/ListPermittedUsersResponse2AllOf.js b/src/model/ListPermittedUsersResponse2AllOf.js deleted file mode 100644 index e7b9a5c1..00000000 --- a/src/model/ListPermittedUsersResponse2AllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListPermittedUsersResponse2AllOf model module. - * @module model/ListPermittedUsersResponse2AllOf - * @version 1.0.0 - */ -class ListPermittedUsersResponse2AllOf { - /** - * Constructs a new ListPermittedUsersResponse2AllOf. - * @alias module:model/ListPermittedUsersResponse2AllOf - */ - constructor() { - - ListPermittedUsersResponse2AllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPermittedUsersResponse2AllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPermittedUsersResponse2AllOf} obj Optional instance to populate. - * @return {module:model/ListPermittedUsersResponse2AllOf} The populated ListPermittedUsersResponse2AllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPermittedUsersResponse2AllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], ['Number']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * The list of permitted Users IDs - * @member {Array.} data - */ -ListPermittedUsersResponse2AllOf.prototype['data'] = undefined; - - - - - - -export default ListPermittedUsersResponse2AllOf; - diff --git a/src/model/ListPermittedUsersResponseAllOf.js b/src/model/ListPermittedUsersResponseAllOf.js deleted file mode 100644 index f834a740..00000000 --- a/src/model/ListPermittedUsersResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListPermittedUsersResponseAllOfData from './ListPermittedUsersResponseAllOfData'; - -/** - * The ListPermittedUsersResponseAllOf model module. - * @module model/ListPermittedUsersResponseAllOf - * @version 1.0.0 - */ -class ListPermittedUsersResponseAllOf { - /** - * Constructs a new ListPermittedUsersResponseAllOf. - * @alias module:model/ListPermittedUsersResponseAllOf - */ - constructor() { - - ListPermittedUsersResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPermittedUsersResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPermittedUsersResponseAllOf} obj Optional instance to populate. - * @return {module:model/ListPermittedUsersResponseAllOf} The populated ListPermittedUsersResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPermittedUsersResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ListPermittedUsersResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ListPermittedUsersResponseAllOfData} data - */ -ListPermittedUsersResponseAllOf.prototype['data'] = undefined; - - - - - - -export default ListPermittedUsersResponseAllOf; - diff --git a/src/model/ListPermittedUsersResponseAllOfData.js b/src/model/ListPermittedUsersResponseAllOfData.js deleted file mode 100644 index 653b865b..00000000 --- a/src/model/ListPermittedUsersResponseAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListPermittedUsersResponseAllOfData model module. - * @module model/ListPermittedUsersResponseAllOfData - * @version 1.0.0 - */ -class ListPermittedUsersResponseAllOfData { - /** - * Constructs a new ListPermittedUsersResponseAllOfData. - * @alias module:model/ListPermittedUsersResponseAllOfData - */ - constructor() { - - ListPermittedUsersResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPermittedUsersResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPermittedUsersResponseAllOfData} obj Optional instance to populate. - * @return {module:model/ListPermittedUsersResponseAllOfData} The populated ListPermittedUsersResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPermittedUsersResponseAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of permitted users IDs - * @member {Array.} id - */ -ListPermittedUsersResponseAllOfData.prototype['id'] = undefined; - - - - - - -export default ListPermittedUsersResponseAllOfData; - diff --git a/src/model/ListPersonProductsResponse.js b/src/model/ListPersonProductsResponse.js deleted file mode 100644 index 30d5595e..00000000 --- a/src/model/ListPersonProductsResponse.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import ListPersonProductsResponseAllOf from './ListPersonProductsResponseAllOf'; -import ListPersonProductsResponseAllOfData from './ListPersonProductsResponseAllOfData'; - -/** - * The ListPersonProductsResponse model module. - * @module model/ListPersonProductsResponse - * @version 1.0.0 - */ -class ListPersonProductsResponse { - /** - * Constructs a new ListPersonProductsResponse. - * @alias module:model/ListPersonProductsResponse - * @implements module:model/BaseResponse - * @implements module:model/ListPersonProductsResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ListPersonProductsResponseAllOf.initialize(this); - ListPersonProductsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPersonProductsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPersonProductsResponse} obj Optional instance to populate. - * @return {module:model/ListPersonProductsResponse} The populated ListPersonProductsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPersonProductsResponse(); - BaseResponse.constructFromObject(data, obj); - ListPersonProductsResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ListPersonProductsResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListPersonProductsResponse.prototype['success'] = undefined; - -/** - * The array of deal products - * @member {Array.} data - */ -ListPersonProductsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ListPersonProductsResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListPersonProductsResponseAllOf interface: -/** - * The array of deal products - * @member {Array.} data - */ -ListPersonProductsResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ListPersonProductsResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default ListPersonProductsResponse; - diff --git a/src/model/ListPersonProductsResponseAllOf.js b/src/model/ListPersonProductsResponseAllOf.js deleted file mode 100644 index 6f6d7c50..00000000 --- a/src/model/ListPersonProductsResponseAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import ListPersonProductsResponseAllOfData from './ListPersonProductsResponseAllOfData'; - -/** - * The ListPersonProductsResponseAllOf model module. - * @module model/ListPersonProductsResponseAllOf - * @version 1.0.0 - */ -class ListPersonProductsResponseAllOf { - /** - * Constructs a new ListPersonProductsResponseAllOf. - * @alias module:model/ListPersonProductsResponseAllOf - */ - constructor() { - - ListPersonProductsResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPersonProductsResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPersonProductsResponseAllOf} obj Optional instance to populate. - * @return {module:model/ListPersonProductsResponseAllOf} The populated ListPersonProductsResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPersonProductsResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ListPersonProductsResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of deal products - * @member {Array.} data - */ -ListPersonProductsResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ListPersonProductsResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default ListPersonProductsResponseAllOf; - diff --git a/src/model/ListPersonProductsResponseAllOfDEALID.js b/src/model/ListPersonProductsResponseAllOfDEALID.js deleted file mode 100644 index 61594aaa..00000000 --- a/src/model/ListPersonProductsResponseAllOfDEALID.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PersonListProduct from './PersonListProduct'; -import ProductBaseDeal from './ProductBaseDeal'; - -/** - * The ListPersonProductsResponseAllOfDEALID model module. - * @module model/ListPersonProductsResponseAllOfDEALID - * @version 1.0.0 - */ -class ListPersonProductsResponseAllOfDEALID { - /** - * Constructs a new ListPersonProductsResponseAllOfDEALID. - * @alias module:model/ListPersonProductsResponseAllOfDEALID - */ - constructor() { - - ListPersonProductsResponseAllOfDEALID.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPersonProductsResponseAllOfDEALID from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPersonProductsResponseAllOfDEALID} obj Optional instance to populate. - * @return {module:model/ListPersonProductsResponseAllOfDEALID} The populated ListPersonProductsResponseAllOfDEALID instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPersonProductsResponseAllOfDEALID(); - - if (data.hasOwnProperty('deal')) { - obj['deal'] = ProductBaseDeal.constructFromObject(data['deal']); - - delete data['deal']; - } - if (data.hasOwnProperty('product')) { - obj['product'] = PersonListProduct.constructFromObject(data['product']); - - delete data['product']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ProductBaseDeal} deal - */ -ListPersonProductsResponseAllOfDEALID.prototype['deal'] = undefined; - -/** - * @member {module:model/PersonListProduct} product - */ -ListPersonProductsResponseAllOfDEALID.prototype['product'] = undefined; - - - - - - -export default ListPersonProductsResponseAllOfDEALID; - diff --git a/src/model/ListPersonProductsResponseAllOfData.js b/src/model/ListPersonProductsResponseAllOfData.js deleted file mode 100644 index 3e69a75e..00000000 --- a/src/model/ListPersonProductsResponseAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListPersonProductsResponseAllOfDEALID from './ListPersonProductsResponseAllOfDEALID'; - -/** - * The ListPersonProductsResponseAllOfData model module. - * @module model/ListPersonProductsResponseAllOfData - * @version 1.0.0 - */ -class ListPersonProductsResponseAllOfData { - /** - * Constructs a new ListPersonProductsResponseAllOfData. - * @alias module:model/ListPersonProductsResponseAllOfData - */ - constructor() { - - ListPersonProductsResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPersonProductsResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPersonProductsResponseAllOfData} obj Optional instance to populate. - * @return {module:model/ListPersonProductsResponseAllOfData} The populated ListPersonProductsResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPersonProductsResponseAllOfData(); - - if (data.hasOwnProperty('DEAL_ID')) { - obj['DEAL_ID'] = ListPersonProductsResponseAllOfDEALID.constructFromObject(data['DEAL_ID']); - - delete data['DEAL_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ListPersonProductsResponseAllOfDEALID} DEAL_ID - */ -ListPersonProductsResponseAllOfData.prototype['DEAL_ID'] = undefined; - - - - - - -export default ListPersonProductsResponseAllOfData; - diff --git a/src/model/ListPersonsResponse.js b/src/model/ListPersonsResponse.js deleted file mode 100644 index 3b37460e..00000000 --- a/src/model/ListPersonsResponse.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import ListPersonsResponseAllOf from './ListPersonsResponseAllOf'; -import ListPersonsResponseAllOfRelatedObjects from './ListPersonsResponseAllOfRelatedObjects'; -import PersonItem from './PersonItem'; - -/** - * The ListPersonsResponse model module. - * @module model/ListPersonsResponse - * @version 1.0.0 - */ -class ListPersonsResponse { - /** - * Constructs a new ListPersonsResponse. - * @alias module:model/ListPersonsResponse - * @implements module:model/BaseResponse - * @implements module:model/ListPersonsResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ListPersonsResponseAllOf.initialize(this); - ListPersonsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPersonsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPersonsResponse} obj Optional instance to populate. - * @return {module:model/ListPersonsResponse} The populated ListPersonsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPersonsResponse(); - BaseResponse.constructFromObject(data, obj); - ListPersonsResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PersonItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = ListPersonsResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListPersonsResponse.prototype['success'] = undefined; - -/** - * The array of persons - * @member {Array.} data - */ -ListPersonsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListPersonsResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/ListPersonsResponseAllOfRelatedObjects} related_objects - */ -ListPersonsResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListPersonsResponseAllOf interface: -/** - * The array of persons - * @member {Array.} data - */ -ListPersonsResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -ListPersonsResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/ListPersonsResponseAllOfRelatedObjects} related_objects - */ -ListPersonsResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default ListPersonsResponse; - diff --git a/src/model/ListPersonsResponseAllOf.js b/src/model/ListPersonsResponseAllOf.js deleted file mode 100644 index 513bb4e2..00000000 --- a/src/model/ListPersonsResponseAllOf.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import ListPersonsResponseAllOfRelatedObjects from './ListPersonsResponseAllOfRelatedObjects'; -import PersonItem from './PersonItem'; - -/** - * The ListPersonsResponseAllOf model module. - * @module model/ListPersonsResponseAllOf - * @version 1.0.0 - */ -class ListPersonsResponseAllOf { - /** - * Constructs a new ListPersonsResponseAllOf. - * @alias module:model/ListPersonsResponseAllOf - */ - constructor() { - - ListPersonsResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPersonsResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPersonsResponseAllOf} obj Optional instance to populate. - * @return {module:model/ListPersonsResponseAllOf} The populated ListPersonsResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPersonsResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PersonItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = ListPersonsResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of persons - * @member {Array.} data - */ -ListPersonsResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListPersonsResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/ListPersonsResponseAllOfRelatedObjects} related_objects - */ -ListPersonsResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default ListPersonsResponseAllOf; - diff --git a/src/model/ListPersonsResponseAllOfRelatedObjects.js b/src/model/ListPersonsResponseAllOfRelatedObjects.js deleted file mode 100644 index 45ed9651..00000000 --- a/src/model/ListPersonsResponseAllOfRelatedObjects.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedOrganizationDataWithActiveFlag from './RelatedOrganizationDataWithActiveFlag'; -import RelatedUserData from './RelatedUserData'; - -/** - * The ListPersonsResponseAllOfRelatedObjects model module. - * @module model/ListPersonsResponseAllOfRelatedObjects - * @version 1.0.0 - */ -class ListPersonsResponseAllOfRelatedObjects { - /** - * Constructs a new ListPersonsResponseAllOfRelatedObjects. - * @alias module:model/ListPersonsResponseAllOfRelatedObjects - */ - constructor() { - - ListPersonsResponseAllOfRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPersonsResponseAllOfRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPersonsResponseAllOfRelatedObjects} obj Optional instance to populate. - * @return {module:model/ListPersonsResponseAllOfRelatedObjects} The populated ListPersonsResponseAllOfRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPersonsResponseAllOfRelatedObjects(); - - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationDataWithActiveFlag.constructFromObject(data['organization']); - - delete data['organization']; - } - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedOrganizationDataWithActiveFlag} organization - */ -ListPersonsResponseAllOfRelatedObjects.prototype['organization'] = undefined; - -/** - * @member {module:model/RelatedUserData} user - */ -ListPersonsResponseAllOfRelatedObjects.prototype['user'] = undefined; - - - - - - -export default ListPersonsResponseAllOfRelatedObjects; - diff --git a/src/model/ListProductAdditionalData.js b/src/model/ListProductAdditionalData.js deleted file mode 100644 index 73aca31f..00000000 --- a/src/model/ListProductAdditionalData.js +++ /dev/null @@ -1,155 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import ItemSearchAdditionalDataPagination from './ItemSearchAdditionalDataPagination'; -import ListProductAdditionalDataAllOf from './ListProductAdditionalDataAllOf'; - -/** - * The ListProductAdditionalData model module. - * @module model/ListProductAdditionalData - * @version 1.0.0 - */ -class ListProductAdditionalData { - /** - * Constructs a new ListProductAdditionalData. - * @alias module:model/ListProductAdditionalData - * @implements module:model/ListProductAdditionalDataAllOf - * @implements module:model/ItemSearchAdditionalData - */ - constructor() { - ListProductAdditionalDataAllOf.initialize(this);ItemSearchAdditionalData.initialize(this); - ListProductAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListProductAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListProductAdditionalData} obj Optional instance to populate. - * @return {module:model/ListProductAdditionalData} The populated ListProductAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListProductAdditionalData(); - ListProductAdditionalDataAllOf.constructFromObject(data, obj); - ItemSearchAdditionalData.constructFromObject(data, obj); - - if (data.hasOwnProperty('products_quantity_total')) { - obj['products_quantity_total'] = ApiClient.convertToType(data['products_quantity_total'], 'Number'); - - delete data['products_quantity_total']; - } - if (data.hasOwnProperty('products_sum_total')) { - obj['products_sum_total'] = ApiClient.convertToType(data['products_sum_total'], 'Number'); - - delete data['products_sum_total']; - } - if (data.hasOwnProperty('products_quantity_total_formatted')) { - obj['products_quantity_total_formatted'] = ApiClient.convertToType(data['products_quantity_total_formatted'], 'String'); - - delete data['products_quantity_total_formatted']; - } - if (data.hasOwnProperty('products_sum_total_formatted')) { - obj['products_sum_total_formatted'] = ApiClient.convertToType(data['products_sum_total_formatted'], 'String'); - - delete data['products_sum_total_formatted']; - } - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = ItemSearchAdditionalDataPagination.constructFromObject(data['pagination']); - - delete data['pagination']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The total quantity of the products - * @member {Number} products_quantity_total - */ -ListProductAdditionalData.prototype['products_quantity_total'] = undefined; - -/** - * The total sum of the products - * @member {Number} products_sum_total - */ -ListProductAdditionalData.prototype['products_sum_total'] = undefined; - -/** - * The total formatted quantity of the products - * @member {String} products_quantity_total_formatted - */ -ListProductAdditionalData.prototype['products_quantity_total_formatted'] = undefined; - -/** - * The total formatted sum of the products - * @member {String} products_sum_total_formatted - */ -ListProductAdditionalData.prototype['products_sum_total_formatted'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalDataPagination} pagination - */ -ListProductAdditionalData.prototype['pagination'] = undefined; - - -// Implement ListProductAdditionalDataAllOf interface: -/** - * The total quantity of the products - * @member {Number} products_quantity_total - */ -ListProductAdditionalDataAllOf.prototype['products_quantity_total'] = undefined; -/** - * The total sum of the products - * @member {Number} products_sum_total - */ -ListProductAdditionalDataAllOf.prototype['products_sum_total'] = undefined; -/** - * The total formatted quantity of the products - * @member {String} products_quantity_total_formatted - */ -ListProductAdditionalDataAllOf.prototype['products_quantity_total_formatted'] = undefined; -/** - * The total formatted sum of the products - * @member {String} products_sum_total_formatted - */ -ListProductAdditionalDataAllOf.prototype['products_sum_total_formatted'] = undefined; -// Implement ItemSearchAdditionalData interface: -/** - * @member {module:model/ItemSearchAdditionalDataPagination} pagination - */ -ItemSearchAdditionalData.prototype['pagination'] = undefined; - - - - -export default ListProductAdditionalData; - diff --git a/src/model/ListProductAdditionalDataAllOf.js b/src/model/ListProductAdditionalDataAllOf.js deleted file mode 100644 index fe37f721..00000000 --- a/src/model/ListProductAdditionalDataAllOf.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListProductAdditionalDataAllOf model module. - * @module model/ListProductAdditionalDataAllOf - * @version 1.0.0 - */ -class ListProductAdditionalDataAllOf { - /** - * Constructs a new ListProductAdditionalDataAllOf. - * @alias module:model/ListProductAdditionalDataAllOf - */ - constructor() { - - ListProductAdditionalDataAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListProductAdditionalDataAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListProductAdditionalDataAllOf} obj Optional instance to populate. - * @return {module:model/ListProductAdditionalDataAllOf} The populated ListProductAdditionalDataAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListProductAdditionalDataAllOf(); - - if (data.hasOwnProperty('products_quantity_total')) { - obj['products_quantity_total'] = ApiClient.convertToType(data['products_quantity_total'], 'Number'); - - delete data['products_quantity_total']; - } - if (data.hasOwnProperty('products_sum_total')) { - obj['products_sum_total'] = ApiClient.convertToType(data['products_sum_total'], 'Number'); - - delete data['products_sum_total']; - } - if (data.hasOwnProperty('products_quantity_total_formatted')) { - obj['products_quantity_total_formatted'] = ApiClient.convertToType(data['products_quantity_total_formatted'], 'String'); - - delete data['products_quantity_total_formatted']; - } - if (data.hasOwnProperty('products_sum_total_formatted')) { - obj['products_sum_total_formatted'] = ApiClient.convertToType(data['products_sum_total_formatted'], 'String'); - - delete data['products_sum_total_formatted']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The total quantity of the products - * @member {Number} products_quantity_total - */ -ListProductAdditionalDataAllOf.prototype['products_quantity_total'] = undefined; - -/** - * The total sum of the products - * @member {Number} products_sum_total - */ -ListProductAdditionalDataAllOf.prototype['products_sum_total'] = undefined; - -/** - * The total formatted quantity of the products - * @member {String} products_quantity_total_formatted - */ -ListProductAdditionalDataAllOf.prototype['products_quantity_total_formatted'] = undefined; - -/** - * The total formatted sum of the products - * @member {String} products_sum_total_formatted - */ -ListProductAdditionalDataAllOf.prototype['products_sum_total_formatted'] = undefined; - - - - - - -export default ListProductAdditionalDataAllOf; - diff --git a/src/model/ListProductFilesResponse.js b/src/model/ListProductFilesResponse.js deleted file mode 100644 index d043fc9d..00000000 --- a/src/model/ListProductFilesResponse.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import ListProductFilesResponseAllOf from './ListProductFilesResponseAllOf'; -import ProductFileItem from './ProductFileItem'; - -/** - * The ListProductFilesResponse model module. - * @module model/ListProductFilesResponse - * @version 1.0.0 - */ -class ListProductFilesResponse { - /** - * Constructs a new ListProductFilesResponse. - * @alias module:model/ListProductFilesResponse - * @implements module:model/BaseResponse - * @implements module:model/ListProductFilesResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ListProductFilesResponseAllOf.initialize(this); - ListProductFilesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListProductFilesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListProductFilesResponse} obj Optional instance to populate. - * @return {module:model/ListProductFilesResponse} The populated ListProductFilesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListProductFilesResponse(); - BaseResponse.constructFromObject(data, obj); - ListProductFilesResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProductFileItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListProductFilesResponse.prototype['success'] = undefined; - -/** - * The array of files - * @member {Array.} data - */ -ListProductFilesResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListProductFilesResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListProductFilesResponseAllOf interface: -/** - * The array of files - * @member {Array.} data - */ -ListProductFilesResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -ListProductFilesResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default ListProductFilesResponse; - diff --git a/src/model/ListProductFilesResponseAllOf.js b/src/model/ListProductFilesResponseAllOf.js deleted file mode 100644 index 0a6da9b1..00000000 --- a/src/model/ListProductFilesResponseAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import ProductFileItem from './ProductFileItem'; - -/** - * The ListProductFilesResponseAllOf model module. - * @module model/ListProductFilesResponseAllOf - * @version 1.0.0 - */ -class ListProductFilesResponseAllOf { - /** - * Constructs a new ListProductFilesResponseAllOf. - * @alias module:model/ListProductFilesResponseAllOf - */ - constructor() { - - ListProductFilesResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListProductFilesResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListProductFilesResponseAllOf} obj Optional instance to populate. - * @return {module:model/ListProductFilesResponseAllOf} The populated ListProductFilesResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListProductFilesResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProductFileItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of files - * @member {Array.} data - */ -ListProductFilesResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListProductFilesResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default ListProductFilesResponseAllOf; - diff --git a/src/model/ListProductFollowersResponse.js b/src/model/ListProductFollowersResponse.js deleted file mode 100644 index 9c81b48a..00000000 --- a/src/model/ListProductFollowersResponse.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import ListProductFollowersResponseAllOf from './ListProductFollowersResponseAllOf'; -import ListProductFollowersResponseAllOfData from './ListProductFollowersResponseAllOfData'; - -/** - * The ListProductFollowersResponse model module. - * @module model/ListProductFollowersResponse - * @version 1.0.0 - */ -class ListProductFollowersResponse { - /** - * Constructs a new ListProductFollowersResponse. - * @alias module:model/ListProductFollowersResponse - * @implements module:model/BaseResponse - * @implements module:model/ListProductFollowersResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ListProductFollowersResponseAllOf.initialize(this); - ListProductFollowersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListProductFollowersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListProductFollowersResponse} obj Optional instance to populate. - * @return {module:model/ListProductFollowersResponse} The populated ListProductFollowersResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListProductFollowersResponse(); - BaseResponse.constructFromObject(data, obj); - ListProductFollowersResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ListProductFollowersResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListProductFollowersResponse.prototype['success'] = undefined; - -/** - * The list of followers - * @member {Array.} data - */ -ListProductFollowersResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListProductFollowersResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListProductFollowersResponseAllOf interface: -/** - * The list of followers - * @member {Array.} data - */ -ListProductFollowersResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -ListProductFollowersResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default ListProductFollowersResponse; - diff --git a/src/model/ListProductFollowersResponseAllOf.js b/src/model/ListProductFollowersResponseAllOf.js deleted file mode 100644 index c604baca..00000000 --- a/src/model/ListProductFollowersResponseAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import ListProductFollowersResponseAllOfData from './ListProductFollowersResponseAllOfData'; - -/** - * The ListProductFollowersResponseAllOf model module. - * @module model/ListProductFollowersResponseAllOf - * @version 1.0.0 - */ -class ListProductFollowersResponseAllOf { - /** - * Constructs a new ListProductFollowersResponseAllOf. - * @alias module:model/ListProductFollowersResponseAllOf - */ - constructor() { - - ListProductFollowersResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListProductFollowersResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListProductFollowersResponseAllOf} obj Optional instance to populate. - * @return {module:model/ListProductFollowersResponseAllOf} The populated ListProductFollowersResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListProductFollowersResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ListProductFollowersResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of followers - * @member {Array.} data - */ -ListProductFollowersResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ListProductFollowersResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default ListProductFollowersResponseAllOf; - diff --git a/src/model/ListProductFollowersResponseAllOfData.js b/src/model/ListProductFollowersResponseAllOfData.js deleted file mode 100644 index aa54767a..00000000 --- a/src/model/ListProductFollowersResponseAllOfData.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListProductFollowersResponseAllOfData model module. - * @module model/ListProductFollowersResponseAllOfData - * @version 1.0.0 - */ -class ListProductFollowersResponseAllOfData { - /** - * Constructs a new ListProductFollowersResponseAllOfData. - * @alias module:model/ListProductFollowersResponseAllOfData - */ - constructor() { - - ListProductFollowersResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListProductFollowersResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListProductFollowersResponseAllOfData} obj Optional instance to populate. - * @return {module:model/ListProductFollowersResponseAllOfData} The populated ListProductFollowersResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListProductFollowersResponseAllOfData(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} user_id - */ -ListProductFollowersResponseAllOfData.prototype['user_id'] = undefined; - -/** - * The ID of the user follower - * @member {Number} id - */ -ListProductFollowersResponseAllOfData.prototype['id'] = undefined; - -/** - * The ID of the product - * @member {Number} product_id - */ -ListProductFollowersResponseAllOfData.prototype['product_id'] = undefined; - -/** - * The date and time when the follower was added to the person - * @member {String} add_time - */ -ListProductFollowersResponseAllOfData.prototype['add_time'] = undefined; - - - - - - -export default ListProductFollowersResponseAllOfData; - diff --git a/src/model/ListProductsResponse.js b/src/model/ListProductsResponse.js deleted file mode 100644 index 7a6ee1c6..00000000 --- a/src/model/ListProductsResponse.js +++ /dev/null @@ -1,139 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import ListProductAdditionalData from './ListProductAdditionalData'; -import ListProductsResponseAllOf from './ListProductsResponseAllOf'; -import ListProductsResponseAllOfRelatedObjects from './ListProductsResponseAllOfRelatedObjects'; -import ProductListItem from './ProductListItem'; - -/** - * The ListProductsResponse model module. - * @module model/ListProductsResponse - * @version 1.0.0 - */ -class ListProductsResponse { - /** - * Constructs a new ListProductsResponse. - * @alias module:model/ListProductsResponse - * @implements module:model/BaseResponse - * @implements module:model/ListProductsResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ListProductsResponseAllOf.initialize(this); - ListProductsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListProductsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListProductsResponse} obj Optional instance to populate. - * @return {module:model/ListProductsResponse} The populated ListProductsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListProductsResponse(); - BaseResponse.constructFromObject(data, obj); - ListProductsResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProductListItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ListProductAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = ListProductsResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ListProductsResponse.prototype['success'] = undefined; - -/** - * The array of products - * @member {Array.} data - */ -ListProductsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ListProductAdditionalData} additional_data - */ -ListProductsResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/ListProductsResponseAllOfRelatedObjects} related_objects - */ -ListProductsResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ListProductsResponseAllOf interface: -/** - * The array of products - * @member {Array.} data - */ -ListProductsResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ListProductAdditionalData} additional_data - */ -ListProductsResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/ListProductsResponseAllOfRelatedObjects} related_objects - */ -ListProductsResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default ListProductsResponse; - diff --git a/src/model/ListProductsResponseAllOf.js b/src/model/ListProductsResponseAllOf.js deleted file mode 100644 index d71b3af3..00000000 --- a/src/model/ListProductsResponseAllOf.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListProductAdditionalData from './ListProductAdditionalData'; -import ListProductsResponseAllOfRelatedObjects from './ListProductsResponseAllOfRelatedObjects'; -import ProductListItem from './ProductListItem'; - -/** - * The ListProductsResponseAllOf model module. - * @module model/ListProductsResponseAllOf - * @version 1.0.0 - */ -class ListProductsResponseAllOf { - /** - * Constructs a new ListProductsResponseAllOf. - * @alias module:model/ListProductsResponseAllOf - */ - constructor() { - - ListProductsResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListProductsResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListProductsResponseAllOf} obj Optional instance to populate. - * @return {module:model/ListProductsResponseAllOf} The populated ListProductsResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListProductsResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProductListItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ListProductAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = ListProductsResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of products - * @member {Array.} data - */ -ListProductsResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ListProductAdditionalData} additional_data - */ -ListProductsResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/ListProductsResponseAllOfRelatedObjects} related_objects - */ -ListProductsResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default ListProductsResponseAllOf; - diff --git a/src/model/ListProductsResponseAllOfData.js b/src/model/ListProductsResponseAllOfData.js deleted file mode 100644 index 3478ff22..00000000 --- a/src/model/ListProductsResponseAllOfData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProductListItem from './ProductListItem'; - -/** - * The ListProductsResponseAllOfData model module. - * @module model/ListProductsResponseAllOfData - * @version 1.0.0 - */ -class ListProductsResponseAllOfData { - /** - * Constructs a new ListProductsResponseAllOfData. - * @alias module:model/ListProductsResponseAllOfData - */ - constructor() { - - ListProductsResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListProductsResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListProductsResponseAllOfData} obj Optional instance to populate. - * @return {module:model/ListProductsResponseAllOfData} The populated ListProductsResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListProductsResponseAllOfData(); - - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [ProductListItem]); - - delete data['items']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of products - * @member {Array.} items - */ -ListProductsResponseAllOfData.prototype['items'] = undefined; - - - - - - -export default ListProductsResponseAllOfData; - diff --git a/src/model/ListProductsResponseAllOfRelatedObjects.js b/src/model/ListProductsResponseAllOfRelatedObjects.js deleted file mode 100644 index 3dee7328..00000000 --- a/src/model/ListProductsResponseAllOfRelatedObjects.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedUserData from './RelatedUserData'; - -/** - * The ListProductsResponseAllOfRelatedObjects model module. - * @module model/ListProductsResponseAllOfRelatedObjects - * @version 1.0.0 - */ -class ListProductsResponseAllOfRelatedObjects { - /** - * Constructs a new ListProductsResponseAllOfRelatedObjects. - * @alias module:model/ListProductsResponseAllOfRelatedObjects - */ - constructor() { - - ListProductsResponseAllOfRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListProductsResponseAllOfRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListProductsResponseAllOfRelatedObjects} obj Optional instance to populate. - * @return {module:model/ListProductsResponseAllOfRelatedObjects} The populated ListProductsResponseAllOfRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListProductsResponseAllOfRelatedObjects(); - - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedUserData} user - */ -ListProductsResponseAllOfRelatedObjects.prototype['user'] = undefined; - - - - - - -export default ListProductsResponseAllOfRelatedObjects; - diff --git a/src/model/MailMessage.js b/src/model/MailMessage.js deleted file mode 100644 index bb8ec646..00000000 --- a/src/model/MailMessage.js +++ /dev/null @@ -1,155 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MailMessageAllOf from './MailMessageAllOf'; -import MailMessageData from './MailMessageData'; -import MailServiceBaseResponse from './MailServiceBaseResponse'; - -/** - * The MailMessage model module. - * @module model/MailMessage - * @version 1.0.0 - */ -class MailMessage { - /** - * Constructs a new MailMessage. - * @alias module:model/MailMessage - * @implements module:model/MailServiceBaseResponse - * @implements module:model/MailMessageAllOf - */ - constructor() { - MailServiceBaseResponse.initialize(this);MailMessageAllOf.initialize(this); - MailMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailMessage} obj Optional instance to populate. - * @return {module:model/MailMessage} The populated MailMessage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailMessage(); - MailServiceBaseResponse.constructFromObject(data, obj); - MailMessageAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('statusCode')) { - obj['statusCode'] = ApiClient.convertToType(data['statusCode'], 'Number'); - - delete data['statusCode']; - } - if (data.hasOwnProperty('statusText')) { - obj['statusText'] = ApiClient.convertToType(data['statusText'], 'String'); - - delete data['statusText']; - } - if (data.hasOwnProperty('service')) { - obj['service'] = ApiClient.convertToType(data['service'], 'String'); - - delete data['service']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = MailMessageData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -MailMessage.prototype['success'] = undefined; - -/** - * The email service specific status code and it is returned through the response body. - * @member {Number} statusCode - */ -MailMessage.prototype['statusCode'] = undefined; - -/** - * The status text of the response. - * @member {String} statusText - */ -MailMessage.prototype['statusText'] = undefined; - -/** - * The service name of the response. - * @member {String} service - */ -MailMessage.prototype['service'] = undefined; - -/** - * @member {module:model/MailMessageData} data - */ -MailMessage.prototype['data'] = undefined; - - -// Implement MailServiceBaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -MailServiceBaseResponse.prototype['success'] = undefined; -/** - * The email service specific status code and it is returned through the response body. - * @member {Number} statusCode - */ -MailServiceBaseResponse.prototype['statusCode'] = undefined; -/** - * The status text of the response. - * @member {String} statusText - */ -MailServiceBaseResponse.prototype['statusText'] = undefined; -/** - * The service name of the response. - * @member {String} service - */ -MailServiceBaseResponse.prototype['service'] = undefined; -// Implement MailMessageAllOf interface: -/** - * @member {module:model/MailMessageData} data - */ -MailMessageAllOf.prototype['data'] = undefined; - - - - -export default MailMessage; - diff --git a/src/model/MailMessageAllOf.js b/src/model/MailMessageAllOf.js deleted file mode 100644 index ab5614b9..00000000 --- a/src/model/MailMessageAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MailMessageData from './MailMessageData'; - -/** - * The MailMessageAllOf model module. - * @module model/MailMessageAllOf - * @version 1.0.0 - */ -class MailMessageAllOf { - /** - * Constructs a new MailMessageAllOf. - * @alias module:model/MailMessageAllOf - */ - constructor() { - - MailMessageAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailMessageAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailMessageAllOf} obj Optional instance to populate. - * @return {module:model/MailMessageAllOf} The populated MailMessageAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailMessageAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = MailMessageData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/MailMessageData} data - */ -MailMessageAllOf.prototype['data'] = undefined; - - - - - - -export default MailMessageAllOf; - diff --git a/src/model/MailMessageData.js b/src/model/MailMessageData.js deleted file mode 100644 index 185ea867..00000000 --- a/src/model/MailMessageData.js +++ /dev/null @@ -1,399 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MailParticipant from './MailParticipant'; -import NumberBooleanDefault0 from './NumberBooleanDefault0'; - -/** - * The MailMessageData model module. - * @module model/MailMessageData - * @version 1.0.0 - */ -class MailMessageData { - /** - * Constructs a new MailMessageData. - * @alias module:model/MailMessageData - */ - constructor() { - - MailMessageData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailMessageData} obj Optional instance to populate. - * @return {module:model/MailMessageData} The populated MailMessageData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailMessageData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('from')) { - obj['from'] = ApiClient.convertToType(data['from'], [MailParticipant]); - - delete data['from']; - } - if (data.hasOwnProperty('to')) { - obj['to'] = ApiClient.convertToType(data['to'], [MailParticipant]); - - delete data['to']; - } - if (data.hasOwnProperty('cc')) { - obj['cc'] = ApiClient.convertToType(data['cc'], [MailParticipant]); - - delete data['cc']; - } - if (data.hasOwnProperty('bcc')) { - obj['bcc'] = ApiClient.convertToType(data['bcc'], [MailParticipant]); - - delete data['bcc']; - } - if (data.hasOwnProperty('body_url')) { - obj['body_url'] = ApiClient.convertToType(data['body_url'], 'String'); - - delete data['body_url']; - } - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = ApiClient.convertToType(data['account_id'], 'String'); - - delete data['account_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('mail_thread_id')) { - obj['mail_thread_id'] = ApiClient.convertToType(data['mail_thread_id'], 'Number'); - - delete data['mail_thread_id']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('snippet')) { - obj['snippet'] = ApiClient.convertToType(data['snippet'], 'String'); - - delete data['snippet']; - } - if (data.hasOwnProperty('mail_tracking_status')) { - obj['mail_tracking_status'] = ApiClient.convertToType(data['mail_tracking_status'], 'String'); - - delete data['mail_tracking_status']; - } - if (data.hasOwnProperty('mail_link_tracking_enabled_flag')) { - obj['mail_link_tracking_enabled_flag'] = ApiClient.convertToType(data['mail_link_tracking_enabled_flag'], NumberBooleanDefault0); - - delete data['mail_link_tracking_enabled_flag']; - } - if (data.hasOwnProperty('read_flag')) { - obj['read_flag'] = ApiClient.convertToType(data['read_flag'], NumberBooleanDefault0); - - delete data['read_flag']; - } - if (data.hasOwnProperty('draft')) { - obj['draft'] = ApiClient.convertToType(data['draft'], 'String'); - - delete data['draft']; - } - if (data.hasOwnProperty('draft_flag')) { - obj['draft_flag'] = ApiClient.convertToType(data['draft_flag'], NumberBooleanDefault0); - - delete data['draft_flag']; - } - if (data.hasOwnProperty('synced_flag')) { - obj['synced_flag'] = ApiClient.convertToType(data['synced_flag'], NumberBooleanDefault0); - - delete data['synced_flag']; - } - if (data.hasOwnProperty('deleted_flag')) { - obj['deleted_flag'] = ApiClient.convertToType(data['deleted_flag'], NumberBooleanDefault0); - - delete data['deleted_flag']; - } - if (data.hasOwnProperty('has_body_flag')) { - obj['has_body_flag'] = ApiClient.convertToType(data['has_body_flag'], NumberBooleanDefault0); - - delete data['has_body_flag']; - } - if (data.hasOwnProperty('sent_flag')) { - obj['sent_flag'] = ApiClient.convertToType(data['sent_flag'], NumberBooleanDefault0); - - delete data['sent_flag']; - } - if (data.hasOwnProperty('sent_from_pipedrive_flag')) { - obj['sent_from_pipedrive_flag'] = ApiClient.convertToType(data['sent_from_pipedrive_flag'], NumberBooleanDefault0); - - delete data['sent_from_pipedrive_flag']; - } - if (data.hasOwnProperty('smart_bcc_flag')) { - obj['smart_bcc_flag'] = ApiClient.convertToType(data['smart_bcc_flag'], NumberBooleanDefault0); - - delete data['smart_bcc_flag']; - } - if (data.hasOwnProperty('message_time')) { - obj['message_time'] = ApiClient.convertToType(data['message_time'], 'Date'); - - delete data['message_time']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - if (data.hasOwnProperty('has_attachments_flag')) { - obj['has_attachments_flag'] = ApiClient.convertToType(data['has_attachments_flag'], NumberBooleanDefault0); - - delete data['has_attachments_flag']; - } - if (data.hasOwnProperty('has_inline_attachments_flag')) { - obj['has_inline_attachments_flag'] = ApiClient.convertToType(data['has_inline_attachments_flag'], NumberBooleanDefault0); - - delete data['has_inline_attachments_flag']; - } - if (data.hasOwnProperty('has_real_attachments_flag')) { - obj['has_real_attachments_flag'] = ApiClient.convertToType(data['has_real_attachments_flag'], NumberBooleanDefault0); - - delete data['has_real_attachments_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * ID of the mail message. - * @member {Number} id - */ -MailMessageData.prototype['id'] = undefined; - -/** - * The array of mail message sender (object) - * @member {Array.} from - */ -MailMessageData.prototype['from'] = undefined; - -/** - * The array of mail message receiver (object) - * @member {Array.} to - */ -MailMessageData.prototype['to'] = undefined; - -/** - * The array of mail message copies (object) - * @member {Array.} cc - */ -MailMessageData.prototype['cc'] = undefined; - -/** - * The array of mail message blind copies (object) - * @member {Array.} bcc - */ -MailMessageData.prototype['bcc'] = undefined; - -/** - * The mail message body URL - * @member {String} body_url - */ -MailMessageData.prototype['body_url'] = undefined; - -/** - * The connection account ID - * @member {String} account_id - */ -MailMessageData.prototype['account_id'] = undefined; - -/** - * ID of the user whom mail message will be assigned to - * @member {Number} user_id - */ -MailMessageData.prototype['user_id'] = undefined; - -/** - * ID of the mail message thread - * @member {Number} mail_thread_id - */ -MailMessageData.prototype['mail_thread_id'] = undefined; - -/** - * The subject of mail message - * @member {String} subject - */ -MailMessageData.prototype['subject'] = undefined; - -/** - * The snippet of mail message. Snippet length is up to 225 characters. - * @member {String} snippet - */ -MailMessageData.prototype['snippet'] = undefined; - -/** - * The status of tracking mail message. Value is `null` if tracking is not enabled. - * @member {module:model/MailMessageData.MailTrackingStatusEnum} mail_tracking_status - */ -MailMessageData.prototype['mail_tracking_status'] = undefined; - -/** - * Whether the link tracking in mail message body is enabled. - * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag - */ -MailMessageData.prototype['mail_link_tracking_enabled_flag'] = undefined; - -/** - * Whether the mail message is read or not by the user - * @member {module:model/NumberBooleanDefault0} read_flag - */ -MailMessageData.prototype['read_flag'] = undefined; - -/** - * If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. - * @member {String} draft - */ -MailMessageData.prototype['draft'] = undefined; - -/** - * Whether the mail message is a draft or not - * @member {module:model/NumberBooleanDefault0} draft_flag - */ -MailMessageData.prototype['draft_flag'] = undefined; - -/** - * Whether the mail message is synced with the provider or not - * @member {module:model/NumberBooleanDefault0} synced_flag - */ -MailMessageData.prototype['synced_flag'] = undefined; - -/** - * Whether the mail message is deleted or not - * @member {module:model/NumberBooleanDefault0} deleted_flag - */ -MailMessageData.prototype['deleted_flag'] = undefined; - -/** - * Whether the mail message has a body or not - * @member {module:model/NumberBooleanDefault0} has_body_flag - */ -MailMessageData.prototype['has_body_flag'] = undefined; - -/** - * Whether the mail message has been sent or not - * @member {module:model/NumberBooleanDefault0} sent_flag - */ -MailMessageData.prototype['sent_flag'] = undefined; - -/** - * Whether the mail message has been sent from Pipedrive app or not - * @member {module:model/NumberBooleanDefault0} sent_from_pipedrive_flag - */ -MailMessageData.prototype['sent_from_pipedrive_flag'] = undefined; - -/** - * Whether the mail message has been created by Smart Email BCC feature or not - * @member {module:model/NumberBooleanDefault0} smart_bcc_flag - */ -MailMessageData.prototype['smart_bcc_flag'] = undefined; - -/** - * Creation or receival time of the mail message - * @member {Date} message_time - */ -MailMessageData.prototype['message_time'] = undefined; - -/** - * The insertion into the database time of the mail message - * @member {Date} add_time - */ -MailMessageData.prototype['add_time'] = undefined; - -/** - * The updating time in the database of the mail message - * @member {Date} update_time - */ -MailMessageData.prototype['update_time'] = undefined; - -/** - * Whether the mail message has an attachment or not - * @member {module:model/NumberBooleanDefault0} has_attachments_flag - */ -MailMessageData.prototype['has_attachments_flag'] = undefined; - -/** - * Whether the mail message has an inline attachment or not - * @member {module:model/NumberBooleanDefault0} has_inline_attachments_flag - */ -MailMessageData.prototype['has_inline_attachments_flag'] = undefined; - -/** - * Whether the mail message has an attachment (which is not inline) or not - * @member {module:model/NumberBooleanDefault0} has_real_attachments_flag - */ -MailMessageData.prototype['has_real_attachments_flag'] = undefined; - - - - - -/** - * Allowed values for the mail_tracking_status property. - * @enum {String} - * @readonly - */ -MailMessageData['MailTrackingStatusEnum'] = { - - /** - * value: "opened" - * @const - */ - "opened": "opened", - - /** - * value: "not opened" - * @const - */ - "not opened": "not opened" -}; - - - -export default MailMessageData; - diff --git a/src/model/MailMessageItemForList.js b/src/model/MailMessageItemForList.js deleted file mode 100644 index d7ec352e..00000000 --- a/src/model/MailMessageItemForList.js +++ /dev/null @@ -1,691 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MailMessageData from './MailMessageData'; -import MailMessageItemForListAllOf from './MailMessageItemForListAllOf'; -import MailParticipant from './MailParticipant'; -import NumberBooleanDefault0 from './NumberBooleanDefault0'; - -/** - * The MailMessageItemForList model module. - * @module model/MailMessageItemForList - * @version 1.0.0 - */ -class MailMessageItemForList { - /** - * Constructs a new MailMessageItemForList. - * @alias module:model/MailMessageItemForList - * @implements module:model/MailMessageData - * @implements module:model/MailMessageItemForListAllOf - */ - constructor() { - MailMessageData.initialize(this);MailMessageItemForListAllOf.initialize(this); - MailMessageItemForList.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailMessageItemForList from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailMessageItemForList} obj Optional instance to populate. - * @return {module:model/MailMessageItemForList} The populated MailMessageItemForList instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailMessageItemForList(); - MailMessageData.constructFromObject(data, obj); - MailMessageItemForListAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('from')) { - obj['from'] = ApiClient.convertToType(data['from'], [MailParticipant]); - - delete data['from']; - } - if (data.hasOwnProperty('to')) { - obj['to'] = ApiClient.convertToType(data['to'], [MailParticipant]); - - delete data['to']; - } - if (data.hasOwnProperty('cc')) { - obj['cc'] = ApiClient.convertToType(data['cc'], [MailParticipant]); - - delete data['cc']; - } - if (data.hasOwnProperty('bcc')) { - obj['bcc'] = ApiClient.convertToType(data['bcc'], [MailParticipant]); - - delete data['bcc']; - } - if (data.hasOwnProperty('body_url')) { - obj['body_url'] = ApiClient.convertToType(data['body_url'], 'String'); - - delete data['body_url']; - } - if (data.hasOwnProperty('account_id')) { - obj['account_id'] = ApiClient.convertToType(data['account_id'], 'String'); - - delete data['account_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('mail_thread_id')) { - obj['mail_thread_id'] = ApiClient.convertToType(data['mail_thread_id'], 'Number'); - - delete data['mail_thread_id']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('snippet')) { - obj['snippet'] = ApiClient.convertToType(data['snippet'], 'String'); - - delete data['snippet']; - } - if (data.hasOwnProperty('mail_tracking_status')) { - obj['mail_tracking_status'] = ApiClient.convertToType(data['mail_tracking_status'], 'String'); - - delete data['mail_tracking_status']; - } - if (data.hasOwnProperty('mail_link_tracking_enabled_flag')) { - obj['mail_link_tracking_enabled_flag'] = ApiClient.convertToType(data['mail_link_tracking_enabled_flag'], NumberBooleanDefault0); - - delete data['mail_link_tracking_enabled_flag']; - } - if (data.hasOwnProperty('read_flag')) { - obj['read_flag'] = ApiClient.convertToType(data['read_flag'], NumberBooleanDefault0); - - delete data['read_flag']; - } - if (data.hasOwnProperty('draft')) { - obj['draft'] = ApiClient.convertToType(data['draft'], 'String'); - - delete data['draft']; - } - if (data.hasOwnProperty('draft_flag')) { - obj['draft_flag'] = ApiClient.convertToType(data['draft_flag'], NumberBooleanDefault0); - - delete data['draft_flag']; - } - if (data.hasOwnProperty('synced_flag')) { - obj['synced_flag'] = ApiClient.convertToType(data['synced_flag'], NumberBooleanDefault0); - - delete data['synced_flag']; - } - if (data.hasOwnProperty('deleted_flag')) { - obj['deleted_flag'] = ApiClient.convertToType(data['deleted_flag'], NumberBooleanDefault0); - - delete data['deleted_flag']; - } - if (data.hasOwnProperty('has_body_flag')) { - obj['has_body_flag'] = ApiClient.convertToType(data['has_body_flag'], NumberBooleanDefault0); - - delete data['has_body_flag']; - } - if (data.hasOwnProperty('sent_flag')) { - obj['sent_flag'] = ApiClient.convertToType(data['sent_flag'], NumberBooleanDefault0); - - delete data['sent_flag']; - } - if (data.hasOwnProperty('sent_from_pipedrive_flag')) { - obj['sent_from_pipedrive_flag'] = ApiClient.convertToType(data['sent_from_pipedrive_flag'], NumberBooleanDefault0); - - delete data['sent_from_pipedrive_flag']; - } - if (data.hasOwnProperty('smart_bcc_flag')) { - obj['smart_bcc_flag'] = ApiClient.convertToType(data['smart_bcc_flag'], NumberBooleanDefault0); - - delete data['smart_bcc_flag']; - } - if (data.hasOwnProperty('message_time')) { - obj['message_time'] = ApiClient.convertToType(data['message_time'], 'Date'); - - delete data['message_time']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - if (data.hasOwnProperty('has_attachments_flag')) { - obj['has_attachments_flag'] = ApiClient.convertToType(data['has_attachments_flag'], NumberBooleanDefault0); - - delete data['has_attachments_flag']; - } - if (data.hasOwnProperty('has_inline_attachments_flag')) { - obj['has_inline_attachments_flag'] = ApiClient.convertToType(data['has_inline_attachments_flag'], NumberBooleanDefault0); - - delete data['has_inline_attachments_flag']; - } - if (data.hasOwnProperty('has_real_attachments_flag')) { - obj['has_real_attachments_flag'] = ApiClient.convertToType(data['has_real_attachments_flag'], NumberBooleanDefault0); - - delete data['has_real_attachments_flag']; - } - if (data.hasOwnProperty('nylas_id')) { - obj['nylas_id'] = ApiClient.convertToType(data['nylas_id'], 'String'); - - delete data['nylas_id']; - } - if (data.hasOwnProperty('s3_bucket')) { - obj['s3_bucket'] = ApiClient.convertToType(data['s3_bucket'], 'String'); - - delete data['s3_bucket']; - } - if (data.hasOwnProperty('s3_bucket_path')) { - obj['s3_bucket_path'] = ApiClient.convertToType(data['s3_bucket_path'], 'String'); - - delete data['s3_bucket_path']; - } - if (data.hasOwnProperty('external_deleted_flag')) { - obj['external_deleted_flag'] = ApiClient.convertToType(data['external_deleted_flag'], 'Boolean'); - - delete data['external_deleted_flag']; - } - if (data.hasOwnProperty('mua_message_id')) { - obj['mua_message_id'] = ApiClient.convertToType(data['mua_message_id'], 'String'); - - delete data['mua_message_id']; - } - if (data.hasOwnProperty('template_id')) { - obj['template_id'] = ApiClient.convertToType(data['template_id'], 'Number'); - - delete data['template_id']; - } - if (data.hasOwnProperty('timestamp')) { - obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String'); - - delete data['timestamp']; - } - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = ApiClient.convertToType(data['item_type'], 'String'); - - delete data['item_type']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * ID of the mail message. - * @member {Number} id - */ -MailMessageItemForList.prototype['id'] = undefined; - -/** - * The array of mail message sender (object) - * @member {Array.} from - */ -MailMessageItemForList.prototype['from'] = undefined; - -/** - * The array of mail message receiver (object) - * @member {Array.} to - */ -MailMessageItemForList.prototype['to'] = undefined; - -/** - * The array of mail message copies (object) - * @member {Array.} cc - */ -MailMessageItemForList.prototype['cc'] = undefined; - -/** - * The array of mail message blind copies (object) - * @member {Array.} bcc - */ -MailMessageItemForList.prototype['bcc'] = undefined; - -/** - * The mail message body URL - * @member {String} body_url - */ -MailMessageItemForList.prototype['body_url'] = undefined; - -/** - * The connection account ID - * @member {String} account_id - */ -MailMessageItemForList.prototype['account_id'] = undefined; - -/** - * ID of the user whom mail message will be assigned to - * @member {Number} user_id - */ -MailMessageItemForList.prototype['user_id'] = undefined; - -/** - * ID of the mail message thread - * @member {Number} mail_thread_id - */ -MailMessageItemForList.prototype['mail_thread_id'] = undefined; - -/** - * The subject of mail message - * @member {String} subject - */ -MailMessageItemForList.prototype['subject'] = undefined; - -/** - * The snippet of mail message. Snippet length is up to 225 characters. - * @member {String} snippet - */ -MailMessageItemForList.prototype['snippet'] = undefined; - -/** - * The status of tracking mail message. Value is `null` if tracking is not enabled. - * @member {module:model/MailMessageItemForList.MailTrackingStatusEnum} mail_tracking_status - */ -MailMessageItemForList.prototype['mail_tracking_status'] = undefined; - -/** - * Whether the link tracking in mail message body is enabled. - * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag - */ -MailMessageItemForList.prototype['mail_link_tracking_enabled_flag'] = undefined; - -/** - * Whether the mail message is read or not by the user - * @member {module:model/NumberBooleanDefault0} read_flag - */ -MailMessageItemForList.prototype['read_flag'] = undefined; - -/** - * If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. - * @member {String} draft - */ -MailMessageItemForList.prototype['draft'] = undefined; - -/** - * Whether the mail message is a draft or not - * @member {module:model/NumberBooleanDefault0} draft_flag - */ -MailMessageItemForList.prototype['draft_flag'] = undefined; - -/** - * Whether the mail message is synced with the provider or not - * @member {module:model/NumberBooleanDefault0} synced_flag - */ -MailMessageItemForList.prototype['synced_flag'] = undefined; - -/** - * Whether the mail message is deleted or not - * @member {module:model/NumberBooleanDefault0} deleted_flag - */ -MailMessageItemForList.prototype['deleted_flag'] = undefined; - -/** - * Whether the mail message has a body or not - * @member {module:model/NumberBooleanDefault0} has_body_flag - */ -MailMessageItemForList.prototype['has_body_flag'] = undefined; - -/** - * Whether the mail message has been sent or not - * @member {module:model/NumberBooleanDefault0} sent_flag - */ -MailMessageItemForList.prototype['sent_flag'] = undefined; - -/** - * Whether the mail message has been sent from Pipedrive app or not - * @member {module:model/NumberBooleanDefault0} sent_from_pipedrive_flag - */ -MailMessageItemForList.prototype['sent_from_pipedrive_flag'] = undefined; - -/** - * Whether the mail message has been created by Smart Email BCC feature or not - * @member {module:model/NumberBooleanDefault0} smart_bcc_flag - */ -MailMessageItemForList.prototype['smart_bcc_flag'] = undefined; - -/** - * Creation or receival time of the mail message - * @member {Date} message_time - */ -MailMessageItemForList.prototype['message_time'] = undefined; - -/** - * The insertion into the database time of the mail message - * @member {Date} add_time - */ -MailMessageItemForList.prototype['add_time'] = undefined; - -/** - * The updating time in the database of the mail message - * @member {Date} update_time - */ -MailMessageItemForList.prototype['update_time'] = undefined; - -/** - * Whether the mail message has an attachment or not - * @member {module:model/NumberBooleanDefault0} has_attachments_flag - */ -MailMessageItemForList.prototype['has_attachments_flag'] = undefined; - -/** - * Whether the mail message has an inline attachment or not - * @member {module:model/NumberBooleanDefault0} has_inline_attachments_flag - */ -MailMessageItemForList.prototype['has_inline_attachments_flag'] = undefined; - -/** - * Whether the mail message has an attachment (which is not inline) or not - * @member {module:model/NumberBooleanDefault0} has_real_attachments_flag - */ -MailMessageItemForList.prototype['has_real_attachments_flag'] = undefined; - -/** - * The Mail Message ID assigned by the sync provider - * @member {String} nylas_id - */ -MailMessageItemForList.prototype['nylas_id'] = undefined; - -/** - * The name of the S3 bucket - * @member {String} s3_bucket - */ -MailMessageItemForList.prototype['s3_bucket'] = undefined; - -/** - * The path of the S3 bucket - * @member {String} s3_bucket_path - */ -MailMessageItemForList.prototype['s3_bucket_path'] = undefined; - -/** - * If the Mail Message has been deleted on the provider side or not - * @member {Boolean} external_deleted_flag - */ -MailMessageItemForList.prototype['external_deleted_flag'] = undefined; - -/** - * The Mail Message ID assigned by the mail user agent - * @member {String} mua_message_id - */ -MailMessageItemForList.prototype['mua_message_id'] = undefined; - -/** - * The ID of the mail template - * @member {Number} template_id - */ -MailMessageItemForList.prototype['template_id'] = undefined; - -/** - * The add date and time of the Mail Message - * @member {String} timestamp - */ -MailMessageItemForList.prototype['timestamp'] = undefined; - -/** - * The type of the data item - * @member {String} item_type - */ -MailMessageItemForList.prototype['item_type'] = undefined; - -/** - * The ID of the company - * @member {Number} company_id - */ -MailMessageItemForList.prototype['company_id'] = undefined; - - -// Implement MailMessageData interface: -/** - * ID of the mail message. - * @member {Number} id - */ -MailMessageData.prototype['id'] = undefined; -/** - * The array of mail message sender (object) - * @member {Array.} from - */ -MailMessageData.prototype['from'] = undefined; -/** - * The array of mail message receiver (object) - * @member {Array.} to - */ -MailMessageData.prototype['to'] = undefined; -/** - * The array of mail message copies (object) - * @member {Array.} cc - */ -MailMessageData.prototype['cc'] = undefined; -/** - * The array of mail message blind copies (object) - * @member {Array.} bcc - */ -MailMessageData.prototype['bcc'] = undefined; -/** - * The mail message body URL - * @member {String} body_url - */ -MailMessageData.prototype['body_url'] = undefined; -/** - * The connection account ID - * @member {String} account_id - */ -MailMessageData.prototype['account_id'] = undefined; -/** - * ID of the user whom mail message will be assigned to - * @member {Number} user_id - */ -MailMessageData.prototype['user_id'] = undefined; -/** - * ID of the mail message thread - * @member {Number} mail_thread_id - */ -MailMessageData.prototype['mail_thread_id'] = undefined; -/** - * The subject of mail message - * @member {String} subject - */ -MailMessageData.prototype['subject'] = undefined; -/** - * The snippet of mail message. Snippet length is up to 225 characters. - * @member {String} snippet - */ -MailMessageData.prototype['snippet'] = undefined; -/** - * The status of tracking mail message. Value is `null` if tracking is not enabled. - * @member {module:model/MailMessageData.MailTrackingStatusEnum} mail_tracking_status - */ -MailMessageData.prototype['mail_tracking_status'] = undefined; -/** - * Whether the link tracking in mail message body is enabled. - * @member {module:model/NumberBooleanDefault0} mail_link_tracking_enabled_flag - */ -MailMessageData.prototype['mail_link_tracking_enabled_flag'] = undefined; -/** - * Whether the mail message is read or not by the user - * @member {module:model/NumberBooleanDefault0} read_flag - */ -MailMessageData.prototype['read_flag'] = undefined; -/** - * If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. - * @member {String} draft - */ -MailMessageData.prototype['draft'] = undefined; -/** - * Whether the mail message is a draft or not - * @member {module:model/NumberBooleanDefault0} draft_flag - */ -MailMessageData.prototype['draft_flag'] = undefined; -/** - * Whether the mail message is synced with the provider or not - * @member {module:model/NumberBooleanDefault0} synced_flag - */ -MailMessageData.prototype['synced_flag'] = undefined; -/** - * Whether the mail message is deleted or not - * @member {module:model/NumberBooleanDefault0} deleted_flag - */ -MailMessageData.prototype['deleted_flag'] = undefined; -/** - * Whether the mail message has a body or not - * @member {module:model/NumberBooleanDefault0} has_body_flag - */ -MailMessageData.prototype['has_body_flag'] = undefined; -/** - * Whether the mail message has been sent or not - * @member {module:model/NumberBooleanDefault0} sent_flag - */ -MailMessageData.prototype['sent_flag'] = undefined; -/** - * Whether the mail message has been sent from Pipedrive app or not - * @member {module:model/NumberBooleanDefault0} sent_from_pipedrive_flag - */ -MailMessageData.prototype['sent_from_pipedrive_flag'] = undefined; -/** - * Whether the mail message has been created by Smart Email BCC feature or not - * @member {module:model/NumberBooleanDefault0} smart_bcc_flag - */ -MailMessageData.prototype['smart_bcc_flag'] = undefined; -/** - * Creation or receival time of the mail message - * @member {Date} message_time - */ -MailMessageData.prototype['message_time'] = undefined; -/** - * The insertion into the database time of the mail message - * @member {Date} add_time - */ -MailMessageData.prototype['add_time'] = undefined; -/** - * The updating time in the database of the mail message - * @member {Date} update_time - */ -MailMessageData.prototype['update_time'] = undefined; -/** - * Whether the mail message has an attachment or not - * @member {module:model/NumberBooleanDefault0} has_attachments_flag - */ -MailMessageData.prototype['has_attachments_flag'] = undefined; -/** - * Whether the mail message has an inline attachment or not - * @member {module:model/NumberBooleanDefault0} has_inline_attachments_flag - */ -MailMessageData.prototype['has_inline_attachments_flag'] = undefined; -/** - * Whether the mail message has an attachment (which is not inline) or not - * @member {module:model/NumberBooleanDefault0} has_real_attachments_flag - */ -MailMessageData.prototype['has_real_attachments_flag'] = undefined; -// Implement MailMessageItemForListAllOf interface: -/** - * The Mail Message ID assigned by the sync provider - * @member {String} nylas_id - */ -MailMessageItemForListAllOf.prototype['nylas_id'] = undefined; -/** - * The name of the S3 bucket - * @member {String} s3_bucket - */ -MailMessageItemForListAllOf.prototype['s3_bucket'] = undefined; -/** - * The path of the S3 bucket - * @member {String} s3_bucket_path - */ -MailMessageItemForListAllOf.prototype['s3_bucket_path'] = undefined; -/** - * If the Mail Message has been deleted on the provider side or not - * @member {Boolean} external_deleted_flag - */ -MailMessageItemForListAllOf.prototype['external_deleted_flag'] = undefined; -/** - * The Mail Message ID assigned by the mail user agent - * @member {String} mua_message_id - */ -MailMessageItemForListAllOf.prototype['mua_message_id'] = undefined; -/** - * The ID of the mail template - * @member {Number} template_id - */ -MailMessageItemForListAllOf.prototype['template_id'] = undefined; -/** - * The add date and time of the Mail Message - * @member {String} timestamp - */ -MailMessageItemForListAllOf.prototype['timestamp'] = undefined; -/** - * The type of the data item - * @member {String} item_type - */ -MailMessageItemForListAllOf.prototype['item_type'] = undefined; -/** - * The ID of the company - * @member {Number} company_id - */ -MailMessageItemForListAllOf.prototype['company_id'] = undefined; - - - -/** - * Allowed values for the mail_tracking_status property. - * @enum {String} - * @readonly - */ -MailMessageItemForList['MailTrackingStatusEnum'] = { - - /** - * value: "opened" - * @const - */ - "opened": "opened", - - /** - * value: "not opened" - * @const - */ - "not opened": "not opened" -}; - - - -export default MailMessageItemForList; - diff --git a/src/model/MailMessageItemForListAllOf.js b/src/model/MailMessageItemForListAllOf.js deleted file mode 100644 index 80f31919..00000000 --- a/src/model/MailMessageItemForListAllOf.js +++ /dev/null @@ -1,167 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MailMessageItemForListAllOf model module. - * @module model/MailMessageItemForListAllOf - * @version 1.0.0 - */ -class MailMessageItemForListAllOf { - /** - * Constructs a new MailMessageItemForListAllOf. - * @alias module:model/MailMessageItemForListAllOf - */ - constructor() { - - MailMessageItemForListAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailMessageItemForListAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailMessageItemForListAllOf} obj Optional instance to populate. - * @return {module:model/MailMessageItemForListAllOf} The populated MailMessageItemForListAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailMessageItemForListAllOf(); - - if (data.hasOwnProperty('nylas_id')) { - obj['nylas_id'] = ApiClient.convertToType(data['nylas_id'], 'String'); - - delete data['nylas_id']; - } - if (data.hasOwnProperty('s3_bucket')) { - obj['s3_bucket'] = ApiClient.convertToType(data['s3_bucket'], 'String'); - - delete data['s3_bucket']; - } - if (data.hasOwnProperty('s3_bucket_path')) { - obj['s3_bucket_path'] = ApiClient.convertToType(data['s3_bucket_path'], 'String'); - - delete data['s3_bucket_path']; - } - if (data.hasOwnProperty('external_deleted_flag')) { - obj['external_deleted_flag'] = ApiClient.convertToType(data['external_deleted_flag'], 'Boolean'); - - delete data['external_deleted_flag']; - } - if (data.hasOwnProperty('mua_message_id')) { - obj['mua_message_id'] = ApiClient.convertToType(data['mua_message_id'], 'String'); - - delete data['mua_message_id']; - } - if (data.hasOwnProperty('template_id')) { - obj['template_id'] = ApiClient.convertToType(data['template_id'], 'Number'); - - delete data['template_id']; - } - if (data.hasOwnProperty('timestamp')) { - obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String'); - - delete data['timestamp']; - } - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = ApiClient.convertToType(data['item_type'], 'String'); - - delete data['item_type']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The Mail Message ID assigned by the sync provider - * @member {String} nylas_id - */ -MailMessageItemForListAllOf.prototype['nylas_id'] = undefined; - -/** - * The name of the S3 bucket - * @member {String} s3_bucket - */ -MailMessageItemForListAllOf.prototype['s3_bucket'] = undefined; - -/** - * The path of the S3 bucket - * @member {String} s3_bucket_path - */ -MailMessageItemForListAllOf.prototype['s3_bucket_path'] = undefined; - -/** - * If the Mail Message has been deleted on the provider side or not - * @member {Boolean} external_deleted_flag - */ -MailMessageItemForListAllOf.prototype['external_deleted_flag'] = undefined; - -/** - * The Mail Message ID assigned by the mail user agent - * @member {String} mua_message_id - */ -MailMessageItemForListAllOf.prototype['mua_message_id'] = undefined; - -/** - * The ID of the mail template - * @member {Number} template_id - */ -MailMessageItemForListAllOf.prototype['template_id'] = undefined; - -/** - * The add date and time of the Mail Message - * @member {String} timestamp - */ -MailMessageItemForListAllOf.prototype['timestamp'] = undefined; - -/** - * The type of the data item - * @member {String} item_type - */ -MailMessageItemForListAllOf.prototype['item_type'] = undefined; - -/** - * The ID of the company - * @member {Number} company_id - */ -MailMessageItemForListAllOf.prototype['company_id'] = undefined; - - - - - - -export default MailMessageItemForListAllOf; - diff --git a/src/model/MailParticipant.js b/src/model/MailParticipant.js deleted file mode 100644 index 2f3054df..00000000 --- a/src/model/MailParticipant.js +++ /dev/null @@ -1,134 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MailParticipant model module. - * @module model/MailParticipant - * @version 1.0.0 - */ -class MailParticipant { - /** - * Constructs a new MailParticipant. - * @alias module:model/MailParticipant - */ - constructor() { - - MailParticipant.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailParticipant from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailParticipant} obj Optional instance to populate. - * @return {module:model/MailParticipant} The populated MailParticipant instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailParticipant(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('email_address')) { - obj['email_address'] = ApiClient.convertToType(data['email_address'], 'String'); - - delete data['email_address']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('linked_person_id')) { - obj['linked_person_id'] = ApiClient.convertToType(data['linked_person_id'], 'Number'); - - delete data['linked_person_id']; - } - if (data.hasOwnProperty('linked_person_name')) { - obj['linked_person_name'] = ApiClient.convertToType(data['linked_person_name'], 'String'); - - delete data['linked_person_name']; - } - if (data.hasOwnProperty('mail_message_party_id')) { - obj['mail_message_party_id'] = ApiClient.convertToType(data['mail_message_party_id'], 'Number'); - - delete data['mail_message_party_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * ID of the mail participant - * @member {Number} id - */ -MailParticipant.prototype['id'] = undefined; - -/** - * Mail address of the mail participant - * @member {String} email_address - */ -MailParticipant.prototype['email_address'] = undefined; - -/** - * Name of the mail participant - * @member {String} name - */ -MailParticipant.prototype['name'] = undefined; - -/** - * ID of the linked person to the mail message - * @member {Number} linked_person_id - */ -MailParticipant.prototype['linked_person_id'] = undefined; - -/** - * Name of the linked person to the mail message - * @member {String} linked_person_name - */ -MailParticipant.prototype['linked_person_name'] = undefined; - -/** - * ID of the mail message participant - * @member {Number} mail_message_party_id - */ -MailParticipant.prototype['mail_message_party_id'] = undefined; - - - - - - -export default MailParticipant; - diff --git a/src/model/MailServiceBaseResponse.js b/src/model/MailServiceBaseResponse.js deleted file mode 100644 index 3b9a35ec..00000000 --- a/src/model/MailServiceBaseResponse.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MailServiceBaseResponse model module. - * @module model/MailServiceBaseResponse - * @version 1.0.0 - */ -class MailServiceBaseResponse { - /** - * Constructs a new MailServiceBaseResponse. - * @alias module:model/MailServiceBaseResponse - */ - constructor() { - - MailServiceBaseResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailServiceBaseResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailServiceBaseResponse} obj Optional instance to populate. - * @return {module:model/MailServiceBaseResponse} The populated MailServiceBaseResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailServiceBaseResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('statusCode')) { - obj['statusCode'] = ApiClient.convertToType(data['statusCode'], 'Number'); - - delete data['statusCode']; - } - if (data.hasOwnProperty('statusText')) { - obj['statusText'] = ApiClient.convertToType(data['statusText'], 'String'); - - delete data['statusText']; - } - if (data.hasOwnProperty('service')) { - obj['service'] = ApiClient.convertToType(data['service'], 'String'); - - delete data['service']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -MailServiceBaseResponse.prototype['success'] = undefined; - -/** - * The email service specific status code and it is returned through the response body. - * @member {Number} statusCode - */ -MailServiceBaseResponse.prototype['statusCode'] = undefined; - -/** - * The status text of the response. - * @member {String} statusText - */ -MailServiceBaseResponse.prototype['statusText'] = undefined; - -/** - * The service name of the response. - * @member {String} service - */ -MailServiceBaseResponse.prototype['service'] = undefined; - - - - - - -export default MailServiceBaseResponse; - diff --git a/src/model/MailThread.js b/src/model/MailThread.js deleted file mode 100644 index 53bbfbef..00000000 --- a/src/model/MailThread.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseMailThread from './BaseMailThread'; -import BaseResponse from './BaseResponse'; -import MailThreadAllOf from './MailThreadAllOf'; - -/** - * The MailThread model module. - * @module model/MailThread - * @version 1.0.0 - */ -class MailThread { - /** - * Constructs a new MailThread. - * @alias module:model/MailThread - * @implements module:model/BaseResponse - * @implements module:model/MailThreadAllOf - */ - constructor() { - BaseResponse.initialize(this);MailThreadAllOf.initialize(this); - MailThread.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThread from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThread} obj Optional instance to populate. - * @return {module:model/MailThread} The populated MailThread instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThread(); - BaseResponse.constructFromObject(data, obj); - MailThreadAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseMailThread]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -MailThread.prototype['success'] = undefined; - -/** - * The array of mail threads - * @member {Array.} data - */ -MailThread.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement MailThreadAllOf interface: -/** - * The array of mail threads - * @member {Array.} data - */ -MailThreadAllOf.prototype['data'] = undefined; - - - - -export default MailThread; - diff --git a/src/model/MailThreadAllOf.js b/src/model/MailThreadAllOf.js deleted file mode 100644 index 31d1d7f3..00000000 --- a/src/model/MailThreadAllOf.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseMailThread from './BaseMailThread'; - -/** - * The MailThreadAllOf model module. - * @module model/MailThreadAllOf - * @version 1.0.0 - */ -class MailThreadAllOf { - /** - * Constructs a new MailThreadAllOf. - * @alias module:model/MailThreadAllOf - */ - constructor() { - - MailThreadAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThreadAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThreadAllOf} obj Optional instance to populate. - * @return {module:model/MailThreadAllOf} The populated MailThreadAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThreadAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseMailThread]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of mail threads - * @member {Array.} data - */ -MailThreadAllOf.prototype['data'] = undefined; - - - - - - -export default MailThreadAllOf; - diff --git a/src/model/MailThreadDelete.js b/src/model/MailThreadDelete.js deleted file mode 100644 index 58d21f73..00000000 --- a/src/model/MailThreadDelete.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import MailThreadDeleteAllOf from './MailThreadDeleteAllOf'; -import MailThreadDeleteAllOfData from './MailThreadDeleteAllOfData'; - -/** - * The MailThreadDelete model module. - * @module model/MailThreadDelete - * @version 1.0.0 - */ -class MailThreadDelete { - /** - * Constructs a new MailThreadDelete. - * @alias module:model/MailThreadDelete - * @implements module:model/BaseResponse - * @implements module:model/MailThreadDeleteAllOf - */ - constructor() { - BaseResponse.initialize(this);MailThreadDeleteAllOf.initialize(this); - MailThreadDelete.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThreadDelete from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThreadDelete} obj Optional instance to populate. - * @return {module:model/MailThreadDelete} The populated MailThreadDelete instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThreadDelete(); - BaseResponse.constructFromObject(data, obj); - MailThreadDeleteAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = MailThreadDeleteAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -MailThreadDelete.prototype['success'] = undefined; - -/** - * @member {module:model/MailThreadDeleteAllOfData} data - */ -MailThreadDelete.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement MailThreadDeleteAllOf interface: -/** - * @member {module:model/MailThreadDeleteAllOfData} data - */ -MailThreadDeleteAllOf.prototype['data'] = undefined; - - - - -export default MailThreadDelete; - diff --git a/src/model/MailThreadDeleteAllOf.js b/src/model/MailThreadDeleteAllOf.js deleted file mode 100644 index 0f83415e..00000000 --- a/src/model/MailThreadDeleteAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MailThreadDeleteAllOfData from './MailThreadDeleteAllOfData'; - -/** - * The MailThreadDeleteAllOf model module. - * @module model/MailThreadDeleteAllOf - * @version 1.0.0 - */ -class MailThreadDeleteAllOf { - /** - * Constructs a new MailThreadDeleteAllOf. - * @alias module:model/MailThreadDeleteAllOf - */ - constructor() { - - MailThreadDeleteAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThreadDeleteAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThreadDeleteAllOf} obj Optional instance to populate. - * @return {module:model/MailThreadDeleteAllOf} The populated MailThreadDeleteAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThreadDeleteAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = MailThreadDeleteAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/MailThreadDeleteAllOfData} data - */ -MailThreadDeleteAllOf.prototype['data'] = undefined; - - - - - - -export default MailThreadDeleteAllOf; - diff --git a/src/model/MailThreadDeleteAllOfData.js b/src/model/MailThreadDeleteAllOfData.js deleted file mode 100644 index 9eb248d6..00000000 --- a/src/model/MailThreadDeleteAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MailThreadDeleteAllOfData model module. - * @module model/MailThreadDeleteAllOfData - * @version 1.0.0 - */ -class MailThreadDeleteAllOfData { - /** - * Constructs a new MailThreadDeleteAllOfData. - * @alias module:model/MailThreadDeleteAllOfData - */ - constructor() { - - MailThreadDeleteAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThreadDeleteAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThreadDeleteAllOfData} obj Optional instance to populate. - * @return {module:model/MailThreadDeleteAllOfData} The populated MailThreadDeleteAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThreadDeleteAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deleted mail thread - * @member {Number} id - */ -MailThreadDeleteAllOfData.prototype['id'] = undefined; - - - - - - -export default MailThreadDeleteAllOfData; - diff --git a/src/model/MailThreadMessages.js b/src/model/MailThreadMessages.js deleted file mode 100644 index 0e7668d1..00000000 --- a/src/model/MailThreadMessages.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseMailThreadMessages from './BaseMailThreadMessages'; -import BaseResponse from './BaseResponse'; -import MailThreadMessagesAllOf from './MailThreadMessagesAllOf'; - -/** - * The MailThreadMessages model module. - * @module model/MailThreadMessages - * @version 1.0.0 - */ -class MailThreadMessages { - /** - * Constructs a new MailThreadMessages. - * @alias module:model/MailThreadMessages - * @implements module:model/BaseResponse - * @implements module:model/MailThreadMessagesAllOf - */ - constructor() { - BaseResponse.initialize(this);MailThreadMessagesAllOf.initialize(this); - MailThreadMessages.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThreadMessages from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThreadMessages} obj Optional instance to populate. - * @return {module:model/MailThreadMessages} The populated MailThreadMessages instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThreadMessages(); - BaseResponse.constructFromObject(data, obj); - MailThreadMessagesAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseMailThreadMessages]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -MailThreadMessages.prototype['success'] = undefined; - -/** - * The array of the mail messages of the mail thread - * @member {Array.} data - */ -MailThreadMessages.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement MailThreadMessagesAllOf interface: -/** - * The array of the mail messages of the mail thread - * @member {Array.} data - */ -MailThreadMessagesAllOf.prototype['data'] = undefined; - - - - -export default MailThreadMessages; - diff --git a/src/model/MailThreadMessagesAllOf.js b/src/model/MailThreadMessagesAllOf.js deleted file mode 100644 index ab07f7e7..00000000 --- a/src/model/MailThreadMessagesAllOf.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseMailThreadMessages from './BaseMailThreadMessages'; - -/** - * The MailThreadMessagesAllOf model module. - * @module model/MailThreadMessagesAllOf - * @version 1.0.0 - */ -class MailThreadMessagesAllOf { - /** - * Constructs a new MailThreadMessagesAllOf. - * @alias module:model/MailThreadMessagesAllOf - */ - constructor() { - - MailThreadMessagesAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThreadMessagesAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThreadMessagesAllOf} obj Optional instance to populate. - * @return {module:model/MailThreadMessagesAllOf} The populated MailThreadMessagesAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThreadMessagesAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseMailThreadMessages]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of the mail messages of the mail thread - * @member {Array.} data - */ -MailThreadMessagesAllOf.prototype['data'] = undefined; - - - - - - -export default MailThreadMessagesAllOf; - diff --git a/src/model/MailThreadOne.js b/src/model/MailThreadOne.js deleted file mode 100644 index f2932945..00000000 --- a/src/model/MailThreadOne.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseMailThread from './BaseMailThread'; -import BaseResponse from './BaseResponse'; -import MailThreadOneAllOf from './MailThreadOneAllOf'; - -/** - * The MailThreadOne model module. - * @module model/MailThreadOne - * @version 1.0.0 - */ -class MailThreadOne { - /** - * Constructs a new MailThreadOne. - * @alias module:model/MailThreadOne - * @implements module:model/BaseResponse - * @implements module:model/MailThreadOneAllOf - */ - constructor() { - BaseResponse.initialize(this);MailThreadOneAllOf.initialize(this); - MailThreadOne.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThreadOne from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThreadOne} obj Optional instance to populate. - * @return {module:model/MailThreadOne} The populated MailThreadOne instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThreadOne(); - BaseResponse.constructFromObject(data, obj); - MailThreadOneAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], BaseMailThread); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -MailThreadOne.prototype['success'] = undefined; - -/** - * The mail thread object - * @member {module:model/BaseMailThread} data - */ -MailThreadOne.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement MailThreadOneAllOf interface: -/** - * The mail thread object - * @member {module:model/BaseMailThread} data - */ -MailThreadOneAllOf.prototype['data'] = undefined; - - - - -export default MailThreadOne; - diff --git a/src/model/MailThreadOneAllOf.js b/src/model/MailThreadOneAllOf.js deleted file mode 100644 index 59c4b70e..00000000 --- a/src/model/MailThreadOneAllOf.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseMailThread from './BaseMailThread'; - -/** - * The MailThreadOneAllOf model module. - * @module model/MailThreadOneAllOf - * @version 1.0.0 - */ -class MailThreadOneAllOf { - /** - * Constructs a new MailThreadOneAllOf. - * @alias module:model/MailThreadOneAllOf - */ - constructor() { - - MailThreadOneAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThreadOneAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThreadOneAllOf} obj Optional instance to populate. - * @return {module:model/MailThreadOneAllOf} The populated MailThreadOneAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThreadOneAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], BaseMailThread); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The mail thread object - * @member {module:model/BaseMailThread} data - */ -MailThreadOneAllOf.prototype['data'] = undefined; - - - - - - -export default MailThreadOneAllOf; - diff --git a/src/model/MailThreadParticipant.js b/src/model/MailThreadParticipant.js deleted file mode 100644 index 19389a5e..00000000 --- a/src/model/MailThreadParticipant.js +++ /dev/null @@ -1,168 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MailThreadParticipant model module. - * @module model/MailThreadParticipant - * @version 1.0.0 - */ -class MailThreadParticipant { - /** - * Constructs a new MailThreadParticipant. - * Member of a thread - * @alias module:model/MailThreadParticipant - */ - constructor() { - - MailThreadParticipant.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThreadParticipant from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThreadParticipant} obj Optional instance to populate. - * @return {module:model/MailThreadParticipant} The populated MailThreadParticipant instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThreadParticipant(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('latest_sent')) { - obj['latest_sent'] = ApiClient.convertToType(data['latest_sent'], 'Boolean'); - - delete data['latest_sent']; - } - if (data.hasOwnProperty('email_address')) { - obj['email_address'] = ApiClient.convertToType(data['email_address'], 'String'); - - delete data['email_address']; - } - if (data.hasOwnProperty('message_time')) { - obj['message_time'] = ApiClient.convertToType(data['message_time'], 'Number'); - - delete data['message_time']; - } - if (data.hasOwnProperty('linked_person_id')) { - obj['linked_person_id'] = ApiClient.convertToType(data['linked_person_id'], 'Number'); - - delete data['linked_person_id']; - } - if (data.hasOwnProperty('linked_person_name')) { - obj['linked_person_name'] = ApiClient.convertToType(data['linked_person_name'], 'String'); - - delete data['linked_person_name']; - } - if (data.hasOwnProperty('mail_message_party_id')) { - obj['mail_message_party_id'] = ApiClient.convertToType(data['mail_message_party_id'], 'Number'); - - delete data['mail_message_party_id']; - } - if (data.hasOwnProperty('linked_organization_id')) { - obj['linked_organization_id'] = ApiClient.convertToType(data['linked_organization_id'], 'Number'); - - delete data['linked_organization_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * ID of the mail thread participant - * @member {Number} id - */ -MailThreadParticipant.prototype['id'] = undefined; - -/** - * Name of the mail thread participant - * @member {String} name - */ -MailThreadParticipant.prototype['name'] = undefined; - -/** - * Whether the mail thread participant was last to send an email - * @member {Boolean} latest_sent - */ -MailThreadParticipant.prototype['latest_sent'] = undefined; - -/** - * Email address of the mail thread participant - * @member {String} email_address - */ -MailThreadParticipant.prototype['email_address'] = undefined; - -/** - * Message time - * @member {Number} message_time - */ -MailThreadParticipant.prototype['message_time'] = undefined; - -/** - * ID of the linked person - * @member {Number} linked_person_id - */ -MailThreadParticipant.prototype['linked_person_id'] = undefined; - -/** - * Email of the linked person - * @member {String} linked_person_name - */ -MailThreadParticipant.prototype['linked_person_name'] = undefined; - -/** - * ID of the mail message party - * @member {Number} mail_message_party_id - */ -MailThreadParticipant.prototype['mail_message_party_id'] = undefined; - -/** - * Linked Organization ID - * @member {Number} linked_organization_id - */ -MailThreadParticipant.prototype['linked_organization_id'] = undefined; - - - - - - -export default MailThreadParticipant; - diff --git a/src/model/MailThreadPut.js b/src/model/MailThreadPut.js deleted file mode 100644 index b15d4692..00000000 --- a/src/model/MailThreadPut.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseMailThread from './BaseMailThread'; -import BaseResponse from './BaseResponse'; -import MailThreadPutAllOf from './MailThreadPutAllOf'; - -/** - * The MailThreadPut model module. - * @module model/MailThreadPut - * @version 1.0.0 - */ -class MailThreadPut { - /** - * Constructs a new MailThreadPut. - * @alias module:model/MailThreadPut - * @implements module:model/BaseResponse - * @implements module:model/MailThreadPutAllOf - */ - constructor() { - BaseResponse.initialize(this);MailThreadPutAllOf.initialize(this); - MailThreadPut.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThreadPut from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThreadPut} obj Optional instance to populate. - * @return {module:model/MailThreadPut} The populated MailThreadPut instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThreadPut(); - BaseResponse.constructFromObject(data, obj); - MailThreadPutAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseMailThread.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -MailThreadPut.prototype['success'] = undefined; - -/** - * @member {module:model/BaseMailThread} data - */ -MailThreadPut.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement MailThreadPutAllOf interface: -/** - * @member {module:model/BaseMailThread} data - */ -MailThreadPutAllOf.prototype['data'] = undefined; - - - - -export default MailThreadPut; - diff --git a/src/model/MailThreadPutAllOf.js b/src/model/MailThreadPutAllOf.js deleted file mode 100644 index f9a97974..00000000 --- a/src/model/MailThreadPutAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseMailThread from './BaseMailThread'; - -/** - * The MailThreadPutAllOf model module. - * @module model/MailThreadPutAllOf - * @version 1.0.0 - */ -class MailThreadPutAllOf { - /** - * Constructs a new MailThreadPutAllOf. - * @alias module:model/MailThreadPutAllOf - */ - constructor() { - - MailThreadPutAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MailThreadPutAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MailThreadPutAllOf} obj Optional instance to populate. - * @return {module:model/MailThreadPutAllOf} The populated MailThreadPutAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MailThreadPutAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = BaseMailThread.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BaseMailThread} data - */ -MailThreadPutAllOf.prototype['data'] = undefined; - - - - - - -export default MailThreadPutAllOf; - diff --git a/src/model/MarketingStatus.js b/src/model/MarketingStatus.js deleted file mode 100644 index 7f79cc45..00000000 --- a/src/model/MarketingStatus.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class MarketingStatus. -* @enum {} -* @readonly -*/ -export default class MarketingStatus { - - /** - * value: "no_consent" - * @const - */ - "no_consent" = "no_consent"; - - - /** - * value: "unsubscribed" - * @const - */ - "unsubscribed" = "unsubscribed"; - - - /** - * value: "subscribed" - * @const - */ - "subscribed" = "subscribed"; - - - /** - * value: "archived" - * @const - */ - "archived" = "archived"; - - - - /** - * Returns a MarketingStatus enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/MarketingStatus} The enum MarketingStatus value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/MergeDealsRequest.js b/src/model/MergeDealsRequest.js deleted file mode 100644 index f0457799..00000000 --- a/src/model/MergeDealsRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MergeDealsRequest model module. - * @module model/MergeDealsRequest - * @version 1.0.0 - */ -class MergeDealsRequest { - /** - * Constructs a new MergeDealsRequest. - * @alias module:model/MergeDealsRequest - * @param mergeWithId {Number} The ID of the deal that the deal will be merged with - */ - constructor(mergeWithId) { - - MergeDealsRequest.initialize(this, mergeWithId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, mergeWithId) { - obj['merge_with_id'] = mergeWithId; - } - - /** - * Constructs a MergeDealsRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MergeDealsRequest} obj Optional instance to populate. - * @return {module:model/MergeDealsRequest} The populated MergeDealsRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MergeDealsRequest(); - - if (data.hasOwnProperty('merge_with_id')) { - obj['merge_with_id'] = ApiClient.convertToType(data['merge_with_id'], 'Number'); - - delete data['merge_with_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal that the deal will be merged with - * @member {Number} merge_with_id - */ -MergeDealsRequest.prototype['merge_with_id'] = undefined; - - - - - - -export default MergeDealsRequest; - diff --git a/src/model/MergeOrganizationsRequest.js b/src/model/MergeOrganizationsRequest.js deleted file mode 100644 index 26400f6f..00000000 --- a/src/model/MergeOrganizationsRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MergeOrganizationsRequest model module. - * @module model/MergeOrganizationsRequest - * @version 1.0.0 - */ -class MergeOrganizationsRequest { - /** - * Constructs a new MergeOrganizationsRequest. - * @alias module:model/MergeOrganizationsRequest - * @param mergeWithId {Number} The ID of the organization that the organization will be merged with - */ - constructor(mergeWithId) { - - MergeOrganizationsRequest.initialize(this, mergeWithId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, mergeWithId) { - obj['merge_with_id'] = mergeWithId; - } - - /** - * Constructs a MergeOrganizationsRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MergeOrganizationsRequest} obj Optional instance to populate. - * @return {module:model/MergeOrganizationsRequest} The populated MergeOrganizationsRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MergeOrganizationsRequest(); - - if (data.hasOwnProperty('merge_with_id')) { - obj['merge_with_id'] = ApiClient.convertToType(data['merge_with_id'], 'Number'); - - delete data['merge_with_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization that the organization will be merged with - * @member {Number} merge_with_id - */ -MergeOrganizationsRequest.prototype['merge_with_id'] = undefined; - - - - - - -export default MergeOrganizationsRequest; - diff --git a/src/model/MergePersonDealRelatedInfo.js b/src/model/MergePersonDealRelatedInfo.js deleted file mode 100644 index 04411ab1..00000000 --- a/src/model/MergePersonDealRelatedInfo.js +++ /dev/null @@ -1,316 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealCountAndActivityInfo from './DealCountAndActivityInfo'; -import DealParticipantCountInfo from './DealParticipantCountInfo'; - -/** - * The MergePersonDealRelatedInfo model module. - * @module model/MergePersonDealRelatedInfo - * @version 1.0.0 - */ -class MergePersonDealRelatedInfo { - /** - * Constructs a new MergePersonDealRelatedInfo. - * @alias module:model/MergePersonDealRelatedInfo - * @implements module:model/DealCountAndActivityInfo - * @implements module:model/DealParticipantCountInfo - */ - constructor() { - DealCountAndActivityInfo.initialize(this);DealParticipantCountInfo.initialize(this); - MergePersonDealRelatedInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MergePersonDealRelatedInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MergePersonDealRelatedInfo} obj Optional instance to populate. - * @return {module:model/MergePersonDealRelatedInfo} The populated MergePersonDealRelatedInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MergePersonDealRelatedInfo(); - DealCountAndActivityInfo.constructFromObject(data, obj); - DealParticipantCountInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - if (data.hasOwnProperty('participant_open_deals_count')) { - obj['participant_open_deals_count'] = ApiClient.convertToType(data['participant_open_deals_count'], 'Number'); - - delete data['participant_open_deals_count']; - } - if (data.hasOwnProperty('participant_closed_deals_count')) { - obj['participant_closed_deals_count'] = ApiClient.convertToType(data['participant_closed_deals_count'], 'Number'); - - delete data['participant_closed_deals_count']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -MergePersonDealRelatedInfo.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -MergePersonDealRelatedInfo.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -MergePersonDealRelatedInfo.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -MergePersonDealRelatedInfo.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -MergePersonDealRelatedInfo.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -MergePersonDealRelatedInfo.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -MergePersonDealRelatedInfo.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -MergePersonDealRelatedInfo.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -MergePersonDealRelatedInfo.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -MergePersonDealRelatedInfo.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -MergePersonDealRelatedInfo.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -MergePersonDealRelatedInfo.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -MergePersonDealRelatedInfo.prototype['last_activity_date'] = undefined; - -/** - * The count of open participant deals related with the item - * @member {Number} participant_open_deals_count - */ -MergePersonDealRelatedInfo.prototype['participant_open_deals_count'] = undefined; - -/** - * The count of closed participant deals related with the item - * @member {Number} participant_closed_deals_count - */ -MergePersonDealRelatedInfo.prototype['participant_closed_deals_count'] = undefined; - - -// Implement DealCountAndActivityInfo interface: -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -DealCountAndActivityInfo.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -DealCountAndActivityInfo.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -DealCountAndActivityInfo.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -DealCountAndActivityInfo.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -DealCountAndActivityInfo.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -DealCountAndActivityInfo.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -DealCountAndActivityInfo.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -DealCountAndActivityInfo.prototype['related_lost_deals_count'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -DealCountAndActivityInfo.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -DealCountAndActivityInfo.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -DealCountAndActivityInfo.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -DealCountAndActivityInfo.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -DealCountAndActivityInfo.prototype['last_activity_date'] = undefined; -// Implement DealParticipantCountInfo interface: -/** - * The count of open participant deals related with the item - * @member {Number} participant_open_deals_count - */ -DealParticipantCountInfo.prototype['participant_open_deals_count'] = undefined; -/** - * The count of closed participant deals related with the item - * @member {Number} participant_closed_deals_count - */ -DealParticipantCountInfo.prototype['participant_closed_deals_count'] = undefined; - - - - -export default MergePersonDealRelatedInfo; - diff --git a/src/model/MergePersonItem.js b/src/model/MergePersonItem.js deleted file mode 100644 index 648ed324..00000000 --- a/src/model/MergePersonItem.js +++ /dev/null @@ -1,797 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalMergePersonInfo from './AdditionalMergePersonInfo'; -import BasePersonItem from './BasePersonItem'; -import BasePersonItemEmail from './BasePersonItemEmail'; -import BasePersonItemPhone from './BasePersonItemPhone'; -import PictureDataWithID from './PictureDataWithID'; - -/** - * The MergePersonItem model module. - * @module model/MergePersonItem - * @version 1.0.0 - */ -class MergePersonItem { - /** - * Constructs a new MergePersonItem. - * @alias module:model/MergePersonItem - * @implements module:model/BasePersonItem - * @implements module:model/AdditionalMergePersonInfo - */ - constructor() { - BasePersonItem.initialize(this);AdditionalMergePersonInfo.initialize(this); - MergePersonItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MergePersonItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MergePersonItem} obj Optional instance to populate. - * @return {module:model/MergePersonItem} The populated MergePersonItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MergePersonItem(); - BasePersonItem.constructFromObject(data, obj); - AdditionalMergePersonInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], [BasePersonItemPhone]); - - delete data['phone']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], [BasePersonItemEmail]); - - delete data['email']; - } - if (data.hasOwnProperty('first_char')) { - obj['first_char'] = ApiClient.convertToType(data['first_char'], 'String'); - - delete data['first_char']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('picture_id')) { - obj['picture_id'] = PictureDataWithID.constructFromObject(data['picture_id']); - - delete data['picture_id']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('merge_what_id')) { - obj['merge_what_id'] = ApiClient.convertToType(data['merge_what_id'], 'Number'); - - delete data['merge_what_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String'); - - delete data['first_name']; - } - if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String'); - - delete data['last_name']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - if (data.hasOwnProperty('participant_open_deals_count')) { - obj['participant_open_deals_count'] = ApiClient.convertToType(data['participant_open_deals_count'], 'Number'); - - delete data['participant_open_deals_count']; - } - if (data.hasOwnProperty('participant_closed_deals_count')) { - obj['participant_closed_deals_count'] = ApiClient.convertToType(data['participant_closed_deals_count'], 'Number'); - - delete data['participant_closed_deals_count']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person - * @member {Number} id - */ -MergePersonItem.prototype['id'] = undefined; - -/** - * The ID of the company related to the person - * @member {Number} company_id - */ -MergePersonItem.prototype['company_id'] = undefined; - -/** - * Whether the person is active or not - * @member {Boolean} active_flag - */ -MergePersonItem.prototype['active_flag'] = undefined; - -/** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @member {Array.} phone - */ -MergePersonItem.prototype['phone'] = undefined; - -/** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" } ]`. Please note that only `value` is required. - * @member {Array.} email - */ -MergePersonItem.prototype['email'] = undefined; - -/** - * The first letter of the name of the person - * @member {String} first_char - */ -MergePersonItem.prototype['first_char'] = undefined; - -/** - * The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -MergePersonItem.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -MergePersonItem.prototype['update_time'] = undefined; - -/** - * The visibility group ID of who can see the person - * @member {String} visible_to - */ -MergePersonItem.prototype['visible_to'] = undefined; - -/** - * @member {module:model/PictureDataWithID} picture_id - */ -MergePersonItem.prototype['picture_id'] = undefined; - -/** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -MergePersonItem.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -MergePersonItem.prototype['label_ids'] = undefined; - -/** - * The name of the organization associated with the person - * @member {String} org_name - */ -MergePersonItem.prototype['org_name'] = undefined; - -/** - * The name of the owner associated with the person - * @member {String} owner_name - */ -MergePersonItem.prototype['owner_name'] = undefined; - -/** - * The BCC email associated with the person - * @member {String} cc_email - */ -MergePersonItem.prototype['cc_email'] = undefined; - -/** - * The ID of the owner related to the person - * @member {Number} owner_id - */ -MergePersonItem.prototype['owner_id'] = undefined; - -/** - * The ID of the organization related to the person - * @member {Number} org_id - */ -MergePersonItem.prototype['org_id'] = undefined; - -/** - * The ID of the person with what the main person was merged - * @member {Number} merge_what_id - */ -MergePersonItem.prototype['merge_what_id'] = undefined; - -/** - * The name of the person - * @member {String} name - */ -MergePersonItem.prototype['name'] = undefined; - -/** - * The first name of the person - * @member {String} first_name - */ -MergePersonItem.prototype['first_name'] = undefined; - -/** - * The last name of the person - * @member {String} last_name - */ -MergePersonItem.prototype['last_name'] = undefined; - -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -MergePersonItem.prototype['email_messages_count'] = undefined; - -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -MergePersonItem.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -MergePersonItem.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -MergePersonItem.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the person - * @member {Number} files_count - */ -MergePersonItem.prototype['files_count'] = undefined; - -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -MergePersonItem.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -MergePersonItem.prototype['followers_count'] = undefined; - -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -MergePersonItem.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -MergePersonItem.prototype['last_outgoing_mail_time'] = undefined; - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -MergePersonItem.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -MergePersonItem.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -MergePersonItem.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -MergePersonItem.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -MergePersonItem.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -MergePersonItem.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -MergePersonItem.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -MergePersonItem.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -MergePersonItem.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -MergePersonItem.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -MergePersonItem.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -MergePersonItem.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -MergePersonItem.prototype['last_activity_date'] = undefined; - -/** - * The count of open participant deals related with the item - * @member {Number} participant_open_deals_count - */ -MergePersonItem.prototype['participant_open_deals_count'] = undefined; - -/** - * The count of closed participant deals related with the item - * @member {Number} participant_closed_deals_count - */ -MergePersonItem.prototype['participant_closed_deals_count'] = undefined; - - -// Implement BasePersonItem interface: -/** - * The ID of the person - * @member {Number} id - */ -BasePersonItem.prototype['id'] = undefined; -/** - * The ID of the company related to the person - * @member {Number} company_id - */ -BasePersonItem.prototype['company_id'] = undefined; -/** - * Whether the person is active or not - * @member {Boolean} active_flag - */ -BasePersonItem.prototype['active_flag'] = undefined; -/** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @member {Array.} phone - */ -BasePersonItem.prototype['phone'] = undefined; -/** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" } ]`. Please note that only `value` is required. - * @member {Array.} email - */ -BasePersonItem.prototype['email'] = undefined; -/** - * The first letter of the name of the person - * @member {String} first_char - */ -BasePersonItem.prototype['first_char'] = undefined; -/** - * The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -BasePersonItem.prototype['add_time'] = undefined; -/** - * The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -BasePersonItem.prototype['update_time'] = undefined; -/** - * The visibility group ID of who can see the person - * @member {String} visible_to - */ -BasePersonItem.prototype['visible_to'] = undefined; -/** - * @member {module:model/PictureDataWithID} picture_id - */ -BasePersonItem.prototype['picture_id'] = undefined; -/** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BasePersonItem.prototype['label'] = undefined; -/** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BasePersonItem.prototype['label_ids'] = undefined; -/** - * The name of the organization associated with the person - * @member {String} org_name - */ -BasePersonItem.prototype['org_name'] = undefined; -/** - * The name of the owner associated with the person - * @member {String} owner_name - */ -BasePersonItem.prototype['owner_name'] = undefined; -/** - * The BCC email associated with the person - * @member {String} cc_email - */ -BasePersonItem.prototype['cc_email'] = undefined; -// Implement AdditionalMergePersonInfo interface: -/** - * The ID of the owner related to the person - * @member {Number} owner_id - */ -AdditionalMergePersonInfo.prototype['owner_id'] = undefined; -/** - * The ID of the organization related to the person - * @member {Number} org_id - */ -AdditionalMergePersonInfo.prototype['org_id'] = undefined; -/** - * The ID of the person with what the main person was merged - * @member {Number} merge_what_id - */ -AdditionalMergePersonInfo.prototype['merge_what_id'] = undefined; -/** - * The name of the person - * @member {String} name - */ -AdditionalMergePersonInfo.prototype['name'] = undefined; -/** - * The first name of the person - * @member {String} first_name - */ -AdditionalMergePersonInfo.prototype['first_name'] = undefined; -/** - * The last name of the person - * @member {String} last_name - */ -AdditionalMergePersonInfo.prototype['last_name'] = undefined; -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -AdditionalMergePersonInfo.prototype['email_messages_count'] = undefined; -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -AdditionalMergePersonInfo.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -AdditionalMergePersonInfo.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -AdditionalMergePersonInfo.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the person - * @member {Number} files_count - */ -AdditionalMergePersonInfo.prototype['files_count'] = undefined; -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -AdditionalMergePersonInfo.prototype['notes_count'] = undefined; -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -AdditionalMergePersonInfo.prototype['followers_count'] = undefined; -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -AdditionalMergePersonInfo.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -AdditionalMergePersonInfo.prototype['last_outgoing_mail_time'] = undefined; -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -AdditionalMergePersonInfo.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -AdditionalMergePersonInfo.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -AdditionalMergePersonInfo.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -AdditionalMergePersonInfo.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -AdditionalMergePersonInfo.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -AdditionalMergePersonInfo.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -AdditionalMergePersonInfo.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -AdditionalMergePersonInfo.prototype['related_lost_deals_count'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -AdditionalMergePersonInfo.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -AdditionalMergePersonInfo.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -AdditionalMergePersonInfo.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -AdditionalMergePersonInfo.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -AdditionalMergePersonInfo.prototype['last_activity_date'] = undefined; -/** - * The count of open participant deals related with the item - * @member {Number} participant_open_deals_count - */ -AdditionalMergePersonInfo.prototype['participant_open_deals_count'] = undefined; -/** - * The count of closed participant deals related with the item - * @member {Number} participant_closed_deals_count - */ -AdditionalMergePersonInfo.prototype['participant_closed_deals_count'] = undefined; - - - - -export default MergePersonItem; - diff --git a/src/model/MergePersonsRequest.js b/src/model/MergePersonsRequest.js deleted file mode 100644 index 8212b569..00000000 --- a/src/model/MergePersonsRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MergePersonsRequest model module. - * @module model/MergePersonsRequest - * @version 1.0.0 - */ -class MergePersonsRequest { - /** - * Constructs a new MergePersonsRequest. - * @alias module:model/MergePersonsRequest - * @param mergeWithId {Number} The ID of the person that will not be overwritten. This person’s data will be prioritized in case of conflict with the other person. - */ - constructor(mergeWithId) { - - MergePersonsRequest.initialize(this, mergeWithId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, mergeWithId) { - obj['merge_with_id'] = mergeWithId; - } - - /** - * Constructs a MergePersonsRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MergePersonsRequest} obj Optional instance to populate. - * @return {module:model/MergePersonsRequest} The populated MergePersonsRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MergePersonsRequest(); - - if (data.hasOwnProperty('merge_with_id')) { - obj['merge_with_id'] = ApiClient.convertToType(data['merge_with_id'], 'Number'); - - delete data['merge_with_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person that will not be overwritten. This person’s data will be prioritized in case of conflict with the other person. - * @member {Number} merge_with_id - */ -MergePersonsRequest.prototype['merge_with_id'] = undefined; - - - - - - -export default MergePersonsRequest; - diff --git a/src/model/MergePersonsResponse.js b/src/model/MergePersonsResponse.js deleted file mode 100644 index 03743508..00000000 --- a/src/model/MergePersonsResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import MergePersonItem from './MergePersonItem'; -import MergePersonsResponseAllOf from './MergePersonsResponseAllOf'; - -/** - * The MergePersonsResponse model module. - * @module model/MergePersonsResponse - * @version 1.0.0 - */ -class MergePersonsResponse { - /** - * Constructs a new MergePersonsResponse. - * @alias module:model/MergePersonsResponse - * @implements module:model/BaseResponse - * @implements module:model/MergePersonsResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);MergePersonsResponseAllOf.initialize(this); - MergePersonsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MergePersonsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MergePersonsResponse} obj Optional instance to populate. - * @return {module:model/MergePersonsResponse} The populated MergePersonsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MergePersonsResponse(); - BaseResponse.constructFromObject(data, obj); - MergePersonsResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = MergePersonItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -MergePersonsResponse.prototype['success'] = undefined; - -/** - * @member {module:model/MergePersonItem} data - */ -MergePersonsResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement MergePersonsResponseAllOf interface: -/** - * @member {module:model/MergePersonItem} data - */ -MergePersonsResponseAllOf.prototype['data'] = undefined; - - - - -export default MergePersonsResponse; - diff --git a/src/model/MergePersonsResponseAllOf.js b/src/model/MergePersonsResponseAllOf.js deleted file mode 100644 index 2703cbf5..00000000 --- a/src/model/MergePersonsResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MergePersonItem from './MergePersonItem'; - -/** - * The MergePersonsResponseAllOf model module. - * @module model/MergePersonsResponseAllOf - * @version 1.0.0 - */ -class MergePersonsResponseAllOf { - /** - * Constructs a new MergePersonsResponseAllOf. - * @alias module:model/MergePersonsResponseAllOf - */ - constructor() { - - MergePersonsResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a MergePersonsResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MergePersonsResponseAllOf} obj Optional instance to populate. - * @return {module:model/MergePersonsResponseAllOf} The populated MergePersonsResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MergePersonsResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = MergePersonItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/MergePersonItem} data - */ -MergePersonsResponseAllOf.prototype['data'] = undefined; - - - - - - -export default MergePersonsResponseAllOf; - diff --git a/src/model/MessageObject.js b/src/model/MessageObject.js deleted file mode 100644 index f34d3f3e..00000000 --- a/src/model/MessageObject.js +++ /dev/null @@ -1,226 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MessageObjectAttachments from './MessageObjectAttachments'; - -/** - * The MessageObject model module. - * @module model/MessageObject - * @version 1.0.0 - */ -class MessageObject { - /** - * Constructs a new MessageObject. - * @alias module:model/MessageObject - * @param id {String} The ID of the message - * @param channelId {String} The channel ID as in the provider - * @param senderId {String} The ID of the provider's user that sent the message - * @param conversationId {String} The ID of the conversation - * @param message {String} The body of the message - * @param status {module:model/MessageObject.StatusEnum} The status of the message - * @param createdAt {Date} The date and time when the message was created in the provider, in UTC. Format: YYYY-MM-DD HH:MM - */ - constructor(id, channelId, senderId, conversationId, message, status, createdAt) { - - MessageObject.initialize(this, id, channelId, senderId, conversationId, message, status, createdAt); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, id, channelId, senderId, conversationId, message, status, createdAt) { - obj['id'] = id; - obj['channel_id'] = channelId; - obj['sender_id'] = senderId; - obj['conversation_id'] = conversationId; - obj['message'] = message; - obj['status'] = status; - obj['created_at'] = createdAt; - } - - /** - * Constructs a MessageObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MessageObject} obj Optional instance to populate. - * @return {module:model/MessageObject} The populated MessageObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MessageObject(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - if (data.hasOwnProperty('sender_id')) { - obj['sender_id'] = ApiClient.convertToType(data['sender_id'], 'String'); - - delete data['sender_id']; - } - if (data.hasOwnProperty('conversation_id')) { - obj['conversation_id'] = ApiClient.convertToType(data['conversation_id'], 'String'); - - delete data['conversation_id']; - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - - delete data['message']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); - - delete data['created_at']; - } - if (data.hasOwnProperty('reply_by')) { - obj['reply_by'] = ApiClient.convertToType(data['reply_by'], 'Date'); - - delete data['reply_by']; - } - if (data.hasOwnProperty('conversation_link')) { - obj['conversation_link'] = ApiClient.convertToType(data['conversation_link'], 'String'); - - delete data['conversation_link']; - } - if (data.hasOwnProperty('attachments')) { - obj['attachments'] = ApiClient.convertToType(data['attachments'], [MessageObjectAttachments]); - - delete data['attachments']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the message - * @member {String} id - */ -MessageObject.prototype['id'] = undefined; - -/** - * The channel ID as in the provider - * @member {String} channel_id - */ -MessageObject.prototype['channel_id'] = undefined; - -/** - * The ID of the provider's user that sent the message - * @member {String} sender_id - */ -MessageObject.prototype['sender_id'] = undefined; - -/** - * The ID of the conversation - * @member {String} conversation_id - */ -MessageObject.prototype['conversation_id'] = undefined; - -/** - * The body of the message - * @member {String} message - */ -MessageObject.prototype['message'] = undefined; - -/** - * The status of the message - * @member {module:model/MessageObject.StatusEnum} status - */ -MessageObject.prototype['status'] = undefined; - -/** - * The date and time when the message was created in the provider, in UTC. Format: YYYY-MM-DD HH:MM - * @member {Date} created_at - */ -MessageObject.prototype['created_at'] = undefined; - -/** - * The date and time when the message can no longer receive a reply, in UTC. Format: YYYY-MM-DD HH:MM - * @member {Date} reply_by - */ -MessageObject.prototype['reply_by'] = undefined; - -/** - * A URL that can open the conversation in the provider's side - * @member {String} conversation_link - */ -MessageObject.prototype['conversation_link'] = undefined; - -/** - * The list of attachments available in the message - * @member {Array.} attachments - */ -MessageObject.prototype['attachments'] = undefined; - - - - - -/** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ -MessageObject['StatusEnum'] = { - - /** - * value: "sent" - * @const - */ - "sent": "sent", - - /** - * value: "delivered" - * @const - */ - "delivered": "delivered", - - /** - * value: "read" - * @const - */ - "read": "read", - - /** - * value: "failed" - * @const - */ - "failed": "failed" -}; - - - -export default MessageObject; - diff --git a/src/model/MessageObjectAttachments.js b/src/model/MessageObjectAttachments.js deleted file mode 100644 index 5bc4316a..00000000 --- a/src/model/MessageObjectAttachments.js +++ /dev/null @@ -1,152 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MessageObjectAttachments model module. - * @module model/MessageObjectAttachments - * @version 1.0.0 - */ -class MessageObjectAttachments { - /** - * Constructs a new MessageObjectAttachments. - * @alias module:model/MessageObjectAttachments - * @param id {String} The ID of the attachment - * @param type {String} The mime-type of the attachment - * @param url {String} A URL to the file - */ - constructor(id, type, url) { - - MessageObjectAttachments.initialize(this, id, type, url); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, id, type, url) { - obj['id'] = id; - obj['type'] = type; - obj['url'] = url; - } - - /** - * Constructs a MessageObjectAttachments from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MessageObjectAttachments} obj Optional instance to populate. - * @return {module:model/MessageObjectAttachments} The populated MessageObjectAttachments instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MessageObjectAttachments(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('size')) { - obj['size'] = ApiClient.convertToType(data['size'], 'Number'); - - delete data['size']; - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - - delete data['url']; - } - if (data.hasOwnProperty('preview_url')) { - obj['preview_url'] = ApiClient.convertToType(data['preview_url'], 'String'); - - delete data['preview_url']; - } - if (data.hasOwnProperty('link_expires')) { - obj['link_expires'] = ApiClient.convertToType(data['link_expires'], 'Boolean'); - - delete data['link_expires']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the attachment - * @member {String} id - */ -MessageObjectAttachments.prototype['id'] = undefined; - -/** - * The mime-type of the attachment - * @member {String} type - */ -MessageObjectAttachments.prototype['type'] = undefined; - -/** - * The name of the attachment - * @member {String} name - */ -MessageObjectAttachments.prototype['name'] = undefined; - -/** - * The size of the attachment - * @member {Number} size - */ -MessageObjectAttachments.prototype['size'] = undefined; - -/** - * A URL to the file - * @member {String} url - */ -MessageObjectAttachments.prototype['url'] = undefined; - -/** - * A URL to a preview picture of the file - * @member {String} preview_url - */ -MessageObjectAttachments.prototype['preview_url'] = undefined; - -/** - * If true, it will use the getMessageById endpoint for fetching updated attachment's urls. Find out more [here](https://pipedrive.readme.io/docs/implementing-messaging-app-extension) - * @member {Boolean} link_expires - * @default false - */ -MessageObjectAttachments.prototype['link_expires'] = false; - - - - - - -export default MessageObjectAttachments; - diff --git a/src/model/NameObject.js b/src/model/NameObject.js deleted file mode 100644 index bd7c4fbb..00000000 --- a/src/model/NameObject.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NameObject model module. - * @module model/NameObject - * @version 1.0.0 - */ -class NameObject { - /** - * Constructs a new NameObject. - * @alias module:model/NameObject - */ - constructor() { - - NameObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NameObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NameObject} obj Optional instance to populate. - * @return {module:model/NameObject} The populated NameObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NameObject(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the product - * @member {String} name - */ -NameObject.prototype['name'] = undefined; - - - - - - -export default NameObject; - diff --git a/src/model/NewDeal.js b/src/model/NewDeal.js deleted file mode 100644 index 80854daf..00000000 --- a/src/model/NewDeal.js +++ /dev/null @@ -1,452 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasicDeal from './BasicDeal'; -import NewDealParameters from './NewDealParameters'; -import RequredTitleParameter from './RequredTitleParameter'; -import VisibleTo from './VisibleTo'; - -/** - * The NewDeal model module. - * @module model/NewDeal - * @version 1.0.0 - */ -class NewDeal { - /** - * Constructs a new NewDeal. - * @alias module:model/NewDeal - * @implements module:model/RequredTitleParameter - * @implements module:model/NewDealParameters - * @implements module:model/BasicDeal - * @param title {String} The title of the deal - */ - constructor(title) { - RequredTitleParameter.initialize(this, title);NewDealParameters.initialize(this);BasicDeal.initialize(this); - NewDeal.initialize(this, title); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, title) { - obj['title'] = title; - } - - /** - * Constructs a NewDeal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewDeal} obj Optional instance to populate. - * @return {module:model/NewDeal} The populated NewDeal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewDeal(); - RequredTitleParameter.constructFromObject(data, obj); - NewDealParameters.constructFromObject(data, obj); - BasicDeal.constructFromObject(data, obj); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - - delete data['value']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], ['Number']); - - delete data['label']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('origin_id')) { - obj['origin_id'] = ApiClient.convertToType(data['origin_id'], 'String'); - - delete data['origin_id']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('won_time')) { - obj['won_time'] = ApiClient.convertToType(data['won_time'], 'String'); - - delete data['won_time']; - } - if (data.hasOwnProperty('lost_time')) { - obj['lost_time'] = ApiClient.convertToType(data['lost_time'], 'String'); - - delete data['lost_time']; - } - if (data.hasOwnProperty('close_time')) { - obj['close_time'] = ApiClient.convertToType(data['close_time'], 'String'); - - delete data['close_time']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('probability')) { - obj['probability'] = ApiClient.convertToType(data['probability'], 'Number'); - - delete data['probability']; - } - if (data.hasOwnProperty('lost_reason')) { - obj['lost_reason'] = ApiClient.convertToType(data['lost_reason'], 'String'); - - delete data['lost_reason']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the deal - * @member {String} title - */ -NewDeal.prototype['title'] = undefined; - -/** - * The value of the deal. If omitted, value will be set to 0. - * @member {String} value - */ -NewDeal.prototype['value'] = undefined; - -/** - * The array of the labels IDs. - * @member {Array.} label - */ -NewDeal.prototype['label'] = undefined; - -/** - * The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user. - * @member {String} currency - */ -NewDeal.prototype['currency'] = undefined; - -/** - * The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used. - * @member {Number} user_id - */ -NewDeal.prototype['user_id'] = undefined; - -/** - * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified. - * @member {Number} person_id - */ -NewDeal.prototype['person_id'] = undefined; - -/** - * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified. - * @member {Number} org_id - */ -NewDeal.prototype['org_id'] = undefined; - -/** - * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. - * @member {Number} pipeline_id - */ -NewDeal.prototype['pipeline_id'] = undefined; - -/** - * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline. - * @member {Number} stage_id - */ -NewDeal.prototype['stage_id'] = undefined; - -/** - * open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open. - * @member {module:model/NewDeal.StatusEnum} status - */ -NewDeal.prototype['status'] = undefined; - -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, `origin_id` will be set to null. - * @member {String} origin_id - */ -NewDeal.prototype['origin_id'] = undefined; - -/** - * The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with GET /v1/dealFields. If omitted, channel will be set to null. - * @member {Number} channel - */ -NewDeal.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null. - * @member {String} channel_id - */ -NewDeal.prototype['channel_id'] = undefined; - -/** - * The optional creation date & time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NewDeal.prototype['add_time'] = undefined; - -/** - * The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. - * @member {String} won_time - */ -NewDeal.prototype['won_time'] = undefined; - -/** - * The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. - * @member {String} lost_time - */ -NewDeal.prototype['lost_time'] = undefined; - -/** - * The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} close_time - */ -NewDeal.prototype['close_time'] = undefined; - -/** - * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. - * @member {Date} expected_close_date - */ -NewDeal.prototype['expected_close_date'] = undefined; - -/** - * The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. - * @member {Number} probability - */ -NewDeal.prototype['probability'] = undefined; - -/** - * The optional message about why the deal was lost (to be used when status = lost) - * @member {String} lost_reason - */ -NewDeal.prototype['lost_reason'] = undefined; - -/** - * The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -NewDeal.prototype['visible_to'] = undefined; - - -// Implement RequredTitleParameter interface: -/** - * The title of the deal - * @member {String} title - */ -RequredTitleParameter.prototype['title'] = undefined; -// Implement NewDealParameters interface: -/** - * The value of the deal. If omitted, value will be set to 0. - * @member {String} value - */ -NewDealParameters.prototype['value'] = undefined; -/** - * The array of the labels IDs. - * @member {Array.} label - */ -NewDealParameters.prototype['label'] = undefined; -/** - * The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user. - * @member {String} currency - */ -NewDealParameters.prototype['currency'] = undefined; -/** - * The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used. - * @member {Number} user_id - */ -NewDealParameters.prototype['user_id'] = undefined; -/** - * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified. - * @member {Number} person_id - */ -NewDealParameters.prototype['person_id'] = undefined; -/** - * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified. - * @member {Number} org_id - */ -NewDealParameters.prototype['org_id'] = undefined; -/** - * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. - * @member {Number} pipeline_id - */ -NewDealParameters.prototype['pipeline_id'] = undefined; -/** - * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline. - * @member {Number} stage_id - */ -NewDealParameters.prototype['stage_id'] = undefined; -/** - * open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open. - * @member {module:model/NewDealParameters.StatusEnum} status - */ -NewDealParameters.prototype['status'] = undefined; -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, `origin_id` will be set to null. - * @member {String} origin_id - */ -NewDealParameters.prototype['origin_id'] = undefined; -/** - * The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with GET /v1/dealFields. If omitted, channel will be set to null. - * @member {Number} channel - */ -NewDealParameters.prototype['channel'] = undefined; -/** - * The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null. - * @member {String} channel_id - */ -NewDealParameters.prototype['channel_id'] = undefined; -/** - * The optional creation date & time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NewDealParameters.prototype['add_time'] = undefined; -// Implement BasicDeal interface: -/** - * The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. - * @member {String} won_time - */ -BasicDeal.prototype['won_time'] = undefined; -/** - * The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. - * @member {String} lost_time - */ -BasicDeal.prototype['lost_time'] = undefined; -/** - * The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} close_time - */ -BasicDeal.prototype['close_time'] = undefined; -/** - * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. - * @member {Date} expected_close_date - */ -BasicDeal.prototype['expected_close_date'] = undefined; -/** - * The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. - * @member {Number} probability - */ -BasicDeal.prototype['probability'] = undefined; -/** - * The optional message about why the deal was lost (to be used when status = lost) - * @member {String} lost_reason - */ -BasicDeal.prototype['lost_reason'] = undefined; -/** - * The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -BasicDeal.prototype['visible_to'] = undefined; - - - -/** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ -NewDeal['StatusEnum'] = { - - /** - * value: "open" - * @const - */ - "open": "open", - - /** - * value: "won" - * @const - */ - "won": "won", - - /** - * value: "lost" - * @const - */ - "lost": "lost", - - /** - * value: "deleted" - * @const - */ - "deleted": "deleted" -}; - - - -export default NewDeal; - diff --git a/src/model/NewDealAllOf.js b/src/model/NewDealAllOf.js deleted file mode 100644 index 4a3bc7b1..00000000 --- a/src/model/NewDealAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NewDealAllOf model module. - * @module model/NewDealAllOf - * @version 1.0.0 - */ -class NewDealAllOf { - /** - * Constructs a new NewDealAllOf. - * @alias module:model/NewDealAllOf - */ - constructor() { - - NewDealAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NewDealAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewDealAllOf} obj Optional instance to populate. - * @return {module:model/NewDealAllOf} The populated NewDealAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewDealAllOf(); - - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The optional creation date & time of the deal in UTC. Requires admin user API token. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NewDealAllOf.prototype['add_time'] = undefined; - - - - - - -export default NewDealAllOf; - diff --git a/src/model/NewDealParameters.js b/src/model/NewDealParameters.js deleted file mode 100644 index 02e0adc0..00000000 --- a/src/model/NewDealParameters.js +++ /dev/null @@ -1,244 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NewDealParameters model module. - * @module model/NewDealParameters - * @version 1.0.0 - */ -class NewDealParameters { - /** - * Constructs a new NewDealParameters. - * @alias module:model/NewDealParameters - */ - constructor() { - - NewDealParameters.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NewDealParameters from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewDealParameters} obj Optional instance to populate. - * @return {module:model/NewDealParameters} The populated NewDealParameters instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewDealParameters(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - - delete data['value']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], ['Number']); - - delete data['label']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('origin_id')) { - obj['origin_id'] = ApiClient.convertToType(data['origin_id'], 'String'); - - delete data['origin_id']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The value of the deal. If omitted, value will be set to 0. - * @member {String} value - */ -NewDealParameters.prototype['value'] = undefined; - -/** - * The array of the labels IDs. - * @member {Array.} label - */ -NewDealParameters.prototype['label'] = undefined; - -/** - * The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user. - * @member {String} currency - */ -NewDealParameters.prototype['currency'] = undefined; - -/** - * The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used. - * @member {Number} user_id - */ -NewDealParameters.prototype['user_id'] = undefined; - -/** - * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified. - * @member {Number} person_id - */ -NewDealParameters.prototype['person_id'] = undefined; - -/** - * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified. - * @member {Number} org_id - */ -NewDealParameters.prototype['org_id'] = undefined; - -/** - * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. - * @member {Number} pipeline_id - */ -NewDealParameters.prototype['pipeline_id'] = undefined; - -/** - * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline. - * @member {Number} stage_id - */ -NewDealParameters.prototype['stage_id'] = undefined; - -/** - * open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open. - * @member {module:model/NewDealParameters.StatusEnum} status - */ -NewDealParameters.prototype['status'] = undefined; - -/** - * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, `origin_id` will be set to null. - * @member {String} origin_id - */ -NewDealParameters.prototype['origin_id'] = undefined; - -/** - * The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with GET /v1/dealFields. If omitted, channel will be set to null. - * @member {Number} channel - */ -NewDealParameters.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null. - * @member {String} channel_id - */ -NewDealParameters.prototype['channel_id'] = undefined; - -/** - * The optional creation date & time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NewDealParameters.prototype['add_time'] = undefined; - - - - - -/** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ -NewDealParameters['StatusEnum'] = { - - /** - * value: "open" - * @const - */ - "open": "open", - - /** - * value: "won" - * @const - */ - "won": "won", - - /** - * value: "lost" - * @const - */ - "lost": "lost", - - /** - * value: "deleted" - * @const - */ - "deleted": "deleted" -}; - - - -export default NewDealParameters; - diff --git a/src/model/NewDealProduct.js b/src/model/NewDealProduct.js deleted file mode 100644 index 70b04f19..00000000 --- a/src/model/NewDealProduct.js +++ /dev/null @@ -1,347 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BillingFrequency from './BillingFrequency'; -import DealProductRequestBody from './DealProductRequestBody'; -import NewDealProductAllOf from './NewDealProductAllOf'; -import NewDealProductAllOf1 from './NewDealProductAllOf1'; -import NewDealProductAllOf2 from './NewDealProductAllOf2'; - -/** - * The NewDealProduct model module. - * @module model/NewDealProduct - * @version 1.0.0 - */ -class NewDealProduct { - /** - * Constructs a new NewDealProduct. - * @alias module:model/NewDealProduct - * @implements module:model/DealProductRequestBody - * @implements module:model/NewDealProductAllOf - * @implements module:model/NewDealProductAllOf1 - * @implements module:model/NewDealProductAllOf2 - */ - constructor() { - DealProductRequestBody.initialize(this);NewDealProductAllOf.initialize(this);NewDealProductAllOf1.initialize(this);NewDealProductAllOf2.initialize(this); - NewDealProduct.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NewDealProduct from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewDealProduct} obj Optional instance to populate. - * @return {module:model/NewDealProduct} The populated NewDealProduct instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewDealProduct(); - DealProductRequestBody.constructFromObject(data, obj); - NewDealProductAllOf.constructFromObject(data, obj); - NewDealProductAllOf1.constructFromObject(data, obj); - NewDealProductAllOf2.constructFromObject(data, obj); - - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('item_price')) { - obj['item_price'] = ApiClient.convertToType(data['item_price'], 'Number'); - - delete data['item_price']; - } - if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number'); - - delete data['quantity']; - } - if (data.hasOwnProperty('discount')) { - obj['discount'] = ApiClient.convertToType(data['discount'], 'Number'); - - delete data['discount']; - } - if (data.hasOwnProperty('discount_type')) { - obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String'); - - delete data['discount_type']; - } - if (data.hasOwnProperty('product_variation_id')) { - obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); - - delete data['product_variation_id']; - } - if (data.hasOwnProperty('comments')) { - obj['comments'] = ApiClient.convertToType(data['comments'], 'String'); - - delete data['comments']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('tax_method')) { - obj['tax_method'] = ApiClient.convertToType(data['tax_method'], 'String'); - - delete data['tax_method']; - } - if (data.hasOwnProperty('enabled_flag')) { - obj['enabled_flag'] = ApiClient.convertToType(data['enabled_flag'], 'Boolean'); - - delete data['enabled_flag']; - } - if (data.hasOwnProperty('billing_frequency')) { - obj['billing_frequency'] = BillingFrequency.constructFromObject(data['billing_frequency']); - - delete data['billing_frequency']; - } - if (data.hasOwnProperty('billing_frequency_cycles')) { - obj['billing_frequency_cycles'] = ApiClient.convertToType(data['billing_frequency_cycles'], 'Number'); - - delete data['billing_frequency_cycles']; - } - if (data.hasOwnProperty('billing_start_date')) { - obj['billing_start_date'] = ApiClient.convertToType(data['billing_start_date'], 'String'); - - delete data['billing_start_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product to use - * @member {Number} product_id - */ -NewDealProduct.prototype['product_id'] = undefined; - -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -NewDealProduct.prototype['item_price'] = undefined; - -/** - * How many items of this product will be added to the deal - * @member {Number} quantity - */ -NewDealProduct.prototype['quantity'] = undefined; - -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -NewDealProduct.prototype['discount'] = 0; - -/** - * The type of the discount's value - * @member {module:model/NewDealProduct.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -NewDealProduct.prototype['discount_type'] = 'percentage'; - -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -NewDealProduct.prototype['product_variation_id'] = undefined; - -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -NewDealProduct.prototype['comments'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -NewDealProduct.prototype['tax'] = 0; - -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount - * @member {module:model/NewDealProduct.TaxMethodEnum} tax_method - */ -NewDealProduct.prototype['tax_method'] = undefined; - -/** - * Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring - * @member {Boolean} enabled_flag - * @default true - */ -NewDealProduct.prototype['enabled_flag'] = true; - -/** - * @member {module:model/BillingFrequency} billing_frequency - */ -NewDealProduct.prototype['billing_frequency'] = undefined; - -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -NewDealProduct.prototype['billing_frequency_cycles'] = undefined; - -/** - * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future - * @member {String} billing_start_date - */ -NewDealProduct.prototype['billing_start_date'] = undefined; - - -// Implement DealProductRequestBody interface: -/** - * The ID of the product to use - * @member {Number} product_id - */ -DealProductRequestBody.prototype['product_id'] = undefined; -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -DealProductRequestBody.prototype['item_price'] = undefined; -/** - * How many items of this product will be added to the deal - * @member {Number} quantity - */ -DealProductRequestBody.prototype['quantity'] = undefined; -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -DealProductRequestBody.prototype['discount'] = 0; -/** - * The type of the discount's value - * @member {module:model/DealProductRequestBody.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -DealProductRequestBody.prototype['discount_type'] = 'percentage'; -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -DealProductRequestBody.prototype['product_variation_id'] = undefined; -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -DealProductRequestBody.prototype['comments'] = undefined; -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -DealProductRequestBody.prototype['tax'] = 0; -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount - * @member {module:model/DealProductRequestBody.TaxMethodEnum} tax_method - */ -DealProductRequestBody.prototype['tax_method'] = undefined; -/** - * Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring - * @member {Boolean} enabled_flag - * @default true - */ -DealProductRequestBody.prototype['enabled_flag'] = true; -// Implement NewDealProductAllOf interface: -/** - * @member {module:model/BillingFrequency} billing_frequency - */ -NewDealProductAllOf.prototype['billing_frequency'] = undefined; -// Implement NewDealProductAllOf1 interface: -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -NewDealProductAllOf1.prototype['billing_frequency_cycles'] = undefined; -// Implement NewDealProductAllOf2 interface: -/** - * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future - * @member {String} billing_start_date - */ -NewDealProductAllOf2.prototype['billing_start_date'] = undefined; - - - -/** - * Allowed values for the discount_type property. - * @enum {String} - * @readonly - */ -NewDealProduct['DiscountTypeEnum'] = { - - /** - * value: "percentage" - * @const - */ - "percentage": "percentage", - - /** - * value: "amount" - * @const - */ - "amount": "amount" -}; - - -/** - * Allowed values for the tax_method property. - * @enum {String} - * @readonly - */ -NewDealProduct['TaxMethodEnum'] = { - - /** - * value: "exclusive" - * @const - */ - "exclusive": "exclusive", - - /** - * value: "inclusive" - * @const - */ - "inclusive": "inclusive", - - /** - * value: "none" - * @const - */ - "none": "none" -}; - - - -export default NewDealProduct; - diff --git a/src/model/NewDealProductAllOf.js b/src/model/NewDealProductAllOf.js deleted file mode 100644 index 3bc4947d..00000000 --- a/src/model/NewDealProductAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BillingFrequency from './BillingFrequency'; - -/** - * The NewDealProductAllOf model module. - * @module model/NewDealProductAllOf - * @version 1.0.0 - */ -class NewDealProductAllOf { - /** - * Constructs a new NewDealProductAllOf. - * @alias module:model/NewDealProductAllOf - */ - constructor() { - - NewDealProductAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NewDealProductAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewDealProductAllOf} obj Optional instance to populate. - * @return {module:model/NewDealProductAllOf} The populated NewDealProductAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewDealProductAllOf(); - - if (data.hasOwnProperty('billing_frequency')) { - obj['billing_frequency'] = BillingFrequency.constructFromObject(data['billing_frequency']); - - delete data['billing_frequency']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BillingFrequency} billing_frequency - */ -NewDealProductAllOf.prototype['billing_frequency'] = undefined; - - - - - - -export default NewDealProductAllOf; - diff --git a/src/model/NewDealProductAllOf1.js b/src/model/NewDealProductAllOf1.js deleted file mode 100644 index 8317e04b..00000000 --- a/src/model/NewDealProductAllOf1.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NewDealProductAllOf1 model module. - * @module model/NewDealProductAllOf1 - * @version 1.0.0 - */ -class NewDealProductAllOf1 { - /** - * Constructs a new NewDealProductAllOf1. - * @alias module:model/NewDealProductAllOf1 - */ - constructor() { - - NewDealProductAllOf1.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NewDealProductAllOf1 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewDealProductAllOf1} obj Optional instance to populate. - * @return {module:model/NewDealProductAllOf1} The populated NewDealProductAllOf1 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewDealProductAllOf1(); - - if (data.hasOwnProperty('billing_frequency_cycles')) { - obj['billing_frequency_cycles'] = ApiClient.convertToType(data['billing_frequency_cycles'], 'Number'); - - delete data['billing_frequency_cycles']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -NewDealProductAllOf1.prototype['billing_frequency_cycles'] = undefined; - - - - - - -export default NewDealProductAllOf1; - diff --git a/src/model/NewDealProductAllOf2.js b/src/model/NewDealProductAllOf2.js deleted file mode 100644 index a7f6737f..00000000 --- a/src/model/NewDealProductAllOf2.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NewDealProductAllOf2 model module. - * @module model/NewDealProductAllOf2 - * @version 1.0.0 - */ -class NewDealProductAllOf2 { - /** - * Constructs a new NewDealProductAllOf2. - * @alias module:model/NewDealProductAllOf2 - */ - constructor() { - - NewDealProductAllOf2.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NewDealProductAllOf2 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewDealProductAllOf2} obj Optional instance to populate. - * @return {module:model/NewDealProductAllOf2} The populated NewDealProductAllOf2 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewDealProductAllOf2(); - - if (data.hasOwnProperty('billing_start_date')) { - obj['billing_start_date'] = ApiClient.convertToType(data['billing_start_date'], 'String'); - - delete data['billing_start_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future - * @member {String} billing_start_date - */ -NewDealProductAllOf2.prototype['billing_start_date'] = undefined; - - - - - - -export default NewDealProductAllOf2; - diff --git a/src/model/NewFollowerResponse.js b/src/model/NewFollowerResponse.js deleted file mode 100644 index cfba0f73..00000000 --- a/src/model/NewFollowerResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NewFollowerResponseData from './NewFollowerResponseData'; - -/** - * The NewFollowerResponse model module. - * @module model/NewFollowerResponse - * @version 1.0.0 - */ -class NewFollowerResponse { - /** - * Constructs a new NewFollowerResponse. - * @alias module:model/NewFollowerResponse - */ - constructor() { - - NewFollowerResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NewFollowerResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewFollowerResponse} obj Optional instance to populate. - * @return {module:model/NewFollowerResponse} The populated NewFollowerResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewFollowerResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = NewFollowerResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -NewFollowerResponse.prototype['success'] = undefined; - -/** - * @member {module:model/NewFollowerResponseData} data - */ -NewFollowerResponse.prototype['data'] = undefined; - - - - - - -export default NewFollowerResponse; - diff --git a/src/model/NewFollowerResponseData.js b/src/model/NewFollowerResponseData.js deleted file mode 100644 index 1d04d1f9..00000000 --- a/src/model/NewFollowerResponseData.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NewFollowerResponseData model module. - * @module model/NewFollowerResponseData - * @version 1.0.0 - */ -class NewFollowerResponseData { - /** - * Constructs a new NewFollowerResponseData. - * @alias module:model/NewFollowerResponseData - */ - constructor() { - - NewFollowerResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NewFollowerResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewFollowerResponseData} obj Optional instance to populate. - * @return {module:model/NewFollowerResponseData} The populated NewFollowerResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewFollowerResponseData(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user that was added as follower - * @member {Number} user_id - */ -NewFollowerResponseData.prototype['user_id'] = undefined; - -/** - * The ID of the follower - * @member {Number} id - */ -NewFollowerResponseData.prototype['id'] = undefined; - -/** - * The ID of the product - * @member {Number} product_id - */ -NewFollowerResponseData.prototype['product_id'] = undefined; - -/** - * The follower creation time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NewFollowerResponseData.prototype['add_time'] = undefined; - - - - - - -export default NewFollowerResponseData; - diff --git a/src/model/NewGoal.js b/src/model/NewGoal.js deleted file mode 100644 index a5b1ed02..00000000 --- a/src/model/NewGoal.js +++ /dev/null @@ -1,177 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NewGoal model module. - * @module model/NewGoal - * @version 1.0.0 - */ -class NewGoal { - /** - * Constructs a new NewGoal. - * @alias module:model/NewGoal - * @param assignee {Object} Who this goal is assigned to. It requires the following JSON structure: `{ \"id\": \"1\", \"type\": \"person\" }`. `type` can be either `person`, `company` or `team`. ID of the assignee person, company or team. - * @param type {Object} The type of the goal. It requires the following JSON structure: `{ \"name\": \"deals_started\", \"params\": { \"pipeline_id\": [1, 2], \"activity_type_id\": [9] } }`. Type can be one of: `deals_won`, `deals_progressed`, `activities_completed`, `activities_added`, `deals_started` or `revenue_forecast`. `params` can include `pipeline_id`, `stage_id` or `activity_type_id`. `stage_id` is related to only `deals_progressed` type of goals and `activity_type_id` to `activities_completed` or `activities_added` types of goals. The `pipeline_id` and `activity_type_id` need to be given as an array of integers. To track the goal in all pipelines, set `pipeline_id` as `null` and similarly, to track the goal for all activities, set `activity_type_id` as `null`.” - * @param expectedOutcome {Object} The expected outcome of the goal. Expected outcome can be tracked either by `quantity` or by `sum`. It requires the following JSON structure: `{ \"target\": \"50\", \"tracking_metric\": \"quantity\" }` or `{ \"target\": \"50\", \"tracking_metric\": \"sum\", \"currency_id\": 1 }`. `currency_id` should only be added to `sum` type of goals. - * @param duration {Object} The date when the goal starts and ends. It requires the following JSON structure: `{ \"start\": \"2019-01-01\", \"end\": \"2022-12-31\" }`. Date in format of YYYY-MM-DD. \"end\" can be set to `null` for an infinite, open-ended goal. - * @param interval {module:model/NewGoal.IntervalEnum} The interval of the goal - */ - constructor(assignee, type, expectedOutcome, duration, interval) { - - NewGoal.initialize(this, assignee, type, expectedOutcome, duration, interval); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, assignee, type, expectedOutcome, duration, interval) { - obj['assignee'] = assignee; - obj['type'] = type; - obj['expected_outcome'] = expectedOutcome; - obj['duration'] = duration; - obj['interval'] = interval; - } - - /** - * Constructs a NewGoal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewGoal} obj Optional instance to populate. - * @return {module:model/NewGoal} The populated NewGoal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewGoal(); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('assignee')) { - obj['assignee'] = ApiClient.convertToType(data['assignee'], Object); - - delete data['assignee']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], Object); - - delete data['type']; - } - if (data.hasOwnProperty('expected_outcome')) { - obj['expected_outcome'] = ApiClient.convertToType(data['expected_outcome'], Object); - - delete data['expected_outcome']; - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], Object); - - delete data['duration']; - } - if (data.hasOwnProperty('interval')) { - obj['interval'] = ApiClient.convertToType(data['interval'], 'String'); - - delete data['interval']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the goal - * @member {String} title - */ -NewGoal.prototype['title'] = undefined; - -/** - * Who this goal is assigned to. It requires the following JSON structure: `{ \"id\": \"1\", \"type\": \"person\" }`. `type` can be either `person`, `company` or `team`. ID of the assignee person, company or team. - * @member {Object} assignee - */ -NewGoal.prototype['assignee'] = undefined; - -/** - * The type of the goal. It requires the following JSON structure: `{ \"name\": \"deals_started\", \"params\": { \"pipeline_id\": [1, 2], \"activity_type_id\": [9] } }`. Type can be one of: `deals_won`, `deals_progressed`, `activities_completed`, `activities_added`, `deals_started` or `revenue_forecast`. `params` can include `pipeline_id`, `stage_id` or `activity_type_id`. `stage_id` is related to only `deals_progressed` type of goals and `activity_type_id` to `activities_completed` or `activities_added` types of goals. The `pipeline_id` and `activity_type_id` need to be given as an array of integers. To track the goal in all pipelines, set `pipeline_id` as `null` and similarly, to track the goal for all activities, set `activity_type_id` as `null`.” - * @member {Object} type - */ -NewGoal.prototype['type'] = undefined; - -/** - * The expected outcome of the goal. Expected outcome can be tracked either by `quantity` or by `sum`. It requires the following JSON structure: `{ \"target\": \"50\", \"tracking_metric\": \"quantity\" }` or `{ \"target\": \"50\", \"tracking_metric\": \"sum\", \"currency_id\": 1 }`. `currency_id` should only be added to `sum` type of goals. - * @member {Object} expected_outcome - */ -NewGoal.prototype['expected_outcome'] = undefined; - -/** - * The date when the goal starts and ends. It requires the following JSON structure: `{ \"start\": \"2019-01-01\", \"end\": \"2022-12-31\" }`. Date in format of YYYY-MM-DD. \"end\" can be set to `null` for an infinite, open-ended goal. - * @member {Object} duration - */ -NewGoal.prototype['duration'] = undefined; - -/** - * The interval of the goal - * @member {module:model/NewGoal.IntervalEnum} interval - */ -NewGoal.prototype['interval'] = undefined; - - - - - -/** - * Allowed values for the interval property. - * @enum {String} - * @readonly - */ -NewGoal['IntervalEnum'] = { - - /** - * value: "weekly" - * @const - */ - "weekly": "weekly", - - /** - * value: "monthly" - * @const - */ - "monthly": "monthly", - - /** - * value: "quarterly" - * @const - */ - "quarterly": "quarterly", - - /** - * value: "yearly" - * @const - */ - "yearly": "yearly" -}; - - - -export default NewGoal; - diff --git a/src/model/NewOrganization.js b/src/model/NewOrganization.js deleted file mode 100644 index 91ffb339..00000000 --- a/src/model/NewOrganization.js +++ /dev/null @@ -1,175 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasicOrganization from './BasicOrganization'; -import NewOrganizationAllOf from './NewOrganizationAllOf'; -import VisibleTo from './VisibleTo'; - -/** - * The NewOrganization model module. - * @module model/NewOrganization - * @version 1.0.0 - */ -class NewOrganization { - /** - * Constructs a new NewOrganization. - * @alias module:model/NewOrganization - * @implements module:model/NewOrganizationAllOf - * @implements module:model/BasicOrganization - * @param name {String} The name of the organization - */ - constructor(name) { - NewOrganizationAllOf.initialize(this, name);BasicOrganization.initialize(this); - NewOrganization.initialize(this, name); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name) { - obj['name'] = name; - } - - /** - * Constructs a NewOrganization from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewOrganization} obj Optional instance to populate. - * @return {module:model/NewOrganization} The populated NewOrganization instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewOrganization(); - NewOrganizationAllOf.constructFromObject(data, obj); - BasicOrganization.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the organization - * @member {String} name - */ -NewOrganization.prototype['name'] = undefined; - -/** - * The optional creation date & time of the organization in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NewOrganization.prototype['add_time'] = undefined; - -/** - * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. - * @member {Number} owner_id - */ -NewOrganization.prototype['owner_id'] = undefined; - -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -NewOrganization.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -NewOrganization.prototype['label_ids'] = undefined; - -/** - * The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -NewOrganization.prototype['visible_to'] = undefined; - - -// Implement NewOrganizationAllOf interface: -/** - * The name of the organization - * @member {String} name - */ -NewOrganizationAllOf.prototype['name'] = undefined; -/** - * The optional creation date & time of the organization in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NewOrganizationAllOf.prototype['add_time'] = undefined; -// Implement BasicOrganization interface: -/** - * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. - * @member {Number} owner_id - */ -BasicOrganization.prototype['owner_id'] = undefined; -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BasicOrganization.prototype['label'] = undefined; -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BasicOrganization.prototype['label_ids'] = undefined; -/** - * The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -BasicOrganization.prototype['visible_to'] = undefined; - - - - -export default NewOrganization; - diff --git a/src/model/NewOrganizationAllOf.js b/src/model/NewOrganizationAllOf.js deleted file mode 100644 index 1fa5fa21..00000000 --- a/src/model/NewOrganizationAllOf.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NewOrganizationAllOf model module. - * @module model/NewOrganizationAllOf - * @version 1.0.0 - */ -class NewOrganizationAllOf { - /** - * Constructs a new NewOrganizationAllOf. - * @alias module:model/NewOrganizationAllOf - * @param name {String} The name of the organization - */ - constructor(name) { - - NewOrganizationAllOf.initialize(this, name); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name) { - obj['name'] = name; - } - - /** - * Constructs a NewOrganizationAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewOrganizationAllOf} obj Optional instance to populate. - * @return {module:model/NewOrganizationAllOf} The populated NewOrganizationAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewOrganizationAllOf(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the organization - * @member {String} name - */ -NewOrganizationAllOf.prototype['name'] = undefined; - -/** - * The optional creation date & time of the organization in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NewOrganizationAllOf.prototype['add_time'] = undefined; - - - - - - -export default NewOrganizationAllOf; - diff --git a/src/model/NewPerson.js b/src/model/NewPerson.js deleted file mode 100644 index 0dd11fd3..00000000 --- a/src/model/NewPerson.js +++ /dev/null @@ -1,242 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePersonItemPhone from './BasePersonItemPhone'; -import BasicPerson from './BasicPerson'; -import BasicPersonEmail from './BasicPersonEmail'; -import MarketingStatus from './MarketingStatus'; -import NewPersonAllOf from './NewPersonAllOf'; -import VisibleTo from './VisibleTo'; - -/** - * The NewPerson model module. - * @module model/NewPerson - * @version 1.0.0 - */ -class NewPerson { - /** - * Constructs a new NewPerson. - * @alias module:model/NewPerson - * @implements module:model/NewPersonAllOf - * @implements module:model/BasicPerson - * @param name {String} The name of the person - */ - constructor(name) { - NewPersonAllOf.initialize(this, name);BasicPerson.initialize(this); - NewPerson.initialize(this, name); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name) { - obj['name'] = name; - } - - /** - * Constructs a NewPerson from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewPerson} obj Optional instance to populate. - * @return {module:model/NewPerson} The populated NewPerson instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewPerson(); - NewPersonAllOf.constructFromObject(data, obj); - BasicPerson.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], [BasicPersonEmail]); - - delete data['email']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], [BasePersonItemPhone]); - - delete data['phone']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('marketing_status')) { - obj['marketing_status'] = ApiClient.convertToType(data['marketing_status'], MarketingStatus); - - delete data['marketing_status']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the person - * @member {String} name - */ -NewPerson.prototype['name'] = undefined; - -/** - * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. - * @member {Number} owner_id - */ -NewPerson.prototype['owner_id'] = undefined; - -/** - * The ID of the organization this person will belong to - * @member {Number} org_id - */ -NewPerson.prototype['org_id'] = undefined; - -/** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. - * @member {Array.} email - */ -NewPerson.prototype['email'] = undefined; - -/** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @member {Array.} phone - */ -NewPerson.prototype['phone'] = undefined; - -/** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -NewPerson.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -NewPerson.prototype['label_ids'] = undefined; - -/** - * The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -NewPerson.prototype['visible_to'] = undefined; - -/** - * If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.
ValueDescription
`no_consent`The customer has not given consent to receive any marketing communications
`unsubscribed`The customers have unsubscribed from ALL marketing communications
`subscribed`The customers are subscribed and are counted towards marketing caps
`archived`The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for
- * @member {module:model/MarketingStatus} marketing_status - */ -NewPerson.prototype['marketing_status'] = undefined; - -/** - * The optional creation date & time of the person in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NewPerson.prototype['add_time'] = undefined; - - -// Implement NewPersonAllOf interface: -/** - * The name of the person - * @member {String} name - */ -NewPersonAllOf.prototype['name'] = undefined; -// Implement BasicPerson interface: -/** - * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. - * @member {Number} owner_id - */ -BasicPerson.prototype['owner_id'] = undefined; -/** - * The ID of the organization this person will belong to - * @member {Number} org_id - */ -BasicPerson.prototype['org_id'] = undefined; -/** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. - * @member {Array.} email - */ -BasicPerson.prototype['email'] = undefined; -/** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @member {Array.} phone - */ -BasicPerson.prototype['phone'] = undefined; -/** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BasicPerson.prototype['label'] = undefined; -/** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BasicPerson.prototype['label_ids'] = undefined; -/** - * The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -BasicPerson.prototype['visible_to'] = undefined; -/** - * If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.
ValueDescription
`no_consent`The customer has not given consent to receive any marketing communications
`unsubscribed`The customers have unsubscribed from ALL marketing communications
`subscribed`The customers are subscribed and are counted towards marketing caps
`archived`The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for
- * @member {module:model/MarketingStatus} marketing_status - */ -BasicPerson.prototype['marketing_status'] = undefined; -/** - * The optional creation date & time of the person in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -BasicPerson.prototype['add_time'] = undefined; - - - - -export default NewPerson; - diff --git a/src/model/NewPersonAllOf.js b/src/model/NewPersonAllOf.js deleted file mode 100644 index a0dc2415..00000000 --- a/src/model/NewPersonAllOf.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NewPersonAllOf model module. - * @module model/NewPersonAllOf - * @version 1.0.0 - */ -class NewPersonAllOf { - /** - * Constructs a new NewPersonAllOf. - * @alias module:model/NewPersonAllOf - * @param name {String} The name of the person - */ - constructor(name) { - - NewPersonAllOf.initialize(this, name); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name) { - obj['name'] = name; - } - - /** - * Constructs a NewPersonAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewPersonAllOf} obj Optional instance to populate. - * @return {module:model/NewPersonAllOf} The populated NewPersonAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewPersonAllOf(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the person - * @member {String} name - */ -NewPersonAllOf.prototype['name'] = undefined; - - - - - - -export default NewPersonAllOf; - diff --git a/src/model/NewProductField.js b/src/model/NewProductField.js deleted file mode 100644 index 89fc1ba2..00000000 --- a/src/model/NewProductField.js +++ /dev/null @@ -1,210 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NewProductField model module. - * @module model/NewProductField - * @version 1.0.0 - */ -class NewProductField { - /** - * Constructs a new NewProductField. - * @alias module:model/NewProductField - * @param name {String} The name of the field - * @param fieldType {module:model/NewProductField.FieldTypeEnum} The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
- */ - constructor(name, fieldType) { - - NewProductField.initialize(this, name, fieldType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name, fieldType) { - obj['name'] = name; - obj['field_type'] = fieldType; - } - - /** - * Constructs a NewProductField from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewProductField} obj Optional instance to populate. - * @return {module:model/NewProductField} The populated NewProductField instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewProductField(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Object]); - - delete data['options']; - } - if (data.hasOwnProperty('field_type')) { - obj['field_type'] = ApiClient.convertToType(data['field_type'], 'String'); - - delete data['field_type']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the field - * @member {String} name - */ -NewProductField.prototype['name'] = undefined; - -/** - * When `field_type` is either `set` or `enum`, possible options must be supplied as a JSON-encoded sequential array, for example:
`[{\"label\":\"red\"}, {\"label\":\"blue\"}, {\"label\":\"lilac\"}]` - * @member {Array.} options - */ -NewProductField.prototype['options'] = undefined; - -/** - * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
- * @member {module:model/NewProductField.FieldTypeEnum} field_type - */ -NewProductField.prototype['field_type'] = undefined; - - - - - -/** - * Allowed values for the field_type property. - * @enum {String} - * @readonly - */ -NewProductField['FieldTypeEnum'] = { - - /** - * value: "varchar" - * @const - */ - "varchar": "varchar", - - /** - * value: "varchar_auto" - * @const - */ - "varchar_auto": "varchar_auto", - - /** - * value: "text" - * @const - */ - "text": "text", - - /** - * value: "double" - * @const - */ - "double": "double", - - /** - * value: "monetary" - * @const - */ - "monetary": "monetary", - - /** - * value: "date" - * @const - */ - "date": "date", - - /** - * value: "set" - * @const - */ - "set": "set", - - /** - * value: "enum" - * @const - */ - "enum": "enum", - - /** - * value: "user" - * @const - */ - "user": "user", - - /** - * value: "org" - * @const - */ - "org": "org", - - /** - * value: "people" - * @const - */ - "people": "people", - - /** - * value: "phone" - * @const - */ - "phone": "phone", - - /** - * value: "time" - * @const - */ - "time": "time", - - /** - * value: "timerange" - * @const - */ - "timerange": "timerange", - - /** - * value: "daterange" - * @const - */ - "daterange": "daterange", - - /** - * value: "address" - * @const - */ - "address": "address" -}; - - - -export default NewProductField; - diff --git a/src/model/NewProductFieldAllOf.js b/src/model/NewProductFieldAllOf.js deleted file mode 100644 index 13f57385..00000000 --- a/src/model/NewProductFieldAllOf.js +++ /dev/null @@ -1,210 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NewProductFieldAllOf model module. - * @module model/NewProductFieldAllOf - * @version 1.0.0 - */ -class NewProductFieldAllOf { - /** - * Constructs a new NewProductFieldAllOf. - * @alias module:model/NewProductFieldAllOf - * @param name {String} Name of the field - * @param fieldType {module:model/NewProductFieldAllOf.FieldTypeEnum} Type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field (autocompleted by Google Maps)
- */ - constructor(name, fieldType) { - - NewProductFieldAllOf.initialize(this, name, fieldType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name, fieldType) { - obj['name'] = name; - obj['field_type'] = fieldType; - } - - /** - * Constructs a NewProductFieldAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NewProductFieldAllOf} obj Optional instance to populate. - * @return {module:model/NewProductFieldAllOf} The populated NewProductFieldAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NewProductFieldAllOf(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Object]); - - delete data['options']; - } - if (data.hasOwnProperty('field_type')) { - obj['field_type'] = ApiClient.convertToType(data['field_type'], 'String'); - - delete data['field_type']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * Name of the field - * @member {String} name - */ -NewProductFieldAllOf.prototype['name'] = undefined; - -/** - * When `field_type` is either set or enum, possible options must be supplied as a JSON-encoded sequential array, for example: `[\"red\",\"blue\",\"lilac\"]` - * @member {Array.} options - */ -NewProductFieldAllOf.prototype['options'] = undefined; - -/** - * Type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field (autocompleted by Google Maps)
- * @member {module:model/NewProductFieldAllOf.FieldTypeEnum} field_type - */ -NewProductFieldAllOf.prototype['field_type'] = undefined; - - - - - -/** - * Allowed values for the field_type property. - * @enum {String} - * @readonly - */ -NewProductFieldAllOf['FieldTypeEnum'] = { - - /** - * value: "varchar" - * @const - */ - "varchar": "varchar", - - /** - * value: "varchar_auto" - * @const - */ - "varchar_auto": "varchar_auto", - - /** - * value: "text" - * @const - */ - "text": "text", - - /** - * value: "double" - * @const - */ - "double": "double", - - /** - * value: "monetary" - * @const - */ - "monetary": "monetary", - - /** - * value: "date" - * @const - */ - "date": "date", - - /** - * value: "set" - * @const - */ - "set": "set", - - /** - * value: "enum" - * @const - */ - "enum": "enum", - - /** - * value: "user" - * @const - */ - "user": "user", - - /** - * value: "org" - * @const - */ - "org": "org", - - /** - * value: "people" - * @const - */ - "people": "people", - - /** - * value: "phone" - * @const - */ - "phone": "phone", - - /** - * value: "time" - * @const - */ - "time": "time", - - /** - * value: "timerange" - * @const - */ - "timerange": "timerange", - - /** - * value: "daterange" - * @const - */ - "daterange": "daterange", - - /** - * value: "address" - * @const - */ - "address": "address" -}; - - - -export default NewProductFieldAllOf; - diff --git a/src/model/Note.js b/src/model/Note.js deleted file mode 100644 index 24a69d12..00000000 --- a/src/model/Note.js +++ /dev/null @@ -1,257 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NoteAllOf from './NoteAllOf'; -import NoteConnectToParams from './NoteConnectToParams'; -import NoteParams from './NoteParams'; -import NumberBoolean from './NumberBoolean'; - -/** - * The Note model module. - * @module model/Note - * @version 1.0.0 - */ -class Note { - /** - * Constructs a new Note. - * @alias module:model/Note - * @implements module:model/NoteAllOf - * @implements module:model/NoteConnectToParams - * @implements module:model/NoteParams - */ - constructor() { - NoteAllOf.initialize(this);NoteConnectToParams.initialize(this);NoteParams.initialize(this); - Note.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Note from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Note} obj Optional instance to populate. - * @return {module:model/Note} The populated Note instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Note(); - NoteAllOf.constructFromObject(data, obj); - NoteConnectToParams.constructFromObject(data, obj); - NoteParams.constructFromObject(data, obj); - - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - - delete data['content']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('pinned_to_lead_flag')) { - obj['pinned_to_lead_flag'] = ApiClient.convertToType(data['pinned_to_lead_flag'], NumberBoolean); - - delete data['pinned_to_lead_flag']; - } - if (data.hasOwnProperty('pinned_to_deal_flag')) { - obj['pinned_to_deal_flag'] = ApiClient.convertToType(data['pinned_to_deal_flag'], NumberBoolean); - - delete data['pinned_to_deal_flag']; - } - if (data.hasOwnProperty('pinned_to_organization_flag')) { - obj['pinned_to_organization_flag'] = ApiClient.convertToType(data['pinned_to_organization_flag'], NumberBoolean); - - delete data['pinned_to_organization_flag']; - } - if (data.hasOwnProperty('pinned_to_person_flag')) { - obj['pinned_to_person_flag'] = ApiClient.convertToType(data['pinned_to_person_flag'], NumberBoolean); - - delete data['pinned_to_person_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The content of the note in HTML format. Subject to sanitization on the back-end. - * @member {String} content - */ -Note.prototype['content'] = undefined; - -/** - * The ID of the lead the note will be attached to - * @member {String} lead_id - */ -Note.prototype['lead_id'] = undefined; - -/** - * The ID of the deal the note will be attached to - * @member {Number} deal_id - */ -Note.prototype['deal_id'] = undefined; - -/** - * The ID of the person the note will be attached to - * @member {Number} person_id - */ -Note.prototype['person_id'] = undefined; - -/** - * The ID of the organization the note will be attached to - * @member {Number} org_id - */ -Note.prototype['org_id'] = undefined; - -/** - * The ID of the user who will be marked as the author of the note. Only an admin can change the author. - * @member {Number} user_id - */ -Note.prototype['user_id'] = undefined; - -/** - * The optional creation date & time of the note in UTC. Can be set in the past or in the future. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -Note.prototype['add_time'] = undefined; - -/** - * If set, the results are filtered by note to lead pinning state (`lead_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_lead_flag - */ -Note.prototype['pinned_to_lead_flag'] = undefined; - -/** - * If set, the results are filtered by note to deal pinning state (`deal_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_deal_flag - */ -Note.prototype['pinned_to_deal_flag'] = undefined; - -/** - * If set, the results are filtered by note to organization pinning state (`org_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_organization_flag - */ -Note.prototype['pinned_to_organization_flag'] = undefined; - -/** - * If set, the results are filtered by note to person pinning state (`person_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_person_flag - */ -Note.prototype['pinned_to_person_flag'] = undefined; - - -// Implement NoteAllOf interface: -/** - * The content of the note in HTML format. Subject to sanitization on the back-end. - * @member {String} content - */ -NoteAllOf.prototype['content'] = undefined; -// Implement NoteConnectToParams interface: -/** - * The ID of the lead the note will be attached to - * @member {String} lead_id - */ -NoteConnectToParams.prototype['lead_id'] = undefined; -/** - * The ID of the deal the note will be attached to - * @member {Number} deal_id - */ -NoteConnectToParams.prototype['deal_id'] = undefined; -/** - * The ID of the person the note will be attached to - * @member {Number} person_id - */ -NoteConnectToParams.prototype['person_id'] = undefined; -/** - * The ID of the organization the note will be attached to - * @member {Number} org_id - */ -NoteConnectToParams.prototype['org_id'] = undefined; -// Implement NoteParams interface: -/** - * The ID of the user who will be marked as the author of the note. Only an admin can change the author. - * @member {Number} user_id - */ -NoteParams.prototype['user_id'] = undefined; -/** - * The optional creation date & time of the note in UTC. Can be set in the past or in the future. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NoteParams.prototype['add_time'] = undefined; -/** - * If set, the results are filtered by note to lead pinning state (`lead_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_lead_flag - */ -NoteParams.prototype['pinned_to_lead_flag'] = undefined; -/** - * If set, the results are filtered by note to deal pinning state (`deal_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_deal_flag - */ -NoteParams.prototype['pinned_to_deal_flag'] = undefined; -/** - * If set, the results are filtered by note to organization pinning state (`org_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_organization_flag - */ -NoteParams.prototype['pinned_to_organization_flag'] = undefined; -/** - * If set, the results are filtered by note to person pinning state (`person_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_person_flag - */ -NoteParams.prototype['pinned_to_person_flag'] = undefined; - - - - -export default Note; - diff --git a/src/model/NoteAllOf.js b/src/model/NoteAllOf.js deleted file mode 100644 index 64c3e53e..00000000 --- a/src/model/NoteAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NoteAllOf model module. - * @module model/NoteAllOf - * @version 1.0.0 - */ -class NoteAllOf { - /** - * Constructs a new NoteAllOf. - * @alias module:model/NoteAllOf - */ - constructor() { - - NoteAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NoteAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NoteAllOf} obj Optional instance to populate. - * @return {module:model/NoteAllOf} The populated NoteAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NoteAllOf(); - - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - - delete data['content']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The content of the note in HTML format. Subject to sanitization on the back-end. - * @member {String} content - */ -NoteAllOf.prototype['content'] = undefined; - - - - - - -export default NoteAllOf; - diff --git a/src/model/NoteConnectToParams.js b/src/model/NoteConnectToParams.js deleted file mode 100644 index cec8462e..00000000 --- a/src/model/NoteConnectToParams.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NoteConnectToParams model module. - * @module model/NoteConnectToParams - * @version 1.0.0 - */ -class NoteConnectToParams { - /** - * Constructs a new NoteConnectToParams. - * @alias module:model/NoteConnectToParams - */ - constructor() { - - NoteConnectToParams.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NoteConnectToParams from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NoteConnectToParams} obj Optional instance to populate. - * @return {module:model/NoteConnectToParams} The populated NoteConnectToParams instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NoteConnectToParams(); - - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the lead the note will be attached to - * @member {String} lead_id - */ -NoteConnectToParams.prototype['lead_id'] = undefined; - -/** - * The ID of the deal the note will be attached to - * @member {Number} deal_id - */ -NoteConnectToParams.prototype['deal_id'] = undefined; - -/** - * The ID of the person the note will be attached to - * @member {Number} person_id - */ -NoteConnectToParams.prototype['person_id'] = undefined; - -/** - * The ID of the organization the note will be attached to - * @member {Number} org_id - */ -NoteConnectToParams.prototype['org_id'] = undefined; - - - - - - -export default NoteConnectToParams; - diff --git a/src/model/NoteCreatorUser.js b/src/model/NoteCreatorUser.js deleted file mode 100644 index ec0dcff3..00000000 --- a/src/model/NoteCreatorUser.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NoteCreatorUser model module. - * @module model/NoteCreatorUser - * @version 1.0.0 - */ -class NoteCreatorUser { - /** - * Constructs a new NoteCreatorUser. - * The user who created the note - * @alias module:model/NoteCreatorUser - */ - constructor() { - - NoteCreatorUser.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NoteCreatorUser from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NoteCreatorUser} obj Optional instance to populate. - * @return {module:model/NoteCreatorUser} The populated NoteCreatorUser instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NoteCreatorUser(); - - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('icon_url')) { - obj['icon_url'] = ApiClient.convertToType(data['icon_url'], 'String'); - - delete data['icon_url']; - } - if (data.hasOwnProperty('is_you')) { - obj['is_you'] = ApiClient.convertToType(data['is_you'], 'Boolean'); - - delete data['is_you']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The email of the note creator - * @member {String} email - */ -NoteCreatorUser.prototype['email'] = undefined; - -/** - * The URL of the note creator avatar picture - * @member {String} icon_url - */ -NoteCreatorUser.prototype['icon_url'] = undefined; - -/** - * Whether the note is created by you or not - * @member {Boolean} is_you - */ -NoteCreatorUser.prototype['is_you'] = undefined; - -/** - * The name of the note creator - * @member {String} name - */ -NoteCreatorUser.prototype['name'] = undefined; - - - - - - -export default NoteCreatorUser; - diff --git a/src/model/NoteField.js b/src/model/NoteField.js deleted file mode 100644 index 89f5c235..00000000 --- a/src/model/NoteField.js +++ /dev/null @@ -1,168 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FieldTypeAsString from './FieldTypeAsString'; -import NoteFieldOptions from './NoteFieldOptions'; - -/** - * The NoteField model module. - * @module model/NoteField - * @version 1.0.0 - */ -class NoteField { - /** - * Constructs a new NoteField. - * @alias module:model/NoteField - */ - constructor() { - - NoteField.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NoteField from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NoteField} obj Optional instance to populate. - * @return {module:model/NoteField} The populated NoteField instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NoteField(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - - delete data['key']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('field_type')) { - obj['field_type'] = FieldTypeAsString.constructFromObject(data['field_type']); - - delete data['field_type']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('edit_flag')) { - obj['edit_flag'] = ApiClient.convertToType(data['edit_flag'], 'Boolean'); - - delete data['edit_flag']; - } - if (data.hasOwnProperty('bulk_edit_allowed')) { - obj['bulk_edit_allowed'] = ApiClient.convertToType(data['bulk_edit_allowed'], 'Boolean'); - - delete data['bulk_edit_allowed']; - } - if (data.hasOwnProperty('mandatory_flag')) { - obj['mandatory_flag'] = ApiClient.convertToType(data['mandatory_flag'], 'Boolean'); - - delete data['mandatory_flag']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [NoteFieldOptions]); - - delete data['options']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the field - * @member {Number} id - */ -NoteField.prototype['id'] = undefined; - -/** - * The key of the field - * @member {String} key - */ -NoteField.prototype['key'] = undefined; - -/** - * The name of the field - * @member {String} name - */ -NoteField.prototype['name'] = undefined; - -/** - * @member {module:model/FieldTypeAsString} field_type - */ -NoteField.prototype['field_type'] = undefined; - -/** - * The active flag of the field - * @member {Boolean} active_flag - */ -NoteField.prototype['active_flag'] = undefined; - -/** - * The edit flag of the field - * @member {Boolean} edit_flag - */ -NoteField.prototype['edit_flag'] = undefined; - -/** - * Not used - * @member {Boolean} bulk_edit_allowed - */ -NoteField.prototype['bulk_edit_allowed'] = undefined; - -/** - * Whether or not the field is mandatory - * @member {Boolean} mandatory_flag - */ -NoteField.prototype['mandatory_flag'] = undefined; - -/** - * The options of the field. When there are no options, `null` is returned. - * @member {Array.} options - */ -NoteField.prototype['options'] = undefined; - - - - - - -export default NoteField; - diff --git a/src/model/NoteFieldOptions.js b/src/model/NoteFieldOptions.js deleted file mode 100644 index d1c2f7b6..00000000 --- a/src/model/NoteFieldOptions.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The NoteFieldOptions model module. - * @module model/NoteFieldOptions - * @version 1.0.0 - */ -class NoteFieldOptions { - /** - * Constructs a new NoteFieldOptions. - * @alias module:model/NoteFieldOptions - */ - constructor() { - - NoteFieldOptions.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NoteFieldOptions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NoteFieldOptions} obj Optional instance to populate. - * @return {module:model/NoteFieldOptions} The populated NoteFieldOptions instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NoteFieldOptions(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Number} id - */ -NoteFieldOptions.prototype['id'] = undefined; - -/** - * @member {String} label - */ -NoteFieldOptions.prototype['label'] = undefined; - - - - - - -export default NoteFieldOptions; - diff --git a/src/model/NoteFieldsResponse.js b/src/model/NoteFieldsResponse.js deleted file mode 100644 index 72636eeb..00000000 --- a/src/model/NoteFieldsResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import GetNoteField from './GetNoteField'; -import NoteFieldsResponseAllOf from './NoteFieldsResponseAllOf'; - -/** - * The NoteFieldsResponse model module. - * @module model/NoteFieldsResponse - * @version 1.0.0 - */ -class NoteFieldsResponse { - /** - * Constructs a new NoteFieldsResponse. - * @alias module:model/NoteFieldsResponse - * @implements module:model/BaseResponse - * @implements module:model/NoteFieldsResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);NoteFieldsResponseAllOf.initialize(this); - NoteFieldsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NoteFieldsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NoteFieldsResponse} obj Optional instance to populate. - * @return {module:model/NoteFieldsResponse} The populated NoteFieldsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NoteFieldsResponse(); - BaseResponse.constructFromObject(data, obj); - NoteFieldsResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [GetNoteField]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -NoteFieldsResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -NoteFieldsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -NoteFieldsResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement NoteFieldsResponseAllOf interface: -/** - * @member {Array.} data - */ -NoteFieldsResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -NoteFieldsResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default NoteFieldsResponse; - diff --git a/src/model/NoteFieldsResponseAllOf.js b/src/model/NoteFieldsResponseAllOf.js deleted file mode 100644 index acd9ced9..00000000 --- a/src/model/NoteFieldsResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import GetNoteField from './GetNoteField'; - -/** - * The NoteFieldsResponseAllOf model module. - * @module model/NoteFieldsResponseAllOf - * @version 1.0.0 - */ -class NoteFieldsResponseAllOf { - /** - * Constructs a new NoteFieldsResponseAllOf. - * @alias module:model/NoteFieldsResponseAllOf - */ - constructor() { - - NoteFieldsResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NoteFieldsResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NoteFieldsResponseAllOf} obj Optional instance to populate. - * @return {module:model/NoteFieldsResponseAllOf} The populated NoteFieldsResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NoteFieldsResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [GetNoteField]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Array.} data - */ -NoteFieldsResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -NoteFieldsResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default NoteFieldsResponseAllOf; - diff --git a/src/model/NoteParams.js b/src/model/NoteParams.js deleted file mode 100644 index d403f2d8..00000000 --- a/src/model/NoteParams.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBoolean from './NumberBoolean'; - -/** - * The NoteParams model module. - * @module model/NoteParams - * @version 1.0.0 - */ -class NoteParams { - /** - * Constructs a new NoteParams. - * @alias module:model/NoteParams - */ - constructor() { - - NoteParams.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a NoteParams from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/NoteParams} obj Optional instance to populate. - * @return {module:model/NoteParams} The populated NoteParams instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new NoteParams(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('pinned_to_lead_flag')) { - obj['pinned_to_lead_flag'] = ApiClient.convertToType(data['pinned_to_lead_flag'], NumberBoolean); - - delete data['pinned_to_lead_flag']; - } - if (data.hasOwnProperty('pinned_to_deal_flag')) { - obj['pinned_to_deal_flag'] = ApiClient.convertToType(data['pinned_to_deal_flag'], NumberBoolean); - - delete data['pinned_to_deal_flag']; - } - if (data.hasOwnProperty('pinned_to_organization_flag')) { - obj['pinned_to_organization_flag'] = ApiClient.convertToType(data['pinned_to_organization_flag'], NumberBoolean); - - delete data['pinned_to_organization_flag']; - } - if (data.hasOwnProperty('pinned_to_person_flag')) { - obj['pinned_to_person_flag'] = ApiClient.convertToType(data['pinned_to_person_flag'], NumberBoolean); - - delete data['pinned_to_person_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user who will be marked as the author of the note. Only an admin can change the author. - * @member {Number} user_id - */ -NoteParams.prototype['user_id'] = undefined; - -/** - * The optional creation date & time of the note in UTC. Can be set in the past or in the future. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -NoteParams.prototype['add_time'] = undefined; - -/** - * If set, the results are filtered by note to lead pinning state (`lead_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_lead_flag - */ -NoteParams.prototype['pinned_to_lead_flag'] = undefined; - -/** - * If set, the results are filtered by note to deal pinning state (`deal_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_deal_flag - */ -NoteParams.prototype['pinned_to_deal_flag'] = undefined; - -/** - * If set, the results are filtered by note to organization pinning state (`org_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_organization_flag - */ -NoteParams.prototype['pinned_to_organization_flag'] = undefined; - -/** - * If set, the results are filtered by note to person pinning state (`person_id` is also required) - * @member {module:model/NumberBoolean} pinned_to_person_flag - */ -NoteParams.prototype['pinned_to_person_flag'] = undefined; - - - - - - -export default NoteParams; - diff --git a/src/model/NumberBoolean.js b/src/model/NumberBoolean.js deleted file mode 100644 index 6da2451c..00000000 --- a/src/model/NumberBoolean.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class NumberBoolean. -* @enum {} -* @readonly -*/ -export default class NumberBoolean { - - /** - * value: 0 - * @const - */ - "0" = 0; - - - /** - * value: 1 - * @const - */ - "1" = 1; - - - - /** - * Returns a NumberBoolean enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/NumberBoolean} The enum NumberBoolean value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/NumberBooleanDefault0.js b/src/model/NumberBooleanDefault0.js deleted file mode 100644 index cb7dbb3f..00000000 --- a/src/model/NumberBooleanDefault0.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class NumberBooleanDefault0. -* @enum {} -* @readonly -*/ -export default class NumberBooleanDefault0 { - - /** - * value: 0 - * @const - */ - "0" = 0; - - - /** - * value: 1 - * @const - */ - "1" = 1; - - - - /** - * Returns a NumberBooleanDefault0 enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/NumberBooleanDefault0} The enum NumberBooleanDefault0 value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/NumberBooleanDefault1.js b/src/model/NumberBooleanDefault1.js deleted file mode 100644 index efe7da15..00000000 --- a/src/model/NumberBooleanDefault1.js +++ /dev/null @@ -1,54 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class NumberBooleanDefault1. -* @enum {} -* @readonly -*/ -export default class NumberBooleanDefault1 { - - /** - * value: 0 - * @const - */ - "0" = 0; - - - /** - * value: 1 - * @const - */ - "1" = 1; - - - - /** - * Returns a NumberBooleanDefault1 enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/NumberBooleanDefault1} The enum NumberBooleanDefault1 value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/ObjectPrices.js b/src/model/ObjectPrices.js deleted file mode 100644 index 58ca6117..00000000 --- a/src/model/ObjectPrices.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ObjectPrices model module. - * @module model/ObjectPrices - * @version 1.0.0 - */ -class ObjectPrices { - /** - * Constructs a new ObjectPrices. - * @alias module:model/ObjectPrices - */ - constructor() { - - ObjectPrices.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ObjectPrices from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ObjectPrices} obj Optional instance to populate. - * @return {module:model/ObjectPrices} The populated ObjectPrices instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ObjectPrices(); - - if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], Object); - - delete data['prices']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Object of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) - * @member {Object} prices - */ -ObjectPrices.prototype['prices'] = undefined; - - - - - - -export default ObjectPrices; - diff --git a/src/model/OneLeadResponse200.js b/src/model/OneLeadResponse200.js deleted file mode 100644 index e425b188..00000000 --- a/src/model/OneLeadResponse200.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadResponse from './LeadResponse'; - -/** - * The OneLeadResponse200 model module. - * @module model/OneLeadResponse200 - * @version 1.0.0 - */ -class OneLeadResponse200 { - /** - * Constructs a new OneLeadResponse200. - * @alias module:model/OneLeadResponse200 - */ - constructor() { - - OneLeadResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OneLeadResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OneLeadResponse200} obj Optional instance to populate. - * @return {module:model/OneLeadResponse200} The populated OneLeadResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OneLeadResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = LeadResponse.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -OneLeadResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/LeadResponse} data - */ -OneLeadResponse200.prototype['data'] = undefined; - - - - - - -export default OneLeadResponse200; - diff --git a/src/model/OptionalNameObject.js b/src/model/OptionalNameObject.js deleted file mode 100644 index 268d42a7..00000000 --- a/src/model/OptionalNameObject.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OptionalNameObject model module. - * @module model/OptionalNameObject - * @version 1.0.0 - */ -class OptionalNameObject { - /** - * Constructs a new OptionalNameObject. - * @alias module:model/OptionalNameObject - */ - constructor() { - - OptionalNameObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OptionalNameObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OptionalNameObject} obj Optional instance to populate. - * @return {module:model/OptionalNameObject} The populated OptionalNameObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OptionalNameObject(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the product - * @member {String} name - */ -OptionalNameObject.prototype['name'] = undefined; - - - - - - -export default OptionalNameObject; - diff --git a/src/model/OrgAndOwnerId.js b/src/model/OrgAndOwnerId.js deleted file mode 100644 index 0aec7cd3..00000000 --- a/src/model/OrgAndOwnerId.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Owner from './Owner'; -import RelationshipOrganizationInfoItemWithActiveFlag from './RelationshipOrganizationInfoItemWithActiveFlag'; - -/** - * The OrgAndOwnerId model module. - * @module model/OrgAndOwnerId - * @version 1.0.0 - */ -class OrgAndOwnerId { - /** - * Constructs a new OrgAndOwnerId. - * @alias module:model/OrgAndOwnerId - */ - constructor() { - - OrgAndOwnerId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrgAndOwnerId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrgAndOwnerId} obj Optional instance to populate. - * @return {module:model/OrgAndOwnerId} The populated OrgAndOwnerId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrgAndOwnerId(); - - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = Owner.constructFromObject(data['owner_id']); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = RelationshipOrganizationInfoItemWithActiveFlag.constructFromObject(data['org_id']); - - delete data['org_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/Owner} owner_id - */ -OrgAndOwnerId.prototype['owner_id'] = undefined; - -/** - * @member {module:model/RelationshipOrganizationInfoItemWithActiveFlag} org_id - */ -OrgAndOwnerId.prototype['org_id'] = undefined; - - - - - - -export default OrgAndOwnerId; - diff --git a/src/model/OrganizationAddressInfo.js b/src/model/OrganizationAddressInfo.js deleted file mode 100644 index b10635b7..00000000 --- a/src/model/OrganizationAddressInfo.js +++ /dev/null @@ -1,189 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationAddressInfo model module. - * @module model/OrganizationAddressInfo - * @version 1.0.0 - */ -class OrganizationAddressInfo { - /** - * Constructs a new OrganizationAddressInfo. - * @alias module:model/OrganizationAddressInfo - */ - constructor() { - - OrganizationAddressInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationAddressInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationAddressInfo} obj Optional instance to populate. - * @return {module:model/OrganizationAddressInfo} The populated OrganizationAddressInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationAddressInfo(); - - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('address_subpremise')) { - obj['address_subpremise'] = ApiClient.convertToType(data['address_subpremise'], 'String'); - - delete data['address_subpremise']; - } - if (data.hasOwnProperty('address_street_number')) { - obj['address_street_number'] = ApiClient.convertToType(data['address_street_number'], 'String'); - - delete data['address_street_number']; - } - if (data.hasOwnProperty('address_route')) { - obj['address_route'] = ApiClient.convertToType(data['address_route'], 'String'); - - delete data['address_route']; - } - if (data.hasOwnProperty('address_sublocality')) { - obj['address_sublocality'] = ApiClient.convertToType(data['address_sublocality'], 'String'); - - delete data['address_sublocality']; - } - if (data.hasOwnProperty('address_locality')) { - obj['address_locality'] = ApiClient.convertToType(data['address_locality'], 'String'); - - delete data['address_locality']; - } - if (data.hasOwnProperty('address_admin_area_level_1')) { - obj['address_admin_area_level_1'] = ApiClient.convertToType(data['address_admin_area_level_1'], 'String'); - - delete data['address_admin_area_level_1']; - } - if (data.hasOwnProperty('address_admin_area_level_2')) { - obj['address_admin_area_level_2'] = ApiClient.convertToType(data['address_admin_area_level_2'], 'String'); - - delete data['address_admin_area_level_2']; - } - if (data.hasOwnProperty('address_country')) { - obj['address_country'] = ApiClient.convertToType(data['address_country'], 'String'); - - delete data['address_country']; - } - if (data.hasOwnProperty('address_postal_code')) { - obj['address_postal_code'] = ApiClient.convertToType(data['address_postal_code'], 'String'); - - delete data['address_postal_code']; - } - if (data.hasOwnProperty('address_formatted_address')) { - obj['address_formatted_address'] = ApiClient.convertToType(data['address_formatted_address'], 'String'); - - delete data['address_formatted_address']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The full address of the organization - * @member {String} address - */ -OrganizationAddressInfo.prototype['address'] = undefined; - -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -OrganizationAddressInfo.prototype['address_subpremise'] = undefined; - -/** - * The street number of the organization location - * @member {String} address_street_number - */ -OrganizationAddressInfo.prototype['address_street_number'] = undefined; - -/** - * The route of the organization location - * @member {String} address_route - */ -OrganizationAddressInfo.prototype['address_route'] = undefined; - -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -OrganizationAddressInfo.prototype['address_sublocality'] = undefined; - -/** - * The locality of the organization location - * @member {String} address_locality - */ -OrganizationAddressInfo.prototype['address_locality'] = undefined; - -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -OrganizationAddressInfo.prototype['address_admin_area_level_1'] = undefined; - -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -OrganizationAddressInfo.prototype['address_admin_area_level_2'] = undefined; - -/** - * The country of the organization location - * @member {String} address_country - */ -OrganizationAddressInfo.prototype['address_country'] = undefined; - -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -OrganizationAddressInfo.prototype['address_postal_code'] = undefined; - -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -OrganizationAddressInfo.prototype['address_formatted_address'] = undefined; - - - - - - -export default OrganizationAddressInfo; - diff --git a/src/model/OrganizationCountAndAddressInfo.js b/src/model/OrganizationCountAndAddressInfo.js deleted file mode 100644 index 5ff8b6ba..00000000 --- a/src/model/OrganizationCountAndAddressInfo.js +++ /dev/null @@ -1,380 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationAddressInfo from './OrganizationAddressInfo'; -import OrganizationCountInfo from './OrganizationCountInfo'; - -/** - * The OrganizationCountAndAddressInfo model module. - * @module model/OrganizationCountAndAddressInfo - * @version 1.0.0 - */ -class OrganizationCountAndAddressInfo { - /** - * Constructs a new OrganizationCountAndAddressInfo. - * @alias module:model/OrganizationCountAndAddressInfo - * @implements module:model/OrganizationCountInfo - * @implements module:model/OrganizationAddressInfo - */ - constructor() { - OrganizationCountInfo.initialize(this);OrganizationAddressInfo.initialize(this); - OrganizationCountAndAddressInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationCountAndAddressInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationCountAndAddressInfo} obj Optional instance to populate. - * @return {module:model/OrganizationCountAndAddressInfo} The populated OrganizationCountAndAddressInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationCountAndAddressInfo(); - OrganizationCountInfo.constructFromObject(data, obj); - OrganizationAddressInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('address_subpremise')) { - obj['address_subpremise'] = ApiClient.convertToType(data['address_subpremise'], 'String'); - - delete data['address_subpremise']; - } - if (data.hasOwnProperty('address_street_number')) { - obj['address_street_number'] = ApiClient.convertToType(data['address_street_number'], 'String'); - - delete data['address_street_number']; - } - if (data.hasOwnProperty('address_route')) { - obj['address_route'] = ApiClient.convertToType(data['address_route'], 'String'); - - delete data['address_route']; - } - if (data.hasOwnProperty('address_sublocality')) { - obj['address_sublocality'] = ApiClient.convertToType(data['address_sublocality'], 'String'); - - delete data['address_sublocality']; - } - if (data.hasOwnProperty('address_locality')) { - obj['address_locality'] = ApiClient.convertToType(data['address_locality'], 'String'); - - delete data['address_locality']; - } - if (data.hasOwnProperty('address_admin_area_level_1')) { - obj['address_admin_area_level_1'] = ApiClient.convertToType(data['address_admin_area_level_1'], 'String'); - - delete data['address_admin_area_level_1']; - } - if (data.hasOwnProperty('address_admin_area_level_2')) { - obj['address_admin_area_level_2'] = ApiClient.convertToType(data['address_admin_area_level_2'], 'String'); - - delete data['address_admin_area_level_2']; - } - if (data.hasOwnProperty('address_country')) { - obj['address_country'] = ApiClient.convertToType(data['address_country'], 'String'); - - delete data['address_country']; - } - if (data.hasOwnProperty('address_postal_code')) { - obj['address_postal_code'] = ApiClient.convertToType(data['address_postal_code'], 'String'); - - delete data['address_postal_code']; - } - if (data.hasOwnProperty('address_formatted_address')) { - obj['address_formatted_address'] = ApiClient.convertToType(data['address_formatted_address'], 'String'); - - delete data['address_formatted_address']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of email messages related to the organization - * @member {Number} email_messages_count - */ -OrganizationCountAndAddressInfo.prototype['email_messages_count'] = undefined; - -/** - * The count of persons related to the organization - * @member {Number} people_count - */ -OrganizationCountAndAddressInfo.prototype['people_count'] = undefined; - -/** - * The count of activities related to the organization - * @member {Number} activities_count - */ -OrganizationCountAndAddressInfo.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the organization - * @member {Number} done_activities_count - */ -OrganizationCountAndAddressInfo.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the organization - * @member {Number} undone_activities_count - */ -OrganizationCountAndAddressInfo.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the organization - * @member {Number} files_count - */ -OrganizationCountAndAddressInfo.prototype['files_count'] = undefined; - -/** - * The count of notes related to the organization - * @member {Number} notes_count - */ -OrganizationCountAndAddressInfo.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the organization - * @member {Number} followers_count - */ -OrganizationCountAndAddressInfo.prototype['followers_count'] = undefined; - -/** - * The full address of the organization - * @member {String} address - */ -OrganizationCountAndAddressInfo.prototype['address'] = undefined; - -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -OrganizationCountAndAddressInfo.prototype['address_subpremise'] = undefined; - -/** - * The street number of the organization location - * @member {String} address_street_number - */ -OrganizationCountAndAddressInfo.prototype['address_street_number'] = undefined; - -/** - * The route of the organization location - * @member {String} address_route - */ -OrganizationCountAndAddressInfo.prototype['address_route'] = undefined; - -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -OrganizationCountAndAddressInfo.prototype['address_sublocality'] = undefined; - -/** - * The locality of the organization location - * @member {String} address_locality - */ -OrganizationCountAndAddressInfo.prototype['address_locality'] = undefined; - -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -OrganizationCountAndAddressInfo.prototype['address_admin_area_level_1'] = undefined; - -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -OrganizationCountAndAddressInfo.prototype['address_admin_area_level_2'] = undefined; - -/** - * The country of the organization location - * @member {String} address_country - */ -OrganizationCountAndAddressInfo.prototype['address_country'] = undefined; - -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -OrganizationCountAndAddressInfo.prototype['address_postal_code'] = undefined; - -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -OrganizationCountAndAddressInfo.prototype['address_formatted_address'] = undefined; - - -// Implement OrganizationCountInfo interface: -/** - * The count of email messages related to the organization - * @member {Number} email_messages_count - */ -OrganizationCountInfo.prototype['email_messages_count'] = undefined; -/** - * The count of persons related to the organization - * @member {Number} people_count - */ -OrganizationCountInfo.prototype['people_count'] = undefined; -/** - * The count of activities related to the organization - * @member {Number} activities_count - */ -OrganizationCountInfo.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the organization - * @member {Number} done_activities_count - */ -OrganizationCountInfo.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the organization - * @member {Number} undone_activities_count - */ -OrganizationCountInfo.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the organization - * @member {Number} files_count - */ -OrganizationCountInfo.prototype['files_count'] = undefined; -/** - * The count of notes related to the organization - * @member {Number} notes_count - */ -OrganizationCountInfo.prototype['notes_count'] = undefined; -/** - * The count of followers related to the organization - * @member {Number} followers_count - */ -OrganizationCountInfo.prototype['followers_count'] = undefined; -// Implement OrganizationAddressInfo interface: -/** - * The full address of the organization - * @member {String} address - */ -OrganizationAddressInfo.prototype['address'] = undefined; -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -OrganizationAddressInfo.prototype['address_subpremise'] = undefined; -/** - * The street number of the organization location - * @member {String} address_street_number - */ -OrganizationAddressInfo.prototype['address_street_number'] = undefined; -/** - * The route of the organization location - * @member {String} address_route - */ -OrganizationAddressInfo.prototype['address_route'] = undefined; -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -OrganizationAddressInfo.prototype['address_sublocality'] = undefined; -/** - * The locality of the organization location - * @member {String} address_locality - */ -OrganizationAddressInfo.prototype['address_locality'] = undefined; -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -OrganizationAddressInfo.prototype['address_admin_area_level_1'] = undefined; -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -OrganizationAddressInfo.prototype['address_admin_area_level_2'] = undefined; -/** - * The country of the organization location - * @member {String} address_country - */ -OrganizationAddressInfo.prototype['address_country'] = undefined; -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -OrganizationAddressInfo.prototype['address_postal_code'] = undefined; -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -OrganizationAddressInfo.prototype['address_formatted_address'] = undefined; - - - - -export default OrganizationCountAndAddressInfo; - diff --git a/src/model/OrganizationCountInfo.js b/src/model/OrganizationCountInfo.js deleted file mode 100644 index de7876f6..00000000 --- a/src/model/OrganizationCountInfo.js +++ /dev/null @@ -1,156 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationCountInfo model module. - * @module model/OrganizationCountInfo - * @version 1.0.0 - */ -class OrganizationCountInfo { - /** - * Constructs a new OrganizationCountInfo. - * @alias module:model/OrganizationCountInfo - */ - constructor() { - - OrganizationCountInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationCountInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationCountInfo} obj Optional instance to populate. - * @return {module:model/OrganizationCountInfo} The populated OrganizationCountInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationCountInfo(); - - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of email messages related to the organization - * @member {Number} email_messages_count - */ -OrganizationCountInfo.prototype['email_messages_count'] = undefined; - -/** - * The count of persons related to the organization - * @member {Number} people_count - */ -OrganizationCountInfo.prototype['people_count'] = undefined; - -/** - * The count of activities related to the organization - * @member {Number} activities_count - */ -OrganizationCountInfo.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the organization - * @member {Number} done_activities_count - */ -OrganizationCountInfo.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the organization - * @member {Number} undone_activities_count - */ -OrganizationCountInfo.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the organization - * @member {Number} files_count - */ -OrganizationCountInfo.prototype['files_count'] = undefined; - -/** - * The count of notes related to the organization - * @member {Number} notes_count - */ -OrganizationCountInfo.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the organization - * @member {Number} followers_count - */ -OrganizationCountInfo.prototype['followers_count'] = undefined; - - - - - - -export default OrganizationCountInfo; - diff --git a/src/model/OrganizationData.js b/src/model/OrganizationData.js deleted file mode 100644 index 0fec296e..00000000 --- a/src/model/OrganizationData.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationData model module. - * @module model/OrganizationData - * @version 1.0.0 - */ -class OrganizationData { - /** - * Constructs a new OrganizationData. - * @alias module:model/OrganizationData - */ - constructor() { - - OrganizationData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationData} obj Optional instance to populate. - * @return {module:model/OrganizationData} The populated OrganizationData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationData(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the organization associated with the item - * @member {String} name - */ -OrganizationData.prototype['name'] = undefined; - -/** - * The number of people connected with the organization that is associated with the item - * @member {Number} people_count - */ -OrganizationData.prototype['people_count'] = undefined; - -/** - * The ID of the owner of the organization that is associated with the item - * @member {Number} owner_id - */ -OrganizationData.prototype['owner_id'] = undefined; - -/** - * The address of the organization - * @member {String} address - */ -OrganizationData.prototype['address'] = undefined; - -/** - * The BCC email of the organization associated with the item - * @member {String} cc_email - */ -OrganizationData.prototype['cc_email'] = undefined; - - - - - - -export default OrganizationData; - diff --git a/src/model/OrganizationDataWithId.js b/src/model/OrganizationDataWithId.js deleted file mode 100644 index 63c2d901..00000000 --- a/src/model/OrganizationDataWithId.js +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationData from './OrganizationData'; -import OrganizationDataWithIdAllOf from './OrganizationDataWithIdAllOf'; - -/** - * The OrganizationDataWithId model module. - * @module model/OrganizationDataWithId - * @version 1.0.0 - */ -class OrganizationDataWithId { - /** - * Constructs a new OrganizationDataWithId. - * The ID of the organization associated with the item - * @alias module:model/OrganizationDataWithId - * @implements module:model/OrganizationDataWithIdAllOf - * @implements module:model/OrganizationData - */ - constructor() { - OrganizationDataWithIdAllOf.initialize(this);OrganizationData.initialize(this); - OrganizationDataWithId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationDataWithId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationDataWithId} obj Optional instance to populate. - * @return {module:model/OrganizationDataWithId} The populated OrganizationDataWithId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationDataWithId(); - OrganizationDataWithIdAllOf.constructFromObject(data, obj); - OrganizationData.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization associated with the item - * @member {Number} id - */ -OrganizationDataWithId.prototype['id'] = undefined; - -/** - * The name of the organization associated with the item - * @member {String} name - */ -OrganizationDataWithId.prototype['name'] = undefined; - -/** - * The number of people connected with the organization that is associated with the item - * @member {Number} people_count - */ -OrganizationDataWithId.prototype['people_count'] = undefined; - -/** - * The ID of the owner of the organization that is associated with the item - * @member {Number} owner_id - */ -OrganizationDataWithId.prototype['owner_id'] = undefined; - -/** - * The address of the organization - * @member {String} address - */ -OrganizationDataWithId.prototype['address'] = undefined; - -/** - * The BCC email of the organization associated with the item - * @member {String} cc_email - */ -OrganizationDataWithId.prototype['cc_email'] = undefined; - - -// Implement OrganizationDataWithIdAllOf interface: -/** - * The ID of the organization associated with the item - * @member {Number} id - */ -OrganizationDataWithIdAllOf.prototype['id'] = undefined; -// Implement OrganizationData interface: -/** - * The name of the organization associated with the item - * @member {String} name - */ -OrganizationData.prototype['name'] = undefined; -/** - * The number of people connected with the organization that is associated with the item - * @member {Number} people_count - */ -OrganizationData.prototype['people_count'] = undefined; -/** - * The ID of the owner of the organization that is associated with the item - * @member {Number} owner_id - */ -OrganizationData.prototype['owner_id'] = undefined; -/** - * The address of the organization - * @member {String} address - */ -OrganizationData.prototype['address'] = undefined; -/** - * The BCC email of the organization associated with the item - * @member {String} cc_email - */ -OrganizationData.prototype['cc_email'] = undefined; - - - - -export default OrganizationDataWithId; - diff --git a/src/model/OrganizationDataWithIdAllOf.js b/src/model/OrganizationDataWithIdAllOf.js deleted file mode 100644 index ff4666b6..00000000 --- a/src/model/OrganizationDataWithIdAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationDataWithIdAllOf model module. - * @module model/OrganizationDataWithIdAllOf - * @version 1.0.0 - */ -class OrganizationDataWithIdAllOf { - /** - * Constructs a new OrganizationDataWithIdAllOf. - * @alias module:model/OrganizationDataWithIdAllOf - */ - constructor() { - - OrganizationDataWithIdAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationDataWithIdAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationDataWithIdAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationDataWithIdAllOf} The populated OrganizationDataWithIdAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationDataWithIdAllOf(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization associated with the item - * @member {Number} id - */ -OrganizationDataWithIdAllOf.prototype['id'] = undefined; - - - - - - -export default OrganizationDataWithIdAllOf; - diff --git a/src/model/OrganizationDataWithIdAndActiveFlag.js b/src/model/OrganizationDataWithIdAndActiveFlag.js deleted file mode 100644 index d96fee4f..00000000 --- a/src/model/OrganizationDataWithIdAndActiveFlag.js +++ /dev/null @@ -1,189 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationDataWithId from './OrganizationDataWithId'; -import OrganizationDataWithIdAndActiveFlagAllOf from './OrganizationDataWithIdAndActiveFlagAllOf'; - -/** - * The OrganizationDataWithIdAndActiveFlag model module. - * @module model/OrganizationDataWithIdAndActiveFlag - * @version 1.0.0 - */ -class OrganizationDataWithIdAndActiveFlag { - /** - * Constructs a new OrganizationDataWithIdAndActiveFlag. - * The ID of the organization associated with the item - * @alias module:model/OrganizationDataWithIdAndActiveFlag - * @implements module:model/OrganizationDataWithIdAndActiveFlagAllOf - * @implements module:model/OrganizationDataWithId - */ - constructor() { - OrganizationDataWithIdAndActiveFlagAllOf.initialize(this);OrganizationDataWithId.initialize(this); - OrganizationDataWithIdAndActiveFlag.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationDataWithIdAndActiveFlag from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationDataWithIdAndActiveFlag} obj Optional instance to populate. - * @return {module:model/OrganizationDataWithIdAndActiveFlag} The populated OrganizationDataWithIdAndActiveFlag instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationDataWithIdAndActiveFlag(); - OrganizationDataWithIdAndActiveFlagAllOf.constructFromObject(data, obj); - OrganizationDataWithId.constructFromObject(data, obj); - - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Whether the associated organization is active or not - * @member {Boolean} active_flag - */ -OrganizationDataWithIdAndActiveFlag.prototype['active_flag'] = undefined; - -/** - * The ID of the organization associated with the item - * @member {Number} id - */ -OrganizationDataWithIdAndActiveFlag.prototype['id'] = undefined; - -/** - * The name of the organization associated with the item - * @member {String} name - */ -OrganizationDataWithIdAndActiveFlag.prototype['name'] = undefined; - -/** - * The number of people connected with the organization that is associated with the item - * @member {Number} people_count - */ -OrganizationDataWithIdAndActiveFlag.prototype['people_count'] = undefined; - -/** - * The ID of the owner of the organization that is associated with the item - * @member {Number} owner_id - */ -OrganizationDataWithIdAndActiveFlag.prototype['owner_id'] = undefined; - -/** - * The address of the organization - * @member {String} address - */ -OrganizationDataWithIdAndActiveFlag.prototype['address'] = undefined; - -/** - * The BCC email of the organization associated with the item - * @member {String} cc_email - */ -OrganizationDataWithIdAndActiveFlag.prototype['cc_email'] = undefined; - - -// Implement OrganizationDataWithIdAndActiveFlagAllOf interface: -/** - * Whether the associated organization is active or not - * @member {Boolean} active_flag - */ -OrganizationDataWithIdAndActiveFlagAllOf.prototype['active_flag'] = undefined; -// Implement OrganizationDataWithId interface: -/** - * The ID of the organization associated with the item - * @member {Number} id - */ -OrganizationDataWithId.prototype['id'] = undefined; -/** - * The name of the organization associated with the item - * @member {String} name - */ -OrganizationDataWithId.prototype['name'] = undefined; -/** - * The number of people connected with the organization that is associated with the item - * @member {Number} people_count - */ -OrganizationDataWithId.prototype['people_count'] = undefined; -/** - * The ID of the owner of the organization that is associated with the item - * @member {Number} owner_id - */ -OrganizationDataWithId.prototype['owner_id'] = undefined; -/** - * The address of the organization - * @member {String} address - */ -OrganizationDataWithId.prototype['address'] = undefined; -/** - * The BCC email of the organization associated with the item - * @member {String} cc_email - */ -OrganizationDataWithId.prototype['cc_email'] = undefined; - - - - -export default OrganizationDataWithIdAndActiveFlag; - diff --git a/src/model/OrganizationDataWithIdAndActiveFlagAllOf.js b/src/model/OrganizationDataWithIdAndActiveFlagAllOf.js deleted file mode 100644 index 3fb571ac..00000000 --- a/src/model/OrganizationDataWithIdAndActiveFlagAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationDataWithIdAndActiveFlagAllOf model module. - * @module model/OrganizationDataWithIdAndActiveFlagAllOf - * @version 1.0.0 - */ -class OrganizationDataWithIdAndActiveFlagAllOf { - /** - * Constructs a new OrganizationDataWithIdAndActiveFlagAllOf. - * @alias module:model/OrganizationDataWithIdAndActiveFlagAllOf - */ - constructor() { - - OrganizationDataWithIdAndActiveFlagAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationDataWithIdAndActiveFlagAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationDataWithIdAndActiveFlagAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationDataWithIdAndActiveFlagAllOf} The populated OrganizationDataWithIdAndActiveFlagAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationDataWithIdAndActiveFlagAllOf(); - - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Whether the associated organization is active or not - * @member {Boolean} active_flag - */ -OrganizationDataWithIdAndActiveFlagAllOf.prototype['active_flag'] = undefined; - - - - - - -export default OrganizationDataWithIdAndActiveFlagAllOf; - diff --git a/src/model/OrganizationDeleteResponse.js b/src/model/OrganizationDeleteResponse.js deleted file mode 100644 index 9b157796..00000000 --- a/src/model/OrganizationDeleteResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationDeleteResponseData from './OrganizationDeleteResponseData'; - -/** - * The OrganizationDeleteResponse model module. - * @module model/OrganizationDeleteResponse - * @version 1.0.0 - */ -class OrganizationDeleteResponse { - /** - * Constructs a new OrganizationDeleteResponse. - * @alias module:model/OrganizationDeleteResponse - */ - constructor() { - - OrganizationDeleteResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationDeleteResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationDeleteResponse} obj Optional instance to populate. - * @return {module:model/OrganizationDeleteResponse} The populated OrganizationDeleteResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationDeleteResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationDeleteResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -OrganizationDeleteResponse.prototype['success'] = undefined; - -/** - * @member {module:model/OrganizationDeleteResponseData} data - */ -OrganizationDeleteResponse.prototype['data'] = undefined; - - - - - - -export default OrganizationDeleteResponse; - diff --git a/src/model/OrganizationDeleteResponseData.js b/src/model/OrganizationDeleteResponseData.js deleted file mode 100644 index 7b22d8ef..00000000 --- a/src/model/OrganizationDeleteResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationDeleteResponseData model module. - * @module model/OrganizationDeleteResponseData - * @version 1.0.0 - */ -class OrganizationDeleteResponseData { - /** - * Constructs a new OrganizationDeleteResponseData. - * @alias module:model/OrganizationDeleteResponseData - */ - constructor() { - - OrganizationDeleteResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationDeleteResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationDeleteResponseData} obj Optional instance to populate. - * @return {module:model/OrganizationDeleteResponseData} The populated OrganizationDeleteResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationDeleteResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization that was deleted - * @member {Number} id - */ -OrganizationDeleteResponseData.prototype['id'] = undefined; - - - - - - -export default OrganizationDeleteResponseData; - diff --git a/src/model/OrganizationDetailsGetResponse.js b/src/model/OrganizationDetailsGetResponse.js deleted file mode 100644 index 8d3d18b5..00000000 --- a/src/model/OrganizationDetailsGetResponse.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import BaseResponse from './BaseResponse'; -import OrganizationDetailsGetResponseAllOf from './OrganizationDetailsGetResponseAllOf'; -import OrganizationDetailsGetResponseAllOfAdditionalData from './OrganizationDetailsGetResponseAllOfAdditionalData'; -import OrganizationItem from './OrganizationItem'; - -/** - * The OrganizationDetailsGetResponse model module. - * @module model/OrganizationDetailsGetResponse - * @version 1.0.0 - */ -class OrganizationDetailsGetResponse { - /** - * Constructs a new OrganizationDetailsGetResponse. - * @alias module:model/OrganizationDetailsGetResponse - * @implements module:model/BaseResponse - * @implements module:model/OrganizationDetailsGetResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);OrganizationDetailsGetResponseAllOf.initialize(this); - OrganizationDetailsGetResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationDetailsGetResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationDetailsGetResponse} obj Optional instance to populate. - * @return {module:model/OrganizationDetailsGetResponse} The populated OrganizationDetailsGetResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationDetailsGetResponse(); - BaseResponse.constructFromObject(data, obj); - OrganizationDetailsGetResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = OrganizationDetailsGetResponseAllOfAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -OrganizationDetailsGetResponse.prototype['success'] = undefined; - -/** - * @member {module:model/OrganizationItem} data - */ -OrganizationDetailsGetResponse.prototype['data'] = undefined; - -/** - * @member {module:model/OrganizationDetailsGetResponseAllOfAdditionalData} additional_data - */ -OrganizationDetailsGetResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationDetailsGetResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement OrganizationDetailsGetResponseAllOf interface: -/** - * @member {module:model/OrganizationItem} data - */ -OrganizationDetailsGetResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/OrganizationDetailsGetResponseAllOfAdditionalData} additional_data - */ -OrganizationDetailsGetResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationDetailsGetResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default OrganizationDetailsGetResponse; - diff --git a/src/model/OrganizationDetailsGetResponseAllOf.js b/src/model/OrganizationDetailsGetResponseAllOf.js deleted file mode 100644 index 08f495a0..00000000 --- a/src/model/OrganizationDetailsGetResponseAllOf.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import OrganizationDetailsGetResponseAllOfAdditionalData from './OrganizationDetailsGetResponseAllOfAdditionalData'; -import OrganizationItem from './OrganizationItem'; - -/** - * The OrganizationDetailsGetResponseAllOf model module. - * @module model/OrganizationDetailsGetResponseAllOf - * @version 1.0.0 - */ -class OrganizationDetailsGetResponseAllOf { - /** - * Constructs a new OrganizationDetailsGetResponseAllOf. - * @alias module:model/OrganizationDetailsGetResponseAllOf - */ - constructor() { - - OrganizationDetailsGetResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationDetailsGetResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationDetailsGetResponseAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationDetailsGetResponseAllOf} The populated OrganizationDetailsGetResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationDetailsGetResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = OrganizationDetailsGetResponseAllOfAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/OrganizationItem} data - */ -OrganizationDetailsGetResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/OrganizationDetailsGetResponseAllOfAdditionalData} additional_data - */ -OrganizationDetailsGetResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationDetailsGetResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default OrganizationDetailsGetResponseAllOf; - diff --git a/src/model/OrganizationDetailsGetResponseAllOfAdditionalData.js b/src/model/OrganizationDetailsGetResponseAllOfAdditionalData.js deleted file mode 100644 index f49c13de..00000000 --- a/src/model/OrganizationDetailsGetResponseAllOfAdditionalData.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedFollowerData from './RelatedFollowerData'; - -/** - * The OrganizationDetailsGetResponseAllOfAdditionalData model module. - * @module model/OrganizationDetailsGetResponseAllOfAdditionalData - * @version 1.0.0 - */ -class OrganizationDetailsGetResponseAllOfAdditionalData { - /** - * Constructs a new OrganizationDetailsGetResponseAllOfAdditionalData. - * @alias module:model/OrganizationDetailsGetResponseAllOfAdditionalData - */ - constructor() { - - OrganizationDetailsGetResponseAllOfAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationDetailsGetResponseAllOfAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationDetailsGetResponseAllOfAdditionalData} obj Optional instance to populate. - * @return {module:model/OrganizationDetailsGetResponseAllOfAdditionalData} The populated OrganizationDetailsGetResponseAllOfAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationDetailsGetResponseAllOfAdditionalData(); - - if (data.hasOwnProperty('followers')) { - obj['followers'] = RelatedFollowerData.constructFromObject(data['followers']); - - delete data['followers']; - } - if (data.hasOwnProperty('dropbox_email')) { - obj['dropbox_email'] = ApiClient.convertToType(data['dropbox_email'], 'String'); - - delete data['dropbox_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedFollowerData} followers - */ -OrganizationDetailsGetResponseAllOfAdditionalData.prototype['followers'] = undefined; - -/** - * Dropbox email for the organization - * @member {String} dropbox_email - */ -OrganizationDetailsGetResponseAllOfAdditionalData.prototype['dropbox_email'] = undefined; - - - - - - -export default OrganizationDetailsGetResponseAllOfAdditionalData; - diff --git a/src/model/OrganizationFlowResponse.js b/src/model/OrganizationFlowResponse.js deleted file mode 100644 index 7ef6c346..00000000 --- a/src/model/OrganizationFlowResponse.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import OrganizationFlowResponseAllOf from './OrganizationFlowResponseAllOf'; -import OrganizationFlowResponseAllOfData from './OrganizationFlowResponseAllOfData'; -import OrganizationFlowResponseAllOfRelatedObjects from './OrganizationFlowResponseAllOfRelatedObjects'; - -/** - * The OrganizationFlowResponse model module. - * @module model/OrganizationFlowResponse - * @version 1.0.0 - */ -class OrganizationFlowResponse { - /** - * Constructs a new OrganizationFlowResponse. - * @alias module:model/OrganizationFlowResponse - * @implements module:model/BaseResponse - * @implements module:model/OrganizationFlowResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);OrganizationFlowResponseAllOf.initialize(this); - OrganizationFlowResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationFlowResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationFlowResponse} obj Optional instance to populate. - * @return {module:model/OrganizationFlowResponse} The populated OrganizationFlowResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationFlowResponse(); - BaseResponse.constructFromObject(data, obj); - OrganizationFlowResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [OrganizationFlowResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = OrganizationFlowResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -OrganizationFlowResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -OrganizationFlowResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -OrganizationFlowResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/OrganizationFlowResponseAllOfRelatedObjects} related_objects - */ -OrganizationFlowResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement OrganizationFlowResponseAllOf interface: -/** - * @member {Array.} data - */ -OrganizationFlowResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -OrganizationFlowResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/OrganizationFlowResponseAllOfRelatedObjects} related_objects - */ -OrganizationFlowResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default OrganizationFlowResponse; - diff --git a/src/model/OrganizationFlowResponseAllOf.js b/src/model/OrganizationFlowResponseAllOf.js deleted file mode 100644 index 563dd9fc..00000000 --- a/src/model/OrganizationFlowResponseAllOf.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import OrganizationFlowResponseAllOfData from './OrganizationFlowResponseAllOfData'; -import OrganizationFlowResponseAllOfRelatedObjects from './OrganizationFlowResponseAllOfRelatedObjects'; - -/** - * The OrganizationFlowResponseAllOf model module. - * @module model/OrganizationFlowResponseAllOf - * @version 1.0.0 - */ -class OrganizationFlowResponseAllOf { - /** - * Constructs a new OrganizationFlowResponseAllOf. - * @alias module:model/OrganizationFlowResponseAllOf - */ - constructor() { - - OrganizationFlowResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationFlowResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationFlowResponseAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationFlowResponseAllOf} The populated OrganizationFlowResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationFlowResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [OrganizationFlowResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = OrganizationFlowResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Array.} data - */ -OrganizationFlowResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -OrganizationFlowResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/OrganizationFlowResponseAllOfRelatedObjects} related_objects - */ -OrganizationFlowResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default OrganizationFlowResponseAllOf; - diff --git a/src/model/OrganizationFlowResponseAllOfData.js b/src/model/OrganizationFlowResponseAllOfData.js deleted file mode 100644 index b8370fa7..00000000 --- a/src/model/OrganizationFlowResponseAllOfData.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationFlowResponseAllOfData model module. - * @module model/OrganizationFlowResponseAllOfData - * @version 1.0.0 - */ -class OrganizationFlowResponseAllOfData { - /** - * Constructs a new OrganizationFlowResponseAllOfData. - * @alias module:model/OrganizationFlowResponseAllOfData - */ - constructor() { - - OrganizationFlowResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationFlowResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationFlowResponseAllOfData} obj Optional instance to populate. - * @return {module:model/OrganizationFlowResponseAllOfData} The populated OrganizationFlowResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationFlowResponseAllOfData(); - - if (data.hasOwnProperty('object')) { - obj['object'] = ApiClient.convertToType(data['object'], 'String'); - - delete data['object']; - } - if (data.hasOwnProperty('timestamp')) { - obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String'); - - delete data['timestamp']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The type of the person update. (Possible object types - organizationChange, dealChange, file, activity) - * @member {String} object - */ -OrganizationFlowResponseAllOfData.prototype['object'] = undefined; - -/** - * The creation date and time of the update - * @member {String} timestamp - */ -OrganizationFlowResponseAllOfData.prototype['timestamp'] = undefined; - -/** - * The data related to the update - * @member {Object} data - */ -OrganizationFlowResponseAllOfData.prototype['data'] = undefined; - - - - - - -export default OrganizationFlowResponseAllOfData; - diff --git a/src/model/OrganizationFlowResponseAllOfRelatedObjects.js b/src/model/OrganizationFlowResponseAllOfRelatedObjects.js deleted file mode 100644 index b7ba5a44..00000000 --- a/src/model/OrganizationFlowResponseAllOfRelatedObjects.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedOrganizationData from './RelatedOrganizationData'; -import RelatedUserData from './RelatedUserData'; - -/** - * The OrganizationFlowResponseAllOfRelatedObjects model module. - * @module model/OrganizationFlowResponseAllOfRelatedObjects - * @version 1.0.0 - */ -class OrganizationFlowResponseAllOfRelatedObjects { - /** - * Constructs a new OrganizationFlowResponseAllOfRelatedObjects. - * @alias module:model/OrganizationFlowResponseAllOfRelatedObjects - */ - constructor() { - - OrganizationFlowResponseAllOfRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationFlowResponseAllOfRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationFlowResponseAllOfRelatedObjects} obj Optional instance to populate. - * @return {module:model/OrganizationFlowResponseAllOfRelatedObjects} The populated OrganizationFlowResponseAllOfRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationFlowResponseAllOfRelatedObjects(); - - if (data.hasOwnProperty('organization')) { - obj['organization'] = RelatedOrganizationData.constructFromObject(data['organization']); - - delete data['organization']; - } - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedOrganizationData} organization - */ -OrganizationFlowResponseAllOfRelatedObjects.prototype['organization'] = undefined; - -/** - * @member {module:model/RelatedUserData} user - */ -OrganizationFlowResponseAllOfRelatedObjects.prototype['user'] = undefined; - - - - - - -export default OrganizationFlowResponseAllOfRelatedObjects; - diff --git a/src/model/OrganizationFollowerDeleteResponse.js b/src/model/OrganizationFollowerDeleteResponse.js deleted file mode 100644 index b62d7e00..00000000 --- a/src/model/OrganizationFollowerDeleteResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationFollowerDeleteResponseData from './OrganizationFollowerDeleteResponseData'; - -/** - * The OrganizationFollowerDeleteResponse model module. - * @module model/OrganizationFollowerDeleteResponse - * @version 1.0.0 - */ -class OrganizationFollowerDeleteResponse { - /** - * Constructs a new OrganizationFollowerDeleteResponse. - * @alias module:model/OrganizationFollowerDeleteResponse - */ - constructor() { - - OrganizationFollowerDeleteResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationFollowerDeleteResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationFollowerDeleteResponse} obj Optional instance to populate. - * @return {module:model/OrganizationFollowerDeleteResponse} The populated OrganizationFollowerDeleteResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationFollowerDeleteResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationFollowerDeleteResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -OrganizationFollowerDeleteResponse.prototype['success'] = undefined; - -/** - * @member {module:model/OrganizationFollowerDeleteResponseData} data - */ -OrganizationFollowerDeleteResponse.prototype['data'] = undefined; - - - - - - -export default OrganizationFollowerDeleteResponse; - diff --git a/src/model/OrganizationFollowerDeleteResponseData.js b/src/model/OrganizationFollowerDeleteResponseData.js deleted file mode 100644 index e9e16e08..00000000 --- a/src/model/OrganizationFollowerDeleteResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationFollowerDeleteResponseData model module. - * @module model/OrganizationFollowerDeleteResponseData - * @version 1.0.0 - */ -class OrganizationFollowerDeleteResponseData { - /** - * Constructs a new OrganizationFollowerDeleteResponseData. - * @alias module:model/OrganizationFollowerDeleteResponseData - */ - constructor() { - - OrganizationFollowerDeleteResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationFollowerDeleteResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationFollowerDeleteResponseData} obj Optional instance to populate. - * @return {module:model/OrganizationFollowerDeleteResponseData} The populated OrganizationFollowerDeleteResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationFollowerDeleteResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the follower that was deleted from the organization - * @member {Number} id - */ -OrganizationFollowerDeleteResponseData.prototype['id'] = undefined; - - - - - - -export default OrganizationFollowerDeleteResponseData; - diff --git a/src/model/OrganizationFollowerItem.js b/src/model/OrganizationFollowerItem.js deleted file mode 100644 index 1753282c..00000000 --- a/src/model/OrganizationFollowerItem.js +++ /dev/null @@ -1,140 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseFollowerItem from './BaseFollowerItem'; -import OrganizationFollowerItemAllOf from './OrganizationFollowerItemAllOf'; - -/** - * The OrganizationFollowerItem model module. - * @module model/OrganizationFollowerItem - * @version 1.0.0 - */ -class OrganizationFollowerItem { - /** - * Constructs a new OrganizationFollowerItem. - * @alias module:model/OrganizationFollowerItem - * @implements module:model/OrganizationFollowerItemAllOf - * @implements module:model/BaseFollowerItem - */ - constructor() { - OrganizationFollowerItemAllOf.initialize(this);BaseFollowerItem.initialize(this); - OrganizationFollowerItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationFollowerItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationFollowerItem} obj Optional instance to populate. - * @return {module:model/OrganizationFollowerItem} The populated OrganizationFollowerItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationFollowerItem(); - OrganizationFollowerItemAllOf.constructFromObject(data, obj); - BaseFollowerItem.constructFromObject(data, obj); - - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization - * @member {Number} org_id - */ -OrganizationFollowerItem.prototype['org_id'] = undefined; - -/** - * The user ID of the follower related to the item - * @member {Number} user_id - */ -OrganizationFollowerItem.prototype['user_id'] = undefined; - -/** - * The ID of the follower - * @member {Number} id - */ -OrganizationFollowerItem.prototype['id'] = undefined; - -/** - * The date and time of adding the follower to the item - * @member {Date} add_time - */ -OrganizationFollowerItem.prototype['add_time'] = undefined; - - -// Implement OrganizationFollowerItemAllOf interface: -/** - * The ID of the organization - * @member {Number} org_id - */ -OrganizationFollowerItemAllOf.prototype['org_id'] = undefined; -// Implement BaseFollowerItem interface: -/** - * The user ID of the follower related to the item - * @member {Number} user_id - */ -BaseFollowerItem.prototype['user_id'] = undefined; -/** - * The ID of the follower - * @member {Number} id - */ -BaseFollowerItem.prototype['id'] = undefined; -/** - * The date and time of adding the follower to the item - * @member {Date} add_time - */ -BaseFollowerItem.prototype['add_time'] = undefined; - - - - -export default OrganizationFollowerItem; - diff --git a/src/model/OrganizationFollowerItemAllOf.js b/src/model/OrganizationFollowerItemAllOf.js deleted file mode 100644 index 4a249215..00000000 --- a/src/model/OrganizationFollowerItemAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationFollowerItemAllOf model module. - * @module model/OrganizationFollowerItemAllOf - * @version 1.0.0 - */ -class OrganizationFollowerItemAllOf { - /** - * Constructs a new OrganizationFollowerItemAllOf. - * @alias module:model/OrganizationFollowerItemAllOf - */ - constructor() { - - OrganizationFollowerItemAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationFollowerItemAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationFollowerItemAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationFollowerItemAllOf} The populated OrganizationFollowerItemAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationFollowerItemAllOf(); - - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization - * @member {Number} org_id - */ -OrganizationFollowerItemAllOf.prototype['org_id'] = undefined; - - - - - - -export default OrganizationFollowerItemAllOf; - diff --git a/src/model/OrganizationFollowerPostResponse.js b/src/model/OrganizationFollowerPostResponse.js deleted file mode 100644 index 55f1aad8..00000000 --- a/src/model/OrganizationFollowerPostResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationFollowerItem from './OrganizationFollowerItem'; - -/** - * The OrganizationFollowerPostResponse model module. - * @module model/OrganizationFollowerPostResponse - * @version 1.0.0 - */ -class OrganizationFollowerPostResponse { - /** - * Constructs a new OrganizationFollowerPostResponse. - * @alias module:model/OrganizationFollowerPostResponse - */ - constructor() { - - OrganizationFollowerPostResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationFollowerPostResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationFollowerPostResponse} obj Optional instance to populate. - * @return {module:model/OrganizationFollowerPostResponse} The populated OrganizationFollowerPostResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationFollowerPostResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationFollowerItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -OrganizationFollowerPostResponse.prototype['success'] = undefined; - -/** - * @member {module:model/OrganizationFollowerItem} data - */ -OrganizationFollowerPostResponse.prototype['data'] = undefined; - - - - - - -export default OrganizationFollowerPostResponse; - diff --git a/src/model/OrganizationFollowersListResponse.js b/src/model/OrganizationFollowersListResponse.js deleted file mode 100644 index 67b6093b..00000000 --- a/src/model/OrganizationFollowersListResponse.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import OrganizationFollowerItem from './OrganizationFollowerItem'; - -/** - * The OrganizationFollowersListResponse model module. - * @module model/OrganizationFollowersListResponse - * @version 1.0.0 - */ -class OrganizationFollowersListResponse { - /** - * Constructs a new OrganizationFollowersListResponse. - * @alias module:model/OrganizationFollowersListResponse - */ - constructor() { - - OrganizationFollowersListResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationFollowersListResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationFollowersListResponse} obj Optional instance to populate. - * @return {module:model/OrganizationFollowersListResponse} The populated OrganizationFollowersListResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationFollowersListResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [OrganizationFollowerItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -OrganizationFollowersListResponse.prototype['success'] = undefined; - -/** - * The array of followers - * @member {Array.} data - */ -OrganizationFollowersListResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -OrganizationFollowersListResponse.prototype['additional_data'] = undefined; - - - - - - -export default OrganizationFollowersListResponse; - diff --git a/src/model/OrganizationItem.js b/src/model/OrganizationItem.js deleted file mode 100644 index e629d997..00000000 --- a/src/model/OrganizationItem.js +++ /dev/null @@ -1,874 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseOrganizationItemWithEditNameFlag from './BaseOrganizationItemWithEditNameFlag'; -import OrganizationItemAllOf from './OrganizationItemAllOf'; -import Owner from './Owner'; -import PictureDataWithValue from './PictureDataWithValue'; - -/** - * The OrganizationItem model module. - * @module model/OrganizationItem - * @version 1.0.0 - */ -class OrganizationItem { - /** - * Constructs a new OrganizationItem. - * @alias module:model/OrganizationItem - * @implements module:model/BaseOrganizationItemWithEditNameFlag - * @implements module:model/OrganizationItemAllOf - */ - constructor() { - BaseOrganizationItemWithEditNameFlag.initialize(this);OrganizationItemAllOf.initialize(this); - OrganizationItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationItem} obj Optional instance to populate. - * @return {module:model/OrganizationItem} The populated OrganizationItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationItem(); - BaseOrganizationItemWithEditNameFlag.constructFromObject(data, obj); - OrganizationItemAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = Owner.constructFromObject(data['owner_id']); - - delete data['owner_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('picture_id')) { - obj['picture_id'] = PictureDataWithValue.constructFromObject(data['picture_id']); - - delete data['picture_id']; - } - if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String'); - - delete data['country_code']; - } - if (data.hasOwnProperty('first_char')) { - obj['first_char'] = ApiClient.convertToType(data['first_char'], 'String'); - - delete data['first_char']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('address_subpremise')) { - obj['address_subpremise'] = ApiClient.convertToType(data['address_subpremise'], 'String'); - - delete data['address_subpremise']; - } - if (data.hasOwnProperty('address_street_number')) { - obj['address_street_number'] = ApiClient.convertToType(data['address_street_number'], 'String'); - - delete data['address_street_number']; - } - if (data.hasOwnProperty('address_route')) { - obj['address_route'] = ApiClient.convertToType(data['address_route'], 'String'); - - delete data['address_route']; - } - if (data.hasOwnProperty('address_sublocality')) { - obj['address_sublocality'] = ApiClient.convertToType(data['address_sublocality'], 'String'); - - delete data['address_sublocality']; - } - if (data.hasOwnProperty('address_locality')) { - obj['address_locality'] = ApiClient.convertToType(data['address_locality'], 'String'); - - delete data['address_locality']; - } - if (data.hasOwnProperty('address_admin_area_level_1')) { - obj['address_admin_area_level_1'] = ApiClient.convertToType(data['address_admin_area_level_1'], 'String'); - - delete data['address_admin_area_level_1']; - } - if (data.hasOwnProperty('address_admin_area_level_2')) { - obj['address_admin_area_level_2'] = ApiClient.convertToType(data['address_admin_area_level_2'], 'String'); - - delete data['address_admin_area_level_2']; - } - if (data.hasOwnProperty('address_country')) { - obj['address_country'] = ApiClient.convertToType(data['address_country'], 'String'); - - delete data['address_country']; - } - if (data.hasOwnProperty('address_postal_code')) { - obj['address_postal_code'] = ApiClient.convertToType(data['address_postal_code'], 'String'); - - delete data['address_postal_code']; - } - if (data.hasOwnProperty('address_formatted_address')) { - obj['address_formatted_address'] = ApiClient.convertToType(data['address_formatted_address'], 'String'); - - delete data['address_formatted_address']; - } - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - if (data.hasOwnProperty('edit_name')) { - obj['edit_name'] = ApiClient.convertToType(data['edit_name'], 'Boolean'); - - delete data['edit_name']; - } - if (data.hasOwnProperty('last_activity')) { - obj['last_activity'] = ApiClient.convertToType(data['last_activity'], Object); - - delete data['last_activity']; - } - if (data.hasOwnProperty('next_activity')) { - obj['next_activity'] = ApiClient.convertToType(data['next_activity'], Object); - - delete data['next_activity']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization - * @member {Number} id - */ -OrganizationItem.prototype['id'] = undefined; - -/** - * The ID of the company related to the organization - * @member {Number} company_id - */ -OrganizationItem.prototype['company_id'] = undefined; - -/** - * @member {module:model/Owner} owner_id - */ -OrganizationItem.prototype['owner_id'] = undefined; - -/** - * The name of the organization - * @member {String} name - */ -OrganizationItem.prototype['name'] = undefined; - -/** - * Whether the organization is active or not - * @member {Boolean} active_flag - */ -OrganizationItem.prototype['active_flag'] = undefined; - -/** - * @member {module:model/PictureDataWithValue} picture_id - */ -OrganizationItem.prototype['picture_id'] = undefined; - -/** - * The country code of the organization - * @member {String} country_code - */ -OrganizationItem.prototype['country_code'] = undefined; - -/** - * The first character of the organization name - * @member {String} first_char - */ -OrganizationItem.prototype['first_char'] = undefined; - -/** - * The creation date and time of the organization - * @member {String} add_time - */ -OrganizationItem.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the organization - * @member {String} update_time - */ -OrganizationItem.prototype['update_time'] = undefined; - -/** - * The visibility group ID of who can see the organization - * @member {String} visible_to - */ -OrganizationItem.prototype['visible_to'] = undefined; - -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -OrganizationItem.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -OrganizationItem.prototype['label_ids'] = undefined; - -/** - * The name of the organization owner - * @member {String} owner_name - */ -OrganizationItem.prototype['owner_name'] = undefined; - -/** - * The BCC email associated with the organization - * @member {String} cc_email - */ -OrganizationItem.prototype['cc_email'] = undefined; - -/** - * The count of email messages related to the organization - * @member {Number} email_messages_count - */ -OrganizationItem.prototype['email_messages_count'] = undefined; - -/** - * The count of persons related to the organization - * @member {Number} people_count - */ -OrganizationItem.prototype['people_count'] = undefined; - -/** - * The count of activities related to the organization - * @member {Number} activities_count - */ -OrganizationItem.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the organization - * @member {Number} done_activities_count - */ -OrganizationItem.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the organization - * @member {Number} undone_activities_count - */ -OrganizationItem.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the organization - * @member {Number} files_count - */ -OrganizationItem.prototype['files_count'] = undefined; - -/** - * The count of notes related to the organization - * @member {Number} notes_count - */ -OrganizationItem.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the organization - * @member {Number} followers_count - */ -OrganizationItem.prototype['followers_count'] = undefined; - -/** - * The full address of the organization - * @member {String} address - */ -OrganizationItem.prototype['address'] = undefined; - -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -OrganizationItem.prototype['address_subpremise'] = undefined; - -/** - * The street number of the organization location - * @member {String} address_street_number - */ -OrganizationItem.prototype['address_street_number'] = undefined; - -/** - * The route of the organization location - * @member {String} address_route - */ -OrganizationItem.prototype['address_route'] = undefined; - -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -OrganizationItem.prototype['address_sublocality'] = undefined; - -/** - * The locality of the organization location - * @member {String} address_locality - */ -OrganizationItem.prototype['address_locality'] = undefined; - -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -OrganizationItem.prototype['address_admin_area_level_1'] = undefined; - -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -OrganizationItem.prototype['address_admin_area_level_2'] = undefined; - -/** - * The country of the organization location - * @member {String} address_country - */ -OrganizationItem.prototype['address_country'] = undefined; - -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -OrganizationItem.prototype['address_postal_code'] = undefined; - -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -OrganizationItem.prototype['address_formatted_address'] = undefined; - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -OrganizationItem.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -OrganizationItem.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -OrganizationItem.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -OrganizationItem.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -OrganizationItem.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -OrganizationItem.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -OrganizationItem.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -OrganizationItem.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -OrganizationItem.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -OrganizationItem.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -OrganizationItem.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -OrganizationItem.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -OrganizationItem.prototype['last_activity_date'] = undefined; - -/** - * If the company ID of the organization and company ID of the request is same or not - * @member {Boolean} edit_name - */ -OrganizationItem.prototype['edit_name'] = undefined; - -/** - * Please refer to response schema of Activity - * @member {Object} last_activity - */ -OrganizationItem.prototype['last_activity'] = undefined; - -/** - * Please refer to response schema of Activity - * @member {Object} next_activity - */ -OrganizationItem.prototype['next_activity'] = undefined; - - -// Implement BaseOrganizationItemWithEditNameFlag interface: -/** - * The ID of the organization - * @member {Number} id - */ -BaseOrganizationItemWithEditNameFlag.prototype['id'] = undefined; -/** - * The ID of the company related to the organization - * @member {Number} company_id - */ -BaseOrganizationItemWithEditNameFlag.prototype['company_id'] = undefined; -/** - * @member {module:model/Owner} owner_id - */ -BaseOrganizationItemWithEditNameFlag.prototype['owner_id'] = undefined; -/** - * The name of the organization - * @member {String} name - */ -BaseOrganizationItemWithEditNameFlag.prototype['name'] = undefined; -/** - * Whether the organization is active or not - * @member {Boolean} active_flag - */ -BaseOrganizationItemWithEditNameFlag.prototype['active_flag'] = undefined; -/** - * @member {module:model/PictureDataWithValue} picture_id - */ -BaseOrganizationItemWithEditNameFlag.prototype['picture_id'] = undefined; -/** - * The country code of the organization - * @member {String} country_code - */ -BaseOrganizationItemWithEditNameFlag.prototype['country_code'] = undefined; -/** - * The first character of the organization name - * @member {String} first_char - */ -BaseOrganizationItemWithEditNameFlag.prototype['first_char'] = undefined; -/** - * The creation date and time of the organization - * @member {String} add_time - */ -BaseOrganizationItemWithEditNameFlag.prototype['add_time'] = undefined; -/** - * The last updated date and time of the organization - * @member {String} update_time - */ -BaseOrganizationItemWithEditNameFlag.prototype['update_time'] = undefined; -/** - * The visibility group ID of who can see the organization - * @member {String} visible_to - */ -BaseOrganizationItemWithEditNameFlag.prototype['visible_to'] = undefined; -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BaseOrganizationItemWithEditNameFlag.prototype['label'] = undefined; -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BaseOrganizationItemWithEditNameFlag.prototype['label_ids'] = undefined; -/** - * The name of the organization owner - * @member {String} owner_name - */ -BaseOrganizationItemWithEditNameFlag.prototype['owner_name'] = undefined; -/** - * The BCC email associated with the organization - * @member {String} cc_email - */ -BaseOrganizationItemWithEditNameFlag.prototype['cc_email'] = undefined; -/** - * The count of email messages related to the organization - * @member {Number} email_messages_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['email_messages_count'] = undefined; -/** - * The count of persons related to the organization - * @member {Number} people_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['people_count'] = undefined; -/** - * The count of activities related to the organization - * @member {Number} activities_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the organization - * @member {Number} done_activities_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the organization - * @member {Number} undone_activities_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the organization - * @member {Number} files_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['files_count'] = undefined; -/** - * The count of notes related to the organization - * @member {Number} notes_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['notes_count'] = undefined; -/** - * The count of followers related to the organization - * @member {Number} followers_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['followers_count'] = undefined; -/** - * The full address of the organization - * @member {String} address - */ -BaseOrganizationItemWithEditNameFlag.prototype['address'] = undefined; -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_subpremise'] = undefined; -/** - * The street number of the organization location - * @member {String} address_street_number - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_street_number'] = undefined; -/** - * The route of the organization location - * @member {String} address_route - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_route'] = undefined; -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_sublocality'] = undefined; -/** - * The locality of the organization location - * @member {String} address_locality - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_locality'] = undefined; -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_admin_area_level_1'] = undefined; -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_admin_area_level_2'] = undefined; -/** - * The country of the organization location - * @member {String} address_country - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_country'] = undefined; -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_postal_code'] = undefined; -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -BaseOrganizationItemWithEditNameFlag.prototype['address_formatted_address'] = undefined; -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -BaseOrganizationItemWithEditNameFlag.prototype['related_lost_deals_count'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -BaseOrganizationItemWithEditNameFlag.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -BaseOrganizationItemWithEditNameFlag.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -BaseOrganizationItemWithEditNameFlag.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -BaseOrganizationItemWithEditNameFlag.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -BaseOrganizationItemWithEditNameFlag.prototype['last_activity_date'] = undefined; -/** - * If the company ID of the organization and company ID of the request is same or not - * @member {Boolean} edit_name - */ -BaseOrganizationItemWithEditNameFlag.prototype['edit_name'] = undefined; -// Implement OrganizationItemAllOf interface: -/** - * Please refer to response schema of Activity - * @member {Object} last_activity - */ -OrganizationItemAllOf.prototype['last_activity'] = undefined; -/** - * Please refer to response schema of Activity - * @member {Object} next_activity - */ -OrganizationItemAllOf.prototype['next_activity'] = undefined; - - - - -export default OrganizationItem; - diff --git a/src/model/OrganizationItemAllOf.js b/src/model/OrganizationItemAllOf.js deleted file mode 100644 index b5492649..00000000 --- a/src/model/OrganizationItemAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationItemAllOf model module. - * @module model/OrganizationItemAllOf - * @version 1.0.0 - */ -class OrganizationItemAllOf { - /** - * Constructs a new OrganizationItemAllOf. - * @alias module:model/OrganizationItemAllOf - */ - constructor() { - - OrganizationItemAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationItemAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationItemAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationItemAllOf} The populated OrganizationItemAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationItemAllOf(); - - if (data.hasOwnProperty('last_activity')) { - obj['last_activity'] = ApiClient.convertToType(data['last_activity'], Object); - - delete data['last_activity']; - } - if (data.hasOwnProperty('next_activity')) { - obj['next_activity'] = ApiClient.convertToType(data['next_activity'], Object); - - delete data['next_activity']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Please refer to response schema of Activity - * @member {Object} last_activity - */ -OrganizationItemAllOf.prototype['last_activity'] = undefined; - -/** - * Please refer to response schema of Activity - * @member {Object} next_activity - */ -OrganizationItemAllOf.prototype['next_activity'] = undefined; - - - - - - -export default OrganizationItemAllOf; - diff --git a/src/model/OrganizationPostResponse.js b/src/model/OrganizationPostResponse.js deleted file mode 100644 index 46e237cd..00000000 --- a/src/model/OrganizationPostResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import BaseOrganizationItemWithEditNameFlag from './BaseOrganizationItemWithEditNameFlag'; -import BaseResponse from './BaseResponse'; -import OrganizationPostResponseAllOf from './OrganizationPostResponseAllOf'; - -/** - * The OrganizationPostResponse model module. - * @module model/OrganizationPostResponse - * @version 1.0.0 - */ -class OrganizationPostResponse { - /** - * Constructs a new OrganizationPostResponse. - * @alias module:model/OrganizationPostResponse - * @implements module:model/BaseResponse - * @implements module:model/OrganizationPostResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);OrganizationPostResponseAllOf.initialize(this); - OrganizationPostResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationPostResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationPostResponse} obj Optional instance to populate. - * @return {module:model/OrganizationPostResponse} The populated OrganizationPostResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationPostResponse(); - BaseResponse.constructFromObject(data, obj); - OrganizationPostResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseOrganizationItemWithEditNameFlag.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -OrganizationPostResponse.prototype['success'] = undefined; - -/** - * @member {module:model/BaseOrganizationItemWithEditNameFlag} data - */ -OrganizationPostResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationPostResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement OrganizationPostResponseAllOf interface: -/** - * @member {module:model/BaseOrganizationItemWithEditNameFlag} data - */ -OrganizationPostResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationPostResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default OrganizationPostResponse; - diff --git a/src/model/OrganizationPostResponseAllOf.js b/src/model/OrganizationPostResponseAllOf.js deleted file mode 100644 index 1023d3e8..00000000 --- a/src/model/OrganizationPostResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import BaseOrganizationItemWithEditNameFlag from './BaseOrganizationItemWithEditNameFlag'; - -/** - * The OrganizationPostResponseAllOf model module. - * @module model/OrganizationPostResponseAllOf - * @version 1.0.0 - */ -class OrganizationPostResponseAllOf { - /** - * Constructs a new OrganizationPostResponseAllOf. - * @alias module:model/OrganizationPostResponseAllOf - */ - constructor() { - - OrganizationPostResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationPostResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationPostResponseAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationPostResponseAllOf} The populated OrganizationPostResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationPostResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = BaseOrganizationItemWithEditNameFlag.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BaseOrganizationItemWithEditNameFlag} data - */ -OrganizationPostResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationPostResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default OrganizationPostResponseAllOf; - diff --git a/src/model/OrganizationRelationship.js b/src/model/OrganizationRelationship.js deleted file mode 100644 index c5c854d1..00000000 --- a/src/model/OrganizationRelationship.js +++ /dev/null @@ -1,133 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationRelationship model module. - * @module model/OrganizationRelationship - * @version 1.0.0 - */ -class OrganizationRelationship { - /** - * Constructs a new OrganizationRelationship. - * @alias module:model/OrganizationRelationship - */ - constructor() { - - OrganizationRelationship.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationRelationship from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationRelationship} obj Optional instance to populate. - * @return {module:model/OrganizationRelationship} The populated OrganizationRelationship instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationRelationship(); - - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('rel_owner_org_id')) { - obj['rel_owner_org_id'] = ApiClient.convertToType(data['rel_owner_org_id'], 'Number'); - - delete data['rel_owner_org_id']; - } - if (data.hasOwnProperty('rel_linked_org_id')) { - obj['rel_linked_org_id'] = ApiClient.convertToType(data['rel_linked_org_id'], 'Number'); - - delete data['rel_linked_org_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the base organization for the returned calculated values - * @member {Number} org_id - */ -OrganizationRelationship.prototype['org_id'] = undefined; - -/** - * The type of organization relationship - * @member {module:model/OrganizationRelationship.TypeEnum} type - */ -OrganizationRelationship.prototype['type'] = undefined; - -/** - * The owner of this relationship. If type is `parent`, then the owner is the parent and the linked organization is the daughter. - * @member {Number} rel_owner_org_id - */ -OrganizationRelationship.prototype['rel_owner_org_id'] = undefined; - -/** - * The linked organization in this relationship. If type is `parent`, then the linked organization is the daughter. - * @member {Number} rel_linked_org_id - */ -OrganizationRelationship.prototype['rel_linked_org_id'] = undefined; - - - - - -/** - * Allowed values for the type property. - * @enum {String} - * @readonly - */ -OrganizationRelationship['TypeEnum'] = { - - /** - * value: "parent" - * @const - */ - "parent": "parent", - - /** - * value: "related" - * @const - */ - "related": "related" -}; - - - -export default OrganizationRelationship; - diff --git a/src/model/OrganizationRelationshipDeleteResponse.js b/src/model/OrganizationRelationshipDeleteResponse.js deleted file mode 100644 index 7a2ca1f8..00000000 --- a/src/model/OrganizationRelationshipDeleteResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import OrganizationRelationshipDeleteResponseAllOf from './OrganizationRelationshipDeleteResponseAllOf'; -import OrganizationRelationshipDeleteResponseAllOfData from './OrganizationRelationshipDeleteResponseAllOfData'; - -/** - * The OrganizationRelationshipDeleteResponse model module. - * @module model/OrganizationRelationshipDeleteResponse - * @version 1.0.0 - */ -class OrganizationRelationshipDeleteResponse { - /** - * Constructs a new OrganizationRelationshipDeleteResponse. - * @alias module:model/OrganizationRelationshipDeleteResponse - * @implements module:model/BaseResponse - * @implements module:model/OrganizationRelationshipDeleteResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);OrganizationRelationshipDeleteResponseAllOf.initialize(this); - OrganizationRelationshipDeleteResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationRelationshipDeleteResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationRelationshipDeleteResponse} obj Optional instance to populate. - * @return {module:model/OrganizationRelationshipDeleteResponse} The populated OrganizationRelationshipDeleteResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationRelationshipDeleteResponse(); - BaseResponse.constructFromObject(data, obj); - OrganizationRelationshipDeleteResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationRelationshipDeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -OrganizationRelationshipDeleteResponse.prototype['success'] = undefined; - -/** - * @member {module:model/OrganizationRelationshipDeleteResponseAllOfData} data - */ -OrganizationRelationshipDeleteResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement OrganizationRelationshipDeleteResponseAllOf interface: -/** - * @member {module:model/OrganizationRelationshipDeleteResponseAllOfData} data - */ -OrganizationRelationshipDeleteResponseAllOf.prototype['data'] = undefined; - - - - -export default OrganizationRelationshipDeleteResponse; - diff --git a/src/model/OrganizationRelationshipDeleteResponseAllOf.js b/src/model/OrganizationRelationshipDeleteResponseAllOf.js deleted file mode 100644 index 0d04aa5f..00000000 --- a/src/model/OrganizationRelationshipDeleteResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationRelationshipDeleteResponseAllOfData from './OrganizationRelationshipDeleteResponseAllOfData'; - -/** - * The OrganizationRelationshipDeleteResponseAllOf model module. - * @module model/OrganizationRelationshipDeleteResponseAllOf - * @version 1.0.0 - */ -class OrganizationRelationshipDeleteResponseAllOf { - /** - * Constructs a new OrganizationRelationshipDeleteResponseAllOf. - * @alias module:model/OrganizationRelationshipDeleteResponseAllOf - */ - constructor() { - - OrganizationRelationshipDeleteResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationRelationshipDeleteResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationRelationshipDeleteResponseAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationRelationshipDeleteResponseAllOf} The populated OrganizationRelationshipDeleteResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationRelationshipDeleteResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationRelationshipDeleteResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/OrganizationRelationshipDeleteResponseAllOfData} data - */ -OrganizationRelationshipDeleteResponseAllOf.prototype['data'] = undefined; - - - - - - -export default OrganizationRelationshipDeleteResponseAllOf; - diff --git a/src/model/OrganizationRelationshipDeleteResponseAllOfData.js b/src/model/OrganizationRelationshipDeleteResponseAllOfData.js deleted file mode 100644 index a3b00665..00000000 --- a/src/model/OrganizationRelationshipDeleteResponseAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationRelationshipDeleteResponseAllOfData model module. - * @module model/OrganizationRelationshipDeleteResponseAllOfData - * @version 1.0.0 - */ -class OrganizationRelationshipDeleteResponseAllOfData { - /** - * Constructs a new OrganizationRelationshipDeleteResponseAllOfData. - * @alias module:model/OrganizationRelationshipDeleteResponseAllOfData - */ - constructor() { - - OrganizationRelationshipDeleteResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationRelationshipDeleteResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationRelationshipDeleteResponseAllOfData} obj Optional instance to populate. - * @return {module:model/OrganizationRelationshipDeleteResponseAllOfData} The populated OrganizationRelationshipDeleteResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationRelationshipDeleteResponseAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deleted organization relationship - * @member {Number} id - */ -OrganizationRelationshipDeleteResponseAllOfData.prototype['id'] = undefined; - - - - - - -export default OrganizationRelationshipDeleteResponseAllOfData; - diff --git a/src/model/OrganizationRelationshipDetails.js b/src/model/OrganizationRelationshipDetails.js deleted file mode 100644 index 1e539b34..00000000 --- a/src/model/OrganizationRelationshipDetails.js +++ /dev/null @@ -1,233 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationRelationshipWithCalculatedFields from './OrganizationRelationshipWithCalculatedFields'; -import RelatedOrganizationName from './RelatedOrganizationName'; -import RelationshipOrganizationInfoItem from './RelationshipOrganizationInfoItem'; - -/** - * The OrganizationRelationshipDetails model module. - * @module model/OrganizationRelationshipDetails - * @version 1.0.0 - */ -class OrganizationRelationshipDetails { - /** - * Constructs a new OrganizationRelationshipDetails. - * @alias module:model/OrganizationRelationshipDetails - * @implements module:model/OrganizationRelationshipWithCalculatedFields - * @implements module:model/RelatedOrganizationName - */ - constructor() { - OrganizationRelationshipWithCalculatedFields.initialize(this);RelatedOrganizationName.initialize(this); - OrganizationRelationshipDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationRelationshipDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationRelationshipDetails} obj Optional instance to populate. - * @return {module:model/OrganizationRelationshipDetails} The populated OrganizationRelationshipDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationRelationshipDetails(); - OrganizationRelationshipWithCalculatedFields.constructFromObject(data, obj); - RelatedOrganizationName.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('rel_owner_org_id')) { - obj['rel_owner_org_id'] = RelationshipOrganizationInfoItem.constructFromObject(data['rel_owner_org_id']); - - delete data['rel_owner_org_id']; - } - if (data.hasOwnProperty('rel_linked_org_id')) { - obj['rel_linked_org_id'] = RelationshipOrganizationInfoItem.constructFromObject(data['rel_linked_org_id']); - - delete data['rel_linked_org_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'String'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('calculated_type')) { - obj['calculated_type'] = ApiClient.convertToType(data['calculated_type'], 'String'); - - delete data['calculated_type']; - } - if (data.hasOwnProperty('calculated_related_org_id')) { - obj['calculated_related_org_id'] = ApiClient.convertToType(data['calculated_related_org_id'], 'Number'); - - delete data['calculated_related_org_id']; - } - if (data.hasOwnProperty('related_organization_name')) { - obj['related_organization_name'] = ApiClient.convertToType(data['related_organization_name'], 'String'); - - delete data['related_organization_name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization relationship - * @member {Number} id - */ -OrganizationRelationshipDetails.prototype['id'] = undefined; - -/** - * The type of the relationship - * @member {String} type - */ -OrganizationRelationshipDetails.prototype['type'] = undefined; - -/** - * @member {module:model/RelationshipOrganizationInfoItem} rel_owner_org_id - */ -OrganizationRelationshipDetails.prototype['rel_owner_org_id'] = undefined; - -/** - * @member {module:model/RelationshipOrganizationInfoItem} rel_linked_org_id - */ -OrganizationRelationshipDetails.prototype['rel_linked_org_id'] = undefined; - -/** - * The creation date and time of the relationship - * @member {String} add_time - */ -OrganizationRelationshipDetails.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the relationship - * @member {String} update_time - */ -OrganizationRelationshipDetails.prototype['update_time'] = undefined; - -/** - * Whether the relationship is active or not - * @member {String} active_flag - */ -OrganizationRelationshipDetails.prototype['active_flag'] = undefined; - -/** - * The calculated type of the relationship with the linked organization - * @member {String} calculated_type - */ -OrganizationRelationshipDetails.prototype['calculated_type'] = undefined; - -/** - * The ID of the linked organization - * @member {Number} calculated_related_org_id - */ -OrganizationRelationshipDetails.prototype['calculated_related_org_id'] = undefined; - -/** - * The name of the linked organization - * @member {String} related_organization_name - */ -OrganizationRelationshipDetails.prototype['related_organization_name'] = undefined; - - -// Implement OrganizationRelationshipWithCalculatedFields interface: -/** - * The ID of the organization relationship - * @member {Number} id - */ -OrganizationRelationshipWithCalculatedFields.prototype['id'] = undefined; -/** - * The type of the relationship - * @member {String} type - */ -OrganizationRelationshipWithCalculatedFields.prototype['type'] = undefined; -/** - * @member {module:model/RelationshipOrganizationInfoItem} rel_owner_org_id - */ -OrganizationRelationshipWithCalculatedFields.prototype['rel_owner_org_id'] = undefined; -/** - * @member {module:model/RelationshipOrganizationInfoItem} rel_linked_org_id - */ -OrganizationRelationshipWithCalculatedFields.prototype['rel_linked_org_id'] = undefined; -/** - * The creation date and time of the relationship - * @member {String} add_time - */ -OrganizationRelationshipWithCalculatedFields.prototype['add_time'] = undefined; -/** - * The last updated date and time of the relationship - * @member {String} update_time - */ -OrganizationRelationshipWithCalculatedFields.prototype['update_time'] = undefined; -/** - * Whether the relationship is active or not - * @member {String} active_flag - */ -OrganizationRelationshipWithCalculatedFields.prototype['active_flag'] = undefined; -/** - * The calculated type of the relationship with the linked organization - * @member {String} calculated_type - */ -OrganizationRelationshipWithCalculatedFields.prototype['calculated_type'] = undefined; -/** - * The ID of the linked organization - * @member {Number} calculated_related_org_id - */ -OrganizationRelationshipWithCalculatedFields.prototype['calculated_related_org_id'] = undefined; -// Implement RelatedOrganizationName interface: -/** - * The name of the linked organization - * @member {String} related_organization_name - */ -RelatedOrganizationName.prototype['related_organization_name'] = undefined; - - - - -export default OrganizationRelationshipDetails; - diff --git a/src/model/OrganizationRelationshipGetResponse.js b/src/model/OrganizationRelationshipGetResponse.js deleted file mode 100644 index 9ee1e8ae..00000000 --- a/src/model/OrganizationRelationshipGetResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationRelationshipsGetResponseAllOfRelatedObjects from './AllOrganizationRelationshipsGetResponseAllOfRelatedObjects'; -import BaseResponse from './BaseResponse'; -import OrganizationRelationshipGetResponseAllOf from './OrganizationRelationshipGetResponseAllOf'; -import OrganizationRelationshipWithCalculatedFields from './OrganizationRelationshipWithCalculatedFields'; - -/** - * The OrganizationRelationshipGetResponse model module. - * @module model/OrganizationRelationshipGetResponse - * @version 1.0.0 - */ -class OrganizationRelationshipGetResponse { - /** - * Constructs a new OrganizationRelationshipGetResponse. - * @alias module:model/OrganizationRelationshipGetResponse - * @implements module:model/BaseResponse - * @implements module:model/OrganizationRelationshipGetResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);OrganizationRelationshipGetResponseAllOf.initialize(this); - OrganizationRelationshipGetResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationRelationshipGetResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationRelationshipGetResponse} obj Optional instance to populate. - * @return {module:model/OrganizationRelationshipGetResponse} The populated OrganizationRelationshipGetResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationRelationshipGetResponse(); - BaseResponse.constructFromObject(data, obj); - OrganizationRelationshipGetResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationRelationshipWithCalculatedFields.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -OrganizationRelationshipGetResponse.prototype['success'] = undefined; - -/** - * @member {module:model/OrganizationRelationshipWithCalculatedFields} data - */ -OrganizationRelationshipGetResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationRelationshipGetResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement OrganizationRelationshipGetResponseAllOf interface: -/** - * @member {module:model/OrganizationRelationshipWithCalculatedFields} data - */ -OrganizationRelationshipGetResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationRelationshipGetResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default OrganizationRelationshipGetResponse; - diff --git a/src/model/OrganizationRelationshipGetResponseAllOf.js b/src/model/OrganizationRelationshipGetResponseAllOf.js deleted file mode 100644 index 8bcf67f1..00000000 --- a/src/model/OrganizationRelationshipGetResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationRelationshipsGetResponseAllOfRelatedObjects from './AllOrganizationRelationshipsGetResponseAllOfRelatedObjects'; -import OrganizationRelationshipWithCalculatedFields from './OrganizationRelationshipWithCalculatedFields'; - -/** - * The OrganizationRelationshipGetResponseAllOf model module. - * @module model/OrganizationRelationshipGetResponseAllOf - * @version 1.0.0 - */ -class OrganizationRelationshipGetResponseAllOf { - /** - * Constructs a new OrganizationRelationshipGetResponseAllOf. - * @alias module:model/OrganizationRelationshipGetResponseAllOf - */ - constructor() { - - OrganizationRelationshipGetResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationRelationshipGetResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationRelationshipGetResponseAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationRelationshipGetResponseAllOf} The populated OrganizationRelationshipGetResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationRelationshipGetResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationRelationshipWithCalculatedFields.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/OrganizationRelationshipWithCalculatedFields} data - */ -OrganizationRelationshipGetResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationRelationshipGetResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default OrganizationRelationshipGetResponseAllOf; - diff --git a/src/model/OrganizationRelationshipPostResponse.js b/src/model/OrganizationRelationshipPostResponse.js deleted file mode 100644 index 79a9500a..00000000 --- a/src/model/OrganizationRelationshipPostResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationRelationshipsGetResponseAllOfRelatedObjects from './AllOrganizationRelationshipsGetResponseAllOfRelatedObjects'; -import BaseOrganizationRelationshipItem from './BaseOrganizationRelationshipItem'; -import BaseResponse from './BaseResponse'; -import OrganizationRelationshipPostResponseAllOf from './OrganizationRelationshipPostResponseAllOf'; - -/** - * The OrganizationRelationshipPostResponse model module. - * @module model/OrganizationRelationshipPostResponse - * @version 1.0.0 - */ -class OrganizationRelationshipPostResponse { - /** - * Constructs a new OrganizationRelationshipPostResponse. - * @alias module:model/OrganizationRelationshipPostResponse - * @implements module:model/BaseResponse - * @implements module:model/OrganizationRelationshipPostResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);OrganizationRelationshipPostResponseAllOf.initialize(this); - OrganizationRelationshipPostResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationRelationshipPostResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationRelationshipPostResponse} obj Optional instance to populate. - * @return {module:model/OrganizationRelationshipPostResponse} The populated OrganizationRelationshipPostResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationRelationshipPostResponse(); - BaseResponse.constructFromObject(data, obj); - OrganizationRelationshipPostResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseOrganizationRelationshipItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -OrganizationRelationshipPostResponse.prototype['success'] = undefined; - -/** - * @member {module:model/BaseOrganizationRelationshipItem} data - */ -OrganizationRelationshipPostResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationRelationshipPostResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement OrganizationRelationshipPostResponseAllOf interface: -/** - * @member {module:model/BaseOrganizationRelationshipItem} data - */ -OrganizationRelationshipPostResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationRelationshipPostResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default OrganizationRelationshipPostResponse; - diff --git a/src/model/OrganizationRelationshipPostResponseAllOf.js b/src/model/OrganizationRelationshipPostResponseAllOf.js deleted file mode 100644 index ae3fdaa3..00000000 --- a/src/model/OrganizationRelationshipPostResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationRelationshipsGetResponseAllOfRelatedObjects from './AllOrganizationRelationshipsGetResponseAllOfRelatedObjects'; -import BaseOrganizationRelationshipItem from './BaseOrganizationRelationshipItem'; - -/** - * The OrganizationRelationshipPostResponseAllOf model module. - * @module model/OrganizationRelationshipPostResponseAllOf - * @version 1.0.0 - */ -class OrganizationRelationshipPostResponseAllOf { - /** - * Constructs a new OrganizationRelationshipPostResponseAllOf. - * @alias module:model/OrganizationRelationshipPostResponseAllOf - */ - constructor() { - - OrganizationRelationshipPostResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationRelationshipPostResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationRelationshipPostResponseAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationRelationshipPostResponseAllOf} The populated OrganizationRelationshipPostResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationRelationshipPostResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = BaseOrganizationRelationshipItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BaseOrganizationRelationshipItem} data - */ -OrganizationRelationshipPostResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationRelationshipPostResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default OrganizationRelationshipPostResponseAllOf; - diff --git a/src/model/OrganizationRelationshipUpdateResponse.js b/src/model/OrganizationRelationshipUpdateResponse.js deleted file mode 100644 index c3d1b086..00000000 --- a/src/model/OrganizationRelationshipUpdateResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationRelationshipsGetResponseAllOfRelatedObjects from './AllOrganizationRelationshipsGetResponseAllOfRelatedObjects'; -import BaseOrganizationRelationshipItem from './BaseOrganizationRelationshipItem'; -import BaseResponse from './BaseResponse'; -import OrganizationRelationshipPostResponseAllOf from './OrganizationRelationshipPostResponseAllOf'; - -/** - * The OrganizationRelationshipUpdateResponse model module. - * @module model/OrganizationRelationshipUpdateResponse - * @version 1.0.0 - */ -class OrganizationRelationshipUpdateResponse { - /** - * Constructs a new OrganizationRelationshipUpdateResponse. - * @alias module:model/OrganizationRelationshipUpdateResponse - * @implements module:model/BaseResponse - * @implements module:model/OrganizationRelationshipPostResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);OrganizationRelationshipPostResponseAllOf.initialize(this); - OrganizationRelationshipUpdateResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationRelationshipUpdateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationRelationshipUpdateResponse} obj Optional instance to populate. - * @return {module:model/OrganizationRelationshipUpdateResponse} The populated OrganizationRelationshipUpdateResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationRelationshipUpdateResponse(); - BaseResponse.constructFromObject(data, obj); - OrganizationRelationshipPostResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseOrganizationRelationshipItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationRelationshipsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -OrganizationRelationshipUpdateResponse.prototype['success'] = undefined; - -/** - * @member {module:model/BaseOrganizationRelationshipItem} data - */ -OrganizationRelationshipUpdateResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationRelationshipUpdateResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement OrganizationRelationshipPostResponseAllOf interface: -/** - * @member {module:model/BaseOrganizationRelationshipItem} data - */ -OrganizationRelationshipPostResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AllOrganizationRelationshipsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationRelationshipPostResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default OrganizationRelationshipUpdateResponse; - diff --git a/src/model/OrganizationRelationshipWithCalculatedFields.js b/src/model/OrganizationRelationshipWithCalculatedFields.js deleted file mode 100644 index da6a015b..00000000 --- a/src/model/OrganizationRelationshipWithCalculatedFields.js +++ /dev/null @@ -1,217 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseOrganizationRelationshipItem from './BaseOrganizationRelationshipItem'; -import CalculatedFields from './CalculatedFields'; -import RelationshipOrganizationInfoItem from './RelationshipOrganizationInfoItem'; - -/** - * The OrganizationRelationshipWithCalculatedFields model module. - * @module model/OrganizationRelationshipWithCalculatedFields - * @version 1.0.0 - */ -class OrganizationRelationshipWithCalculatedFields { - /** - * Constructs a new OrganizationRelationshipWithCalculatedFields. - * @alias module:model/OrganizationRelationshipWithCalculatedFields - * @implements module:model/BaseOrganizationRelationshipItem - * @implements module:model/CalculatedFields - */ - constructor() { - BaseOrganizationRelationshipItem.initialize(this);CalculatedFields.initialize(this); - OrganizationRelationshipWithCalculatedFields.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationRelationshipWithCalculatedFields from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationRelationshipWithCalculatedFields} obj Optional instance to populate. - * @return {module:model/OrganizationRelationshipWithCalculatedFields} The populated OrganizationRelationshipWithCalculatedFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationRelationshipWithCalculatedFields(); - BaseOrganizationRelationshipItem.constructFromObject(data, obj); - CalculatedFields.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('rel_owner_org_id')) { - obj['rel_owner_org_id'] = RelationshipOrganizationInfoItem.constructFromObject(data['rel_owner_org_id']); - - delete data['rel_owner_org_id']; - } - if (data.hasOwnProperty('rel_linked_org_id')) { - obj['rel_linked_org_id'] = RelationshipOrganizationInfoItem.constructFromObject(data['rel_linked_org_id']); - - delete data['rel_linked_org_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'String'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('calculated_type')) { - obj['calculated_type'] = ApiClient.convertToType(data['calculated_type'], 'String'); - - delete data['calculated_type']; - } - if (data.hasOwnProperty('calculated_related_org_id')) { - obj['calculated_related_org_id'] = ApiClient.convertToType(data['calculated_related_org_id'], 'Number'); - - delete data['calculated_related_org_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization relationship - * @member {Number} id - */ -OrganizationRelationshipWithCalculatedFields.prototype['id'] = undefined; - -/** - * The type of the relationship - * @member {String} type - */ -OrganizationRelationshipWithCalculatedFields.prototype['type'] = undefined; - -/** - * @member {module:model/RelationshipOrganizationInfoItem} rel_owner_org_id - */ -OrganizationRelationshipWithCalculatedFields.prototype['rel_owner_org_id'] = undefined; - -/** - * @member {module:model/RelationshipOrganizationInfoItem} rel_linked_org_id - */ -OrganizationRelationshipWithCalculatedFields.prototype['rel_linked_org_id'] = undefined; - -/** - * The creation date and time of the relationship - * @member {String} add_time - */ -OrganizationRelationshipWithCalculatedFields.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the relationship - * @member {String} update_time - */ -OrganizationRelationshipWithCalculatedFields.prototype['update_time'] = undefined; - -/** - * Whether the relationship is active or not - * @member {String} active_flag - */ -OrganizationRelationshipWithCalculatedFields.prototype['active_flag'] = undefined; - -/** - * The calculated type of the relationship with the linked organization - * @member {String} calculated_type - */ -OrganizationRelationshipWithCalculatedFields.prototype['calculated_type'] = undefined; - -/** - * The ID of the linked organization - * @member {Number} calculated_related_org_id - */ -OrganizationRelationshipWithCalculatedFields.prototype['calculated_related_org_id'] = undefined; - - -// Implement BaseOrganizationRelationshipItem interface: -/** - * The ID of the organization relationship - * @member {Number} id - */ -BaseOrganizationRelationshipItem.prototype['id'] = undefined; -/** - * The type of the relationship - * @member {String} type - */ -BaseOrganizationRelationshipItem.prototype['type'] = undefined; -/** - * @member {module:model/RelationshipOrganizationInfoItem} rel_owner_org_id - */ -BaseOrganizationRelationshipItem.prototype['rel_owner_org_id'] = undefined; -/** - * @member {module:model/RelationshipOrganizationInfoItem} rel_linked_org_id - */ -BaseOrganizationRelationshipItem.prototype['rel_linked_org_id'] = undefined; -/** - * The creation date and time of the relationship - * @member {String} add_time - */ -BaseOrganizationRelationshipItem.prototype['add_time'] = undefined; -/** - * The last updated date and time of the relationship - * @member {String} update_time - */ -BaseOrganizationRelationshipItem.prototype['update_time'] = undefined; -/** - * Whether the relationship is active or not - * @member {String} active_flag - */ -BaseOrganizationRelationshipItem.prototype['active_flag'] = undefined; -// Implement CalculatedFields interface: -/** - * The calculated type of the relationship with the linked organization - * @member {String} calculated_type - */ -CalculatedFields.prototype['calculated_type'] = undefined; -/** - * The ID of the linked organization - * @member {Number} calculated_related_org_id - */ -CalculatedFields.prototype['calculated_related_org_id'] = undefined; - - - - -export default OrganizationRelationshipWithCalculatedFields; - diff --git a/src/model/OrganizationSearchItem.js b/src/model/OrganizationSearchItem.js deleted file mode 100644 index c795954a..00000000 --- a/src/model/OrganizationSearchItem.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationSearchItemItem from './OrganizationSearchItemItem'; - -/** - * The OrganizationSearchItem model module. - * @module model/OrganizationSearchItem - * @version 1.0.0 - */ -class OrganizationSearchItem { - /** - * Constructs a new OrganizationSearchItem. - * @alias module:model/OrganizationSearchItem - */ - constructor() { - - OrganizationSearchItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationSearchItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationSearchItem} obj Optional instance to populate. - * @return {module:model/OrganizationSearchItem} The populated OrganizationSearchItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationSearchItem(); - - if (data.hasOwnProperty('result_score')) { - obj['result_score'] = ApiClient.convertToType(data['result_score'], 'Number'); - - delete data['result_score']; - } - if (data.hasOwnProperty('item')) { - obj['item'] = OrganizationSearchItemItem.constructFromObject(data['item']); - - delete data['item']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Search result relevancy - * @member {Number} result_score - */ -OrganizationSearchItem.prototype['result_score'] = undefined; - -/** - * @member {module:model/OrganizationSearchItemItem} item - */ -OrganizationSearchItem.prototype['item'] = undefined; - - - - - - -export default OrganizationSearchItem; - diff --git a/src/model/OrganizationSearchItemItem.js b/src/model/OrganizationSearchItemItem.js deleted file mode 100644 index 9a7075ce..00000000 --- a/src/model/OrganizationSearchItemItem.js +++ /dev/null @@ -1,156 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealSearchItemItemOwner from './DealSearchItemItemOwner'; - -/** - * The OrganizationSearchItemItem model module. - * @module model/OrganizationSearchItemItem - * @version 1.0.0 - */ -class OrganizationSearchItemItem { - /** - * Constructs a new OrganizationSearchItemItem. - * @alias module:model/OrganizationSearchItemItem - */ - constructor() { - - OrganizationSearchItemItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationSearchItemItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationSearchItemItem} obj Optional instance to populate. - * @return {module:model/OrganizationSearchItemItem} The populated OrganizationSearchItemItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationSearchItemItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'Number'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner')) { - obj['owner'] = DealSearchItemItemOwner.constructFromObject(data['owner']); - - delete data['owner']; - } - if (data.hasOwnProperty('custom_fields')) { - obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], ['String']); - - delete data['custom_fields']; - } - if (data.hasOwnProperty('notes')) { - obj['notes'] = ApiClient.convertToType(data['notes'], ['String']); - - delete data['notes']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization - * @member {Number} id - */ -OrganizationSearchItemItem.prototype['id'] = undefined; - -/** - * The type of the item - * @member {String} type - */ -OrganizationSearchItemItem.prototype['type'] = undefined; - -/** - * The name of the organization - * @member {String} name - */ -OrganizationSearchItemItem.prototype['name'] = undefined; - -/** - * The address of the organization - * @member {String} address - */ -OrganizationSearchItemItem.prototype['address'] = undefined; - -/** - * The visibility of the organization - * @member {Number} visible_to - */ -OrganizationSearchItemItem.prototype['visible_to'] = undefined; - -/** - * @member {module:model/DealSearchItemItemOwner} owner - */ -OrganizationSearchItemItem.prototype['owner'] = undefined; - -/** - * Custom fields - * @member {Array.} custom_fields - */ -OrganizationSearchItemItem.prototype['custom_fields'] = undefined; - -/** - * An array of notes - * @member {Array.} notes - */ -OrganizationSearchItemItem.prototype['notes'] = undefined; - - - - - - -export default OrganizationSearchItemItem; - diff --git a/src/model/OrganizationSearchResponse.js b/src/model/OrganizationSearchResponse.js deleted file mode 100644 index ec12a5e1..00000000 --- a/src/model/OrganizationSearchResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import OrganizationSearchResponseAllOf from './OrganizationSearchResponseAllOf'; -import OrganizationSearchResponseAllOfData from './OrganizationSearchResponseAllOfData'; - -/** - * The OrganizationSearchResponse model module. - * @module model/OrganizationSearchResponse - * @version 1.0.0 - */ -class OrganizationSearchResponse { - /** - * Constructs a new OrganizationSearchResponse. - * @alias module:model/OrganizationSearchResponse - * @implements module:model/BaseResponse - * @implements module:model/OrganizationSearchResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);OrganizationSearchResponseAllOf.initialize(this); - OrganizationSearchResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationSearchResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationSearchResponse} obj Optional instance to populate. - * @return {module:model/OrganizationSearchResponse} The populated OrganizationSearchResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationSearchResponse(); - BaseResponse.constructFromObject(data, obj); - OrganizationSearchResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -OrganizationSearchResponse.prototype['success'] = undefined; - -/** - * @member {module:model/OrganizationSearchResponseAllOfData} data - */ -OrganizationSearchResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -OrganizationSearchResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement OrganizationSearchResponseAllOf interface: -/** - * @member {module:model/OrganizationSearchResponseAllOfData} data - */ -OrganizationSearchResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -OrganizationSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default OrganizationSearchResponse; - diff --git a/src/model/OrganizationSearchResponseAllOf.js b/src/model/OrganizationSearchResponseAllOf.js deleted file mode 100644 index 53333a59..00000000 --- a/src/model/OrganizationSearchResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import OrganizationSearchResponseAllOfData from './OrganizationSearchResponseAllOfData'; - -/** - * The OrganizationSearchResponseAllOf model module. - * @module model/OrganizationSearchResponseAllOf - * @version 1.0.0 - */ -class OrganizationSearchResponseAllOf { - /** - * Constructs a new OrganizationSearchResponseAllOf. - * @alias module:model/OrganizationSearchResponseAllOf - */ - constructor() { - - OrganizationSearchResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationSearchResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationSearchResponseAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationSearchResponseAllOf} The populated OrganizationSearchResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationSearchResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/OrganizationSearchResponseAllOfData} data - */ -OrganizationSearchResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -OrganizationSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default OrganizationSearchResponseAllOf; - diff --git a/src/model/OrganizationSearchResponseAllOfData.js b/src/model/OrganizationSearchResponseAllOfData.js deleted file mode 100644 index 6005e56f..00000000 --- a/src/model/OrganizationSearchResponseAllOfData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationSearchItem from './OrganizationSearchItem'; - -/** - * The OrganizationSearchResponseAllOfData model module. - * @module model/OrganizationSearchResponseAllOfData - * @version 1.0.0 - */ -class OrganizationSearchResponseAllOfData { - /** - * Constructs a new OrganizationSearchResponseAllOfData. - * @alias module:model/OrganizationSearchResponseAllOfData - */ - constructor() { - - OrganizationSearchResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationSearchResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationSearchResponseAllOfData} obj Optional instance to populate. - * @return {module:model/OrganizationSearchResponseAllOfData} The populated OrganizationSearchResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationSearchResponseAllOfData(); - - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [OrganizationSearchItem]); - - delete data['items']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of found items - * @member {Array.} items - */ -OrganizationSearchResponseAllOfData.prototype['items'] = undefined; - - - - - - -export default OrganizationSearchResponseAllOfData; - diff --git a/src/model/OrganizationUpdateResponse.js b/src/model/OrganizationUpdateResponse.js deleted file mode 100644 index 49edd5ec..00000000 --- a/src/model/OrganizationUpdateResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import BaseOrganizationItem from './BaseOrganizationItem'; -import BaseResponse from './BaseResponse'; -import OrganizationUpdateResponseAllOf from './OrganizationUpdateResponseAllOf'; - -/** - * The OrganizationUpdateResponse model module. - * @module model/OrganizationUpdateResponse - * @version 1.0.0 - */ -class OrganizationUpdateResponse { - /** - * Constructs a new OrganizationUpdateResponse. - * @alias module:model/OrganizationUpdateResponse - * @implements module:model/BaseResponse - * @implements module:model/OrganizationUpdateResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);OrganizationUpdateResponseAllOf.initialize(this); - OrganizationUpdateResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationUpdateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationUpdateResponse} obj Optional instance to populate. - * @return {module:model/OrganizationUpdateResponse} The populated OrganizationUpdateResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationUpdateResponse(); - BaseResponse.constructFromObject(data, obj); - OrganizationUpdateResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseOrganizationItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -OrganizationUpdateResponse.prototype['success'] = undefined; - -/** - * @member {module:model/BaseOrganizationItem} data - */ -OrganizationUpdateResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationUpdateResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement OrganizationUpdateResponseAllOf interface: -/** - * @member {module:model/BaseOrganizationItem} data - */ -OrganizationUpdateResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationUpdateResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default OrganizationUpdateResponse; - diff --git a/src/model/OrganizationUpdateResponseAllOf.js b/src/model/OrganizationUpdateResponseAllOf.js deleted file mode 100644 index 1661c081..00000000 --- a/src/model/OrganizationUpdateResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AllOrganizationsGetResponseAllOfRelatedObjects from './AllOrganizationsGetResponseAllOfRelatedObjects'; -import BaseOrganizationItem from './BaseOrganizationItem'; - -/** - * The OrganizationUpdateResponseAllOf model module. - * @module model/OrganizationUpdateResponseAllOf - * @version 1.0.0 - */ -class OrganizationUpdateResponseAllOf { - /** - * Constructs a new OrganizationUpdateResponseAllOf. - * @alias module:model/OrganizationUpdateResponseAllOf - */ - constructor() { - - OrganizationUpdateResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationUpdateResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationUpdateResponseAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationUpdateResponseAllOf} The populated OrganizationUpdateResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationUpdateResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = BaseOrganizationItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AllOrganizationsGetResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BaseOrganizationItem} data - */ -OrganizationUpdateResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AllOrganizationsGetResponseAllOfRelatedObjects} related_objects - */ -OrganizationUpdateResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default OrganizationUpdateResponseAllOf; - diff --git a/src/model/OrganizationsCollectionResponseObject.js b/src/model/OrganizationsCollectionResponseObject.js deleted file mode 100644 index 4c405c81..00000000 --- a/src/model/OrganizationsCollectionResponseObject.js +++ /dev/null @@ -1,428 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationAddressInfo from './OrganizationAddressInfo'; -import OrganizationsCollectionResponseObjectAllOf from './OrganizationsCollectionResponseObjectAllOf'; - -/** - * The OrganizationsCollectionResponseObject model module. - * @module model/OrganizationsCollectionResponseObject - * @version 1.0.0 - */ -class OrganizationsCollectionResponseObject { - /** - * Constructs a new OrganizationsCollectionResponseObject. - * @alias module:model/OrganizationsCollectionResponseObject - * @implements module:model/OrganizationAddressInfo - * @implements module:model/OrganizationsCollectionResponseObjectAllOf - */ - constructor() { - OrganizationAddressInfo.initialize(this);OrganizationsCollectionResponseObjectAllOf.initialize(this); - OrganizationsCollectionResponseObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationsCollectionResponseObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationsCollectionResponseObject} obj Optional instance to populate. - * @return {module:model/OrganizationsCollectionResponseObject} The populated OrganizationsCollectionResponseObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationsCollectionResponseObject(); - OrganizationAddressInfo.constructFromObject(data, obj); - OrganizationsCollectionResponseObjectAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('address_subpremise')) { - obj['address_subpremise'] = ApiClient.convertToType(data['address_subpremise'], 'String'); - - delete data['address_subpremise']; - } - if (data.hasOwnProperty('address_street_number')) { - obj['address_street_number'] = ApiClient.convertToType(data['address_street_number'], 'String'); - - delete data['address_street_number']; - } - if (data.hasOwnProperty('address_route')) { - obj['address_route'] = ApiClient.convertToType(data['address_route'], 'String'); - - delete data['address_route']; - } - if (data.hasOwnProperty('address_sublocality')) { - obj['address_sublocality'] = ApiClient.convertToType(data['address_sublocality'], 'String'); - - delete data['address_sublocality']; - } - if (data.hasOwnProperty('address_locality')) { - obj['address_locality'] = ApiClient.convertToType(data['address_locality'], 'String'); - - delete data['address_locality']; - } - if (data.hasOwnProperty('address_admin_area_level_1')) { - obj['address_admin_area_level_1'] = ApiClient.convertToType(data['address_admin_area_level_1'], 'String'); - - delete data['address_admin_area_level_1']; - } - if (data.hasOwnProperty('address_admin_area_level_2')) { - obj['address_admin_area_level_2'] = ApiClient.convertToType(data['address_admin_area_level_2'], 'String'); - - delete data['address_admin_area_level_2']; - } - if (data.hasOwnProperty('address_country')) { - obj['address_country'] = ApiClient.convertToType(data['address_country'], 'String'); - - delete data['address_country']; - } - if (data.hasOwnProperty('address_postal_code')) { - obj['address_postal_code'] = ApiClient.convertToType(data['address_postal_code'], 'String'); - - delete data['address_postal_code']; - } - if (data.hasOwnProperty('address_formatted_address')) { - obj['address_formatted_address'] = ApiClient.convertToType(data['address_formatted_address'], 'String'); - - delete data['address_formatted_address']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('delete_time')) { - obj['delete_time'] = ApiClient.convertToType(data['delete_time'], 'String'); - - delete data['delete_time']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The full address of the organization - * @member {String} address - */ -OrganizationsCollectionResponseObject.prototype['address'] = undefined; - -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -OrganizationsCollectionResponseObject.prototype['address_subpremise'] = undefined; - -/** - * The street number of the organization location - * @member {String} address_street_number - */ -OrganizationsCollectionResponseObject.prototype['address_street_number'] = undefined; - -/** - * The route of the organization location - * @member {String} address_route - */ -OrganizationsCollectionResponseObject.prototype['address_route'] = undefined; - -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -OrganizationsCollectionResponseObject.prototype['address_sublocality'] = undefined; - -/** - * The locality of the organization location - * @member {String} address_locality - */ -OrganizationsCollectionResponseObject.prototype['address_locality'] = undefined; - -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -OrganizationsCollectionResponseObject.prototype['address_admin_area_level_1'] = undefined; - -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -OrganizationsCollectionResponseObject.prototype['address_admin_area_level_2'] = undefined; - -/** - * The country of the organization location - * @member {String} address_country - */ -OrganizationsCollectionResponseObject.prototype['address_country'] = undefined; - -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -OrganizationsCollectionResponseObject.prototype['address_postal_code'] = undefined; - -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -OrganizationsCollectionResponseObject.prototype['address_formatted_address'] = undefined; - -/** - * The ID of the organization - * @member {Number} id - */ -OrganizationsCollectionResponseObject.prototype['id'] = undefined; - -/** - * Whether the organization is active or not - * @member {Boolean} active_flag - */ -OrganizationsCollectionResponseObject.prototype['active_flag'] = undefined; - -/** - * The ID of the owner - * @member {Number} owner_id - */ -OrganizationsCollectionResponseObject.prototype['owner_id'] = undefined; - -/** - * The name of the organization - * @member {String} name - */ -OrganizationsCollectionResponseObject.prototype['name'] = undefined; - -/** - * The last updated date and time of the organization. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -OrganizationsCollectionResponseObject.prototype['update_time'] = undefined; - -/** - * The date and time this organization was deleted. Format: YYYY-MM-DD HH:MM:SS - * @member {String} delete_time - */ -OrganizationsCollectionResponseObject.prototype['delete_time'] = undefined; - -/** - * The date and time when the organization was added/created. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -OrganizationsCollectionResponseObject.prototype['add_time'] = undefined; - -/** - * The visibility group ID of who can see the organization - * @member {String} visible_to - */ -OrganizationsCollectionResponseObject.prototype['visible_to'] = undefined; - -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -OrganizationsCollectionResponseObject.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -OrganizationsCollectionResponseObject.prototype['label_ids'] = undefined; - -/** - * The BCC email associated with the organization - * @member {String} cc_email - */ -OrganizationsCollectionResponseObject.prototype['cc_email'] = undefined; - - -// Implement OrganizationAddressInfo interface: -/** - * The full address of the organization - * @member {String} address - */ -OrganizationAddressInfo.prototype['address'] = undefined; -/** - * The sub-premise of the organization location - * @member {String} address_subpremise - */ -OrganizationAddressInfo.prototype['address_subpremise'] = undefined; -/** - * The street number of the organization location - * @member {String} address_street_number - */ -OrganizationAddressInfo.prototype['address_street_number'] = undefined; -/** - * The route of the organization location - * @member {String} address_route - */ -OrganizationAddressInfo.prototype['address_route'] = undefined; -/** - * The sub-locality of the organization location - * @member {String} address_sublocality - */ -OrganizationAddressInfo.prototype['address_sublocality'] = undefined; -/** - * The locality of the organization location - * @member {String} address_locality - */ -OrganizationAddressInfo.prototype['address_locality'] = undefined; -/** - * The level 1 admin area of the organization location - * @member {String} address_admin_area_level_1 - */ -OrganizationAddressInfo.prototype['address_admin_area_level_1'] = undefined; -/** - * The level 2 admin area of the organization location - * @member {String} address_admin_area_level_2 - */ -OrganizationAddressInfo.prototype['address_admin_area_level_2'] = undefined; -/** - * The country of the organization location - * @member {String} address_country - */ -OrganizationAddressInfo.prototype['address_country'] = undefined; -/** - * The postal code of the organization location - * @member {String} address_postal_code - */ -OrganizationAddressInfo.prototype['address_postal_code'] = undefined; -/** - * The formatted organization location - * @member {String} address_formatted_address - */ -OrganizationAddressInfo.prototype['address_formatted_address'] = undefined; -// Implement OrganizationsCollectionResponseObjectAllOf interface: -/** - * The ID of the organization - * @member {Number} id - */ -OrganizationsCollectionResponseObjectAllOf.prototype['id'] = undefined; -/** - * Whether the organization is active or not - * @member {Boolean} active_flag - */ -OrganizationsCollectionResponseObjectAllOf.prototype['active_flag'] = undefined; -/** - * The ID of the owner - * @member {Number} owner_id - */ -OrganizationsCollectionResponseObjectAllOf.prototype['owner_id'] = undefined; -/** - * The name of the organization - * @member {String} name - */ -OrganizationsCollectionResponseObjectAllOf.prototype['name'] = undefined; -/** - * The last updated date and time of the organization. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -OrganizationsCollectionResponseObjectAllOf.prototype['update_time'] = undefined; -/** - * The date and time this organization was deleted. Format: YYYY-MM-DD HH:MM:SS - * @member {String} delete_time - */ -OrganizationsCollectionResponseObjectAllOf.prototype['delete_time'] = undefined; -/** - * The date and time when the organization was added/created. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -OrganizationsCollectionResponseObjectAllOf.prototype['add_time'] = undefined; -/** - * The visibility group ID of who can see the organization - * @member {String} visible_to - */ -OrganizationsCollectionResponseObjectAllOf.prototype['visible_to'] = undefined; -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -OrganizationsCollectionResponseObjectAllOf.prototype['label'] = undefined; -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -OrganizationsCollectionResponseObjectAllOf.prototype['label_ids'] = undefined; -/** - * The BCC email associated with the organization - * @member {String} cc_email - */ -OrganizationsCollectionResponseObjectAllOf.prototype['cc_email'] = undefined; - - - - -export default OrganizationsCollectionResponseObject; - diff --git a/src/model/OrganizationsCollectionResponseObjectAllOf.js b/src/model/OrganizationsCollectionResponseObjectAllOf.js deleted file mode 100644 index e2187439..00000000 --- a/src/model/OrganizationsCollectionResponseObjectAllOf.js +++ /dev/null @@ -1,189 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationsCollectionResponseObjectAllOf model module. - * @module model/OrganizationsCollectionResponseObjectAllOf - * @version 1.0.0 - */ -class OrganizationsCollectionResponseObjectAllOf { - /** - * Constructs a new OrganizationsCollectionResponseObjectAllOf. - * @alias module:model/OrganizationsCollectionResponseObjectAllOf - */ - constructor() { - - OrganizationsCollectionResponseObjectAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationsCollectionResponseObjectAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationsCollectionResponseObjectAllOf} obj Optional instance to populate. - * @return {module:model/OrganizationsCollectionResponseObjectAllOf} The populated OrganizationsCollectionResponseObjectAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationsCollectionResponseObjectAllOf(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('delete_time')) { - obj['delete_time'] = ApiClient.convertToType(data['delete_time'], 'String'); - - delete data['delete_time']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization - * @member {Number} id - */ -OrganizationsCollectionResponseObjectAllOf.prototype['id'] = undefined; - -/** - * Whether the organization is active or not - * @member {Boolean} active_flag - */ -OrganizationsCollectionResponseObjectAllOf.prototype['active_flag'] = undefined; - -/** - * The ID of the owner - * @member {Number} owner_id - */ -OrganizationsCollectionResponseObjectAllOf.prototype['owner_id'] = undefined; - -/** - * The name of the organization - * @member {String} name - */ -OrganizationsCollectionResponseObjectAllOf.prototype['name'] = undefined; - -/** - * The last updated date and time of the organization. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -OrganizationsCollectionResponseObjectAllOf.prototype['update_time'] = undefined; - -/** - * The date and time this organization was deleted. Format: YYYY-MM-DD HH:MM:SS - * @member {String} delete_time - */ -OrganizationsCollectionResponseObjectAllOf.prototype['delete_time'] = undefined; - -/** - * The date and time when the organization was added/created. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -OrganizationsCollectionResponseObjectAllOf.prototype['add_time'] = undefined; - -/** - * The visibility group ID of who can see the organization - * @member {String} visible_to - */ -OrganizationsCollectionResponseObjectAllOf.prototype['visible_to'] = undefined; - -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -OrganizationsCollectionResponseObjectAllOf.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -OrganizationsCollectionResponseObjectAllOf.prototype['label_ids'] = undefined; - -/** - * The BCC email associated with the organization - * @member {String} cc_email - */ -OrganizationsCollectionResponseObjectAllOf.prototype['cc_email'] = undefined; - - - - - - -export default OrganizationsCollectionResponseObjectAllOf; - diff --git a/src/model/OrganizationsDeleteResponse.js b/src/model/OrganizationsDeleteResponse.js deleted file mode 100644 index e1fc1c5c..00000000 --- a/src/model/OrganizationsDeleteResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationsDeleteResponseData from './OrganizationsDeleteResponseData'; - -/** - * The OrganizationsDeleteResponse model module. - * @module model/OrganizationsDeleteResponse - * @version 1.0.0 - */ -class OrganizationsDeleteResponse { - /** - * Constructs a new OrganizationsDeleteResponse. - * @alias module:model/OrganizationsDeleteResponse - */ - constructor() { - - OrganizationsDeleteResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationsDeleteResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationsDeleteResponse} obj Optional instance to populate. - * @return {module:model/OrganizationsDeleteResponse} The populated OrganizationsDeleteResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationsDeleteResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationsDeleteResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -OrganizationsDeleteResponse.prototype['success'] = undefined; - -/** - * @member {module:model/OrganizationsDeleteResponseData} data - */ -OrganizationsDeleteResponse.prototype['data'] = undefined; - - - - - - -export default OrganizationsDeleteResponse; - diff --git a/src/model/OrganizationsDeleteResponseData.js b/src/model/OrganizationsDeleteResponseData.js deleted file mode 100644 index 4cf90ddb..00000000 --- a/src/model/OrganizationsDeleteResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationsDeleteResponseData model module. - * @module model/OrganizationsDeleteResponseData - * @version 1.0.0 - */ -class OrganizationsDeleteResponseData { - /** - * Constructs a new OrganizationsDeleteResponseData. - * @alias module:model/OrganizationsDeleteResponseData - */ - constructor() { - - OrganizationsDeleteResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationsDeleteResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationsDeleteResponseData} obj Optional instance to populate. - * @return {module:model/OrganizationsDeleteResponseData} The populated OrganizationsDeleteResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationsDeleteResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], ['Number']); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The IDs of the organizations that were deleted - * @member {Array.} id - */ -OrganizationsDeleteResponseData.prototype['id'] = undefined; - - - - - - -export default OrganizationsDeleteResponseData; - diff --git a/src/model/OrganizationsMergeResponse.js b/src/model/OrganizationsMergeResponse.js deleted file mode 100644 index 35ddb30b..00000000 --- a/src/model/OrganizationsMergeResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationsMergeResponseData from './OrganizationsMergeResponseData'; - -/** - * The OrganizationsMergeResponse model module. - * @module model/OrganizationsMergeResponse - * @version 1.0.0 - */ -class OrganizationsMergeResponse { - /** - * Constructs a new OrganizationsMergeResponse. - * @alias module:model/OrganizationsMergeResponse - */ - constructor() { - - OrganizationsMergeResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationsMergeResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationsMergeResponse} obj Optional instance to populate. - * @return {module:model/OrganizationsMergeResponse} The populated OrganizationsMergeResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationsMergeResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = OrganizationsMergeResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -OrganizationsMergeResponse.prototype['success'] = undefined; - -/** - * @member {module:model/OrganizationsMergeResponseData} data - */ -OrganizationsMergeResponse.prototype['data'] = undefined; - - - - - - -export default OrganizationsMergeResponse; - diff --git a/src/model/OrganizationsMergeResponseData.js b/src/model/OrganizationsMergeResponseData.js deleted file mode 100644 index 34c1d211..00000000 --- a/src/model/OrganizationsMergeResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OrganizationsMergeResponseData model module. - * @module model/OrganizationsMergeResponseData - * @version 1.0.0 - */ -class OrganizationsMergeResponseData { - /** - * Constructs a new OrganizationsMergeResponseData. - * @alias module:model/OrganizationsMergeResponseData - */ - constructor() { - - OrganizationsMergeResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OrganizationsMergeResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OrganizationsMergeResponseData} obj Optional instance to populate. - * @return {module:model/OrganizationsMergeResponseData} The populated OrganizationsMergeResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OrganizationsMergeResponseData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the merged organization - * @member {Number} id - */ -OrganizationsMergeResponseData.prototype['id'] = undefined; - - - - - - -export default OrganizationsMergeResponseData; - diff --git a/src/model/Owner.js b/src/model/Owner.js deleted file mode 100644 index ee6657f6..00000000 --- a/src/model/Owner.js +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OwnerAllOf from './OwnerAllOf'; -import UserData from './UserData'; - -/** - * The Owner model module. - * @module model/Owner - * @version 1.0.0 - */ -class Owner { - /** - * Constructs a new Owner. - * @alias module:model/Owner - * @implements module:model/UserData - * @implements module:model/OwnerAllOf - */ - constructor() { - UserData.initialize(this);OwnerAllOf.initialize(this); - Owner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Owner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Owner} obj Optional instance to populate. - * @return {module:model/Owner} The populated Owner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Owner(); - UserData.constructFromObject(data, obj); - OwnerAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('has_pic')) { - obj['has_pic'] = ApiClient.convertToType(data['has_pic'], 'Number'); - - delete data['has_pic']; - } - if (data.hasOwnProperty('pic_hash')) { - obj['pic_hash'] = ApiClient.convertToType(data['pic_hash'], 'String'); - - delete data['pic_hash']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} id - */ -Owner.prototype['id'] = undefined; - -/** - * The name of the user - * @member {String} name - */ -Owner.prototype['name'] = undefined; - -/** - * The email of the user - * @member {String} email - */ -Owner.prototype['email'] = undefined; - -/** - * Whether the user has picture or not. 0 = No picture, 1 = Has picture. - * @member {Number} has_pic - */ -Owner.prototype['has_pic'] = undefined; - -/** - * The user picture hash - * @member {String} pic_hash - */ -Owner.prototype['pic_hash'] = undefined; - -/** - * Whether the user is active or not - * @member {Boolean} active_flag - */ -Owner.prototype['active_flag'] = undefined; - -/** - * The ID of the owner - * @member {Number} value - */ -Owner.prototype['value'] = undefined; - - -// Implement UserData interface: -/** - * The ID of the user - * @member {Number} id - */ -UserData.prototype['id'] = undefined; -/** - * The name of the user - * @member {String} name - */ -UserData.prototype['name'] = undefined; -/** - * The email of the user - * @member {String} email - */ -UserData.prototype['email'] = undefined; -/** - * Whether the user has picture or not. 0 = No picture, 1 = Has picture. - * @member {Number} has_pic - */ -UserData.prototype['has_pic'] = undefined; -/** - * The user picture hash - * @member {String} pic_hash - */ -UserData.prototype['pic_hash'] = undefined; -/** - * Whether the user is active or not - * @member {Boolean} active_flag - */ -UserData.prototype['active_flag'] = undefined; -// Implement OwnerAllOf interface: -/** - * The ID of the owner - * @member {Number} value - */ -OwnerAllOf.prototype['value'] = undefined; - - - - -export default Owner; - diff --git a/src/model/OwnerAllOf.js b/src/model/OwnerAllOf.js deleted file mode 100644 index cec57eff..00000000 --- a/src/model/OwnerAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OwnerAllOf model module. - * @module model/OwnerAllOf - * @version 1.0.0 - */ -class OwnerAllOf { - /** - * Constructs a new OwnerAllOf. - * @alias module:model/OwnerAllOf - */ - constructor() { - - OwnerAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OwnerAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OwnerAllOf} obj Optional instance to populate. - * @return {module:model/OwnerAllOf} The populated OwnerAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OwnerAllOf(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the owner - * @member {Number} value - */ -OwnerAllOf.prototype['value'] = undefined; - - - - - - -export default OwnerAllOf; - diff --git a/src/model/PaginationDetails.js b/src/model/PaginationDetails.js deleted file mode 100644 index 6cd91f15..00000000 --- a/src/model/PaginationDetails.js +++ /dev/null @@ -1,141 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import PaginationDetailsAllOf from './PaginationDetailsAllOf'; - -/** - * The PaginationDetails model module. - * @module model/PaginationDetails - * @version 1.0.0 - */ -class PaginationDetails { - /** - * Constructs a new PaginationDetails. - * Pagination details of the list - * @alias module:model/PaginationDetails - * @implements module:model/AdditionalData - * @implements module:model/PaginationDetailsAllOf - */ - constructor() { - AdditionalData.initialize(this);PaginationDetailsAllOf.initialize(this); - PaginationDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PaginationDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PaginationDetails} obj Optional instance to populate. - * @return {module:model/PaginationDetails} The populated PaginationDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PaginationDetails(); - AdditionalData.constructFromObject(data, obj); - PaginationDetailsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number'); - - delete data['start']; - } - if (data.hasOwnProperty('limit')) { - obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); - - delete data['limit']; - } - if (data.hasOwnProperty('more_items_in_collection')) { - obj['more_items_in_collection'] = ApiClient.convertToType(data['more_items_in_collection'], 'Boolean'); - - delete data['more_items_in_collection']; - } - if (data.hasOwnProperty('next_start')) { - obj['next_start'] = ApiClient.convertToType(data['next_start'], 'Number'); - - delete data['next_start']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Pagination start - * @member {Number} start - */ -PaginationDetails.prototype['start'] = undefined; - -/** - * Items shown per page - * @member {Number} limit - */ -PaginationDetails.prototype['limit'] = undefined; - -/** - * If there are more list items in the collection than displayed or not - * @member {Boolean} more_items_in_collection - */ -PaginationDetails.prototype['more_items_in_collection'] = undefined; - -/** - * Next pagination start - * @member {Number} next_start - */ -PaginationDetails.prototype['next_start'] = undefined; - - -// Implement AdditionalData interface: -/** - * Pagination start - * @member {Number} start - */ -AdditionalData.prototype['start'] = undefined; -/** - * Items shown per page - * @member {Number} limit - */ -AdditionalData.prototype['limit'] = undefined; -/** - * If there are more list items in the collection than displayed or not - * @member {Boolean} more_items_in_collection - */ -AdditionalData.prototype['more_items_in_collection'] = undefined; -// Implement PaginationDetailsAllOf interface: -/** - * Next pagination start - * @member {Number} next_start - */ -PaginationDetailsAllOf.prototype['next_start'] = undefined; - - - - -export default PaginationDetails; - diff --git a/src/model/PaginationDetailsAllOf.js b/src/model/PaginationDetailsAllOf.js deleted file mode 100644 index c78f990c..00000000 --- a/src/model/PaginationDetailsAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PaginationDetailsAllOf model module. - * @module model/PaginationDetailsAllOf - * @version 1.0.0 - */ -class PaginationDetailsAllOf { - /** - * Constructs a new PaginationDetailsAllOf. - * @alias module:model/PaginationDetailsAllOf - */ - constructor() { - - PaginationDetailsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PaginationDetailsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PaginationDetailsAllOf} obj Optional instance to populate. - * @return {module:model/PaginationDetailsAllOf} The populated PaginationDetailsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PaginationDetailsAllOf(); - - if (data.hasOwnProperty('next_start')) { - obj['next_start'] = ApiClient.convertToType(data['next_start'], 'Number'); - - delete data['next_start']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Next pagination start - * @member {Number} next_start - */ -PaginationDetailsAllOf.prototype['next_start'] = undefined; - - - - - - -export default PaginationDetailsAllOf; - diff --git a/src/model/Params.js b/src/model/Params.js deleted file mode 100644 index 41a55a3e..00000000 --- a/src/model/Params.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Params model module. - * @module model/Params - * @version 1.0.0 - */ -class Params { - /** - * Constructs a new Params. - * The parameters that accompany the goal type - * @alias module:model/Params - */ - constructor() { - - Params.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Params from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Params} obj Optional instance to populate. - * @return {module:model/Params} The populated Params instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Params(); - - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], ['Number']); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('activity_type_id')) { - obj['activity_type_id'] = ApiClient.convertToType(data['activity_type_id'], ['Number']); - - delete data['activity_type_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The IDs of pipelines of the goal - * @member {Array.} pipeline_id - */ -Params.prototype['pipeline_id'] = undefined; - -/** - * The IDs of activity types of the goal - * @member {Array.} activity_type_id - */ -Params.prototype['activity_type_id'] = undefined; - - - - - - -export default Params; - diff --git a/src/model/ParticipantsChangelog.js b/src/model/ParticipantsChangelog.js deleted file mode 100644 index c85fb941..00000000 --- a/src/model/ParticipantsChangelog.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import ParticipantsChangelogItem from './ParticipantsChangelogItem'; - -/** - * The ParticipantsChangelog model module. - * @module model/ParticipantsChangelog - * @version 1.0.0 - */ -class ParticipantsChangelog { - /** - * Constructs a new ParticipantsChangelog. - * @alias module:model/ParticipantsChangelog - */ - constructor() { - - ParticipantsChangelog.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ParticipantsChangelog from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ParticipantsChangelog} obj Optional instance to populate. - * @return {module:model/ParticipantsChangelog} The populated ParticipantsChangelog instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ParticipantsChangelog(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ParticipantsChangelogItem]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -ParticipantsChangelog.prototype['success'] = undefined; - -/** - * The array of participant changelog - * @member {Array.} data - */ -ParticipantsChangelog.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ParticipantsChangelog.prototype['additional_data'] = undefined; - - - - - - -export default ParticipantsChangelog; - diff --git a/src/model/ParticipantsChangelogItem.js b/src/model/ParticipantsChangelogItem.js deleted file mode 100644 index 947c99e4..00000000 --- a/src/model/ParticipantsChangelogItem.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealParticipantsChangelog from './DealParticipantsChangelog'; - -/** - * The ParticipantsChangelogItem model module. - * @module model/ParticipantsChangelogItem - * @version 1.0.0 - */ -class ParticipantsChangelogItem { - /** - * Constructs a new ParticipantsChangelogItem. - * @alias module:model/ParticipantsChangelogItem - * @implements module:model/DealParticipantsChangelog - */ - constructor() { - DealParticipantsChangelog.initialize(this); - ParticipantsChangelogItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ParticipantsChangelogItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ParticipantsChangelogItem} obj Optional instance to populate. - * @return {module:model/ParticipantsChangelogItem} The populated ParticipantsChangelogItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ParticipantsChangelogItem(); - DealParticipantsChangelog.constructFromObject(data, obj); - - if (data.hasOwnProperty('actor_user_id')) { - obj['actor_user_id'] = ApiClient.convertToType(data['actor_user_id'], 'Number'); - - delete data['actor_user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('action')) { - obj['action'] = ApiClient.convertToType(data['action'], 'String'); - - delete data['action']; - } - if (data.hasOwnProperty('time')) { - obj['time'] = ApiClient.convertToType(data['time'], 'String'); - - delete data['time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} actor_user_id - */ -ParticipantsChangelogItem.prototype['actor_user_id'] = undefined; - -/** - * The ID of the person - * @member {Number} person_id - */ -ParticipantsChangelogItem.prototype['person_id'] = undefined; - -/** - * Deal participant action type - * @member {String} action - */ -ParticipantsChangelogItem.prototype['action'] = undefined; - -/** - * The deal participant action log time - * @member {String} time - */ -ParticipantsChangelogItem.prototype['time'] = undefined; - - -// Implement DealParticipantsChangelog interface: -/** - * The ID of the user - * @member {Number} actor_user_id - */ -DealParticipantsChangelog.prototype['actor_user_id'] = undefined; -/** - * The ID of the person - * @member {Number} person_id - */ -DealParticipantsChangelog.prototype['person_id'] = undefined; -/** - * Deal participant action type - * @member {String} action - */ -DealParticipantsChangelog.prototype['action'] = undefined; -/** - * The deal participant action log time - * @member {String} time - */ -DealParticipantsChangelog.prototype['time'] = undefined; - - - - -export default ParticipantsChangelogItem; - diff --git a/src/model/PaymentItem.js b/src/model/PaymentItem.js deleted file mode 100644 index 4b00e8a1..00000000 --- a/src/model/PaymentItem.js +++ /dev/null @@ -1,283 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PaymentItem model module. - * @module model/PaymentItem - * @version 1.0.0 - */ -class PaymentItem { - /** - * Constructs a new PaymentItem. - * @alias module:model/PaymentItem - */ - constructor() { - - PaymentItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PaymentItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PaymentItem} obj Optional instance to populate. - * @return {module:model/PaymentItem} The populated PaymentItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PaymentItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('subscription_id')) { - obj['subscription_id'] = ApiClient.convertToType(data['subscription_id'], 'Number'); - - delete data['subscription_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); - - delete data['is_active']; - } - if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); - - delete data['amount']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('change_amount')) { - obj['change_amount'] = ApiClient.convertToType(data['change_amount'], 'Number'); - - delete data['change_amount']; - } - if (data.hasOwnProperty('due_at')) { - obj['due_at'] = ApiClient.convertToType(data['due_at'], 'Date'); - - delete data['due_at']; - } - if (data.hasOwnProperty('revenue_movement_type')) { - obj['revenue_movement_type'] = ApiClient.convertToType(data['revenue_movement_type'], 'String'); - - delete data['revenue_movement_type']; - } - if (data.hasOwnProperty('payment_type')) { - obj['payment_type'] = ApiClient.convertToType(data['payment_type'], 'String'); - - delete data['payment_type']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the payment - * @member {Number} id - */ -PaymentItem.prototype['id'] = undefined; - -/** - * The ID of the subscription this payment is associated with - * @member {Number} subscription_id - */ -PaymentItem.prototype['subscription_id'] = undefined; - -/** - * The ID of the deal this payment is associated with - * @member {Number} deal_id - */ -PaymentItem.prototype['deal_id'] = undefined; - -/** - * The payment status - * @member {Boolean} is_active - */ -PaymentItem.prototype['is_active'] = undefined; - -/** - * The payment amount - * @member {Number} amount - */ -PaymentItem.prototype['amount'] = undefined; - -/** - * The currency of the payment - * @member {String} currency - */ -PaymentItem.prototype['currency'] = undefined; - -/** - * The difference between the amount of the current payment and the previous payment. The value can be either positive or negative. - * @member {Number} change_amount - */ -PaymentItem.prototype['change_amount'] = undefined; - -/** - * The date when payment occurs - * @member {Date} due_at - */ -PaymentItem.prototype['due_at'] = undefined; - -/** - * Represents the movement of revenue in comparison with the previous payment. Possible values are: `New` - first payment of the subscription. `Recurring` - no movement. `Expansion` - current payment amount > previous payment amount. `Contraction` - current payment amount < previous payment amount. `Churn` - last payment of the subscription. - * @member {module:model/PaymentItem.RevenueMovementTypeEnum} revenue_movement_type - */ -PaymentItem.prototype['revenue_movement_type'] = undefined; - -/** - * The type of the payment. Possible values are: `Recurring` - payments occur over fixed intervals of time, `Additional` - extra payment not the recurring payment of the recurring subscription, `Installment` - payment of the installment subscription. - * @member {module:model/PaymentItem.PaymentTypeEnum} payment_type - */ -PaymentItem.prototype['payment_type'] = undefined; - -/** - * The description of the payment - * @member {String} description - */ -PaymentItem.prototype['description'] = undefined; - -/** - * The creation time of the payment - * @member {Date} add_time - */ -PaymentItem.prototype['add_time'] = undefined; - -/** - * The update time of the payment - * @member {Date} update_time - */ -PaymentItem.prototype['update_time'] = undefined; - - - - - -/** - * Allowed values for the revenue_movement_type property. - * @enum {String} - * @readonly - */ -PaymentItem['RevenueMovementTypeEnum'] = { - - /** - * value: "new" - * @const - */ - "new": "new", - - /** - * value: "recurring" - * @const - */ - "recurring": "recurring", - - /** - * value: "expansion" - * @const - */ - "expansion": "expansion", - - /** - * value: "contraction" - * @const - */ - "contraction": "contraction", - - /** - * value: "none" - * @const - */ - "none": "none", - - /** - * value: "churn" - * @const - */ - "churn": "churn" -}; - - -/** - * Allowed values for the payment_type property. - * @enum {String} - * @readonly - */ -PaymentItem['PaymentTypeEnum'] = { - - /** - * value: "recurring" - * @const - */ - "recurring": "recurring", - - /** - * value: "additional" - * @const - */ - "additional": "additional", - - /** - * value: "installment" - * @const - */ - "installment": "installment" -}; - - - -export default PaymentItem; - diff --git a/src/model/PaymentsResponse.js b/src/model/PaymentsResponse.js deleted file mode 100644 index 08906f56..00000000 --- a/src/model/PaymentsResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import PaymentItem from './PaymentItem'; -import PaymentsResponseAllOf from './PaymentsResponseAllOf'; - -/** - * The PaymentsResponse model module. - * @module model/PaymentsResponse - * @version 1.0.0 - */ -class PaymentsResponse { - /** - * Constructs a new PaymentsResponse. - * @alias module:model/PaymentsResponse - * @implements module:model/BaseResponse - * @implements module:model/PaymentsResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);PaymentsResponseAllOf.initialize(this); - PaymentsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PaymentsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PaymentsResponse} obj Optional instance to populate. - * @return {module:model/PaymentsResponse} The populated PaymentsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PaymentsResponse(); - BaseResponse.constructFromObject(data, obj); - PaymentsResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PaymentItem]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -PaymentsResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -PaymentsResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement PaymentsResponseAllOf interface: -/** - * @member {Array.} data - */ -PaymentsResponseAllOf.prototype['data'] = undefined; - - - - -export default PaymentsResponse; - diff --git a/src/model/PaymentsResponseAllOf.js b/src/model/PaymentsResponseAllOf.js deleted file mode 100644 index bd5e1e87..00000000 --- a/src/model/PaymentsResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PaymentItem from './PaymentItem'; - -/** - * The PaymentsResponseAllOf model module. - * @module model/PaymentsResponseAllOf - * @version 1.0.0 - */ -class PaymentsResponseAllOf { - /** - * Constructs a new PaymentsResponseAllOf. - * @alias module:model/PaymentsResponseAllOf - */ - constructor() { - - PaymentsResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PaymentsResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PaymentsResponseAllOf} obj Optional instance to populate. - * @return {module:model/PaymentsResponseAllOf} The populated PaymentsResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PaymentsResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PaymentItem]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Array.} data - */ -PaymentsResponseAllOf.prototype['data'] = undefined; - - - - - - -export default PaymentsResponseAllOf; - diff --git a/src/model/PaymentsResponseAllOfData.js b/src/model/PaymentsResponseAllOfData.js deleted file mode 100644 index c2f57e5d..00000000 --- a/src/model/PaymentsResponseAllOfData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PaymentItem from './PaymentItem'; - -/** - * The PaymentsResponseAllOfData model module. - * @module model/PaymentsResponseAllOfData - * @version 1.0.0 - */ -class PaymentsResponseAllOfData { - /** - * Constructs a new PaymentsResponseAllOfData. - * @alias module:model/PaymentsResponseAllOfData - */ - constructor() { - - PaymentsResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PaymentsResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PaymentsResponseAllOfData} obj Optional instance to populate. - * @return {module:model/PaymentsResponseAllOfData} The populated PaymentsResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PaymentsResponseAllOfData(); - - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [PaymentItem]); - - delete data['items']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Array.} items - */ -PaymentsResponseAllOfData.prototype['items'] = undefined; - - - - - - -export default PaymentsResponseAllOfData; - diff --git a/src/model/PermissionSets.js b/src/model/PermissionSets.js deleted file mode 100644 index de0574db..00000000 --- a/src/model/PermissionSets.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import PermissionSetsAllOf from './PermissionSetsAllOf'; -import PermissionSetsItem from './PermissionSetsItem'; - -/** - * The PermissionSets model module. - * @module model/PermissionSets - * @version 1.0.0 - */ -class PermissionSets { - /** - * Constructs a new PermissionSets. - * @alias module:model/PermissionSets - * @implements module:model/BaseResponse - * @implements module:model/PermissionSetsAllOf - */ - constructor() { - BaseResponse.initialize(this);PermissionSetsAllOf.initialize(this); - PermissionSets.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PermissionSets from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PermissionSets} obj Optional instance to populate. - * @return {module:model/PermissionSets} The populated PermissionSets instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PermissionSets(); - BaseResponse.constructFromObject(data, obj); - PermissionSetsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PermissionSetsItem]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -PermissionSets.prototype['success'] = undefined; - -/** - * The array of permission set - * @member {Array.} data - */ -PermissionSets.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement PermissionSetsAllOf interface: -/** - * The array of permission set - * @member {Array.} data - */ -PermissionSetsAllOf.prototype['data'] = undefined; - - - - -export default PermissionSets; - diff --git a/src/model/PermissionSetsAllOf.js b/src/model/PermissionSetsAllOf.js deleted file mode 100644 index d8ae2ed8..00000000 --- a/src/model/PermissionSetsAllOf.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PermissionSetsItem from './PermissionSetsItem'; - -/** - * The PermissionSetsAllOf model module. - * @module model/PermissionSetsAllOf - * @version 1.0.0 - */ -class PermissionSetsAllOf { - /** - * Constructs a new PermissionSetsAllOf. - * @alias module:model/PermissionSetsAllOf - */ - constructor() { - - PermissionSetsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PermissionSetsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PermissionSetsAllOf} obj Optional instance to populate. - * @return {module:model/PermissionSetsAllOf} The populated PermissionSetsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PermissionSetsAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PermissionSetsItem]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of permission set - * @member {Array.} data - */ -PermissionSetsAllOf.prototype['data'] = undefined; - - - - - - -export default PermissionSetsAllOf; - diff --git a/src/model/PermissionSetsItem.js b/src/model/PermissionSetsItem.js deleted file mode 100644 index 7d92f84b..00000000 --- a/src/model/PermissionSetsItem.js +++ /dev/null @@ -1,206 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PermissionSetsItem model module. - * @module model/PermissionSetsItem - * @version 1.0.0 - */ -class PermissionSetsItem { - /** - * Constructs a new PermissionSetsItem. - * @alias module:model/PermissionSetsItem - */ - constructor() { - - PermissionSetsItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PermissionSetsItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PermissionSetsItem} obj Optional instance to populate. - * @return {module:model/PermissionSetsItem} The populated PermissionSetsItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PermissionSetsItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('app')) { - obj['app'] = ApiClient.convertToType(data['app'], 'String'); - - delete data['app']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('assignment_count')) { - obj['assignment_count'] = ApiClient.convertToType(data['assignment_count'], 'Number'); - - delete data['assignment_count']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of user permission set - * @member {String} id - */ -PermissionSetsItem.prototype['id'] = undefined; - -/** - * The name of the permission set - * @member {String} name - */ -PermissionSetsItem.prototype['name'] = undefined; - -/** - * The description of the permission set - * @member {String} description - */ -PermissionSetsItem.prototype['description'] = undefined; - -/** - * The app that permission set belongs to - * @member {module:model/PermissionSetsItem.AppEnum} app - */ -PermissionSetsItem.prototype['app'] = undefined; - -/** - * The type of permission set - * @member {module:model/PermissionSetsItem.TypeEnum} type - */ -PermissionSetsItem.prototype['type'] = undefined; - -/** - * The number of users assigned to this permission set - * @member {Number} assignment_count - */ -PermissionSetsItem.prototype['assignment_count'] = undefined; - - - - - -/** - * Allowed values for the app property. - * @enum {String} - * @readonly - */ -PermissionSetsItem['AppEnum'] = { - - /** - * value: "sales" - * @const - */ - "sales": "sales", - - /** - * value: "projects" - * @const - */ - "projects": "projects", - - /** - * value: "campaigns" - * @const - */ - "campaigns": "campaigns", - - /** - * value: "global" - * @const - */ - "global": "global", - - /** - * value: "account_settings" - * @const - */ - "account_settings": "account_settings" -}; - - -/** - * Allowed values for the type property. - * @enum {String} - * @readonly - */ -PermissionSetsItem['TypeEnum'] = { - - /** - * value: "admin" - * @const - */ - "admin": "admin", - - /** - * value: "manager" - * @const - */ - "manager": "manager", - - /** - * value: "regular" - * @const - */ - "regular": "regular", - - /** - * value: "custom" - * @const - */ - "custom": "custom" -}; - - - -export default PermissionSetsItem; - diff --git a/src/model/PersonCountAndEmailInfo.js b/src/model/PersonCountAndEmailInfo.js deleted file mode 100644 index 688c1dc4..00000000 --- a/src/model/PersonCountAndEmailInfo.js +++ /dev/null @@ -1,220 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import EmailInfo from './EmailInfo'; -import PersonCountInfo from './PersonCountInfo'; - -/** - * The PersonCountAndEmailInfo model module. - * @module model/PersonCountAndEmailInfo - * @version 1.0.0 - */ -class PersonCountAndEmailInfo { - /** - * Constructs a new PersonCountAndEmailInfo. - * @alias module:model/PersonCountAndEmailInfo - * @implements module:model/PersonCountInfo - * @implements module:model/EmailInfo - */ - constructor() { - PersonCountInfo.initialize(this);EmailInfo.initialize(this); - PersonCountAndEmailInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonCountAndEmailInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonCountAndEmailInfo} obj Optional instance to populate. - * @return {module:model/PersonCountAndEmailInfo} The populated PersonCountAndEmailInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonCountAndEmailInfo(); - PersonCountInfo.constructFromObject(data, obj); - EmailInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonCountAndEmailInfo.prototype['email_messages_count'] = undefined; - -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonCountAndEmailInfo.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonCountAndEmailInfo.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonCountAndEmailInfo.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonCountAndEmailInfo.prototype['files_count'] = undefined; - -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonCountAndEmailInfo.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonCountAndEmailInfo.prototype['followers_count'] = undefined; - -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -PersonCountAndEmailInfo.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -PersonCountAndEmailInfo.prototype['last_outgoing_mail_time'] = undefined; - - -// Implement PersonCountInfo interface: -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonCountInfo.prototype['email_messages_count'] = undefined; -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonCountInfo.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonCountInfo.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonCountInfo.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonCountInfo.prototype['files_count'] = undefined; -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonCountInfo.prototype['notes_count'] = undefined; -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonCountInfo.prototype['followers_count'] = undefined; -// Implement EmailInfo interface: -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -EmailInfo.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -EmailInfo.prototype['last_outgoing_mail_time'] = undefined; - - - - -export default PersonCountAndEmailInfo; - diff --git a/src/model/PersonCountEmailDealAndActivityInfo.js b/src/model/PersonCountEmailDealAndActivityInfo.js deleted file mode 100644 index 0af38022..00000000 --- a/src/model/PersonCountEmailDealAndActivityInfo.js +++ /dev/null @@ -1,428 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealCountAndActivityInfo from './DealCountAndActivityInfo'; -import PersonCountAndEmailInfo from './PersonCountAndEmailInfo'; - -/** - * The PersonCountEmailDealAndActivityInfo model module. - * @module model/PersonCountEmailDealAndActivityInfo - * @version 1.0.0 - */ -class PersonCountEmailDealAndActivityInfo { - /** - * Constructs a new PersonCountEmailDealAndActivityInfo. - * @alias module:model/PersonCountEmailDealAndActivityInfo - * @implements module:model/PersonCountAndEmailInfo - * @implements module:model/DealCountAndActivityInfo - */ - constructor() { - PersonCountAndEmailInfo.initialize(this);DealCountAndActivityInfo.initialize(this); - PersonCountEmailDealAndActivityInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonCountEmailDealAndActivityInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonCountEmailDealAndActivityInfo} obj Optional instance to populate. - * @return {module:model/PersonCountEmailDealAndActivityInfo} The populated PersonCountEmailDealAndActivityInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonCountEmailDealAndActivityInfo(); - PersonCountAndEmailInfo.constructFromObject(data, obj); - DealCountAndActivityInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonCountEmailDealAndActivityInfo.prototype['email_messages_count'] = undefined; - -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonCountEmailDealAndActivityInfo.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonCountEmailDealAndActivityInfo.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonCountEmailDealAndActivityInfo.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonCountEmailDealAndActivityInfo.prototype['files_count'] = undefined; - -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonCountEmailDealAndActivityInfo.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonCountEmailDealAndActivityInfo.prototype['followers_count'] = undefined; - -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -PersonCountEmailDealAndActivityInfo.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -PersonCountEmailDealAndActivityInfo.prototype['last_outgoing_mail_time'] = undefined; - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -PersonCountEmailDealAndActivityInfo.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -PersonCountEmailDealAndActivityInfo.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -PersonCountEmailDealAndActivityInfo.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -PersonCountEmailDealAndActivityInfo.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -PersonCountEmailDealAndActivityInfo.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -PersonCountEmailDealAndActivityInfo.prototype['last_activity_date'] = undefined; - - -// Implement PersonCountAndEmailInfo interface: -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonCountAndEmailInfo.prototype['email_messages_count'] = undefined; -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonCountAndEmailInfo.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonCountAndEmailInfo.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonCountAndEmailInfo.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonCountAndEmailInfo.prototype['files_count'] = undefined; -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonCountAndEmailInfo.prototype['notes_count'] = undefined; -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonCountAndEmailInfo.prototype['followers_count'] = undefined; -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -PersonCountAndEmailInfo.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -PersonCountAndEmailInfo.prototype['last_outgoing_mail_time'] = undefined; -// Implement DealCountAndActivityInfo interface: -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -DealCountAndActivityInfo.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -DealCountAndActivityInfo.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -DealCountAndActivityInfo.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -DealCountAndActivityInfo.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -DealCountAndActivityInfo.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -DealCountAndActivityInfo.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -DealCountAndActivityInfo.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -DealCountAndActivityInfo.prototype['related_lost_deals_count'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -DealCountAndActivityInfo.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -DealCountAndActivityInfo.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -DealCountAndActivityInfo.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -DealCountAndActivityInfo.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -DealCountAndActivityInfo.prototype['last_activity_date'] = undefined; - - - - -export default PersonCountEmailDealAndActivityInfo; - diff --git a/src/model/PersonCountInfo.js b/src/model/PersonCountInfo.js deleted file mode 100644 index 6d57b4d1..00000000 --- a/src/model/PersonCountInfo.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PersonCountInfo model module. - * @module model/PersonCountInfo - * @version 1.0.0 - */ -class PersonCountInfo { - /** - * Constructs a new PersonCountInfo. - * @alias module:model/PersonCountInfo - */ - constructor() { - - PersonCountInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonCountInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonCountInfo} obj Optional instance to populate. - * @return {module:model/PersonCountInfo} The populated PersonCountInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonCountInfo(); - - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonCountInfo.prototype['email_messages_count'] = undefined; - -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonCountInfo.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonCountInfo.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonCountInfo.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonCountInfo.prototype['files_count'] = undefined; - -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonCountInfo.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonCountInfo.prototype['followers_count'] = undefined; - - - - - - -export default PersonCountInfo; - diff --git a/src/model/PersonData.js b/src/model/PersonData.js deleted file mode 100644 index c61dee2c..00000000 --- a/src/model/PersonData.js +++ /dev/null @@ -1,125 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PersonDataEmail from './PersonDataEmail'; -import PersonDataPhone from './PersonDataPhone'; - -/** - * The PersonData model module. - * @module model/PersonData - * @version 1.0.0 - */ -class PersonData { - /** - * Constructs a new PersonData. - * @alias module:model/PersonData - */ - constructor() { - - PersonData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonData} obj Optional instance to populate. - * @return {module:model/PersonData} The populated PersonData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], [PersonDataEmail]); - - delete data['email']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], [PersonDataPhone]); - - delete data['phone']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person associated with the item - * @member {Number} id - */ -PersonData.prototype['id'] = undefined; - -/** - * The name of the person associated with the item - * @member {String} name - */ -PersonData.prototype['name'] = undefined; - -/** - * The emails of the person associated with the item - * @member {Array.} email - */ -PersonData.prototype['email'] = undefined; - -/** - * The phone numbers of the person associated with the item - * @member {Array.} phone - */ -PersonData.prototype['phone'] = undefined; - -/** - * The ID of the owner of the person that is associated with the item - * @member {Number} owner_id - */ -PersonData.prototype['owner_id'] = undefined; - - - - - - -export default PersonData; - diff --git a/src/model/PersonDataEmail.js b/src/model/PersonDataEmail.js deleted file mode 100644 index a1abc6d7..00000000 --- a/src/model/PersonDataEmail.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PersonDataEmail model module. - * @module model/PersonDataEmail - * @version 1.0.0 - */ -class PersonDataEmail { - /** - * Constructs a new PersonDataEmail. - * @alias module:model/PersonDataEmail - */ - constructor() { - - PersonDataEmail.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonDataEmail from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonDataEmail} obj Optional instance to populate. - * @return {module:model/PersonDataEmail} The populated PersonDataEmail instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonDataEmail(); - - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - - delete data['value']; - } - if (data.hasOwnProperty('primary')) { - obj['primary'] = ApiClient.convertToType(data['primary'], 'Boolean'); - - delete data['primary']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The type of the email - * @member {String} label - */ -PersonDataEmail.prototype['label'] = undefined; - -/** - * The email of the associated person - * @member {String} value - */ -PersonDataEmail.prototype['value'] = undefined; - -/** - * Whether this is the primary email or not - * @member {Boolean} primary - */ -PersonDataEmail.prototype['primary'] = undefined; - - - - - - -export default PersonDataEmail; - diff --git a/src/model/PersonDataPhone.js b/src/model/PersonDataPhone.js deleted file mode 100644 index 253a57e6..00000000 --- a/src/model/PersonDataPhone.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PersonDataPhone model module. - * @module model/PersonDataPhone - * @version 1.0.0 - */ -class PersonDataPhone { - /** - * Constructs a new PersonDataPhone. - * @alias module:model/PersonDataPhone - */ - constructor() { - - PersonDataPhone.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonDataPhone from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonDataPhone} obj Optional instance to populate. - * @return {module:model/PersonDataPhone} The populated PersonDataPhone instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonDataPhone(); - - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - - delete data['value']; - } - if (data.hasOwnProperty('primary')) { - obj['primary'] = ApiClient.convertToType(data['primary'], 'Boolean'); - - delete data['primary']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The type of the phone number - * @member {String} label - */ -PersonDataPhone.prototype['label'] = undefined; - -/** - * The phone number of the person associated with the item - * @member {String} value - */ -PersonDataPhone.prototype['value'] = undefined; - -/** - * Whether this is the primary phone number or not - * @member {Boolean} primary - */ -PersonDataPhone.prototype['primary'] = undefined; - - - - - - -export default PersonDataPhone; - diff --git a/src/model/PersonDataWithActiveFlag.js b/src/model/PersonDataWithActiveFlag.js deleted file mode 100644 index db3aeacd..00000000 --- a/src/model/PersonDataWithActiveFlag.js +++ /dev/null @@ -1,175 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PersonData from './PersonData'; -import PersonDataEmail from './PersonDataEmail'; -import PersonDataPhone from './PersonDataPhone'; -import PersonDataWithActiveFlagAllOf from './PersonDataWithActiveFlagAllOf'; - -/** - * The PersonDataWithActiveFlag model module. - * @module model/PersonDataWithActiveFlag - * @version 1.0.0 - */ -class PersonDataWithActiveFlag { - /** - * Constructs a new PersonDataWithActiveFlag. - * The ID of the person associated with the item - * @alias module:model/PersonDataWithActiveFlag - * @implements module:model/PersonDataWithActiveFlagAllOf - * @implements module:model/PersonData - */ - constructor() { - PersonDataWithActiveFlagAllOf.initialize(this);PersonData.initialize(this); - PersonDataWithActiveFlag.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonDataWithActiveFlag from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonDataWithActiveFlag} obj Optional instance to populate. - * @return {module:model/PersonDataWithActiveFlag} The populated PersonDataWithActiveFlag instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonDataWithActiveFlag(); - PersonDataWithActiveFlagAllOf.constructFromObject(data, obj); - PersonData.constructFromObject(data, obj); - - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], [PersonDataEmail]); - - delete data['email']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], [PersonDataPhone]); - - delete data['phone']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Whether the associated person is active or not - * @member {Boolean} active_flag - */ -PersonDataWithActiveFlag.prototype['active_flag'] = undefined; - -/** - * The ID of the person associated with the item - * @member {Number} id - */ -PersonDataWithActiveFlag.prototype['id'] = undefined; - -/** - * The name of the person associated with the item - * @member {String} name - */ -PersonDataWithActiveFlag.prototype['name'] = undefined; - -/** - * The emails of the person associated with the item - * @member {Array.} email - */ -PersonDataWithActiveFlag.prototype['email'] = undefined; - -/** - * The phone numbers of the person associated with the item - * @member {Array.} phone - */ -PersonDataWithActiveFlag.prototype['phone'] = undefined; - -/** - * The ID of the owner of the person that is associated with the item - * @member {Number} owner_id - */ -PersonDataWithActiveFlag.prototype['owner_id'] = undefined; - - -// Implement PersonDataWithActiveFlagAllOf interface: -/** - * Whether the associated person is active or not - * @member {Boolean} active_flag - */ -PersonDataWithActiveFlagAllOf.prototype['active_flag'] = undefined; -// Implement PersonData interface: -/** - * The ID of the person associated with the item - * @member {Number} id - */ -PersonData.prototype['id'] = undefined; -/** - * The name of the person associated with the item - * @member {String} name - */ -PersonData.prototype['name'] = undefined; -/** - * The emails of the person associated with the item - * @member {Array.} email - */ -PersonData.prototype['email'] = undefined; -/** - * The phone numbers of the person associated with the item - * @member {Array.} phone - */ -PersonData.prototype['phone'] = undefined; -/** - * The ID of the owner of the person that is associated with the item - * @member {Number} owner_id - */ -PersonData.prototype['owner_id'] = undefined; - - - - -export default PersonDataWithActiveFlag; - diff --git a/src/model/PersonDataWithActiveFlagAllOf.js b/src/model/PersonDataWithActiveFlagAllOf.js deleted file mode 100644 index 1add8e98..00000000 --- a/src/model/PersonDataWithActiveFlagAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PersonDataWithActiveFlagAllOf model module. - * @module model/PersonDataWithActiveFlagAllOf - * @version 1.0.0 - */ -class PersonDataWithActiveFlagAllOf { - /** - * Constructs a new PersonDataWithActiveFlagAllOf. - * @alias module:model/PersonDataWithActiveFlagAllOf - */ - constructor() { - - PersonDataWithActiveFlagAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonDataWithActiveFlagAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonDataWithActiveFlagAllOf} obj Optional instance to populate. - * @return {module:model/PersonDataWithActiveFlagAllOf} The populated PersonDataWithActiveFlagAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonDataWithActiveFlagAllOf(); - - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Whether the associated person is active or not - * @member {Boolean} active_flag - */ -PersonDataWithActiveFlagAllOf.prototype['active_flag'] = undefined; - - - - - - -export default PersonDataWithActiveFlagAllOf; - diff --git a/src/model/PersonFlowResponse.js b/src/model/PersonFlowResponse.js deleted file mode 100644 index 8d11ae52..00000000 --- a/src/model/PersonFlowResponse.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import BaseResponse from './BaseResponse'; -import DealFlowResponseAllOfRelatedObjects from './DealFlowResponseAllOfRelatedObjects'; -import PersonFlowResponseAllOf from './PersonFlowResponseAllOf'; -import PersonFlowResponseAllOfData from './PersonFlowResponseAllOfData'; - -/** - * The PersonFlowResponse model module. - * @module model/PersonFlowResponse - * @version 1.0.0 - */ -class PersonFlowResponse { - /** - * Constructs a new PersonFlowResponse. - * @alias module:model/PersonFlowResponse - * @implements module:model/BaseResponse - * @implements module:model/PersonFlowResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);PersonFlowResponseAllOf.initialize(this); - PersonFlowResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonFlowResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonFlowResponse} obj Optional instance to populate. - * @return {module:model/PersonFlowResponse} The populated PersonFlowResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonFlowResponse(); - BaseResponse.constructFromObject(data, obj); - PersonFlowResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PersonFlowResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = DealFlowResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -PersonFlowResponse.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -PersonFlowResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -PersonFlowResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/DealFlowResponseAllOfRelatedObjects} related_objects - */ -PersonFlowResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement PersonFlowResponseAllOf interface: -/** - * @member {Array.} data - */ -PersonFlowResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/AdditionalData} additional_data - */ -PersonFlowResponseAllOf.prototype['additional_data'] = undefined; -/** - * @member {module:model/DealFlowResponseAllOfRelatedObjects} related_objects - */ -PersonFlowResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default PersonFlowResponse; - diff --git a/src/model/PersonFlowResponseAllOf.js b/src/model/PersonFlowResponseAllOf.js deleted file mode 100644 index 778278d4..00000000 --- a/src/model/PersonFlowResponseAllOf.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import DealFlowResponseAllOfRelatedObjects from './DealFlowResponseAllOfRelatedObjects'; -import PersonFlowResponseAllOfData from './PersonFlowResponseAllOfData'; - -/** - * The PersonFlowResponseAllOf model module. - * @module model/PersonFlowResponseAllOf - * @version 1.0.0 - */ -class PersonFlowResponseAllOf { - /** - * Constructs a new PersonFlowResponseAllOf. - * @alias module:model/PersonFlowResponseAllOf - */ - constructor() { - - PersonFlowResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonFlowResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonFlowResponseAllOf} obj Optional instance to populate. - * @return {module:model/PersonFlowResponseAllOf} The populated PersonFlowResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonFlowResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [PersonFlowResponseAllOfData]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = DealFlowResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Array.} data - */ -PersonFlowResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -PersonFlowResponseAllOf.prototype['additional_data'] = undefined; - -/** - * @member {module:model/DealFlowResponseAllOfRelatedObjects} related_objects - */ -PersonFlowResponseAllOf.prototype['related_objects'] = undefined; - - - - - - -export default PersonFlowResponseAllOf; - diff --git a/src/model/PersonFlowResponseAllOfData.js b/src/model/PersonFlowResponseAllOfData.js deleted file mode 100644 index 1168adc5..00000000 --- a/src/model/PersonFlowResponseAllOfData.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PersonFlowResponseAllOfData model module. - * @module model/PersonFlowResponseAllOfData - * @version 1.0.0 - */ -class PersonFlowResponseAllOfData { - /** - * Constructs a new PersonFlowResponseAllOfData. - * @alias module:model/PersonFlowResponseAllOfData - */ - constructor() { - - PersonFlowResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonFlowResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonFlowResponseAllOfData} obj Optional instance to populate. - * @return {module:model/PersonFlowResponseAllOfData} The populated PersonFlowResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonFlowResponseAllOfData(); - - if (data.hasOwnProperty('object')) { - obj['object'] = ApiClient.convertToType(data['object'], 'String'); - - delete data['object']; - } - if (data.hasOwnProperty('timestamp')) { - obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'String'); - - delete data['timestamp']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], Object); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The type of the person update. (Possible object types - personChange, note, activity, file) - * @member {String} object - */ -PersonFlowResponseAllOfData.prototype['object'] = undefined; - -/** - * The creation date and time of the update - * @member {String} timestamp - */ -PersonFlowResponseAllOfData.prototype['timestamp'] = undefined; - -/** - * The data related to the update - * @member {Object} data - */ -PersonFlowResponseAllOfData.prototype['data'] = undefined; - - - - - - -export default PersonFlowResponseAllOfData; - diff --git a/src/model/PersonItem.js b/src/model/PersonItem.js deleted file mode 100644 index 78ef7382..00000000 --- a/src/model/PersonItem.js +++ /dev/null @@ -1,747 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalPersonInfo from './AdditionalPersonInfo'; -import BasePersonItem from './BasePersonItem'; -import BasePersonItemEmail from './BasePersonItemEmail'; -import BasePersonItemPhone from './BasePersonItemPhone'; -import Owner from './Owner'; -import PictureDataWithID from './PictureDataWithID'; -import RelationshipOrganizationInfoItemWithActiveFlag from './RelationshipOrganizationInfoItemWithActiveFlag'; - -/** - * The PersonItem model module. - * @module model/PersonItem - * @version 1.0.0 - */ -class PersonItem { - /** - * Constructs a new PersonItem. - * @alias module:model/PersonItem - * @implements module:model/BasePersonItem - * @implements module:model/AdditionalPersonInfo - */ - constructor() { - BasePersonItem.initialize(this);AdditionalPersonInfo.initialize(this); - PersonItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonItem} obj Optional instance to populate. - * @return {module:model/PersonItem} The populated PersonItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonItem(); - BasePersonItem.constructFromObject(data, obj); - AdditionalPersonInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], [BasePersonItemPhone]); - - delete data['phone']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], [BasePersonItemEmail]); - - delete data['email']; - } - if (data.hasOwnProperty('first_char')) { - obj['first_char'] = ApiClient.convertToType(data['first_char'], 'String'); - - delete data['first_char']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('picture_id')) { - obj['picture_id'] = PictureDataWithID.constructFromObject(data['picture_id']); - - delete data['picture_id']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('org_name')) { - obj['org_name'] = ApiClient.convertToType(data['org_name'], 'String'); - - delete data['org_name']; - } - if (data.hasOwnProperty('owner_name')) { - obj['owner_name'] = ApiClient.convertToType(data['owner_name'], 'String'); - - delete data['owner_name']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = Owner.constructFromObject(data['owner_id']); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = RelationshipOrganizationInfoItemWithActiveFlag.constructFromObject(data['org_id']); - - delete data['org_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String'); - - delete data['first_name']; - } - if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String'); - - delete data['last_name']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - if (data.hasOwnProperty('open_deals_count')) { - obj['open_deals_count'] = ApiClient.convertToType(data['open_deals_count'], 'Number'); - - delete data['open_deals_count']; - } - if (data.hasOwnProperty('related_open_deals_count')) { - obj['related_open_deals_count'] = ApiClient.convertToType(data['related_open_deals_count'], 'Number'); - - delete data['related_open_deals_count']; - } - if (data.hasOwnProperty('closed_deals_count')) { - obj['closed_deals_count'] = ApiClient.convertToType(data['closed_deals_count'], 'Number'); - - delete data['closed_deals_count']; - } - if (data.hasOwnProperty('related_closed_deals_count')) { - obj['related_closed_deals_count'] = ApiClient.convertToType(data['related_closed_deals_count'], 'Number'); - - delete data['related_closed_deals_count']; - } - if (data.hasOwnProperty('won_deals_count')) { - obj['won_deals_count'] = ApiClient.convertToType(data['won_deals_count'], 'Number'); - - delete data['won_deals_count']; - } - if (data.hasOwnProperty('related_won_deals_count')) { - obj['related_won_deals_count'] = ApiClient.convertToType(data['related_won_deals_count'], 'Number'); - - delete data['related_won_deals_count']; - } - if (data.hasOwnProperty('lost_deals_count')) { - obj['lost_deals_count'] = ApiClient.convertToType(data['lost_deals_count'], 'Number'); - - delete data['lost_deals_count']; - } - if (data.hasOwnProperty('related_lost_deals_count')) { - obj['related_lost_deals_count'] = ApiClient.convertToType(data['related_lost_deals_count'], 'Number'); - - delete data['related_lost_deals_count']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person - * @member {Number} id - */ -PersonItem.prototype['id'] = undefined; - -/** - * The ID of the company related to the person - * @member {Number} company_id - */ -PersonItem.prototype['company_id'] = undefined; - -/** - * Whether the person is active or not - * @member {Boolean} active_flag - */ -PersonItem.prototype['active_flag'] = undefined; - -/** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @member {Array.} phone - */ -PersonItem.prototype['phone'] = undefined; - -/** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" } ]`. Please note that only `value` is required. - * @member {Array.} email - */ -PersonItem.prototype['email'] = undefined; - -/** - * The first letter of the name of the person - * @member {String} first_char - */ -PersonItem.prototype['first_char'] = undefined; - -/** - * The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -PersonItem.prototype['add_time'] = undefined; - -/** - * The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -PersonItem.prototype['update_time'] = undefined; - -/** - * The visibility group ID of who can see the person - * @member {String} visible_to - */ -PersonItem.prototype['visible_to'] = undefined; - -/** - * @member {module:model/PictureDataWithID} picture_id - */ -PersonItem.prototype['picture_id'] = undefined; - -/** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -PersonItem.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -PersonItem.prototype['label_ids'] = undefined; - -/** - * The name of the organization associated with the person - * @member {String} org_name - */ -PersonItem.prototype['org_name'] = undefined; - -/** - * The name of the owner associated with the person - * @member {String} owner_name - */ -PersonItem.prototype['owner_name'] = undefined; - -/** - * The BCC email associated with the person - * @member {String} cc_email - */ -PersonItem.prototype['cc_email'] = undefined; - -/** - * @member {module:model/Owner} owner_id - */ -PersonItem.prototype['owner_id'] = undefined; - -/** - * @member {module:model/RelationshipOrganizationInfoItemWithActiveFlag} org_id - */ -PersonItem.prototype['org_id'] = undefined; - -/** - * The name of the person - * @member {String} name - */ -PersonItem.prototype['name'] = undefined; - -/** - * The first name of the person - * @member {String} first_name - */ -PersonItem.prototype['first_name'] = undefined; - -/** - * The last name of the person - * @member {String} last_name - */ -PersonItem.prototype['last_name'] = undefined; - -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonItem.prototype['email_messages_count'] = undefined; - -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonItem.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonItem.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonItem.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonItem.prototype['files_count'] = undefined; - -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonItem.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonItem.prototype['followers_count'] = undefined; - -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -PersonItem.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -PersonItem.prototype['last_outgoing_mail_time'] = undefined; - -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -PersonItem.prototype['open_deals_count'] = undefined; - -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -PersonItem.prototype['related_open_deals_count'] = undefined; - -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -PersonItem.prototype['closed_deals_count'] = undefined; - -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -PersonItem.prototype['related_closed_deals_count'] = undefined; - -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -PersonItem.prototype['won_deals_count'] = undefined; - -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -PersonItem.prototype['related_won_deals_count'] = undefined; - -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -PersonItem.prototype['lost_deals_count'] = undefined; - -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -PersonItem.prototype['related_lost_deals_count'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -PersonItem.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -PersonItem.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -PersonItem.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -PersonItem.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -PersonItem.prototype['last_activity_date'] = undefined; - - -// Implement BasePersonItem interface: -/** - * The ID of the person - * @member {Number} id - */ -BasePersonItem.prototype['id'] = undefined; -/** - * The ID of the company related to the person - * @member {Number} company_id - */ -BasePersonItem.prototype['company_id'] = undefined; -/** - * Whether the person is active or not - * @member {Boolean} active_flag - */ -BasePersonItem.prototype['active_flag'] = undefined; -/** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @member {Array.} phone - */ -BasePersonItem.prototype['phone'] = undefined; -/** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" } ]`. Please note that only `value` is required. - * @member {Array.} email - */ -BasePersonItem.prototype['email'] = undefined; -/** - * The first letter of the name of the person - * @member {String} first_char - */ -BasePersonItem.prototype['first_char'] = undefined; -/** - * The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -BasePersonItem.prototype['add_time'] = undefined; -/** - * The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -BasePersonItem.prototype['update_time'] = undefined; -/** - * The visibility group ID of who can see the person - * @member {String} visible_to - */ -BasePersonItem.prototype['visible_to'] = undefined; -/** - * @member {module:model/PictureDataWithID} picture_id - */ -BasePersonItem.prototype['picture_id'] = undefined; -/** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BasePersonItem.prototype['label'] = undefined; -/** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BasePersonItem.prototype['label_ids'] = undefined; -/** - * The name of the organization associated with the person - * @member {String} org_name - */ -BasePersonItem.prototype['org_name'] = undefined; -/** - * The name of the owner associated with the person - * @member {String} owner_name - */ -BasePersonItem.prototype['owner_name'] = undefined; -/** - * The BCC email associated with the person - * @member {String} cc_email - */ -BasePersonItem.prototype['cc_email'] = undefined; -// Implement AdditionalPersonInfo interface: -/** - * @member {module:model/Owner} owner_id - */ -AdditionalPersonInfo.prototype['owner_id'] = undefined; -/** - * @member {module:model/RelationshipOrganizationInfoItemWithActiveFlag} org_id - */ -AdditionalPersonInfo.prototype['org_id'] = undefined; -/** - * The name of the person - * @member {String} name - */ -AdditionalPersonInfo.prototype['name'] = undefined; -/** - * The first name of the person - * @member {String} first_name - */ -AdditionalPersonInfo.prototype['first_name'] = undefined; -/** - * The last name of the person - * @member {String} last_name - */ -AdditionalPersonInfo.prototype['last_name'] = undefined; -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -AdditionalPersonInfo.prototype['email_messages_count'] = undefined; -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -AdditionalPersonInfo.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -AdditionalPersonInfo.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -AdditionalPersonInfo.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the person - * @member {Number} files_count - */ -AdditionalPersonInfo.prototype['files_count'] = undefined; -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -AdditionalPersonInfo.prototype['notes_count'] = undefined; -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -AdditionalPersonInfo.prototype['followers_count'] = undefined; -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -AdditionalPersonInfo.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -AdditionalPersonInfo.prototype['last_outgoing_mail_time'] = undefined; -/** - * The count of open deals related with the item - * @member {Number} open_deals_count - */ -AdditionalPersonInfo.prototype['open_deals_count'] = undefined; -/** - * The count of related open deals related with the item - * @member {Number} related_open_deals_count - */ -AdditionalPersonInfo.prototype['related_open_deals_count'] = undefined; -/** - * The count of closed deals related with the item - * @member {Number} closed_deals_count - */ -AdditionalPersonInfo.prototype['closed_deals_count'] = undefined; -/** - * The count of related closed deals related with the item - * @member {Number} related_closed_deals_count - */ -AdditionalPersonInfo.prototype['related_closed_deals_count'] = undefined; -/** - * The count of won deals related with the item - * @member {Number} won_deals_count - */ -AdditionalPersonInfo.prototype['won_deals_count'] = undefined; -/** - * The count of related won deals related with the item - * @member {Number} related_won_deals_count - */ -AdditionalPersonInfo.prototype['related_won_deals_count'] = undefined; -/** - * The count of lost deals related with the item - * @member {Number} lost_deals_count - */ -AdditionalPersonInfo.prototype['lost_deals_count'] = undefined; -/** - * The count of related lost deals related with the item - * @member {Number} related_lost_deals_count - */ -AdditionalPersonInfo.prototype['related_lost_deals_count'] = undefined; -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -AdditionalPersonInfo.prototype['next_activity_date'] = undefined; -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -AdditionalPersonInfo.prototype['next_activity_time'] = undefined; -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -AdditionalPersonInfo.prototype['next_activity_id'] = undefined; -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -AdditionalPersonInfo.prototype['last_activity_id'] = undefined; -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -AdditionalPersonInfo.prototype['last_activity_date'] = undefined; - - - - -export default PersonItem; - diff --git a/src/model/PersonListProduct.js b/src/model/PersonListProduct.js deleted file mode 100644 index 2953064b..00000000 --- a/src/model/PersonListProduct.js +++ /dev/null @@ -1,259 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import VisibleTo from './VisibleTo'; - -/** - * The PersonListProduct model module. - * @module model/PersonListProduct - * @version 1.0.0 - */ -class PersonListProduct { - /** - * Constructs a new PersonListProduct. - * @alias module:model/PersonListProduct - */ - constructor() { - - PersonListProduct.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonListProduct from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonListProduct} obj Optional instance to populate. - * @return {module:model/PersonListProduct} The populated PersonListProduct instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonListProduct(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); - - delete data['unit']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('category')) { - obj['category'] = ApiClient.convertToType(data['category'], 'String'); - - delete data['category']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('selectable')) { - obj['selectable'] = ApiClient.convertToType(data['selectable'], 'Boolean'); - - delete data['selectable']; - } - if (data.hasOwnProperty('first_char')) { - obj['first_char'] = ApiClient.convertToType(data['first_char'], 'String'); - - delete data['first_char']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product - * @member {Number} id - */ -PersonListProduct.prototype['id'] = undefined; - -/** - * The ID of the company - * @member {Number} company_id - */ -PersonListProduct.prototype['company_id'] = undefined; - -/** - * The name of the product - * @member {String} name - */ -PersonListProduct.prototype['name'] = undefined; - -/** - * The product code - * @member {String} code - */ -PersonListProduct.prototype['code'] = undefined; - -/** - * The description of the product - * @member {String} description - */ -PersonListProduct.prototype['description'] = undefined; - -/** - * The unit in which this product is sold - * @member {String} unit - */ -PersonListProduct.prototype['unit'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -PersonListProduct.prototype['tax'] = 0; - -/** - * The category of the product - * @member {String} category - */ -PersonListProduct.prototype['category'] = undefined; - -/** - * Whether this product will be made active or not - * @member {Boolean} active_flag - * @default true - */ -PersonListProduct.prototype['active_flag'] = true; - -/** - * Whether this product can be selected in deals or not - * @member {Boolean} selectable - * @default true - */ -PersonListProduct.prototype['selectable'] = true; - -/** - * The first letter of the product name - * @member {String} first_char - */ -PersonListProduct.prototype['first_char'] = undefined; - -/** - * The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user.
ValueDescription
`1`Owner & followers (private)
`3`Entire company (shared)
- * @member {module:model/VisibleTo} visible_to - */ -PersonListProduct.prototype['visible_to'] = undefined; - -/** - * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used - * @member {Number} owner_id - */ -PersonListProduct.prototype['owner_id'] = undefined; - -/** - * The count of files - * @member {Number} files_count - */ -PersonListProduct.prototype['files_count'] = undefined; - -/** - * The date and time when the product was added to the deal - * @member {String} add_time - */ -PersonListProduct.prototype['add_time'] = undefined; - -/** - * The date and time when the product was updated to the deal - * @member {String} update_time - */ -PersonListProduct.prototype['update_time'] = undefined; - -/** - * The ID of the deal - * @member {Number} deal_id - */ -PersonListProduct.prototype['deal_id'] = undefined; - - - - - - -export default PersonListProduct; - diff --git a/src/model/PersonNameCountAndEmailInfo.js b/src/model/PersonNameCountAndEmailInfo.js deleted file mode 100644 index 6b7effe8..00000000 --- a/src/model/PersonNameCountAndEmailInfo.js +++ /dev/null @@ -1,268 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PersonCountAndEmailInfo from './PersonCountAndEmailInfo'; -import PersonNameInfo from './PersonNameInfo'; - -/** - * The PersonNameCountAndEmailInfo model module. - * @module model/PersonNameCountAndEmailInfo - * @version 1.0.0 - */ -class PersonNameCountAndEmailInfo { - /** - * Constructs a new PersonNameCountAndEmailInfo. - * @alias module:model/PersonNameCountAndEmailInfo - * @implements module:model/PersonNameInfo - * @implements module:model/PersonCountAndEmailInfo - */ - constructor() { - PersonNameInfo.initialize(this);PersonCountAndEmailInfo.initialize(this); - PersonNameCountAndEmailInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonNameCountAndEmailInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonNameCountAndEmailInfo} obj Optional instance to populate. - * @return {module:model/PersonNameCountAndEmailInfo} The populated PersonNameCountAndEmailInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonNameCountAndEmailInfo(); - PersonNameInfo.constructFromObject(data, obj); - PersonCountAndEmailInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String'); - - delete data['first_name']; - } - if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String'); - - delete data['last_name']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the person - * @member {String} name - */ -PersonNameCountAndEmailInfo.prototype['name'] = undefined; - -/** - * The first name of the person - * @member {String} first_name - */ -PersonNameCountAndEmailInfo.prototype['first_name'] = undefined; - -/** - * The last name of the person - * @member {String} last_name - */ -PersonNameCountAndEmailInfo.prototype['last_name'] = undefined; - -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonNameCountAndEmailInfo.prototype['email_messages_count'] = undefined; - -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonNameCountAndEmailInfo.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonNameCountAndEmailInfo.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonNameCountAndEmailInfo.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonNameCountAndEmailInfo.prototype['files_count'] = undefined; - -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonNameCountAndEmailInfo.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonNameCountAndEmailInfo.prototype['followers_count'] = undefined; - -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -PersonNameCountAndEmailInfo.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -PersonNameCountAndEmailInfo.prototype['last_outgoing_mail_time'] = undefined; - - -// Implement PersonNameInfo interface: -/** - * The name of the person - * @member {String} name - */ -PersonNameInfo.prototype['name'] = undefined; -/** - * The first name of the person - * @member {String} first_name - */ -PersonNameInfo.prototype['first_name'] = undefined; -/** - * The last name of the person - * @member {String} last_name - */ -PersonNameInfo.prototype['last_name'] = undefined; -// Implement PersonCountAndEmailInfo interface: -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonCountAndEmailInfo.prototype['email_messages_count'] = undefined; -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonCountAndEmailInfo.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonCountAndEmailInfo.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonCountAndEmailInfo.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonCountAndEmailInfo.prototype['files_count'] = undefined; -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonCountAndEmailInfo.prototype['notes_count'] = undefined; -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonCountAndEmailInfo.prototype['followers_count'] = undefined; -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -PersonCountAndEmailInfo.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -PersonCountAndEmailInfo.prototype['last_outgoing_mail_time'] = undefined; - - - - -export default PersonNameCountAndEmailInfo; - diff --git a/src/model/PersonNameCountAndEmailInfoWithIds.js b/src/model/PersonNameCountAndEmailInfoWithIds.js deleted file mode 100644 index 0d648f9b..00000000 --- a/src/model/PersonNameCountAndEmailInfoWithIds.js +++ /dev/null @@ -1,316 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PersonNameCountAndEmailInfo from './PersonNameCountAndEmailInfo'; -import PersonNameCountAndEmailInfoWithIdsAllOf from './PersonNameCountAndEmailInfoWithIdsAllOf'; - -/** - * The PersonNameCountAndEmailInfoWithIds model module. - * @module model/PersonNameCountAndEmailInfoWithIds - * @version 1.0.0 - */ -class PersonNameCountAndEmailInfoWithIds { - /** - * Constructs a new PersonNameCountAndEmailInfoWithIds. - * @alias module:model/PersonNameCountAndEmailInfoWithIds - * @implements module:model/PersonNameCountAndEmailInfoWithIdsAllOf - * @implements module:model/PersonNameCountAndEmailInfo - */ - constructor() { - PersonNameCountAndEmailInfoWithIdsAllOf.initialize(this);PersonNameCountAndEmailInfo.initialize(this); - PersonNameCountAndEmailInfoWithIds.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonNameCountAndEmailInfoWithIds from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonNameCountAndEmailInfoWithIds} obj Optional instance to populate. - * @return {module:model/PersonNameCountAndEmailInfoWithIds} The populated PersonNameCountAndEmailInfoWithIds instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonNameCountAndEmailInfoWithIds(); - PersonNameCountAndEmailInfoWithIdsAllOf.constructFromObject(data, obj); - PersonNameCountAndEmailInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('merge_what_id')) { - obj['merge_what_id'] = ApiClient.convertToType(data['merge_what_id'], 'Number'); - - delete data['merge_what_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String'); - - delete data['first_name']; - } - if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String'); - - delete data['last_name']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the owner related to the person - * @member {Number} owner_id - */ -PersonNameCountAndEmailInfoWithIds.prototype['owner_id'] = undefined; - -/** - * The ID of the organization related to the person - * @member {Number} org_id - */ -PersonNameCountAndEmailInfoWithIds.prototype['org_id'] = undefined; - -/** - * The ID of the person with what the main person was merged - * @member {Number} merge_what_id - */ -PersonNameCountAndEmailInfoWithIds.prototype['merge_what_id'] = undefined; - -/** - * The name of the person - * @member {String} name - */ -PersonNameCountAndEmailInfoWithIds.prototype['name'] = undefined; - -/** - * The first name of the person - * @member {String} first_name - */ -PersonNameCountAndEmailInfoWithIds.prototype['first_name'] = undefined; - -/** - * The last name of the person - * @member {String} last_name - */ -PersonNameCountAndEmailInfoWithIds.prototype['last_name'] = undefined; - -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['email_messages_count'] = undefined; - -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['activities_count'] = undefined; - -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['done_activities_count'] = undefined; - -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['undone_activities_count'] = undefined; - -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['files_count'] = undefined; - -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['notes_count'] = undefined; - -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonNameCountAndEmailInfoWithIds.prototype['followers_count'] = undefined; - -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -PersonNameCountAndEmailInfoWithIds.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -PersonNameCountAndEmailInfoWithIds.prototype['last_outgoing_mail_time'] = undefined; - - -// Implement PersonNameCountAndEmailInfoWithIdsAllOf interface: -/** - * The ID of the owner related to the person - * @member {Number} owner_id - */ -PersonNameCountAndEmailInfoWithIdsAllOf.prototype['owner_id'] = undefined; -/** - * The ID of the organization related to the person - * @member {Number} org_id - */ -PersonNameCountAndEmailInfoWithIdsAllOf.prototype['org_id'] = undefined; -/** - * The ID of the person with what the main person was merged - * @member {Number} merge_what_id - */ -PersonNameCountAndEmailInfoWithIdsAllOf.prototype['merge_what_id'] = undefined; -// Implement PersonNameCountAndEmailInfo interface: -/** - * The name of the person - * @member {String} name - */ -PersonNameCountAndEmailInfo.prototype['name'] = undefined; -/** - * The first name of the person - * @member {String} first_name - */ -PersonNameCountAndEmailInfo.prototype['first_name'] = undefined; -/** - * The last name of the person - * @member {String} last_name - */ -PersonNameCountAndEmailInfo.prototype['last_name'] = undefined; -/** - * The count of email messages related to the person - * @member {Number} email_messages_count - */ -PersonNameCountAndEmailInfo.prototype['email_messages_count'] = undefined; -/** - * The count of activities related to the person - * @member {Number} activities_count - */ -PersonNameCountAndEmailInfo.prototype['activities_count'] = undefined; -/** - * The count of done activities related to the person - * @member {Number} done_activities_count - */ -PersonNameCountAndEmailInfo.prototype['done_activities_count'] = undefined; -/** - * The count of undone activities related to the person - * @member {Number} undone_activities_count - */ -PersonNameCountAndEmailInfo.prototype['undone_activities_count'] = undefined; -/** - * The count of files related to the person - * @member {Number} files_count - */ -PersonNameCountAndEmailInfo.prototype['files_count'] = undefined; -/** - * The count of notes related to the person - * @member {Number} notes_count - */ -PersonNameCountAndEmailInfo.prototype['notes_count'] = undefined; -/** - * The count of followers related to the person - * @member {Number} followers_count - */ -PersonNameCountAndEmailInfo.prototype['followers_count'] = undefined; -/** - * The date and time of the last incoming email associated with the person - * @member {String} last_incoming_mail_time - */ -PersonNameCountAndEmailInfo.prototype['last_incoming_mail_time'] = undefined; -/** - * The date and time of the last outgoing email associated with the person - * @member {String} last_outgoing_mail_time - */ -PersonNameCountAndEmailInfo.prototype['last_outgoing_mail_time'] = undefined; - - - - -export default PersonNameCountAndEmailInfoWithIds; - diff --git a/src/model/PersonNameCountAndEmailInfoWithIdsAllOf.js b/src/model/PersonNameCountAndEmailInfoWithIdsAllOf.js deleted file mode 100644 index 735e8690..00000000 --- a/src/model/PersonNameCountAndEmailInfoWithIdsAllOf.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PersonNameCountAndEmailInfoWithIdsAllOf model module. - * @module model/PersonNameCountAndEmailInfoWithIdsAllOf - * @version 1.0.0 - */ -class PersonNameCountAndEmailInfoWithIdsAllOf { - /** - * Constructs a new PersonNameCountAndEmailInfoWithIdsAllOf. - * @alias module:model/PersonNameCountAndEmailInfoWithIdsAllOf - */ - constructor() { - - PersonNameCountAndEmailInfoWithIdsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonNameCountAndEmailInfoWithIdsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonNameCountAndEmailInfoWithIdsAllOf} obj Optional instance to populate. - * @return {module:model/PersonNameCountAndEmailInfoWithIdsAllOf} The populated PersonNameCountAndEmailInfoWithIdsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonNameCountAndEmailInfoWithIdsAllOf(); - - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('merge_what_id')) { - obj['merge_what_id'] = ApiClient.convertToType(data['merge_what_id'], 'Number'); - - delete data['merge_what_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the owner related to the person - * @member {Number} owner_id - */ -PersonNameCountAndEmailInfoWithIdsAllOf.prototype['owner_id'] = undefined; - -/** - * The ID of the organization related to the person - * @member {Number} org_id - */ -PersonNameCountAndEmailInfoWithIdsAllOf.prototype['org_id'] = undefined; - -/** - * The ID of the person with what the main person was merged - * @member {Number} merge_what_id - */ -PersonNameCountAndEmailInfoWithIdsAllOf.prototype['merge_what_id'] = undefined; - - - - - - -export default PersonNameCountAndEmailInfoWithIdsAllOf; - diff --git a/src/model/PersonNameInfo.js b/src/model/PersonNameInfo.js deleted file mode 100644 index f70140b7..00000000 --- a/src/model/PersonNameInfo.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PersonNameInfo model module. - * @module model/PersonNameInfo - * @version 1.0.0 - */ -class PersonNameInfo { - /** - * Constructs a new PersonNameInfo. - * @alias module:model/PersonNameInfo - */ - constructor() { - - PersonNameInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonNameInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonNameInfo} obj Optional instance to populate. - * @return {module:model/PersonNameInfo} The populated PersonNameInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonNameInfo(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String'); - - delete data['first_name']; - } - if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String'); - - delete data['last_name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the person - * @member {String} name - */ -PersonNameInfo.prototype['name'] = undefined; - -/** - * The first name of the person - * @member {String} first_name - */ -PersonNameInfo.prototype['first_name'] = undefined; - -/** - * The last name of the person - * @member {String} last_name - */ -PersonNameInfo.prototype['last_name'] = undefined; - - - - - - -export default PersonNameInfo; - diff --git a/src/model/PersonNameInfoWithOrgAndOwnerId.js b/src/model/PersonNameInfoWithOrgAndOwnerId.js deleted file mode 100644 index 293349f7..00000000 --- a/src/model/PersonNameInfoWithOrgAndOwnerId.js +++ /dev/null @@ -1,154 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrgAndOwnerId from './OrgAndOwnerId'; -import Owner from './Owner'; -import PersonNameInfo from './PersonNameInfo'; -import RelationshipOrganizationInfoItemWithActiveFlag from './RelationshipOrganizationInfoItemWithActiveFlag'; - -/** - * The PersonNameInfoWithOrgAndOwnerId model module. - * @module model/PersonNameInfoWithOrgAndOwnerId - * @version 1.0.0 - */ -class PersonNameInfoWithOrgAndOwnerId { - /** - * Constructs a new PersonNameInfoWithOrgAndOwnerId. - * @alias module:model/PersonNameInfoWithOrgAndOwnerId - * @implements module:model/OrgAndOwnerId - * @implements module:model/PersonNameInfo - */ - constructor() { - OrgAndOwnerId.initialize(this);PersonNameInfo.initialize(this); - PersonNameInfoWithOrgAndOwnerId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonNameInfoWithOrgAndOwnerId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonNameInfoWithOrgAndOwnerId} obj Optional instance to populate. - * @return {module:model/PersonNameInfoWithOrgAndOwnerId} The populated PersonNameInfoWithOrgAndOwnerId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonNameInfoWithOrgAndOwnerId(); - OrgAndOwnerId.constructFromObject(data, obj); - PersonNameInfo.constructFromObject(data, obj); - - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = Owner.constructFromObject(data['owner_id']); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = RelationshipOrganizationInfoItemWithActiveFlag.constructFromObject(data['org_id']); - - delete data['org_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('first_name')) { - obj['first_name'] = ApiClient.convertToType(data['first_name'], 'String'); - - delete data['first_name']; - } - if (data.hasOwnProperty('last_name')) { - obj['last_name'] = ApiClient.convertToType(data['last_name'], 'String'); - - delete data['last_name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/Owner} owner_id - */ -PersonNameInfoWithOrgAndOwnerId.prototype['owner_id'] = undefined; - -/** - * @member {module:model/RelationshipOrganizationInfoItemWithActiveFlag} org_id - */ -PersonNameInfoWithOrgAndOwnerId.prototype['org_id'] = undefined; - -/** - * The name of the person - * @member {String} name - */ -PersonNameInfoWithOrgAndOwnerId.prototype['name'] = undefined; - -/** - * The first name of the person - * @member {String} first_name - */ -PersonNameInfoWithOrgAndOwnerId.prototype['first_name'] = undefined; - -/** - * The last name of the person - * @member {String} last_name - */ -PersonNameInfoWithOrgAndOwnerId.prototype['last_name'] = undefined; - - -// Implement OrgAndOwnerId interface: -/** - * @member {module:model/Owner} owner_id - */ -OrgAndOwnerId.prototype['owner_id'] = undefined; -/** - * @member {module:model/RelationshipOrganizationInfoItemWithActiveFlag} org_id - */ -OrgAndOwnerId.prototype['org_id'] = undefined; -// Implement PersonNameInfo interface: -/** - * The name of the person - * @member {String} name - */ -PersonNameInfo.prototype['name'] = undefined; -/** - * The first name of the person - * @member {String} first_name - */ -PersonNameInfo.prototype['first_name'] = undefined; -/** - * The last name of the person - * @member {String} last_name - */ -PersonNameInfo.prototype['last_name'] = undefined; - - - - -export default PersonNameInfoWithOrgAndOwnerId; - diff --git a/src/model/PersonSearchItem.js b/src/model/PersonSearchItem.js deleted file mode 100644 index 90cd6922..00000000 --- a/src/model/PersonSearchItem.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PersonSearchItemItem from './PersonSearchItemItem'; - -/** - * The PersonSearchItem model module. - * @module model/PersonSearchItem - * @version 1.0.0 - */ -class PersonSearchItem { - /** - * Constructs a new PersonSearchItem. - * @alias module:model/PersonSearchItem - */ - constructor() { - - PersonSearchItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonSearchItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonSearchItem} obj Optional instance to populate. - * @return {module:model/PersonSearchItem} The populated PersonSearchItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonSearchItem(); - - if (data.hasOwnProperty('result_score')) { - obj['result_score'] = ApiClient.convertToType(data['result_score'], 'Number'); - - delete data['result_score']; - } - if (data.hasOwnProperty('item')) { - obj['item'] = PersonSearchItemItem.constructFromObject(data['item']); - - delete data['item']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Search result relevancy - * @member {Number} result_score - */ -PersonSearchItem.prototype['result_score'] = undefined; - -/** - * @member {module:model/PersonSearchItemItem} item - */ -PersonSearchItem.prototype['item'] = undefined; - - - - - - -export default PersonSearchItem; - diff --git a/src/model/PersonSearchItemItem.js b/src/model/PersonSearchItemItem.js deleted file mode 100644 index ca336c75..00000000 --- a/src/model/PersonSearchItemItem.js +++ /dev/null @@ -1,178 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PersonSearchItemItemOrganization from './PersonSearchItemItemOrganization'; -import PersonSearchItemItemOwner from './PersonSearchItemItemOwner'; - -/** - * The PersonSearchItemItem model module. - * @module model/PersonSearchItemItem - * @version 1.0.0 - */ -class PersonSearchItemItem { - /** - * Constructs a new PersonSearchItemItem. - * @alias module:model/PersonSearchItemItem - */ - constructor() { - - PersonSearchItemItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonSearchItemItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonSearchItemItem} obj Optional instance to populate. - * @return {module:model/PersonSearchItemItem} The populated PersonSearchItemItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonSearchItemItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('phones')) { - obj['phones'] = ApiClient.convertToType(data['phones'], ['String']); - - delete data['phones']; - } - if (data.hasOwnProperty('emails')) { - obj['emails'] = ApiClient.convertToType(data['emails'], ['String']); - - delete data['emails']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'Number'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner')) { - obj['owner'] = PersonSearchItemItemOwner.constructFromObject(data['owner']); - - delete data['owner']; - } - if (data.hasOwnProperty('organization')) { - obj['organization'] = PersonSearchItemItemOrganization.constructFromObject(data['organization']); - - delete data['organization']; - } - if (data.hasOwnProperty('custom_fields')) { - obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], ['String']); - - delete data['custom_fields']; - } - if (data.hasOwnProperty('notes')) { - obj['notes'] = ApiClient.convertToType(data['notes'], ['String']); - - delete data['notes']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person - * @member {Number} id - */ -PersonSearchItemItem.prototype['id'] = undefined; - -/** - * The type of the item - * @member {String} type - */ -PersonSearchItemItem.prototype['type'] = undefined; - -/** - * The name of the person - * @member {String} name - */ -PersonSearchItemItem.prototype['name'] = undefined; - -/** - * An array of phone numbers - * @member {Array.} phones - */ -PersonSearchItemItem.prototype['phones'] = undefined; - -/** - * An array of email addresses - * @member {Array.} emails - */ -PersonSearchItemItem.prototype['emails'] = undefined; - -/** - * The visibility of the person - * @member {Number} visible_to - */ -PersonSearchItemItem.prototype['visible_to'] = undefined; - -/** - * @member {module:model/PersonSearchItemItemOwner} owner - */ -PersonSearchItemItem.prototype['owner'] = undefined; - -/** - * @member {module:model/PersonSearchItemItemOrganization} organization - */ -PersonSearchItemItem.prototype['organization'] = undefined; - -/** - * Custom fields - * @member {Array.} custom_fields - */ -PersonSearchItemItem.prototype['custom_fields'] = undefined; - -/** - * An array of notes - * @member {Array.} notes - */ -PersonSearchItemItem.prototype['notes'] = undefined; - - - - - - -export default PersonSearchItemItem; - diff --git a/src/model/PersonSearchItemItemOrganization.js b/src/model/PersonSearchItemItemOrganization.js deleted file mode 100644 index f86c2f5e..00000000 --- a/src/model/PersonSearchItemItemOrganization.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PersonSearchItemItemOrganization model module. - * @module model/PersonSearchItemItemOrganization - * @version 1.0.0 - */ -class PersonSearchItemItemOrganization { - /** - * Constructs a new PersonSearchItemItemOrganization. - * @alias module:model/PersonSearchItemItemOrganization - */ - constructor() { - - PersonSearchItemItemOrganization.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonSearchItemItemOrganization from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonSearchItemItemOrganization} obj Optional instance to populate. - * @return {module:model/PersonSearchItemItemOrganization} The populated PersonSearchItemItemOrganization instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonSearchItemItemOrganization(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization the person is associated with - * @member {Number} id - */ -PersonSearchItemItemOrganization.prototype['id'] = undefined; - -/** - * The name of the organization the person is associated with - * @member {String} name - */ -PersonSearchItemItemOrganization.prototype['name'] = undefined; - - - - - - -export default PersonSearchItemItemOrganization; - diff --git a/src/model/PersonSearchItemItemOwner.js b/src/model/PersonSearchItemItemOwner.js deleted file mode 100644 index 8244d4f4..00000000 --- a/src/model/PersonSearchItemItemOwner.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PersonSearchItemItemOwner model module. - * @module model/PersonSearchItemItemOwner - * @version 1.0.0 - */ -class PersonSearchItemItemOwner { - /** - * Constructs a new PersonSearchItemItemOwner. - * @alias module:model/PersonSearchItemItemOwner - */ - constructor() { - - PersonSearchItemItemOwner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonSearchItemItemOwner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonSearchItemItemOwner} obj Optional instance to populate. - * @return {module:model/PersonSearchItemItemOwner} The populated PersonSearchItemItemOwner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonSearchItemItemOwner(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the owner of the person - * @member {Number} id - */ -PersonSearchItemItemOwner.prototype['id'] = undefined; - - - - - - -export default PersonSearchItemItemOwner; - diff --git a/src/model/PersonSearchResponse.js b/src/model/PersonSearchResponse.js deleted file mode 100644 index 500faa8d..00000000 --- a/src/model/PersonSearchResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import PersonSearchResponseAllOf from './PersonSearchResponseAllOf'; -import PersonSearchResponseAllOfData from './PersonSearchResponseAllOfData'; - -/** - * The PersonSearchResponse model module. - * @module model/PersonSearchResponse - * @version 1.0.0 - */ -class PersonSearchResponse { - /** - * Constructs a new PersonSearchResponse. - * @alias module:model/PersonSearchResponse - * @implements module:model/BaseResponse - * @implements module:model/PersonSearchResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);PersonSearchResponseAllOf.initialize(this); - PersonSearchResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonSearchResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonSearchResponse} obj Optional instance to populate. - * @return {module:model/PersonSearchResponse} The populated PersonSearchResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonSearchResponse(); - BaseResponse.constructFromObject(data, obj); - PersonSearchResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = PersonSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -PersonSearchResponse.prototype['success'] = undefined; - -/** - * @member {module:model/PersonSearchResponseAllOfData} data - */ -PersonSearchResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -PersonSearchResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement PersonSearchResponseAllOf interface: -/** - * @member {module:model/PersonSearchResponseAllOfData} data - */ -PersonSearchResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -PersonSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default PersonSearchResponse; - diff --git a/src/model/PersonSearchResponseAllOf.js b/src/model/PersonSearchResponseAllOf.js deleted file mode 100644 index b317722b..00000000 --- a/src/model/PersonSearchResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import PersonSearchResponseAllOfData from './PersonSearchResponseAllOfData'; - -/** - * The PersonSearchResponseAllOf model module. - * @module model/PersonSearchResponseAllOf - * @version 1.0.0 - */ -class PersonSearchResponseAllOf { - /** - * Constructs a new PersonSearchResponseAllOf. - * @alias module:model/PersonSearchResponseAllOf - */ - constructor() { - - PersonSearchResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonSearchResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonSearchResponseAllOf} obj Optional instance to populate. - * @return {module:model/PersonSearchResponseAllOf} The populated PersonSearchResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonSearchResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = PersonSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/PersonSearchResponseAllOfData} data - */ -PersonSearchResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -PersonSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default PersonSearchResponseAllOf; - diff --git a/src/model/PersonSearchResponseAllOfData.js b/src/model/PersonSearchResponseAllOfData.js deleted file mode 100644 index f9bf77d3..00000000 --- a/src/model/PersonSearchResponseAllOfData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PersonSearchItem from './PersonSearchItem'; - -/** - * The PersonSearchResponseAllOfData model module. - * @module model/PersonSearchResponseAllOfData - * @version 1.0.0 - */ -class PersonSearchResponseAllOfData { - /** - * Constructs a new PersonSearchResponseAllOfData. - * @alias module:model/PersonSearchResponseAllOfData - */ - constructor() { - - PersonSearchResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonSearchResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonSearchResponseAllOfData} obj Optional instance to populate. - * @return {module:model/PersonSearchResponseAllOfData} The populated PersonSearchResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonSearchResponseAllOfData(); - - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [PersonSearchItem]); - - delete data['items']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of found items - * @member {Array.} items - */ -PersonSearchResponseAllOfData.prototype['items'] = undefined; - - - - - - -export default PersonSearchResponseAllOfData; - diff --git a/src/model/PersonsCollectionResponseObject.js b/src/model/PersonsCollectionResponseObject.js deleted file mode 100644 index 7398833c..00000000 --- a/src/model/PersonsCollectionResponseObject.js +++ /dev/null @@ -1,235 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePersonItemPhone from './BasePersonItemPhone'; -import BasicPersonEmail from './BasicPersonEmail'; - -/** - * The PersonsCollectionResponseObject model module. - * @module model/PersonsCollectionResponseObject - * @version 1.0.0 - */ -class PersonsCollectionResponseObject { - /** - * Constructs a new PersonsCollectionResponseObject. - * @alias module:model/PersonsCollectionResponseObject - */ - constructor() { - - PersonsCollectionResponseObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PersonsCollectionResponseObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PersonsCollectionResponseObject} obj Optional instance to populate. - * @return {module:model/PersonsCollectionResponseObject} The populated PersonsCollectionResponseObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PersonsCollectionResponseObject(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], [BasicPersonEmail]); - - delete data['email']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], [BasePersonItemPhone]); - - delete data['phone']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('delete_time')) { - obj['delete_time'] = ApiClient.convertToType(data['delete_time'], 'String'); - - delete data['delete_time']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('picture_id')) { - obj['picture_id'] = ApiClient.convertToType(data['picture_id'], 'Number'); - - delete data['picture_id']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person - * @member {Number} id - */ -PersonsCollectionResponseObject.prototype['id'] = undefined; - -/** - * Whether the person is active or not - * @member {Boolean} active_flag - */ -PersonsCollectionResponseObject.prototype['active_flag'] = undefined; - -/** - * The ID of the owner related to the person - * @member {Number} owner_id - */ -PersonsCollectionResponseObject.prototype['owner_id'] = undefined; - -/** - * The ID of the organization related to the person - * @member {Number} org_id - */ -PersonsCollectionResponseObject.prototype['org_id'] = undefined; - -/** - * The name of the person - * @member {String} name - */ -PersonsCollectionResponseObject.prototype['name'] = undefined; - -/** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. - * @member {Array.} email - */ -PersonsCollectionResponseObject.prototype['email'] = undefined; - -/** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @member {Array.} phone - */ -PersonsCollectionResponseObject.prototype['phone'] = undefined; - -/** - * The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -PersonsCollectionResponseObject.prototype['update_time'] = undefined; - -/** - * The date and time this person was deleted. Format: YYYY-MM-DD HH:MM:SS - * @member {String} delete_time - */ -PersonsCollectionResponseObject.prototype['delete_time'] = undefined; - -/** - * The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -PersonsCollectionResponseObject.prototype['add_time'] = undefined; - -/** - * The visibility group ID of who can see the person - * @member {String} visible_to - */ -PersonsCollectionResponseObject.prototype['visible_to'] = undefined; - -/** - * The ID of the picture associated with the item - * @member {Number} picture_id - */ -PersonsCollectionResponseObject.prototype['picture_id'] = undefined; - -/** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -PersonsCollectionResponseObject.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -PersonsCollectionResponseObject.prototype['label_ids'] = undefined; - -/** - * The BCC email associated with the person - * @member {String} cc_email - */ -PersonsCollectionResponseObject.prototype['cc_email'] = undefined; - - - - - - -export default PersonsCollectionResponseObject; - diff --git a/src/model/PictureData.js b/src/model/PictureData.js deleted file mode 100644 index 0f206d3f..00000000 --- a/src/model/PictureData.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PictureDataPictures from './PictureDataPictures'; - -/** - * The PictureData model module. - * @module model/PictureData - * @version 1.0.0 - */ -class PictureData { - /** - * Constructs a new PictureData. - * @alias module:model/PictureData - */ - constructor() { - - PictureData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PictureData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PictureData} obj Optional instance to populate. - * @return {module:model/PictureData} The populated PictureData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PictureData(); - - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = ApiClient.convertToType(data['item_type'], 'String'); - - delete data['item_type']; - } - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'Number'); - - delete data['item_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('added_by_user_id')) { - obj['added_by_user_id'] = ApiClient.convertToType(data['added_by_user_id'], 'Number'); - - delete data['added_by_user_id']; - } - if (data.hasOwnProperty('pictures')) { - obj['pictures'] = PictureDataPictures.constructFromObject(data['pictures']); - - delete data['pictures']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The type of item the picture is related to - * @member {String} item_type - */ -PictureData.prototype['item_type'] = undefined; - -/** - * The ID of related item - * @member {Number} item_id - */ -PictureData.prototype['item_id'] = undefined; - -/** - * Whether the associated picture is active or not - * @member {Boolean} active_flag - */ -PictureData.prototype['active_flag'] = undefined; - -/** - * The add time of the picture - * @member {String} add_time - */ -PictureData.prototype['add_time'] = undefined; - -/** - * The update time of the picture - * @member {String} update_time - */ -PictureData.prototype['update_time'] = undefined; - -/** - * The ID of the user who added the picture - * @member {Number} added_by_user_id - */ -PictureData.prototype['added_by_user_id'] = undefined; - -/** - * @member {module:model/PictureDataPictures} pictures - */ -PictureData.prototype['pictures'] = undefined; - - - - - - -export default PictureData; - diff --git a/src/model/PictureDataPictures.js b/src/model/PictureDataPictures.js deleted file mode 100644 index 4db66718..00000000 --- a/src/model/PictureDataPictures.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PictureDataPictures model module. - * @module model/PictureDataPictures - * @version 1.0.0 - */ -class PictureDataPictures { - /** - * Constructs a new PictureDataPictures. - * @alias module:model/PictureDataPictures - */ - constructor() { - - PictureDataPictures.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PictureDataPictures from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PictureDataPictures} obj Optional instance to populate. - * @return {module:model/PictureDataPictures} The populated PictureDataPictures instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PictureDataPictures(); - - if (data.hasOwnProperty('128')) { - obj['128'] = ApiClient.convertToType(data['128'], 'String'); - - delete data['128']; - } - if (data.hasOwnProperty('512')) { - obj['512'] = ApiClient.convertToType(data['512'], 'String'); - - delete data['512']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The URL of the 128*128 picture - * @member {String} 128 - */ -PictureDataPictures.prototype['128'] = undefined; - -/** - * The URL of the 512*512 picture - * @member {String} 512 - */ -PictureDataPictures.prototype['512'] = undefined; - - - - - - -export default PictureDataPictures; - diff --git a/src/model/PictureDataWithID.js b/src/model/PictureDataWithID.js deleted file mode 100644 index dbda25aa..00000000 --- a/src/model/PictureDataWithID.js +++ /dev/null @@ -1,203 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PictureData from './PictureData'; -import PictureDataPictures from './PictureDataPictures'; -import PictureDataWithIDAllOf from './PictureDataWithIDAllOf'; - -/** - * The PictureDataWithID model module. - * @module model/PictureDataWithID - * @version 1.0.0 - */ -class PictureDataWithID { - /** - * Constructs a new PictureDataWithID. - * @alias module:model/PictureDataWithID - * @implements module:model/PictureDataWithIDAllOf - * @implements module:model/PictureData - */ - constructor() { - PictureDataWithIDAllOf.initialize(this);PictureData.initialize(this); - PictureDataWithID.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PictureDataWithID from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PictureDataWithID} obj Optional instance to populate. - * @return {module:model/PictureDataWithID} The populated PictureDataWithID instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PictureDataWithID(); - PictureDataWithIDAllOf.constructFromObject(data, obj); - PictureData.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = ApiClient.convertToType(data['item_type'], 'String'); - - delete data['item_type']; - } - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'Number'); - - delete data['item_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('added_by_user_id')) { - obj['added_by_user_id'] = ApiClient.convertToType(data['added_by_user_id'], 'Number'); - - delete data['added_by_user_id']; - } - if (data.hasOwnProperty('pictures')) { - obj['pictures'] = PictureDataPictures.constructFromObject(data['pictures']); - - delete data['pictures']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the picture associated with the item - * @member {Number} id - */ -PictureDataWithID.prototype['id'] = undefined; - -/** - * The type of item the picture is related to - * @member {String} item_type - */ -PictureDataWithID.prototype['item_type'] = undefined; - -/** - * The ID of related item - * @member {Number} item_id - */ -PictureDataWithID.prototype['item_id'] = undefined; - -/** - * Whether the associated picture is active or not - * @member {Boolean} active_flag - */ -PictureDataWithID.prototype['active_flag'] = undefined; - -/** - * The add time of the picture - * @member {String} add_time - */ -PictureDataWithID.prototype['add_time'] = undefined; - -/** - * The update time of the picture - * @member {String} update_time - */ -PictureDataWithID.prototype['update_time'] = undefined; - -/** - * The ID of the user who added the picture - * @member {Number} added_by_user_id - */ -PictureDataWithID.prototype['added_by_user_id'] = undefined; - -/** - * @member {module:model/PictureDataPictures} pictures - */ -PictureDataWithID.prototype['pictures'] = undefined; - - -// Implement PictureDataWithIDAllOf interface: -/** - * The ID of the picture associated with the item - * @member {Number} id - */ -PictureDataWithIDAllOf.prototype['id'] = undefined; -// Implement PictureData interface: -/** - * The type of item the picture is related to - * @member {String} item_type - */ -PictureData.prototype['item_type'] = undefined; -/** - * The ID of related item - * @member {Number} item_id - */ -PictureData.prototype['item_id'] = undefined; -/** - * Whether the associated picture is active or not - * @member {Boolean} active_flag - */ -PictureData.prototype['active_flag'] = undefined; -/** - * The add time of the picture - * @member {String} add_time - */ -PictureData.prototype['add_time'] = undefined; -/** - * The update time of the picture - * @member {String} update_time - */ -PictureData.prototype['update_time'] = undefined; -/** - * The ID of the user who added the picture - * @member {Number} added_by_user_id - */ -PictureData.prototype['added_by_user_id'] = undefined; -/** - * @member {module:model/PictureDataPictures} pictures - */ -PictureData.prototype['pictures'] = undefined; - - - - -export default PictureDataWithID; - diff --git a/src/model/PictureDataWithIDAllOf.js b/src/model/PictureDataWithIDAllOf.js deleted file mode 100644 index 34cebab0..00000000 --- a/src/model/PictureDataWithIDAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PictureDataWithIDAllOf model module. - * @module model/PictureDataWithIDAllOf - * @version 1.0.0 - */ -class PictureDataWithIDAllOf { - /** - * Constructs a new PictureDataWithIDAllOf. - * @alias module:model/PictureDataWithIDAllOf - */ - constructor() { - - PictureDataWithIDAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PictureDataWithIDAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PictureDataWithIDAllOf} obj Optional instance to populate. - * @return {module:model/PictureDataWithIDAllOf} The populated PictureDataWithIDAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PictureDataWithIDAllOf(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the picture associated with the item - * @member {Number} id - */ -PictureDataWithIDAllOf.prototype['id'] = undefined; - - - - - - -export default PictureDataWithIDAllOf; - diff --git a/src/model/PictureDataWithValue.js b/src/model/PictureDataWithValue.js deleted file mode 100644 index de74a7ad..00000000 --- a/src/model/PictureDataWithValue.js +++ /dev/null @@ -1,203 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PictureData from './PictureData'; -import PictureDataPictures from './PictureDataPictures'; -import PictureDataWithValueAllOf from './PictureDataWithValueAllOf'; - -/** - * The PictureDataWithValue model module. - * @module model/PictureDataWithValue - * @version 1.0.0 - */ -class PictureDataWithValue { - /** - * Constructs a new PictureDataWithValue. - * @alias module:model/PictureDataWithValue - * @implements module:model/PictureDataWithValueAllOf - * @implements module:model/PictureData - */ - constructor() { - PictureDataWithValueAllOf.initialize(this);PictureData.initialize(this); - PictureDataWithValue.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PictureDataWithValue from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PictureDataWithValue} obj Optional instance to populate. - * @return {module:model/PictureDataWithValue} The populated PictureDataWithValue instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PictureDataWithValue(); - PictureDataWithValueAllOf.constructFromObject(data, obj); - PictureData.constructFromObject(data, obj); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = ApiClient.convertToType(data['item_type'], 'String'); - - delete data['item_type']; - } - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'Number'); - - delete data['item_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('added_by_user_id')) { - obj['added_by_user_id'] = ApiClient.convertToType(data['added_by_user_id'], 'Number'); - - delete data['added_by_user_id']; - } - if (data.hasOwnProperty('pictures')) { - obj['pictures'] = PictureDataPictures.constructFromObject(data['pictures']); - - delete data['pictures']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the picture associated with the item - * @member {Number} value - */ -PictureDataWithValue.prototype['value'] = undefined; - -/** - * The type of item the picture is related to - * @member {String} item_type - */ -PictureDataWithValue.prototype['item_type'] = undefined; - -/** - * The ID of related item - * @member {Number} item_id - */ -PictureDataWithValue.prototype['item_id'] = undefined; - -/** - * Whether the associated picture is active or not - * @member {Boolean} active_flag - */ -PictureDataWithValue.prototype['active_flag'] = undefined; - -/** - * The add time of the picture - * @member {String} add_time - */ -PictureDataWithValue.prototype['add_time'] = undefined; - -/** - * The update time of the picture - * @member {String} update_time - */ -PictureDataWithValue.prototype['update_time'] = undefined; - -/** - * The ID of the user who added the picture - * @member {Number} added_by_user_id - */ -PictureDataWithValue.prototype['added_by_user_id'] = undefined; - -/** - * @member {module:model/PictureDataPictures} pictures - */ -PictureDataWithValue.prototype['pictures'] = undefined; - - -// Implement PictureDataWithValueAllOf interface: -/** - * The ID of the picture associated with the item - * @member {Number} value - */ -PictureDataWithValueAllOf.prototype['value'] = undefined; -// Implement PictureData interface: -/** - * The type of item the picture is related to - * @member {String} item_type - */ -PictureData.prototype['item_type'] = undefined; -/** - * The ID of related item - * @member {Number} item_id - */ -PictureData.prototype['item_id'] = undefined; -/** - * Whether the associated picture is active or not - * @member {Boolean} active_flag - */ -PictureData.prototype['active_flag'] = undefined; -/** - * The add time of the picture - * @member {String} add_time - */ -PictureData.prototype['add_time'] = undefined; -/** - * The update time of the picture - * @member {String} update_time - */ -PictureData.prototype['update_time'] = undefined; -/** - * The ID of the user who added the picture - * @member {Number} added_by_user_id - */ -PictureData.prototype['added_by_user_id'] = undefined; -/** - * @member {module:model/PictureDataPictures} pictures - */ -PictureData.prototype['pictures'] = undefined; - - - - -export default PictureDataWithValue; - diff --git a/src/model/PictureDataWithValueAllOf.js b/src/model/PictureDataWithValueAllOf.js deleted file mode 100644 index e3a4e95d..00000000 --- a/src/model/PictureDataWithValueAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PictureDataWithValueAllOf model module. - * @module model/PictureDataWithValueAllOf - * @version 1.0.0 - */ -class PictureDataWithValueAllOf { - /** - * Constructs a new PictureDataWithValueAllOf. - * @alias module:model/PictureDataWithValueAllOf - */ - constructor() { - - PictureDataWithValueAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PictureDataWithValueAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PictureDataWithValueAllOf} obj Optional instance to populate. - * @return {module:model/PictureDataWithValueAllOf} The populated PictureDataWithValueAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PictureDataWithValueAllOf(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the picture associated with the item - * @member {Number} value - */ -PictureDataWithValueAllOf.prototype['value'] = undefined; - - - - - - -export default PictureDataWithValueAllOf; - diff --git a/src/model/Pipeline.js b/src/model/Pipeline.js deleted file mode 100644 index 7afa3a09..00000000 --- a/src/model/Pipeline.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBoolean from './NumberBoolean'; - -/** - * The Pipeline model module. - * @module model/Pipeline - * @version 1.0.0 - */ -class Pipeline { - /** - * Constructs a new Pipeline. - * @alias module:model/Pipeline - */ - constructor() { - - Pipeline.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Pipeline from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Pipeline} obj Optional instance to populate. - * @return {module:model/Pipeline} The populated Pipeline instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Pipeline(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('deal_probability')) { - obj['deal_probability'] = ApiClient.convertToType(data['deal_probability'], NumberBoolean); - - delete data['deal_probability']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], NumberBoolean); - - delete data['active']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the pipeline - * @member {String} name - */ -Pipeline.prototype['name'] = undefined; - -/** - * Whether deal probability is disabled or enabled for this pipeline - * @member {module:model/NumberBoolean} deal_probability - */ -Pipeline.prototype['deal_probability'] = undefined; - -/** - * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. - * @member {Number} order_nr - */ -Pipeline.prototype['order_nr'] = undefined; - -/** - * Whether this pipeline will be made inactive (hidden) or active - * @member {module:model/NumberBoolean} active - */ -Pipeline.prototype['active'] = undefined; - - - - - - -export default Pipeline; - diff --git a/src/model/PipelineDetails.js b/src/model/PipelineDetails.js deleted file mode 100644 index b0c4a405..00000000 --- a/src/model/PipelineDetails.js +++ /dev/null @@ -1,236 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePipelineWithSelectedFlag from './BasePipelineWithSelectedFlag'; -import DealSummary from './DealSummary'; -import PipelineDetailsAllOf from './PipelineDetailsAllOf'; - -/** - * The PipelineDetails model module. - * @module model/PipelineDetails - * @version 1.0.0 - */ -class PipelineDetails { - /** - * Constructs a new PipelineDetails. - * The pipeline object - * @alias module:model/PipelineDetails - * @implements module:model/BasePipelineWithSelectedFlag - * @implements module:model/PipelineDetailsAllOf - */ - constructor() { - BasePipelineWithSelectedFlag.initialize(this);PipelineDetailsAllOf.initialize(this); - PipelineDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PipelineDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PipelineDetails} obj Optional instance to populate. - * @return {module:model/PipelineDetails} The populated PipelineDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PipelineDetails(); - BasePipelineWithSelectedFlag.constructFromObject(data, obj); - PipelineDetailsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('url_title')) { - obj['url_title'] = ApiClient.convertToType(data['url_title'], 'String'); - - delete data['url_title']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); - - delete data['active']; - } - if (data.hasOwnProperty('deal_probability')) { - obj['deal_probability'] = ApiClient.convertToType(data['deal_probability'], 'Boolean'); - - delete data['deal_probability']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('selected')) { - obj['selected'] = ApiClient.convertToType(data['selected'], 'Boolean'); - - delete data['selected']; - } - if (data.hasOwnProperty('deals_summary')) { - obj['deals_summary'] = DealSummary.constructFromObject(data['deals_summary']); - - delete data['deals_summary']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the pipeline - * @member {Number} id - */ -PipelineDetails.prototype['id'] = undefined; - -/** - * The name of the pipeline - * @member {String} name - */ -PipelineDetails.prototype['name'] = undefined; - -/** - * The pipeline title displayed in the URL - * @member {String} url_title - */ -PipelineDetails.prototype['url_title'] = undefined; - -/** - * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. - * @member {Number} order_nr - */ -PipelineDetails.prototype['order_nr'] = undefined; - -/** - * Whether this pipeline will be made inactive (hidden) or active - * @member {Boolean} active - */ -PipelineDetails.prototype['active'] = undefined; - -/** - * Whether deal probability is disabled or enabled for this pipeline - * @member {Boolean} deal_probability - */ -PipelineDetails.prototype['deal_probability'] = undefined; - -/** - * The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -PipelineDetails.prototype['add_time'] = undefined; - -/** - * The pipeline update time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -PipelineDetails.prototype['update_time'] = undefined; - -/** - * A boolean that shows if the pipeline is selected from a filter or not - * @member {Boolean} selected - */ -PipelineDetails.prototype['selected'] = undefined; - -/** - * @member {module:model/DealSummary} deals_summary - */ -PipelineDetails.prototype['deals_summary'] = undefined; - - -// Implement BasePipelineWithSelectedFlag interface: -/** - * The ID of the pipeline - * @member {Number} id - */ -BasePipelineWithSelectedFlag.prototype['id'] = undefined; -/** - * The name of the pipeline - * @member {String} name - */ -BasePipelineWithSelectedFlag.prototype['name'] = undefined; -/** - * The pipeline title displayed in the URL - * @member {String} url_title - */ -BasePipelineWithSelectedFlag.prototype['url_title'] = undefined; -/** - * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. - * @member {Number} order_nr - */ -BasePipelineWithSelectedFlag.prototype['order_nr'] = undefined; -/** - * Whether this pipeline will be made inactive (hidden) or active - * @member {Boolean} active - */ -BasePipelineWithSelectedFlag.prototype['active'] = undefined; -/** - * Whether deal probability is disabled or enabled for this pipeline - * @member {Boolean} deal_probability - */ -BasePipelineWithSelectedFlag.prototype['deal_probability'] = undefined; -/** - * The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -BasePipelineWithSelectedFlag.prototype['add_time'] = undefined; -/** - * The pipeline update time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -BasePipelineWithSelectedFlag.prototype['update_time'] = undefined; -/** - * A boolean that shows if the pipeline is selected from a filter or not - * @member {Boolean} selected - */ -BasePipelineWithSelectedFlag.prototype['selected'] = undefined; -// Implement PipelineDetailsAllOf interface: -/** - * @member {module:model/DealSummary} deals_summary - */ -PipelineDetailsAllOf.prototype['deals_summary'] = undefined; - - - - -export default PipelineDetails; - diff --git a/src/model/PipelineDetailsAllOf.js b/src/model/PipelineDetailsAllOf.js deleted file mode 100644 index 382bc971..00000000 --- a/src/model/PipelineDetailsAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealSummary from './DealSummary'; - -/** - * The PipelineDetailsAllOf model module. - * @module model/PipelineDetailsAllOf - * @version 1.0.0 - */ -class PipelineDetailsAllOf { - /** - * Constructs a new PipelineDetailsAllOf. - * @alias module:model/PipelineDetailsAllOf - */ - constructor() { - - PipelineDetailsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PipelineDetailsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PipelineDetailsAllOf} obj Optional instance to populate. - * @return {module:model/PipelineDetailsAllOf} The populated PipelineDetailsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PipelineDetailsAllOf(); - - if (data.hasOwnProperty('deals_summary')) { - obj['deals_summary'] = DealSummary.constructFromObject(data['deals_summary']); - - delete data['deals_summary']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/DealSummary} deals_summary - */ -PipelineDetailsAllOf.prototype['deals_summary'] = undefined; - - - - - - -export default PipelineDetailsAllOf; - diff --git a/src/model/PostComment.js b/src/model/PostComment.js deleted file mode 100644 index be2c5552..00000000 --- a/src/model/PostComment.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseComment from './BaseComment'; - -/** - * The PostComment model module. - * @module model/PostComment - * @version 1.0.0 - */ -class PostComment { - /** - * Constructs a new PostComment. - * @alias module:model/PostComment - */ - constructor() { - - PostComment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostComment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostComment} obj Optional instance to populate. - * @return {module:model/PostComment} The populated PostComment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostComment(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseComment.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -PostComment.prototype['success'] = undefined; - -/** - * @member {module:model/BaseComment} data - */ -PostComment.prototype['data'] = undefined; - - - - - - -export default PostComment; - diff --git a/src/model/PostDealParticipants.js b/src/model/PostDealParticipants.js deleted file mode 100644 index c2a8ff43..00000000 --- a/src/model/PostDealParticipants.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PersonItem from './PersonItem'; -import PostDealParticipantsRelatedObjects from './PostDealParticipantsRelatedObjects'; - -/** - * The PostDealParticipants model module. - * @module model/PostDealParticipants - * @version 1.0.0 - */ -class PostDealParticipants { - /** - * Constructs a new PostDealParticipants. - * @alias module:model/PostDealParticipants - */ - constructor() { - - PostDealParticipants.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostDealParticipants from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostDealParticipants} obj Optional instance to populate. - * @return {module:model/PostDealParticipants} The populated PostDealParticipants instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostDealParticipants(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], PersonItem); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = PostDealParticipantsRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -PostDealParticipants.prototype['success'] = undefined; - -/** - * The object of participant - * @member {module:model/PersonItem} data - */ -PostDealParticipants.prototype['data'] = undefined; - -/** - * @member {module:model/PostDealParticipantsRelatedObjects} related_objects - */ -PostDealParticipants.prototype['related_objects'] = undefined; - - - - - - -export default PostDealParticipants; - diff --git a/src/model/PostDealParticipantsRelatedObjects.js b/src/model/PostDealParticipantsRelatedObjects.js deleted file mode 100644 index cfe52bc8..00000000 --- a/src/model/PostDealParticipantsRelatedObjects.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedPersonDataWithActiveFlag from './RelatedPersonDataWithActiveFlag'; -import RelatedUserData from './RelatedUserData'; - -/** - * The PostDealParticipantsRelatedObjects model module. - * @module model/PostDealParticipantsRelatedObjects - * @version 1.0.0 - */ -class PostDealParticipantsRelatedObjects { - /** - * Constructs a new PostDealParticipantsRelatedObjects. - * @alias module:model/PostDealParticipantsRelatedObjects - */ - constructor() { - - PostDealParticipantsRelatedObjects.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostDealParticipantsRelatedObjects from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostDealParticipantsRelatedObjects} obj Optional instance to populate. - * @return {module:model/PostDealParticipantsRelatedObjects} The populated PostDealParticipantsRelatedObjects instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostDealParticipantsRelatedObjects(); - - if (data.hasOwnProperty('user')) { - obj['user'] = RelatedUserData.constructFromObject(data['user']); - - delete data['user']; - } - if (data.hasOwnProperty('person')) { - obj['person'] = RelatedPersonDataWithActiveFlag.constructFromObject(data['person']); - - delete data['person']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedUserData} user - */ -PostDealParticipantsRelatedObjects.prototype['user'] = undefined; - -/** - * @member {module:model/RelatedPersonDataWithActiveFlag} person - */ -PostDealParticipantsRelatedObjects.prototype['person'] = undefined; - - - - - - -export default PostDealParticipantsRelatedObjects; - diff --git a/src/model/PostGoalResponse.js b/src/model/PostGoalResponse.js deleted file mode 100644 index b6f44fb5..00000000 --- a/src/model/PostGoalResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GoalsResponseComponent from './GoalsResponseComponent'; - -/** - * The PostGoalResponse model module. - * @module model/PostGoalResponse - * @version 1.0.0 - */ -class PostGoalResponse { - /** - * Constructs a new PostGoalResponse. - * @alias module:model/PostGoalResponse - */ - constructor() { - - PostGoalResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostGoalResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostGoalResponse} obj Optional instance to populate. - * @return {module:model/PostGoalResponse} The populated PostGoalResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostGoalResponse(); - - if (data.hasOwnProperty('goal')) { - obj['goal'] = GoalsResponseComponent.constructFromObject(data['goal']); - - delete data['goal']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/GoalsResponseComponent} goal - */ -PostGoalResponse.prototype['goal'] = undefined; - - - - - - -export default PostGoalResponse; - diff --git a/src/model/PostNote.js b/src/model/PostNote.js deleted file mode 100644 index 894dc42b..00000000 --- a/src/model/PostNote.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseNote from './BaseNote'; - -/** - * The PostNote model module. - * @module model/PostNote - * @version 1.0.0 - */ -class PostNote { - /** - * Constructs a new PostNote. - * @alias module:model/PostNote - */ - constructor() { - - PostNote.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostNote from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostNote} obj Optional instance to populate. - * @return {module:model/PostNote} The populated PostNote instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostNote(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseNote.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -PostNote.prototype['success'] = undefined; - -/** - * @member {module:model/BaseNote} data - */ -PostNote.prototype['data'] = undefined; - - - - - - -export default PostNote; - diff --git a/src/model/PostRoleAssignment.js b/src/model/PostRoleAssignment.js deleted file mode 100644 index 08ef1000..00000000 --- a/src/model/PostRoleAssignment.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import PostRoleAssignmentAllOf from './PostRoleAssignmentAllOf'; -import PostRoleAssignmentAllOfData from './PostRoleAssignmentAllOfData'; - -/** - * The PostRoleAssignment model module. - * @module model/PostRoleAssignment - * @version 1.0.0 - */ -class PostRoleAssignment { - /** - * Constructs a new PostRoleAssignment. - * @alias module:model/PostRoleAssignment - * @implements module:model/BaseResponse - * @implements module:model/PostRoleAssignmentAllOf - */ - constructor() { - BaseResponse.initialize(this);PostRoleAssignmentAllOf.initialize(this); - PostRoleAssignment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostRoleAssignment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostRoleAssignment} obj Optional instance to populate. - * @return {module:model/PostRoleAssignment} The populated PostRoleAssignment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostRoleAssignment(); - BaseResponse.constructFromObject(data, obj); - PostRoleAssignmentAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = PostRoleAssignmentAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -PostRoleAssignment.prototype['success'] = undefined; - -/** - * @member {module:model/PostRoleAssignmentAllOfData} data - */ -PostRoleAssignment.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement PostRoleAssignmentAllOf interface: -/** - * @member {module:model/PostRoleAssignmentAllOfData} data - */ -PostRoleAssignmentAllOf.prototype['data'] = undefined; - - - - -export default PostRoleAssignment; - diff --git a/src/model/PostRoleAssignmentAllOf.js b/src/model/PostRoleAssignmentAllOf.js deleted file mode 100644 index adbb799b..00000000 --- a/src/model/PostRoleAssignmentAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PostRoleAssignmentAllOfData from './PostRoleAssignmentAllOfData'; - -/** - * The PostRoleAssignmentAllOf model module. - * @module model/PostRoleAssignmentAllOf - * @version 1.0.0 - */ -class PostRoleAssignmentAllOf { - /** - * Constructs a new PostRoleAssignmentAllOf. - * @alias module:model/PostRoleAssignmentAllOf - */ - constructor() { - - PostRoleAssignmentAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostRoleAssignmentAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostRoleAssignmentAllOf} obj Optional instance to populate. - * @return {module:model/PostRoleAssignmentAllOf} The populated PostRoleAssignmentAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostRoleAssignmentAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = PostRoleAssignmentAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/PostRoleAssignmentAllOfData} data - */ -PostRoleAssignmentAllOf.prototype['data'] = undefined; - - - - - - -export default PostRoleAssignmentAllOf; - diff --git a/src/model/PostRoleAssignmentAllOfData.js b/src/model/PostRoleAssignmentAllOfData.js deleted file mode 100644 index 75535485..00000000 --- a/src/model/PostRoleAssignmentAllOfData.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PostRoleAssignmentAllOfData model module. - * @module model/PostRoleAssignmentAllOfData - * @version 1.0.0 - */ -class PostRoleAssignmentAllOfData { - /** - * Constructs a new PostRoleAssignmentAllOfData. - * The response data - * @alias module:model/PostRoleAssignmentAllOfData - */ - constructor() { - - PostRoleAssignmentAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostRoleAssignmentAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostRoleAssignmentAllOfData} obj Optional instance to populate. - * @return {module:model/PostRoleAssignmentAllOfData} The populated PostRoleAssignmentAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostRoleAssignmentAllOfData(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('role_id')) { - obj['role_id'] = ApiClient.convertToType(data['role_id'], 'Number'); - - delete data['role_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user that was added to the role - * @member {Number} user_id - */ -PostRoleAssignmentAllOfData.prototype['user_id'] = undefined; - -/** - * The ID of the role the user was added to - * @member {Number} role_id - */ -PostRoleAssignmentAllOfData.prototype['role_id'] = undefined; - - - - - - -export default PostRoleAssignmentAllOfData; - diff --git a/src/model/PostRoleSettings.js b/src/model/PostRoleSettings.js deleted file mode 100644 index 41411c48..00000000 --- a/src/model/PostRoleSettings.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import PostRoleSettingsAllOf from './PostRoleSettingsAllOf'; -import PostRoleSettingsAllOfData from './PostRoleSettingsAllOfData'; - -/** - * The PostRoleSettings model module. - * @module model/PostRoleSettings - * @version 1.0.0 - */ -class PostRoleSettings { - /** - * Constructs a new PostRoleSettings. - * @alias module:model/PostRoleSettings - * @implements module:model/BaseResponse - * @implements module:model/PostRoleSettingsAllOf - */ - constructor() { - BaseResponse.initialize(this);PostRoleSettingsAllOf.initialize(this); - PostRoleSettings.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostRoleSettings from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostRoleSettings} obj Optional instance to populate. - * @return {module:model/PostRoleSettings} The populated PostRoleSettings instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostRoleSettings(); - BaseResponse.constructFromObject(data, obj); - PostRoleSettingsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = PostRoleSettingsAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -PostRoleSettings.prototype['success'] = undefined; - -/** - * @member {module:model/PostRoleSettingsAllOfData} data - */ -PostRoleSettings.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement PostRoleSettingsAllOf interface: -/** - * @member {module:model/PostRoleSettingsAllOfData} data - */ -PostRoleSettingsAllOf.prototype['data'] = undefined; - - - - -export default PostRoleSettings; - diff --git a/src/model/PostRoleSettingsAllOf.js b/src/model/PostRoleSettingsAllOf.js deleted file mode 100644 index 197282ec..00000000 --- a/src/model/PostRoleSettingsAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PostRoleSettingsAllOfData from './PostRoleSettingsAllOfData'; - -/** - * The PostRoleSettingsAllOf model module. - * @module model/PostRoleSettingsAllOf - * @version 1.0.0 - */ -class PostRoleSettingsAllOf { - /** - * Constructs a new PostRoleSettingsAllOf. - * @alias module:model/PostRoleSettingsAllOf - */ - constructor() { - - PostRoleSettingsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostRoleSettingsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostRoleSettingsAllOf} obj Optional instance to populate. - * @return {module:model/PostRoleSettingsAllOf} The populated PostRoleSettingsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostRoleSettingsAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = PostRoleSettingsAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/PostRoleSettingsAllOfData} data - */ -PostRoleSettingsAllOf.prototype['data'] = undefined; - - - - - - -export default PostRoleSettingsAllOf; - diff --git a/src/model/PostRoleSettingsAllOfData.js b/src/model/PostRoleSettingsAllOfData.js deleted file mode 100644 index 8facda1c..00000000 --- a/src/model/PostRoleSettingsAllOfData.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PostRoleSettingsAllOfData model module. - * @module model/PostRoleSettingsAllOfData - * @version 1.0.0 - */ -class PostRoleSettingsAllOfData { - /** - * Constructs a new PostRoleSettingsAllOfData. - * The response data - * @alias module:model/PostRoleSettingsAllOfData - */ - constructor() { - - PostRoleSettingsAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostRoleSettingsAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostRoleSettingsAllOfData} obj Optional instance to populate. - * @return {module:model/PostRoleSettingsAllOfData} The populated PostRoleSettingsAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostRoleSettingsAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('deal_default_visibility')) { - obj['deal_default_visibility'] = ApiClient.convertToType(data['deal_default_visibility'], 'Number'); - - delete data['deal_default_visibility']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the role - * @member {Number} id - */ -PostRoleSettingsAllOfData.prototype['id'] = undefined; - -/** - * The setting - * @member {module:model/PostRoleSettingsAllOfData.DealDefaultVisibilityEnum} deal_default_visibility - */ -PostRoleSettingsAllOfData.prototype['deal_default_visibility'] = undefined; - - - - - -/** - * Allowed values for the deal_default_visibility property. - * @enum {Number} - * @readonly - */ -PostRoleSettingsAllOfData['DealDefaultVisibilityEnum'] = { - - /** - * value: 1 - * @const - */ - "1": 1, - - /** - * value: 3 - * @const - */ - "3": 3, - - /** - * value: 5 - * @const - */ - "5": 5, - - /** - * value: 7 - * @const - */ - "7": 7 -}; - - - -export default PostRoleSettingsAllOfData; - diff --git a/src/model/PostRoles.js b/src/model/PostRoles.js deleted file mode 100644 index 35c49c48..00000000 --- a/src/model/PostRoles.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import PostRolesAllOf from './PostRolesAllOf'; -import PostRolesAllOfData from './PostRolesAllOfData'; - -/** - * The PostRoles model module. - * @module model/PostRoles - * @version 1.0.0 - */ -class PostRoles { - /** - * Constructs a new PostRoles. - * @alias module:model/PostRoles - * @implements module:model/BaseResponse - * @implements module:model/PostRolesAllOf - */ - constructor() { - BaseResponse.initialize(this);PostRolesAllOf.initialize(this); - PostRoles.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostRoles from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostRoles} obj Optional instance to populate. - * @return {module:model/PostRoles} The populated PostRoles instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostRoles(); - BaseResponse.constructFromObject(data, obj); - PostRolesAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = PostRolesAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -PostRoles.prototype['success'] = undefined; - -/** - * @member {module:model/PostRolesAllOfData} data - */ -PostRoles.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement PostRolesAllOf interface: -/** - * @member {module:model/PostRolesAllOfData} data - */ -PostRolesAllOf.prototype['data'] = undefined; - - - - -export default PostRoles; - diff --git a/src/model/PostRolesAllOf.js b/src/model/PostRolesAllOf.js deleted file mode 100644 index 60f5831d..00000000 --- a/src/model/PostRolesAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PostRolesAllOfData from './PostRolesAllOfData'; - -/** - * The PostRolesAllOf model module. - * @module model/PostRolesAllOf - * @version 1.0.0 - */ -class PostRolesAllOf { - /** - * Constructs a new PostRolesAllOf. - * @alias module:model/PostRolesAllOf - */ - constructor() { - - PostRolesAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostRolesAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostRolesAllOf} obj Optional instance to populate. - * @return {module:model/PostRolesAllOf} The populated PostRolesAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostRolesAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = PostRolesAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/PostRolesAllOfData} data - */ -PostRolesAllOf.prototype['data'] = undefined; - - - - - - -export default PostRolesAllOf; - diff --git a/src/model/PostRolesAllOfData.js b/src/model/PostRolesAllOfData.js deleted file mode 100644 index 0ad6c796..00000000 --- a/src/model/PostRolesAllOfData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PostRolesAllOfData model module. - * @module model/PostRolesAllOfData - * @version 1.0.0 - */ -class PostRolesAllOfData { - /** - * Constructs a new PostRolesAllOfData. - * The response data - * @alias module:model/PostRolesAllOfData - */ - constructor() { - - PostRolesAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PostRolesAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PostRolesAllOfData} obj Optional instance to populate. - * @return {module:model/PostRolesAllOfData} The populated PostRolesAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PostRolesAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the created role - * @member {Number} id - */ -PostRolesAllOfData.prototype['id'] = undefined; - - - - - - -export default PostRolesAllOfData; - diff --git a/src/model/Product.js b/src/model/Product.js deleted file mode 100644 index 1fda7c42..00000000 --- a/src/model/Product.js +++ /dev/null @@ -1,179 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBooleanDefault1 from './NumberBooleanDefault1'; -import VisibleTo from './VisibleTo'; - -/** - * The Product model module. - * @module model/Product - * @version 1.0.0 - */ -class Product { - /** - * Constructs a new Product. - * @alias module:model/Product - */ - constructor() { - - Product.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Product from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Product} obj Optional instance to populate. - * @return {module:model/Product} The populated Product instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Product(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); - - delete data['unit']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = NumberBooleanDefault1.constructFromObject(data['active_flag']); - - delete data['active_flag']; - } - if (data.hasOwnProperty('selectable')) { - obj['selectable'] = NumberBooleanDefault1.constructFromObject(data['selectable']); - - delete data['selectable']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], Object); - - delete data['owner_id']; - } - if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], [Object]); - - delete data['prices']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * The ID of the product - * @member {Number} id - */ -Product.prototype['id'] = undefined; - -/** - * The name of the product - * @member {String} name - */ -Product.prototype['name'] = undefined; - -/** - * Product code - * @member {String} code - */ -Product.prototype['code'] = undefined; - -/** - * The unit in which this product is sold - * @member {String} unit - */ -Product.prototype['unit'] = undefined; - -/** - * Tax percentage - * @member {Number} tax - * @default 0 - */ -Product.prototype['tax'] = 0; - -/** - * @member {module:model/NumberBooleanDefault1} active_flag - */ -Product.prototype['active_flag'] = undefined; - -/** - * @member {module:model/NumberBooleanDefault1} selectable - */ -Product.prototype['selectable'] = undefined; - -/** - * Visibility of the product - * @member {module:model/VisibleTo} visible_to - */ -Product.prototype['visible_to'] = undefined; - -/** - * Information about the Pipedrive User who owns the product - * @member {Object} owner_id - */ -Product.prototype['owner_id'] = undefined; - -/** - * Array of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) - * @member {Array.} prices - */ -Product.prototype['prices'] = undefined; - - - - - - -export default Product; - diff --git a/src/model/ProductAttachementFields.js b/src/model/ProductAttachementFields.js deleted file mode 100644 index 4316c2c2..00000000 --- a/src/model/ProductAttachementFields.js +++ /dev/null @@ -1,189 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProductAttachementFields model module. - * @module model/ProductAttachementFields - * @version 1.0.0 - */ -class ProductAttachementFields { - /** - * Constructs a new ProductAttachementFields. - * @alias module:model/ProductAttachementFields - */ - constructor() { - - ProductAttachementFields.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductAttachementFields from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductAttachementFields} obj Optional instance to populate. - * @return {module:model/ProductAttachementFields} The populated ProductAttachementFields instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductAttachementFields(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('sum')) { - obj['sum'] = ApiClient.convertToType(data['sum'], 'Number'); - - delete data['sum']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('last_edit')) { - obj['last_edit'] = ApiClient.convertToType(data['last_edit'], 'String'); - - delete data['last_edit']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal-product (the ID of the product attached to the deal) - * @member {Number} id - */ -ProductAttachementFields.prototype['id'] = undefined; - -/** - * The ID of the company - * @member {Number} company_id - */ -ProductAttachementFields.prototype['company_id'] = undefined; - -/** - * The ID of the deal - * @member {Number} deal_id - */ -ProductAttachementFields.prototype['deal_id'] = undefined; - -/** - * The ID of the product - * @member {Number} product_id - */ -ProductAttachementFields.prototype['product_id'] = undefined; - -/** - * The sum of all the products attached to the deal - * @member {Number} sum - */ -ProductAttachementFields.prototype['sum'] = undefined; - -/** - * The currency associated with the deal product - * @member {String} currency - */ -ProductAttachementFields.prototype['currency'] = undefined; - -/** - * The date and time when the product was added to the deal - * @member {String} add_time - */ -ProductAttachementFields.prototype['add_time'] = undefined; - -/** - * The date and time when the deal product was last edited - * @member {String} last_edit - */ -ProductAttachementFields.prototype['last_edit'] = undefined; - -/** - * Whether the product is active or not - * @member {Boolean} active_flag - */ -ProductAttachementFields.prototype['active_flag'] = undefined; - -/** - * The product tax - * @member {Number} tax - */ -ProductAttachementFields.prototype['tax'] = undefined; - -/** - * The product name - * @member {String} name - */ -ProductAttachementFields.prototype['name'] = undefined; - - - - - - -export default ProductAttachementFields; - diff --git a/src/model/ProductAttachmentDetails.js b/src/model/ProductAttachmentDetails.js deleted file mode 100644 index a65137f5..00000000 --- a/src/model/ProductAttachmentDetails.js +++ /dev/null @@ -1,492 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasicDealProduct from './BasicDealProduct'; -import BillingFrequency from './BillingFrequency'; -import ProductAttachementFields from './ProductAttachementFields'; - -/** - * The ProductAttachmentDetails model module. - * @module model/ProductAttachmentDetails - * @version 1.0.0 - */ -class ProductAttachmentDetails { - /** - * Constructs a new ProductAttachmentDetails. - * @alias module:model/ProductAttachmentDetails - * @implements module:model/BasicDealProduct - * @implements module:model/ProductAttachementFields - */ - constructor() { - BasicDealProduct.initialize(this);ProductAttachementFields.initialize(this); - ProductAttachmentDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductAttachmentDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductAttachmentDetails} obj Optional instance to populate. - * @return {module:model/ProductAttachmentDetails} The populated ProductAttachmentDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductAttachmentDetails(); - BasicDealProduct.constructFromObject(data, obj); - ProductAttachementFields.constructFromObject(data, obj); - - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('item_price')) { - obj['item_price'] = ApiClient.convertToType(data['item_price'], 'Number'); - - delete data['item_price']; - } - if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number'); - - delete data['quantity']; - } - if (data.hasOwnProperty('discount')) { - obj['discount'] = ApiClient.convertToType(data['discount'], 'Number'); - - delete data['discount']; - } - if (data.hasOwnProperty('discount_type')) { - obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String'); - - delete data['discount_type']; - } - if (data.hasOwnProperty('product_variation_id')) { - obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); - - delete data['product_variation_id']; - } - if (data.hasOwnProperty('comments')) { - obj['comments'] = ApiClient.convertToType(data['comments'], 'String'); - - delete data['comments']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('tax_method')) { - obj['tax_method'] = ApiClient.convertToType(data['tax_method'], 'String'); - - delete data['tax_method']; - } - if (data.hasOwnProperty('enabled_flag')) { - obj['enabled_flag'] = ApiClient.convertToType(data['enabled_flag'], 'Boolean'); - - delete data['enabled_flag']; - } - if (data.hasOwnProperty('billing_frequency')) { - obj['billing_frequency'] = BillingFrequency.constructFromObject(data['billing_frequency']); - - delete data['billing_frequency']; - } - if (data.hasOwnProperty('billing_frequency_cycles')) { - obj['billing_frequency_cycles'] = ApiClient.convertToType(data['billing_frequency_cycles'], 'Number'); - - delete data['billing_frequency_cycles']; - } - if (data.hasOwnProperty('billing_start_date')) { - obj['billing_start_date'] = ApiClient.convertToType(data['billing_start_date'], 'String'); - - delete data['billing_start_date']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('sum')) { - obj['sum'] = ApiClient.convertToType(data['sum'], 'Number'); - - delete data['sum']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('last_edit')) { - obj['last_edit'] = ApiClient.convertToType(data['last_edit'], 'String'); - - delete data['last_edit']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product - * @member {Number} product_id - */ -ProductAttachmentDetails.prototype['product_id'] = undefined; - -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -ProductAttachmentDetails.prototype['item_price'] = undefined; - -/** - * Quantity – e.g. how many items of this product will be added to the deal - * @member {Number} quantity - */ -ProductAttachmentDetails.prototype['quantity'] = undefined; - -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -ProductAttachmentDetails.prototype['discount'] = 0; - -/** - * The type of the discount's value - * @member {module:model/ProductAttachmentDetails.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -ProductAttachmentDetails.prototype['discount_type'] = 'percentage'; - -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -ProductAttachmentDetails.prototype['product_variation_id'] = undefined; - -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -ProductAttachmentDetails.prototype['comments'] = undefined; - -/** - * The product tax - * @member {Number} tax - */ -ProductAttachmentDetails.prototype['tax'] = undefined; - -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal - * @member {module:model/ProductAttachmentDetails.TaxMethodEnum} tax_method - */ -ProductAttachmentDetails.prototype['tax_method'] = undefined; - -/** - * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default - * @member {Boolean} enabled_flag - * @default true - */ -ProductAttachmentDetails.prototype['enabled_flag'] = true; - -/** - * @member {module:model/BillingFrequency} billing_frequency - */ -ProductAttachmentDetails.prototype['billing_frequency'] = undefined; - -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -ProductAttachmentDetails.prototype['billing_frequency_cycles'] = undefined; - -/** - * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future - * @member {String} billing_start_date - */ -ProductAttachmentDetails.prototype['billing_start_date'] = undefined; - -/** - * The ID of the deal-product (the ID of the product attached to the deal) - * @member {Number} id - */ -ProductAttachmentDetails.prototype['id'] = undefined; - -/** - * The ID of the company - * @member {Number} company_id - */ -ProductAttachmentDetails.prototype['company_id'] = undefined; - -/** - * The ID of the deal - * @member {Number} deal_id - */ -ProductAttachmentDetails.prototype['deal_id'] = undefined; - -/** - * The sum of all the products attached to the deal - * @member {Number} sum - */ -ProductAttachmentDetails.prototype['sum'] = undefined; - -/** - * The currency associated with the deal product - * @member {String} currency - */ -ProductAttachmentDetails.prototype['currency'] = undefined; - -/** - * The date and time when the product was added to the deal - * @member {String} add_time - */ -ProductAttachmentDetails.prototype['add_time'] = undefined; - -/** - * The date and time when the deal product was last edited - * @member {String} last_edit - */ -ProductAttachmentDetails.prototype['last_edit'] = undefined; - -/** - * Whether the product is active or not - * @member {Boolean} active_flag - */ -ProductAttachmentDetails.prototype['active_flag'] = undefined; - -/** - * The product name - * @member {String} name - */ -ProductAttachmentDetails.prototype['name'] = undefined; - - -// Implement BasicDealProduct interface: -/** - * The ID of the product to use - * @member {Number} product_id - */ -BasicDealProduct.prototype['product_id'] = undefined; -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -BasicDealProduct.prototype['item_price'] = undefined; -/** - * Quantity – e.g. how many items of this product will be added to the deal - * @member {Number} quantity - */ -BasicDealProduct.prototype['quantity'] = undefined; -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -BasicDealProduct.prototype['discount'] = 0; -/** - * The type of the discount's value - * @member {module:model/BasicDealProduct.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -BasicDealProduct.prototype['discount_type'] = 'percentage'; -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -BasicDealProduct.prototype['product_variation_id'] = undefined; -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -BasicDealProduct.prototype['comments'] = undefined; -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -BasicDealProduct.prototype['tax'] = 0; -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal - * @member {module:model/BasicDealProduct.TaxMethodEnum} tax_method - */ -BasicDealProduct.prototype['tax_method'] = undefined; -/** - * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default - * @member {Boolean} enabled_flag - * @default true - */ -BasicDealProduct.prototype['enabled_flag'] = true; -/** - * @member {module:model/BillingFrequency} billing_frequency - */ -BasicDealProduct.prototype['billing_frequency'] = undefined; -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -BasicDealProduct.prototype['billing_frequency_cycles'] = undefined; -/** - * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future - * @member {String} billing_start_date - */ -BasicDealProduct.prototype['billing_start_date'] = undefined; -// Implement ProductAttachementFields interface: -/** - * The ID of the deal-product (the ID of the product attached to the deal) - * @member {Number} id - */ -ProductAttachementFields.prototype['id'] = undefined; -/** - * The ID of the company - * @member {Number} company_id - */ -ProductAttachementFields.prototype['company_id'] = undefined; -/** - * The ID of the deal - * @member {Number} deal_id - */ -ProductAttachementFields.prototype['deal_id'] = undefined; -/** - * The ID of the product - * @member {Number} product_id - */ -ProductAttachementFields.prototype['product_id'] = undefined; -/** - * The sum of all the products attached to the deal - * @member {Number} sum - */ -ProductAttachementFields.prototype['sum'] = undefined; -/** - * The currency associated with the deal product - * @member {String} currency - */ -ProductAttachementFields.prototype['currency'] = undefined; -/** - * The date and time when the product was added to the deal - * @member {String} add_time - */ -ProductAttachementFields.prototype['add_time'] = undefined; -/** - * The date and time when the deal product was last edited - * @member {String} last_edit - */ -ProductAttachementFields.prototype['last_edit'] = undefined; -/** - * Whether the product is active or not - * @member {Boolean} active_flag - */ -ProductAttachementFields.prototype['active_flag'] = undefined; -/** - * The product tax - * @member {Number} tax - */ -ProductAttachementFields.prototype['tax'] = undefined; -/** - * The product name - * @member {String} name - */ -ProductAttachementFields.prototype['name'] = undefined; - - - -/** - * Allowed values for the discount_type property. - * @enum {String} - * @readonly - */ -ProductAttachmentDetails['DiscountTypeEnum'] = { - - /** - * value: "percentage" - * @const - */ - "percentage": "percentage", - - /** - * value: "amount" - * @const - */ - "amount": "amount" -}; - - -/** - * Allowed values for the tax_method property. - * @enum {String} - * @readonly - */ -ProductAttachmentDetails['TaxMethodEnum'] = { - - /** - * value: "exclusive" - * @const - */ - "exclusive": "exclusive", - - /** - * value: "inclusive" - * @const - */ - "inclusive": "inclusive", - - /** - * value: "none" - * @const - */ - "none": "none" -}; - - - -export default ProductAttachmentDetails; - diff --git a/src/model/ProductBaseDeal.js b/src/model/ProductBaseDeal.js deleted file mode 100644 index dc017fa1..00000000 --- a/src/model/ProductBaseDeal.js +++ /dev/null @@ -1,541 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProductBaseDeal model module. - * @module model/ProductBaseDeal - * @version 1.0.0 - */ -class ProductBaseDeal { - /** - * Constructs a new ProductBaseDeal. - * @alias module:model/ProductBaseDeal - */ - constructor() { - - ProductBaseDeal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductBaseDeal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductBaseDeal} obj Optional instance to populate. - * @return {module:model/ProductBaseDeal} The populated ProductBaseDeal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductBaseDeal(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('creator_user_id')) { - obj['creator_user_id'] = ApiClient.convertToType(data['creator_user_id'], 'Number'); - - delete data['creator_user_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('first_add_time')) { - obj['first_add_time'] = ApiClient.convertToType(data['first_add_time'], 'String'); - - delete data['first_add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('stage_change_time')) { - obj['stage_change_time'] = ApiClient.convertToType(data['stage_change_time'], 'String'); - - delete data['stage_change_time']; - } - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); - - delete data['active']; - } - if (data.hasOwnProperty('deleted')) { - obj['deleted'] = ApiClient.convertToType(data['deleted'], 'Boolean'); - - delete data['deleted']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('probability')) { - obj['probability'] = ApiClient.convertToType(data['probability'], 'Number'); - - delete data['probability']; - } - if (data.hasOwnProperty('next_activity_date')) { - obj['next_activity_date'] = ApiClient.convertToType(data['next_activity_date'], 'String'); - - delete data['next_activity_date']; - } - if (data.hasOwnProperty('next_activity_time')) { - obj['next_activity_time'] = ApiClient.convertToType(data['next_activity_time'], 'String'); - - delete data['next_activity_time']; - } - if (data.hasOwnProperty('next_activity_id')) { - obj['next_activity_id'] = ApiClient.convertToType(data['next_activity_id'], 'Number'); - - delete data['next_activity_id']; - } - if (data.hasOwnProperty('last_activity_id')) { - obj['last_activity_id'] = ApiClient.convertToType(data['last_activity_id'], 'Number'); - - delete data['last_activity_id']; - } - if (data.hasOwnProperty('last_activity_date')) { - obj['last_activity_date'] = ApiClient.convertToType(data['last_activity_date'], 'String'); - - delete data['last_activity_date']; - } - if (data.hasOwnProperty('lost_reason')) { - obj['lost_reason'] = ApiClient.convertToType(data['lost_reason'], 'String'); - - delete data['lost_reason']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'String'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('close_time')) { - obj['close_time'] = ApiClient.convertToType(data['close_time'], 'String'); - - delete data['close_time']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('won_time')) { - obj['won_time'] = ApiClient.convertToType(data['won_time'], 'String'); - - delete data['won_time']; - } - if (data.hasOwnProperty('first_won_time')) { - obj['first_won_time'] = ApiClient.convertToType(data['first_won_time'], 'String'); - - delete data['first_won_time']; - } - if (data.hasOwnProperty('lost_time')) { - obj['lost_time'] = ApiClient.convertToType(data['lost_time'], 'String'); - - delete data['lost_time']; - } - if (data.hasOwnProperty('products_count')) { - obj['products_count'] = ApiClient.convertToType(data['products_count'], 'Number'); - - delete data['products_count']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('notes_count')) { - obj['notes_count'] = ApiClient.convertToType(data['notes_count'], 'Number'); - - delete data['notes_count']; - } - if (data.hasOwnProperty('followers_count')) { - obj['followers_count'] = ApiClient.convertToType(data['followers_count'], 'Number'); - - delete data['followers_count']; - } - if (data.hasOwnProperty('email_messages_count')) { - obj['email_messages_count'] = ApiClient.convertToType(data['email_messages_count'], 'Number'); - - delete data['email_messages_count']; - } - if (data.hasOwnProperty('activities_count')) { - obj['activities_count'] = ApiClient.convertToType(data['activities_count'], 'Number'); - - delete data['activities_count']; - } - if (data.hasOwnProperty('done_activities_count')) { - obj['done_activities_count'] = ApiClient.convertToType(data['done_activities_count'], 'Number'); - - delete data['done_activities_count']; - } - if (data.hasOwnProperty('undone_activities_count')) { - obj['undone_activities_count'] = ApiClient.convertToType(data['undone_activities_count'], 'Number'); - - delete data['undone_activities_count']; - } - if (data.hasOwnProperty('participants_count')) { - obj['participants_count'] = ApiClient.convertToType(data['participants_count'], 'Number'); - - delete data['participants_count']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('last_incoming_mail_time')) { - obj['last_incoming_mail_time'] = ApiClient.convertToType(data['last_incoming_mail_time'], 'String'); - - delete data['last_incoming_mail_time']; - } - if (data.hasOwnProperty('last_outgoing_mail_time')) { - obj['last_outgoing_mail_time'] = ApiClient.convertToType(data['last_outgoing_mail_time'], 'String'); - - delete data['last_outgoing_mail_time']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'String'); - - delete data['label']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal - * @member {Number} id - */ -ProductBaseDeal.prototype['id'] = undefined; - -/** - * The ID of the company - * @member {Number} company_id - */ -ProductBaseDeal.prototype['company_id'] = undefined; - -/** - * The ID of the deal creator - * @member {Number} creator_user_id - */ -ProductBaseDeal.prototype['creator_user_id'] = undefined; - -/** - * The ID of the user - * @member {Number} user_id - */ -ProductBaseDeal.prototype['user_id'] = undefined; - -/** - * The ID of the person associated with the deal - * @member {Number} person_id - */ -ProductBaseDeal.prototype['person_id'] = undefined; - -/** - * The ID of the organization associated with the deal - * @member {Number} org_id - */ -ProductBaseDeal.prototype['org_id'] = undefined; - -/** - * The ID of the deal stage - * @member {Number} stage_id - */ -ProductBaseDeal.prototype['stage_id'] = undefined; - -/** - * The title of the deal - * @member {String} title - */ -ProductBaseDeal.prototype['title'] = undefined; - -/** - * The value of the deal - * @member {Number} value - */ -ProductBaseDeal.prototype['value'] = undefined; - -/** - * The currency associated with the deal - * @member {String} currency - */ -ProductBaseDeal.prototype['currency'] = undefined; - -/** - * The creation date and time of the deal - * @member {String} add_time - */ -ProductBaseDeal.prototype['add_time'] = undefined; - -/** - * The first creation date and time of the deal - * @member {String} first_add_time - */ -ProductBaseDeal.prototype['first_add_time'] = undefined; - -/** - * The last updated date and time of the deal - * @member {String} update_time - */ -ProductBaseDeal.prototype['update_time'] = undefined; - -/** - * The last updated date and time of the deal stage - * @member {String} stage_change_time - */ -ProductBaseDeal.prototype['stage_change_time'] = undefined; - -/** - * Whether the deal is active or not - * @member {Boolean} active - */ -ProductBaseDeal.prototype['active'] = undefined; - -/** - * Whether the deal is deleted or not - * @member {Boolean} deleted - */ -ProductBaseDeal.prototype['deleted'] = undefined; - -/** - * The status of the deal - * @member {String} status - */ -ProductBaseDeal.prototype['status'] = undefined; - -/** - * The success probability percentage of the deal - * @member {Number} probability - */ -ProductBaseDeal.prototype['probability'] = undefined; - -/** - * The date of the next activity associated with the deal - * @member {String} next_activity_date - */ -ProductBaseDeal.prototype['next_activity_date'] = undefined; - -/** - * The time of the next activity associated with the deal - * @member {String} next_activity_time - */ -ProductBaseDeal.prototype['next_activity_time'] = undefined; - -/** - * The ID of the next activity associated with the deal - * @member {Number} next_activity_id - */ -ProductBaseDeal.prototype['next_activity_id'] = undefined; - -/** - * The ID of the last activity associated with the deal - * @member {Number} last_activity_id - */ -ProductBaseDeal.prototype['last_activity_id'] = undefined; - -/** - * The date of the last activity associated with the deal - * @member {String} last_activity_date - */ -ProductBaseDeal.prototype['last_activity_date'] = undefined; - -/** - * The reason for losing the deal - * @member {String} lost_reason - */ -ProductBaseDeal.prototype['lost_reason'] = undefined; - -/** - * The visibility of the deal - * @member {String} visible_to - */ -ProductBaseDeal.prototype['visible_to'] = undefined; - -/** - * The date and time of closing the deal - * @member {String} close_time - */ -ProductBaseDeal.prototype['close_time'] = undefined; - -/** - * The ID of the pipeline associated with the deal - * @member {Number} pipeline_id - */ -ProductBaseDeal.prototype['pipeline_id'] = undefined; - -/** - * The date and time of changing the deal status as won - * @member {String} won_time - */ -ProductBaseDeal.prototype['won_time'] = undefined; - -/** - * The date and time of the first time changing the deal status as won - * @member {String} first_won_time - */ -ProductBaseDeal.prototype['first_won_time'] = undefined; - -/** - * The date and time of changing the deal status as lost - * @member {String} lost_time - */ -ProductBaseDeal.prototype['lost_time'] = undefined; - -/** - * The number of products associated with the deal - * @member {Number} products_count - */ -ProductBaseDeal.prototype['products_count'] = undefined; - -/** - * The number of files associated with the deal - * @member {Number} files_count - */ -ProductBaseDeal.prototype['files_count'] = undefined; - -/** - * The number of notes associated with the deal - * @member {Number} notes_count - */ -ProductBaseDeal.prototype['notes_count'] = undefined; - -/** - * The number of followers associated with the deal - * @member {Number} followers_count - */ -ProductBaseDeal.prototype['followers_count'] = undefined; - -/** - * The number of emails associated with the deal - * @member {Number} email_messages_count - */ -ProductBaseDeal.prototype['email_messages_count'] = undefined; - -/** - * The number of activities associated with the deal - * @member {Number} activities_count - */ -ProductBaseDeal.prototype['activities_count'] = undefined; - -/** - * The number of completed activities associated with the deal - * @member {Number} done_activities_count - */ -ProductBaseDeal.prototype['done_activities_count'] = undefined; - -/** - * The number of incomplete activities associated with the deal - * @member {Number} undone_activities_count - */ -ProductBaseDeal.prototype['undone_activities_count'] = undefined; - -/** - * The number of participants associated with the deal - * @member {Number} participants_count - */ -ProductBaseDeal.prototype['participants_count'] = undefined; - -/** - * The expected close date of the deal - * @member {Date} expected_close_date - */ -ProductBaseDeal.prototype['expected_close_date'] = undefined; - -/** - * The date and time of the last incoming email associated with the deal - * @member {String} last_incoming_mail_time - */ -ProductBaseDeal.prototype['last_incoming_mail_time'] = undefined; - -/** - * The date and time of the last outgoing email associated with the deal - * @member {String} last_outgoing_mail_time - */ -ProductBaseDeal.prototype['last_outgoing_mail_time'] = undefined; - -/** - * The label or multiple labels assigned to the deal - * @member {String} label - */ -ProductBaseDeal.prototype['label'] = undefined; - - - - - - -export default ProductBaseDeal; - diff --git a/src/model/ProductField.js b/src/model/ProductField.js deleted file mode 100644 index aba72093..00000000 --- a/src/model/ProductField.js +++ /dev/null @@ -1,489 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NewProductField from './NewProductField'; -import ProductFieldAllOf from './ProductFieldAllOf'; - -/** - * The ProductField model module. - * @module model/ProductField - * @version 1.0.0 - */ -class ProductField { - /** - * Constructs a new ProductField. - * @alias module:model/ProductField - * @implements module:model/NewProductField - * @implements module:model/ProductFieldAllOf - * @param name {String} The name of the field - * @param fieldType {module:model/ProductField.FieldTypeEnum} The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
- */ - constructor(name, fieldType) { - NewProductField.initialize(this, name, fieldType);ProductFieldAllOf.initialize(this); - ProductField.initialize(this, name, fieldType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name, fieldType) { - obj['name'] = name; - obj['field_type'] = fieldType; - } - - /** - * Constructs a ProductField from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductField} obj Optional instance to populate. - * @return {module:model/ProductField} The populated ProductField instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductField(); - NewProductField.constructFromObject(data, obj); - ProductFieldAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Object]); - - delete data['options']; - } - if (data.hasOwnProperty('field_type')) { - obj['field_type'] = ApiClient.convertToType(data['field_type'], 'String'); - - delete data['field_type']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - - delete data['key']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('last_updated_by_user_id')) { - obj['last_updated_by_user_id'] = ApiClient.convertToType(data['last_updated_by_user_id'], 'Number'); - - delete data['last_updated_by_user_id']; - } - if (data.hasOwnProperty('created_by_user_id')) { - obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); - - delete data['created_by_user_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('edit_flag')) { - obj['edit_flag'] = ApiClient.convertToType(data['edit_flag'], 'Boolean'); - - delete data['edit_flag']; - } - if (data.hasOwnProperty('add_visible_flag')) { - obj['add_visible_flag'] = ApiClient.convertToType(data['add_visible_flag'], 'Boolean'); - - delete data['add_visible_flag']; - } - if (data.hasOwnProperty('important_flag')) { - obj['important_flag'] = ApiClient.convertToType(data['important_flag'], 'Boolean'); - - delete data['important_flag']; - } - if (data.hasOwnProperty('bulk_edit_allowed')) { - obj['bulk_edit_allowed'] = ApiClient.convertToType(data['bulk_edit_allowed'], 'Boolean'); - - delete data['bulk_edit_allowed']; - } - if (data.hasOwnProperty('searchable_flag')) { - obj['searchable_flag'] = ApiClient.convertToType(data['searchable_flag'], 'Boolean'); - - delete data['searchable_flag']; - } - if (data.hasOwnProperty('filtering_allowed')) { - obj['filtering_allowed'] = ApiClient.convertToType(data['filtering_allowed'], 'Boolean'); - - delete data['filtering_allowed']; - } - if (data.hasOwnProperty('sortable_flag')) { - obj['sortable_flag'] = ApiClient.convertToType(data['sortable_flag'], 'Boolean'); - - delete data['sortable_flag']; - } - if (data.hasOwnProperty('mandatory_flag')) { - obj['mandatory_flag'] = ApiClient.convertToType(data['mandatory_flag'], 'Boolean'); - - delete data['mandatory_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the field - * @member {String} name - */ -ProductField.prototype['name'] = undefined; - -/** - * When `field_type` is either `set` or `enum`, possible options must be supplied as a JSON-encoded sequential array, for example:
`[{\"label\":\"red\"}, {\"label\":\"blue\"}, {\"label\":\"lilac\"}]` - * @member {Array.} options - */ -ProductField.prototype['options'] = undefined; - -/** - * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
- * @member {module:model/ProductField.FieldTypeEnum} field_type - */ -ProductField.prototype['field_type'] = undefined; - -/** - * The ID of the product field - * @member {Number} id - */ -ProductField.prototype['id'] = undefined; - -/** - * The key of the product field - * @member {String} key - */ -ProductField.prototype['key'] = undefined; - -/** - * The position (index) of the product field in the detail view - * @member {Number} order_nr - */ -ProductField.prototype['order_nr'] = undefined; - -/** - * The product field creation time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -ProductField.prototype['add_time'] = undefined; - -/** - * The product field last update time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -ProductField.prototype['update_time'] = undefined; - -/** - * The ID of the last user to update the product field - * @member {Number} last_updated_by_user_id - */ -ProductField.prototype['last_updated_by_user_id'] = undefined; - -/** - * The ID of the user who created the product field - * @member {Number} created_by_user_id - */ -ProductField.prototype['created_by_user_id'] = undefined; - -/** - * Whether or not the product field is currently active - * @member {Boolean} active_flag - */ -ProductField.prototype['active_flag'] = undefined; - -/** - * Whether or not the product field name and metadata is editable - * @member {Boolean} edit_flag - */ -ProductField.prototype['edit_flag'] = undefined; - -/** - * Whether or not the product field is visible in the Add Product Modal - * @member {Boolean} add_visible_flag - */ -ProductField.prototype['add_visible_flag'] = undefined; - -/** - * Whether or not the product field is marked as important - * @member {Boolean} important_flag - */ -ProductField.prototype['important_flag'] = undefined; - -/** - * Whether or not the product field data can be edited - * @member {Boolean} bulk_edit_allowed - */ -ProductField.prototype['bulk_edit_allowed'] = undefined; - -/** - * Whether or not the product field is searchable - * @member {Boolean} searchable_flag - */ -ProductField.prototype['searchable_flag'] = undefined; - -/** - * Whether or not the product field value can be used when filtering searches - * @member {Boolean} filtering_allowed - */ -ProductField.prototype['filtering_allowed'] = undefined; - -/** - * Whether or not the product field is sortable - * @member {Boolean} sortable_flag - */ -ProductField.prototype['sortable_flag'] = undefined; - -/** - * Whether or not the product field is mandatory when creating products - * @member {Boolean} mandatory_flag - */ -ProductField.prototype['mandatory_flag'] = undefined; - - -// Implement NewProductField interface: -/** - * The name of the field - * @member {String} name - */ -NewProductField.prototype['name'] = undefined; -/** - * When `field_type` is either `set` or `enum`, possible options must be supplied as a JSON-encoded sequential array, for example:
`[{\"label\":\"red\"}, {\"label\":\"blue\"}, {\"label\":\"lilac\"}]` - * @member {Array.} options - */ -NewProductField.prototype['options'] = undefined; -/** - * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
- * @member {module:model/NewProductField.FieldTypeEnum} field_type - */ -NewProductField.prototype['field_type'] = undefined; -// Implement ProductFieldAllOf interface: -/** - * The ID of the product field - * @member {Number} id - */ -ProductFieldAllOf.prototype['id'] = undefined; -/** - * The key of the product field - * @member {String} key - */ -ProductFieldAllOf.prototype['key'] = undefined; -/** - * The position (index) of the product field in the detail view - * @member {Number} order_nr - */ -ProductFieldAllOf.prototype['order_nr'] = undefined; -/** - * The product field creation time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -ProductFieldAllOf.prototype['add_time'] = undefined; -/** - * The product field last update time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -ProductFieldAllOf.prototype['update_time'] = undefined; -/** - * The ID of the last user to update the product field - * @member {Number} last_updated_by_user_id - */ -ProductFieldAllOf.prototype['last_updated_by_user_id'] = undefined; -/** - * The ID of the user who created the product field - * @member {Number} created_by_user_id - */ -ProductFieldAllOf.prototype['created_by_user_id'] = undefined; -/** - * Whether or not the product field is currently active - * @member {Boolean} active_flag - */ -ProductFieldAllOf.prototype['active_flag'] = undefined; -/** - * Whether or not the product field name and metadata is editable - * @member {Boolean} edit_flag - */ -ProductFieldAllOf.prototype['edit_flag'] = undefined; -/** - * Whether or not the product field is visible in the Add Product Modal - * @member {Boolean} add_visible_flag - */ -ProductFieldAllOf.prototype['add_visible_flag'] = undefined; -/** - * Whether or not the product field is marked as important - * @member {Boolean} important_flag - */ -ProductFieldAllOf.prototype['important_flag'] = undefined; -/** - * Whether or not the product field data can be edited - * @member {Boolean} bulk_edit_allowed - */ -ProductFieldAllOf.prototype['bulk_edit_allowed'] = undefined; -/** - * Whether or not the product field is searchable - * @member {Boolean} searchable_flag - */ -ProductFieldAllOf.prototype['searchable_flag'] = undefined; -/** - * Whether or not the product field value can be used when filtering searches - * @member {Boolean} filtering_allowed - */ -ProductFieldAllOf.prototype['filtering_allowed'] = undefined; -/** - * Whether or not the product field is sortable - * @member {Boolean} sortable_flag - */ -ProductFieldAllOf.prototype['sortable_flag'] = undefined; -/** - * Whether or not the product field is mandatory when creating products - * @member {Boolean} mandatory_flag - */ -ProductFieldAllOf.prototype['mandatory_flag'] = undefined; - - - -/** - * Allowed values for the field_type property. - * @enum {String} - * @readonly - */ -ProductField['FieldTypeEnum'] = { - - /** - * value: "varchar" - * @const - */ - "varchar": "varchar", - - /** - * value: "varchar_auto" - * @const - */ - "varchar_auto": "varchar_auto", - - /** - * value: "text" - * @const - */ - "text": "text", - - /** - * value: "double" - * @const - */ - "double": "double", - - /** - * value: "monetary" - * @const - */ - "monetary": "monetary", - - /** - * value: "date" - * @const - */ - "date": "date", - - /** - * value: "set" - * @const - */ - "set": "set", - - /** - * value: "enum" - * @const - */ - "enum": "enum", - - /** - * value: "user" - * @const - */ - "user": "user", - - /** - * value: "org" - * @const - */ - "org": "org", - - /** - * value: "people" - * @const - */ - "people": "people", - - /** - * value: "phone" - * @const - */ - "phone": "phone", - - /** - * value: "time" - * @const - */ - "time": "time", - - /** - * value: "timerange" - * @const - */ - "timerange": "timerange", - - /** - * value: "daterange" - * @const - */ - "daterange": "daterange", - - /** - * value: "address" - * @const - */ - "address": "address" -}; - - - -export default ProductField; - diff --git a/src/model/ProductFieldAllOf.js b/src/model/ProductFieldAllOf.js deleted file mode 100644 index 9d32c034..00000000 --- a/src/model/ProductFieldAllOf.js +++ /dev/null @@ -1,244 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProductFieldAllOf model module. - * @module model/ProductFieldAllOf - * @version 1.0.0 - */ -class ProductFieldAllOf { - /** - * Constructs a new ProductFieldAllOf. - * @alias module:model/ProductFieldAllOf - */ - constructor() { - - ProductFieldAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductFieldAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductFieldAllOf} obj Optional instance to populate. - * @return {module:model/ProductFieldAllOf} The populated ProductFieldAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductFieldAllOf(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - - delete data['key']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('last_updated_by_user_id')) { - obj['last_updated_by_user_id'] = ApiClient.convertToType(data['last_updated_by_user_id'], 'Number'); - - delete data['last_updated_by_user_id']; - } - if (data.hasOwnProperty('created_by_user_id')) { - obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); - - delete data['created_by_user_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('edit_flag')) { - obj['edit_flag'] = ApiClient.convertToType(data['edit_flag'], 'Boolean'); - - delete data['edit_flag']; - } - if (data.hasOwnProperty('add_visible_flag')) { - obj['add_visible_flag'] = ApiClient.convertToType(data['add_visible_flag'], 'Boolean'); - - delete data['add_visible_flag']; - } - if (data.hasOwnProperty('important_flag')) { - obj['important_flag'] = ApiClient.convertToType(data['important_flag'], 'Boolean'); - - delete data['important_flag']; - } - if (data.hasOwnProperty('bulk_edit_allowed')) { - obj['bulk_edit_allowed'] = ApiClient.convertToType(data['bulk_edit_allowed'], 'Boolean'); - - delete data['bulk_edit_allowed']; - } - if (data.hasOwnProperty('searchable_flag')) { - obj['searchable_flag'] = ApiClient.convertToType(data['searchable_flag'], 'Boolean'); - - delete data['searchable_flag']; - } - if (data.hasOwnProperty('filtering_allowed')) { - obj['filtering_allowed'] = ApiClient.convertToType(data['filtering_allowed'], 'Boolean'); - - delete data['filtering_allowed']; - } - if (data.hasOwnProperty('sortable_flag')) { - obj['sortable_flag'] = ApiClient.convertToType(data['sortable_flag'], 'Boolean'); - - delete data['sortable_flag']; - } - if (data.hasOwnProperty('mandatory_flag')) { - obj['mandatory_flag'] = ApiClient.convertToType(data['mandatory_flag'], 'Boolean'); - - delete data['mandatory_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product field - * @member {Number} id - */ -ProductFieldAllOf.prototype['id'] = undefined; - -/** - * The key of the product field - * @member {String} key - */ -ProductFieldAllOf.prototype['key'] = undefined; - -/** - * The position (index) of the product field in the detail view - * @member {Number} order_nr - */ -ProductFieldAllOf.prototype['order_nr'] = undefined; - -/** - * The product field creation time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -ProductFieldAllOf.prototype['add_time'] = undefined; - -/** - * The product field last update time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -ProductFieldAllOf.prototype['update_time'] = undefined; - -/** - * The ID of the last user to update the product field - * @member {Number} last_updated_by_user_id - */ -ProductFieldAllOf.prototype['last_updated_by_user_id'] = undefined; - -/** - * The ID of the user who created the product field - * @member {Number} created_by_user_id - */ -ProductFieldAllOf.prototype['created_by_user_id'] = undefined; - -/** - * Whether or not the product field is currently active - * @member {Boolean} active_flag - */ -ProductFieldAllOf.prototype['active_flag'] = undefined; - -/** - * Whether or not the product field name and metadata is editable - * @member {Boolean} edit_flag - */ -ProductFieldAllOf.prototype['edit_flag'] = undefined; - -/** - * Whether or not the product field is visible in the Add Product Modal - * @member {Boolean} add_visible_flag - */ -ProductFieldAllOf.prototype['add_visible_flag'] = undefined; - -/** - * Whether or not the product field is marked as important - * @member {Boolean} important_flag - */ -ProductFieldAllOf.prototype['important_flag'] = undefined; - -/** - * Whether or not the product field data can be edited - * @member {Boolean} bulk_edit_allowed - */ -ProductFieldAllOf.prototype['bulk_edit_allowed'] = undefined; - -/** - * Whether or not the product field is searchable - * @member {Boolean} searchable_flag - */ -ProductFieldAllOf.prototype['searchable_flag'] = undefined; - -/** - * Whether or not the product field value can be used when filtering searches - * @member {Boolean} filtering_allowed - */ -ProductFieldAllOf.prototype['filtering_allowed'] = undefined; - -/** - * Whether or not the product field is sortable - * @member {Boolean} sortable_flag - */ -ProductFieldAllOf.prototype['sortable_flag'] = undefined; - -/** - * Whether or not the product field is mandatory when creating products - * @member {Boolean} mandatory_flag - */ -ProductFieldAllOf.prototype['mandatory_flag'] = undefined; - - - - - - -export default ProductFieldAllOf; - diff --git a/src/model/ProductFileItem.js b/src/model/ProductFileItem.js deleted file mode 100644 index b1311625..00000000 --- a/src/model/ProductFileItem.js +++ /dev/null @@ -1,234 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProductFileItem model module. - * @module model/ProductFileItem - * @version 1.0.0 - */ -class ProductFileItem { - /** - * Constructs a new ProductFileItem. - * The file data - * @alias module:model/ProductFileItem - */ - constructor() { - - ProductFileItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductFileItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductFileItem} obj Optional instance to populate. - * @return {module:model/ProductFileItem} The populated ProductFileItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductFileItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('file_name')) { - obj['file_name'] = ApiClient.convertToType(data['file_name'], 'String'); - - delete data['file_name']; - } - if (data.hasOwnProperty('file_size')) { - obj['file_size'] = ApiClient.convertToType(data['file_size'], 'Number'); - - delete data['file_size']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('inline_flag')) { - obj['inline_flag'] = ApiClient.convertToType(data['inline_flag'], 'Boolean'); - - delete data['inline_flag']; - } - if (data.hasOwnProperty('remote_location')) { - obj['remote_location'] = ApiClient.convertToType(data['remote_location'], 'String'); - - delete data['remote_location']; - } - if (data.hasOwnProperty('remote_id')) { - obj['remote_id'] = ApiClient.convertToType(data['remote_id'], 'String'); - - delete data['remote_id']; - } - if (data.hasOwnProperty('s3_bucket')) { - obj['s3_bucket'] = ApiClient.convertToType(data['s3_bucket'], 'String'); - - delete data['s3_bucket']; - } - if (data.hasOwnProperty('product_name')) { - obj['product_name'] = ApiClient.convertToType(data['product_name'], 'String'); - - delete data['product_name']; - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - - delete data['url']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the file - * @member {Number} id - */ -ProductFileItem.prototype['id'] = undefined; - -/** - * The ID of the product associated with the file - * @member {Number} product_id - */ -ProductFileItem.prototype['product_id'] = undefined; - -/** - * The UTC date time when the file was uploaded. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -ProductFileItem.prototype['add_time'] = undefined; - -/** - * The UTC date time when the file was last updated. Format: YYYY-MM-DD HH:MM:SS - * @member {String} update_time - */ -ProductFileItem.prototype['update_time'] = undefined; - -/** - * The original name of the file - * @member {String} file_name - */ -ProductFileItem.prototype['file_name'] = undefined; - -/** - * The size of the file in bytes - * @member {Number} file_size - */ -ProductFileItem.prototype['file_size'] = undefined; - -/** - * Whether the user is active or not. - * @member {Boolean} active_flag - */ -ProductFileItem.prototype['active_flag'] = undefined; - -/** - * Whether the file was uploaded as inline or not - * @member {Boolean} inline_flag - */ -ProductFileItem.prototype['inline_flag'] = undefined; - -/** - * The location type to send the file to. Only googledrive is supported at the moment. - * @member {String} remote_location - */ -ProductFileItem.prototype['remote_location'] = undefined; - -/** - * The ID of the remote item - * @member {String} remote_id - */ -ProductFileItem.prototype['remote_id'] = undefined; - -/** - * The location of the cloud storage - * @member {String} s3_bucket - */ -ProductFileItem.prototype['s3_bucket'] = undefined; - -/** - * The name of the product associated with the file - * @member {String} product_name - */ -ProductFileItem.prototype['product_name'] = undefined; - -/** - * The URL to download the file - * @member {String} url - */ -ProductFileItem.prototype['url'] = undefined; - -/** - * The visible name of the file - * @member {String} name - */ -ProductFileItem.prototype['name'] = undefined; - -/** - * The description of the file - * @member {String} description - */ -ProductFileItem.prototype['description'] = undefined; - - - - - - -export default ProductFileItem; - diff --git a/src/model/ProductListItem.js b/src/model/ProductListItem.js deleted file mode 100644 index 5ee612c1..00000000 --- a/src/model/ProductListItem.js +++ /dev/null @@ -1,360 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProductWithArrayPrices from './ProductWithArrayPrices'; - -/** - * The ProductListItem model module. - * @module model/ProductListItem - * @version 1.0.0 - */ -class ProductListItem { - /** - * Constructs a new ProductListItem. - * @alias module:model/ProductListItem - */ - constructor() { - - ProductListItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductListItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductListItem} obj Optional instance to populate. - * @return {module:model/ProductListItem} The populated ProductListItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductListItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('product_variation_id')) { - obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); - - delete data['product_variation_id']; - } - if (data.hasOwnProperty('item_price')) { - obj['item_price'] = ApiClient.convertToType(data['item_price'], 'Number'); - - delete data['item_price']; - } - if (data.hasOwnProperty('discount')) { - obj['discount'] = ApiClient.convertToType(data['discount'], 'Number'); - - delete data['discount']; - } - if (data.hasOwnProperty('discount_type')) { - obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String'); - - delete data['discount_type']; - } - if (data.hasOwnProperty('sum')) { - obj['sum'] = ApiClient.convertToType(data['sum'], 'Number'); - - delete data['sum']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('enabled_flag')) { - obj['enabled_flag'] = ApiClient.convertToType(data['enabled_flag'], 'Boolean'); - - delete data['enabled_flag']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('last_edit')) { - obj['last_edit'] = ApiClient.convertToType(data['last_edit'], 'String'); - - delete data['last_edit']; - } - if (data.hasOwnProperty('comments')) { - obj['comments'] = ApiClient.convertToType(data['comments'], 'String'); - - delete data['comments']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('tax_method')) { - obj['tax_method'] = ApiClient.convertToType(data['tax_method'], 'String'); - - delete data['tax_method']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('sum_formatted')) { - obj['sum_formatted'] = ApiClient.convertToType(data['sum_formatted'], 'String'); - - delete data['sum_formatted']; - } - if (data.hasOwnProperty('quantity_formatted')) { - obj['quantity_formatted'] = ApiClient.convertToType(data['quantity_formatted'], 'String'); - - delete data['quantity_formatted']; - } - if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number'); - - delete data['quantity']; - } - if (data.hasOwnProperty('product')) { - obj['product'] = ProductWithArrayPrices.constructFromObject(data['product']); - - delete data['product']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal-product (the ID of the product attached to the deal) - * @member {Number} id - */ -ProductListItem.prototype['id'] = undefined; - -/** - * The ID of the deal - * @member {Number} deal_id - */ -ProductListItem.prototype['deal_id'] = undefined; - -/** - * The order number of the product - * @member {Number} order_nr - */ -ProductListItem.prototype['order_nr'] = undefined; - -/** - * The ID of the product - * @member {Number} product_id - */ -ProductListItem.prototype['product_id'] = undefined; - -/** - * The ID of the product variation - * @member {Number} product_variation_id - */ -ProductListItem.prototype['product_variation_id'] = undefined; - -/** - * The price value of the product - * @member {Number} item_price - */ -ProductListItem.prototype['item_price'] = undefined; - -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -ProductListItem.prototype['discount'] = 0; - -/** - * The type of the discount's value - * @member {module:model/ProductListItem.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -ProductListItem.prototype['discount_type'] = 'percentage'; - -/** - * The sum of all the products attached to the deal - * @member {Number} sum - */ -ProductListItem.prototype['sum'] = undefined; - -/** - * The currency associated with the deal product - * @member {String} currency - */ -ProductListItem.prototype['currency'] = undefined; - -/** - * Whether the product is enabled or not - * @member {Boolean} enabled_flag - */ -ProductListItem.prototype['enabled_flag'] = undefined; - -/** - * The date and time when the product was added to the deal - * @member {String} add_time - */ -ProductListItem.prototype['add_time'] = undefined; - -/** - * The date and time when the deal product was last edited - * @member {String} last_edit - */ -ProductListItem.prototype['last_edit'] = undefined; - -/** - * The comments of the product - * @member {String} comments - */ -ProductListItem.prototype['comments'] = undefined; - -/** - * Whether the product is active or not - * @member {Boolean} active_flag - */ -ProductListItem.prototype['active_flag'] = undefined; - -/** - * The product tax - * @member {Number} tax - */ -ProductListItem.prototype['tax'] = undefined; - -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal - * @member {module:model/ProductListItem.TaxMethodEnum} tax_method - */ -ProductListItem.prototype['tax_method'] = undefined; - -/** - * The product name - * @member {String} name - */ -ProductListItem.prototype['name'] = undefined; - -/** - * The formatted sum of the product - * @member {String} sum_formatted - */ -ProductListItem.prototype['sum_formatted'] = undefined; - -/** - * The formatted quantity of the product - * @member {String} quantity_formatted - */ -ProductListItem.prototype['quantity_formatted'] = undefined; - -/** - * The quantity of the product - * @member {Number} quantity - */ -ProductListItem.prototype['quantity'] = undefined; - -/** - * @member {module:model/ProductWithArrayPrices} product - */ -ProductListItem.prototype['product'] = undefined; - - - - - -/** - * Allowed values for the discount_type property. - * @enum {String} - * @readonly - */ -ProductListItem['DiscountTypeEnum'] = { - - /** - * value: "percentage" - * @const - */ - "percentage": "percentage", - - /** - * value: "amount" - * @const - */ - "amount": "amount" -}; - - -/** - * Allowed values for the tax_method property. - * @enum {String} - * @readonly - */ -ProductListItem['TaxMethodEnum'] = { - - /** - * value: "exclusive" - * @const - */ - "exclusive": "exclusive", - - /** - * value: "inclusive" - * @const - */ - "inclusive": "inclusive", - - /** - * value: "none" - * @const - */ - "none": "none" -}; - - - -export default ProductListItem; - diff --git a/src/model/ProductRequest.js b/src/model/ProductRequest.js deleted file mode 100644 index 4181d4b5..00000000 --- a/src/model/ProductRequest.js +++ /dev/null @@ -1,171 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import VisibleTo from './VisibleTo'; - -/** - * The ProductRequest model module. - * @module model/ProductRequest - * @version 1.0.0 - */ -class ProductRequest { - /** - * Constructs a new ProductRequest. - * @alias module:model/ProductRequest - */ - constructor() { - - ProductRequest.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductRequest} obj Optional instance to populate. - * @return {module:model/ProductRequest} The populated ProductRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductRequest(); - - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); - - delete data['unit']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('selectable')) { - obj['selectable'] = ApiClient.convertToType(data['selectable'], 'Boolean'); - - delete data['selectable']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], [Object]); - - delete data['prices']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The product code - * @member {String} code - */ -ProductRequest.prototype['code'] = undefined; - -/** - * The product description - * @member {String} description - */ -ProductRequest.prototype['description'] = undefined; - -/** - * The unit in which this product is sold - * @member {String} unit - */ -ProductRequest.prototype['unit'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -ProductRequest.prototype['tax'] = 0; - -/** - * Whether this product will be made active or not - * @member {Boolean} active_flag - * @default true - */ -ProductRequest.prototype['active_flag'] = true; - -/** - * Whether this product can be selected in deals or not - * @member {Boolean} selectable - * @default true - */ -ProductRequest.prototype['selectable'] = true; - -/** - * The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -ProductRequest.prototype['visible_to'] = undefined; - -/** - * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used - * @member {Number} owner_id - */ -ProductRequest.prototype['owner_id'] = undefined; - -/** - * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned. - * @member {Array.} prices - */ -ProductRequest.prototype['prices'] = undefined; - - - - - - -export default ProductRequest; - diff --git a/src/model/ProductResponse.js b/src/model/ProductResponse.js deleted file mode 100644 index 9e8a4e45..00000000 --- a/src/model/ProductResponse.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetActivitiesResponseRelatedObjects from './GetActivitiesResponseRelatedObjects'; -import ProductWithArrayPrices from './ProductWithArrayPrices'; - -/** - * The ProductResponse model module. - * @module model/ProductResponse - * @version 1.0.0 - */ -class ProductResponse { - /** - * Constructs a new ProductResponse. - * @alias module:model/ProductResponse - */ - constructor() { - - ProductResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductResponse} obj Optional instance to populate. - * @return {module:model/ProductResponse} The populated ProductResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProductWithArrayPrices.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = GetActivitiesResponseRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ProductResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ProductWithArrayPrices} data - */ -ProductResponse.prototype['data'] = undefined; - -/** - * @member {module:model/GetActivitiesResponseRelatedObjects} related_objects - */ -ProductResponse.prototype['related_objects'] = undefined; - - - - - - -export default ProductResponse; - diff --git a/src/model/ProductSearchItem.js b/src/model/ProductSearchItem.js deleted file mode 100644 index 8d735aa0..00000000 --- a/src/model/ProductSearchItem.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProductSearchItemItem from './ProductSearchItemItem'; - -/** - * The ProductSearchItem model module. - * @module model/ProductSearchItem - * @version 1.0.0 - */ -class ProductSearchItem { - /** - * Constructs a new ProductSearchItem. - * @alias module:model/ProductSearchItem - */ - constructor() { - - ProductSearchItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductSearchItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductSearchItem} obj Optional instance to populate. - * @return {module:model/ProductSearchItem} The populated ProductSearchItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductSearchItem(); - - if (data.hasOwnProperty('result_score')) { - obj['result_score'] = ApiClient.convertToType(data['result_score'], 'Number'); - - delete data['result_score']; - } - if (data.hasOwnProperty('item')) { - obj['item'] = ProductSearchItemItem.constructFromObject(data['item']); - - delete data['item']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Search result relevancy - * @member {Number} result_score - */ -ProductSearchItem.prototype['result_score'] = undefined; - -/** - * @member {module:model/ProductSearchItemItem} item - */ -ProductSearchItem.prototype['item'] = undefined; - - - - - - -export default ProductSearchItem; - diff --git a/src/model/ProductSearchItemItem.js b/src/model/ProductSearchItemItem.js deleted file mode 100644 index 7158a128..00000000 --- a/src/model/ProductSearchItemItem.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProductSearchItemItemOwner from './ProductSearchItemItemOwner'; - -/** - * The ProductSearchItemItem model module. - * @module model/ProductSearchItemItem - * @version 1.0.0 - */ -class ProductSearchItemItem { - /** - * Constructs a new ProductSearchItemItem. - * @alias module:model/ProductSearchItemItem - */ - constructor() { - - ProductSearchItemItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductSearchItemItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductSearchItemItem} obj Optional instance to populate. - * @return {module:model/ProductSearchItemItem} The populated ProductSearchItemItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductSearchItemItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'Number'); - - delete data['code']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'Number'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner')) { - obj['owner'] = ProductSearchItemItemOwner.constructFromObject(data['owner']); - - delete data['owner']; - } - if (data.hasOwnProperty('custom_fields')) { - obj['custom_fields'] = ApiClient.convertToType(data['custom_fields'], ['String']); - - delete data['custom_fields']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product - * @member {Number} id - */ -ProductSearchItemItem.prototype['id'] = undefined; - -/** - * The type of the item - * @member {String} type - */ -ProductSearchItemItem.prototype['type'] = undefined; - -/** - * The name of the product - * @member {String} name - */ -ProductSearchItemItem.prototype['name'] = undefined; - -/** - * The code of the product - * @member {Number} code - */ -ProductSearchItemItem.prototype['code'] = undefined; - -/** - * The visibility of the product - * @member {Number} visible_to - */ -ProductSearchItemItem.prototype['visible_to'] = undefined; - -/** - * @member {module:model/ProductSearchItemItemOwner} owner - */ -ProductSearchItemItem.prototype['owner'] = undefined; - -/** - * The custom fields - * @member {Array.} custom_fields - */ -ProductSearchItemItem.prototype['custom_fields'] = undefined; - - - - - - -export default ProductSearchItemItem; - diff --git a/src/model/ProductSearchItemItemOwner.js b/src/model/ProductSearchItemItemOwner.js deleted file mode 100644 index dadc7f2b..00000000 --- a/src/model/ProductSearchItemItemOwner.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProductSearchItemItemOwner model module. - * @module model/ProductSearchItemItemOwner - * @version 1.0.0 - */ -class ProductSearchItemItemOwner { - /** - * Constructs a new ProductSearchItemItemOwner. - * @alias module:model/ProductSearchItemItemOwner - */ - constructor() { - - ProductSearchItemItemOwner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductSearchItemItemOwner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductSearchItemItemOwner} obj Optional instance to populate. - * @return {module:model/ProductSearchItemItemOwner} The populated ProductSearchItemItemOwner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductSearchItemItemOwner(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the owner of the product - * @member {Number} id - */ -ProductSearchItemItemOwner.prototype['id'] = undefined; - - - - - - -export default ProductSearchItemItemOwner; - diff --git a/src/model/ProductSearchResponse.js b/src/model/ProductSearchResponse.js deleted file mode 100644 index cf48d0a7..00000000 --- a/src/model/ProductSearchResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import ProductSearchResponseAllOf from './ProductSearchResponseAllOf'; -import ProductSearchResponseAllOfData from './ProductSearchResponseAllOfData'; - -/** - * The ProductSearchResponse model module. - * @module model/ProductSearchResponse - * @version 1.0.0 - */ -class ProductSearchResponse { - /** - * Constructs a new ProductSearchResponse. - * @alias module:model/ProductSearchResponse - * @implements module:model/BaseResponse - * @implements module:model/ProductSearchResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);ProductSearchResponseAllOf.initialize(this); - ProductSearchResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductSearchResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductSearchResponse} obj Optional instance to populate. - * @return {module:model/ProductSearchResponse} The populated ProductSearchResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductSearchResponse(); - BaseResponse.constructFromObject(data, obj); - ProductSearchResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProductSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ProductSearchResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ProductSearchResponseAllOfData} data - */ -ProductSearchResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ProductSearchResponse.prototype['additional_data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement ProductSearchResponseAllOf interface: -/** - * @member {module:model/ProductSearchResponseAllOfData} data - */ -ProductSearchResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ProductSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - -export default ProductSearchResponse; - diff --git a/src/model/ProductSearchResponseAllOf.js b/src/model/ProductSearchResponseAllOf.js deleted file mode 100644 index c8ed5d49..00000000 --- a/src/model/ProductSearchResponseAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ItemSearchAdditionalData from './ItemSearchAdditionalData'; -import ProductSearchResponseAllOfData from './ProductSearchResponseAllOfData'; - -/** - * The ProductSearchResponseAllOf model module. - * @module model/ProductSearchResponseAllOf - * @version 1.0.0 - */ -class ProductSearchResponseAllOf { - /** - * Constructs a new ProductSearchResponseAllOf. - * @alias module:model/ProductSearchResponseAllOf - */ - constructor() { - - ProductSearchResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductSearchResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductSearchResponseAllOf} obj Optional instance to populate. - * @return {module:model/ProductSearchResponseAllOf} The populated ProductSearchResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductSearchResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ProductSearchResponseAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ItemSearchAdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/ProductSearchResponseAllOfData} data - */ -ProductSearchResponseAllOf.prototype['data'] = undefined; - -/** - * @member {module:model/ItemSearchAdditionalData} additional_data - */ -ProductSearchResponseAllOf.prototype['additional_data'] = undefined; - - - - - - -export default ProductSearchResponseAllOf; - diff --git a/src/model/ProductSearchResponseAllOfData.js b/src/model/ProductSearchResponseAllOfData.js deleted file mode 100644 index a6110c75..00000000 --- a/src/model/ProductSearchResponseAllOfData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProductSearchItem from './ProductSearchItem'; - -/** - * The ProductSearchResponseAllOfData model module. - * @module model/ProductSearchResponseAllOfData - * @version 1.0.0 - */ -class ProductSearchResponseAllOfData { - /** - * Constructs a new ProductSearchResponseAllOfData. - * @alias module:model/ProductSearchResponseAllOfData - */ - constructor() { - - ProductSearchResponseAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductSearchResponseAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductSearchResponseAllOfData} obj Optional instance to populate. - * @return {module:model/ProductSearchResponseAllOfData} The populated ProductSearchResponseAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductSearchResponseAllOfData(); - - if (data.hasOwnProperty('items')) { - obj['items'] = ApiClient.convertToType(data['items'], [ProductSearchItem]); - - delete data['items']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of found items - * @member {Array.} items - */ -ProductSearchResponseAllOfData.prototype['items'] = undefined; - - - - - - -export default ProductSearchResponseAllOfData; - diff --git a/src/model/ProductWithArrayPrices.js b/src/model/ProductWithArrayPrices.js deleted file mode 100644 index 2daee403..00000000 --- a/src/model/ProductWithArrayPrices.js +++ /dev/null @@ -1,322 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ArrayPrices from './ArrayPrices'; -import BaseProduct from './BaseProduct'; -import VisibleTo from './VisibleTo'; - -/** - * The ProductWithArrayPrices model module. - * @module model/ProductWithArrayPrices - * @version 1.0.0 - */ -class ProductWithArrayPrices { - /** - * Constructs a new ProductWithArrayPrices. - * @alias module:model/ProductWithArrayPrices - * @implements module:model/BaseProduct - * @implements module:model/ArrayPrices - */ - constructor() { - BaseProduct.initialize(this);ArrayPrices.initialize(this); - ProductWithArrayPrices.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductWithArrayPrices from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductWithArrayPrices} obj Optional instance to populate. - * @return {module:model/ProductWithArrayPrices} The populated ProductWithArrayPrices instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductWithArrayPrices(); - BaseProduct.constructFromObject(data, obj); - ArrayPrices.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); - - delete data['unit']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('selectable')) { - obj['selectable'] = ApiClient.convertToType(data['selectable'], 'Boolean'); - - delete data['selectable']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], Object); - - delete data['owner_id']; - } - if (data.hasOwnProperty('billing_frequency')) { - obj['billing_frequency'] = ApiClient.convertToType(data['billing_frequency'], 'String'); - - delete data['billing_frequency']; - } - if (data.hasOwnProperty('billing_frequency_cycles')) { - obj['billing_frequency_cycles'] = ApiClient.convertToType(data['billing_frequency_cycles'], 'Number'); - - delete data['billing_frequency_cycles']; - } - if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], [Object]); - - delete data['prices']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product - * @member {Number} id - */ -ProductWithArrayPrices.prototype['id'] = undefined; - -/** - * The name of the product - * @member {String} name - */ -ProductWithArrayPrices.prototype['name'] = undefined; - -/** - * The product code - * @member {String} code - */ -ProductWithArrayPrices.prototype['code'] = undefined; - -/** - * The unit in which this product is sold - * @member {String} unit - */ -ProductWithArrayPrices.prototype['unit'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -ProductWithArrayPrices.prototype['tax'] = 0; - -/** - * Whether this product is active or not - * @member {Boolean} active_flag - * @default true - */ -ProductWithArrayPrices.prototype['active_flag'] = true; - -/** - * Whether this product is selected in deals or not - * @member {Boolean} selectable - * @default true - */ -ProductWithArrayPrices.prototype['selectable'] = true; - -/** - * Visibility of the product - * @member {module:model/VisibleTo} visible_to - */ -ProductWithArrayPrices.prototype['visible_to'] = undefined; - -/** - * Information about the Pipedrive user who owns the product - * @member {Object} owner_id - */ -ProductWithArrayPrices.prototype['owner_id'] = undefined; - -/** - * Only available in Advanced and above plans How often a customer is billed for access to a service or product - * @member {module:model/ProductWithArrayPrices.BillingFrequencyEnum} billing_frequency - * @default 'one-time' - */ -ProductWithArrayPrices.prototype['billing_frequency'] = 'one-time'; - -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field is always `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -ProductWithArrayPrices.prototype['billing_frequency_cycles'] = undefined; - -/** - * Array of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) - * @member {Array.} prices - */ -ProductWithArrayPrices.prototype['prices'] = undefined; - - -// Implement BaseProduct interface: -/** - * The ID of the product - * @member {Number} id - */ -BaseProduct.prototype['id'] = undefined; -/** - * The name of the product - * @member {String} name - */ -BaseProduct.prototype['name'] = undefined; -/** - * The product code - * @member {String} code - */ -BaseProduct.prototype['code'] = undefined; -/** - * The unit in which this product is sold - * @member {String} unit - */ -BaseProduct.prototype['unit'] = undefined; -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -BaseProduct.prototype['tax'] = 0; -/** - * Whether this product is active or not - * @member {Boolean} active_flag - * @default true - */ -BaseProduct.prototype['active_flag'] = true; -/** - * Whether this product is selected in deals or not - * @member {Boolean} selectable - * @default true - */ -BaseProduct.prototype['selectable'] = true; -/** - * Visibility of the product - * @member {module:model/VisibleTo} visible_to - */ -BaseProduct.prototype['visible_to'] = undefined; -/** - * Information about the Pipedrive user who owns the product - * @member {Object} owner_id - */ -BaseProduct.prototype['owner_id'] = undefined; -/** - * Only available in Advanced and above plans How often a customer is billed for access to a service or product - * @member {module:model/BaseProduct.BillingFrequencyEnum} billing_frequency - * @default 'one-time' - */ -BaseProduct.prototype['billing_frequency'] = 'one-time'; -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field is always `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -BaseProduct.prototype['billing_frequency_cycles'] = undefined; -// Implement ArrayPrices interface: -/** - * Array of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) - * @member {Array.} prices - */ -ArrayPrices.prototype['prices'] = undefined; - - - -/** - * Allowed values for the billing_frequency property. - * @enum {String} - * @readonly - */ -ProductWithArrayPrices['BillingFrequencyEnum'] = { - - /** - * value: "one-time" - * @const - */ - "one-time": "one-time", - - /** - * value: "annually" - * @const - */ - "annually": "annually", - - /** - * value: "semi-annually" - * @const - */ - "semi-annually": "semi-annually", - - /** - * value: "quarterly" - * @const - */ - "quarterly": "quarterly", - - /** - * value: "monthly" - * @const - */ - "monthly": "monthly", - - /** - * value: "weekly" - * @const - */ - "weekly": "weekly" -}; - - - -export default ProductWithArrayPrices; - diff --git a/src/model/ProductWithObjectPrices.js b/src/model/ProductWithObjectPrices.js deleted file mode 100644 index 68ad1389..00000000 --- a/src/model/ProductWithObjectPrices.js +++ /dev/null @@ -1,243 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseProduct from './BaseProduct'; -import ObjectPrices from './ObjectPrices'; -import VisibleTo from './VisibleTo'; - -/** - * The ProductWithObjectPrices model module. - * @module model/ProductWithObjectPrices - * @version 1.0.0 - */ -class ProductWithObjectPrices { - /** - * Constructs a new ProductWithObjectPrices. - * @alias module:model/ProductWithObjectPrices - * @implements module:model/BaseProduct - * @implements module:model/ObjectPrices - */ - constructor() { - BaseProduct.initialize(this);ObjectPrices.initialize(this); - ProductWithObjectPrices.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductWithObjectPrices from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductWithObjectPrices} obj Optional instance to populate. - * @return {module:model/ProductWithObjectPrices} The populated ProductWithObjectPrices instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductWithObjectPrices(); - BaseProduct.constructFromObject(data, obj); - ObjectPrices.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); - - delete data['unit']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('selectable')) { - obj['selectable'] = ApiClient.convertToType(data['selectable'], 'Boolean'); - - delete data['selectable']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], Object); - - delete data['owner_id']; - } - if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], Object); - - delete data['prices']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product - * @member {Number} id - */ -ProductWithObjectPrices.prototype['id'] = undefined; - -/** - * The name of the product - * @member {String} name - */ -ProductWithObjectPrices.prototype['name'] = undefined; - -/** - * The product code - * @member {String} code - */ -ProductWithObjectPrices.prototype['code'] = undefined; - -/** - * The unit in which this product is sold - * @member {String} unit - */ -ProductWithObjectPrices.prototype['unit'] = undefined; - -/** - * The ax percentage - * @member {Number} tax - * @default 0 - */ -ProductWithObjectPrices.prototype['tax'] = 0; - -/** - * Whether this product is active or not - * @member {Boolean} active_flag - * @default true - */ -ProductWithObjectPrices.prototype['active_flag'] = true; - -/** - * Whether this product is selected in deals or not - * @member {Boolean} selectable - * @default true - */ -ProductWithObjectPrices.prototype['selectable'] = true; - -/** - * Visibility of the product - * @member {module:model/VisibleTo} visible_to - */ -ProductWithObjectPrices.prototype['visible_to'] = undefined; - -/** - * Information about the Pipedrive user who owns the product - * @member {Object} owner_id - */ -ProductWithObjectPrices.prototype['owner_id'] = undefined; - -/** - * Object of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) - * @member {Object} prices - */ -ProductWithObjectPrices.prototype['prices'] = undefined; - - -// Implement BaseProduct interface: -/** - * The ID of the product - * @member {Number} id - */ -BaseProduct.prototype['id'] = undefined; -/** - * The name of the product - * @member {String} name - */ -BaseProduct.prototype['name'] = undefined; -/** - * The product code - * @member {String} code - */ -BaseProduct.prototype['code'] = undefined; -/** - * The unit in which this product is sold - * @member {String} unit - */ -BaseProduct.prototype['unit'] = undefined; -/** - * The ax percentage - * @member {Number} tax - * @default 0 - */ -BaseProduct.prototype['tax'] = 0; -/** - * Whether this product is active or not - * @member {Boolean} active_flag - * @default true - */ -BaseProduct.prototype['active_flag'] = true; -/** - * Whether this product is selected in deals or not - * @member {Boolean} selectable - * @default true - */ -BaseProduct.prototype['selectable'] = true; -/** - * Visibility of the product - * @member {module:model/VisibleTo} visible_to - */ -BaseProduct.prototype['visible_to'] = undefined; -/** - * Information about the Pipedrive user who owns the product - * @member {Object} owner_id - */ -BaseProduct.prototype['owner_id'] = undefined; -// Implement ObjectPrices interface: -/** - * Object of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) - * @member {Object} prices - */ -ObjectPrices.prototype['prices'] = undefined; - - - - -export default ProductWithObjectPrices; - diff --git a/src/model/ProductsResponse.js b/src/model/ProductsResponse.js deleted file mode 100644 index fc05b0d5..00000000 --- a/src/model/ProductsResponse.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AdditionalData from './AdditionalData'; -import GetActivitiesResponseRelatedObjects from './GetActivitiesResponseRelatedObjects'; -import ProductResponse from './ProductResponse'; - -/** - * The ProductsResponse model module. - * @module model/ProductsResponse - * @version 1.0.0 - */ -class ProductsResponse { - /** - * Constructs a new ProductsResponse. - * @alias module:model/ProductsResponse - */ - constructor() { - - ProductsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProductsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProductsResponse} obj Optional instance to populate. - * @return {module:model/ProductsResponse} The populated ProductsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProductsResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [ProductResponse]); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = AdditionalData.constructFromObject(data['additional_data']); - - delete data['additional_data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = GetActivitiesResponseRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -ProductsResponse.prototype['success'] = undefined; - -/** - * Array containing data for all products - * @member {Array.} data - */ -ProductsResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AdditionalData} additional_data - */ -ProductsResponse.prototype['additional_data'] = undefined; - -/** - * @member {module:model/GetActivitiesResponseRelatedObjects} related_objects - */ -ProductsResponse.prototype['related_objects'] = undefined; - - - - - - -export default ProductsResponse; - diff --git a/src/model/ProjectBoardObject.js b/src/model/ProjectBoardObject.js deleted file mode 100644 index a5f9a4bf..00000000 --- a/src/model/ProjectBoardObject.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProjectBoardObject model module. - * @module model/ProjectBoardObject - * @version 1.0.0 - */ -class ProjectBoardObject { - /** - * Constructs a new ProjectBoardObject. - * @alias module:model/ProjectBoardObject - */ - constructor() { - - ProjectBoardObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectBoardObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectBoardObject} obj Optional instance to populate. - * @return {module:model/ProjectBoardObject} The populated ProjectBoardObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectBoardObject(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the project board - * @member {Number} id - */ -ProjectBoardObject.prototype['id'] = undefined; - -/** - * Name of a project board - * @member {String} name - */ -ProjectBoardObject.prototype['name'] = undefined; - -/** - * The order of a board - * @member {Number} order_nr - */ -ProjectBoardObject.prototype['order_nr'] = undefined; - -/** - * The creation date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -ProjectBoardObject.prototype['add_time'] = undefined; - -/** - * The update date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -ProjectBoardObject.prototype['update_time'] = undefined; - - - - - - -export default ProjectBoardObject; - diff --git a/src/model/ProjectGroupsObject.js b/src/model/ProjectGroupsObject.js deleted file mode 100644 index 9d11c825..00000000 --- a/src/model/ProjectGroupsObject.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProjectGroupsObject model module. - * @module model/ProjectGroupsObject - * @version 1.0.0 - */ -class ProjectGroupsObject { - /** - * Constructs a new ProjectGroupsObject. - * @alias module:model/ProjectGroupsObject - */ - constructor() { - - ProjectGroupsObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectGroupsObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectGroupsObject} obj Optional instance to populate. - * @return {module:model/ProjectGroupsObject} The populated ProjectGroupsObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectGroupsObject(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * ID of the group - * @member {Number} id - */ -ProjectGroupsObject.prototype['id'] = undefined; - -/** - * Name of the group - * @member {String} name - */ -ProjectGroupsObject.prototype['name'] = undefined; - -/** - * Order number of the group - * @member {Number} order_nr - */ -ProjectGroupsObject.prototype['order_nr'] = undefined; - - - - - - -export default ProjectGroupsObject; - diff --git a/src/model/ProjectId.js b/src/model/ProjectId.js deleted file mode 100644 index 6309cca3..00000000 --- a/src/model/ProjectId.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProjectId model module. - * @module model/ProjectId - * @version 1.0.0 - */ -class ProjectId { - /** - * Constructs a new ProjectId. - * @alias module:model/ProjectId - */ - constructor() { - - ProjectId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectId} obj Optional instance to populate. - * @return {module:model/ProjectId} The populated ProjectId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectId(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the project, generated when the task was created - * @member {Number} id - */ -ProjectId.prototype['id'] = undefined; - - - - - - -export default ProjectId; - diff --git a/src/model/ProjectMandatoryObjectFragment.js b/src/model/ProjectMandatoryObjectFragment.js deleted file mode 100644 index 75bf58a4..00000000 --- a/src/model/ProjectMandatoryObjectFragment.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProjectMandatoryObjectFragment model module. - * @module model/ProjectMandatoryObjectFragment - * @version 1.0.0 - */ -class ProjectMandatoryObjectFragment { - /** - * Constructs a new ProjectMandatoryObjectFragment. - * @alias module:model/ProjectMandatoryObjectFragment - */ - constructor() { - - ProjectMandatoryObjectFragment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectMandatoryObjectFragment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectMandatoryObjectFragment} obj Optional instance to populate. - * @return {module:model/ProjectMandatoryObjectFragment} The populated ProjectMandatoryObjectFragment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectMandatoryObjectFragment(); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('board_id')) { - obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); - - delete data['board_id']; - } - if (data.hasOwnProperty('phase_id')) { - obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); - - delete data['phase_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the project - * @member {String} title - */ -ProjectMandatoryObjectFragment.prototype['title'] = undefined; - -/** - * The ID of the board this project is associated with - * @member {Number} board_id - */ -ProjectMandatoryObjectFragment.prototype['board_id'] = undefined; - -/** - * The ID of the phase this project is associated with - * @member {Number} phase_id - */ -ProjectMandatoryObjectFragment.prototype['phase_id'] = undefined; - - - - - - -export default ProjectMandatoryObjectFragment; - diff --git a/src/model/ProjectNotChangeableObjectFragment.js b/src/model/ProjectNotChangeableObjectFragment.js deleted file mode 100644 index 09b09b88..00000000 --- a/src/model/ProjectNotChangeableObjectFragment.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProjectNotChangeableObjectFragment model module. - * @module model/ProjectNotChangeableObjectFragment - * @version 1.0.0 - */ -class ProjectNotChangeableObjectFragment { - /** - * Constructs a new ProjectNotChangeableObjectFragment. - * @alias module:model/ProjectNotChangeableObjectFragment - */ - constructor() { - - ProjectNotChangeableObjectFragment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectNotChangeableObjectFragment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectNotChangeableObjectFragment} obj Optional instance to populate. - * @return {module:model/ProjectNotChangeableObjectFragment} The populated ProjectNotChangeableObjectFragment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectNotChangeableObjectFragment(); - - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('status_change_time')) { - obj['status_change_time'] = ApiClient.convertToType(data['status_change_time'], 'String'); - - delete data['status_change_time']; - } - if (data.hasOwnProperty('archive_time')) { - obj['archive_time'] = ApiClient.convertToType(data['archive_time'], 'String'); - - delete data['archive_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -ProjectNotChangeableObjectFragment.prototype['add_time'] = undefined; - -/** - * The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -ProjectNotChangeableObjectFragment.prototype['update_time'] = undefined; - -/** - * The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} status_change_time - */ -ProjectNotChangeableObjectFragment.prototype['status_change_time'] = undefined; - -/** - * The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. - * @member {String} archive_time - */ -ProjectNotChangeableObjectFragment.prototype['archive_time'] = undefined; - - - - - - -export default ProjectNotChangeableObjectFragment; - diff --git a/src/model/ProjectObjectFragment.js b/src/model/ProjectObjectFragment.js deleted file mode 100644 index fe5490f3..00000000 --- a/src/model/ProjectObjectFragment.js +++ /dev/null @@ -1,167 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProjectObjectFragment model module. - * @module model/ProjectObjectFragment - * @version 1.0.0 - */ -class ProjectObjectFragment { - /** - * Constructs a new ProjectObjectFragment. - * @alias module:model/ProjectObjectFragment - */ - constructor() { - - ProjectObjectFragment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectObjectFragment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectObjectFragment} obj Optional instance to populate. - * @return {module:model/ProjectObjectFragment} The populated ProjectObjectFragment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectObjectFragment(); - - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('start_date')) { - obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); - - delete data['start_date']; - } - if (data.hasOwnProperty('end_date')) { - obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); - - delete data['end_date']; - } - if (data.hasOwnProperty('deal_ids')) { - obj['deal_ids'] = ApiClient.convertToType(data['deal_ids'], ['Number']); - - delete data['deal_ids']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('labels')) { - obj['labels'] = ApiClient.convertToType(data['labels'], ['Number']); - - delete data['labels']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The description of the project - * @member {String} description - */ -ProjectObjectFragment.prototype['description'] = undefined; - -/** - * The status of the project - * @member {String} status - */ -ProjectObjectFragment.prototype['status'] = undefined; - -/** - * The ID of a project owner - * @member {Number} owner_id - */ -ProjectObjectFragment.prototype['owner_id'] = undefined; - -/** - * The start date of the project. Format: YYYY-MM-DD. - * @member {Date} start_date - */ -ProjectObjectFragment.prototype['start_date'] = undefined; - -/** - * The end date of the project. Format: YYYY-MM-DD. - * @member {Date} end_date - */ -ProjectObjectFragment.prototype['end_date'] = undefined; - -/** - * An array of IDs of the deals this project is associated with - * @member {Array.} deal_ids - */ -ProjectObjectFragment.prototype['deal_ids'] = undefined; - -/** - * The ID of the organization this project is associated with - * @member {Number} org_id - */ -ProjectObjectFragment.prototype['org_id'] = undefined; - -/** - * The ID of the person this project is associated with - * @member {Number} person_id - */ -ProjectObjectFragment.prototype['person_id'] = undefined; - -/** - * An array of IDs of the labels this project has - * @member {Array.} labels - */ -ProjectObjectFragment.prototype['labels'] = undefined; - - - - - - -export default ProjectObjectFragment; - diff --git a/src/model/ProjectPhaseObject.js b/src/model/ProjectPhaseObject.js deleted file mode 100644 index 77c493df..00000000 --- a/src/model/ProjectPhaseObject.js +++ /dev/null @@ -1,134 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProjectPhaseObject model module. - * @module model/ProjectPhaseObject - * @version 1.0.0 - */ -class ProjectPhaseObject { - /** - * Constructs a new ProjectPhaseObject. - * @alias module:model/ProjectPhaseObject - */ - constructor() { - - ProjectPhaseObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectPhaseObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectPhaseObject} obj Optional instance to populate. - * @return {module:model/ProjectPhaseObject} The populated ProjectPhaseObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectPhaseObject(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('board_id')) { - obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); - - delete data['board_id']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the project phase - * @member {Number} id - */ -ProjectPhaseObject.prototype['id'] = undefined; - -/** - * Name of a project phase - * @member {String} name - */ -ProjectPhaseObject.prototype['name'] = undefined; - -/** - * The ID of the project board this phase is linked to - * @member {Number} board_id - */ -ProjectPhaseObject.prototype['board_id'] = undefined; - -/** - * The order of a phase - * @member {Number} order_nr - */ -ProjectPhaseObject.prototype['order_nr'] = undefined; - -/** - * The creation date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -ProjectPhaseObject.prototype['add_time'] = undefined; - -/** - * The update date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -ProjectPhaseObject.prototype['update_time'] = undefined; - - - - - - -export default ProjectPhaseObject; - diff --git a/src/model/ProjectPlanItemObject.js b/src/model/ProjectPlanItemObject.js deleted file mode 100644 index 1ddd8479..00000000 --- a/src/model/ProjectPlanItemObject.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProjectPlanItemObject model module. - * @module model/ProjectPlanItemObject - * @version 1.0.0 - */ -class ProjectPlanItemObject { - /** - * Constructs a new ProjectPlanItemObject. - * @alias module:model/ProjectPlanItemObject - */ - constructor() { - - ProjectPlanItemObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectPlanItemObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectPlanItemObject} obj Optional instance to populate. - * @return {module:model/ProjectPlanItemObject} The populated ProjectPlanItemObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectPlanItemObject(); - - if (data.hasOwnProperty('item_id')) { - obj['item_id'] = ApiClient.convertToType(data['item_id'], 'Number'); - - delete data['item_id']; - } - if (data.hasOwnProperty('item_type')) { - obj['item_type'] = ApiClient.convertToType(data['item_type'], 'String'); - - delete data['item_type']; - } - if (data.hasOwnProperty('phase_id')) { - obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); - - delete data['phase_id']; - } - if (data.hasOwnProperty('group_id')) { - obj['group_id'] = ApiClient.convertToType(data['group_id'], 'Number'); - - delete data['group_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * ID of plan item (either activity or task ID) - * @member {Number} item_id - */ -ProjectPlanItemObject.prototype['item_id'] = undefined; - -/** - * Type of a plan item (task / activity) - * @member {String} item_type - */ -ProjectPlanItemObject.prototype['item_type'] = undefined; - -/** - * The ID of the board this project is associated with. If null then plan item is not in any phase. - * @member {Number} phase_id - */ -ProjectPlanItemObject.prototype['phase_id'] = undefined; - -/** - * The ID of the board this project is associated with. If null then plan item is not in any group. - * @member {Number} group_id - */ -ProjectPlanItemObject.prototype['group_id'] = undefined; - - - - - - -export default ProjectPlanItemObject; - diff --git a/src/model/ProjectPostObject.js b/src/model/ProjectPostObject.js deleted file mode 100644 index fcc1777b..00000000 --- a/src/model/ProjectPostObject.js +++ /dev/null @@ -1,294 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectObjectFragment from './ProjectObjectFragment'; -import ProjectPostObjectAllOf from './ProjectPostObjectAllOf'; -import RequiredPostProjectParameters from './RequiredPostProjectParameters'; - -/** - * The ProjectPostObject model module. - * @module model/ProjectPostObject - * @version 1.0.0 - */ -class ProjectPostObject { - /** - * Constructs a new ProjectPostObject. - * @alias module:model/ProjectPostObject - * @implements module:model/RequiredPostProjectParameters - * @implements module:model/ProjectObjectFragment - * @implements module:model/ProjectPostObjectAllOf - * @param title {String} The title of the project - * @param boardId {Number} The ID of a project board - * @param phaseId {Number} The ID of a phase on a project board - */ - constructor(title, boardId, phaseId) { - RequiredPostProjectParameters.initialize(this, title, boardId, phaseId);ProjectObjectFragment.initialize(this);ProjectPostObjectAllOf.initialize(this); - ProjectPostObject.initialize(this, title, boardId, phaseId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, title, boardId, phaseId) { - obj['title'] = title; - obj['board_id'] = boardId; - obj['phase_id'] = phaseId; - } - - /** - * Constructs a ProjectPostObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectPostObject} obj Optional instance to populate. - * @return {module:model/ProjectPostObject} The populated ProjectPostObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectPostObject(); - RequiredPostProjectParameters.constructFromObject(data, obj); - ProjectObjectFragment.constructFromObject(data, obj); - ProjectPostObjectAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('board_id')) { - obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); - - delete data['board_id']; - } - if (data.hasOwnProperty('phase_id')) { - obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); - - delete data['phase_id']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('start_date')) { - obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); - - delete data['start_date']; - } - if (data.hasOwnProperty('end_date')) { - obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); - - delete data['end_date']; - } - if (data.hasOwnProperty('deal_ids')) { - obj['deal_ids'] = ApiClient.convertToType(data['deal_ids'], ['Number']); - - delete data['deal_ids']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('labels')) { - obj['labels'] = ApiClient.convertToType(data['labels'], ['Number']); - - delete data['labels']; - } - if (data.hasOwnProperty('template_id')) { - obj['template_id'] = ApiClient.convertToType(data['template_id'], 'Number'); - - delete data['template_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the project - * @member {String} title - */ -ProjectPostObject.prototype['title'] = undefined; - -/** - * The ID of a project board - * @member {Number} board_id - */ -ProjectPostObject.prototype['board_id'] = undefined; - -/** - * The ID of a phase on a project board - * @member {Number} phase_id - */ -ProjectPostObject.prototype['phase_id'] = undefined; - -/** - * The description of the project - * @member {String} description - */ -ProjectPostObject.prototype['description'] = undefined; - -/** - * The status of the project - * @member {String} status - */ -ProjectPostObject.prototype['status'] = undefined; - -/** - * The ID of a project owner - * @member {Number} owner_id - */ -ProjectPostObject.prototype['owner_id'] = undefined; - -/** - * The start date of the project. Format: YYYY-MM-DD. - * @member {Date} start_date - */ -ProjectPostObject.prototype['start_date'] = undefined; - -/** - * The end date of the project. Format: YYYY-MM-DD. - * @member {Date} end_date - */ -ProjectPostObject.prototype['end_date'] = undefined; - -/** - * An array of IDs of the deals this project is associated with - * @member {Array.} deal_ids - */ -ProjectPostObject.prototype['deal_ids'] = undefined; - -/** - * The ID of the organization this project is associated with - * @member {Number} org_id - */ -ProjectPostObject.prototype['org_id'] = undefined; - -/** - * The ID of the person this project is associated with - * @member {Number} person_id - */ -ProjectPostObject.prototype['person_id'] = undefined; - -/** - * An array of IDs of the labels this project has - * @member {Array.} labels - */ -ProjectPostObject.prototype['labels'] = undefined; - -/** - * The ID of the template the project will be based on - * @member {Number} template_id - */ -ProjectPostObject.prototype['template_id'] = undefined; - - -// Implement RequiredPostProjectParameters interface: -/** - * The title of the project - * @member {String} title - */ -RequiredPostProjectParameters.prototype['title'] = undefined; -/** - * The ID of a project board - * @member {Number} board_id - */ -RequiredPostProjectParameters.prototype['board_id'] = undefined; -/** - * The ID of a phase on a project board - * @member {Number} phase_id - */ -RequiredPostProjectParameters.prototype['phase_id'] = undefined; -// Implement ProjectObjectFragment interface: -/** - * The description of the project - * @member {String} description - */ -ProjectObjectFragment.prototype['description'] = undefined; -/** - * The status of the project - * @member {String} status - */ -ProjectObjectFragment.prototype['status'] = undefined; -/** - * The ID of a project owner - * @member {Number} owner_id - */ -ProjectObjectFragment.prototype['owner_id'] = undefined; -/** - * The start date of the project. Format: YYYY-MM-DD. - * @member {Date} start_date - */ -ProjectObjectFragment.prototype['start_date'] = undefined; -/** - * The end date of the project. Format: YYYY-MM-DD. - * @member {Date} end_date - */ -ProjectObjectFragment.prototype['end_date'] = undefined; -/** - * An array of IDs of the deals this project is associated with - * @member {Array.} deal_ids - */ -ProjectObjectFragment.prototype['deal_ids'] = undefined; -/** - * The ID of the organization this project is associated with - * @member {Number} org_id - */ -ProjectObjectFragment.prototype['org_id'] = undefined; -/** - * The ID of the person this project is associated with - * @member {Number} person_id - */ -ProjectObjectFragment.prototype['person_id'] = undefined; -/** - * An array of IDs of the labels this project has - * @member {Array.} labels - */ -ProjectObjectFragment.prototype['labels'] = undefined; -// Implement ProjectPostObjectAllOf interface: -/** - * The ID of the template the project will be based on - * @member {Number} template_id - */ -ProjectPostObjectAllOf.prototype['template_id'] = undefined; - - - - -export default ProjectPostObject; - diff --git a/src/model/ProjectPostObjectAllOf.js b/src/model/ProjectPostObjectAllOf.js deleted file mode 100644 index b588be3e..00000000 --- a/src/model/ProjectPostObjectAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProjectPostObjectAllOf model module. - * @module model/ProjectPostObjectAllOf - * @version 1.0.0 - */ -class ProjectPostObjectAllOf { - /** - * Constructs a new ProjectPostObjectAllOf. - * @alias module:model/ProjectPostObjectAllOf - */ - constructor() { - - ProjectPostObjectAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectPostObjectAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectPostObjectAllOf} obj Optional instance to populate. - * @return {module:model/ProjectPostObjectAllOf} The populated ProjectPostObjectAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectPostObjectAllOf(); - - if (data.hasOwnProperty('template_id')) { - obj['template_id'] = ApiClient.convertToType(data['template_id'], 'Number'); - - delete data['template_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the template the project will be based on - * @member {Number} template_id - */ -ProjectPostObjectAllOf.prototype['template_id'] = undefined; - - - - - - -export default ProjectPostObjectAllOf; - diff --git a/src/model/ProjectPutObject.js b/src/model/ProjectPutObject.js deleted file mode 100644 index e9e75600..00000000 --- a/src/model/ProjectPutObject.js +++ /dev/null @@ -1,268 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectMandatoryObjectFragment from './ProjectMandatoryObjectFragment'; -import ProjectObjectFragment from './ProjectObjectFragment'; - -/** - * The ProjectPutObject model module. - * @module model/ProjectPutObject - * @version 1.0.0 - */ -class ProjectPutObject { - /** - * Constructs a new ProjectPutObject. - * @alias module:model/ProjectPutObject - * @implements module:model/ProjectMandatoryObjectFragment - * @implements module:model/ProjectObjectFragment - */ - constructor() { - ProjectMandatoryObjectFragment.initialize(this);ProjectObjectFragment.initialize(this); - ProjectPutObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectPutObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectPutObject} obj Optional instance to populate. - * @return {module:model/ProjectPutObject} The populated ProjectPutObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectPutObject(); - ProjectMandatoryObjectFragment.constructFromObject(data, obj); - ProjectObjectFragment.constructFromObject(data, obj); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('board_id')) { - obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); - - delete data['board_id']; - } - if (data.hasOwnProperty('phase_id')) { - obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); - - delete data['phase_id']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('start_date')) { - obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); - - delete data['start_date']; - } - if (data.hasOwnProperty('end_date')) { - obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); - - delete data['end_date']; - } - if (data.hasOwnProperty('deal_ids')) { - obj['deal_ids'] = ApiClient.convertToType(data['deal_ids'], ['Number']); - - delete data['deal_ids']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('labels')) { - obj['labels'] = ApiClient.convertToType(data['labels'], ['Number']); - - delete data['labels']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the project - * @member {String} title - */ -ProjectPutObject.prototype['title'] = undefined; - -/** - * The ID of the board this project is associated with - * @member {Number} board_id - */ -ProjectPutObject.prototype['board_id'] = undefined; - -/** - * The ID of the phase this project is associated with - * @member {Number} phase_id - */ -ProjectPutObject.prototype['phase_id'] = undefined; - -/** - * The description of the project - * @member {String} description - */ -ProjectPutObject.prototype['description'] = undefined; - -/** - * The status of the project - * @member {String} status - */ -ProjectPutObject.prototype['status'] = undefined; - -/** - * The ID of a project owner - * @member {Number} owner_id - */ -ProjectPutObject.prototype['owner_id'] = undefined; - -/** - * The start date of the project. Format: YYYY-MM-DD. - * @member {Date} start_date - */ -ProjectPutObject.prototype['start_date'] = undefined; - -/** - * The end date of the project. Format: YYYY-MM-DD. - * @member {Date} end_date - */ -ProjectPutObject.prototype['end_date'] = undefined; - -/** - * An array of IDs of the deals this project is associated with - * @member {Array.} deal_ids - */ -ProjectPutObject.prototype['deal_ids'] = undefined; - -/** - * The ID of the organization this project is associated with - * @member {Number} org_id - */ -ProjectPutObject.prototype['org_id'] = undefined; - -/** - * The ID of the person this project is associated with - * @member {Number} person_id - */ -ProjectPutObject.prototype['person_id'] = undefined; - -/** - * An array of IDs of the labels this project has - * @member {Array.} labels - */ -ProjectPutObject.prototype['labels'] = undefined; - - -// Implement ProjectMandatoryObjectFragment interface: -/** - * The title of the project - * @member {String} title - */ -ProjectMandatoryObjectFragment.prototype['title'] = undefined; -/** - * The ID of the board this project is associated with - * @member {Number} board_id - */ -ProjectMandatoryObjectFragment.prototype['board_id'] = undefined; -/** - * The ID of the phase this project is associated with - * @member {Number} phase_id - */ -ProjectMandatoryObjectFragment.prototype['phase_id'] = undefined; -// Implement ProjectObjectFragment interface: -/** - * The description of the project - * @member {String} description - */ -ProjectObjectFragment.prototype['description'] = undefined; -/** - * The status of the project - * @member {String} status - */ -ProjectObjectFragment.prototype['status'] = undefined; -/** - * The ID of a project owner - * @member {Number} owner_id - */ -ProjectObjectFragment.prototype['owner_id'] = undefined; -/** - * The start date of the project. Format: YYYY-MM-DD. - * @member {Date} start_date - */ -ProjectObjectFragment.prototype['start_date'] = undefined; -/** - * The end date of the project. Format: YYYY-MM-DD. - * @member {Date} end_date - */ -ProjectObjectFragment.prototype['end_date'] = undefined; -/** - * An array of IDs of the deals this project is associated with - * @member {Array.} deal_ids - */ -ProjectObjectFragment.prototype['deal_ids'] = undefined; -/** - * The ID of the organization this project is associated with - * @member {Number} org_id - */ -ProjectObjectFragment.prototype['org_id'] = undefined; -/** - * The ID of the person this project is associated with - * @member {Number} person_id - */ -ProjectObjectFragment.prototype['person_id'] = undefined; -/** - * An array of IDs of the labels this project has - * @member {Array.} labels - */ -ProjectObjectFragment.prototype['labels'] = undefined; - - - - -export default ProjectPutObject; - diff --git a/src/model/ProjectPutPlanItemBodyObject.js b/src/model/ProjectPutPlanItemBodyObject.js deleted file mode 100644 index 5dd34eb1..00000000 --- a/src/model/ProjectPutPlanItemBodyObject.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ProjectPutPlanItemBodyObject model module. - * @module model/ProjectPutPlanItemBodyObject - * @version 1.0.0 - */ -class ProjectPutPlanItemBodyObject { - /** - * Constructs a new ProjectPutPlanItemBodyObject. - * @alias module:model/ProjectPutPlanItemBodyObject - */ - constructor() { - - ProjectPutPlanItemBodyObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectPutPlanItemBodyObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectPutPlanItemBodyObject} obj Optional instance to populate. - * @return {module:model/ProjectPutPlanItemBodyObject} The populated ProjectPutPlanItemBodyObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectPutPlanItemBodyObject(); - - if (data.hasOwnProperty('phase_id')) { - obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); - - delete data['phase_id']; - } - if (data.hasOwnProperty('group_id')) { - obj['group_id'] = ApiClient.convertToType(data['group_id'], 'Number'); - - delete data['group_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of a phase on a project board - * @member {Number} phase_id - */ -ProjectPutPlanItemBodyObject.prototype['phase_id'] = undefined; - -/** - * The ID of a group on a project board - * @member {Number} group_id - */ -ProjectPutPlanItemBodyObject.prototype['group_id'] = undefined; - - - - - - -export default ProjectPutPlanItemBodyObject; - diff --git a/src/model/ProjectResponseObject.js b/src/model/ProjectResponseObject.js deleted file mode 100644 index c66c7ca7..00000000 --- a/src/model/ProjectResponseObject.js +++ /dev/null @@ -1,348 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FullProjectObject from './FullProjectObject'; -import ProjectId from './ProjectId'; - -/** - * The ProjectResponseObject model module. - * @module model/ProjectResponseObject - * @version 1.0.0 - */ -class ProjectResponseObject { - /** - * Constructs a new ProjectResponseObject. - * @alias module:model/ProjectResponseObject - * @implements module:model/ProjectId - * @implements module:model/FullProjectObject - */ - constructor() { - ProjectId.initialize(this);FullProjectObject.initialize(this); - ProjectResponseObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ProjectResponseObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ProjectResponseObject} obj Optional instance to populate. - * @return {module:model/ProjectResponseObject} The populated ProjectResponseObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ProjectResponseObject(); - ProjectId.constructFromObject(data, obj); - FullProjectObject.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('board_id')) { - obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); - - delete data['board_id']; - } - if (data.hasOwnProperty('phase_id')) { - obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); - - delete data['phase_id']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('start_date')) { - obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); - - delete data['start_date']; - } - if (data.hasOwnProperty('end_date')) { - obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); - - delete data['end_date']; - } - if (data.hasOwnProperty('deal_ids')) { - obj['deal_ids'] = ApiClient.convertToType(data['deal_ids'], ['Number']); - - delete data['deal_ids']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('labels')) { - obj['labels'] = ApiClient.convertToType(data['labels'], ['Number']); - - delete data['labels']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('status_change_time')) { - obj['status_change_time'] = ApiClient.convertToType(data['status_change_time'], 'String'); - - delete data['status_change_time']; - } - if (data.hasOwnProperty('archive_time')) { - obj['archive_time'] = ApiClient.convertToType(data['archive_time'], 'String'); - - delete data['archive_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the project, generated when the task was created - * @member {Number} id - */ -ProjectResponseObject.prototype['id'] = undefined; - -/** - * The title of the project - * @member {String} title - */ -ProjectResponseObject.prototype['title'] = undefined; - -/** - * The ID of the board this project is associated with - * @member {Number} board_id - */ -ProjectResponseObject.prototype['board_id'] = undefined; - -/** - * The ID of the phase this project is associated with - * @member {Number} phase_id - */ -ProjectResponseObject.prototype['phase_id'] = undefined; - -/** - * The description of the project - * @member {String} description - */ -ProjectResponseObject.prototype['description'] = undefined; - -/** - * The status of the project - * @member {String} status - */ -ProjectResponseObject.prototype['status'] = undefined; - -/** - * The ID of a project owner - * @member {Number} owner_id - */ -ProjectResponseObject.prototype['owner_id'] = undefined; - -/** - * The start date of the project. Format: YYYY-MM-DD. - * @member {Date} start_date - */ -ProjectResponseObject.prototype['start_date'] = undefined; - -/** - * The end date of the project. Format: YYYY-MM-DD. - * @member {Date} end_date - */ -ProjectResponseObject.prototype['end_date'] = undefined; - -/** - * An array of IDs of the deals this project is associated with - * @member {Array.} deal_ids - */ -ProjectResponseObject.prototype['deal_ids'] = undefined; - -/** - * The ID of the organization this project is associated with - * @member {Number} org_id - */ -ProjectResponseObject.prototype['org_id'] = undefined; - -/** - * The ID of the person this project is associated with - * @member {Number} person_id - */ -ProjectResponseObject.prototype['person_id'] = undefined; - -/** - * An array of IDs of the labels this project has - * @member {Array.} labels - */ -ProjectResponseObject.prototype['labels'] = undefined; - -/** - * The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -ProjectResponseObject.prototype['add_time'] = undefined; - -/** - * The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -ProjectResponseObject.prototype['update_time'] = undefined; - -/** - * The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} status_change_time - */ -ProjectResponseObject.prototype['status_change_time'] = undefined; - -/** - * The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. - * @member {String} archive_time - */ -ProjectResponseObject.prototype['archive_time'] = undefined; - - -// Implement ProjectId interface: -/** - * The ID of the project, generated when the task was created - * @member {Number} id - */ -ProjectId.prototype['id'] = undefined; -// Implement FullProjectObject interface: -/** - * The title of the project - * @member {String} title - */ -FullProjectObject.prototype['title'] = undefined; -/** - * The ID of the board this project is associated with - * @member {Number} board_id - */ -FullProjectObject.prototype['board_id'] = undefined; -/** - * The ID of the phase this project is associated with - * @member {Number} phase_id - */ -FullProjectObject.prototype['phase_id'] = undefined; -/** - * The description of the project - * @member {String} description - */ -FullProjectObject.prototype['description'] = undefined; -/** - * The status of the project - * @member {String} status - */ -FullProjectObject.prototype['status'] = undefined; -/** - * The ID of a project owner - * @member {Number} owner_id - */ -FullProjectObject.prototype['owner_id'] = undefined; -/** - * The start date of the project. Format: YYYY-MM-DD. - * @member {Date} start_date - */ -FullProjectObject.prototype['start_date'] = undefined; -/** - * The end date of the project. Format: YYYY-MM-DD. - * @member {Date} end_date - */ -FullProjectObject.prototype['end_date'] = undefined; -/** - * An array of IDs of the deals this project is associated with - * @member {Array.} deal_ids - */ -FullProjectObject.prototype['deal_ids'] = undefined; -/** - * The ID of the organization this project is associated with - * @member {Number} org_id - */ -FullProjectObject.prototype['org_id'] = undefined; -/** - * The ID of the person this project is associated with - * @member {Number} person_id - */ -FullProjectObject.prototype['person_id'] = undefined; -/** - * An array of IDs of the labels this project has - * @member {Array.} labels - */ -FullProjectObject.prototype['labels'] = undefined; -/** - * The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -FullProjectObject.prototype['add_time'] = undefined; -/** - * The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -FullProjectObject.prototype['update_time'] = undefined; -/** - * The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} status_change_time - */ -FullProjectObject.prototype['status_change_time'] = undefined; -/** - * The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then 'null'. - * @member {String} archive_time - */ -FullProjectObject.prototype['archive_time'] = undefined; - - - - -export default ProjectResponseObject; - diff --git a/src/model/PutRole.js b/src/model/PutRole.js deleted file mode 100644 index 42cd523f..00000000 --- a/src/model/PutRole.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import PutRoleAllOf from './PutRoleAllOf'; -import PutRoleAllOfData from './PutRoleAllOfData'; - -/** - * The PutRole model module. - * @module model/PutRole - * @version 1.0.0 - */ -class PutRole { - /** - * Constructs a new PutRole. - * @alias module:model/PutRole - * @implements module:model/BaseResponse - * @implements module:model/PutRoleAllOf - */ - constructor() { - BaseResponse.initialize(this);PutRoleAllOf.initialize(this); - PutRole.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PutRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PutRole} obj Optional instance to populate. - * @return {module:model/PutRole} The populated PutRole instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PutRole(); - BaseResponse.constructFromObject(data, obj); - PutRoleAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = PutRoleAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -PutRole.prototype['success'] = undefined; - -/** - * @member {module:model/PutRoleAllOfData} data - */ -PutRole.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement PutRoleAllOf interface: -/** - * @member {module:model/PutRoleAllOfData} data - */ -PutRoleAllOf.prototype['data'] = undefined; - - - - -export default PutRole; - diff --git a/src/model/PutRoleAllOf.js b/src/model/PutRoleAllOf.js deleted file mode 100644 index 32c8f09e..00000000 --- a/src/model/PutRoleAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PutRoleAllOfData from './PutRoleAllOfData'; - -/** - * The PutRoleAllOf model module. - * @module model/PutRoleAllOf - * @version 1.0.0 - */ -class PutRoleAllOf { - /** - * Constructs a new PutRoleAllOf. - * @alias module:model/PutRoleAllOf - */ - constructor() { - - PutRoleAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PutRoleAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PutRoleAllOf} obj Optional instance to populate. - * @return {module:model/PutRoleAllOf} The populated PutRoleAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PutRoleAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = PutRoleAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/PutRoleAllOfData} data - */ -PutRoleAllOf.prototype['data'] = undefined; - - - - - - -export default PutRoleAllOf; - diff --git a/src/model/PutRoleAllOfData.js b/src/model/PutRoleAllOfData.js deleted file mode 100644 index ee29ec24..00000000 --- a/src/model/PutRoleAllOfData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PutRoleAllOfData model module. - * @module model/PutRoleAllOfData - * @version 1.0.0 - */ -class PutRoleAllOfData { - /** - * Constructs a new PutRoleAllOfData. - * The response data - * @alias module:model/PutRoleAllOfData - */ - constructor() { - - PutRoleAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a PutRoleAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PutRoleAllOfData} obj Optional instance to populate. - * @return {module:model/PutRoleAllOfData} The populated PutRoleAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PutRoleAllOfData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the updated role - * @member {Number} id - */ -PutRoleAllOfData.prototype['id'] = undefined; - - - - - - -export default PutRoleAllOfData; - diff --git a/src/model/PutRolePipelinesBody.js b/src/model/PutRolePipelinesBody.js deleted file mode 100644 index 2794e61e..00000000 --- a/src/model/PutRolePipelinesBody.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PutRolePipelinesBody model module. - * @module model/PutRolePipelinesBody - * @version 1.0.0 - */ -class PutRolePipelinesBody { - /** - * Constructs a new PutRolePipelinesBody. - * @alias module:model/PutRolePipelinesBody - * @param visiblePipelineIds {Object} The pipeline IDs to make the pipelines visible (add) and/or hidden (remove) for the specified role. It requires the following JSON structure: `{ \"add\": \"[1]\", \"remove\": \"[3, 4]\" }`. - */ - constructor(visiblePipelineIds) { - - PutRolePipelinesBody.initialize(this, visiblePipelineIds); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, visiblePipelineIds) { - obj['visible_pipeline_ids'] = visiblePipelineIds; - } - - /** - * Constructs a PutRolePipelinesBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/PutRolePipelinesBody} obj Optional instance to populate. - * @return {module:model/PutRolePipelinesBody} The populated PutRolePipelinesBody instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PutRolePipelinesBody(); - - if (data.hasOwnProperty('visible_pipeline_ids')) { - obj['visible_pipeline_ids'] = ApiClient.convertToType(data['visible_pipeline_ids'], Object); - - delete data['visible_pipeline_ids']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The pipeline IDs to make the pipelines visible (add) and/or hidden (remove) for the specified role. It requires the following JSON structure: `{ \"add\": \"[1]\", \"remove\": \"[3, 4]\" }`. - * @member {Object} visible_pipeline_ids - */ -PutRolePipelinesBody.prototype['visible_pipeline_ids'] = undefined; - - - - - - -export default PutRolePipelinesBody; - diff --git a/src/model/RecentDataProduct.js b/src/model/RecentDataProduct.js deleted file mode 100644 index 8ccd33cb..00000000 --- a/src/model/RecentDataProduct.js +++ /dev/null @@ -1,245 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RecentDataProduct model module. - * @module model/RecentDataProduct - * @version 1.0.0 - */ -class RecentDataProduct { - /** - * Constructs a new RecentDataProduct. - * @alias module:model/RecentDataProduct - */ - constructor() { - - RecentDataProduct.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentDataProduct from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentDataProduct} obj Optional instance to populate. - * @return {module:model/RecentDataProduct} The populated RecentDataProduct instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentDataProduct(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); - - delete data['unit']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('category')) { - obj['category'] = ApiClient.convertToType(data['category'], 'String'); - - delete data['category']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('selectable')) { - obj['selectable'] = ApiClient.convertToType(data['selectable'], 'Boolean'); - - delete data['selectable']; - } - if (data.hasOwnProperty('first_char')) { - obj['first_char'] = ApiClient.convertToType(data['first_char'], 'String'); - - delete data['first_char']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], 'Number'); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('files_count')) { - obj['files_count'] = ApiClient.convertToType(data['files_count'], 'Number'); - - delete data['files_count']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], [Object]); - - delete data['prices']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product - * @member {Number} id - */ -RecentDataProduct.prototype['id'] = undefined; - -/** - * The name of the product - * @member {String} name - */ -RecentDataProduct.prototype['name'] = undefined; - -/** - * The product code - * @member {String} code - */ -RecentDataProduct.prototype['code'] = undefined; - -/** - * The description of the product - * @member {String} description - */ -RecentDataProduct.prototype['description'] = undefined; - -/** - * The unit in which this product is sold - * @member {String} unit - */ -RecentDataProduct.prototype['unit'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -RecentDataProduct.prototype['tax'] = 0; - -/** - * The category of the product - * @member {String} category - */ -RecentDataProduct.prototype['category'] = undefined; - -/** - * Whether this product will be made active or not - * @member {Boolean} active_flag - */ -RecentDataProduct.prototype['active_flag'] = undefined; - -/** - * Whether this product can be selected in deals or not - * @member {Boolean} selectable - */ -RecentDataProduct.prototype['selectable'] = undefined; - -/** - * The first letter of the product name - * @member {String} first_char - */ -RecentDataProduct.prototype['first_char'] = undefined; - -/** - * The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. - * @member {Number} visible_to - */ -RecentDataProduct.prototype['visible_to'] = undefined; - -/** - * The ID of the user who will be marked as the owner of this product. When omitted, authorized user ID will be used. - * @member {Number} owner_id - */ -RecentDataProduct.prototype['owner_id'] = undefined; - -/** - * The count of files - * @member {Number} files_count - */ -RecentDataProduct.prototype['files_count'] = undefined; - -/** - * The date and time when the product was added to the deal - * @member {String} add_time - */ -RecentDataProduct.prototype['add_time'] = undefined; - -/** - * The date and time when the product was updated to the deal - * @member {String} update_time - */ -RecentDataProduct.prototype['update_time'] = undefined; - -/** - * Array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned. - * @member {Array.} prices - */ -RecentDataProduct.prototype['prices'] = undefined; - - - - - - -export default RecentDataProduct; - diff --git a/src/model/RecentsActivity.js b/src/model/RecentsActivity.js deleted file mode 100644 index dfc4ed67..00000000 --- a/src/model/RecentsActivity.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityResponseObject from './ActivityResponseObject'; - -/** - * The RecentsActivity model module. - * @module model/RecentsActivity - * @version 1.0.0 - */ -class RecentsActivity { - /** - * Constructs a new RecentsActivity. - * @alias module:model/RecentsActivity - */ - constructor() { - - RecentsActivity.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsActivity from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsActivity} obj Optional instance to populate. - * @return {module:model/RecentsActivity} The populated RecentsActivity instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsActivity(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsActivity.ItemEnum} item - */ -RecentsActivity.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsActivity.prototype['id'] = undefined; - -/** - * @member {module:model/ActivityResponseObject} data - */ -RecentsActivity.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsActivity['ItemEnum'] = { - - /** - * value: "activity" - * @const - */ - "activity": "activity" -}; - - - -export default RecentsActivity; - diff --git a/src/model/RecentsActivityType.js b/src/model/RecentsActivityType.js deleted file mode 100644 index 54f2ef9d..00000000 --- a/src/model/RecentsActivityType.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityTypeObjectResponse from './ActivityTypeObjectResponse'; - -/** - * The RecentsActivityType model module. - * @module model/RecentsActivityType - * @version 1.0.0 - */ -class RecentsActivityType { - /** - * Constructs a new RecentsActivityType. - * @alias module:model/RecentsActivityType - */ - constructor() { - - RecentsActivityType.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsActivityType from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsActivityType} obj Optional instance to populate. - * @return {module:model/RecentsActivityType} The populated RecentsActivityType instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsActivityType(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityTypeObjectResponse.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsActivityType.ItemEnum} item - */ -RecentsActivityType.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsActivityType.prototype['id'] = undefined; - -/** - * @member {module:model/ActivityTypeObjectResponse} data - */ -RecentsActivityType.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsActivityType['ItemEnum'] = { - - /** - * value: "activityType" - * @const - */ - "activityType": "activityType" -}; - - - -export default RecentsActivityType; - diff --git a/src/model/RecentsDeal.js b/src/model/RecentsDeal.js deleted file mode 100644 index 34d9a11e..00000000 --- a/src/model/RecentsDeal.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import DealStrict from './DealStrict'; - -/** - * The RecentsDeal model module. - * @module model/RecentsDeal - * @version 1.0.0 - */ -class RecentsDeal { - /** - * Constructs a new RecentsDeal. - * @alias module:model/RecentsDeal - */ - constructor() { - - RecentsDeal.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsDeal from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsDeal} obj Optional instance to populate. - * @return {module:model/RecentsDeal} The populated RecentsDeal instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsDeal(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = DealStrict.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsDeal.ItemEnum} item - */ -RecentsDeal.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsDeal.prototype['id'] = undefined; - -/** - * @member {module:model/DealStrict} data - */ -RecentsDeal.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsDeal['ItemEnum'] = { - - /** - * value: "deal" - * @const - */ - "deal": "deal" -}; - - - -export default RecentsDeal; - diff --git a/src/model/RecentsFile.js b/src/model/RecentsFile.js deleted file mode 100644 index 4f305c1d..00000000 --- a/src/model/RecentsFile.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FileItem from './FileItem'; - -/** - * The RecentsFile model module. - * @module model/RecentsFile - * @version 1.0.0 - */ -class RecentsFile { - /** - * Constructs a new RecentsFile. - * @alias module:model/RecentsFile - */ - constructor() { - - RecentsFile.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsFile from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsFile} obj Optional instance to populate. - * @return {module:model/RecentsFile} The populated RecentsFile instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsFile(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FileItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsFile.ItemEnum} item - */ -RecentsFile.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsFile.prototype['id'] = undefined; - -/** - * @member {module:model/FileItem} data - */ -RecentsFile.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsFile['ItemEnum'] = { - - /** - * value: "file" - * @const - */ - "file": "file" -}; - - - -export default RecentsFile; - diff --git a/src/model/RecentsFilter.js b/src/model/RecentsFilter.js deleted file mode 100644 index 0bf908cb..00000000 --- a/src/model/RecentsFilter.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FilterGetItem from './FilterGetItem'; - -/** - * The RecentsFilter model module. - * @module model/RecentsFilter - * @version 1.0.0 - */ -class RecentsFilter { - /** - * Constructs a new RecentsFilter. - * @alias module:model/RecentsFilter - */ - constructor() { - - RecentsFilter.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsFilter from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsFilter} obj Optional instance to populate. - * @return {module:model/RecentsFilter} The populated RecentsFilter instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsFilter(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FilterGetItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsFilter.ItemEnum} item - */ -RecentsFilter.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsFilter.prototype['id'] = undefined; - -/** - * @member {module:model/FilterGetItem} data - */ -RecentsFilter.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsFilter['ItemEnum'] = { - - /** - * value: "filter" - * @const - */ - "filter": "filter" -}; - - - -export default RecentsFilter; - diff --git a/src/model/RecentsNote.js b/src/model/RecentsNote.js deleted file mode 100644 index e4725248..00000000 --- a/src/model/RecentsNote.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseNote from './BaseNote'; - -/** - * The RecentsNote model module. - * @module model/RecentsNote - * @version 1.0.0 - */ -class RecentsNote { - /** - * Constructs a new RecentsNote. - * @alias module:model/RecentsNote - */ - constructor() { - - RecentsNote.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsNote from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsNote} obj Optional instance to populate. - * @return {module:model/RecentsNote} The populated RecentsNote instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsNote(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseNote.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsNote.ItemEnum} item - */ -RecentsNote.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsNote.prototype['id'] = undefined; - -/** - * @member {module:model/BaseNote} data - */ -RecentsNote.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsNote['ItemEnum'] = { - - /** - * value: "note" - * @const - */ - "note": "note" -}; - - - -export default RecentsNote; - diff --git a/src/model/RecentsOrganization.js b/src/model/RecentsOrganization.js deleted file mode 100644 index d63f2618..00000000 --- a/src/model/RecentsOrganization.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseOrganizationItem from './BaseOrganizationItem'; - -/** - * The RecentsOrganization model module. - * @module model/RecentsOrganization - * @version 1.0.0 - */ -class RecentsOrganization { - /** - * Constructs a new RecentsOrganization. - * @alias module:model/RecentsOrganization - */ - constructor() { - - RecentsOrganization.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsOrganization from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsOrganization} obj Optional instance to populate. - * @return {module:model/RecentsOrganization} The populated RecentsOrganization instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsOrganization(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseOrganizationItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsOrganization.ItemEnum} item - */ -RecentsOrganization.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsOrganization.prototype['id'] = undefined; - -/** - * @member {module:model/BaseOrganizationItem} data - */ -RecentsOrganization.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsOrganization['ItemEnum'] = { - - /** - * value: "organization" - * @const - */ - "organization": "organization" -}; - - - -export default RecentsOrganization; - diff --git a/src/model/RecentsPerson.js b/src/model/RecentsPerson.js deleted file mode 100644 index cf7ea01c..00000000 --- a/src/model/RecentsPerson.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import MergePersonItem from './MergePersonItem'; - -/** - * The RecentsPerson model module. - * @module model/RecentsPerson - * @version 1.0.0 - */ -class RecentsPerson { - /** - * Constructs a new RecentsPerson. - * @alias module:model/RecentsPerson - */ - constructor() { - - RecentsPerson.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsPerson from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsPerson} obj Optional instance to populate. - * @return {module:model/RecentsPerson} The populated RecentsPerson instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsPerson(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = MergePersonItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsPerson.ItemEnum} item - */ -RecentsPerson.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsPerson.prototype['id'] = undefined; - -/** - * @member {module:model/MergePersonItem} data - */ -RecentsPerson.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsPerson['ItemEnum'] = { - - /** - * value: "person" - * @const - */ - "person": "person" -}; - - - -export default RecentsPerson; - diff --git a/src/model/RecentsPipeline.js b/src/model/RecentsPipeline.js deleted file mode 100644 index b323c38d..00000000 --- a/src/model/RecentsPipeline.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePipeline from './BasePipeline'; - -/** - * The RecentsPipeline model module. - * @module model/RecentsPipeline - * @version 1.0.0 - */ -class RecentsPipeline { - /** - * Constructs a new RecentsPipeline. - * @alias module:model/RecentsPipeline - */ - constructor() { - - RecentsPipeline.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsPipeline from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsPipeline} obj Optional instance to populate. - * @return {module:model/RecentsPipeline} The populated RecentsPipeline instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsPipeline(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BasePipeline.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsPipeline.ItemEnum} item - */ -RecentsPipeline.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsPipeline.prototype['id'] = undefined; - -/** - * @member {module:model/BasePipeline} data - */ -RecentsPipeline.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsPipeline['ItemEnum'] = { - - /** - * value: "pipeline" - * @const - */ - "pipeline": "pipeline" -}; - - - -export default RecentsPipeline; - diff --git a/src/model/RecentsProduct.js b/src/model/RecentsProduct.js deleted file mode 100644 index 7d9c9271..00000000 --- a/src/model/RecentsProduct.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RecentDataProduct from './RecentDataProduct'; - -/** - * The RecentsProduct model module. - * @module model/RecentsProduct - * @version 1.0.0 - */ -class RecentsProduct { - /** - * Constructs a new RecentsProduct. - * @alias module:model/RecentsProduct - */ - constructor() { - - RecentsProduct.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsProduct from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsProduct} obj Optional instance to populate. - * @return {module:model/RecentsProduct} The populated RecentsProduct instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsProduct(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = RecentDataProduct.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsProduct.ItemEnum} item - */ -RecentsProduct.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsProduct.prototype['id'] = undefined; - -/** - * @member {module:model/RecentDataProduct} data - */ -RecentsProduct.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsProduct['ItemEnum'] = { - - /** - * value: "product" - * @const - */ - "product": "product" -}; - - - -export default RecentsProduct; - diff --git a/src/model/RecentsStage.js b/src/model/RecentsStage.js deleted file mode 100644 index 9c918089..00000000 --- a/src/model/RecentsStage.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseStage from './BaseStage'; - -/** - * The RecentsStage model module. - * @module model/RecentsStage - * @version 1.0.0 - */ -class RecentsStage { - /** - * Constructs a new RecentsStage. - * @alias module:model/RecentsStage - */ - constructor() { - - RecentsStage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsStage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsStage} obj Optional instance to populate. - * @return {module:model/RecentsStage} The populated RecentsStage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsStage(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseStage.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsStage.ItemEnum} item - */ -RecentsStage.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsStage.prototype['id'] = undefined; - -/** - * @member {module:model/BaseStage} data - */ -RecentsStage.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsStage['ItemEnum'] = { - - /** - * value: "stage" - * @const - */ - "stage": "stage" -}; - - - -export default RecentsStage; - diff --git a/src/model/RecentsUser.js b/src/model/RecentsUser.js deleted file mode 100644 index 248e6d40..00000000 --- a/src/model/RecentsUser.js +++ /dev/null @@ -1,114 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseUser from './BaseUser'; - -/** - * The RecentsUser model module. - * @module model/RecentsUser - * @version 1.0.0 - */ -class RecentsUser { - /** - * Constructs a new RecentsUser. - * @alias module:model/RecentsUser - */ - constructor() { - - RecentsUser.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RecentsUser from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RecentsUser} obj Optional instance to populate. - * @return {module:model/RecentsUser} The populated RecentsUser instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RecentsUser(); - - if (data.hasOwnProperty('item')) { - obj['item'] = ApiClient.convertToType(data['item'], 'String'); - - delete data['item']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseUser.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RecentsUser.ItemEnum} item - */ -RecentsUser.prototype['item'] = undefined; - -/** - * @member {Number} id - */ -RecentsUser.prototype['id'] = undefined; - -/** - * @member {module:model/BaseUser} data - */ -RecentsUser.prototype['data'] = undefined; - - - - - -/** - * Allowed values for the item property. - * @enum {String} - * @readonly - */ -RecentsUser['ItemEnum'] = { - - /** - * value: "user" - * @const - */ - "user": "user" -}; - - - -export default RecentsUser; - diff --git a/src/model/RelatedDealData.js b/src/model/RelatedDealData.js deleted file mode 100644 index 131fcb39..00000000 --- a/src/model/RelatedDealData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RelatedDealDataDEALID from './RelatedDealDataDEALID'; - -/** - * The RelatedDealData model module. - * @module model/RelatedDealData - * @version 1.0.0 - */ -class RelatedDealData { - /** - * Constructs a new RelatedDealData. - * @alias module:model/RelatedDealData - */ - constructor() { - - RelatedDealData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelatedDealData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelatedDealData} obj Optional instance to populate. - * @return {module:model/RelatedDealData} The populated RelatedDealData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelatedDealData(); - - if (data.hasOwnProperty('DEAL_ID')) { - obj['DEAL_ID'] = RelatedDealDataDEALID.constructFromObject(data['DEAL_ID']); - - delete data['DEAL_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RelatedDealDataDEALID} DEAL_ID - */ -RelatedDealData.prototype['DEAL_ID'] = undefined; - - - - - - -export default RelatedDealData; - diff --git a/src/model/RelatedDealDataDEALID.js b/src/model/RelatedDealDataDEALID.js deleted file mode 100644 index de2c3f3f..00000000 --- a/src/model/RelatedDealDataDEALID.js +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RelatedDealDataDEALID model module. - * @module model/RelatedDealDataDEALID - * @version 1.0.0 - */ -class RelatedDealDataDEALID { - /** - * Constructs a new RelatedDealDataDEALID. - * The ID of the deal which is associated with the item - * @alias module:model/RelatedDealDataDEALID - */ - constructor() { - - RelatedDealDataDEALID.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelatedDealDataDEALID from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelatedDealDataDEALID} obj Optional instance to populate. - * @return {module:model/RelatedDealDataDEALID} The populated RelatedDealDataDEALID instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelatedDealDataDEALID(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal associated with the item - * @member {Number} id - */ -RelatedDealDataDEALID.prototype['id'] = undefined; - -/** - * The title of the deal associated with the item - * @member {String} title - */ -RelatedDealDataDEALID.prototype['title'] = undefined; - -/** - * The status of the deal associated with the item - * @member {String} status - */ -RelatedDealDataDEALID.prototype['status'] = undefined; - -/** - * The value of the deal that is associated with the item - * @member {Number} value - */ -RelatedDealDataDEALID.prototype['value'] = undefined; - -/** - * The currency of the deal value - * @member {String} currency - */ -RelatedDealDataDEALID.prototype['currency'] = undefined; - -/** - * The ID of the stage the deal is currently at - * @member {Number} stage_id - */ -RelatedDealDataDEALID.prototype['stage_id'] = undefined; - -/** - * The ID of the pipeline the deal is in - * @member {Number} pipeline_id - */ -RelatedDealDataDEALID.prototype['pipeline_id'] = undefined; - - - - - - -export default RelatedDealDataDEALID; - diff --git a/src/model/RelatedFollowerData.js b/src/model/RelatedFollowerData.js deleted file mode 100644 index 98499231..00000000 --- a/src/model/RelatedFollowerData.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FollowerDataWithID from './FollowerDataWithID'; - -/** - * The RelatedFollowerData model module. - * @module model/RelatedFollowerData - * @version 1.0.0 - */ -class RelatedFollowerData { - /** - * Constructs a new RelatedFollowerData. - * The follower that is associated with the item - * @alias module:model/RelatedFollowerData - */ - constructor() { - - RelatedFollowerData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelatedFollowerData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelatedFollowerData} obj Optional instance to populate. - * @return {module:model/RelatedFollowerData} The populated RelatedFollowerData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelatedFollowerData(); - - if (data.hasOwnProperty('FOLLOWER_USER_ID')) { - obj['FOLLOWER_USER_ID'] = ApiClient.convertToType(data['FOLLOWER_USER_ID'], FollowerDataWithID); - - delete data['FOLLOWER_USER_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The user ID of the follower - * @member {module:model/FollowerDataWithID} FOLLOWER_USER_ID - */ -RelatedFollowerData.prototype['FOLLOWER_USER_ID'] = undefined; - - - - - - -export default RelatedFollowerData; - diff --git a/src/model/RelatedOrganizationData.js b/src/model/RelatedOrganizationData.js deleted file mode 100644 index bf5b6e39..00000000 --- a/src/model/RelatedOrganizationData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationDataWithId from './OrganizationDataWithId'; - -/** - * The RelatedOrganizationData model module. - * @module model/RelatedOrganizationData - * @version 1.0.0 - */ -class RelatedOrganizationData { - /** - * Constructs a new RelatedOrganizationData. - * @alias module:model/RelatedOrganizationData - */ - constructor() { - - RelatedOrganizationData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelatedOrganizationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelatedOrganizationData} obj Optional instance to populate. - * @return {module:model/RelatedOrganizationData} The populated RelatedOrganizationData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelatedOrganizationData(); - - if (data.hasOwnProperty('ORGANIZATION_ID')) { - obj['ORGANIZATION_ID'] = OrganizationDataWithId.constructFromObject(data['ORGANIZATION_ID']); - - delete data['ORGANIZATION_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/OrganizationDataWithId} ORGANIZATION_ID - */ -RelatedOrganizationData.prototype['ORGANIZATION_ID'] = undefined; - - - - - - -export default RelatedOrganizationData; - diff --git a/src/model/RelatedOrganizationDataWithActiveFlag.js b/src/model/RelatedOrganizationDataWithActiveFlag.js deleted file mode 100644 index a43a7a4b..00000000 --- a/src/model/RelatedOrganizationDataWithActiveFlag.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationDataWithIdAndActiveFlag from './OrganizationDataWithIdAndActiveFlag'; - -/** - * The RelatedOrganizationDataWithActiveFlag model module. - * @module model/RelatedOrganizationDataWithActiveFlag - * @version 1.0.0 - */ -class RelatedOrganizationDataWithActiveFlag { - /** - * Constructs a new RelatedOrganizationDataWithActiveFlag. - * @alias module:model/RelatedOrganizationDataWithActiveFlag - */ - constructor() { - - RelatedOrganizationDataWithActiveFlag.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelatedOrganizationDataWithActiveFlag from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelatedOrganizationDataWithActiveFlag} obj Optional instance to populate. - * @return {module:model/RelatedOrganizationDataWithActiveFlag} The populated RelatedOrganizationDataWithActiveFlag instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelatedOrganizationDataWithActiveFlag(); - - if (data.hasOwnProperty('ORGANIZATION_ID')) { - obj['ORGANIZATION_ID'] = OrganizationDataWithIdAndActiveFlag.constructFromObject(data['ORGANIZATION_ID']); - - delete data['ORGANIZATION_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/OrganizationDataWithIdAndActiveFlag} ORGANIZATION_ID - */ -RelatedOrganizationDataWithActiveFlag.prototype['ORGANIZATION_ID'] = undefined; - - - - - - -export default RelatedOrganizationDataWithActiveFlag; - diff --git a/src/model/RelatedOrganizationName.js b/src/model/RelatedOrganizationName.js deleted file mode 100644 index 9a94bd25..00000000 --- a/src/model/RelatedOrganizationName.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RelatedOrganizationName model module. - * @module model/RelatedOrganizationName - * @version 1.0.0 - */ -class RelatedOrganizationName { - /** - * Constructs a new RelatedOrganizationName. - * @alias module:model/RelatedOrganizationName - */ - constructor() { - - RelatedOrganizationName.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelatedOrganizationName from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelatedOrganizationName} obj Optional instance to populate. - * @return {module:model/RelatedOrganizationName} The populated RelatedOrganizationName instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelatedOrganizationName(); - - if (data.hasOwnProperty('related_organization_name')) { - obj['related_organization_name'] = ApiClient.convertToType(data['related_organization_name'], 'String'); - - delete data['related_organization_name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the linked organization - * @member {String} related_organization_name - */ -RelatedOrganizationName.prototype['related_organization_name'] = undefined; - - - - - - -export default RelatedOrganizationName; - diff --git a/src/model/RelatedPersonData.js b/src/model/RelatedPersonData.js deleted file mode 100644 index 0a7b49d1..00000000 --- a/src/model/RelatedPersonData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PersonData from './PersonData'; - -/** - * The RelatedPersonData model module. - * @module model/RelatedPersonData - * @version 1.0.0 - */ -class RelatedPersonData { - /** - * Constructs a new RelatedPersonData. - * @alias module:model/RelatedPersonData - */ - constructor() { - - RelatedPersonData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelatedPersonData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelatedPersonData} obj Optional instance to populate. - * @return {module:model/RelatedPersonData} The populated RelatedPersonData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelatedPersonData(); - - if (data.hasOwnProperty('PERSON_ID')) { - obj['PERSON_ID'] = ApiClient.convertToType(data['PERSON_ID'], PersonData); - - delete data['PERSON_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the person associated with the item - * @member {module:model/PersonData} PERSON_ID - */ -RelatedPersonData.prototype['PERSON_ID'] = undefined; - - - - - - -export default RelatedPersonData; - diff --git a/src/model/RelatedPersonDataWithActiveFlag.js b/src/model/RelatedPersonDataWithActiveFlag.js deleted file mode 100644 index b53686b9..00000000 --- a/src/model/RelatedPersonDataWithActiveFlag.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PersonDataWithActiveFlag from './PersonDataWithActiveFlag'; - -/** - * The RelatedPersonDataWithActiveFlag model module. - * @module model/RelatedPersonDataWithActiveFlag - * @version 1.0.0 - */ -class RelatedPersonDataWithActiveFlag { - /** - * Constructs a new RelatedPersonDataWithActiveFlag. - * @alias module:model/RelatedPersonDataWithActiveFlag - */ - constructor() { - - RelatedPersonDataWithActiveFlag.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelatedPersonDataWithActiveFlag from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelatedPersonDataWithActiveFlag} obj Optional instance to populate. - * @return {module:model/RelatedPersonDataWithActiveFlag} The populated RelatedPersonDataWithActiveFlag instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelatedPersonDataWithActiveFlag(); - - if (data.hasOwnProperty('PERSON_ID')) { - obj['PERSON_ID'] = PersonDataWithActiveFlag.constructFromObject(data['PERSON_ID']); - - delete data['PERSON_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/PersonDataWithActiveFlag} PERSON_ID - */ -RelatedPersonDataWithActiveFlag.prototype['PERSON_ID'] = undefined; - - - - - - -export default RelatedPersonDataWithActiveFlag; - diff --git a/src/model/RelatedPictureData.js b/src/model/RelatedPictureData.js deleted file mode 100644 index fe14fa7a..00000000 --- a/src/model/RelatedPictureData.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PictureDataWithID from './PictureDataWithID'; - -/** - * The RelatedPictureData model module. - * @module model/RelatedPictureData - * @version 1.0.0 - */ -class RelatedPictureData { - /** - * Constructs a new RelatedPictureData. - * The picture that is associated with the item - * @alias module:model/RelatedPictureData - */ - constructor() { - - RelatedPictureData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelatedPictureData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelatedPictureData} obj Optional instance to populate. - * @return {module:model/RelatedPictureData} The populated RelatedPictureData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelatedPictureData(); - - if (data.hasOwnProperty('PICTURE_ID')) { - obj['PICTURE_ID'] = ApiClient.convertToType(data['PICTURE_ID'], PictureDataWithID); - - delete data['PICTURE_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the picture - * @member {module:model/PictureDataWithID} PICTURE_ID - */ -RelatedPictureData.prototype['PICTURE_ID'] = undefined; - - - - - - -export default RelatedPictureData; - diff --git a/src/model/RelatedUserData.js b/src/model/RelatedUserData.js deleted file mode 100644 index 5ffed296..00000000 --- a/src/model/RelatedUserData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import UserDataWithId from './UserDataWithId'; - -/** - * The RelatedUserData model module. - * @module model/RelatedUserData - * @version 1.0.0 - */ -class RelatedUserData { - /** - * Constructs a new RelatedUserData. - * @alias module:model/RelatedUserData - */ - constructor() { - - RelatedUserData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelatedUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelatedUserData} obj Optional instance to populate. - * @return {module:model/RelatedUserData} The populated RelatedUserData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelatedUserData(); - - if (data.hasOwnProperty('USER_ID')) { - obj['USER_ID'] = UserDataWithId.constructFromObject(data['USER_ID']); - - delete data['USER_ID']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/UserDataWithId} USER_ID - */ -RelatedUserData.prototype['USER_ID'] = undefined; - - - - - - -export default RelatedUserData; - diff --git a/src/model/RelationshipOrganizationInfoItem.js b/src/model/RelationshipOrganizationInfoItem.js deleted file mode 100644 index 7dac4bfb..00000000 --- a/src/model/RelationshipOrganizationInfoItem.js +++ /dev/null @@ -1,172 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationData from './OrganizationData'; -import RelationshipOrganizationInfoItemAllOf from './RelationshipOrganizationInfoItemAllOf'; - -/** - * The RelationshipOrganizationInfoItem model module. - * @module model/RelationshipOrganizationInfoItem - * @version 1.0.0 - */ -class RelationshipOrganizationInfoItem { - /** - * Constructs a new RelationshipOrganizationInfoItem. - * @alias module:model/RelationshipOrganizationInfoItem - * @implements module:model/OrganizationData - * @implements module:model/RelationshipOrganizationInfoItemAllOf - */ - constructor() { - OrganizationData.initialize(this);RelationshipOrganizationInfoItemAllOf.initialize(this); - RelationshipOrganizationInfoItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelationshipOrganizationInfoItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelationshipOrganizationInfoItem} obj Optional instance to populate. - * @return {module:model/RelationshipOrganizationInfoItem} The populated RelationshipOrganizationInfoItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelationshipOrganizationInfoItem(); - OrganizationData.constructFromObject(data, obj); - RelationshipOrganizationInfoItemAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the organization associated with the item - * @member {String} name - */ -RelationshipOrganizationInfoItem.prototype['name'] = undefined; - -/** - * The number of people connected with the organization that is associated with the item - * @member {Number} people_count - */ -RelationshipOrganizationInfoItem.prototype['people_count'] = undefined; - -/** - * The ID of the owner of the organization that is associated with the item - * @member {Number} owner_id - */ -RelationshipOrganizationInfoItem.prototype['owner_id'] = undefined; - -/** - * The address of the organization - * @member {String} address - */ -RelationshipOrganizationInfoItem.prototype['address'] = undefined; - -/** - * The BCC email of the organization associated with the item - * @member {String} cc_email - */ -RelationshipOrganizationInfoItem.prototype['cc_email'] = undefined; - -/** - * The ID of the organization - * @member {Number} value - */ -RelationshipOrganizationInfoItem.prototype['value'] = undefined; - - -// Implement OrganizationData interface: -/** - * The name of the organization associated with the item - * @member {String} name - */ -OrganizationData.prototype['name'] = undefined; -/** - * The number of people connected with the organization that is associated with the item - * @member {Number} people_count - */ -OrganizationData.prototype['people_count'] = undefined; -/** - * The ID of the owner of the organization that is associated with the item - * @member {Number} owner_id - */ -OrganizationData.prototype['owner_id'] = undefined; -/** - * The address of the organization - * @member {String} address - */ -OrganizationData.prototype['address'] = undefined; -/** - * The BCC email of the organization associated with the item - * @member {String} cc_email - */ -OrganizationData.prototype['cc_email'] = undefined; -// Implement RelationshipOrganizationInfoItemAllOf interface: -/** - * The ID of the organization - * @member {Number} value - */ -RelationshipOrganizationInfoItemAllOf.prototype['value'] = undefined; - - - - -export default RelationshipOrganizationInfoItem; - diff --git a/src/model/RelationshipOrganizationInfoItemAllOf.js b/src/model/RelationshipOrganizationInfoItemAllOf.js deleted file mode 100644 index 48473954..00000000 --- a/src/model/RelationshipOrganizationInfoItemAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RelationshipOrganizationInfoItemAllOf model module. - * @module model/RelationshipOrganizationInfoItemAllOf - * @version 1.0.0 - */ -class RelationshipOrganizationInfoItemAllOf { - /** - * Constructs a new RelationshipOrganizationInfoItemAllOf. - * @alias module:model/RelationshipOrganizationInfoItemAllOf - */ - constructor() { - - RelationshipOrganizationInfoItemAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelationshipOrganizationInfoItemAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelationshipOrganizationInfoItemAllOf} obj Optional instance to populate. - * @return {module:model/RelationshipOrganizationInfoItemAllOf} The populated RelationshipOrganizationInfoItemAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelationshipOrganizationInfoItemAllOf(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the organization - * @member {Number} value - */ -RelationshipOrganizationInfoItemAllOf.prototype['value'] = undefined; - - - - - - -export default RelationshipOrganizationInfoItemAllOf; - diff --git a/src/model/RelationshipOrganizationInfoItemWithActiveFlag.js b/src/model/RelationshipOrganizationInfoItemWithActiveFlag.js deleted file mode 100644 index 88555a9a..00000000 --- a/src/model/RelationshipOrganizationInfoItemWithActiveFlag.js +++ /dev/null @@ -1,188 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OrganizationDataWithIdAndActiveFlagAllOf from './OrganizationDataWithIdAndActiveFlagAllOf'; -import RelationshipOrganizationInfoItem from './RelationshipOrganizationInfoItem'; - -/** - * The RelationshipOrganizationInfoItemWithActiveFlag model module. - * @module model/RelationshipOrganizationInfoItemWithActiveFlag - * @version 1.0.0 - */ -class RelationshipOrganizationInfoItemWithActiveFlag { - /** - * Constructs a new RelationshipOrganizationInfoItemWithActiveFlag. - * @alias module:model/RelationshipOrganizationInfoItemWithActiveFlag - * @implements module:model/RelationshipOrganizationInfoItem - * @implements module:model/OrganizationDataWithIdAndActiveFlagAllOf - */ - constructor() { - RelationshipOrganizationInfoItem.initialize(this);OrganizationDataWithIdAndActiveFlagAllOf.initialize(this); - RelationshipOrganizationInfoItemWithActiveFlag.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RelationshipOrganizationInfoItemWithActiveFlag from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RelationshipOrganizationInfoItemWithActiveFlag} obj Optional instance to populate. - * @return {module:model/RelationshipOrganizationInfoItemWithActiveFlag} The populated RelationshipOrganizationInfoItemWithActiveFlag instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RelationshipOrganizationInfoItemWithActiveFlag(); - RelationshipOrganizationInfoItem.constructFromObject(data, obj); - OrganizationDataWithIdAndActiveFlagAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('people_count')) { - obj['people_count'] = ApiClient.convertToType(data['people_count'], 'Number'); - - delete data['people_count']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - - delete data['address']; - } - if (data.hasOwnProperty('cc_email')) { - obj['cc_email'] = ApiClient.convertToType(data['cc_email'], 'String'); - - delete data['cc_email']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - - delete data['value']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the organization associated with the item - * @member {String} name - */ -RelationshipOrganizationInfoItemWithActiveFlag.prototype['name'] = undefined; - -/** - * The number of people connected with the organization that is associated with the item - * @member {Number} people_count - */ -RelationshipOrganizationInfoItemWithActiveFlag.prototype['people_count'] = undefined; - -/** - * The ID of the owner of the organization that is associated with the item - * @member {Number} owner_id - */ -RelationshipOrganizationInfoItemWithActiveFlag.prototype['owner_id'] = undefined; - -/** - * The address of the organization - * @member {String} address - */ -RelationshipOrganizationInfoItemWithActiveFlag.prototype['address'] = undefined; - -/** - * The BCC email of the organization associated with the item - * @member {String} cc_email - */ -RelationshipOrganizationInfoItemWithActiveFlag.prototype['cc_email'] = undefined; - -/** - * The ID of the organization - * @member {Number} value - */ -RelationshipOrganizationInfoItemWithActiveFlag.prototype['value'] = undefined; - -/** - * Whether the associated organization is active or not - * @member {Boolean} active_flag - */ -RelationshipOrganizationInfoItemWithActiveFlag.prototype['active_flag'] = undefined; - - -// Implement RelationshipOrganizationInfoItem interface: -/** - * The name of the organization associated with the item - * @member {String} name - */ -RelationshipOrganizationInfoItem.prototype['name'] = undefined; -/** - * The number of people connected with the organization that is associated with the item - * @member {Number} people_count - */ -RelationshipOrganizationInfoItem.prototype['people_count'] = undefined; -/** - * The ID of the owner of the organization that is associated with the item - * @member {Number} owner_id - */ -RelationshipOrganizationInfoItem.prototype['owner_id'] = undefined; -/** - * The address of the organization - * @member {String} address - */ -RelationshipOrganizationInfoItem.prototype['address'] = undefined; -/** - * The BCC email of the organization associated with the item - * @member {String} cc_email - */ -RelationshipOrganizationInfoItem.prototype['cc_email'] = undefined; -/** - * The ID of the organization - * @member {Number} value - */ -RelationshipOrganizationInfoItem.prototype['value'] = undefined; -// Implement OrganizationDataWithIdAndActiveFlagAllOf interface: -/** - * Whether the associated organization is active or not - * @member {Boolean} active_flag - */ -OrganizationDataWithIdAndActiveFlagAllOf.prototype['active_flag'] = undefined; - - - - -export default RelationshipOrganizationInfoItemWithActiveFlag; - diff --git a/src/model/RequiredNameObject.js b/src/model/RequiredNameObject.js deleted file mode 100644 index ce03a69a..00000000 --- a/src/model/RequiredNameObject.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RequiredNameObject model module. - * @module model/RequiredNameObject - * @version 1.0.0 - */ -class RequiredNameObject { - /** - * Constructs a new RequiredNameObject. - * @alias module:model/RequiredNameObject - * @param name {String} The name of the product - */ - constructor(name) { - - RequiredNameObject.initialize(this, name); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name) { - obj['name'] = name; - } - - /** - * Constructs a RequiredNameObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequiredNameObject} obj Optional instance to populate. - * @return {module:model/RequiredNameObject} The populated RequiredNameObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RequiredNameObject(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the product - * @member {String} name - */ -RequiredNameObject.prototype['name'] = undefined; - - - - - - -export default RequiredNameObject; - diff --git a/src/model/RequiredPostProjectParameters.js b/src/model/RequiredPostProjectParameters.js deleted file mode 100644 index d582b767..00000000 --- a/src/model/RequiredPostProjectParameters.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RequiredPostProjectParameters model module. - * @module model/RequiredPostProjectParameters - * @version 1.0.0 - */ -class RequiredPostProjectParameters { - /** - * Constructs a new RequiredPostProjectParameters. - * @alias module:model/RequiredPostProjectParameters - * @param title {String} The title of the project - * @param boardId {Number} The ID of a project board - * @param phaseId {Number} The ID of a phase on a project board - */ - constructor(title, boardId, phaseId) { - - RequiredPostProjectParameters.initialize(this, title, boardId, phaseId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, title, boardId, phaseId) { - obj['title'] = title; - obj['board_id'] = boardId; - obj['phase_id'] = phaseId; - } - - /** - * Constructs a RequiredPostProjectParameters from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequiredPostProjectParameters} obj Optional instance to populate. - * @return {module:model/RequiredPostProjectParameters} The populated RequiredPostProjectParameters instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RequiredPostProjectParameters(); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('board_id')) { - obj['board_id'] = ApiClient.convertToType(data['board_id'], 'Number'); - - delete data['board_id']; - } - if (data.hasOwnProperty('phase_id')) { - obj['phase_id'] = ApiClient.convertToType(data['phase_id'], 'Number'); - - delete data['phase_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the project - * @member {String} title - */ -RequiredPostProjectParameters.prototype['title'] = undefined; - -/** - * The ID of a project board - * @member {Number} board_id - */ -RequiredPostProjectParameters.prototype['board_id'] = undefined; - -/** - * The ID of a phase on a project board - * @member {Number} phase_id - */ -RequiredPostProjectParameters.prototype['phase_id'] = undefined; - - - - - - -export default RequiredPostProjectParameters; - diff --git a/src/model/RequiredPostTaskParameters.js b/src/model/RequiredPostTaskParameters.js deleted file mode 100644 index fbb8dac1..00000000 --- a/src/model/RequiredPostTaskParameters.js +++ /dev/null @@ -1,94 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RequiredPostTaskParameters model module. - * @module model/RequiredPostTaskParameters - * @version 1.0.0 - */ -class RequiredPostTaskParameters { - /** - * Constructs a new RequiredPostTaskParameters. - * @alias module:model/RequiredPostTaskParameters - * @param title {String} The title of the task - * @param projectId {Number} The ID of a project - */ - constructor(title, projectId) { - - RequiredPostTaskParameters.initialize(this, title, projectId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, title, projectId) { - obj['title'] = title; - obj['project_id'] = projectId; - } - - /** - * Constructs a RequiredPostTaskParameters from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequiredPostTaskParameters} obj Optional instance to populate. - * @return {module:model/RequiredPostTaskParameters} The populated RequiredPostTaskParameters instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RequiredPostTaskParameters(); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('project_id')) { - obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); - - delete data['project_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the task - * @member {String} title - */ -RequiredPostTaskParameters.prototype['title'] = undefined; - -/** - * The ID of a project - * @member {Number} project_id - */ -RequiredPostTaskParameters.prototype['project_id'] = undefined; - - - - - - -export default RequiredPostTaskParameters; - diff --git a/src/model/RequredTitleParameter.js b/src/model/RequredTitleParameter.js deleted file mode 100644 index ac3ca740..00000000 --- a/src/model/RequredTitleParameter.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RequredTitleParameter model module. - * @module model/RequredTitleParameter - * @version 1.0.0 - */ -class RequredTitleParameter { - /** - * Constructs a new RequredTitleParameter. - * @alias module:model/RequredTitleParameter - * @param title {String} The title of the deal - */ - constructor(title) { - - RequredTitleParameter.initialize(this, title); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, title) { - obj['title'] = title; - } - - /** - * Constructs a RequredTitleParameter from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RequredTitleParameter} obj Optional instance to populate. - * @return {module:model/RequredTitleParameter} The populated RequredTitleParameter instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RequredTitleParameter(); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the deal - * @member {String} title - */ -RequredTitleParameter.prototype['title'] = undefined; - - - - - - -export default RequredTitleParameter; - diff --git a/src/model/ResponseCallLogObject.js b/src/model/ResponseCallLogObject.js deleted file mode 100644 index 9bdd79e7..00000000 --- a/src/model/ResponseCallLogObject.js +++ /dev/null @@ -1,401 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import CallLogObject from './CallLogObject'; -import ResponseCallLogObjectAllOf from './ResponseCallLogObjectAllOf'; - -/** - * The ResponseCallLogObject model module. - * @module model/ResponseCallLogObject - * @version 1.0.0 - */ -class ResponseCallLogObject { - /** - * Constructs a new ResponseCallLogObject. - * @alias module:model/ResponseCallLogObject - * @implements module:model/CallLogObject - * @implements module:model/ResponseCallLogObjectAllOf - * @param outcome {module:model/ResponseCallLogObject.OutcomeEnum} Describes the outcome of the call - * @param toPhoneNumber {String} The number called - * @param startTime {Date} The date and time of the start of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @param endTime {Date} The date and time of the end of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. - */ - constructor(outcome, toPhoneNumber, startTime, endTime) { - CallLogObject.initialize(this, outcome, toPhoneNumber, startTime, endTime);ResponseCallLogObjectAllOf.initialize(this); - ResponseCallLogObject.initialize(this, outcome, toPhoneNumber, startTime, endTime); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, outcome, toPhoneNumber, startTime, endTime) { - obj['outcome'] = outcome; - obj['to_phone_number'] = toPhoneNumber; - obj['start_time'] = startTime; - obj['end_time'] = endTime; - } - - /** - * Constructs a ResponseCallLogObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ResponseCallLogObject} obj Optional instance to populate. - * @return {module:model/ResponseCallLogObject} The populated ResponseCallLogObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ResponseCallLogObject(); - CallLogObject.constructFromObject(data, obj); - ResponseCallLogObjectAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('activity_id')) { - obj['activity_id'] = ApiClient.convertToType(data['activity_id'], 'Number'); - - delete data['activity_id']; - } - if (data.hasOwnProperty('subject')) { - obj['subject'] = ApiClient.convertToType(data['subject'], 'String'); - - delete data['subject']; - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'String'); - - delete data['duration']; - } - if (data.hasOwnProperty('outcome')) { - obj['outcome'] = ApiClient.convertToType(data['outcome'], 'String'); - - delete data['outcome']; - } - if (data.hasOwnProperty('from_phone_number')) { - obj['from_phone_number'] = ApiClient.convertToType(data['from_phone_number'], 'String'); - - delete data['from_phone_number']; - } - if (data.hasOwnProperty('to_phone_number')) { - obj['to_phone_number'] = ApiClient.convertToType(data['to_phone_number'], 'String'); - - delete data['to_phone_number']; - } - if (data.hasOwnProperty('start_time')) { - obj['start_time'] = ApiClient.convertToType(data['start_time'], 'Date'); - - delete data['start_time']; - } - if (data.hasOwnProperty('end_time')) { - obj['end_time'] = ApiClient.convertToType(data['end_time'], 'Date'); - - delete data['end_time']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('note')) { - obj['note'] = ApiClient.convertToType(data['note'], 'String'); - - delete data['note']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - if (data.hasOwnProperty('has_recording')) { - obj['has_recording'] = ApiClient.convertToType(data['has_recording'], 'Boolean'); - - delete data['has_recording']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the owner of the call log. Please note that a user without account settings access cannot create call logs for other users. - * @member {Number} user_id - */ -ResponseCallLogObject.prototype['user_id'] = undefined; - -/** - * If specified, this activity will be converted into a call log, with the information provided. When this field is used, you don't need to specify `deal_id`, `person_id` or `org_id`, as they will be ignored in favor of the values already available in the activity. The `activity_id` must refer to a `call` type activity. - * @member {Number} activity_id - */ -ResponseCallLogObject.prototype['activity_id'] = undefined; - -/** - * The name of the activity this call is attached to - * @member {String} subject - */ -ResponseCallLogObject.prototype['subject'] = undefined; - -/** - * The duration of the call in seconds - * @member {String} duration - */ -ResponseCallLogObject.prototype['duration'] = undefined; - -/** - * Describes the outcome of the call - * @member {module:model/ResponseCallLogObject.OutcomeEnum} outcome - */ -ResponseCallLogObject.prototype['outcome'] = undefined; - -/** - * The number that made the call - * @member {String} from_phone_number - */ -ResponseCallLogObject.prototype['from_phone_number'] = undefined; - -/** - * The number called - * @member {String} to_phone_number - */ -ResponseCallLogObject.prototype['to_phone_number'] = undefined; - -/** - * The date and time of the start of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {Date} start_time - */ -ResponseCallLogObject.prototype['start_time'] = undefined; - -/** - * The date and time of the end of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {Date} end_time - */ -ResponseCallLogObject.prototype['end_time'] = undefined; - -/** - * The ID of the person this call is associated with - * @member {Number} person_id - */ -ResponseCallLogObject.prototype['person_id'] = undefined; - -/** - * The ID of the organization this call is associated with - * @member {Number} org_id - */ -ResponseCallLogObject.prototype['org_id'] = undefined; - -/** - * The ID of the deal this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. - * @member {Number} deal_id - */ -ResponseCallLogObject.prototype['deal_id'] = undefined; - -/** - * The ID of the lead in the UUID format this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. - * @member {String} lead_id - */ -ResponseCallLogObject.prototype['lead_id'] = undefined; - -/** - * The note for the call log in HTML format - * @member {String} note - */ -ResponseCallLogObject.prototype['note'] = undefined; - -/** - * The call log ID, generated when the call log was created - * @member {String} id - */ -ResponseCallLogObject.prototype['id'] = undefined; - -/** - * If the call log has an audio recording attached, the value should be true - * @member {Boolean} has_recording - */ -ResponseCallLogObject.prototype['has_recording'] = undefined; - -/** - * The company ID of the owner of the call log - * @member {Number} company_id - */ -ResponseCallLogObject.prototype['company_id'] = undefined; - - -// Implement CallLogObject interface: -/** - * The ID of the owner of the call log. Please note that a user without account settings access cannot create call logs for other users. - * @member {Number} user_id - */ -CallLogObject.prototype['user_id'] = undefined; -/** - * If specified, this activity will be converted into a call log, with the information provided. When this field is used, you don't need to specify `deal_id`, `person_id` or `org_id`, as they will be ignored in favor of the values already available in the activity. The `activity_id` must refer to a `call` type activity. - * @member {Number} activity_id - */ -CallLogObject.prototype['activity_id'] = undefined; -/** - * The name of the activity this call is attached to - * @member {String} subject - */ -CallLogObject.prototype['subject'] = undefined; -/** - * The duration of the call in seconds - * @member {String} duration - */ -CallLogObject.prototype['duration'] = undefined; -/** - * Describes the outcome of the call - * @member {module:model/CallLogObject.OutcomeEnum} outcome - */ -CallLogObject.prototype['outcome'] = undefined; -/** - * The number that made the call - * @member {String} from_phone_number - */ -CallLogObject.prototype['from_phone_number'] = undefined; -/** - * The number called - * @member {String} to_phone_number - */ -CallLogObject.prototype['to_phone_number'] = undefined; -/** - * The date and time of the start of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {Date} start_time - */ -CallLogObject.prototype['start_time'] = undefined; -/** - * The date and time of the end of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {Date} end_time - */ -CallLogObject.prototype['end_time'] = undefined; -/** - * The ID of the person this call is associated with - * @member {Number} person_id - */ -CallLogObject.prototype['person_id'] = undefined; -/** - * The ID of the organization this call is associated with - * @member {Number} org_id - */ -CallLogObject.prototype['org_id'] = undefined; -/** - * The ID of the deal this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. - * @member {Number} deal_id - */ -CallLogObject.prototype['deal_id'] = undefined; -/** - * The ID of the lead in the UUID format this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. - * @member {String} lead_id - */ -CallLogObject.prototype['lead_id'] = undefined; -/** - * The note for the call log in HTML format - * @member {String} note - */ -CallLogObject.prototype['note'] = undefined; -// Implement ResponseCallLogObjectAllOf interface: -/** - * The call log ID, generated when the call log was created - * @member {String} id - */ -ResponseCallLogObjectAllOf.prototype['id'] = undefined; -/** - * If the call log has an audio recording attached, the value should be true - * @member {Boolean} has_recording - */ -ResponseCallLogObjectAllOf.prototype['has_recording'] = undefined; -/** - * The company ID of the owner of the call log - * @member {Number} company_id - */ -ResponseCallLogObjectAllOf.prototype['company_id'] = undefined; - - - -/** - * Allowed values for the outcome property. - * @enum {String} - * @readonly - */ -ResponseCallLogObject['OutcomeEnum'] = { - - /** - * value: "connected" - * @const - */ - "connected": "connected", - - /** - * value: "no_answer" - * @const - */ - "no_answer": "no_answer", - - /** - * value: "left_message" - * @const - */ - "left_message": "left_message", - - /** - * value: "left_voicemail" - * @const - */ - "left_voicemail": "left_voicemail", - - /** - * value: "wrong_number" - * @const - */ - "wrong_number": "wrong_number", - - /** - * value: "busy" - * @const - */ - "busy": "busy" -}; - - - -export default ResponseCallLogObject; - diff --git a/src/model/ResponseCallLogObjectAllOf.js b/src/model/ResponseCallLogObjectAllOf.js deleted file mode 100644 index 752e53e6..00000000 --- a/src/model/ResponseCallLogObjectAllOf.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ResponseCallLogObjectAllOf model module. - * @module model/ResponseCallLogObjectAllOf - * @version 1.0.0 - */ -class ResponseCallLogObjectAllOf { - /** - * Constructs a new ResponseCallLogObjectAllOf. - * @alias module:model/ResponseCallLogObjectAllOf - */ - constructor() { - - ResponseCallLogObjectAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ResponseCallLogObjectAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ResponseCallLogObjectAllOf} obj Optional instance to populate. - * @return {module:model/ResponseCallLogObjectAllOf} The populated ResponseCallLogObjectAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ResponseCallLogObjectAllOf(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - if (data.hasOwnProperty('has_recording')) { - obj['has_recording'] = ApiClient.convertToType(data['has_recording'], 'Boolean'); - - delete data['has_recording']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The call log ID, generated when the call log was created - * @member {String} id - */ -ResponseCallLogObjectAllOf.prototype['id'] = undefined; - -/** - * If the call log has an audio recording attached, the value should be true - * @member {Boolean} has_recording - */ -ResponseCallLogObjectAllOf.prototype['has_recording'] = undefined; - -/** - * The company ID of the owner of the call log - * @member {Number} company_id - */ -ResponseCallLogObjectAllOf.prototype['company_id'] = undefined; - - - - - - -export default ResponseCallLogObjectAllOf; - diff --git a/src/model/RoleAssignment.js b/src/model/RoleAssignment.js deleted file mode 100644 index 6673b226..00000000 --- a/src/model/RoleAssignment.js +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseRole from './BaseRole'; -import RoleAssignmentAllOf from './RoleAssignmentAllOf'; - -/** - * The RoleAssignment model module. - * @module model/RoleAssignment - * @version 1.0.0 - */ -class RoleAssignment { - /** - * Constructs a new RoleAssignment. - * The assignment data of the role - * @alias module:model/RoleAssignment - * @implements module:model/BaseRole - * @implements module:model/RoleAssignmentAllOf - */ - constructor() { - BaseRole.initialize(this);RoleAssignmentAllOf.initialize(this); - RoleAssignment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RoleAssignment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RoleAssignment} obj Optional instance to populate. - * @return {module:model/RoleAssignment} The populated RoleAssignment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RoleAssignment(); - BaseRole.constructFromObject(data, obj); - RoleAssignmentAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('parent_role_id')) { - obj['parent_role_id'] = ApiClient.convertToType(data['parent_role_id'], 'Number'); - - delete data['parent_role_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('role_id')) { - obj['role_id'] = ApiClient.convertToType(data['role_id'], 'Number'); - - delete data['role_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the parent role - * @member {Number} parent_role_id - */ -RoleAssignment.prototype['parent_role_id'] = undefined; - -/** - * The name of the role - * @member {String} name - */ -RoleAssignment.prototype['name'] = undefined; - -/** - * The user ID - * @member {Number} user_id - */ -RoleAssignment.prototype['user_id'] = undefined; - -/** - * The role ID - * @member {Number} role_id - */ -RoleAssignment.prototype['role_id'] = undefined; - -/** - * Whether the role is active or not - * @member {Boolean} active_flag - */ -RoleAssignment.prototype['active_flag'] = undefined; - -/** - * The assignment type - * @member {String} type - */ -RoleAssignment.prototype['type'] = undefined; - - -// Implement BaseRole interface: -/** - * The ID of the parent role - * @member {Number} parent_role_id - */ -BaseRole.prototype['parent_role_id'] = undefined; -/** - * The name of the role - * @member {String} name - */ -BaseRole.prototype['name'] = undefined; -// Implement RoleAssignmentAllOf interface: -/** - * The user ID - * @member {Number} user_id - */ -RoleAssignmentAllOf.prototype['user_id'] = undefined; -/** - * The role ID - * @member {Number} role_id - */ -RoleAssignmentAllOf.prototype['role_id'] = undefined; -/** - * Whether the role is active or not - * @member {Boolean} active_flag - */ -RoleAssignmentAllOf.prototype['active_flag'] = undefined; -/** - * The assignment type - * @member {String} type - */ -RoleAssignmentAllOf.prototype['type'] = undefined; - - - - -export default RoleAssignment; - diff --git a/src/model/RoleAssignmentAllOf.js b/src/model/RoleAssignmentAllOf.js deleted file mode 100644 index b86e23a5..00000000 --- a/src/model/RoleAssignmentAllOf.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RoleAssignmentAllOf model module. - * @module model/RoleAssignmentAllOf - * @version 1.0.0 - */ -class RoleAssignmentAllOf { - /** - * Constructs a new RoleAssignmentAllOf. - * @alias module:model/RoleAssignmentAllOf - */ - constructor() { - - RoleAssignmentAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RoleAssignmentAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RoleAssignmentAllOf} obj Optional instance to populate. - * @return {module:model/RoleAssignmentAllOf} The populated RoleAssignmentAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RoleAssignmentAllOf(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('role_id')) { - obj['role_id'] = ApiClient.convertToType(data['role_id'], 'Number'); - - delete data['role_id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The user ID - * @member {Number} user_id - */ -RoleAssignmentAllOf.prototype['user_id'] = undefined; - -/** - * The role ID - * @member {Number} role_id - */ -RoleAssignmentAllOf.prototype['role_id'] = undefined; - -/** - * Whether the role is active or not - * @member {Boolean} active_flag - */ -RoleAssignmentAllOf.prototype['active_flag'] = undefined; - -/** - * The assignment type - * @member {String} type - */ -RoleAssignmentAllOf.prototype['type'] = undefined; - - - - - - -export default RoleAssignmentAllOf; - diff --git a/src/model/RoleSettings.js b/src/model/RoleSettings.js deleted file mode 100644 index a1eb225b..00000000 --- a/src/model/RoleSettings.js +++ /dev/null @@ -1,168 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RoleSettings model module. - * @module model/RoleSettings - * @version 1.0.0 - */ -class RoleSettings { - /** - * Constructs a new RoleSettings. - * The settings for the role - * @alias module:model/RoleSettings - */ - constructor() { - - RoleSettings.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RoleSettings from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RoleSettings} obj Optional instance to populate. - * @return {module:model/RoleSettings} The populated RoleSettings instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RoleSettings(); - - if (data.hasOwnProperty('deal_default_visibility')) { - obj['deal_default_visibility'] = ApiClient.convertToType(data['deal_default_visibility'], 'Number'); - - delete data['deal_default_visibility']; - } - if (data.hasOwnProperty('lead_default_visibility')) { - obj['lead_default_visibility'] = ApiClient.convertToType(data['lead_default_visibility'], 'Number'); - - delete data['lead_default_visibility']; - } - if (data.hasOwnProperty('org_default_visibility')) { - obj['org_default_visibility'] = ApiClient.convertToType(data['org_default_visibility'], 'Number'); - - delete data['org_default_visibility']; - } - if (data.hasOwnProperty('person_default_visibility')) { - obj['person_default_visibility'] = ApiClient.convertToType(data['person_default_visibility'], 'Number'); - - delete data['person_default_visibility']; - } - if (data.hasOwnProperty('product_default_visibility')) { - obj['product_default_visibility'] = ApiClient.convertToType(data['product_default_visibility'], 'Number'); - - delete data['product_default_visibility']; - } - if (data.hasOwnProperty('deal_access_level')) { - obj['deal_access_level'] = ApiClient.convertToType(data['deal_access_level'], 'Number'); - - delete data['deal_access_level']; - } - if (data.hasOwnProperty('org_access_level')) { - obj['org_access_level'] = ApiClient.convertToType(data['org_access_level'], 'Number'); - - delete data['org_access_level']; - } - if (data.hasOwnProperty('person_access_level')) { - obj['person_access_level'] = ApiClient.convertToType(data['person_access_level'], 'Number'); - - delete data['person_access_level']; - } - if (data.hasOwnProperty('product_access_level')) { - obj['product_access_level'] = ApiClient.convertToType(data['product_access_level'], 'Number'); - - delete data['product_access_level']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The default visibility level of the deals for the role - * @member {Number} deal_default_visibility - */ -RoleSettings.prototype['deal_default_visibility'] = undefined; - -/** - * The default visibility level of the leads for the role - * @member {Number} lead_default_visibility - */ -RoleSettings.prototype['lead_default_visibility'] = undefined; - -/** - * The default visibility level of the organizations for the role - * @member {Number} org_default_visibility - */ -RoleSettings.prototype['org_default_visibility'] = undefined; - -/** - * The default visibility level of the people for the role - * @member {Number} person_default_visibility - */ -RoleSettings.prototype['person_default_visibility'] = undefined; - -/** - * The default visibility level of the products for the role - * @member {Number} product_default_visibility - */ -RoleSettings.prototype['product_default_visibility'] = undefined; - -/** - * The access level of the deals for the role (only for default role) - * @member {Number} deal_access_level - */ -RoleSettings.prototype['deal_access_level'] = undefined; - -/** - * The access level of the organizations for the role (only for default role) - * @member {Number} org_access_level - */ -RoleSettings.prototype['org_access_level'] = undefined; - -/** - * The access level of the people for the role (only for default role) - * @member {Number} person_access_level - */ -RoleSettings.prototype['person_access_level'] = undefined; - -/** - * The access level of the products for the role (only for default role) - * @member {Number} product_access_level - */ -RoleSettings.prototype['product_access_level'] = undefined; - - - - - - -export default RoleSettings; - diff --git a/src/model/RolesAdditionalData.js b/src/model/RolesAdditionalData.js deleted file mode 100644 index cab40d36..00000000 --- a/src/model/RolesAdditionalData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RolesAdditionalDataPagination from './RolesAdditionalDataPagination'; - -/** - * The RolesAdditionalData model module. - * @module model/RolesAdditionalData - * @version 1.0.0 - */ -class RolesAdditionalData { - /** - * Constructs a new RolesAdditionalData. - * The additional data in the role list - * @alias module:model/RolesAdditionalData - */ - constructor() { - - RolesAdditionalData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RolesAdditionalData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RolesAdditionalData} obj Optional instance to populate. - * @return {module:model/RolesAdditionalData} The populated RolesAdditionalData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RolesAdditionalData(); - - if (data.hasOwnProperty('pagination')) { - obj['pagination'] = RolesAdditionalDataPagination.constructFromObject(data['pagination']); - - delete data['pagination']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/RolesAdditionalDataPagination} pagination - */ -RolesAdditionalData.prototype['pagination'] = undefined; - - - - - - -export default RolesAdditionalData; - diff --git a/src/model/RolesAdditionalDataPagination.js b/src/model/RolesAdditionalDataPagination.js deleted file mode 100644 index 3d567845..00000000 --- a/src/model/RolesAdditionalDataPagination.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RolesAdditionalDataPagination model module. - * @module model/RolesAdditionalDataPagination - * @version 1.0.0 - */ -class RolesAdditionalDataPagination { - /** - * Constructs a new RolesAdditionalDataPagination. - * The pagination details in the role list - * @alias module:model/RolesAdditionalDataPagination - */ - constructor() { - - RolesAdditionalDataPagination.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RolesAdditionalDataPagination from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RolesAdditionalDataPagination} obj Optional instance to populate. - * @return {module:model/RolesAdditionalDataPagination} The populated RolesAdditionalDataPagination instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RolesAdditionalDataPagination(); - - if (data.hasOwnProperty('start')) { - obj['start'] = ApiClient.convertToType(data['start'], 'Number'); - - delete data['start']; - } - if (data.hasOwnProperty('limit')) { - obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); - - delete data['limit']; - } - if (data.hasOwnProperty('more_items_in_collection')) { - obj['more_items_in_collection'] = ApiClient.convertToType(data['more_items_in_collection'], 'Boolean'); - - delete data['more_items_in_collection']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Pagination start - * @member {Number} start - */ -RolesAdditionalDataPagination.prototype['start'] = undefined; - -/** - * Items shown per page - * @member {Number} limit - */ -RolesAdditionalDataPagination.prototype['limit'] = undefined; - -/** - * Whether there are more list items in the collection than displayed - * @member {Boolean} more_items_in_collection - */ -RolesAdditionalDataPagination.prototype['more_items_in_collection'] = undefined; - - - - - - -export default RolesAdditionalDataPagination; - diff --git a/src/model/SinglePermissionSetsItem.js b/src/model/SinglePermissionSetsItem.js deleted file mode 100644 index adbf4048..00000000 --- a/src/model/SinglePermissionSetsItem.js +++ /dev/null @@ -1,260 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PermissionSetsItem from './PermissionSetsItem'; -import SinglePermissionSetsItemAllOf from './SinglePermissionSetsItemAllOf'; - -/** - * The SinglePermissionSetsItem model module. - * @module model/SinglePermissionSetsItem - * @version 1.0.0 - */ -class SinglePermissionSetsItem { - /** - * Constructs a new SinglePermissionSetsItem. - * @alias module:model/SinglePermissionSetsItem - * @implements module:model/PermissionSetsItem - * @implements module:model/SinglePermissionSetsItemAllOf - */ - constructor() { - PermissionSetsItem.initialize(this);SinglePermissionSetsItemAllOf.initialize(this); - SinglePermissionSetsItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SinglePermissionSetsItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SinglePermissionSetsItem} obj Optional instance to populate. - * @return {module:model/SinglePermissionSetsItem} The populated SinglePermissionSetsItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SinglePermissionSetsItem(); - PermissionSetsItem.constructFromObject(data, obj); - SinglePermissionSetsItemAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('app')) { - obj['app'] = ApiClient.convertToType(data['app'], 'String'); - - delete data['app']; - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - - delete data['type']; - } - if (data.hasOwnProperty('assignment_count')) { - obj['assignment_count'] = ApiClient.convertToType(data['assignment_count'], 'Number'); - - delete data['assignment_count']; - } - if (data.hasOwnProperty('contents')) { - obj['contents'] = ApiClient.convertToType(data['contents'], ['String']); - - delete data['contents']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of user permission set - * @member {String} id - */ -SinglePermissionSetsItem.prototype['id'] = undefined; - -/** - * The name of the permission set - * @member {String} name - */ -SinglePermissionSetsItem.prototype['name'] = undefined; - -/** - * The description of the permission set - * @member {String} description - */ -SinglePermissionSetsItem.prototype['description'] = undefined; - -/** - * The app that permission set belongs to - * @member {module:model/SinglePermissionSetsItem.AppEnum} app - */ -SinglePermissionSetsItem.prototype['app'] = undefined; - -/** - * The type of permission set - * @member {module:model/SinglePermissionSetsItem.TypeEnum} type - */ -SinglePermissionSetsItem.prototype['type'] = undefined; - -/** - * The number of users assigned to this permission set - * @member {Number} assignment_count - */ -SinglePermissionSetsItem.prototype['assignment_count'] = undefined; - -/** - * A permission assigned to this permission set - * @member {Array.} contents - */ -SinglePermissionSetsItem.prototype['contents'] = undefined; - - -// Implement PermissionSetsItem interface: -/** - * The ID of user permission set - * @member {String} id - */ -PermissionSetsItem.prototype['id'] = undefined; -/** - * The name of the permission set - * @member {String} name - */ -PermissionSetsItem.prototype['name'] = undefined; -/** - * The description of the permission set - * @member {String} description - */ -PermissionSetsItem.prototype['description'] = undefined; -/** - * The app that permission set belongs to - * @member {module:model/PermissionSetsItem.AppEnum} app - */ -PermissionSetsItem.prototype['app'] = undefined; -/** - * The type of permission set - * @member {module:model/PermissionSetsItem.TypeEnum} type - */ -PermissionSetsItem.prototype['type'] = undefined; -/** - * The number of users assigned to this permission set - * @member {Number} assignment_count - */ -PermissionSetsItem.prototype['assignment_count'] = undefined; -// Implement SinglePermissionSetsItemAllOf interface: -/** - * A permission assigned to this permission set - * @member {Array.} contents - */ -SinglePermissionSetsItemAllOf.prototype['contents'] = undefined; - - - -/** - * Allowed values for the app property. - * @enum {String} - * @readonly - */ -SinglePermissionSetsItem['AppEnum'] = { - - /** - * value: "sales" - * @const - */ - "sales": "sales", - - /** - * value: "projects" - * @const - */ - "projects": "projects", - - /** - * value: "campaigns" - * @const - */ - "campaigns": "campaigns", - - /** - * value: "global" - * @const - */ - "global": "global", - - /** - * value: "account_settings" - * @const - */ - "account_settings": "account_settings" -}; - - -/** - * Allowed values for the type property. - * @enum {String} - * @readonly - */ -SinglePermissionSetsItem['TypeEnum'] = { - - /** - * value: "admin" - * @const - */ - "admin": "admin", - - /** - * value: "manager" - * @const - */ - "manager": "manager", - - /** - * value: "regular" - * @const - */ - "regular": "regular", - - /** - * value: "custom" - * @const - */ - "custom": "custom" -}; - - - -export default SinglePermissionSetsItem; - diff --git a/src/model/SinglePermissionSetsItemAllOf.js b/src/model/SinglePermissionSetsItemAllOf.js deleted file mode 100644 index 28c34ed1..00000000 --- a/src/model/SinglePermissionSetsItemAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SinglePermissionSetsItemAllOf model module. - * @module model/SinglePermissionSetsItemAllOf - * @version 1.0.0 - */ -class SinglePermissionSetsItemAllOf { - /** - * Constructs a new SinglePermissionSetsItemAllOf. - * @alias module:model/SinglePermissionSetsItemAllOf - */ - constructor() { - - SinglePermissionSetsItemAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SinglePermissionSetsItemAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SinglePermissionSetsItemAllOf} obj Optional instance to populate. - * @return {module:model/SinglePermissionSetsItemAllOf} The populated SinglePermissionSetsItemAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SinglePermissionSetsItemAllOf(); - - if (data.hasOwnProperty('contents')) { - obj['contents'] = ApiClient.convertToType(data['contents'], ['String']); - - delete data['contents']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * A permission assigned to this permission set - * @member {Array.} contents - */ -SinglePermissionSetsItemAllOf.prototype['contents'] = undefined; - - - - - - -export default SinglePermissionSetsItemAllOf; - diff --git a/src/model/Stage.js b/src/model/Stage.js deleted file mode 100644 index 243a8493..00000000 --- a/src/model/Stage.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Stage model module. - * @module model/Stage - * @version 1.0.0 - */ -class Stage { - /** - * Constructs a new Stage. - * @alias module:model/Stage - */ - constructor() { - - Stage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Stage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Stage} obj Optional instance to populate. - * @return {module:model/Stage} The populated Stage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Stage(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('deal_probability')) { - obj['deal_probability'] = ApiClient.convertToType(data['deal_probability'], 'Number'); - - delete data['deal_probability']; - } - if (data.hasOwnProperty('rotten_flag')) { - obj['rotten_flag'] = ApiClient.convertToType(data['rotten_flag'], 'Boolean'); - - delete data['rotten_flag']; - } - if (data.hasOwnProperty('rotten_days')) { - obj['rotten_days'] = ApiClient.convertToType(data['rotten_days'], 'Number'); - - delete data['rotten_days']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the stage - * @member {String} name - */ -Stage.prototype['name'] = undefined; - -/** - * The ID of the pipeline to add stage to - * @member {Number} pipeline_id - */ -Stage.prototype['pipeline_id'] = undefined; - -/** - * The success probability percentage of the deal. Used/shown when deal weighted values are used. - * @member {Number} deal_probability - */ -Stage.prototype['deal_probability'] = undefined; - -/** - * Whether deals in this stage can become rotten - * @member {Boolean} rotten_flag - */ -Stage.prototype['rotten_flag'] = undefined; - -/** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. - * @member {Number} rotten_days - */ -Stage.prototype['rotten_days'] = undefined; - - - - - - -export default Stage; - diff --git a/src/model/StageConversions.js b/src/model/StageConversions.js deleted file mode 100644 index 6baccb23..00000000 --- a/src/model/StageConversions.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The StageConversions model module. - * @module model/StageConversions - * @version 1.0.0 - */ -class StageConversions { - /** - * Constructs a new StageConversions. - * @alias module:model/StageConversions - */ - constructor() { - - StageConversions.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a StageConversions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/StageConversions} obj Optional instance to populate. - * @return {module:model/StageConversions} The populated StageConversions instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new StageConversions(); - - if (data.hasOwnProperty('from_stage_id')) { - obj['from_stage_id'] = ApiClient.convertToType(data['from_stage_id'], 'Number'); - - delete data['from_stage_id']; - } - if (data.hasOwnProperty('to_stage_id')) { - obj['to_stage_id'] = ApiClient.convertToType(data['to_stage_id'], 'Number'); - - delete data['to_stage_id']; - } - if (data.hasOwnProperty('conversion_rate')) { - obj['conversion_rate'] = ApiClient.convertToType(data['conversion_rate'], 'Number'); - - delete data['conversion_rate']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The stage ID from where conversion starts - * @member {Number} from_stage_id - */ -StageConversions.prototype['from_stage_id'] = undefined; - -/** - * The stage ID to where conversion ends - * @member {Number} to_stage_id - */ -StageConversions.prototype['to_stage_id'] = undefined; - -/** - * The conversion rate - * @member {Number} conversion_rate - */ -StageConversions.prototype['conversion_rate'] = undefined; - - - - - - -export default StageConversions; - diff --git a/src/model/StageDetails.js b/src/model/StageDetails.js deleted file mode 100644 index 5e717e6d..00000000 --- a/src/model/StageDetails.js +++ /dev/null @@ -1,252 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseStage from './BaseStage'; -import DealSummary from './DealSummary'; -import PipelineDetailsAllOf from './PipelineDetailsAllOf'; - -/** - * The StageDetails model module. - * @module model/StageDetails - * @version 1.0.0 - */ -class StageDetails { - /** - * Constructs a new StageDetails. - * The stage object - * @alias module:model/StageDetails - * @implements module:model/BaseStage - * @implements module:model/PipelineDetailsAllOf - */ - constructor() { - BaseStage.initialize(this);PipelineDetailsAllOf.initialize(this); - StageDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a StageDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/StageDetails} obj Optional instance to populate. - * @return {module:model/StageDetails} The populated StageDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new StageDetails(); - BaseStage.constructFromObject(data, obj); - PipelineDetailsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('deal_probability')) { - obj['deal_probability'] = ApiClient.convertToType(data['deal_probability'], 'Number'); - - delete data['deal_probability']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('rotten_flag')) { - obj['rotten_flag'] = ApiClient.convertToType(data['rotten_flag'], 'Boolean'); - - delete data['rotten_flag']; - } - if (data.hasOwnProperty('rotten_days')) { - obj['rotten_days'] = ApiClient.convertToType(data['rotten_days'], 'Number'); - - delete data['rotten_days']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('deals_summary')) { - obj['deals_summary'] = DealSummary.constructFromObject(data['deals_summary']); - - delete data['deals_summary']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the stage - * @member {Number} id - */ -StageDetails.prototype['id'] = undefined; - -/** - * Defines the order of the stage - * @member {Number} order_nr - */ -StageDetails.prototype['order_nr'] = undefined; - -/** - * The name of the stage - * @member {String} name - */ -StageDetails.prototype['name'] = undefined; - -/** - * Whether the stage is active or deleted - * @member {Boolean} active_flag - */ -StageDetails.prototype['active_flag'] = undefined; - -/** - * The success probability percentage of the deal. Used/shown when the deal weighted values are used. - * @member {Number} deal_probability - */ -StageDetails.prototype['deal_probability'] = undefined; - -/** - * The ID of the pipeline to add the stage to - * @member {Number} pipeline_id - */ -StageDetails.prototype['pipeline_id'] = undefined; - -/** - * Whether deals in this stage can become rotten - * @member {Boolean} rotten_flag - */ -StageDetails.prototype['rotten_flag'] = undefined; - -/** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. - * @member {Number} rotten_days - */ -StageDetails.prototype['rotten_days'] = undefined; - -/** - * The stage creation time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -StageDetails.prototype['add_time'] = undefined; - -/** - * The stage update time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -StageDetails.prototype['update_time'] = undefined; - -/** - * @member {module:model/DealSummary} deals_summary - */ -StageDetails.prototype['deals_summary'] = undefined; - - -// Implement BaseStage interface: -/** - * The ID of the stage - * @member {Number} id - */ -BaseStage.prototype['id'] = undefined; -/** - * Defines the order of the stage - * @member {Number} order_nr - */ -BaseStage.prototype['order_nr'] = undefined; -/** - * The name of the stage - * @member {String} name - */ -BaseStage.prototype['name'] = undefined; -/** - * Whether the stage is active or deleted - * @member {Boolean} active_flag - */ -BaseStage.prototype['active_flag'] = undefined; -/** - * The success probability percentage of the deal. Used/shown when the deal weighted values are used. - * @member {Number} deal_probability - */ -BaseStage.prototype['deal_probability'] = undefined; -/** - * The ID of the pipeline to add the stage to - * @member {Number} pipeline_id - */ -BaseStage.prototype['pipeline_id'] = undefined; -/** - * Whether deals in this stage can become rotten - * @member {Boolean} rotten_flag - */ -BaseStage.prototype['rotten_flag'] = undefined; -/** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. - * @member {Number} rotten_days - */ -BaseStage.prototype['rotten_days'] = undefined; -/** - * The stage creation time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -BaseStage.prototype['add_time'] = undefined; -/** - * The stage update time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -BaseStage.prototype['update_time'] = undefined; -// Implement PipelineDetailsAllOf interface: -/** - * @member {module:model/DealSummary} deals_summary - */ -PipelineDetailsAllOf.prototype['deals_summary'] = undefined; - - - - -export default StageDetails; - diff --git a/src/model/StageWithPipelineInfo.js b/src/model/StageWithPipelineInfo.js deleted file mode 100644 index b65673d9..00000000 --- a/src/model/StageWithPipelineInfo.js +++ /dev/null @@ -1,268 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseStage from './BaseStage'; -import StageWithPipelineInfoAllOf from './StageWithPipelineInfoAllOf'; - -/** - * The StageWithPipelineInfo model module. - * @module model/StageWithPipelineInfo - * @version 1.0.0 - */ -class StageWithPipelineInfo { - /** - * Constructs a new StageWithPipelineInfo. - * @alias module:model/StageWithPipelineInfo - * @implements module:model/BaseStage - * @implements module:model/StageWithPipelineInfoAllOf - */ - constructor() { - BaseStage.initialize(this);StageWithPipelineInfoAllOf.initialize(this); - StageWithPipelineInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a StageWithPipelineInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/StageWithPipelineInfo} obj Optional instance to populate. - * @return {module:model/StageWithPipelineInfo} The populated StageWithPipelineInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new StageWithPipelineInfo(); - BaseStage.constructFromObject(data, obj); - StageWithPipelineInfoAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('deal_probability')) { - obj['deal_probability'] = ApiClient.convertToType(data['deal_probability'], 'Number'); - - delete data['deal_probability']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('rotten_flag')) { - obj['rotten_flag'] = ApiClient.convertToType(data['rotten_flag'], 'Boolean'); - - delete data['rotten_flag']; - } - if (data.hasOwnProperty('rotten_days')) { - obj['rotten_days'] = ApiClient.convertToType(data['rotten_days'], 'Number'); - - delete data['rotten_days']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('pipeline_name')) { - obj['pipeline_name'] = ApiClient.convertToType(data['pipeline_name'], 'String'); - - delete data['pipeline_name']; - } - if (data.hasOwnProperty('pipeline_deal_probability')) { - obj['pipeline_deal_probability'] = ApiClient.convertToType(data['pipeline_deal_probability'], 'Boolean'); - - delete data['pipeline_deal_probability']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the stage - * @member {Number} id - */ -StageWithPipelineInfo.prototype['id'] = undefined; - -/** - * Defines the order of the stage - * @member {Number} order_nr - */ -StageWithPipelineInfo.prototype['order_nr'] = undefined; - -/** - * The name of the stage - * @member {String} name - */ -StageWithPipelineInfo.prototype['name'] = undefined; - -/** - * Whether the stage is active or deleted - * @member {Boolean} active_flag - */ -StageWithPipelineInfo.prototype['active_flag'] = undefined; - -/** - * The success probability percentage of the deal. Used/shown when the deal weighted values are used. - * @member {Number} deal_probability - */ -StageWithPipelineInfo.prototype['deal_probability'] = undefined; - -/** - * The ID of the pipeline to add the stage to - * @member {Number} pipeline_id - */ -StageWithPipelineInfo.prototype['pipeline_id'] = undefined; - -/** - * Whether deals in this stage can become rotten - * @member {Boolean} rotten_flag - */ -StageWithPipelineInfo.prototype['rotten_flag'] = undefined; - -/** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. - * @member {Number} rotten_days - */ -StageWithPipelineInfo.prototype['rotten_days'] = undefined; - -/** - * The stage creation time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -StageWithPipelineInfo.prototype['add_time'] = undefined; - -/** - * The stage update time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -StageWithPipelineInfo.prototype['update_time'] = undefined; - -/** - * The name of the pipeline - * @member {String} pipeline_name - */ -StageWithPipelineInfo.prototype['pipeline_name'] = undefined; - -/** - * The pipeline deal probability. When `true`, overrides the stage probability. - * @member {Boolean} pipeline_deal_probability - */ -StageWithPipelineInfo.prototype['pipeline_deal_probability'] = undefined; - - -// Implement BaseStage interface: -/** - * The ID of the stage - * @member {Number} id - */ -BaseStage.prototype['id'] = undefined; -/** - * Defines the order of the stage - * @member {Number} order_nr - */ -BaseStage.prototype['order_nr'] = undefined; -/** - * The name of the stage - * @member {String} name - */ -BaseStage.prototype['name'] = undefined; -/** - * Whether the stage is active or deleted - * @member {Boolean} active_flag - */ -BaseStage.prototype['active_flag'] = undefined; -/** - * The success probability percentage of the deal. Used/shown when the deal weighted values are used. - * @member {Number} deal_probability - */ -BaseStage.prototype['deal_probability'] = undefined; -/** - * The ID of the pipeline to add the stage to - * @member {Number} pipeline_id - */ -BaseStage.prototype['pipeline_id'] = undefined; -/** - * Whether deals in this stage can become rotten - * @member {Boolean} rotten_flag - */ -BaseStage.prototype['rotten_flag'] = undefined; -/** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. - * @member {Number} rotten_days - */ -BaseStage.prototype['rotten_days'] = undefined; -/** - * The stage creation time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -BaseStage.prototype['add_time'] = undefined; -/** - * The stage update time. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -BaseStage.prototype['update_time'] = undefined; -// Implement StageWithPipelineInfoAllOf interface: -/** - * The name of the pipeline - * @member {String} pipeline_name - */ -StageWithPipelineInfoAllOf.prototype['pipeline_name'] = undefined; -/** - * The pipeline deal probability. When `true`, overrides the stage probability. - * @member {Boolean} pipeline_deal_probability - */ -StageWithPipelineInfoAllOf.prototype['pipeline_deal_probability'] = undefined; - - - - -export default StageWithPipelineInfo; - diff --git a/src/model/StageWithPipelineInfoAllOf.js b/src/model/StageWithPipelineInfoAllOf.js deleted file mode 100644 index 635977ab..00000000 --- a/src/model/StageWithPipelineInfoAllOf.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The StageWithPipelineInfoAllOf model module. - * @module model/StageWithPipelineInfoAllOf - * @version 1.0.0 - */ -class StageWithPipelineInfoAllOf { - /** - * Constructs a new StageWithPipelineInfoAllOf. - * @alias module:model/StageWithPipelineInfoAllOf - */ - constructor() { - - StageWithPipelineInfoAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a StageWithPipelineInfoAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/StageWithPipelineInfoAllOf} obj Optional instance to populate. - * @return {module:model/StageWithPipelineInfoAllOf} The populated StageWithPipelineInfoAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new StageWithPipelineInfoAllOf(); - - if (data.hasOwnProperty('pipeline_name')) { - obj['pipeline_name'] = ApiClient.convertToType(data['pipeline_name'], 'String'); - - delete data['pipeline_name']; - } - if (data.hasOwnProperty('pipeline_deal_probability')) { - obj['pipeline_deal_probability'] = ApiClient.convertToType(data['pipeline_deal_probability'], 'Boolean'); - - delete data['pipeline_deal_probability']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the pipeline - * @member {String} pipeline_name - */ -StageWithPipelineInfoAllOf.prototype['pipeline_name'] = undefined; - -/** - * The pipeline deal probability. When `true`, overrides the stage probability. - * @member {Boolean} pipeline_deal_probability - */ -StageWithPipelineInfoAllOf.prototype['pipeline_deal_probability'] = undefined; - - - - - - -export default StageWithPipelineInfoAllOf; - diff --git a/src/model/SubRole.js b/src/model/SubRole.js deleted file mode 100644 index a436f061..00000000 --- a/src/model/SubRole.js +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseRole from './BaseRole'; -import SubRoleAllOf from './SubRoleAllOf'; - -/** - * The SubRole model module. - * @module model/SubRole - * @version 1.0.0 - */ -class SubRole { - /** - * Constructs a new SubRole. - * The details of the sub-role - * @alias module:model/SubRole - * @implements module:model/BaseRole - * @implements module:model/SubRoleAllOf - */ - constructor() { - BaseRole.initialize(this);SubRoleAllOf.initialize(this); - SubRole.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SubRole from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubRole} obj Optional instance to populate. - * @return {module:model/SubRole} The populated SubRole instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubRole(); - BaseRole.constructFromObject(data, obj); - SubRoleAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('parent_role_id')) { - obj['parent_role_id'] = ApiClient.convertToType(data['parent_role_id'], 'Number'); - - delete data['parent_role_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('assignment_count')) { - obj['assignment_count'] = ApiClient.convertToType(data['assignment_count'], 'String'); - - delete data['assignment_count']; - } - if (data.hasOwnProperty('sub_role_count')) { - obj['sub_role_count'] = ApiClient.convertToType(data['sub_role_count'], 'String'); - - delete data['sub_role_count']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the parent role - * @member {Number} parent_role_id - */ -SubRole.prototype['parent_role_id'] = undefined; - -/** - * The name of the role - * @member {String} name - */ -SubRole.prototype['name'] = undefined; - -/** - * The ID of the role - * @member {Number} id - */ -SubRole.prototype['id'] = undefined; - -/** - * Whether the role is active or not - * @member {Boolean} active_flag - */ -SubRole.prototype['active_flag'] = undefined; - -/** - * The number of users assigned to this role - * @member {String} assignment_count - */ -SubRole.prototype['assignment_count'] = undefined; - -/** - * The number of sub-roles - * @member {String} sub_role_count - */ -SubRole.prototype['sub_role_count'] = undefined; - - -// Implement BaseRole interface: -/** - * The ID of the parent role - * @member {Number} parent_role_id - */ -BaseRole.prototype['parent_role_id'] = undefined; -/** - * The name of the role - * @member {String} name - */ -BaseRole.prototype['name'] = undefined; -// Implement SubRoleAllOf interface: -/** - * The ID of the role - * @member {Number} id - */ -SubRoleAllOf.prototype['id'] = undefined; -/** - * Whether the role is active or not - * @member {Boolean} active_flag - */ -SubRoleAllOf.prototype['active_flag'] = undefined; -/** - * The number of users assigned to this role - * @member {String} assignment_count - */ -SubRoleAllOf.prototype['assignment_count'] = undefined; -/** - * The number of sub-roles - * @member {String} sub_role_count - */ -SubRoleAllOf.prototype['sub_role_count'] = undefined; - - - - -export default SubRole; - diff --git a/src/model/SubRoleAllOf.js b/src/model/SubRoleAllOf.js deleted file mode 100644 index 21ccd8cd..00000000 --- a/src/model/SubRoleAllOf.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SubRoleAllOf model module. - * @module model/SubRoleAllOf - * @version 1.0.0 - */ -class SubRoleAllOf { - /** - * Constructs a new SubRoleAllOf. - * @alias module:model/SubRoleAllOf - */ - constructor() { - - SubRoleAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SubRoleAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubRoleAllOf} obj Optional instance to populate. - * @return {module:model/SubRoleAllOf} The populated SubRoleAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubRoleAllOf(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('assignment_count')) { - obj['assignment_count'] = ApiClient.convertToType(data['assignment_count'], 'String'); - - delete data['assignment_count']; - } - if (data.hasOwnProperty('sub_role_count')) { - obj['sub_role_count'] = ApiClient.convertToType(data['sub_role_count'], 'String'); - - delete data['sub_role_count']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the role - * @member {Number} id - */ -SubRoleAllOf.prototype['id'] = undefined; - -/** - * Whether the role is active or not - * @member {Boolean} active_flag - */ -SubRoleAllOf.prototype['active_flag'] = undefined; - -/** - * The number of users assigned to this role - * @member {String} assignment_count - */ -SubRoleAllOf.prototype['assignment_count'] = undefined; - -/** - * The number of sub-roles - * @member {String} sub_role_count - */ -SubRoleAllOf.prototype['sub_role_count'] = undefined; - - - - - - -export default SubRoleAllOf; - diff --git a/src/model/SubscriptionAddonsResponse.js b/src/model/SubscriptionAddonsResponse.js deleted file mode 100644 index 50e5d79a..00000000 --- a/src/model/SubscriptionAddonsResponse.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import SubscriptionAddonsResponseAllOf from './SubscriptionAddonsResponseAllOf'; - -/** - * The SubscriptionAddonsResponse model module. - * @module model/SubscriptionAddonsResponse - * @version 1.0.0 - */ -class SubscriptionAddonsResponse { - /** - * Constructs a new SubscriptionAddonsResponse. - * @alias module:model/SubscriptionAddonsResponse - * @implements module:model/BaseResponse - * @implements module:model/SubscriptionAddonsResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);SubscriptionAddonsResponseAllOf.initialize(this); - SubscriptionAddonsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SubscriptionAddonsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubscriptionAddonsResponse} obj Optional instance to populate. - * @return {module:model/SubscriptionAddonsResponse} The populated SubscriptionAddonsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubscriptionAddonsResponse(); - BaseResponse.constructFromObject(data, obj); - SubscriptionAddonsResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Object]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -SubscriptionAddonsResponse.prototype['success'] = undefined; - -/** - * An array of add-ons that the company has. - * @member {Array.} data - */ -SubscriptionAddonsResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement SubscriptionAddonsResponseAllOf interface: -/** - * An array of add-ons that the company has. - * @member {Array.} data - */ -SubscriptionAddonsResponseAllOf.prototype['data'] = undefined; - - - - -export default SubscriptionAddonsResponse; - diff --git a/src/model/SubscriptionAddonsResponseAllOf.js b/src/model/SubscriptionAddonsResponseAllOf.js deleted file mode 100644 index 7e849a4b..00000000 --- a/src/model/SubscriptionAddonsResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SubscriptionAddonsResponseAllOf model module. - * @module model/SubscriptionAddonsResponseAllOf - * @version 1.0.0 - */ -class SubscriptionAddonsResponseAllOf { - /** - * Constructs a new SubscriptionAddonsResponseAllOf. - * @alias module:model/SubscriptionAddonsResponseAllOf - */ - constructor() { - - SubscriptionAddonsResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SubscriptionAddonsResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubscriptionAddonsResponseAllOf} obj Optional instance to populate. - * @return {module:model/SubscriptionAddonsResponseAllOf} The populated SubscriptionAddonsResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubscriptionAddonsResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [Object]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * An array of add-ons that the company has. - * @member {Array.} data - */ -SubscriptionAddonsResponseAllOf.prototype['data'] = undefined; - - - - - - -export default SubscriptionAddonsResponseAllOf; - diff --git a/src/model/SubscriptionInstallmentCreateRequest.js b/src/model/SubscriptionInstallmentCreateRequest.js deleted file mode 100644 index 36ee3b1d..00000000 --- a/src/model/SubscriptionInstallmentCreateRequest.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SubscriptionInstallmentCreateRequest model module. - * @module model/SubscriptionInstallmentCreateRequest - * @version 1.0.0 - */ -class SubscriptionInstallmentCreateRequest { - /** - * Constructs a new SubscriptionInstallmentCreateRequest. - * @alias module:model/SubscriptionInstallmentCreateRequest - * @param dealId {Number} The ID of the deal this installment subscription is associated with - * @param currency {String} The currency of the installment subscription. Accepts a 3-character currency code. - * @param payments {Array.} Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). - */ - constructor(dealId, currency, payments) { - - SubscriptionInstallmentCreateRequest.initialize(this, dealId, currency, payments); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, dealId, currency, payments) { - obj['deal_id'] = dealId; - obj['currency'] = currency; - obj['payments'] = payments; - } - - /** - * Constructs a SubscriptionInstallmentCreateRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubscriptionInstallmentCreateRequest} obj Optional instance to populate. - * @return {module:model/SubscriptionInstallmentCreateRequest} The populated SubscriptionInstallmentCreateRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubscriptionInstallmentCreateRequest(); - - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('payments')) { - obj['payments'] = ApiClient.convertToType(data['payments'], [Object]); - - delete data['payments']; - } - if (data.hasOwnProperty('update_deal_value')) { - obj['update_deal_value'] = ApiClient.convertToType(data['update_deal_value'], 'Boolean'); - - delete data['update_deal_value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal this installment subscription is associated with - * @member {Number} deal_id - */ -SubscriptionInstallmentCreateRequest.prototype['deal_id'] = undefined; - -/** - * The currency of the installment subscription. Accepts a 3-character currency code. - * @member {String} currency - */ -SubscriptionInstallmentCreateRequest.prototype['currency'] = undefined; - -/** - * Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). - * @member {Array.} payments - */ -SubscriptionInstallmentCreateRequest.prototype['payments'] = undefined; - -/** - * Indicates that the deal value must be set to the installment subscription's total value - * @member {Boolean} update_deal_value - */ -SubscriptionInstallmentCreateRequest.prototype['update_deal_value'] = undefined; - - - - - - -export default SubscriptionInstallmentCreateRequest; - diff --git a/src/model/SubscriptionInstallmentUpdateRequest.js b/src/model/SubscriptionInstallmentUpdateRequest.js deleted file mode 100644 index f8abe8e1..00000000 --- a/src/model/SubscriptionInstallmentUpdateRequest.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SubscriptionInstallmentUpdateRequest model module. - * @module model/SubscriptionInstallmentUpdateRequest - * @version 1.0.0 - */ -class SubscriptionInstallmentUpdateRequest { - /** - * Constructs a new SubscriptionInstallmentUpdateRequest. - * @alias module:model/SubscriptionInstallmentUpdateRequest - * @param payments {Array.} Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with a explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). - */ - constructor(payments) { - - SubscriptionInstallmentUpdateRequest.initialize(this, payments); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, payments) { - obj['payments'] = payments; - } - - /** - * Constructs a SubscriptionInstallmentUpdateRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubscriptionInstallmentUpdateRequest} obj Optional instance to populate. - * @return {module:model/SubscriptionInstallmentUpdateRequest} The populated SubscriptionInstallmentUpdateRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubscriptionInstallmentUpdateRequest(); - - if (data.hasOwnProperty('payments')) { - obj['payments'] = ApiClient.convertToType(data['payments'], [Object]); - - delete data['payments']; - } - if (data.hasOwnProperty('update_deal_value')) { - obj['update_deal_value'] = ApiClient.convertToType(data['update_deal_value'], 'Boolean'); - - delete data['update_deal_value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with a explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). - * @member {Array.} payments - */ -SubscriptionInstallmentUpdateRequest.prototype['payments'] = undefined; - -/** - * Indicates that the deal value must be set to installment subscription's total value - * @member {Boolean} update_deal_value - */ -SubscriptionInstallmentUpdateRequest.prototype['update_deal_value'] = undefined; - - - - - - -export default SubscriptionInstallmentUpdateRequest; - diff --git a/src/model/SubscriptionItem.js b/src/model/SubscriptionItem.js deleted file mode 100644 index 1e4ed3ec..00000000 --- a/src/model/SubscriptionItem.js +++ /dev/null @@ -1,244 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SubscriptionItem model module. - * @module model/SubscriptionItem - * @version 1.0.0 - */ -class SubscriptionItem { - /** - * Constructs a new SubscriptionItem. - * @alias module:model/SubscriptionItem - */ - constructor() { - - SubscriptionItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SubscriptionItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubscriptionItem} obj Optional instance to populate. - * @return {module:model/SubscriptionItem} The populated SubscriptionItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubscriptionItem(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); - - delete data['is_active']; - } - if (data.hasOwnProperty('cycles_count')) { - obj['cycles_count'] = ApiClient.convertToType(data['cycles_count'], 'Number'); - - delete data['cycles_count']; - } - if (data.hasOwnProperty('cycle_amount')) { - obj['cycle_amount'] = ApiClient.convertToType(data['cycle_amount'], 'Number'); - - delete data['cycle_amount']; - } - if (data.hasOwnProperty('infinite')) { - obj['infinite'] = ApiClient.convertToType(data['infinite'], 'Boolean'); - - delete data['infinite']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('cadence_type')) { - obj['cadence_type'] = ApiClient.convertToType(data['cadence_type'], 'String'); - - delete data['cadence_type']; - } - if (data.hasOwnProperty('start_date')) { - obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); - - delete data['start_date']; - } - if (data.hasOwnProperty('end_date')) { - obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); - - delete data['end_date']; - } - if (data.hasOwnProperty('lifetime_value')) { - obj['lifetime_value'] = ApiClient.convertToType(data['lifetime_value'], 'Number'); - - delete data['lifetime_value']; - } - if (data.hasOwnProperty('final_status')) { - obj['final_status'] = ApiClient.convertToType(data['final_status'], 'String'); - - delete data['final_status']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'Date'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'Date'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the subscription - * @member {Number} id - */ -SubscriptionItem.prototype['id'] = undefined; - -/** - * The ID of the user who created the subscription - * @member {Number} user_id - */ -SubscriptionItem.prototype['user_id'] = undefined; - -/** - * The ID of the deal this subscription is associated with - * @member {Number} deal_id - */ -SubscriptionItem.prototype['deal_id'] = undefined; - -/** - * The description of the recurring subscription - * @member {String} description - */ -SubscriptionItem.prototype['description'] = undefined; - -/** - * The subscription status - * @member {Boolean} is_active - */ -SubscriptionItem.prototype['is_active'] = undefined; - -/** - * Shows how many payments a recurring subscription has - * @member {Number} cycles_count - */ -SubscriptionItem.prototype['cycles_count'] = undefined; - -/** - * The amount of each payment - * @member {Number} cycle_amount - */ -SubscriptionItem.prototype['cycle_amount'] = undefined; - -/** - * Indicates that the recurring subscription will last until it is manually canceled or deleted - * @member {Boolean} infinite - */ -SubscriptionItem.prototype['infinite'] = undefined; - -/** - * The currency of the subscription - * @member {String} currency - */ -SubscriptionItem.prototype['currency'] = undefined; - -/** - * The interval between payments - * @member {String} cadence_type - */ -SubscriptionItem.prototype['cadence_type'] = undefined; - -/** - * The start date of the recurring subscription - * @member {Date} start_date - */ -SubscriptionItem.prototype['start_date'] = undefined; - -/** - * The end date of the subscription - * @member {Date} end_date - */ -SubscriptionItem.prototype['end_date'] = undefined; - -/** - * The total value of all payments - * @member {Number} lifetime_value - */ -SubscriptionItem.prototype['lifetime_value'] = undefined; - -/** - * The final status of the subscription - * @member {String} final_status - */ -SubscriptionItem.prototype['final_status'] = undefined; - -/** - * The creation time of the subscription - * @member {Date} add_time - */ -SubscriptionItem.prototype['add_time'] = undefined; - -/** - * The update time of the subscription - * @member {Date} update_time - */ -SubscriptionItem.prototype['update_time'] = undefined; - - - - - - -export default SubscriptionItem; - diff --git a/src/model/SubscriptionRecurringCancelRequest.js b/src/model/SubscriptionRecurringCancelRequest.js deleted file mode 100644 index deca649a..00000000 --- a/src/model/SubscriptionRecurringCancelRequest.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SubscriptionRecurringCancelRequest model module. - * @module model/SubscriptionRecurringCancelRequest - * @version 1.0.0 - */ -class SubscriptionRecurringCancelRequest { - /** - * Constructs a new SubscriptionRecurringCancelRequest. - * @alias module:model/SubscriptionRecurringCancelRequest - */ - constructor() { - - SubscriptionRecurringCancelRequest.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SubscriptionRecurringCancelRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubscriptionRecurringCancelRequest} obj Optional instance to populate. - * @return {module:model/SubscriptionRecurringCancelRequest} The populated SubscriptionRecurringCancelRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubscriptionRecurringCancelRequest(); - - if (data.hasOwnProperty('end_date')) { - obj['end_date'] = ApiClient.convertToType(data['end_date'], 'Date'); - - delete data['end_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The subscription termination date. All payments after the specified date will be deleted. The end_date of the subscription will be set to the due date of the payment to follow the specified date. Default value is the current date. - * @member {Date} end_date - */ -SubscriptionRecurringCancelRequest.prototype['end_date'] = undefined; - - - - - - -export default SubscriptionRecurringCancelRequest; - diff --git a/src/model/SubscriptionRecurringCreateRequest.js b/src/model/SubscriptionRecurringCreateRequest.js deleted file mode 100644 index 4974d5b9..00000000 --- a/src/model/SubscriptionRecurringCreateRequest.js +++ /dev/null @@ -1,221 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SubscriptionRecurringCreateRequest model module. - * @module model/SubscriptionRecurringCreateRequest - * @version 1.0.0 - */ -class SubscriptionRecurringCreateRequest { - /** - * Constructs a new SubscriptionRecurringCreateRequest. - * @alias module:model/SubscriptionRecurringCreateRequest - * @param dealId {Number} The ID of the deal this recurring subscription is associated with - * @param currency {String} The currency of the recurring subscription. Accepts a 3-character currency code. - * @param cadenceType {module:model/SubscriptionRecurringCreateRequest.CadenceTypeEnum} The interval between payments - * @param cycleAmount {Number} The amount of each payment - * @param startDate {Date} The start date of the recurring subscription. Format: YYYY-MM-DD - */ - constructor(dealId, currency, cadenceType, cycleAmount, startDate) { - - SubscriptionRecurringCreateRequest.initialize(this, dealId, currency, cadenceType, cycleAmount, startDate); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, dealId, currency, cadenceType, cycleAmount, startDate) { - obj['deal_id'] = dealId; - obj['currency'] = currency; - obj['cadence_type'] = cadenceType; - obj['cycle_amount'] = cycleAmount; - obj['start_date'] = startDate; - } - - /** - * Constructs a SubscriptionRecurringCreateRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubscriptionRecurringCreateRequest} obj Optional instance to populate. - * @return {module:model/SubscriptionRecurringCreateRequest} The populated SubscriptionRecurringCreateRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubscriptionRecurringCreateRequest(); - - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('cadence_type')) { - obj['cadence_type'] = ApiClient.convertToType(data['cadence_type'], 'String'); - - delete data['cadence_type']; - } - if (data.hasOwnProperty('cycles_count')) { - obj['cycles_count'] = ApiClient.convertToType(data['cycles_count'], 'Number'); - - delete data['cycles_count']; - } - if (data.hasOwnProperty('cycle_amount')) { - obj['cycle_amount'] = ApiClient.convertToType(data['cycle_amount'], 'Number'); - - delete data['cycle_amount']; - } - if (data.hasOwnProperty('start_date')) { - obj['start_date'] = ApiClient.convertToType(data['start_date'], 'Date'); - - delete data['start_date']; - } - if (data.hasOwnProperty('infinite')) { - obj['infinite'] = ApiClient.convertToType(data['infinite'], 'Boolean'); - - delete data['infinite']; - } - if (data.hasOwnProperty('payments')) { - obj['payments'] = ApiClient.convertToType(data['payments'], [Object]); - - delete data['payments']; - } - if (data.hasOwnProperty('update_deal_value')) { - obj['update_deal_value'] = ApiClient.convertToType(data['update_deal_value'], 'Boolean'); - - delete data['update_deal_value']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the deal this recurring subscription is associated with - * @member {Number} deal_id - */ -SubscriptionRecurringCreateRequest.prototype['deal_id'] = undefined; - -/** - * The currency of the recurring subscription. Accepts a 3-character currency code. - * @member {String} currency - */ -SubscriptionRecurringCreateRequest.prototype['currency'] = undefined; - -/** - * The description of the recurring subscription - * @member {String} description - */ -SubscriptionRecurringCreateRequest.prototype['description'] = undefined; - -/** - * The interval between payments - * @member {module:model/SubscriptionRecurringCreateRequest.CadenceTypeEnum} cadence_type - */ -SubscriptionRecurringCreateRequest.prototype['cadence_type'] = undefined; - -/** - * Shows how many payments the subscription has. Note that one field must be set: `cycles_count` or `infinite`. If `cycles_count` is set, then `cycle_amount` and `start_date` are also required. - * @member {Number} cycles_count - */ -SubscriptionRecurringCreateRequest.prototype['cycles_count'] = undefined; - -/** - * The amount of each payment - * @member {Number} cycle_amount - */ -SubscriptionRecurringCreateRequest.prototype['cycle_amount'] = undefined; - -/** - * The start date of the recurring subscription. Format: YYYY-MM-DD - * @member {Date} start_date - */ -SubscriptionRecurringCreateRequest.prototype['start_date'] = undefined; - -/** - * This indicates that the recurring subscription will last until it's manually canceled or deleted. Note that only one field must be set: `cycles_count` or `infinite`. - * @member {Boolean} infinite - */ -SubscriptionRecurringCreateRequest.prototype['infinite'] = undefined; - -/** - * Array of additional payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). - * @member {Array.} payments - */ -SubscriptionRecurringCreateRequest.prototype['payments'] = undefined; - -/** - * Indicates that the deal value must be set to recurring subscription's MRR value - * @member {Boolean} update_deal_value - */ -SubscriptionRecurringCreateRequest.prototype['update_deal_value'] = undefined; - - - - - -/** - * Allowed values for the cadence_type property. - * @enum {String} - * @readonly - */ -SubscriptionRecurringCreateRequest['CadenceTypeEnum'] = { - - /** - * value: "weekly" - * @const - */ - "weekly": "weekly", - - /** - * value: "monthly" - * @const - */ - "monthly": "monthly", - - /** - * value: "quarterly" - * @const - */ - "quarterly": "quarterly", - - /** - * value: "yearly" - * @const - */ - "yearly": "yearly" -}; - - - -export default SubscriptionRecurringCreateRequest; - diff --git a/src/model/SubscriptionRecurringUpdateRequest.js b/src/model/SubscriptionRecurringUpdateRequest.js deleted file mode 100644 index ccfaa8eb..00000000 --- a/src/model/SubscriptionRecurringUpdateRequest.js +++ /dev/null @@ -1,125 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SubscriptionRecurringUpdateRequest model module. - * @module model/SubscriptionRecurringUpdateRequest - * @version 1.0.0 - */ -class SubscriptionRecurringUpdateRequest { - /** - * Constructs a new SubscriptionRecurringUpdateRequest. - * @alias module:model/SubscriptionRecurringUpdateRequest - * @param effectiveDate {Date} All payments after that date will be affected. Format: YYYY-MM-DD - */ - constructor(effectiveDate) { - - SubscriptionRecurringUpdateRequest.initialize(this, effectiveDate); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, effectiveDate) { - obj['effective_date'] = effectiveDate; - } - - /** - * Constructs a SubscriptionRecurringUpdateRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubscriptionRecurringUpdateRequest} obj Optional instance to populate. - * @return {module:model/SubscriptionRecurringUpdateRequest} The populated SubscriptionRecurringUpdateRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubscriptionRecurringUpdateRequest(); - - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('cycle_amount')) { - obj['cycle_amount'] = ApiClient.convertToType(data['cycle_amount'], 'Number'); - - delete data['cycle_amount']; - } - if (data.hasOwnProperty('payments')) { - obj['payments'] = ApiClient.convertToType(data['payments'], [Object]); - - delete data['payments']; - } - if (data.hasOwnProperty('update_deal_value')) { - obj['update_deal_value'] = ApiClient.convertToType(data['update_deal_value'], 'Boolean'); - - delete data['update_deal_value']; - } - if (data.hasOwnProperty('effective_date')) { - obj['effective_date'] = ApiClient.convertToType(data['effective_date'], 'Date'); - - delete data['effective_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The description of the recurring subscription - * @member {String} description - */ -SubscriptionRecurringUpdateRequest.prototype['description'] = undefined; - -/** - * The amount of each payment - * @member {Number} cycle_amount - */ -SubscriptionRecurringUpdateRequest.prototype['cycle_amount'] = undefined; - -/** - * Array of additional payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). - * @member {Array.} payments - */ -SubscriptionRecurringUpdateRequest.prototype['payments'] = undefined; - -/** - * Indicates that the deal value must be set to recurring subscription's MRR value - * @member {Boolean} update_deal_value - */ -SubscriptionRecurringUpdateRequest.prototype['update_deal_value'] = undefined; - -/** - * All payments after that date will be affected. Format: YYYY-MM-DD - * @member {Date} effective_date - */ -SubscriptionRecurringUpdateRequest.prototype['effective_date'] = undefined; - - - - - - -export default SubscriptionRecurringUpdateRequest; - diff --git a/src/model/SubscriptionsIdResponse.js b/src/model/SubscriptionsIdResponse.js deleted file mode 100644 index 54f3c042..00000000 --- a/src/model/SubscriptionsIdResponse.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import SubscriptionItem from './SubscriptionItem'; -import SubscriptionsIdResponseAllOf from './SubscriptionsIdResponseAllOf'; - -/** - * The SubscriptionsIdResponse model module. - * @module model/SubscriptionsIdResponse - * @version 1.0.0 - */ -class SubscriptionsIdResponse { - /** - * Constructs a new SubscriptionsIdResponse. - * @alias module:model/SubscriptionsIdResponse - * @implements module:model/BaseResponse - * @implements module:model/SubscriptionsIdResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);SubscriptionsIdResponseAllOf.initialize(this); - SubscriptionsIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SubscriptionsIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubscriptionsIdResponse} obj Optional instance to populate. - * @return {module:model/SubscriptionsIdResponse} The populated SubscriptionsIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubscriptionsIdResponse(); - BaseResponse.constructFromObject(data, obj); - SubscriptionsIdResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = SubscriptionItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -SubscriptionsIdResponse.prototype['success'] = undefined; - -/** - * @member {module:model/SubscriptionItem} data - */ -SubscriptionsIdResponse.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement SubscriptionsIdResponseAllOf interface: -/** - * @member {module:model/SubscriptionItem} data - */ -SubscriptionsIdResponseAllOf.prototype['data'] = undefined; - - - - -export default SubscriptionsIdResponse; - diff --git a/src/model/SubscriptionsIdResponseAllOf.js b/src/model/SubscriptionsIdResponseAllOf.js deleted file mode 100644 index 8d43a6a7..00000000 --- a/src/model/SubscriptionsIdResponseAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SubscriptionItem from './SubscriptionItem'; - -/** - * The SubscriptionsIdResponseAllOf model module. - * @module model/SubscriptionsIdResponseAllOf - * @version 1.0.0 - */ -class SubscriptionsIdResponseAllOf { - /** - * Constructs a new SubscriptionsIdResponseAllOf. - * @alias module:model/SubscriptionsIdResponseAllOf - */ - constructor() { - - SubscriptionsIdResponseAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SubscriptionsIdResponseAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SubscriptionsIdResponseAllOf} obj Optional instance to populate. - * @return {module:model/SubscriptionsIdResponseAllOf} The populated SubscriptionsIdResponseAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SubscriptionsIdResponseAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = SubscriptionItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/SubscriptionItem} data - */ -SubscriptionsIdResponseAllOf.prototype['data'] = undefined; - - - - - - -export default SubscriptionsIdResponseAllOf; - diff --git a/src/model/TaskId.js b/src/model/TaskId.js deleted file mode 100644 index a8f23af6..00000000 --- a/src/model/TaskId.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The TaskId model module. - * @module model/TaskId - * @version 1.0.0 - */ -class TaskId { - /** - * Constructs a new TaskId. - * @alias module:model/TaskId - */ - constructor() { - - TaskId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TaskId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TaskId} obj Optional instance to populate. - * @return {module:model/TaskId} The populated TaskId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TaskId(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the task, generated when the task was created - * @member {Number} id - */ -TaskId.prototype['id'] = undefined; - - - - - - -export default TaskId; - diff --git a/src/model/TaskMandatoryObjectFragment.js b/src/model/TaskMandatoryObjectFragment.js deleted file mode 100644 index 3219e4b2..00000000 --- a/src/model/TaskMandatoryObjectFragment.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The TaskMandatoryObjectFragment model module. - * @module model/TaskMandatoryObjectFragment - * @version 1.0.0 - */ -class TaskMandatoryObjectFragment { - /** - * Constructs a new TaskMandatoryObjectFragment. - * @alias module:model/TaskMandatoryObjectFragment - */ - constructor() { - - TaskMandatoryObjectFragment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TaskMandatoryObjectFragment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TaskMandatoryObjectFragment} obj Optional instance to populate. - * @return {module:model/TaskMandatoryObjectFragment} The populated TaskMandatoryObjectFragment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TaskMandatoryObjectFragment(); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('project_id')) { - obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); - - delete data['project_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the task - * @member {String} title - */ -TaskMandatoryObjectFragment.prototype['title'] = undefined; - -/** - * The ID of the project this task is associated with - * @member {Number} project_id - */ -TaskMandatoryObjectFragment.prototype['project_id'] = undefined; - - - - - - -export default TaskMandatoryObjectFragment; - diff --git a/src/model/TaskNotChangeableObjectFragment.js b/src/model/TaskNotChangeableObjectFragment.js deleted file mode 100644 index 968dbe4b..00000000 --- a/src/model/TaskNotChangeableObjectFragment.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The TaskNotChangeableObjectFragment model module. - * @module model/TaskNotChangeableObjectFragment - * @version 1.0.0 - */ -class TaskNotChangeableObjectFragment { - /** - * Constructs a new TaskNotChangeableObjectFragment. - * @alias module:model/TaskNotChangeableObjectFragment - */ - constructor() { - - TaskNotChangeableObjectFragment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TaskNotChangeableObjectFragment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TaskNotChangeableObjectFragment} obj Optional instance to populate. - * @return {module:model/TaskNotChangeableObjectFragment} The populated TaskNotChangeableObjectFragment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TaskNotChangeableObjectFragment(); - - if (data.hasOwnProperty('creator_id')) { - obj['creator_id'] = ApiClient.convertToType(data['creator_id'], 'Number'); - - delete data['creator_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('marked_as_done_time')) { - obj['marked_as_done_time'] = ApiClient.convertToType(data['marked_as_done_time'], 'String'); - - delete data['marked_as_done_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The creator of a task - * @member {Number} creator_id - */ -TaskNotChangeableObjectFragment.prototype['creator_id'] = undefined; - -/** - * The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -TaskNotChangeableObjectFragment.prototype['add_time'] = undefined; - -/** - * The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -TaskNotChangeableObjectFragment.prototype['update_time'] = undefined; - -/** - * The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} marked_as_done_time - */ -TaskNotChangeableObjectFragment.prototype['marked_as_done_time'] = undefined; - - - - - - -export default TaskNotChangeableObjectFragment; - diff --git a/src/model/TaskObjectFragment.js b/src/model/TaskObjectFragment.js deleted file mode 100644 index fc5508d1..00000000 --- a/src/model/TaskObjectFragment.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBoolean from './NumberBoolean'; - -/** - * The TaskObjectFragment model module. - * @module model/TaskObjectFragment - * @version 1.0.0 - */ -class TaskObjectFragment { - /** - * Constructs a new TaskObjectFragment. - * @alias module:model/TaskObjectFragment - */ - constructor() { - - TaskObjectFragment.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TaskObjectFragment from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TaskObjectFragment} obj Optional instance to populate. - * @return {module:model/TaskObjectFragment} The populated TaskObjectFragment instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TaskObjectFragment(); - - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('parent_task_id')) { - obj['parent_task_id'] = ApiClient.convertToType(data['parent_task_id'], 'Number'); - - delete data['parent_task_id']; - } - if (data.hasOwnProperty('assignee_id')) { - obj['assignee_id'] = ApiClient.convertToType(data['assignee_id'], 'Number'); - - delete data['assignee_id']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); - - delete data['done']; - } - if (data.hasOwnProperty('due_date')) { - obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); - - delete data['due_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The description of the task - * @member {String} description - */ -TaskObjectFragment.prototype['description'] = undefined; - -/** - * The ID of a parent task. Can not be ID of a task which is already a subtask. - * @member {Number} parent_task_id - */ -TaskObjectFragment.prototype['parent_task_id'] = undefined; - -/** - * The ID of the user who will be the assignee of the task - * @member {Number} assignee_id - */ -TaskObjectFragment.prototype['assignee_id'] = undefined; - -/** - * Whether the task is done or not. 0 = Not done, 1 = Done. - * @member {module:model/NumberBoolean} done - */ -TaskObjectFragment.prototype['done'] = undefined; - -/** - * The due date of the task. Format: YYYY-MM-DD. - * @member {Date} due_date - */ -TaskObjectFragment.prototype['due_date'] = undefined; - - - - - - -export default TaskObjectFragment; - diff --git a/src/model/TaskPostObject.js b/src/model/TaskPostObject.js deleted file mode 100644 index ab9f4e44..00000000 --- a/src/model/TaskPostObject.js +++ /dev/null @@ -1,193 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBoolean from './NumberBoolean'; -import RequiredPostTaskParameters from './RequiredPostTaskParameters'; -import TaskObjectFragment from './TaskObjectFragment'; - -/** - * The TaskPostObject model module. - * @module model/TaskPostObject - * @version 1.0.0 - */ -class TaskPostObject { - /** - * Constructs a new TaskPostObject. - * @alias module:model/TaskPostObject - * @implements module:model/RequiredPostTaskParameters - * @implements module:model/TaskObjectFragment - * @param title {String} The title of the task - * @param projectId {Number} The ID of a project - */ - constructor(title, projectId) { - RequiredPostTaskParameters.initialize(this, title, projectId);TaskObjectFragment.initialize(this); - TaskPostObject.initialize(this, title, projectId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, title, projectId) { - obj['title'] = title; - obj['project_id'] = projectId; - } - - /** - * Constructs a TaskPostObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TaskPostObject} obj Optional instance to populate. - * @return {module:model/TaskPostObject} The populated TaskPostObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TaskPostObject(); - RequiredPostTaskParameters.constructFromObject(data, obj); - TaskObjectFragment.constructFromObject(data, obj); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('project_id')) { - obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); - - delete data['project_id']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('parent_task_id')) { - obj['parent_task_id'] = ApiClient.convertToType(data['parent_task_id'], 'Number'); - - delete data['parent_task_id']; - } - if (data.hasOwnProperty('assignee_id')) { - obj['assignee_id'] = ApiClient.convertToType(data['assignee_id'], 'Number'); - - delete data['assignee_id']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); - - delete data['done']; - } - if (data.hasOwnProperty('due_date')) { - obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); - - delete data['due_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the task - * @member {String} title - */ -TaskPostObject.prototype['title'] = undefined; - -/** - * The ID of a project - * @member {Number} project_id - */ -TaskPostObject.prototype['project_id'] = undefined; - -/** - * The description of the task - * @member {String} description - */ -TaskPostObject.prototype['description'] = undefined; - -/** - * The ID of a parent task. Can not be ID of a task which is already a subtask. - * @member {Number} parent_task_id - */ -TaskPostObject.prototype['parent_task_id'] = undefined; - -/** - * The ID of the user who will be the assignee of the task - * @member {Number} assignee_id - */ -TaskPostObject.prototype['assignee_id'] = undefined; - -/** - * Whether the task is done or not. 0 = Not done, 1 = Done. - * @member {module:model/NumberBoolean} done - */ -TaskPostObject.prototype['done'] = undefined; - -/** - * The due date of the task. Format: YYYY-MM-DD. - * @member {Date} due_date - */ -TaskPostObject.prototype['due_date'] = undefined; - - -// Implement RequiredPostTaskParameters interface: -/** - * The title of the task - * @member {String} title - */ -RequiredPostTaskParameters.prototype['title'] = undefined; -/** - * The ID of a project - * @member {Number} project_id - */ -RequiredPostTaskParameters.prototype['project_id'] = undefined; -// Implement TaskObjectFragment interface: -/** - * The description of the task - * @member {String} description - */ -TaskObjectFragment.prototype['description'] = undefined; -/** - * The ID of a parent task. Can not be ID of a task which is already a subtask. - * @member {Number} parent_task_id - */ -TaskObjectFragment.prototype['parent_task_id'] = undefined; -/** - * The ID of the user who will be the assignee of the task - * @member {Number} assignee_id - */ -TaskObjectFragment.prototype['assignee_id'] = undefined; -/** - * Whether the task is done or not. 0 = Not done, 1 = Done. - * @member {module:model/NumberBoolean} done - */ -TaskObjectFragment.prototype['done'] = undefined; -/** - * The due date of the task. Format: YYYY-MM-DD. - * @member {Date} due_date - */ -TaskObjectFragment.prototype['due_date'] = undefined; - - - - -export default TaskPostObject; - diff --git a/src/model/TaskPutObject.js b/src/model/TaskPutObject.js deleted file mode 100644 index c24a829e..00000000 --- a/src/model/TaskPutObject.js +++ /dev/null @@ -1,189 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBoolean from './NumberBoolean'; -import TaskMandatoryObjectFragment from './TaskMandatoryObjectFragment'; -import TaskObjectFragment from './TaskObjectFragment'; - -/** - * The TaskPutObject model module. - * @module model/TaskPutObject - * @version 1.0.0 - */ -class TaskPutObject { - /** - * Constructs a new TaskPutObject. - * @alias module:model/TaskPutObject - * @implements module:model/TaskMandatoryObjectFragment - * @implements module:model/TaskObjectFragment - */ - constructor() { - TaskMandatoryObjectFragment.initialize(this);TaskObjectFragment.initialize(this); - TaskPutObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TaskPutObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TaskPutObject} obj Optional instance to populate. - * @return {module:model/TaskPutObject} The populated TaskPutObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TaskPutObject(); - TaskMandatoryObjectFragment.constructFromObject(data, obj); - TaskObjectFragment.constructFromObject(data, obj); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('project_id')) { - obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); - - delete data['project_id']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('parent_task_id')) { - obj['parent_task_id'] = ApiClient.convertToType(data['parent_task_id'], 'Number'); - - delete data['parent_task_id']; - } - if (data.hasOwnProperty('assignee_id')) { - obj['assignee_id'] = ApiClient.convertToType(data['assignee_id'], 'Number'); - - delete data['assignee_id']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); - - delete data['done']; - } - if (data.hasOwnProperty('due_date')) { - obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); - - delete data['due_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the task - * @member {String} title - */ -TaskPutObject.prototype['title'] = undefined; - -/** - * The ID of the project this task is associated with - * @member {Number} project_id - */ -TaskPutObject.prototype['project_id'] = undefined; - -/** - * The description of the task - * @member {String} description - */ -TaskPutObject.prototype['description'] = undefined; - -/** - * The ID of a parent task. Can not be ID of a task which is already a subtask. - * @member {Number} parent_task_id - */ -TaskPutObject.prototype['parent_task_id'] = undefined; - -/** - * The ID of the user who will be the assignee of the task - * @member {Number} assignee_id - */ -TaskPutObject.prototype['assignee_id'] = undefined; - -/** - * Whether the task is done or not. 0 = Not done, 1 = Done. - * @member {module:model/NumberBoolean} done - */ -TaskPutObject.prototype['done'] = undefined; - -/** - * The due date of the task. Format: YYYY-MM-DD. - * @member {Date} due_date - */ -TaskPutObject.prototype['due_date'] = undefined; - - -// Implement TaskMandatoryObjectFragment interface: -/** - * The title of the task - * @member {String} title - */ -TaskMandatoryObjectFragment.prototype['title'] = undefined; -/** - * The ID of the project this task is associated with - * @member {Number} project_id - */ -TaskMandatoryObjectFragment.prototype['project_id'] = undefined; -// Implement TaskObjectFragment interface: -/** - * The description of the task - * @member {String} description - */ -TaskObjectFragment.prototype['description'] = undefined; -/** - * The ID of a parent task. Can not be ID of a task which is already a subtask. - * @member {Number} parent_task_id - */ -TaskObjectFragment.prototype['parent_task_id'] = undefined; -/** - * The ID of the user who will be the assignee of the task - * @member {Number} assignee_id - */ -TaskObjectFragment.prototype['assignee_id'] = undefined; -/** - * Whether the task is done or not. 0 = Not done, 1 = Done. - * @member {module:model/NumberBoolean} done - */ -TaskObjectFragment.prototype['done'] = undefined; -/** - * The due date of the task. Format: YYYY-MM-DD. - * @member {Date} due_date - */ -TaskObjectFragment.prototype['due_date'] = undefined; - - - - -export default TaskPutObject; - diff --git a/src/model/TaskResponseObject.js b/src/model/TaskResponseObject.js deleted file mode 100644 index 0ff331ff..00000000 --- a/src/model/TaskResponseObject.js +++ /dev/null @@ -1,269 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FullTaskObject from './FullTaskObject'; -import NumberBoolean from './NumberBoolean'; -import TaskId from './TaskId'; - -/** - * The TaskResponseObject model module. - * @module model/TaskResponseObject - * @version 1.0.0 - */ -class TaskResponseObject { - /** - * Constructs a new TaskResponseObject. - * @alias module:model/TaskResponseObject - * @implements module:model/TaskId - * @implements module:model/FullTaskObject - */ - constructor() { - TaskId.initialize(this);FullTaskObject.initialize(this); - TaskResponseObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TaskResponseObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TaskResponseObject} obj Optional instance to populate. - * @return {module:model/TaskResponseObject} The populated TaskResponseObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TaskResponseObject(); - TaskId.constructFromObject(data, obj); - FullTaskObject.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('project_id')) { - obj['project_id'] = ApiClient.convertToType(data['project_id'], 'Number'); - - delete data['project_id']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('parent_task_id')) { - obj['parent_task_id'] = ApiClient.convertToType(data['parent_task_id'], 'Number'); - - delete data['parent_task_id']; - } - if (data.hasOwnProperty('assignee_id')) { - obj['assignee_id'] = ApiClient.convertToType(data['assignee_id'], 'Number'); - - delete data['assignee_id']; - } - if (data.hasOwnProperty('done')) { - obj['done'] = ApiClient.convertToType(data['done'], NumberBoolean); - - delete data['done']; - } - if (data.hasOwnProperty('due_date')) { - obj['due_date'] = ApiClient.convertToType(data['due_date'], 'Date'); - - delete data['due_date']; - } - if (data.hasOwnProperty('creator_id')) { - obj['creator_id'] = ApiClient.convertToType(data['creator_id'], 'Number'); - - delete data['creator_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - if (data.hasOwnProperty('marked_as_done_time')) { - obj['marked_as_done_time'] = ApiClient.convertToType(data['marked_as_done_time'], 'String'); - - delete data['marked_as_done_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the task, generated when the task was created - * @member {Number} id - */ -TaskResponseObject.prototype['id'] = undefined; - -/** - * The title of the task - * @member {String} title - */ -TaskResponseObject.prototype['title'] = undefined; - -/** - * The ID of the project this task is associated with - * @member {Number} project_id - */ -TaskResponseObject.prototype['project_id'] = undefined; - -/** - * The description of the task - * @member {String} description - */ -TaskResponseObject.prototype['description'] = undefined; - -/** - * The ID of a parent task. Can not be ID of a task which is already a subtask. - * @member {Number} parent_task_id - */ -TaskResponseObject.prototype['parent_task_id'] = undefined; - -/** - * The ID of the user who will be the assignee of the task - * @member {Number} assignee_id - */ -TaskResponseObject.prototype['assignee_id'] = undefined; - -/** - * Whether the task is done or not. 0 = Not done, 1 = Done. - * @member {module:model/NumberBoolean} done - */ -TaskResponseObject.prototype['done'] = undefined; - -/** - * The due date of the task. Format: YYYY-MM-DD. - * @member {Date} due_date - */ -TaskResponseObject.prototype['due_date'] = undefined; - -/** - * The creator of a task - * @member {Number} creator_id - */ -TaskResponseObject.prototype['creator_id'] = undefined; - -/** - * The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -TaskResponseObject.prototype['add_time'] = undefined; - -/** - * The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -TaskResponseObject.prototype['update_time'] = undefined; - -/** - * The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} marked_as_done_time - */ -TaskResponseObject.prototype['marked_as_done_time'] = undefined; - - -// Implement TaskId interface: -/** - * The ID of the task, generated when the task was created - * @member {Number} id - */ -TaskId.prototype['id'] = undefined; -// Implement FullTaskObject interface: -/** - * The title of the task - * @member {String} title - */ -FullTaskObject.prototype['title'] = undefined; -/** - * The ID of the project this task is associated with - * @member {Number} project_id - */ -FullTaskObject.prototype['project_id'] = undefined; -/** - * The description of the task - * @member {String} description - */ -FullTaskObject.prototype['description'] = undefined; -/** - * The ID of a parent task. Can not be ID of a task which is already a subtask. - * @member {Number} parent_task_id - */ -FullTaskObject.prototype['parent_task_id'] = undefined; -/** - * The ID of the user who will be the assignee of the task - * @member {Number} assignee_id - */ -FullTaskObject.prototype['assignee_id'] = undefined; -/** - * Whether the task is done or not. 0 = Not done, 1 = Done. - * @member {module:model/NumberBoolean} done - */ -FullTaskObject.prototype['done'] = undefined; -/** - * The due date of the task. Format: YYYY-MM-DD. - * @member {Date} due_date - */ -FullTaskObject.prototype['due_date'] = undefined; -/** - * The creator of a task - * @member {Number} creator_id - */ -FullTaskObject.prototype['creator_id'] = undefined; -/** - * The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -FullTaskObject.prototype['add_time'] = undefined; -/** - * The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -FullTaskObject.prototype['update_time'] = undefined; -/** - * The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} marked_as_done_time - */ -FullTaskObject.prototype['marked_as_done_time'] = undefined; - - - - -export default TaskResponseObject; - diff --git a/src/model/Team.js b/src/model/Team.js deleted file mode 100644 index f8b38095..00000000 --- a/src/model/Team.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import BaseTeam from './BaseTeam'; -import TeamAllOf from './TeamAllOf'; - -/** - * The Team model module. - * @module model/Team - * @version 1.0.0 - */ -class Team { - /** - * Constructs a new Team. - * @alias module:model/Team - * @implements module:model/BaseResponse - * @implements module:model/TeamAllOf - */ - constructor() { - BaseResponse.initialize(this);TeamAllOf.initialize(this); - Team.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Team from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Team} obj Optional instance to populate. - * @return {module:model/Team} The populated Team instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Team(); - BaseResponse.constructFromObject(data, obj); - TeamAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseTeam.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -Team.prototype['success'] = undefined; - -/** - * @member {module:model/BaseTeam} data - */ -Team.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement TeamAllOf interface: -/** - * @member {module:model/BaseTeam} data - */ -TeamAllOf.prototype['data'] = undefined; - - - - -export default Team; - diff --git a/src/model/TeamAllOf.js b/src/model/TeamAllOf.js deleted file mode 100644 index 1ad7e635..00000000 --- a/src/model/TeamAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseTeam from './BaseTeam'; - -/** - * The TeamAllOf model module. - * @module model/TeamAllOf - * @version 1.0.0 - */ -class TeamAllOf { - /** - * Constructs a new TeamAllOf. - * @alias module:model/TeamAllOf - */ - constructor() { - - TeamAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TeamAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TeamAllOf} obj Optional instance to populate. - * @return {module:model/TeamAllOf} The populated TeamAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TeamAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = BaseTeam.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BaseTeam} data - */ -TeamAllOf.prototype['data'] = undefined; - - - - - - -export default TeamAllOf; - diff --git a/src/model/TeamId.js b/src/model/TeamId.js deleted file mode 100644 index 86d40284..00000000 --- a/src/model/TeamId.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The TeamId model module. - * @module model/TeamId - * @version 1.0.0 - */ -class TeamId { - /** - * Constructs a new TeamId. - * @alias module:model/TeamId - */ - constructor() { - - TeamId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TeamId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TeamId} obj Optional instance to populate. - * @return {module:model/TeamId} The populated TeamId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TeamId(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The team ID - * @member {Number} id - */ -TeamId.prototype['id'] = undefined; - - - - - - -export default TeamId; - diff --git a/src/model/Teams.js b/src/model/Teams.js deleted file mode 100644 index eb8b34bf..00000000 --- a/src/model/Teams.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import BaseTeam from './BaseTeam'; -import TeamsAllOf from './TeamsAllOf'; - -/** - * The Teams model module. - * @module model/Teams - * @version 1.0.0 - */ -class Teams { - /** - * Constructs a new Teams. - * @alias module:model/Teams - * @implements module:model/BaseResponse - * @implements module:model/TeamsAllOf - */ - constructor() { - BaseResponse.initialize(this);TeamsAllOf.initialize(this); - Teams.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Teams from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Teams} obj Optional instance to populate. - * @return {module:model/Teams} The populated Teams instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Teams(); - BaseResponse.constructFromObject(data, obj); - TeamsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseTeam]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -Teams.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -Teams.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement TeamsAllOf interface: -/** - * @member {Array.} data - */ -TeamsAllOf.prototype['data'] = undefined; - - - - -export default Teams; - diff --git a/src/model/TeamsAllOf.js b/src/model/TeamsAllOf.js deleted file mode 100644 index 058792ab..00000000 --- a/src/model/TeamsAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseTeam from './BaseTeam'; - -/** - * The TeamsAllOf model module. - * @module model/TeamsAllOf - * @version 1.0.0 - */ -class TeamsAllOf { - /** - * Constructs a new TeamsAllOf. - * @alias module:model/TeamsAllOf - */ - constructor() { - - TeamsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TeamsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TeamsAllOf} obj Optional instance to populate. - * @return {module:model/TeamsAllOf} The populated TeamsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TeamsAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseTeam]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Array.} data - */ -TeamsAllOf.prototype['data'] = undefined; - - - - - - -export default TeamsAllOf; - diff --git a/src/model/TemplateObject.js b/src/model/TemplateObject.js deleted file mode 100644 index bbf6368a..00000000 --- a/src/model/TemplateObject.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The TemplateObject model module. - * @module model/TemplateObject - * @version 1.0.0 - */ -class TemplateObject { - /** - * Constructs a new TemplateObject. - * @alias module:model/TemplateObject - */ - constructor() { - - TemplateObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TemplateObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TemplateObject} obj Optional instance to populate. - * @return {module:model/TemplateObject} The populated TemplateObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TemplateObject(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('projects_board_id')) { - obj['projects_board_id'] = ApiClient.convertToType(data['projects_board_id'], 'Number'); - - delete data['projects_board_id']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of a template - * @member {Number} id - */ -TemplateObject.prototype['id'] = undefined; - -/** - * The title of a template - * @member {String} title - */ -TemplateObject.prototype['title'] = undefined; - -/** - * The description of a template - * @member {String} description - */ -TemplateObject.prototype['description'] = undefined; - -/** - * The ID of the project board this template is associated with - * @member {Number} projects_board_id - */ -TemplateObject.prototype['projects_board_id'] = undefined; - -/** - * The ID of a template owner - * @member {Number} owner_id - */ -TemplateObject.prototype['owner_id'] = undefined; - -/** - * The creation date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -TemplateObject.prototype['add_time'] = undefined; - -/** - * The update date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -TemplateObject.prototype['update_time'] = undefined; - - - - - - -export default TemplateObject; - diff --git a/src/model/TemplateResponseObject.js b/src/model/TemplateResponseObject.js deleted file mode 100644 index 64c3ecb4..00000000 --- a/src/model/TemplateResponseObject.js +++ /dev/null @@ -1,184 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import TemplateObject from './TemplateObject'; - -/** - * The TemplateResponseObject model module. - * @module model/TemplateResponseObject - * @version 1.0.0 - */ -class TemplateResponseObject { - /** - * Constructs a new TemplateResponseObject. - * @alias module:model/TemplateResponseObject - * @implements module:model/TemplateObject - */ - constructor() { - TemplateObject.initialize(this); - TemplateResponseObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TemplateResponseObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TemplateResponseObject} obj Optional instance to populate. - * @return {module:model/TemplateResponseObject} The populated TemplateResponseObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TemplateResponseObject(); - TemplateObject.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('projects_board_id')) { - obj['projects_board_id'] = ApiClient.convertToType(data['projects_board_id'], 'Number'); - - delete data['projects_board_id']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('update_time')) { - obj['update_time'] = ApiClient.convertToType(data['update_time'], 'String'); - - delete data['update_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of a template - * @member {Number} id - */ -TemplateResponseObject.prototype['id'] = undefined; - -/** - * The title of a template - * @member {String} title - */ -TemplateResponseObject.prototype['title'] = undefined; - -/** - * The description of a template - * @member {String} description - */ -TemplateResponseObject.prototype['description'] = undefined; - -/** - * The ID of the project board this template is associated with - * @member {Number} projects_board_id - */ -TemplateResponseObject.prototype['projects_board_id'] = undefined; - -/** - * The ID of a template owner - * @member {Number} owner_id - */ -TemplateResponseObject.prototype['owner_id'] = undefined; - -/** - * The creation date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -TemplateResponseObject.prototype['add_time'] = undefined; - -/** - * The update date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -TemplateResponseObject.prototype['update_time'] = undefined; - - -// Implement TemplateObject interface: -/** - * The ID of a template - * @member {Number} id - */ -TemplateObject.prototype['id'] = undefined; -/** - * The title of a template - * @member {String} title - */ -TemplateObject.prototype['title'] = undefined; -/** - * The description of a template - * @member {String} description - */ -TemplateObject.prototype['description'] = undefined; -/** - * The ID of the project board this template is associated with - * @member {Number} projects_board_id - */ -TemplateObject.prototype['projects_board_id'] = undefined; -/** - * The ID of a template owner - * @member {Number} owner_id - */ -TemplateObject.prototype['owner_id'] = undefined; -/** - * The creation date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} add_time - */ -TemplateObject.prototype['add_time'] = undefined; -/** - * The update date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} update_time - */ -TemplateObject.prototype['update_time'] = undefined; - - - - -export default TemplateResponseObject; - diff --git a/src/model/Unauthorized.js b/src/model/Unauthorized.js deleted file mode 100644 index fdeba133..00000000 --- a/src/model/Unauthorized.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Unauthorized model module. - * @module model/Unauthorized - * @version 1.0.0 - */ -class Unauthorized { - /** - * Constructs a new Unauthorized. - * @alias module:model/Unauthorized - */ - constructor() { - - Unauthorized.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Unauthorized from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Unauthorized} obj Optional instance to populate. - * @return {module:model/Unauthorized} The populated Unauthorized instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Unauthorized(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('error')) { - obj['error'] = ApiClient.convertToType(data['error'], 'String'); - - delete data['error']; - } - if (data.hasOwnProperty('errorCode')) { - obj['errorCode'] = ApiClient.convertToType(data['errorCode'], 'Number'); - - delete data['errorCode']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -Unauthorized.prototype['success'] = undefined; - -/** - * The error message - * @member {String} error - */ -Unauthorized.prototype['error'] = undefined; - -/** - * The response error code - * @member {Number} errorCode - */ -Unauthorized.prototype['errorCode'] = undefined; - - - - - - -export default Unauthorized; - diff --git a/src/model/UpdateActivityPlanItem.js b/src/model/UpdateActivityPlanItem.js deleted file mode 100644 index 6abfe8eb..00000000 --- a/src/model/UpdateActivityPlanItem.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPlanItemObject from './ProjectPlanItemObject'; - -/** - * The UpdateActivityPlanItem model module. - * @module model/UpdateActivityPlanItem - * @version 1.0.0 - */ -class UpdateActivityPlanItem { - /** - * Constructs a new UpdateActivityPlanItem. - * @alias module:model/UpdateActivityPlanItem - */ - constructor() { - - UpdateActivityPlanItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateActivityPlanItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateActivityPlanItem} obj Optional instance to populate. - * @return {module:model/UpdateActivityPlanItem} The populated UpdateActivityPlanItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateActivityPlanItem(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectPlanItemObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdateActivityPlanItem.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectPlanItemObject} data - */ -UpdateActivityPlanItem.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -UpdateActivityPlanItem.prototype['additional_data'] = undefined; - - - - - - -export default UpdateActivityPlanItem; - diff --git a/src/model/UpdateActivityPlanItemResponse.js b/src/model/UpdateActivityPlanItemResponse.js deleted file mode 100644 index 7cd9e32a..00000000 --- a/src/model/UpdateActivityPlanItemResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPlanItemObject from './ProjectPlanItemObject'; - -/** - * The UpdateActivityPlanItemResponse model module. - * @module model/UpdateActivityPlanItemResponse - * @version 1.0.0 - */ -class UpdateActivityPlanItemResponse { - /** - * Constructs a new UpdateActivityPlanItemResponse. - * @alias module:model/UpdateActivityPlanItemResponse - */ - constructor() { - - UpdateActivityPlanItemResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateActivityPlanItemResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateActivityPlanItemResponse} obj Optional instance to populate. - * @return {module:model/UpdateActivityPlanItemResponse} The populated UpdateActivityPlanItemResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateActivityPlanItemResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectPlanItemObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdateActivityPlanItemResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectPlanItemObject} data - */ -UpdateActivityPlanItemResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -UpdateActivityPlanItemResponse.prototype['additional_data'] = undefined; - - - - - - -export default UpdateActivityPlanItemResponse; - diff --git a/src/model/UpdateActivityResponse.js b/src/model/UpdateActivityResponse.js deleted file mode 100644 index 006327c9..00000000 --- a/src/model/UpdateActivityResponse.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityResponseObject from './ActivityResponseObject'; -import AddActivityResponseRelatedObjects from './AddActivityResponseRelatedObjects'; - -/** - * The UpdateActivityResponse model module. - * @module model/UpdateActivityResponse - * @version 1.0.0 - */ -class UpdateActivityResponse { - /** - * Constructs a new UpdateActivityResponse. - * @alias module:model/UpdateActivityResponse - */ - constructor() { - - UpdateActivityResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateActivityResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateActivityResponse} obj Optional instance to populate. - * @return {module:model/UpdateActivityResponse} The populated UpdateActivityResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateActivityResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AddActivityResponseRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdateActivityResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ActivityResponseObject} data - */ -UpdateActivityResponse.prototype['data'] = undefined; - -/** - * @member {module:model/AddActivityResponseRelatedObjects} related_objects - */ -UpdateActivityResponse.prototype['related_objects'] = undefined; - - - - - - -export default UpdateActivityResponse; - diff --git a/src/model/UpdateActivityResponse200.js b/src/model/UpdateActivityResponse200.js deleted file mode 100644 index 411222ad..00000000 --- a/src/model/UpdateActivityResponse200.js +++ /dev/null @@ -1,100 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ActivityResponseObject from './ActivityResponseObject'; -import AddActivityResponse200RelatedObjects from './AddActivityResponse200RelatedObjects'; - -/** - * The UpdateActivityResponse200 model module. - * @module model/UpdateActivityResponse200 - * @version 1.0.0 - */ -class UpdateActivityResponse200 { - /** - * Constructs a new UpdateActivityResponse200. - * @alias module:model/UpdateActivityResponse200 - */ - constructor() { - - UpdateActivityResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateActivityResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateActivityResponse200} obj Optional instance to populate. - * @return {module:model/UpdateActivityResponse200} The populated UpdateActivityResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateActivityResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ActivityResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = AddActivityResponse200RelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdateActivityResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/ActivityResponseObject} data - */ -UpdateActivityResponse200.prototype['data'] = undefined; - -/** - * @member {module:model/AddActivityResponse200RelatedObjects} related_objects - */ -UpdateActivityResponse200.prototype['related_objects'] = undefined; - - - - - - -export default UpdateActivityResponse200; - diff --git a/src/model/UpdateDealParameters.js b/src/model/UpdateDealParameters.js deleted file mode 100644 index 171ac679..00000000 --- a/src/model/UpdateDealParameters.js +++ /dev/null @@ -1,222 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateDealParameters model module. - * @module model/UpdateDealParameters - * @version 1.0.0 - */ -class UpdateDealParameters { - /** - * Constructs a new UpdateDealParameters. - * @alias module:model/UpdateDealParameters - */ - constructor() { - - UpdateDealParameters.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateDealParameters from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDealParameters} obj Optional instance to populate. - * @return {module:model/UpdateDealParameters} The populated UpdateDealParameters instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDealParameters(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - - delete data['value']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], ['Number']); - - delete data['label']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The value of the deal. - * @member {String} value - */ -UpdateDealParameters.prototype['value'] = undefined; - -/** - * Array of the deal labels IDs. - * @member {Array.} label - */ -UpdateDealParameters.prototype['label'] = undefined; - -/** - * The currency of the deal. Accepts a 3-character currency code. - * @member {String} currency - */ -UpdateDealParameters.prototype['currency'] = undefined; - -/** - * The ID of the user which will be the new owner of the deal. - * @member {Number} user_id - */ -UpdateDealParameters.prototype['user_id'] = undefined; - -/** - * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. - * @member {Number} person_id - */ -UpdateDealParameters.prototype['person_id'] = undefined; - -/** - * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. - * @member {Number} org_id - */ -UpdateDealParameters.prototype['org_id'] = undefined; - -/** - * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. - * @member {Number} pipeline_id - */ -UpdateDealParameters.prototype['pipeline_id'] = undefined; - -/** - * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. - * @member {Number} stage_id - */ -UpdateDealParameters.prototype['stage_id'] = undefined; - -/** - * open = Open, won = Won, lost = Lost, deleted = Deleted. - * @member {module:model/UpdateDealParameters.StatusEnum} status - */ -UpdateDealParameters.prototype['status'] = undefined; - -/** - * The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company which you can fetch with GET /v1/dealFields. - * @member {Number} channel - */ -UpdateDealParameters.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -UpdateDealParameters.prototype['channel_id'] = undefined; - - - - - -/** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ -UpdateDealParameters['StatusEnum'] = { - - /** - * value: "open" - * @const - */ - "open": "open", - - /** - * value: "won" - * @const - */ - "won": "won", - - /** - * value: "lost" - * @const - */ - "lost": "lost", - - /** - * value: "deleted" - * @const - */ - "deleted": "deleted" -}; - - - -export default UpdateDealParameters; - diff --git a/src/model/UpdateDealProduct.js b/src/model/UpdateDealProduct.js deleted file mode 100644 index 89839dc3..00000000 --- a/src/model/UpdateDealProduct.js +++ /dev/null @@ -1,347 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BillingFrequency from './BillingFrequency'; -import DealProductRequestBody from './DealProductRequestBody'; -import NewDealProductAllOf from './NewDealProductAllOf'; -import NewDealProductAllOf1 from './NewDealProductAllOf1'; -import NewDealProductAllOf2 from './NewDealProductAllOf2'; - -/** - * The UpdateDealProduct model module. - * @module model/UpdateDealProduct - * @version 1.0.0 - */ -class UpdateDealProduct { - /** - * Constructs a new UpdateDealProduct. - * @alias module:model/UpdateDealProduct - * @implements module:model/DealProductRequestBody - * @implements module:model/NewDealProductAllOf - * @implements module:model/NewDealProductAllOf1 - * @implements module:model/NewDealProductAllOf2 - */ - constructor() { - DealProductRequestBody.initialize(this);NewDealProductAllOf.initialize(this);NewDealProductAllOf1.initialize(this);NewDealProductAllOf2.initialize(this); - UpdateDealProduct.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateDealProduct from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDealProduct} obj Optional instance to populate. - * @return {module:model/UpdateDealProduct} The populated UpdateDealProduct instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDealProduct(); - DealProductRequestBody.constructFromObject(data, obj); - NewDealProductAllOf.constructFromObject(data, obj); - NewDealProductAllOf1.constructFromObject(data, obj); - NewDealProductAllOf2.constructFromObject(data, obj); - - if (data.hasOwnProperty('product_id')) { - obj['product_id'] = ApiClient.convertToType(data['product_id'], 'Number'); - - delete data['product_id']; - } - if (data.hasOwnProperty('item_price')) { - obj['item_price'] = ApiClient.convertToType(data['item_price'], 'Number'); - - delete data['item_price']; - } - if (data.hasOwnProperty('quantity')) { - obj['quantity'] = ApiClient.convertToType(data['quantity'], 'Number'); - - delete data['quantity']; - } - if (data.hasOwnProperty('discount')) { - obj['discount'] = ApiClient.convertToType(data['discount'], 'Number'); - - delete data['discount']; - } - if (data.hasOwnProperty('discount_type')) { - obj['discount_type'] = ApiClient.convertToType(data['discount_type'], 'String'); - - delete data['discount_type']; - } - if (data.hasOwnProperty('product_variation_id')) { - obj['product_variation_id'] = ApiClient.convertToType(data['product_variation_id'], 'Number'); - - delete data['product_variation_id']; - } - if (data.hasOwnProperty('comments')) { - obj['comments'] = ApiClient.convertToType(data['comments'], 'String'); - - delete data['comments']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('tax_method')) { - obj['tax_method'] = ApiClient.convertToType(data['tax_method'], 'String'); - - delete data['tax_method']; - } - if (data.hasOwnProperty('enabled_flag')) { - obj['enabled_flag'] = ApiClient.convertToType(data['enabled_flag'], 'Boolean'); - - delete data['enabled_flag']; - } - if (data.hasOwnProperty('billing_frequency')) { - obj['billing_frequency'] = BillingFrequency.constructFromObject(data['billing_frequency']); - - delete data['billing_frequency']; - } - if (data.hasOwnProperty('billing_frequency_cycles')) { - obj['billing_frequency_cycles'] = ApiClient.convertToType(data['billing_frequency_cycles'], 'Number'); - - delete data['billing_frequency_cycles']; - } - if (data.hasOwnProperty('billing_start_date')) { - obj['billing_start_date'] = ApiClient.convertToType(data['billing_start_date'], 'String'); - - delete data['billing_start_date']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the product to use - * @member {Number} product_id - */ -UpdateDealProduct.prototype['product_id'] = undefined; - -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -UpdateDealProduct.prototype['item_price'] = undefined; - -/** - * How many items of this product will be added to the deal - * @member {Number} quantity - */ -UpdateDealProduct.prototype['quantity'] = undefined; - -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -UpdateDealProduct.prototype['discount'] = 0; - -/** - * The type of the discount's value - * @member {module:model/UpdateDealProduct.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -UpdateDealProduct.prototype['discount_type'] = 'percentage'; - -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -UpdateDealProduct.prototype['product_variation_id'] = undefined; - -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -UpdateDealProduct.prototype['comments'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -UpdateDealProduct.prototype['tax'] = 0; - -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount - * @member {module:model/UpdateDealProduct.TaxMethodEnum} tax_method - */ -UpdateDealProduct.prototype['tax_method'] = undefined; - -/** - * Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring - * @member {Boolean} enabled_flag - * @default true - */ -UpdateDealProduct.prototype['enabled_flag'] = true; - -/** - * @member {module:model/BillingFrequency} billing_frequency - */ -UpdateDealProduct.prototype['billing_frequency'] = undefined; - -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -UpdateDealProduct.prototype['billing_frequency_cycles'] = undefined; - -/** - * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future - * @member {String} billing_start_date - */ -UpdateDealProduct.prototype['billing_start_date'] = undefined; - - -// Implement DealProductRequestBody interface: -/** - * The ID of the product to use - * @member {Number} product_id - */ -DealProductRequestBody.prototype['product_id'] = undefined; -/** - * The price at which this product will be added to the deal - * @member {Number} item_price - */ -DealProductRequestBody.prototype['item_price'] = undefined; -/** - * How many items of this product will be added to the deal - * @member {Number} quantity - */ -DealProductRequestBody.prototype['quantity'] = undefined; -/** - * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage - * @member {Number} discount - * @default 0 - */ -DealProductRequestBody.prototype['discount'] = 0; -/** - * The type of the discount's value - * @member {module:model/DealProductRequestBody.DiscountTypeEnum} discount_type - * @default 'percentage' - */ -DealProductRequestBody.prototype['discount_type'] = 'percentage'; -/** - * The ID of the product variation to use. When omitted, no variation will be used - * @member {Number} product_variation_id - */ -DealProductRequestBody.prototype['product_variation_id'] = undefined; -/** - * A textual comment associated with this product-deal attachment - * @member {String} comments - */ -DealProductRequestBody.prototype['comments'] = undefined; -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -DealProductRequestBody.prototype['tax'] = 0; -/** - * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount - * @member {module:model/DealProductRequestBody.TaxMethodEnum} tax_method - */ -DealProductRequestBody.prototype['tax_method'] = undefined; -/** - * Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring - * @member {Boolean} enabled_flag - * @default true - */ -DealProductRequestBody.prototype['enabled_flag'] = true; -// Implement NewDealProductAllOf interface: -/** - * @member {module:model/BillingFrequency} billing_frequency - */ -NewDealProductAllOf.prototype['billing_frequency'] = undefined; -// Implement NewDealProductAllOf1 interface: -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -NewDealProductAllOf1.prototype['billing_frequency_cycles'] = undefined; -// Implement NewDealProductAllOf2 interface: -/** - * Only available in Advanced and above plans The billing start date. Must be between 15 years in the past and 15 years in the future - * @member {String} billing_start_date - */ -NewDealProductAllOf2.prototype['billing_start_date'] = undefined; - - - -/** - * Allowed values for the discount_type property. - * @enum {String} - * @readonly - */ -UpdateDealProduct['DiscountTypeEnum'] = { - - /** - * value: "percentage" - * @const - */ - "percentage": "percentage", - - /** - * value: "amount" - * @const - */ - "amount": "amount" -}; - - -/** - * Allowed values for the tax_method property. - * @enum {String} - * @readonly - */ -UpdateDealProduct['TaxMethodEnum'] = { - - /** - * value: "exclusive" - * @const - */ - "exclusive": "exclusive", - - /** - * value: "inclusive" - * @const - */ - "inclusive": "inclusive", - - /** - * value: "none" - * @const - */ - "none": "none" -}; - - - -export default UpdateDealProduct; - diff --git a/src/model/UpdateDealRequest.js b/src/model/UpdateDealRequest.js deleted file mode 100644 index 4ac1a017..00000000 --- a/src/model/UpdateDealRequest.js +++ /dev/null @@ -1,418 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasicDeal from './BasicDeal'; -import DealTitleParameter from './DealTitleParameter'; -import UpdateDealParameters from './UpdateDealParameters'; -import VisibleTo from './VisibleTo'; - -/** - * The UpdateDealRequest model module. - * @module model/UpdateDealRequest - * @version 1.0.0 - */ -class UpdateDealRequest { - /** - * Constructs a new UpdateDealRequest. - * @alias module:model/UpdateDealRequest - * @implements module:model/DealTitleParameter - * @implements module:model/UpdateDealParameters - * @implements module:model/BasicDeal - */ - constructor() { - DealTitleParameter.initialize(this);UpdateDealParameters.initialize(this);BasicDeal.initialize(this); - UpdateDealRequest.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateDealRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDealRequest} obj Optional instance to populate. - * @return {module:model/UpdateDealRequest} The populated UpdateDealRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDealRequest(); - DealTitleParameter.constructFromObject(data, obj); - UpdateDealParameters.constructFromObject(data, obj); - BasicDeal.constructFromObject(data, obj); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'String'); - - delete data['value']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], ['Number']); - - delete data['label']; - } - if (data.hasOwnProperty('currency')) { - obj['currency'] = ApiClient.convertToType(data['currency'], 'String'); - - delete data['currency']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('stage_id')) { - obj['stage_id'] = ApiClient.convertToType(data['stage_id'], 'Number'); - - delete data['stage_id']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - if (data.hasOwnProperty('won_time')) { - obj['won_time'] = ApiClient.convertToType(data['won_time'], 'String'); - - delete data['won_time']; - } - if (data.hasOwnProperty('lost_time')) { - obj['lost_time'] = ApiClient.convertToType(data['lost_time'], 'String'); - - delete data['lost_time']; - } - if (data.hasOwnProperty('close_time')) { - obj['close_time'] = ApiClient.convertToType(data['close_time'], 'String'); - - delete data['close_time']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('probability')) { - obj['probability'] = ApiClient.convertToType(data['probability'], 'Number'); - - delete data['probability']; - } - if (data.hasOwnProperty('lost_reason')) { - obj['lost_reason'] = ApiClient.convertToType(data['lost_reason'], 'String'); - - delete data['lost_reason']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The title of the deal - * @member {String} title - */ -UpdateDealRequest.prototype['title'] = undefined; - -/** - * The value of the deal. - * @member {String} value - */ -UpdateDealRequest.prototype['value'] = undefined; - -/** - * Array of the deal labels IDs. - * @member {Array.} label - */ -UpdateDealRequest.prototype['label'] = undefined; - -/** - * The currency of the deal. Accepts a 3-character currency code. - * @member {String} currency - */ -UpdateDealRequest.prototype['currency'] = undefined; - -/** - * The ID of the user which will be the new owner of the deal. - * @member {Number} user_id - */ -UpdateDealRequest.prototype['user_id'] = undefined; - -/** - * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. - * @member {Number} person_id - */ -UpdateDealRequest.prototype['person_id'] = undefined; - -/** - * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. - * @member {Number} org_id - */ -UpdateDealRequest.prototype['org_id'] = undefined; - -/** - * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. - * @member {Number} pipeline_id - */ -UpdateDealRequest.prototype['pipeline_id'] = undefined; - -/** - * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. - * @member {Number} stage_id - */ -UpdateDealRequest.prototype['stage_id'] = undefined; - -/** - * open = Open, won = Won, lost = Lost, deleted = Deleted. - * @member {module:model/UpdateDealRequest.StatusEnum} status - */ -UpdateDealRequest.prototype['status'] = undefined; - -/** - * The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company which you can fetch with GET /v1/dealFields. - * @member {Number} channel - */ -UpdateDealRequest.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -UpdateDealRequest.prototype['channel_id'] = undefined; - -/** - * The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. - * @member {String} won_time - */ -UpdateDealRequest.prototype['won_time'] = undefined; - -/** - * The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. - * @member {String} lost_time - */ -UpdateDealRequest.prototype['lost_time'] = undefined; - -/** - * The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} close_time - */ -UpdateDealRequest.prototype['close_time'] = undefined; - -/** - * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. - * @member {Date} expected_close_date - */ -UpdateDealRequest.prototype['expected_close_date'] = undefined; - -/** - * The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. - * @member {Number} probability - */ -UpdateDealRequest.prototype['probability'] = undefined; - -/** - * The optional message about why the deal was lost (to be used when status = lost) - * @member {String} lost_reason - */ -UpdateDealRequest.prototype['lost_reason'] = undefined; - -/** - * The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -UpdateDealRequest.prototype['visible_to'] = undefined; - - -// Implement DealTitleParameter interface: -/** - * The title of the deal - * @member {String} title - */ -DealTitleParameter.prototype['title'] = undefined; -// Implement UpdateDealParameters interface: -/** - * The value of the deal. - * @member {String} value - */ -UpdateDealParameters.prototype['value'] = undefined; -/** - * Array of the deal labels IDs. - * @member {Array.} label - */ -UpdateDealParameters.prototype['label'] = undefined; -/** - * The currency of the deal. Accepts a 3-character currency code. - * @member {String} currency - */ -UpdateDealParameters.prototype['currency'] = undefined; -/** - * The ID of the user which will be the new owner of the deal. - * @member {Number} user_id - */ -UpdateDealParameters.prototype['user_id'] = undefined; -/** - * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. - * @member {Number} person_id - */ -UpdateDealParameters.prototype['person_id'] = undefined; -/** - * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. - * @member {Number} org_id - */ -UpdateDealParameters.prototype['org_id'] = undefined; -/** - * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. - * @member {Number} pipeline_id - */ -UpdateDealParameters.prototype['pipeline_id'] = undefined; -/** - * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. - * @member {Number} stage_id - */ -UpdateDealParameters.prototype['stage_id'] = undefined; -/** - * open = Open, won = Won, lost = Lost, deleted = Deleted. - * @member {module:model/UpdateDealParameters.StatusEnum} status - */ -UpdateDealParameters.prototype['status'] = undefined; -/** - * The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company which you can fetch with GET /v1/dealFields. - * @member {Number} channel - */ -UpdateDealParameters.prototype['channel'] = undefined; -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -UpdateDealParameters.prototype['channel_id'] = undefined; -// Implement BasicDeal interface: -/** - * The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. - * @member {String} won_time - */ -BasicDeal.prototype['won_time'] = undefined; -/** - * The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. - * @member {String} lost_time - */ -BasicDeal.prototype['lost_time'] = undefined; -/** - * The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. - * @member {String} close_time - */ -BasicDeal.prototype['close_time'] = undefined; -/** - * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. - * @member {Date} expected_close_date - */ -BasicDeal.prototype['expected_close_date'] = undefined; -/** - * The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. - * @member {Number} probability - */ -BasicDeal.prototype['probability'] = undefined; -/** - * The optional message about why the deal was lost (to be used when status = lost) - * @member {String} lost_reason - */ -BasicDeal.prototype['lost_reason'] = undefined; -/** - * The visibility of the deal. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -BasicDeal.prototype['visible_to'] = undefined; - - - -/** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ -UpdateDealRequest['StatusEnum'] = { - - /** - * value: "open" - * @const - */ - "open": "open", - - /** - * value: "won" - * @const - */ - "won": "won", - - /** - * value: "lost" - * @const - */ - "lost": "lost", - - /** - * value: "deleted" - * @const - */ - "deleted": "deleted" -}; - - - -export default UpdateDealRequest; - diff --git a/src/model/UpdateFile.js b/src/model/UpdateFile.js deleted file mode 100644 index 6a0059f9..00000000 --- a/src/model/UpdateFile.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import FileData from './FileData'; - -/** - * The UpdateFile model module. - * @module model/UpdateFile - * @version 1.0.0 - */ -class UpdateFile { - /** - * Constructs a new UpdateFile. - * @alias module:model/UpdateFile - */ - constructor() { - - UpdateFile.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateFile from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateFile} obj Optional instance to populate. - * @return {module:model/UpdateFile} The populated UpdateFile instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateFile(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = FileData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -UpdateFile.prototype['success'] = undefined; - -/** - * @member {module:model/FileData} data - */ -UpdateFile.prototype['data'] = undefined; - - - - - - -export default UpdateFile; - diff --git a/src/model/UpdateFileRequest.js b/src/model/UpdateFileRequest.js deleted file mode 100644 index 11aca3df..00000000 --- a/src/model/UpdateFileRequest.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateFileRequest model module. - * @module model/UpdateFileRequest - * @version 1.0.0 - */ -class UpdateFileRequest { - /** - * Constructs a new UpdateFileRequest. - * @alias module:model/UpdateFileRequest - */ - constructor() { - - UpdateFileRequest.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateFileRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateFileRequest} obj Optional instance to populate. - * @return {module:model/UpdateFileRequest} The populated UpdateFileRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateFileRequest(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * Visible name of the file - * @member {String} name - */ -UpdateFileRequest.prototype['name'] = undefined; - -/** - * Description of the file - * @member {String} description - */ -UpdateFileRequest.prototype['description'] = undefined; - - - - - - -export default UpdateFileRequest; - diff --git a/src/model/UpdateFilterRequest.js b/src/model/UpdateFilterRequest.js deleted file mode 100644 index 84d14a48..00000000 --- a/src/model/UpdateFilterRequest.js +++ /dev/null @@ -1,92 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateFilterRequest model module. - * @module model/UpdateFilterRequest - * @version 1.0.0 - */ -class UpdateFilterRequest { - /** - * Constructs a new UpdateFilterRequest. - * @alias module:model/UpdateFilterRequest - * @param conditions {Object} The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter and `date` values must be supplied in the `YYYY-MM-DD` format. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application. - */ - constructor(conditions) { - - UpdateFilterRequest.initialize(this, conditions); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, conditions) { - obj['conditions'] = conditions; - } - - /** - * Constructs a UpdateFilterRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateFilterRequest} obj Optional instance to populate. - * @return {module:model/UpdateFilterRequest} The populated UpdateFilterRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateFilterRequest(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('conditions')) { - obj['conditions'] = ApiClient.convertToType(data['conditions'], Object); - - delete data['conditions']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the filter - * @member {String} name - */ -UpdateFilterRequest.prototype['name'] = undefined; - -/** - * The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter and `date` values must be supplied in the `YYYY-MM-DD` format. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE '$%'\"`, `\"LIKE '%$%'\"`, `\"NOT LIKE '$%'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application. - * @member {Object} conditions - */ -UpdateFilterRequest.prototype['conditions'] = undefined; - - - - - - -export default UpdateFilterRequest; - diff --git a/src/model/UpdateLeadLabelRequest.js b/src/model/UpdateLeadLabelRequest.js deleted file mode 100644 index f7ed631b..00000000 --- a/src/model/UpdateLeadLabelRequest.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadLabelColor from './LeadLabelColor'; - -/** - * The UpdateLeadLabelRequest model module. - * @module model/UpdateLeadLabelRequest - * @version 1.0.0 - */ -class UpdateLeadLabelRequest { - /** - * Constructs a new UpdateLeadLabelRequest. - * @alias module:model/UpdateLeadLabelRequest - */ - constructor() { - - UpdateLeadLabelRequest.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateLeadLabelRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateLeadLabelRequest} obj Optional instance to populate. - * @return {module:model/UpdateLeadLabelRequest} The populated UpdateLeadLabelRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateLeadLabelRequest(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('color')) { - obj['color'] = LeadLabelColor.constructFromObject(data['color']); - - delete data['color']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the lead label - * @member {String} name - */ -UpdateLeadLabelRequest.prototype['name'] = undefined; - -/** - * @member {module:model/LeadLabelColor} color - */ -UpdateLeadLabelRequest.prototype['color'] = undefined; - - - - - - -export default UpdateLeadLabelRequest; - diff --git a/src/model/UpdateLeadRequest.js b/src/model/UpdateLeadRequest.js deleted file mode 100644 index 1b4cf30c..00000000 --- a/src/model/UpdateLeadRequest.js +++ /dev/null @@ -1,201 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadValue from './LeadValue'; -import VisibleTo from './VisibleTo'; - -/** - * The UpdateLeadRequest model module. - * @module model/UpdateLeadRequest - * @version 1.0.0 - */ -class UpdateLeadRequest { - /** - * Constructs a new UpdateLeadRequest. - * @alias module:model/UpdateLeadRequest - */ - constructor() { - - UpdateLeadRequest.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateLeadRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateLeadRequest} obj Optional instance to populate. - * @return {module:model/UpdateLeadRequest} The populated UpdateLeadRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateLeadRequest(); - - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - - delete data['title']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['String']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('person_id')) { - obj['person_id'] = ApiClient.convertToType(data['person_id'], 'Number'); - - delete data['person_id']; - } - if (data.hasOwnProperty('organization_id')) { - obj['organization_id'] = ApiClient.convertToType(data['organization_id'], 'Number'); - - delete data['organization_id']; - } - if (data.hasOwnProperty('is_archived')) { - obj['is_archived'] = ApiClient.convertToType(data['is_archived'], 'Boolean'); - - delete data['is_archived']; - } - if (data.hasOwnProperty('value')) { - obj['value'] = LeadValue.constructFromObject(data['value']); - - delete data['value']; - } - if (data.hasOwnProperty('expected_close_date')) { - obj['expected_close_date'] = ApiClient.convertToType(data['expected_close_date'], 'Date'); - - delete data['expected_close_date']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('was_seen')) { - obj['was_seen'] = ApiClient.convertToType(data['was_seen'], 'Boolean'); - - delete data['was_seen']; - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = ApiClient.convertToType(data['channel'], 'Number'); - - delete data['channel']; - } - if (data.hasOwnProperty('channel_id')) { - obj['channel_id'] = ApiClient.convertToType(data['channel_id'], 'String'); - - delete data['channel_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the lead - * @member {String} title - */ -UpdateLeadRequest.prototype['title'] = undefined; - -/** - * The ID of the user which will be the owner of the created lead. If not provided, the user making the request will be used. - * @member {Number} owner_id - */ -UpdateLeadRequest.prototype['owner_id'] = undefined; - -/** - * The IDs of the lead labels which will be associated with the lead - * @member {Array.} label_ids - */ -UpdateLeadRequest.prototype['label_ids'] = undefined; - -/** - * The ID of a person which this lead will be linked to. If the person does not exist yet, it needs to be created first. A lead always has to be linked to a person or organization or both. - * @member {Number} person_id - */ -UpdateLeadRequest.prototype['person_id'] = undefined; - -/** - * The ID of an organization which this lead will be linked to. If the organization does not exist yet, it needs to be created first. A lead always has to be linked to a person or organization or both. - * @member {Number} organization_id - */ -UpdateLeadRequest.prototype['organization_id'] = undefined; - -/** - * A flag indicating whether the lead is archived or not - * @member {Boolean} is_archived - */ -UpdateLeadRequest.prototype['is_archived'] = undefined; - -/** - * @member {module:model/LeadValue} value - */ -UpdateLeadRequest.prototype['value'] = undefined; - -/** - * The date of when the deal which will be created from the lead is expected to be closed. In ISO 8601 format: YYYY-MM-DD. - * @member {Date} expected_close_date - */ -UpdateLeadRequest.prototype['expected_close_date'] = undefined; - -/** - * The visibility of the lead. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -UpdateLeadRequest.prototype['visible_to'] = undefined; - -/** - * A flag indicating whether the lead was seen by someone in the Pipedrive UI - * @member {Boolean} was_seen - */ -UpdateLeadRequest.prototype['was_seen'] = undefined; - -/** - * The ID of Marketing channel this lead was created from. Provided value must be one of the channels configured for your company which you can fetch with GET /v1/dealFields. - * @member {Number} channel - */ -UpdateLeadRequest.prototype['channel'] = undefined; - -/** - * The optional ID to further distinguish the Marketing channel. - * @member {String} channel_id - */ -UpdateLeadRequest.prototype['channel_id'] = undefined; - - - - - - -export default UpdateLeadRequest; - diff --git a/src/model/UpdateMailThreadDetailsRequest.js b/src/model/UpdateMailThreadDetailsRequest.js deleted file mode 100644 index c37d27ae..00000000 --- a/src/model/UpdateMailThreadDetailsRequest.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBoolean from './NumberBoolean'; - -/** - * The UpdateMailThreadDetailsRequest model module. - * @module model/UpdateMailThreadDetailsRequest - * @version 1.0.0 - */ -class UpdateMailThreadDetailsRequest { - /** - * Constructs a new UpdateMailThreadDetailsRequest. - * @alias module:model/UpdateMailThreadDetailsRequest - */ - constructor() { - - UpdateMailThreadDetailsRequest.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateMailThreadDetailsRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateMailThreadDetailsRequest} obj Optional instance to populate. - * @return {module:model/UpdateMailThreadDetailsRequest} The populated UpdateMailThreadDetailsRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateMailThreadDetailsRequest(); - - if (data.hasOwnProperty('deal_id')) { - obj['deal_id'] = ApiClient.convertToType(data['deal_id'], 'Number'); - - delete data['deal_id']; - } - if (data.hasOwnProperty('lead_id')) { - obj['lead_id'] = ApiClient.convertToType(data['lead_id'], 'String'); - - delete data['lead_id']; - } - if (data.hasOwnProperty('shared_flag')) { - obj['shared_flag'] = ApiClient.convertToType(data['shared_flag'], NumberBoolean); - - delete data['shared_flag']; - } - if (data.hasOwnProperty('read_flag')) { - obj['read_flag'] = ApiClient.convertToType(data['read_flag'], NumberBoolean); - - delete data['read_flag']; - } - if (data.hasOwnProperty('archived_flag')) { - obj['archived_flag'] = ApiClient.convertToType(data['archived_flag'], NumberBoolean); - - delete data['archived_flag']; - } - - if (Object.keys(data).length > 0) { - obj['extra'] = data; - } - - } - return obj; - } - - -} - -/** - * The ID of the deal this thread is associated with - * @member {Number} deal_id - */ -UpdateMailThreadDetailsRequest.prototype['deal_id'] = undefined; - -/** - * The ID of the lead this thread is associated with - * @member {String} lead_id - */ -UpdateMailThreadDetailsRequest.prototype['lead_id'] = undefined; - -/** - * Whether this thread is shared with other users in your company - * @member {module:model/NumberBoolean} shared_flag - */ -UpdateMailThreadDetailsRequest.prototype['shared_flag'] = undefined; - -/** - * Whether this thread read or unread - * @member {module:model/NumberBoolean} read_flag - */ -UpdateMailThreadDetailsRequest.prototype['read_flag'] = undefined; - -/** - * Whether this thread is archived or not. You can only archive threads that belong to Inbox folder. Archived threads will disappear from Inbox. - * @member {module:model/NumberBoolean} archived_flag - */ -UpdateMailThreadDetailsRequest.prototype['archived_flag'] = undefined; - - - - - - -export default UpdateMailThreadDetailsRequest; - diff --git a/src/model/UpdateOrganization.js b/src/model/UpdateOrganization.js deleted file mode 100644 index de774f90..00000000 --- a/src/model/UpdateOrganization.js +++ /dev/null @@ -1,157 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasicOrganization from './BasicOrganization'; -import UpdateOrganizationAllOf from './UpdateOrganizationAllOf'; -import VisibleTo from './VisibleTo'; - -/** - * The UpdateOrganization model module. - * @module model/UpdateOrganization - * @version 1.0.0 - */ -class UpdateOrganization { - /** - * Constructs a new UpdateOrganization. - * @alias module:model/UpdateOrganization - * @implements module:model/UpdateOrganizationAllOf - * @implements module:model/BasicOrganization - */ - constructor() { - UpdateOrganizationAllOf.initialize(this);BasicOrganization.initialize(this); - UpdateOrganization.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateOrganization from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateOrganization} obj Optional instance to populate. - * @return {module:model/UpdateOrganization} The populated UpdateOrganization instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateOrganization(); - UpdateOrganizationAllOf.constructFromObject(data, obj); - BasicOrganization.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the organization - * @member {String} name - */ -UpdateOrganization.prototype['name'] = undefined; - -/** - * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. - * @member {Number} owner_id - */ -UpdateOrganization.prototype['owner_id'] = undefined; - -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -UpdateOrganization.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -UpdateOrganization.prototype['label_ids'] = undefined; - -/** - * The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -UpdateOrganization.prototype['visible_to'] = undefined; - - -// Implement UpdateOrganizationAllOf interface: -/** - * The name of the organization - * @member {String} name - */ -UpdateOrganizationAllOf.prototype['name'] = undefined; -// Implement BasicOrganization interface: -/** - * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. - * @member {Number} owner_id - */ -BasicOrganization.prototype['owner_id'] = undefined; -/** - * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BasicOrganization.prototype['label'] = undefined; -/** - * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BasicOrganization.prototype['label_ids'] = undefined; -/** - * The visibility of the organization. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -BasicOrganization.prototype['visible_to'] = undefined; - - - - -export default UpdateOrganization; - diff --git a/src/model/UpdateOrganizationAllOf.js b/src/model/UpdateOrganizationAllOf.js deleted file mode 100644 index bcddc069..00000000 --- a/src/model/UpdateOrganizationAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateOrganizationAllOf model module. - * @module model/UpdateOrganizationAllOf - * @version 1.0.0 - */ -class UpdateOrganizationAllOf { - /** - * Constructs a new UpdateOrganizationAllOf. - * @alias module:model/UpdateOrganizationAllOf - */ - constructor() { - - UpdateOrganizationAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateOrganizationAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateOrganizationAllOf} obj Optional instance to populate. - * @return {module:model/UpdateOrganizationAllOf} The populated UpdateOrganizationAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateOrganizationAllOf(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the organization - * @member {String} name - */ -UpdateOrganizationAllOf.prototype['name'] = undefined; - - - - - - -export default UpdateOrganizationAllOf; - diff --git a/src/model/UpdatePerson.js b/src/model/UpdatePerson.js deleted file mode 100644 index d3e0dfc9..00000000 --- a/src/model/UpdatePerson.js +++ /dev/null @@ -1,240 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BasePersonItemPhone from './BasePersonItemPhone'; -import BasicPerson from './BasicPerson'; -import BasicPersonEmail from './BasicPersonEmail'; -import MarketingStatus from './MarketingStatus'; -import UpdatePersonAllOf from './UpdatePersonAllOf'; -import VisibleTo from './VisibleTo'; - -/** - * The UpdatePerson model module. - * @module model/UpdatePerson - * @version 1.0.0 - */ -class UpdatePerson { - /** - * Constructs a new UpdatePerson. - * @alias module:model/UpdatePerson - * @implements module:model/UpdatePersonAllOf - * @implements module:model/BasicPerson - */ - constructor() { - UpdatePersonAllOf.initialize(this);BasicPerson.initialize(this); - UpdatePerson.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdatePerson from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePerson} obj Optional instance to populate. - * @return {module:model/UpdatePerson} The populated UpdatePerson instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePerson(); - UpdatePersonAllOf.constructFromObject(data, obj); - BasicPerson.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('org_id')) { - obj['org_id'] = ApiClient.convertToType(data['org_id'], 'Number'); - - delete data['org_id']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], [BasicPersonEmail]); - - delete data['email']; - } - if (data.hasOwnProperty('phone')) { - obj['phone'] = ApiClient.convertToType(data['phone'], [BasePersonItemPhone]); - - delete data['phone']; - } - if (data.hasOwnProperty('label')) { - obj['label'] = ApiClient.convertToType(data['label'], 'Number'); - - delete data['label']; - } - if (data.hasOwnProperty('label_ids')) { - obj['label_ids'] = ApiClient.convertToType(data['label_ids'], ['Number']); - - delete data['label_ids']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('marketing_status')) { - obj['marketing_status'] = ApiClient.convertToType(data['marketing_status'], MarketingStatus); - - delete data['marketing_status']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the person - * @member {String} name - */ -UpdatePerson.prototype['name'] = undefined; - -/** - * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. - * @member {Number} owner_id - */ -UpdatePerson.prototype['owner_id'] = undefined; - -/** - * The ID of the organization this person will belong to - * @member {Number} org_id - */ -UpdatePerson.prototype['org_id'] = undefined; - -/** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. - * @member {Array.} email - */ -UpdatePerson.prototype['email'] = undefined; - -/** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @member {Array.} phone - */ -UpdatePerson.prototype['phone'] = undefined; - -/** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -UpdatePerson.prototype['label'] = undefined; - -/** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -UpdatePerson.prototype['label_ids'] = undefined; - -/** - * The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -UpdatePerson.prototype['visible_to'] = undefined; - -/** - * If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.
ValueDescription
`no_consent`The customer has not given consent to receive any marketing communications
`unsubscribed`The customers have unsubscribed from ALL marketing communications
`subscribed`The customers are subscribed and are counted towards marketing caps
`archived`The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for
- * @member {module:model/MarketingStatus} marketing_status - */ -UpdatePerson.prototype['marketing_status'] = undefined; - -/** - * The optional creation date & time of the person in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -UpdatePerson.prototype['add_time'] = undefined; - - -// Implement UpdatePersonAllOf interface: -/** - * The name of the person - * @member {String} name - */ -UpdatePersonAllOf.prototype['name'] = undefined; -// Implement BasicPerson interface: -/** - * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. - * @member {Number} owner_id - */ -BasicPerson.prototype['owner_id'] = undefined; -/** - * The ID of the organization this person will belong to - * @member {Number} org_id - */ -BasicPerson.prototype['org_id'] = undefined; -/** - * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. - * @member {Array.} email - */ -BasicPerson.prototype['email'] = undefined; -/** - * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. - * @member {Array.} phone - */ -BasicPerson.prototype['phone'] = undefined; -/** - * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. - * @member {Number} label - */ -BasicPerson.prototype['label'] = undefined; -/** - * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. - * @member {Array.} label_ids - */ -BasicPerson.prototype['label_ids'] = undefined; -/** - * The visibility of the person. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -BasicPerson.prototype['visible_to'] = undefined; -/** - * If the person does not have a valid email address, then the marketing status is **not set** and `no_consent` is returned for the `marketing_status` value when the new person is created. If the change is forbidden, the status will remain unchanged for every call that tries to modify the marketing status. Please be aware that it is only allowed **once** to change the marketing status from an old status to a new one.
ValueDescription
`no_consent`The customer has not given consent to receive any marketing communications
`unsubscribed`The customers have unsubscribed from ALL marketing communications
`subscribed`The customers are subscribed and are counted towards marketing caps
`archived`The customers with `subscribed` status can be moved to `archived` to save consent, but they are not paid for
- * @member {module:model/MarketingStatus} marketing_status - */ -BasicPerson.prototype['marketing_status'] = undefined; -/** - * The optional creation date & time of the person in UTC. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -BasicPerson.prototype['add_time'] = undefined; - - - - -export default UpdatePerson; - diff --git a/src/model/UpdatePersonAllOf.js b/src/model/UpdatePersonAllOf.js deleted file mode 100644 index 7bbf4922..00000000 --- a/src/model/UpdatePersonAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdatePersonAllOf model module. - * @module model/UpdatePersonAllOf - * @version 1.0.0 - */ -class UpdatePersonAllOf { - /** - * Constructs a new UpdatePersonAllOf. - * @alias module:model/UpdatePersonAllOf - */ - constructor() { - - UpdatePersonAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdatePersonAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePersonAllOf} obj Optional instance to populate. - * @return {module:model/UpdatePersonAllOf} The populated UpdatePersonAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePersonAllOf(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the person - * @member {String} name - */ -UpdatePersonAllOf.prototype['name'] = undefined; - - - - - - -export default UpdatePersonAllOf; - diff --git a/src/model/UpdatePersonResponse.js b/src/model/UpdatePersonResponse.js deleted file mode 100644 index e5725bda..00000000 --- a/src/model/UpdatePersonResponse.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddPersonResponseAllOf from './AddPersonResponseAllOf'; -import BaseResponse from './BaseResponse'; -import ListProductsResponseAllOfRelatedObjects from './ListProductsResponseAllOfRelatedObjects'; -import PersonItem from './PersonItem'; - -/** - * The UpdatePersonResponse model module. - * @module model/UpdatePersonResponse - * @version 1.0.0 - */ -class UpdatePersonResponse { - /** - * Constructs a new UpdatePersonResponse. - * @alias module:model/UpdatePersonResponse - * @implements module:model/BaseResponse - * @implements module:model/AddPersonResponseAllOf - */ - constructor() { - BaseResponse.initialize(this);AddPersonResponseAllOf.initialize(this); - UpdatePersonResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdatePersonResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePersonResponse} obj Optional instance to populate. - * @return {module:model/UpdatePersonResponse} The populated UpdatePersonResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePersonResponse(); - BaseResponse.constructFromObject(data, obj); - AddPersonResponseAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = PersonItem.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = ListProductsResponseAllOfRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -UpdatePersonResponse.prototype['success'] = undefined; - -/** - * @member {module:model/PersonItem} data - */ -UpdatePersonResponse.prototype['data'] = undefined; - -/** - * @member {module:model/ListProductsResponseAllOfRelatedObjects} related_objects - */ -UpdatePersonResponse.prototype['related_objects'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement AddPersonResponseAllOf interface: -/** - * @member {module:model/PersonItem} data - */ -AddPersonResponseAllOf.prototype['data'] = undefined; -/** - * @member {module:model/ListProductsResponseAllOfRelatedObjects} related_objects - */ -AddPersonResponseAllOf.prototype['related_objects'] = undefined; - - - - -export default UpdatePersonResponse; - diff --git a/src/model/UpdateProductField.js b/src/model/UpdateProductField.js deleted file mode 100644 index 396ad4c1..00000000 --- a/src/model/UpdateProductField.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateProductField model module. - * @module model/UpdateProductField - * @version 1.0.0 - */ -class UpdateProductField { - /** - * Constructs a new UpdateProductField. - * @alias module:model/UpdateProductField - */ - constructor() { - - UpdateProductField.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateProductField from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateProductField} obj Optional instance to populate. - * @return {module:model/UpdateProductField} The populated UpdateProductField instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateProductField(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [Object]); - - delete data['options']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the field - * @member {String} name - */ -UpdateProductField.prototype['name'] = undefined; - -/** - * When `field_type` is either set or enum, possible options on update must be supplied as an array of objects each containing id and label, for example: [{\"id\":1, \"label\":\"red\"},{\"id\":2, \"label\":\"blue\"},{\"id\":3, \"label\":\"lilac\"}] - * @member {Array.} options - */ -UpdateProductField.prototype['options'] = undefined; - - - - - - -export default UpdateProductField; - diff --git a/src/model/UpdateProductRequestBody.js b/src/model/UpdateProductRequestBody.js deleted file mode 100644 index 11487323..00000000 --- a/src/model/UpdateProductRequestBody.js +++ /dev/null @@ -1,282 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddProductRequestBodyAllOf from './AddProductRequestBodyAllOf'; -import BillingFrequency1 from './BillingFrequency1'; -import NameObject from './NameObject'; -import NewDealProductAllOf1 from './NewDealProductAllOf1'; -import ProductRequest from './ProductRequest'; -import VisibleTo from './VisibleTo'; - -/** - * The UpdateProductRequestBody model module. - * @module model/UpdateProductRequestBody - * @version 1.0.0 - */ -class UpdateProductRequestBody { - /** - * Constructs a new UpdateProductRequestBody. - * @alias module:model/UpdateProductRequestBody - * @implements module:model/NameObject - * @implements module:model/ProductRequest - * @implements module:model/AddProductRequestBodyAllOf - * @implements module:model/NewDealProductAllOf1 - */ - constructor() { - NameObject.initialize(this);ProductRequest.initialize(this);AddProductRequestBodyAllOf.initialize(this);NewDealProductAllOf1.initialize(this); - UpdateProductRequestBody.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateProductRequestBody from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateProductRequestBody} obj Optional instance to populate. - * @return {module:model/UpdateProductRequestBody} The populated UpdateProductRequestBody instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateProductRequestBody(); - NameObject.constructFromObject(data, obj); - ProductRequest.constructFromObject(data, obj); - AddProductRequestBodyAllOf.constructFromObject(data, obj); - NewDealProductAllOf1.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - - delete data['code']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); - - delete data['unit']; - } - if (data.hasOwnProperty('tax')) { - obj['tax'] = ApiClient.convertToType(data['tax'], 'Number'); - - delete data['tax']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - if (data.hasOwnProperty('selectable')) { - obj['selectable'] = ApiClient.convertToType(data['selectable'], 'Boolean'); - - delete data['selectable']; - } - if (data.hasOwnProperty('visible_to')) { - obj['visible_to'] = ApiClient.convertToType(data['visible_to'], VisibleTo); - - delete data['visible_to']; - } - if (data.hasOwnProperty('owner_id')) { - obj['owner_id'] = ApiClient.convertToType(data['owner_id'], 'Number'); - - delete data['owner_id']; - } - if (data.hasOwnProperty('prices')) { - obj['prices'] = ApiClient.convertToType(data['prices'], [Object]); - - delete data['prices']; - } - if (data.hasOwnProperty('billing_frequency')) { - obj['billing_frequency'] = BillingFrequency1.constructFromObject(data['billing_frequency']); - - delete data['billing_frequency']; - } - if (data.hasOwnProperty('billing_frequency_cycles')) { - obj['billing_frequency_cycles'] = ApiClient.convertToType(data['billing_frequency_cycles'], 'Number'); - - delete data['billing_frequency_cycles']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the product - * @member {String} name - */ -UpdateProductRequestBody.prototype['name'] = undefined; - -/** - * The product code - * @member {String} code - */ -UpdateProductRequestBody.prototype['code'] = undefined; - -/** - * The product description - * @member {String} description - */ -UpdateProductRequestBody.prototype['description'] = undefined; - -/** - * The unit in which this product is sold - * @member {String} unit - */ -UpdateProductRequestBody.prototype['unit'] = undefined; - -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -UpdateProductRequestBody.prototype['tax'] = 0; - -/** - * Whether this product will be made active or not - * @member {Boolean} active_flag - * @default true - */ -UpdateProductRequestBody.prototype['active_flag'] = true; - -/** - * Whether this product can be selected in deals or not - * @member {Boolean} selectable - * @default true - */ -UpdateProductRequestBody.prototype['selectable'] = true; - -/** - * The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -UpdateProductRequestBody.prototype['visible_to'] = undefined; - -/** - * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used - * @member {Number} owner_id - */ -UpdateProductRequestBody.prototype['owner_id'] = undefined; - -/** - * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned. - * @member {Array.} prices - */ -UpdateProductRequestBody.prototype['prices'] = undefined; - -/** - * @member {module:model/BillingFrequency1} billing_frequency - */ -UpdateProductRequestBody.prototype['billing_frequency'] = undefined; - -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -UpdateProductRequestBody.prototype['billing_frequency_cycles'] = undefined; - - -// Implement NameObject interface: -/** - * The name of the product - * @member {String} name - */ -NameObject.prototype['name'] = undefined; -// Implement ProductRequest interface: -/** - * The product code - * @member {String} code - */ -ProductRequest.prototype['code'] = undefined; -/** - * The product description - * @member {String} description - */ -ProductRequest.prototype['description'] = undefined; -/** - * The unit in which this product is sold - * @member {String} unit - */ -ProductRequest.prototype['unit'] = undefined; -/** - * The tax percentage - * @member {Number} tax - * @default 0 - */ -ProductRequest.prototype['tax'] = 0; -/** - * Whether this product will be made active or not - * @member {Boolean} active_flag - * @default true - */ -ProductRequest.prototype['active_flag'] = true; -/** - * Whether this product can be selected in deals or not - * @member {Boolean} selectable - * @default true - */ -ProductRequest.prototype['selectable'] = true; -/** - * The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. Read more about visibility groups here.

Essential / Advanced plan

ValueDescription
`1`Owner & followers
`3`Entire company

Professional / Enterprise plan

ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company
- * @member {module:model/VisibleTo} visible_to - */ -ProductRequest.prototype['visible_to'] = undefined; -/** - * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used - * @member {Number} owner_id - */ -ProductRequest.prototype['owner_id'] = undefined; -/** - * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company's currency will be assigned. - * @member {Array.} prices - */ -ProductRequest.prototype['prices'] = undefined; -// Implement AddProductRequestBodyAllOf interface: -/** - * @member {module:model/BillingFrequency1} billing_frequency - */ -AddProductRequestBodyAllOf.prototype['billing_frequency'] = undefined; -// Implement NewDealProductAllOf1 interface: -/** - * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 312 - * @member {Number} billing_frequency_cycles - */ -NewDealProductAllOf1.prototype['billing_frequency_cycles'] = undefined; - - - - -export default UpdateProductRequestBody; - diff --git a/src/model/UpdateProductResponse.js b/src/model/UpdateProductResponse.js deleted file mode 100644 index 07edc038..00000000 --- a/src/model/UpdateProductResponse.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetActivitiesResponseRelatedObjects from './GetActivitiesResponseRelatedObjects'; -import ProductWithArrayPrices from './ProductWithArrayPrices'; - -/** - * The UpdateProductResponse model module. - * @module model/UpdateProductResponse - * @version 1.0.0 - */ -class UpdateProductResponse { - /** - * Constructs a new UpdateProductResponse. - * @alias module:model/UpdateProductResponse - */ - constructor() { - - UpdateProductResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateProductResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateProductResponse} obj Optional instance to populate. - * @return {module:model/UpdateProductResponse} The populated UpdateProductResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateProductResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProductWithArrayPrices.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('related_objects')) { - obj['related_objects'] = GetActivitiesResponseRelatedObjects.constructFromObject(data['related_objects']); - - delete data['related_objects']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -UpdateProductResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ProductWithArrayPrices} data - */ -UpdateProductResponse.prototype['data'] = undefined; - -/** - * @member {module:model/GetActivitiesResponseRelatedObjects} related_objects - */ -UpdateProductResponse.prototype['related_objects'] = undefined; - - - - - - -export default UpdateProductResponse; - diff --git a/src/model/UpdateProjectResponse.js b/src/model/UpdateProjectResponse.js deleted file mode 100644 index ac418cae..00000000 --- a/src/model/UpdateProjectResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectResponseObject from './ProjectResponseObject'; - -/** - * The UpdateProjectResponse model module. - * @module model/UpdateProjectResponse - * @version 1.0.0 - */ -class UpdateProjectResponse { - /** - * Constructs a new UpdateProjectResponse. - * @alias module:model/UpdateProjectResponse - */ - constructor() { - - UpdateProjectResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateProjectResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateProjectResponse} obj Optional instance to populate. - * @return {module:model/UpdateProjectResponse} The populated UpdateProjectResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateProjectResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdateProjectResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectResponseObject} data - */ -UpdateProjectResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -UpdateProjectResponse.prototype['additional_data'] = undefined; - - - - - - -export default UpdateProjectResponse; - diff --git a/src/model/UpdateProjectResponse200.js b/src/model/UpdateProjectResponse200.js deleted file mode 100644 index d24f711d..00000000 --- a/src/model/UpdateProjectResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectResponseObject from './ProjectResponseObject'; - -/** - * The UpdateProjectResponse200 model module. - * @module model/UpdateProjectResponse200 - * @version 1.0.0 - */ -class UpdateProjectResponse200 { - /** - * Constructs a new UpdateProjectResponse200. - * @alias module:model/UpdateProjectResponse200 - */ - constructor() { - - UpdateProjectResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateProjectResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateProjectResponse200} obj Optional instance to populate. - * @return {module:model/UpdateProjectResponse200} The populated UpdateProjectResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateProjectResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdateProjectResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectResponseObject} data - */ -UpdateProjectResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -UpdateProjectResponse200.prototype['additional_data'] = undefined; - - - - - - -export default UpdateProjectResponse200; - diff --git a/src/model/UpdateStageRequest.js b/src/model/UpdateStageRequest.js deleted file mode 100644 index 8a5f96e9..00000000 --- a/src/model/UpdateStageRequest.js +++ /dev/null @@ -1,172 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Stage from './Stage'; -import UpdateStageRequestAllOf from './UpdateStageRequestAllOf'; - -/** - * The UpdateStageRequest model module. - * @module model/UpdateStageRequest - * @version 1.0.0 - */ -class UpdateStageRequest { - /** - * Constructs a new UpdateStageRequest. - * @alias module:model/UpdateStageRequest - * @implements module:model/Stage - * @implements module:model/UpdateStageRequestAllOf - */ - constructor() { - Stage.initialize(this);UpdateStageRequestAllOf.initialize(this); - UpdateStageRequest.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateStageRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateStageRequest} obj Optional instance to populate. - * @return {module:model/UpdateStageRequest} The populated UpdateStageRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateStageRequest(); - Stage.constructFromObject(data, obj); - UpdateStageRequestAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('pipeline_id')) { - obj['pipeline_id'] = ApiClient.convertToType(data['pipeline_id'], 'Number'); - - delete data['pipeline_id']; - } - if (data.hasOwnProperty('deal_probability')) { - obj['deal_probability'] = ApiClient.convertToType(data['deal_probability'], 'Number'); - - delete data['deal_probability']; - } - if (data.hasOwnProperty('rotten_flag')) { - obj['rotten_flag'] = ApiClient.convertToType(data['rotten_flag'], 'Boolean'); - - delete data['rotten_flag']; - } - if (data.hasOwnProperty('rotten_days')) { - obj['rotten_days'] = ApiClient.convertToType(data['rotten_days'], 'Number'); - - delete data['rotten_days']; - } - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The name of the stage - * @member {String} name - */ -UpdateStageRequest.prototype['name'] = undefined; - -/** - * The ID of the pipeline to add stage to - * @member {Number} pipeline_id - */ -UpdateStageRequest.prototype['pipeline_id'] = undefined; - -/** - * The success probability percentage of the deal. Used/shown when deal weighted values are used. - * @member {Number} deal_probability - */ -UpdateStageRequest.prototype['deal_probability'] = undefined; - -/** - * Whether deals in this stage can become rotten - * @member {Boolean} rotten_flag - */ -UpdateStageRequest.prototype['rotten_flag'] = undefined; - -/** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. - * @member {Number} rotten_days - */ -UpdateStageRequest.prototype['rotten_days'] = undefined; - -/** - * An order number for this stage. Order numbers should be used to order the stages in the pipeline. - * @member {Number} order_nr - */ -UpdateStageRequest.prototype['order_nr'] = undefined; - - -// Implement Stage interface: -/** - * The name of the stage - * @member {String} name - */ -Stage.prototype['name'] = undefined; -/** - * The ID of the pipeline to add stage to - * @member {Number} pipeline_id - */ -Stage.prototype['pipeline_id'] = undefined; -/** - * The success probability percentage of the deal. Used/shown when deal weighted values are used. - * @member {Number} deal_probability - */ -Stage.prototype['deal_probability'] = undefined; -/** - * Whether deals in this stage can become rotten - * @member {Boolean} rotten_flag - */ -Stage.prototype['rotten_flag'] = undefined; -/** - * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. - * @member {Number} rotten_days - */ -Stage.prototype['rotten_days'] = undefined; -// Implement UpdateStageRequestAllOf interface: -/** - * An order number for this stage. Order numbers should be used to order the stages in the pipeline. - * @member {Number} order_nr - */ -UpdateStageRequestAllOf.prototype['order_nr'] = undefined; - - - - -export default UpdateStageRequest; - diff --git a/src/model/UpdateStageRequestAllOf.js b/src/model/UpdateStageRequestAllOf.js deleted file mode 100644 index b79c5806..00000000 --- a/src/model/UpdateStageRequestAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateStageRequestAllOf model module. - * @module model/UpdateStageRequestAllOf - * @version 1.0.0 - */ -class UpdateStageRequestAllOf { - /** - * Constructs a new UpdateStageRequestAllOf. - * @alias module:model/UpdateStageRequestAllOf - */ - constructor() { - - UpdateStageRequestAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateStageRequestAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateStageRequestAllOf} obj Optional instance to populate. - * @return {module:model/UpdateStageRequestAllOf} The populated UpdateStageRequestAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateStageRequestAllOf(); - - if (data.hasOwnProperty('order_nr')) { - obj['order_nr'] = ApiClient.convertToType(data['order_nr'], 'Number'); - - delete data['order_nr']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * An order number for this stage. Order numbers should be used to order the stages in the pipeline. - * @member {Number} order_nr - */ -UpdateStageRequestAllOf.prototype['order_nr'] = undefined; - - - - - - -export default UpdateStageRequestAllOf; - diff --git a/src/model/UpdateTaskPlanItem.js b/src/model/UpdateTaskPlanItem.js deleted file mode 100644 index 1ecfb296..00000000 --- a/src/model/UpdateTaskPlanItem.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPlanItemObject from './ProjectPlanItemObject'; - -/** - * The UpdateTaskPlanItem model module. - * @module model/UpdateTaskPlanItem - * @version 1.0.0 - */ -class UpdateTaskPlanItem { - /** - * Constructs a new UpdateTaskPlanItem. - * @alias module:model/UpdateTaskPlanItem - */ - constructor() { - - UpdateTaskPlanItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateTaskPlanItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTaskPlanItem} obj Optional instance to populate. - * @return {module:model/UpdateTaskPlanItem} The populated UpdateTaskPlanItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateTaskPlanItem(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectPlanItemObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdateTaskPlanItem.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectPlanItemObject} data - */ -UpdateTaskPlanItem.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -UpdateTaskPlanItem.prototype['additional_data'] = undefined; - - - - - - -export default UpdateTaskPlanItem; - diff --git a/src/model/UpdateTaskPlanItemResponse.js b/src/model/UpdateTaskPlanItemResponse.js deleted file mode 100644 index efd7de42..00000000 --- a/src/model/UpdateTaskPlanItemResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPlanItemObject from './ProjectPlanItemObject'; - -/** - * The UpdateTaskPlanItemResponse model module. - * @module model/UpdateTaskPlanItemResponse - * @version 1.0.0 - */ -class UpdateTaskPlanItemResponse { - /** - * Constructs a new UpdateTaskPlanItemResponse. - * @alias module:model/UpdateTaskPlanItemResponse - */ - constructor() { - - UpdateTaskPlanItemResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateTaskPlanItemResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTaskPlanItemResponse} obj Optional instance to populate. - * @return {module:model/UpdateTaskPlanItemResponse} The populated UpdateTaskPlanItemResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateTaskPlanItemResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectPlanItemObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdateTaskPlanItemResponse.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectPlanItemObject} data - */ -UpdateTaskPlanItemResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -UpdateTaskPlanItemResponse.prototype['additional_data'] = undefined; - - - - - - -export default UpdateTaskPlanItemResponse; - diff --git a/src/model/UpdateTaskResponse.js b/src/model/UpdateTaskResponse.js deleted file mode 100644 index 2bdc4f9c..00000000 --- a/src/model/UpdateTaskResponse.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import TaskResponseObject from './TaskResponseObject'; - -/** - * The UpdateTaskResponse model module. - * @module model/UpdateTaskResponse - * @version 1.0.0 - */ -class UpdateTaskResponse { - /** - * Constructs a new UpdateTaskResponse. - * @alias module:model/UpdateTaskResponse - */ - constructor() { - - UpdateTaskResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateTaskResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTaskResponse} obj Optional instance to populate. - * @return {module:model/UpdateTaskResponse} The populated UpdateTaskResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateTaskResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = TaskResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdateTaskResponse.prototype['success'] = undefined; - -/** - * @member {module:model/TaskResponseObject} data - */ -UpdateTaskResponse.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -UpdateTaskResponse.prototype['additional_data'] = undefined; - - - - - - -export default UpdateTaskResponse; - diff --git a/src/model/UpdateTaskResponse200.js b/src/model/UpdateTaskResponse200.js deleted file mode 100644 index 56b060bf..00000000 --- a/src/model/UpdateTaskResponse200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import TaskResponseObject from './TaskResponseObject'; - -/** - * The UpdateTaskResponse200 model module. - * @module model/UpdateTaskResponse200 - * @version 1.0.0 - */ -class UpdateTaskResponse200 { - /** - * Constructs a new UpdateTaskResponse200. - * @alias module:model/UpdateTaskResponse200 - */ - constructor() { - - UpdateTaskResponse200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateTaskResponse200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTaskResponse200} obj Optional instance to populate. - * @return {module:model/UpdateTaskResponse200} The populated UpdateTaskResponse200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateTaskResponse200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = TaskResponseObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdateTaskResponse200.prototype['success'] = undefined; - -/** - * @member {module:model/TaskResponseObject} data - */ -UpdateTaskResponse200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -UpdateTaskResponse200.prototype['additional_data'] = undefined; - - - - - - -export default UpdateTaskResponse200; - diff --git a/src/model/UpdateTeam.js b/src/model/UpdateTeam.js deleted file mode 100644 index 834c63f2..00000000 --- a/src/model/UpdateTeam.js +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import CreateTeam from './CreateTeam'; -import NumberBoolean from './NumberBoolean'; -import UpdateTeamAllOf from './UpdateTeamAllOf'; - -/** - * The UpdateTeam model module. - * @module model/UpdateTeam - * @version 1.0.0 - */ -class UpdateTeam { - /** - * Constructs a new UpdateTeam. - * @alias module:model/UpdateTeam - * @implements module:model/CreateTeam - * @implements module:model/UpdateTeamAllOf - */ - constructor() { - CreateTeam.initialize(this);UpdateTeamAllOf.initialize(this); - UpdateTeam.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateTeam from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTeam} obj Optional instance to populate. - * @return {module:model/UpdateTeam} The populated UpdateTeam instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateTeam(); - CreateTeam.constructFromObject(data, obj); - UpdateTeamAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('manager_id')) { - obj['manager_id'] = ApiClient.convertToType(data['manager_id'], 'Number'); - - delete data['manager_id']; - } - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], ['Number']); - - delete data['users']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], NumberBoolean); - - delete data['active_flag']; - } - if (data.hasOwnProperty('deleted_flag')) { - obj['deleted_flag'] = ApiClient.convertToType(data['deleted_flag'], NumberBoolean); - - delete data['deleted_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The team name - * @member {String} name - */ -UpdateTeam.prototype['name'] = undefined; - -/** - * The team description - * @member {String} description - */ -UpdateTeam.prototype['description'] = undefined; - -/** - * The team manager ID - * @member {Number} manager_id - */ -UpdateTeam.prototype['manager_id'] = undefined; - -/** - * The list of user IDs - * @member {Array.} users - */ -UpdateTeam.prototype['users'] = undefined; - -/** - * Flag that indicates whether the team is active - * @member {module:model/NumberBoolean} active_flag - */ -UpdateTeam.prototype['active_flag'] = undefined; - -/** - * Flag that indicates whether the team is deleted - * @member {module:model/NumberBoolean} deleted_flag - */ -UpdateTeam.prototype['deleted_flag'] = undefined; - - -// Implement CreateTeam interface: -/** - * The team name - * @member {String} name - */ -CreateTeam.prototype['name'] = undefined; -/** - * The team description - * @member {String} description - */ -CreateTeam.prototype['description'] = undefined; -/** - * The team manager ID - * @member {Number} manager_id - */ -CreateTeam.prototype['manager_id'] = undefined; -/** - * The list of user IDs - * @member {Array.} users - */ -CreateTeam.prototype['users'] = undefined; -// Implement UpdateTeamAllOf interface: -/** - * Flag that indicates whether the team is active - * @member {module:model/NumberBoolean} active_flag - */ -UpdateTeamAllOf.prototype['active_flag'] = undefined; -/** - * Flag that indicates whether the team is deleted - * @member {module:model/NumberBoolean} deleted_flag - */ -UpdateTeamAllOf.prototype['deleted_flag'] = undefined; - - - - -export default UpdateTeam; - diff --git a/src/model/UpdateTeamAllOf.js b/src/model/UpdateTeamAllOf.js deleted file mode 100644 index c9568737..00000000 --- a/src/model/UpdateTeamAllOf.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import NumberBoolean from './NumberBoolean'; - -/** - * The UpdateTeamAllOf model module. - * @module model/UpdateTeamAllOf - * @version 1.0.0 - */ -class UpdateTeamAllOf { - /** - * Constructs a new UpdateTeamAllOf. - * @alias module:model/UpdateTeamAllOf - */ - constructor() { - - UpdateTeamAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateTeamAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTeamAllOf} obj Optional instance to populate. - * @return {module:model/UpdateTeamAllOf} The populated UpdateTeamAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateTeamAllOf(); - - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], NumberBoolean); - - delete data['active_flag']; - } - if (data.hasOwnProperty('deleted_flag')) { - obj['deleted_flag'] = ApiClient.convertToType(data['deleted_flag'], NumberBoolean); - - delete data['deleted_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Flag that indicates whether the team is active - * @member {module:model/NumberBoolean} active_flag - */ -UpdateTeamAllOf.prototype['active_flag'] = undefined; - -/** - * Flag that indicates whether the team is deleted - * @member {module:model/NumberBoolean} deleted_flag - */ -UpdateTeamAllOf.prototype['deleted_flag'] = undefined; - - - - - - -export default UpdateTeamAllOf; - diff --git a/src/model/UpdateTeamWithAdditionalProperties.js b/src/model/UpdateTeamWithAdditionalProperties.js deleted file mode 100644 index 084cfae6..00000000 --- a/src/model/UpdateTeamWithAdditionalProperties.js +++ /dev/null @@ -1,205 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseTeamAdditionalProperties from './BaseTeamAdditionalProperties'; -import NumberBoolean from './NumberBoolean'; -import UpdateTeam from './UpdateTeam'; - -/** - * The UpdateTeamWithAdditionalProperties model module. - * @module model/UpdateTeamWithAdditionalProperties - * @version 1.0.0 - */ -class UpdateTeamWithAdditionalProperties { - /** - * Constructs a new UpdateTeamWithAdditionalProperties. - * @alias module:model/UpdateTeamWithAdditionalProperties - * @implements module:model/UpdateTeam - * @implements module:model/BaseTeamAdditionalProperties - */ - constructor() { - UpdateTeam.initialize(this);BaseTeamAdditionalProperties.initialize(this); - UpdateTeamWithAdditionalProperties.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateTeamWithAdditionalProperties from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateTeamWithAdditionalProperties} obj Optional instance to populate. - * @return {module:model/UpdateTeamWithAdditionalProperties} The populated UpdateTeamWithAdditionalProperties instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateTeamWithAdditionalProperties(); - UpdateTeam.constructFromObject(data, obj); - BaseTeamAdditionalProperties.constructFromObject(data, obj); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - - delete data['description']; - } - if (data.hasOwnProperty('manager_id')) { - obj['manager_id'] = ApiClient.convertToType(data['manager_id'], 'Number'); - - delete data['manager_id']; - } - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], ['Number']); - - delete data['users']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], NumberBoolean); - - delete data['active_flag']; - } - if (data.hasOwnProperty('deleted_flag')) { - obj['deleted_flag'] = ApiClient.convertToType(data['deleted_flag'], NumberBoolean); - - delete data['deleted_flag']; - } - if (data.hasOwnProperty('add_time')) { - obj['add_time'] = ApiClient.convertToType(data['add_time'], 'String'); - - delete data['add_time']; - } - if (data.hasOwnProperty('created_by_user_id')) { - obj['created_by_user_id'] = ApiClient.convertToType(data['created_by_user_id'], 'Number'); - - delete data['created_by_user_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The team name - * @member {String} name - */ -UpdateTeamWithAdditionalProperties.prototype['name'] = undefined; - -/** - * The team description - * @member {String} description - */ -UpdateTeamWithAdditionalProperties.prototype['description'] = undefined; - -/** - * The team manager ID - * @member {Number} manager_id - */ -UpdateTeamWithAdditionalProperties.prototype['manager_id'] = undefined; - -/** - * The list of user IDs - * @member {Array.} users - */ -UpdateTeamWithAdditionalProperties.prototype['users'] = undefined; - -/** - * Flag that indicates whether the team is active - * @member {module:model/NumberBoolean} active_flag - */ -UpdateTeamWithAdditionalProperties.prototype['active_flag'] = undefined; - -/** - * Flag that indicates whether the team is deleted - * @member {module:model/NumberBoolean} deleted_flag - */ -UpdateTeamWithAdditionalProperties.prototype['deleted_flag'] = undefined; - -/** - * The team creation time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -UpdateTeamWithAdditionalProperties.prototype['add_time'] = undefined; - -/** - * The ID of the user who created the team - * @member {Number} created_by_user_id - */ -UpdateTeamWithAdditionalProperties.prototype['created_by_user_id'] = undefined; - - -// Implement UpdateTeam interface: -/** - * The team name - * @member {String} name - */ -UpdateTeam.prototype['name'] = undefined; -/** - * The team description - * @member {String} description - */ -UpdateTeam.prototype['description'] = undefined; -/** - * The team manager ID - * @member {Number} manager_id - */ -UpdateTeam.prototype['manager_id'] = undefined; -/** - * The list of user IDs - * @member {Array.} users - */ -UpdateTeam.prototype['users'] = undefined; -/** - * Flag that indicates whether the team is active - * @member {module:model/NumberBoolean} active_flag - */ -UpdateTeam.prototype['active_flag'] = undefined; -/** - * Flag that indicates whether the team is deleted - * @member {module:model/NumberBoolean} deleted_flag - */ -UpdateTeam.prototype['deleted_flag'] = undefined; -// Implement BaseTeamAdditionalProperties interface: -/** - * The team creation time. Format: YYYY-MM-DD HH:MM:SS - * @member {String} add_time - */ -BaseTeamAdditionalProperties.prototype['add_time'] = undefined; -/** - * The ID of the user who created the team - * @member {Number} created_by_user_id - */ -BaseTeamAdditionalProperties.prototype['created_by_user_id'] = undefined; - - - - -export default UpdateTeamWithAdditionalProperties; - diff --git a/src/model/UpdateUserRequest.js b/src/model/UpdateUserRequest.js deleted file mode 100644 index 1b1fe3c6..00000000 --- a/src/model/UpdateUserRequest.js +++ /dev/null @@ -1,81 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateUserRequest model module. - * @module model/UpdateUserRequest - * @version 1.0.0 - */ -class UpdateUserRequest { - /** - * Constructs a new UpdateUserRequest. - * @alias module:model/UpdateUserRequest - * @param activeFlag {Boolean} Whether the user is active or not. `false` = Not activated, `true` = Activated - */ - constructor(activeFlag) { - - UpdateUserRequest.initialize(this, activeFlag); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, activeFlag) { - obj['active_flag'] = activeFlag; - } - - /** - * Constructs a UpdateUserRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateUserRequest} obj Optional instance to populate. - * @return {module:model/UpdateUserRequest} The populated UpdateUserRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateUserRequest(); - - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Whether the user is active or not. `false` = Not activated, `true` = Activated - * @member {Boolean} active_flag - */ -UpdateUserRequest.prototype['active_flag'] = undefined; - - - - - - -export default UpdateUserRequest; - diff --git a/src/model/UpdatedActivityPlanItem200.js b/src/model/UpdatedActivityPlanItem200.js deleted file mode 100644 index 7a2585f2..00000000 --- a/src/model/UpdatedActivityPlanItem200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPlanItemObject from './ProjectPlanItemObject'; - -/** - * The UpdatedActivityPlanItem200 model module. - * @module model/UpdatedActivityPlanItem200 - * @version 1.0.0 - */ -class UpdatedActivityPlanItem200 { - /** - * Constructs a new UpdatedActivityPlanItem200. - * @alias module:model/UpdatedActivityPlanItem200 - */ - constructor() { - - UpdatedActivityPlanItem200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdatedActivityPlanItem200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatedActivityPlanItem200} obj Optional instance to populate. - * @return {module:model/UpdatedActivityPlanItem200} The populated UpdatedActivityPlanItem200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatedActivityPlanItem200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectPlanItemObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdatedActivityPlanItem200.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectPlanItemObject} data - */ -UpdatedActivityPlanItem200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -UpdatedActivityPlanItem200.prototype['additional_data'] = undefined; - - - - - - -export default UpdatedActivityPlanItem200; - diff --git a/src/model/UpdatedTaskPlanItem200.js b/src/model/UpdatedTaskPlanItem200.js deleted file mode 100644 index 1262434f..00000000 --- a/src/model/UpdatedTaskPlanItem200.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ProjectPlanItemObject from './ProjectPlanItemObject'; - -/** - * The UpdatedTaskPlanItem200 model module. - * @module model/UpdatedTaskPlanItem200 - * @version 1.0.0 - */ -class UpdatedTaskPlanItem200 { - /** - * Constructs a new UpdatedTaskPlanItem200. - * @alias module:model/UpdatedTaskPlanItem200 - */ - constructor() { - - UpdatedTaskPlanItem200.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdatedTaskPlanItem200 from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatedTaskPlanItem200} obj Optional instance to populate. - * @return {module:model/UpdatedTaskPlanItem200} The populated UpdatedTaskPlanItem200 instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatedTaskPlanItem200(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ProjectPlanItemObject.constructFromObject(data['data']); - - delete data['data']; - } - if (data.hasOwnProperty('additional_data')) { - obj['additional_data'] = ApiClient.convertToType(data['additional_data'], Object); - - delete data['additional_data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpdatedTaskPlanItem200.prototype['success'] = undefined; - -/** - * @member {module:model/ProjectPlanItemObject} data - */ -UpdatedTaskPlanItem200.prototype['data'] = undefined; - -/** - * @member {Object} additional_data - */ -UpdatedTaskPlanItem200.prototype['additional_data'] = undefined; - - - - - - -export default UpdatedTaskPlanItem200; - diff --git a/src/model/UpsertGoalResponse.js b/src/model/UpsertGoalResponse.js deleted file mode 100644 index 5fef294f..00000000 --- a/src/model/UpsertGoalResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import PostGoalResponse from './PostGoalResponse'; - -/** - * The UpsertGoalResponse model module. - * @module model/UpsertGoalResponse - * @version 1.0.0 - */ -class UpsertGoalResponse { - /** - * Constructs a new UpsertGoalResponse. - * @alias module:model/UpsertGoalResponse - */ - constructor() { - - UpsertGoalResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpsertGoalResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpsertGoalResponse} obj Optional instance to populate. - * @return {module:model/UpsertGoalResponse} The populated UpsertGoalResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpsertGoalResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = PostGoalResponse.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the request was successful or not - * @member {Boolean} success - */ -UpsertGoalResponse.prototype['success'] = undefined; - -/** - * @member {module:model/PostGoalResponse} data - */ -UpsertGoalResponse.prototype['data'] = undefined; - - - - - - -export default UpsertGoalResponse; - diff --git a/src/model/UpsertLeadLabelResponse.js b/src/model/UpsertLeadLabelResponse.js deleted file mode 100644 index a18e57c5..00000000 --- a/src/model/UpsertLeadLabelResponse.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import LeadLabelResponse from './LeadLabelResponse'; - -/** - * The UpsertLeadLabelResponse model module. - * @module model/UpsertLeadLabelResponse - * @version 1.0.0 - */ -class UpsertLeadLabelResponse { - /** - * Constructs a new UpsertLeadLabelResponse. - * @alias module:model/UpsertLeadLabelResponse - */ - constructor() { - - UpsertLeadLabelResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpsertLeadLabelResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpsertLeadLabelResponse} obj Optional instance to populate. - * @return {module:model/UpsertLeadLabelResponse} The populated UpsertLeadLabelResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpsertLeadLabelResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = LeadLabelResponse.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Boolean} success - */ -UpsertLeadLabelResponse.prototype['success'] = undefined; - -/** - * @member {module:model/LeadLabelResponse} data - */ -UpsertLeadLabelResponse.prototype['data'] = undefined; - - - - - - -export default UpsertLeadLabelResponse; - diff --git a/src/model/User.js b/src/model/User.js deleted file mode 100644 index 0d00a5db..00000000 --- a/src/model/User.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import BaseUser from './BaseUser'; -import UserAllOf from './UserAllOf'; - -/** - * The User model module. - * @module model/User - * @version 1.0.0 - */ -class User { - /** - * Constructs a new User. - * @alias module:model/User - * @implements module:model/BaseResponse - * @implements module:model/UserAllOf - */ - constructor() { - BaseResponse.initialize(this);UserAllOf.initialize(this); - User.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a User from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/User} obj Optional instance to populate. - * @return {module:model/User} The populated User instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new User(); - BaseResponse.constructFromObject(data, obj); - UserAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseUser.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -User.prototype['success'] = undefined; - -/** - * @member {module:model/BaseUser} data - */ -User.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement UserAllOf interface: -/** - * @member {module:model/BaseUser} data - */ -UserAllOf.prototype['data'] = undefined; - - - - -export default User; - diff --git a/src/model/UserAccess.js b/src/model/UserAccess.js deleted file mode 100644 index 8bb4a27a..00000000 --- a/src/model/UserAccess.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UserAccess model module. - * @module model/UserAccess - * @version 1.0.0 - */ -class UserAccess { - /** - * Constructs a new UserAccess. - * @alias module:model/UserAccess - */ - constructor() { - - UserAccess.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserAccess from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserAccess} obj Optional instance to populate. - * @return {module:model/UserAccess} The populated UserAccess instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserAccess(); - - if (data.hasOwnProperty('app')) { - obj['app'] = ApiClient.convertToType(data['app'], 'String'); - - delete data['app']; - } - if (data.hasOwnProperty('admin')) { - obj['admin'] = ApiClient.convertToType(data['admin'], 'Boolean'); - - delete data['admin']; - } - if (data.hasOwnProperty('permission_set_id')) { - obj['permission_set_id'] = ApiClient.convertToType(data['permission_set_id'], 'String'); - - delete data['permission_set_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/UserAccess.AppEnum} app - */ -UserAccess.prototype['app'] = undefined; - -/** - * @member {Boolean} admin - */ -UserAccess.prototype['admin'] = undefined; - -/** - * @member {String} permission_set_id - */ -UserAccess.prototype['permission_set_id'] = undefined; - - - - - -/** - * Allowed values for the app property. - * @enum {String} - * @readonly - */ -UserAccess['AppEnum'] = { - - /** - * value: "sales" - * @const - */ - "sales": "sales", - - /** - * value: "projects" - * @const - */ - "projects": "projects", - - /** - * value: "campaigns" - * @const - */ - "campaigns": "campaigns", - - /** - * value: "global" - * @const - */ - "global": "global", - - /** - * value: "account_settings" - * @const - */ - "account_settings": "account_settings" -}; - - - -export default UserAccess; - diff --git a/src/model/UserAllOf.js b/src/model/UserAllOf.js deleted file mode 100644 index 1a0c4a39..00000000 --- a/src/model/UserAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseUser from './BaseUser'; - -/** - * The UserAllOf model module. - * @module model/UserAllOf - * @version 1.0.0 - */ -class UserAllOf { - /** - * Constructs a new UserAllOf. - * @alias module:model/UserAllOf - */ - constructor() { - - UserAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserAllOf} obj Optional instance to populate. - * @return {module:model/UserAllOf} The populated UserAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = BaseUser.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BaseUser} data - */ -UserAllOf.prototype['data'] = undefined; - - - - - - -export default UserAllOf; - diff --git a/src/model/UserAssignmentToPermissionSet.js b/src/model/UserAssignmentToPermissionSet.js deleted file mode 100644 index 8817b2db..00000000 --- a/src/model/UserAssignmentToPermissionSet.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UserAssignmentToPermissionSet model module. - * @module model/UserAssignmentToPermissionSet - * @version 1.0.0 - */ -class UserAssignmentToPermissionSet { - /** - * Constructs a new UserAssignmentToPermissionSet. - * @alias module:model/UserAssignmentToPermissionSet - */ - constructor() { - - UserAssignmentToPermissionSet.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserAssignmentToPermissionSet from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserAssignmentToPermissionSet} obj Optional instance to populate. - * @return {module:model/UserAssignmentToPermissionSet} The populated UserAssignmentToPermissionSet instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserAssignmentToPermissionSet(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('permission_set_id')) { - obj['permission_set_id'] = ApiClient.convertToType(data['permission_set_id'], 'String'); - - delete data['permission_set_id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user in the permission set - * @member {Number} user_id - */ -UserAssignmentToPermissionSet.prototype['user_id'] = undefined; - -/** - * The ID of the permission set - * @member {String} permission_set_id - */ -UserAssignmentToPermissionSet.prototype['permission_set_id'] = undefined; - -/** - * The name of the permission set - * @member {String} name - */ -UserAssignmentToPermissionSet.prototype['name'] = undefined; - - - - - - -export default UserAssignmentToPermissionSet; - diff --git a/src/model/UserAssignmentsToPermissionSet.js b/src/model/UserAssignmentsToPermissionSet.js deleted file mode 100644 index 3a6a3db1..00000000 --- a/src/model/UserAssignmentsToPermissionSet.js +++ /dev/null @@ -1,109 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import UserAssignmentToPermissionSet from './UserAssignmentToPermissionSet'; -import UserAssignmentsToPermissionSetAllOf from './UserAssignmentsToPermissionSetAllOf'; - -/** - * The UserAssignmentsToPermissionSet model module. - * @module model/UserAssignmentsToPermissionSet - * @version 1.0.0 - */ -class UserAssignmentsToPermissionSet { - /** - * Constructs a new UserAssignmentsToPermissionSet. - * @alias module:model/UserAssignmentsToPermissionSet - * @implements module:model/BaseResponse - * @implements module:model/UserAssignmentsToPermissionSetAllOf - */ - constructor() { - BaseResponse.initialize(this);UserAssignmentsToPermissionSetAllOf.initialize(this); - UserAssignmentsToPermissionSet.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserAssignmentsToPermissionSet from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserAssignmentsToPermissionSet} obj Optional instance to populate. - * @return {module:model/UserAssignmentsToPermissionSet} The populated UserAssignmentsToPermissionSet instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserAssignmentsToPermissionSet(); - BaseResponse.constructFromObject(data, obj); - UserAssignmentsToPermissionSetAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [UserAssignmentToPermissionSet]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -UserAssignmentsToPermissionSet.prototype['success'] = undefined; - -/** - * An array of the assignments of the user - * @member {Array.} data - */ -UserAssignmentsToPermissionSet.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement UserAssignmentsToPermissionSetAllOf interface: -/** - * An array of the assignments of the user - * @member {Array.} data - */ -UserAssignmentsToPermissionSetAllOf.prototype['data'] = undefined; - - - - -export default UserAssignmentsToPermissionSet; - diff --git a/src/model/UserAssignmentsToPermissionSetAllOf.js b/src/model/UserAssignmentsToPermissionSetAllOf.js deleted file mode 100644 index b502c6e0..00000000 --- a/src/model/UserAssignmentsToPermissionSetAllOf.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import UserAssignmentToPermissionSet from './UserAssignmentToPermissionSet'; - -/** - * The UserAssignmentsToPermissionSetAllOf model module. - * @module model/UserAssignmentsToPermissionSetAllOf - * @version 1.0.0 - */ -class UserAssignmentsToPermissionSetAllOf { - /** - * Constructs a new UserAssignmentsToPermissionSetAllOf. - * @alias module:model/UserAssignmentsToPermissionSetAllOf - */ - constructor() { - - UserAssignmentsToPermissionSetAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserAssignmentsToPermissionSetAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserAssignmentsToPermissionSetAllOf} obj Optional instance to populate. - * @return {module:model/UserAssignmentsToPermissionSetAllOf} The populated UserAssignmentsToPermissionSetAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserAssignmentsToPermissionSetAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [UserAssignmentToPermissionSet]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * An array of the assignments of the user - * @member {Array.} data - */ -UserAssignmentsToPermissionSetAllOf.prototype['data'] = undefined; - - - - - - -export default UserAssignmentsToPermissionSetAllOf; - diff --git a/src/model/UserConnections.js b/src/model/UserConnections.js deleted file mode 100644 index 608992ac..00000000 --- a/src/model/UserConnections.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import UserConnectionsAllOf from './UserConnectionsAllOf'; -import UserConnectionsAllOfData from './UserConnectionsAllOfData'; - -/** - * The UserConnections model module. - * @module model/UserConnections - * @version 1.0.0 - */ -class UserConnections { - /** - * Constructs a new UserConnections. - * @alias module:model/UserConnections - * @implements module:model/BaseResponse - * @implements module:model/UserConnectionsAllOf - */ - constructor() { - BaseResponse.initialize(this);UserConnectionsAllOf.initialize(this); - UserConnections.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserConnections from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserConnections} obj Optional instance to populate. - * @return {module:model/UserConnections} The populated UserConnections instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserConnections(); - BaseResponse.constructFromObject(data, obj); - UserConnectionsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = UserConnectionsAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -UserConnections.prototype['success'] = undefined; - -/** - * @member {module:model/UserConnectionsAllOfData} data - */ -UserConnections.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement UserConnectionsAllOf interface: -/** - * @member {module:model/UserConnectionsAllOfData} data - */ -UserConnectionsAllOf.prototype['data'] = undefined; - - - - -export default UserConnections; - diff --git a/src/model/UserConnectionsAllOf.js b/src/model/UserConnectionsAllOf.js deleted file mode 100644 index 6cd4a46a..00000000 --- a/src/model/UserConnectionsAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import UserConnectionsAllOfData from './UserConnectionsAllOfData'; - -/** - * The UserConnectionsAllOf model module. - * @module model/UserConnectionsAllOf - * @version 1.0.0 - */ -class UserConnectionsAllOf { - /** - * Constructs a new UserConnectionsAllOf. - * @alias module:model/UserConnectionsAllOf - */ - constructor() { - - UserConnectionsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserConnectionsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserConnectionsAllOf} obj Optional instance to populate. - * @return {module:model/UserConnectionsAllOf} The populated UserConnectionsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserConnectionsAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = UserConnectionsAllOfData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/UserConnectionsAllOfData} data - */ -UserConnectionsAllOf.prototype['data'] = undefined; - - - - - - -export default UserConnectionsAllOf; - diff --git a/src/model/UserConnectionsAllOfData.js b/src/model/UserConnectionsAllOfData.js deleted file mode 100644 index 29df4bb7..00000000 --- a/src/model/UserConnectionsAllOfData.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UserConnectionsAllOfData model module. - * @module model/UserConnectionsAllOfData - * @version 1.0.0 - */ -class UserConnectionsAllOfData { - /** - * Constructs a new UserConnectionsAllOfData. - * The object of UserConnections - * @alias module:model/UserConnectionsAllOfData - */ - constructor() { - - UserConnectionsAllOfData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserConnectionsAllOfData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserConnectionsAllOfData} obj Optional instance to populate. - * @return {module:model/UserConnectionsAllOfData} The populated UserConnectionsAllOfData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserConnectionsAllOfData(); - - if (data.hasOwnProperty('google')) { - obj['google'] = ApiClient.convertToType(data['google'], 'String'); - - delete data['google']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The third party ID or false in case the ID is not found - * @member {String} google - */ -UserConnectionsAllOfData.prototype['google'] = undefined; - - - - - - -export default UserConnectionsAllOfData; - diff --git a/src/model/UserData.js b/src/model/UserData.js deleted file mode 100644 index be1d0d40..00000000 --- a/src/model/UserData.js +++ /dev/null @@ -1,134 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UserData model module. - * @module model/UserData - * @version 1.0.0 - */ -class UserData { - /** - * Constructs a new UserData. - * @alias module:model/UserData - */ - constructor() { - - UserData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserData} obj Optional instance to populate. - * @return {module:model/UserData} The populated UserData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserData(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('has_pic')) { - obj['has_pic'] = ApiClient.convertToType(data['has_pic'], 'Number'); - - delete data['has_pic']; - } - if (data.hasOwnProperty('pic_hash')) { - obj['pic_hash'] = ApiClient.convertToType(data['pic_hash'], 'String'); - - delete data['pic_hash']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} id - */ -UserData.prototype['id'] = undefined; - -/** - * The name of the user - * @member {String} name - */ -UserData.prototype['name'] = undefined; - -/** - * The email of the user - * @member {String} email - */ -UserData.prototype['email'] = undefined; - -/** - * Whether the user has picture or not. 0 = No picture, 1 = Has picture. - * @member {Number} has_pic - */ -UserData.prototype['has_pic'] = undefined; - -/** - * The user picture hash - * @member {String} pic_hash - */ -UserData.prototype['pic_hash'] = undefined; - -/** - * Whether the user is active or not - * @member {Boolean} active_flag - */ -UserData.prototype['active_flag'] = undefined; - - - - - - -export default UserData; - diff --git a/src/model/UserDataWithId.js b/src/model/UserDataWithId.js deleted file mode 100644 index 7edd84b5..00000000 --- a/src/model/UserDataWithId.js +++ /dev/null @@ -1,168 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import UserData from './UserData'; - -/** - * The UserDataWithId model module. - * @module model/UserDataWithId - * @version 1.0.0 - */ -class UserDataWithId { - /** - * Constructs a new UserDataWithId. - * @alias module:model/UserDataWithId - * @implements module:model/UserData - */ - constructor() { - UserData.initialize(this); - UserDataWithId.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserDataWithId from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserDataWithId} obj Optional instance to populate. - * @return {module:model/UserDataWithId} The populated UserDataWithId instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserDataWithId(); - UserData.constructFromObject(data, obj); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - - delete data['id']; - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - - delete data['name']; - } - if (data.hasOwnProperty('email')) { - obj['email'] = ApiClient.convertToType(data['email'], 'String'); - - delete data['email']; - } - if (data.hasOwnProperty('has_pic')) { - obj['has_pic'] = ApiClient.convertToType(data['has_pic'], 'Number'); - - delete data['has_pic']; - } - if (data.hasOwnProperty('pic_hash')) { - obj['pic_hash'] = ApiClient.convertToType(data['pic_hash'], 'String'); - - delete data['pic_hash']; - } - if (data.hasOwnProperty('active_flag')) { - obj['active_flag'] = ApiClient.convertToType(data['active_flag'], 'Boolean'); - - delete data['active_flag']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The ID of the user - * @member {Number} id - */ -UserDataWithId.prototype['id'] = undefined; - -/** - * The name of the user - * @member {String} name - */ -UserDataWithId.prototype['name'] = undefined; - -/** - * The email of the user - * @member {String} email - */ -UserDataWithId.prototype['email'] = undefined; - -/** - * Whether the user has picture or not. 0 = No picture, 1 = Has picture. - * @member {Number} has_pic - */ -UserDataWithId.prototype['has_pic'] = undefined; - -/** - * The user picture hash - * @member {String} pic_hash - */ -UserDataWithId.prototype['pic_hash'] = undefined; - -/** - * Whether the user is active or not - * @member {Boolean} active_flag - */ -UserDataWithId.prototype['active_flag'] = undefined; - - -// Implement UserData interface: -/** - * The ID of the user - * @member {Number} id - */ -UserData.prototype['id'] = undefined; -/** - * The name of the user - * @member {String} name - */ -UserData.prototype['name'] = undefined; -/** - * The email of the user - * @member {String} email - */ -UserData.prototype['email'] = undefined; -/** - * Whether the user has picture or not. 0 = No picture, 1 = Has picture. - * @member {Number} has_pic - */ -UserData.prototype['has_pic'] = undefined; -/** - * The user picture hash - * @member {String} pic_hash - */ -UserData.prototype['pic_hash'] = undefined; -/** - * Whether the user is active or not - * @member {Boolean} active_flag - */ -UserData.prototype['active_flag'] = undefined; - - - - -export default UserDataWithId; - diff --git a/src/model/UserIDs.js b/src/model/UserIDs.js deleted file mode 100644 index 29b4fe32..00000000 --- a/src/model/UserIDs.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import UserIDsAllOf from './UserIDsAllOf'; - -/** - * The UserIDs model module. - * @module model/UserIDs - * @version 1.0.0 - */ -class UserIDs { - /** - * Constructs a new UserIDs. - * @alias module:model/UserIDs - * @implements module:model/BaseResponse - * @implements module:model/UserIDsAllOf - */ - constructor() { - BaseResponse.initialize(this);UserIDsAllOf.initialize(this); - UserIDs.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserIDs from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserIDs} obj Optional instance to populate. - * @return {module:model/UserIDs} The populated UserIDs instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserIDs(); - BaseResponse.constructFromObject(data, obj); - UserIDsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], ['Number']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -UserIDs.prototype['success'] = undefined; - -/** - * The list of user IDs - * @member {Array.} data - */ -UserIDs.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement UserIDsAllOf interface: -/** - * The list of user IDs - * @member {Array.} data - */ -UserIDsAllOf.prototype['data'] = undefined; - - - - -export default UserIDs; - diff --git a/src/model/UserIDsAllOf.js b/src/model/UserIDsAllOf.js deleted file mode 100644 index 46570cba..00000000 --- a/src/model/UserIDsAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UserIDsAllOf model module. - * @module model/UserIDsAllOf - * @version 1.0.0 - */ -class UserIDsAllOf { - /** - * Constructs a new UserIDsAllOf. - * @alias module:model/UserIDsAllOf - */ - constructor() { - - UserIDsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserIDsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserIDsAllOf} obj Optional instance to populate. - * @return {module:model/UserIDsAllOf} The populated UserIDsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserIDsAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], ['Number']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The list of user IDs - * @member {Array.} data - */ -UserIDsAllOf.prototype['data'] = undefined; - - - - - - -export default UserIDsAllOf; - diff --git a/src/model/UserMe.js b/src/model/UserMe.js deleted file mode 100644 index 7b3c4c7c..00000000 --- a/src/model/UserMe.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import BaseUserMe from './BaseUserMe'; -import UserMeAllOf from './UserMeAllOf'; - -/** - * The UserMe model module. - * @module model/UserMe - * @version 1.0.0 - */ -class UserMe { - /** - * Constructs a new UserMe. - * @alias module:model/UserMe - * @implements module:model/BaseResponse - * @implements module:model/UserMeAllOf - */ - constructor() { - BaseResponse.initialize(this);UserMeAllOf.initialize(this); - UserMe.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserMe from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserMe} obj Optional instance to populate. - * @return {module:model/UserMe} The populated UserMe instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserMe(); - BaseResponse.constructFromObject(data, obj); - UserMeAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseUserMe.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -UserMe.prototype['success'] = undefined; - -/** - * @member {module:model/BaseUserMe} data - */ -UserMe.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement UserMeAllOf interface: -/** - * @member {module:model/BaseUserMe} data - */ -UserMeAllOf.prototype['data'] = undefined; - - - - -export default UserMe; - diff --git a/src/model/UserMeAllOf.js b/src/model/UserMeAllOf.js deleted file mode 100644 index fe9313bf..00000000 --- a/src/model/UserMeAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseUserMe from './BaseUserMe'; - -/** - * The UserMeAllOf model module. - * @module model/UserMeAllOf - * @version 1.0.0 - */ -class UserMeAllOf { - /** - * Constructs a new UserMeAllOf. - * @alias module:model/UserMeAllOf - */ - constructor() { - - UserMeAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserMeAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserMeAllOf} obj Optional instance to populate. - * @return {module:model/UserMeAllOf} The populated UserMeAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserMeAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = BaseUserMe.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BaseUserMe} data - */ -UserMeAllOf.prototype['data'] = undefined; - - - - - - -export default UserMeAllOf; - diff --git a/src/model/UserPermissions.js b/src/model/UserPermissions.js deleted file mode 100644 index 788eecf1..00000000 --- a/src/model/UserPermissions.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import UserPermissionsAllOf from './UserPermissionsAllOf'; -import UserPermissionsItem from './UserPermissionsItem'; - -/** - * The UserPermissions model module. - * @module model/UserPermissions - * @version 1.0.0 - */ -class UserPermissions { - /** - * Constructs a new UserPermissions. - * @alias module:model/UserPermissions - * @implements module:model/BaseResponse - * @implements module:model/UserPermissionsAllOf - */ - constructor() { - BaseResponse.initialize(this);UserPermissionsAllOf.initialize(this); - UserPermissions.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserPermissions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserPermissions} obj Optional instance to populate. - * @return {module:model/UserPermissions} The populated UserPermissions instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserPermissions(); - BaseResponse.constructFromObject(data, obj); - UserPermissionsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = UserPermissionsItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -UserPermissions.prototype['success'] = undefined; - -/** - * @member {module:model/UserPermissionsItem} data - */ -UserPermissions.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement UserPermissionsAllOf interface: -/** - * @member {module:model/UserPermissionsItem} data - */ -UserPermissionsAllOf.prototype['data'] = undefined; - - - - -export default UserPermissions; - diff --git a/src/model/UserPermissionsAllOf.js b/src/model/UserPermissionsAllOf.js deleted file mode 100644 index c4158746..00000000 --- a/src/model/UserPermissionsAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import UserPermissionsItem from './UserPermissionsItem'; - -/** - * The UserPermissionsAllOf model module. - * @module model/UserPermissionsAllOf - * @version 1.0.0 - */ -class UserPermissionsAllOf { - /** - * Constructs a new UserPermissionsAllOf. - * @alias module:model/UserPermissionsAllOf - */ - constructor() { - - UserPermissionsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserPermissionsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserPermissionsAllOf} obj Optional instance to populate. - * @return {module:model/UserPermissionsAllOf} The populated UserPermissionsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserPermissionsAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = UserPermissionsItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/UserPermissionsItem} data - */ -UserPermissionsAllOf.prototype['data'] = undefined; - - - - - - -export default UserPermissionsAllOf; - diff --git a/src/model/UserPermissionsItem.js b/src/model/UserPermissionsItem.js deleted file mode 100644 index 94deca65..00000000 --- a/src/model/UserPermissionsItem.js +++ /dev/null @@ -1,409 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UserPermissionsItem model module. - * @module model/UserPermissionsItem - * @version 1.0.0 - */ -class UserPermissionsItem { - /** - * Constructs a new UserPermissionsItem. - * @alias module:model/UserPermissionsItem - */ - constructor() { - - UserPermissionsItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserPermissionsItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserPermissionsItem} obj Optional instance to populate. - * @return {module:model/UserPermissionsItem} The populated UserPermissionsItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserPermissionsItem(); - - if (data.hasOwnProperty('can_add_custom_fields')) { - obj['can_add_custom_fields'] = ApiClient.convertToType(data['can_add_custom_fields'], 'Boolean'); - - delete data['can_add_custom_fields']; - } - if (data.hasOwnProperty('can_add_products')) { - obj['can_add_products'] = ApiClient.convertToType(data['can_add_products'], 'Boolean'); - - delete data['can_add_products']; - } - if (data.hasOwnProperty('can_add_prospects_as_leads')) { - obj['can_add_prospects_as_leads'] = ApiClient.convertToType(data['can_add_prospects_as_leads'], 'Boolean'); - - delete data['can_add_prospects_as_leads']; - } - if (data.hasOwnProperty('can_bulk_edit_items')) { - obj['can_bulk_edit_items'] = ApiClient.convertToType(data['can_bulk_edit_items'], 'Boolean'); - - delete data['can_bulk_edit_items']; - } - if (data.hasOwnProperty('can_change_visibility_of_items')) { - obj['can_change_visibility_of_items'] = ApiClient.convertToType(data['can_change_visibility_of_items'], 'Boolean'); - - delete data['can_change_visibility_of_items']; - } - if (data.hasOwnProperty('can_convert_deals_to_leads')) { - obj['can_convert_deals_to_leads'] = ApiClient.convertToType(data['can_convert_deals_to_leads'], 'Boolean'); - - delete data['can_convert_deals_to_leads']; - } - if (data.hasOwnProperty('can_create_own_workflow')) { - obj['can_create_own_workflow'] = ApiClient.convertToType(data['can_create_own_workflow'], 'Boolean'); - - delete data['can_create_own_workflow']; - } - if (data.hasOwnProperty('can_delete_activities')) { - obj['can_delete_activities'] = ApiClient.convertToType(data['can_delete_activities'], 'Boolean'); - - delete data['can_delete_activities']; - } - if (data.hasOwnProperty('can_delete_custom_fields')) { - obj['can_delete_custom_fields'] = ApiClient.convertToType(data['can_delete_custom_fields'], 'Boolean'); - - delete data['can_delete_custom_fields']; - } - if (data.hasOwnProperty('can_delete_deals')) { - obj['can_delete_deals'] = ApiClient.convertToType(data['can_delete_deals'], 'Boolean'); - - delete data['can_delete_deals']; - } - if (data.hasOwnProperty('can_edit_custom_fields')) { - obj['can_edit_custom_fields'] = ApiClient.convertToType(data['can_edit_custom_fields'], 'Boolean'); - - delete data['can_edit_custom_fields']; - } - if (data.hasOwnProperty('can_edit_deals_closed_date')) { - obj['can_edit_deals_closed_date'] = ApiClient.convertToType(data['can_edit_deals_closed_date'], 'Boolean'); - - delete data['can_edit_deals_closed_date']; - } - if (data.hasOwnProperty('can_edit_products')) { - obj['can_edit_products'] = ApiClient.convertToType(data['can_edit_products'], 'Boolean'); - - delete data['can_edit_products']; - } - if (data.hasOwnProperty('can_edit_shared_filters')) { - obj['can_edit_shared_filters'] = ApiClient.convertToType(data['can_edit_shared_filters'], 'Boolean'); - - delete data['can_edit_shared_filters']; - } - if (data.hasOwnProperty('can_export_data_from_lists')) { - obj['can_export_data_from_lists'] = ApiClient.convertToType(data['can_export_data_from_lists'], 'Boolean'); - - delete data['can_export_data_from_lists']; - } - if (data.hasOwnProperty('can_follow_other_users')) { - obj['can_follow_other_users'] = ApiClient.convertToType(data['can_follow_other_users'], 'Boolean'); - - delete data['can_follow_other_users']; - } - if (data.hasOwnProperty('can_merge_deals')) { - obj['can_merge_deals'] = ApiClient.convertToType(data['can_merge_deals'], 'Boolean'); - - delete data['can_merge_deals']; - } - if (data.hasOwnProperty('can_merge_organizations')) { - obj['can_merge_organizations'] = ApiClient.convertToType(data['can_merge_organizations'], 'Boolean'); - - delete data['can_merge_organizations']; - } - if (data.hasOwnProperty('can_merge_people')) { - obj['can_merge_people'] = ApiClient.convertToType(data['can_merge_people'], 'Boolean'); - - delete data['can_merge_people']; - } - if (data.hasOwnProperty('can_modify_labels')) { - obj['can_modify_labels'] = ApiClient.convertToType(data['can_modify_labels'], 'Boolean'); - - delete data['can_modify_labels']; - } - if (data.hasOwnProperty('can_see_company_wide_statistics')) { - obj['can_see_company_wide_statistics'] = ApiClient.convertToType(data['can_see_company_wide_statistics'], 'Boolean'); - - delete data['can_see_company_wide_statistics']; - } - if (data.hasOwnProperty('can_see_deals_list_summary')) { - obj['can_see_deals_list_summary'] = ApiClient.convertToType(data['can_see_deals_list_summary'], 'Boolean'); - - delete data['can_see_deals_list_summary']; - } - if (data.hasOwnProperty('can_see_hidden_items_names')) { - obj['can_see_hidden_items_names'] = ApiClient.convertToType(data['can_see_hidden_items_names'], 'Boolean'); - - delete data['can_see_hidden_items_names']; - } - if (data.hasOwnProperty('can_see_other_users')) { - obj['can_see_other_users'] = ApiClient.convertToType(data['can_see_other_users'], 'Boolean'); - - delete data['can_see_other_users']; - } - if (data.hasOwnProperty('can_see_other_users_statistics')) { - obj['can_see_other_users_statistics'] = ApiClient.convertToType(data['can_see_other_users_statistics'], 'Boolean'); - - delete data['can_see_other_users_statistics']; - } - if (data.hasOwnProperty('can_see_security_dashboard')) { - obj['can_see_security_dashboard'] = ApiClient.convertToType(data['can_see_security_dashboard'], 'Boolean'); - - delete data['can_see_security_dashboard']; - } - if (data.hasOwnProperty('can_share_filters')) { - obj['can_share_filters'] = ApiClient.convertToType(data['can_share_filters'], 'Boolean'); - - delete data['can_share_filters']; - } - if (data.hasOwnProperty('can_share_insights')) { - obj['can_share_insights'] = ApiClient.convertToType(data['can_share_insights'], 'Boolean'); - - delete data['can_share_insights']; - } - if (data.hasOwnProperty('can_use_api')) { - obj['can_use_api'] = ApiClient.convertToType(data['can_use_api'], 'Boolean'); - - delete data['can_use_api']; - } - if (data.hasOwnProperty('can_use_email_tracking')) { - obj['can_use_email_tracking'] = ApiClient.convertToType(data['can_use_email_tracking'], 'Boolean'); - - delete data['can_use_email_tracking']; - } - if (data.hasOwnProperty('can_use_import')) { - obj['can_use_import'] = ApiClient.convertToType(data['can_use_import'], 'Boolean'); - - delete data['can_use_import']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the user can add custom fields - * @member {Boolean} can_add_custom_fields - */ -UserPermissionsItem.prototype['can_add_custom_fields'] = undefined; - -/** - * If the user can add products - * @member {Boolean} can_add_products - */ -UserPermissionsItem.prototype['can_add_products'] = undefined; - -/** - * If the user can add prospects as leads - * @member {Boolean} can_add_prospects_as_leads - */ -UserPermissionsItem.prototype['can_add_prospects_as_leads'] = undefined; - -/** - * If the user can bulk edit items - * @member {Boolean} can_bulk_edit_items - */ -UserPermissionsItem.prototype['can_bulk_edit_items'] = undefined; - -/** - * If the user can change visibility of items - * @member {Boolean} can_change_visibility_of_items - */ -UserPermissionsItem.prototype['can_change_visibility_of_items'] = undefined; - -/** - * If the user can convert deals to leads - * @member {Boolean} can_convert_deals_to_leads - */ -UserPermissionsItem.prototype['can_convert_deals_to_leads'] = undefined; - -/** - * If the user can create workflows - * @member {Boolean} can_create_own_workflow - */ -UserPermissionsItem.prototype['can_create_own_workflow'] = undefined; - -/** - * If the user can delete activities - * @member {Boolean} can_delete_activities - */ -UserPermissionsItem.prototype['can_delete_activities'] = undefined; - -/** - * If the user can delete custom fields - * @member {Boolean} can_delete_custom_fields - */ -UserPermissionsItem.prototype['can_delete_custom_fields'] = undefined; - -/** - * If the user can delete deals - * @member {Boolean} can_delete_deals - */ -UserPermissionsItem.prototype['can_delete_deals'] = undefined; - -/** - * If the user can edit custom fields - * @member {Boolean} can_edit_custom_fields - */ -UserPermissionsItem.prototype['can_edit_custom_fields'] = undefined; - -/** - * If the user can edit deals' closed date - * @member {Boolean} can_edit_deals_closed_date - */ -UserPermissionsItem.prototype['can_edit_deals_closed_date'] = undefined; - -/** - * If the user can edit products - * @member {Boolean} can_edit_products - */ -UserPermissionsItem.prototype['can_edit_products'] = undefined; - -/** - * If the user can edit shared filters - * @member {Boolean} can_edit_shared_filters - */ -UserPermissionsItem.prototype['can_edit_shared_filters'] = undefined; - -/** - * If the user can export data from item lists - * @member {Boolean} can_export_data_from_lists - */ -UserPermissionsItem.prototype['can_export_data_from_lists'] = undefined; - -/** - * If the user can follow other users - * @member {Boolean} can_follow_other_users - */ -UserPermissionsItem.prototype['can_follow_other_users'] = undefined; - -/** - * If the user can merge deals - * @member {Boolean} can_merge_deals - */ -UserPermissionsItem.prototype['can_merge_deals'] = undefined; - -/** - * If the user can merge organizations - * @member {Boolean} can_merge_organizations - */ -UserPermissionsItem.prototype['can_merge_organizations'] = undefined; - -/** - * If the user can merge people - * @member {Boolean} can_merge_people - */ -UserPermissionsItem.prototype['can_merge_people'] = undefined; - -/** - * If the user can modify labels - * @member {Boolean} can_modify_labels - */ -UserPermissionsItem.prototype['can_modify_labels'] = undefined; - -/** - * If the user can see company-wide statistics - * @member {Boolean} can_see_company_wide_statistics - */ -UserPermissionsItem.prototype['can_see_company_wide_statistics'] = undefined; - -/** - * If the user can see the summary on the deals page - * @member {Boolean} can_see_deals_list_summary - */ -UserPermissionsItem.prototype['can_see_deals_list_summary'] = undefined; - -/** - * If the user can see the names of hidden items - * @member {Boolean} can_see_hidden_items_names - */ -UserPermissionsItem.prototype['can_see_hidden_items_names'] = undefined; - -/** - * If the user can see other users - * @member {Boolean} can_see_other_users - */ -UserPermissionsItem.prototype['can_see_other_users'] = undefined; - -/** - * If the user can see other users' statistics - * @member {Boolean} can_see_other_users_statistics - */ -UserPermissionsItem.prototype['can_see_other_users_statistics'] = undefined; - -/** - * If the user can see security dashboard - * @member {Boolean} can_see_security_dashboard - */ -UserPermissionsItem.prototype['can_see_security_dashboard'] = undefined; - -/** - * If the user can share filters - * @member {Boolean} can_share_filters - */ -UserPermissionsItem.prototype['can_share_filters'] = undefined; - -/** - * If the user can share insights - * @member {Boolean} can_share_insights - */ -UserPermissionsItem.prototype['can_share_insights'] = undefined; - -/** - * If the user can use API - * @member {Boolean} can_use_api - */ -UserPermissionsItem.prototype['can_use_api'] = undefined; - -/** - * If the user can use email tracking - * @member {Boolean} can_use_email_tracking - */ -UserPermissionsItem.prototype['can_use_email_tracking'] = undefined; - -/** - * If the user can use import - * @member {Boolean} can_use_import - */ -UserPermissionsItem.prototype['can_use_import'] = undefined; - - - - - - -export default UserPermissionsItem; - diff --git a/src/model/UserProviderLinkCreateRequest.js b/src/model/UserProviderLinkCreateRequest.js deleted file mode 100644 index 381bbf56..00000000 --- a/src/model/UserProviderLinkCreateRequest.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UserProviderLinkCreateRequest model module. - * @module model/UserProviderLinkCreateRequest - * @version 1.0.0 - */ -class UserProviderLinkCreateRequest { - /** - * Constructs a new UserProviderLinkCreateRequest. - * @alias module:model/UserProviderLinkCreateRequest - * @param userProviderId {String} Unique identifier linking a user to the installed integration. Generated by the integration. - * @param userId {Number} Pipedrive user ID - * @param companyId {Number} Pipedrive company ID - * @param marketplaceClientId {String} Pipedrive Marketplace client ID of the installed integration - */ - constructor(userProviderId, userId, companyId, marketplaceClientId) { - - UserProviderLinkCreateRequest.initialize(this, userProviderId, userId, companyId, marketplaceClientId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userProviderId, userId, companyId, marketplaceClientId) { - obj['user_provider_id'] = userProviderId; - obj['user_id'] = userId; - obj['company_id'] = companyId; - obj['marketplace_client_id'] = marketplaceClientId; - } - - /** - * Constructs a UserProviderLinkCreateRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserProviderLinkCreateRequest} obj Optional instance to populate. - * @return {module:model/UserProviderLinkCreateRequest} The populated UserProviderLinkCreateRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserProviderLinkCreateRequest(); - - if (data.hasOwnProperty('user_provider_id')) { - obj['user_provider_id'] = ApiClient.convertToType(data['user_provider_id'], 'String'); - - delete data['user_provider_id']; - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - - delete data['user_id']; - } - if (data.hasOwnProperty('company_id')) { - obj['company_id'] = ApiClient.convertToType(data['company_id'], 'Number'); - - delete data['company_id']; - } - if (data.hasOwnProperty('marketplace_client_id')) { - obj['marketplace_client_id'] = ApiClient.convertToType(data['marketplace_client_id'], 'String'); - - delete data['marketplace_client_id']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Unique identifier linking a user to the installed integration. Generated by the integration. - * @member {String} user_provider_id - */ -UserProviderLinkCreateRequest.prototype['user_provider_id'] = undefined; - -/** - * Pipedrive user ID - * @member {Number} user_id - */ -UserProviderLinkCreateRequest.prototype['user_id'] = undefined; - -/** - * Pipedrive company ID - * @member {Number} company_id - */ -UserProviderLinkCreateRequest.prototype['company_id'] = undefined; - -/** - * Pipedrive Marketplace client ID of the installed integration - * @member {String} marketplace_client_id - */ -UserProviderLinkCreateRequest.prototype['marketplace_client_id'] = undefined; - - - - - - -export default UserProviderLinkCreateRequest; - diff --git a/src/model/UserProviderLinkErrorResponse.js b/src/model/UserProviderLinkErrorResponse.js deleted file mode 100644 index 6b861440..00000000 --- a/src/model/UserProviderLinkErrorResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UserProviderLinkErrorResponse model module. - * @module model/UserProviderLinkErrorResponse - * @version 1.0.0 - */ -class UserProviderLinkErrorResponse { - /** - * Constructs a new UserProviderLinkErrorResponse. - * @alias module:model/UserProviderLinkErrorResponse - */ - constructor() { - - UserProviderLinkErrorResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserProviderLinkErrorResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserProviderLinkErrorResponse} obj Optional instance to populate. - * @return {module:model/UserProviderLinkErrorResponse} The populated UserProviderLinkErrorResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserProviderLinkErrorResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - - delete data['message']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Boolean that indicates whether the request was successful or not - * @member {Boolean} success - */ -UserProviderLinkErrorResponse.prototype['success'] = undefined; - -/** - * The error message of the request - * @member {String} message - */ -UserProviderLinkErrorResponse.prototype['message'] = undefined; - - - - - - -export default UserProviderLinkErrorResponse; - diff --git a/src/model/UserProviderLinkSuccessResponse.js b/src/model/UserProviderLinkSuccessResponse.js deleted file mode 100644 index 44bae5cb..00000000 --- a/src/model/UserProviderLinkSuccessResponse.js +++ /dev/null @@ -1,90 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import UserProviderLinkSuccessResponseData from './UserProviderLinkSuccessResponseData'; - -/** - * The UserProviderLinkSuccessResponse model module. - * @module model/UserProviderLinkSuccessResponse - * @version 1.0.0 - */ -class UserProviderLinkSuccessResponse { - /** - * Constructs a new UserProviderLinkSuccessResponse. - * @alias module:model/UserProviderLinkSuccessResponse - */ - constructor() { - - UserProviderLinkSuccessResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserProviderLinkSuccessResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserProviderLinkSuccessResponse} obj Optional instance to populate. - * @return {module:model/UserProviderLinkSuccessResponse} The populated UserProviderLinkSuccessResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserProviderLinkSuccessResponse(); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = UserProviderLinkSuccessResponseData.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * Boolean that indicates whether the request was successful or not - * @member {Boolean} success - */ -UserProviderLinkSuccessResponse.prototype['success'] = undefined; - -/** - * @member {module:model/UserProviderLinkSuccessResponseData} data - */ -UserProviderLinkSuccessResponse.prototype['data'] = undefined; - - - - - - -export default UserProviderLinkSuccessResponse; - diff --git a/src/model/UserProviderLinkSuccessResponseData.js b/src/model/UserProviderLinkSuccessResponseData.js deleted file mode 100644 index f3d317c7..00000000 --- a/src/model/UserProviderLinkSuccessResponseData.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UserProviderLinkSuccessResponseData model module. - * @module model/UserProviderLinkSuccessResponseData - * @version 1.0.0 - */ -class UserProviderLinkSuccessResponseData { - /** - * Constructs a new UserProviderLinkSuccessResponseData. - * @alias module:model/UserProviderLinkSuccessResponseData - */ - constructor() { - - UserProviderLinkSuccessResponseData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserProviderLinkSuccessResponseData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserProviderLinkSuccessResponseData} obj Optional instance to populate. - * @return {module:model/UserProviderLinkSuccessResponseData} The populated UserProviderLinkSuccessResponseData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserProviderLinkSuccessResponseData(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - - delete data['message']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The success message of the request - * @member {String} message - */ -UserProviderLinkSuccessResponseData.prototype['message'] = undefined; - - - - - - -export default UserProviderLinkSuccessResponseData; - diff --git a/src/model/UserSettings.js b/src/model/UserSettings.js deleted file mode 100644 index 3c71bdd3..00000000 --- a/src/model/UserSettings.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import UserSettingsAllOf from './UserSettingsAllOf'; -import UserSettingsItem from './UserSettingsItem'; - -/** - * The UserSettings model module. - * @module model/UserSettings - * @version 1.0.0 - */ -class UserSettings { - /** - * Constructs a new UserSettings. - * @alias module:model/UserSettings - * @implements module:model/BaseResponse - * @implements module:model/UserSettingsAllOf - */ - constructor() { - BaseResponse.initialize(this);UserSettingsAllOf.initialize(this); - UserSettings.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserSettings from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserSettings} obj Optional instance to populate. - * @return {module:model/UserSettings} The populated UserSettings instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserSettings(); - BaseResponse.constructFromObject(data, obj); - UserSettingsAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = UserSettingsItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -UserSettings.prototype['success'] = undefined; - -/** - * @member {module:model/UserSettingsItem} data - */ -UserSettings.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement UserSettingsAllOf interface: -/** - * @member {module:model/UserSettingsItem} data - */ -UserSettingsAllOf.prototype['data'] = undefined; - - - - -export default UserSettings; - diff --git a/src/model/UserSettingsAllOf.js b/src/model/UserSettingsAllOf.js deleted file mode 100644 index 91ddae97..00000000 --- a/src/model/UserSettingsAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import UserSettingsItem from './UserSettingsItem'; - -/** - * The UserSettingsAllOf model module. - * @module model/UserSettingsAllOf - * @version 1.0.0 - */ -class UserSettingsAllOf { - /** - * Constructs a new UserSettingsAllOf. - * @alias module:model/UserSettingsAllOf - */ - constructor() { - - UserSettingsAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserSettingsAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserSettingsAllOf} obj Optional instance to populate. - * @return {module:model/UserSettingsAllOf} The populated UserSettingsAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserSettingsAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = UserSettingsItem.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/UserSettingsItem} data - */ -UserSettingsAllOf.prototype['data'] = undefined; - - - - - - -export default UserSettingsAllOf; - diff --git a/src/model/UserSettingsItem.js b/src/model/UserSettingsItem.js deleted file mode 100644 index 33ac4521..00000000 --- a/src/model/UserSettingsItem.js +++ /dev/null @@ -1,156 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UserSettingsItem model module. - * @module model/UserSettingsItem - * @version 1.0.0 - */ -class UserSettingsItem { - /** - * Constructs a new UserSettingsItem. - * @alias module:model/UserSettingsItem - */ - constructor() { - - UserSettingsItem.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UserSettingsItem from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UserSettingsItem} obj Optional instance to populate. - * @return {module:model/UserSettingsItem} The populated UserSettingsItem instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UserSettingsItem(); - - if (data.hasOwnProperty('marketplace_team')) { - obj['marketplace_team'] = ApiClient.convertToType(data['marketplace_team'], 'Boolean'); - - delete data['marketplace_team']; - } - if (data.hasOwnProperty('list_limit')) { - obj['list_limit'] = ApiClient.convertToType(data['list_limit'], 'Number'); - - delete data['list_limit']; - } - if (data.hasOwnProperty('beta_app')) { - obj['beta_app'] = ApiClient.convertToType(data['beta_app'], 'Boolean'); - - delete data['beta_app']; - } - if (data.hasOwnProperty('prevent_salesphone_callto_override')) { - obj['prevent_salesphone_callto_override'] = ApiClient.convertToType(data['prevent_salesphone_callto_override'], 'Boolean'); - - delete data['prevent_salesphone_callto_override']; - } - if (data.hasOwnProperty('file_upload_destination')) { - obj['file_upload_destination'] = ApiClient.convertToType(data['file_upload_destination'], 'String'); - - delete data['file_upload_destination']; - } - if (data.hasOwnProperty('callto_link_syntax')) { - obj['callto_link_syntax'] = ApiClient.convertToType(data['callto_link_syntax'], 'String'); - - delete data['callto_link_syntax']; - } - if (data.hasOwnProperty('autofill_deal_expected_close_date')) { - obj['autofill_deal_expected_close_date'] = ApiClient.convertToType(data['autofill_deal_expected_close_date'], 'Boolean'); - - delete data['autofill_deal_expected_close_date']; - } - if (data.hasOwnProperty('person_duplicate_condition')) { - obj['person_duplicate_condition'] = ApiClient.convertToType(data['person_duplicate_condition'], 'String'); - - delete data['person_duplicate_condition']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the vendors are allowed to be part of the Marketplace team or not - * @member {Boolean} marketplace_team - */ -UserSettingsItem.prototype['marketplace_team'] = undefined; - -/** - * The number of results shown in list by default - * @member {Number} list_limit - */ -UserSettingsItem.prototype['list_limit'] = undefined; - -/** - * Whether beta app is enabled - * @member {Boolean} beta_app - */ -UserSettingsItem.prototype['beta_app'] = undefined; - -/** - * Prevent salesphone call to override - * @member {Boolean} prevent_salesphone_callto_override - */ -UserSettingsItem.prototype['prevent_salesphone_callto_override'] = undefined; - -/** - * The destination of file upload - * @member {String} file_upload_destination - */ -UserSettingsItem.prototype['file_upload_destination'] = undefined; - -/** - * The call to link syntax - * @member {String} callto_link_syntax - */ -UserSettingsItem.prototype['callto_link_syntax'] = undefined; - -/** - * Whether the expected close date of the deal is filled automatically or not - * @member {Boolean} autofill_deal_expected_close_date - */ -UserSettingsItem.prototype['autofill_deal_expected_close_date'] = undefined; - -/** - * Allow the vendors to duplicate a person - * @member {String} person_duplicate_condition - */ -UserSettingsItem.prototype['person_duplicate_condition'] = undefined; - - - - - - -export default UserSettingsItem; - diff --git a/src/model/Users.js b/src/model/Users.js deleted file mode 100644 index 39025f75..00000000 --- a/src/model/Users.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import BaseUser from './BaseUser'; -import UsersAllOf from './UsersAllOf'; - -/** - * The Users model module. - * @module model/Users - * @version 1.0.0 - */ -class Users { - /** - * Constructs a new Users. - * @alias module:model/Users - * @implements module:model/BaseResponse - * @implements module:model/UsersAllOf - */ - constructor() { - BaseResponse.initialize(this);UsersAllOf.initialize(this); - Users.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Users from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Users} obj Optional instance to populate. - * @return {module:model/Users} The populated Users instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Users(); - BaseResponse.constructFromObject(data, obj); - UsersAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseUser]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -Users.prototype['success'] = undefined; - -/** - * @member {Array.} data - */ -Users.prototype['data'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement UsersAllOf interface: -/** - * @member {Array.} data - */ -UsersAllOf.prototype['data'] = undefined; - - - - -export default Users; - diff --git a/src/model/UsersAllOf.js b/src/model/UsersAllOf.js deleted file mode 100644 index c6d5d2ff..00000000 --- a/src/model/UsersAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseUser from './BaseUser'; - -/** - * The UsersAllOf model module. - * @module model/UsersAllOf - * @version 1.0.0 - */ -class UsersAllOf { - /** - * Constructs a new UsersAllOf. - * @alias module:model/UsersAllOf - */ - constructor() { - - UsersAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UsersAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UsersAllOf} obj Optional instance to populate. - * @return {module:model/UsersAllOf} The populated UsersAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UsersAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseUser]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {Array.} data - */ -UsersAllOf.prototype['data'] = undefined; - - - - - - -export default UsersAllOf; - diff --git a/src/model/VisibleTo.js b/src/model/VisibleTo.js deleted file mode 100644 index ae204f51..00000000 --- a/src/model/VisibleTo.js +++ /dev/null @@ -1,68 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -/** -* Enum class VisibleTo. -* @enum {} -* @readonly -*/ -export default class VisibleTo { - - /** - * value: "1" - * @const - */ - "1" = "1"; - - - /** - * value: "3" - * @const - */ - "3" = "3"; - - - /** - * value: "5" - * @const - */ - "5" = "5"; - - - /** - * value: "7" - * @const - */ - "7" = "7"; - - - - /** - * Returns a VisibleTo enum value from a Javascript object name. - * @param {Object} data The plain JavaScript object containing the name of the enum value. - * @return {module:model/VisibleTo} The enum VisibleTo value. - */ - static constructFromObject(object) { - return object; - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } -} - diff --git a/src/model/Webhook.js b/src/model/Webhook.js deleted file mode 100644 index cde94036..00000000 --- a/src/model/Webhook.js +++ /dev/null @@ -1,123 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponseWithStatus from './BaseResponseWithStatus'; -import BaseWebhook from './BaseWebhook'; -import WebhookAllOf from './WebhookAllOf'; - -/** - * The Webhook model module. - * @module model/Webhook - * @version 1.0.0 - */ -class Webhook { - /** - * Constructs a new Webhook. - * @alias module:model/Webhook - * @implements module:model/BaseResponseWithStatus - * @implements module:model/WebhookAllOf - */ - constructor() { - BaseResponseWithStatus.initialize(this);WebhookAllOf.initialize(this); - Webhook.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Webhook from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Webhook} obj Optional instance to populate. - * @return {module:model/Webhook} The populated Webhook instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Webhook(); - BaseResponseWithStatus.constructFromObject(data, obj); - WebhookAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = BaseWebhook.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -Webhook.prototype['success'] = undefined; - -/** - * The status of the response - * @member {String} status - */ -Webhook.prototype['status'] = undefined; - -/** - * @member {module:model/BaseWebhook} data - */ -Webhook.prototype['data'] = undefined; - - -// Implement BaseResponseWithStatus interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponseWithStatus.prototype['success'] = undefined; -/** - * The status of the response - * @member {String} status - */ -BaseResponseWithStatus.prototype['status'] = undefined; -// Implement WebhookAllOf interface: -/** - * @member {module:model/BaseWebhook} data - */ -WebhookAllOf.prototype['data'] = undefined; - - - - -export default Webhook; - diff --git a/src/model/WebhookAllOf.js b/src/model/WebhookAllOf.js deleted file mode 100644 index b2bbbf50..00000000 --- a/src/model/WebhookAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseWebhook from './BaseWebhook'; - -/** - * The WebhookAllOf model module. - * @module model/WebhookAllOf - * @version 1.0.0 - */ -class WebhookAllOf { - /** - * Constructs a new WebhookAllOf. - * @alias module:model/WebhookAllOf - */ - constructor() { - - WebhookAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a WebhookAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/WebhookAllOf} obj Optional instance to populate. - * @return {module:model/WebhookAllOf} The populated WebhookAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new WebhookAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = BaseWebhook.constructFromObject(data['data']); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * @member {module:model/BaseWebhook} data - */ -WebhookAllOf.prototype['data'] = undefined; - - - - - - -export default WebhookAllOf; - diff --git a/src/model/WebhookBadRequest.js b/src/model/WebhookBadRequest.js deleted file mode 100644 index 762dd527..00000000 --- a/src/model/WebhookBadRequest.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponseWithStatus from './BaseResponseWithStatus'; -import WebhookBadRequestAllOf from './WebhookBadRequestAllOf'; - -/** - * The WebhookBadRequest model module. - * @module model/WebhookBadRequest - * @version 1.0.0 - */ -class WebhookBadRequest { - /** - * Constructs a new WebhookBadRequest. - * @alias module:model/WebhookBadRequest - * @implements module:model/BaseResponseWithStatus - * @implements module:model/WebhookBadRequestAllOf - */ - constructor() { - BaseResponseWithStatus.initialize(this);WebhookBadRequestAllOf.initialize(this); - WebhookBadRequest.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a WebhookBadRequest from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/WebhookBadRequest} obj Optional instance to populate. - * @return {module:model/WebhookBadRequest} The populated WebhookBadRequest instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new WebhookBadRequest(); - BaseResponseWithStatus.constructFromObject(data, obj); - WebhookBadRequestAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('errors')) { - obj['errors'] = ApiClient.convertToType(data['errors'], Object); - - delete data['errors']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -WebhookBadRequest.prototype['success'] = undefined; - -/** - * The status of the response - * @member {String} status - */ -WebhookBadRequest.prototype['status'] = undefined; - -/** - * List of errors - * @member {Object} errors - */ -WebhookBadRequest.prototype['errors'] = undefined; - - -// Implement BaseResponseWithStatus interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponseWithStatus.prototype['success'] = undefined; -/** - * The status of the response - * @member {String} status - */ -BaseResponseWithStatus.prototype['status'] = undefined; -// Implement WebhookBadRequestAllOf interface: -/** - * List of errors - * @member {Object} errors - */ -WebhookBadRequestAllOf.prototype['errors'] = undefined; - - - - -export default WebhookBadRequest; - diff --git a/src/model/WebhookBadRequestAllOf.js b/src/model/WebhookBadRequestAllOf.js deleted file mode 100644 index adb97d2a..00000000 --- a/src/model/WebhookBadRequestAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The WebhookBadRequestAllOf model module. - * @module model/WebhookBadRequestAllOf - * @version 1.0.0 - */ -class WebhookBadRequestAllOf { - /** - * Constructs a new WebhookBadRequestAllOf. - * @alias module:model/WebhookBadRequestAllOf - */ - constructor() { - - WebhookBadRequestAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a WebhookBadRequestAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/WebhookBadRequestAllOf} obj Optional instance to populate. - * @return {module:model/WebhookBadRequestAllOf} The populated WebhookBadRequestAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new WebhookBadRequestAllOf(); - - if (data.hasOwnProperty('errors')) { - obj['errors'] = ApiClient.convertToType(data['errors'], Object); - - delete data['errors']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * List of errors - * @member {Object} errors - */ -WebhookBadRequestAllOf.prototype['errors'] = undefined; - - - - - - -export default WebhookBadRequestAllOf; - diff --git a/src/model/Webhooks.js b/src/model/Webhooks.js deleted file mode 100644 index 2eebd3fe..00000000 --- a/src/model/Webhooks.js +++ /dev/null @@ -1,125 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponseWithStatus from './BaseResponseWithStatus'; -import BaseWebhook from './BaseWebhook'; -import WebhooksAllOf from './WebhooksAllOf'; - -/** - * The Webhooks model module. - * @module model/Webhooks - * @version 1.0.0 - */ -class Webhooks { - /** - * Constructs a new Webhooks. - * @alias module:model/Webhooks - * @implements module:model/BaseResponseWithStatus - * @implements module:model/WebhooksAllOf - */ - constructor() { - BaseResponseWithStatus.initialize(this);WebhooksAllOf.initialize(this); - Webhooks.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Webhooks from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Webhooks} obj Optional instance to populate. - * @return {module:model/Webhooks} The populated Webhooks instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Webhooks(); - BaseResponseWithStatus.constructFromObject(data, obj); - WebhooksAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - - delete data['status']; - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseWebhook]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -Webhooks.prototype['success'] = undefined; - -/** - * The status of the response - * @member {String} status - */ -Webhooks.prototype['status'] = undefined; - -/** - * The array of Webhooks - * @member {Array.} data - */ -Webhooks.prototype['data'] = undefined; - - -// Implement BaseResponseWithStatus interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponseWithStatus.prototype['success'] = undefined; -/** - * The status of the response - * @member {String} status - */ -BaseResponseWithStatus.prototype['status'] = undefined; -// Implement WebhooksAllOf interface: -/** - * The array of Webhooks - * @member {Array.} data - */ -WebhooksAllOf.prototype['data'] = undefined; - - - - -export default Webhooks; - diff --git a/src/model/WebhooksAllOf.js b/src/model/WebhooksAllOf.js deleted file mode 100644 index bb3e1710..00000000 --- a/src/model/WebhooksAllOf.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseWebhook from './BaseWebhook'; - -/** - * The WebhooksAllOf model module. - * @module model/WebhooksAllOf - * @version 1.0.0 - */ -class WebhooksAllOf { - /** - * Constructs a new WebhooksAllOf. - * @alias module:model/WebhooksAllOf - */ - constructor() { - - WebhooksAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a WebhooksAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/WebhooksAllOf} obj Optional instance to populate. - * @return {module:model/WebhooksAllOf} The populated WebhooksAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new WebhooksAllOf(); - - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], [BaseWebhook]); - - delete data['data']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The array of Webhooks - * @member {Array.} data - */ -WebhooksAllOf.prototype['data'] = undefined; - - - - - - -export default WebhooksAllOf; - diff --git a/src/model/WebhooksDeleteForbiddenSchema.js b/src/model/WebhooksDeleteForbiddenSchema.js deleted file mode 100644 index c0b1ca9f..00000000 --- a/src/model/WebhooksDeleteForbiddenSchema.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BaseResponse from './BaseResponse'; -import WebhooksDeleteForbiddenSchemaAllOf from './WebhooksDeleteForbiddenSchemaAllOf'; - -/** - * The WebhooksDeleteForbiddenSchema model module. - * @module model/WebhooksDeleteForbiddenSchema - * @version 1.0.0 - */ -class WebhooksDeleteForbiddenSchema { - /** - * Constructs a new WebhooksDeleteForbiddenSchema. - * @alias module:model/WebhooksDeleteForbiddenSchema - * @implements module:model/BaseResponse - * @implements module:model/WebhooksDeleteForbiddenSchemaAllOf - */ - constructor() { - BaseResponse.initialize(this);WebhooksDeleteForbiddenSchemaAllOf.initialize(this); - WebhooksDeleteForbiddenSchema.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a WebhooksDeleteForbiddenSchema from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/WebhooksDeleteForbiddenSchema} obj Optional instance to populate. - * @return {module:model/WebhooksDeleteForbiddenSchema} The populated WebhooksDeleteForbiddenSchema instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new WebhooksDeleteForbiddenSchema(); - BaseResponse.constructFromObject(data, obj); - WebhooksDeleteForbiddenSchemaAllOf.constructFromObject(data, obj); - - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - - delete data['success']; - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - - delete data['message']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * If the response is successful or not - * @member {Boolean} success - */ -WebhooksDeleteForbiddenSchema.prototype['success'] = undefined; - -/** - * The error message - * @member {String} message - */ -WebhooksDeleteForbiddenSchema.prototype['message'] = undefined; - - -// Implement BaseResponse interface: -/** - * If the response is successful or not - * @member {Boolean} success - */ -BaseResponse.prototype['success'] = undefined; -// Implement WebhooksDeleteForbiddenSchemaAllOf interface: -/** - * The error message - * @member {String} message - */ -WebhooksDeleteForbiddenSchemaAllOf.prototype['message'] = undefined; - - - - -export default WebhooksDeleteForbiddenSchema; - diff --git a/src/model/WebhooksDeleteForbiddenSchemaAllOf.js b/src/model/WebhooksDeleteForbiddenSchemaAllOf.js deleted file mode 100644 index c907bef5..00000000 --- a/src/model/WebhooksDeleteForbiddenSchemaAllOf.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Pipedrive API v1 - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 1.0.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The WebhooksDeleteForbiddenSchemaAllOf model module. - * @module model/WebhooksDeleteForbiddenSchemaAllOf - * @version 1.0.0 - */ -class WebhooksDeleteForbiddenSchemaAllOf { - /** - * Constructs a new WebhooksDeleteForbiddenSchemaAllOf. - * @alias module:model/WebhooksDeleteForbiddenSchemaAllOf - */ - constructor() { - - WebhooksDeleteForbiddenSchemaAllOf.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a WebhooksDeleteForbiddenSchemaAllOf from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/WebhooksDeleteForbiddenSchemaAllOf} obj Optional instance to populate. - * @return {module:model/WebhooksDeleteForbiddenSchemaAllOf} The populated WebhooksDeleteForbiddenSchemaAllOf instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new WebhooksDeleteForbiddenSchemaAllOf(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - - delete data['message']; - } - - if (Object.keys(data).length > 0) { - Object.assign(obj, data); - } - - } - return obj; - } - - -} - -/** - * The error message - * @member {String} message - */ -WebhooksDeleteForbiddenSchemaAllOf.prototype['message'] = undefined; - - - - - - -export default WebhooksDeleteForbiddenSchemaAllOf; - diff --git a/src/versions/.gitkeep b/src/versions/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/src/versions/v1/api.ts b/src/versions/v1/api.ts new file mode 100644 index 00000000..87fef740 --- /dev/null +++ b/src/versions/v1/api.ts @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export * from './api/activities-api'; +export * from './api/activity-fields-api'; +export * from './api/activity-types-api'; +export * from './api/billing-api'; +export * from './api/call-logs-api'; +export * from './api/channels-api'; +export * from './api/currencies-api'; +export * from './api/deal-fields-api'; +export * from './api/deals-api'; +export * from './api/files-api'; +export * from './api/filters-api'; +export * from './api/goals-api'; +export * from './api/item-search-api'; +export * from './api/lead-labels-api'; +export * from './api/lead-sources-api'; +export * from './api/leads-api'; +export * from './api/legacy-teams-api'; +export * from './api/mailbox-api'; +export * from './api/meetings-api'; +export * from './api/note-fields-api'; +export * from './api/notes-api'; +export * from './api/organization-fields-api'; +export * from './api/organization-relationships-api'; +export * from './api/organizations-api'; +export * from './api/permission-sets-api'; +export * from './api/person-fields-api'; +export * from './api/persons-api'; +export * from './api/pipelines-api'; +export * from './api/product-fields-api'; +export * from './api/products-api'; +export * from './api/project-templates-api'; +export * from './api/projects-api'; +export * from './api/recents-api'; +export * from './api/roles-api'; +export * from './api/stages-api'; +export * from './api/subscriptions-api'; +export * from './api/tasks-api'; +export * from './api/user-connections-api'; +export * from './api/user-settings-api'; +export * from './api/users-api'; +export * from './api/webhooks-api'; + diff --git a/src/versions/v1/api/activities-api.ts b/src/versions/v1/api/activities-api.ts new file mode 100644 index 00000000..2c9bf4d4 --- /dev/null +++ b/src/versions/v1/api/activities-api.ts @@ -0,0 +1,886 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddActivityRequest } from '../models'; +// @ts-ignore +import { AddActivityResponse } from '../models'; +// @ts-ignore +import { DeleteActivitiesResponse } from '../models'; +// @ts-ignore +import { DeleteActivityResponse } from '../models'; +// @ts-ignore +import { FailResponse } from '../models'; +// @ts-ignore +import { GetActivitiesCollectionResponse } from '../models'; +// @ts-ignore +import { GetActivitiesResponse } from '../models'; +// @ts-ignore +import { GetActivityResponse } from '../models'; +// @ts-ignore +import { UpdateActivityRequest } from '../models'; +// @ts-ignore +import { UpdateActivityResponse } from '../models'; +/** + * ActivitiesApi - axios parameter creator + * @export + */ +export const ActivitiesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new activity. Includes `more_activities_scheduled_in_context` property in response\'s `additional_data` which indicates whether there are more undone activities scheduled with the same deal, person or organization (depending on the supplied data). For more information, see the tutorial for adding an activity.

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

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

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

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

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

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

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

***Starting from 30.09.2024, activity attendees will receive updates only if the activity owner has an active calendar sync*** + * @summary Update an activity + * @param {ActivitiesApiUpdateActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ActivitiesApi + */ + public updateActivity(requestParameters: ActivitiesApiUpdateActivityRequest, ) { + return ActivitiesApiFp(this.configuration).updateActivity(requestParameters.id, requestParameters.UpdateActivityRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/activity-fields-api.ts b/src/versions/v1/api/activity-fields-api.ts new file mode 100644 index 00000000..d7b6024b --- /dev/null +++ b/src/versions/v1/api/activity-fields-api.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetFieldsResponse } from '../models'; +/** + * ActivityFieldsApi - axios parameter creator + * @export + */ +export const ActivityFieldsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Returns all activity fields. + * @summary Get all activity fields + + * @throws {RequiredError} + */ + getActivityFields: async (): Promise => { + const localVarPath = `/activityFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * ActivityFieldsApi - functional programming interface + * @export + */ +export const ActivityFieldsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ActivityFieldsApiAxiosParamCreator(configuration) + return { + /** + * Returns all activity fields. + * @summary Get all activity fields + + * @throws {RequiredError} + */ + async getActivityFields(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getActivityFields(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ActivityFieldsApi - factory interface + * @export + */ +export const ActivityFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ActivityFieldsApiFp(configuration) + return { + /** + * Returns all activity fields. + * @summary Get all activity fields + + * @throws {RequiredError} + */ + getActivityFields(): Promise { + return localVarFp.getActivityFields().then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ActivityFieldsApi - object-oriented interface + * @export + * @class ActivityFieldsApi + * @extends {BaseAPI} + */ +export class ActivityFieldsApi extends BaseAPI { + /** + * Returns all activity fields. + * @summary Get all activity fields + + * @throws {RequiredError} + * @memberof ActivityFieldsApi + */ + public getActivityFields() { + return ActivityFieldsApiFp(this.configuration).getActivityFields().then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/activity-types-api.ts b/src/versions/v1/api/activity-types-api.ts new file mode 100644 index 00000000..5e0a1cda --- /dev/null +++ b/src/versions/v1/api/activity-types-api.ts @@ -0,0 +1,504 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddActivityTypeRequest } from '../models'; +// @ts-ignore +import { DeleteActivityTypesResponse } from '../models'; +// @ts-ignore +import { GetActivityTypesResponse } from '../models'; +// @ts-ignore +import { UpdateActivityTypeRequest } from '../models'; +// @ts-ignore +import { UpsertActivityTypeResponse } from '../models'; +/** + * ActivityTypesApi - axios parameter creator + * @export + */ +export const ActivityTypesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new activity type. + * @summary Add new activity type + * @param {AddActivityTypeRequest} [AddActivityTypeRequest] + + * @throws {RequiredError} + */ + addActivityType: async (AddActivityTypeRequest?: AddActivityTypeRequest, ): Promise => { + const localVarPath = `/activityTypes`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddActivityTypeRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks an activity type as deleted. + * @summary Delete an activity type + * @param {number} id The ID of the activity type + + * @throws {RequiredError} + */ + deleteActivityType: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteActivityType', 'id', id) + const localVarPath = `/activityTypes/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks multiple activity types as deleted. + * @summary Delete multiple activity types in bulk + * @param {string} ids The comma-separated activity type IDs + + * @throws {RequiredError} + */ + deleteActivityTypes: async (ids: string, ): Promise => { + // verify required parameter 'ids' is not null or undefined + assertParamExists('deleteActivityTypes', 'ids', ids) + const localVarPath = `/activityTypes`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all activity types. + * @summary Get all activity types + + * @throws {RequiredError} + */ + getActivityTypes: async (): Promise => { + const localVarPath = `/activityTypes`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full", "admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates an activity type. + * @summary Update an activity type + * @param {number} id The ID of the activity type + * @param {UpdateActivityTypeRequest} [UpdateActivityTypeRequest] + + * @throws {RequiredError} + */ + updateActivityType: async (id: number, UpdateActivityTypeRequest?: UpdateActivityTypeRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateActivityType', 'id', id) + const localVarPath = `/activityTypes/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateActivityTypeRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * ActivityTypesApi - functional programming interface + * @export + */ +export const ActivityTypesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ActivityTypesApiAxiosParamCreator(configuration) + return { + /** + * Adds a new activity type. + * @summary Add new activity type + * @param {AddActivityTypeRequest} [AddActivityTypeRequest] + + * @throws {RequiredError} + */ + async addActivityType(AddActivityTypeRequest?: AddActivityTypeRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addActivityType(AddActivityTypeRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks an activity type as deleted. + * @summary Delete an activity type + * @param {number} id The ID of the activity type + + * @throws {RequiredError} + */ + async deleteActivityType(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivityType(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks multiple activity types as deleted. + * @summary Delete multiple activity types in bulk + * @param {string} ids The comma-separated activity type IDs + + * @throws {RequiredError} + */ + async deleteActivityTypes(ids: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivityTypes(ids, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all activity types. + * @summary Get all activity types + + * @throws {RequiredError} + */ + async getActivityTypes(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getActivityTypes(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates an activity type. + * @summary Update an activity type + * @param {number} id The ID of the activity type + * @param {UpdateActivityTypeRequest} [UpdateActivityTypeRequest] + + * @throws {RequiredError} + */ + async updateActivityType(id: number, UpdateActivityTypeRequest?: UpdateActivityTypeRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateActivityType(id, UpdateActivityTypeRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ActivityTypesApi - factory interface + * @export + */ +export const ActivityTypesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ActivityTypesApiFp(configuration) + return { + /** + * Adds a new activity type. + * @summary Add new activity type + * @param {ActivityTypesApiAddActivityTypeRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addActivityType(requestParameters: ActivityTypesApiAddActivityTypeRequest = {}, ): Promise { + return localVarFp.addActivityType(requestParameters.AddActivityTypeRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks an activity type as deleted. + * @summary Delete an activity type + * @param {ActivityTypesApiDeleteActivityTypeRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteActivityType(requestParameters: ActivityTypesApiDeleteActivityTypeRequest, ): Promise { + return localVarFp.deleteActivityType(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks multiple activity types as deleted. + * @summary Delete multiple activity types in bulk + * @param {ActivityTypesApiDeleteActivityTypesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteActivityTypes(requestParameters: ActivityTypesApiDeleteActivityTypesRequest, ): Promise { + return localVarFp.deleteActivityTypes(requestParameters.ids, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all activity types. + * @summary Get all activity types + + * @throws {RequiredError} + */ + getActivityTypes(): Promise { + return localVarFp.getActivityTypes().then((request) => request(axios, basePath)); + }, + /** + * Updates an activity type. + * @summary Update an activity type + * @param {ActivityTypesApiUpdateActivityTypeRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateActivityType(requestParameters: ActivityTypesApiUpdateActivityTypeRequest, ): Promise { + return localVarFp.updateActivityType(requestParameters.id, requestParameters.UpdateActivityTypeRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addActivityType operation in ActivityTypesApi. + * @export + * @interface ActivityTypesApiAddActivityTypeRequest + */ +export interface ActivityTypesApiAddActivityTypeRequest { + /** + * + * @type {AddActivityTypeRequest} + * @memberof ActivityTypesApiAddActivityType + */ + readonly AddActivityTypeRequest?: AddActivityTypeRequest +} + +/** + * Request parameters for deleteActivityType operation in ActivityTypesApi. + * @export + * @interface ActivityTypesApiDeleteActivityTypeRequest + */ +export interface ActivityTypesApiDeleteActivityTypeRequest { + /** + * The ID of the activity type + * @type {number} + * @memberof ActivityTypesApiDeleteActivityType + */ + readonly id: number +} + +/** + * Request parameters for deleteActivityTypes operation in ActivityTypesApi. + * @export + * @interface ActivityTypesApiDeleteActivityTypesRequest + */ +export interface ActivityTypesApiDeleteActivityTypesRequest { + /** + * The comma-separated activity type IDs + * @type {string} + * @memberof ActivityTypesApiDeleteActivityTypes + */ + readonly ids: string +} + +/** + * Request parameters for updateActivityType operation in ActivityTypesApi. + * @export + * @interface ActivityTypesApiUpdateActivityTypeRequest + */ +export interface ActivityTypesApiUpdateActivityTypeRequest { + /** + * The ID of the activity type + * @type {number} + * @memberof ActivityTypesApiUpdateActivityType + */ + readonly id: number + + /** + * + * @type {UpdateActivityTypeRequest} + * @memberof ActivityTypesApiUpdateActivityType + */ + readonly UpdateActivityTypeRequest?: UpdateActivityTypeRequest +} + +/** + * ActivityTypesApi - object-oriented interface + * @export + * @class ActivityTypesApi + * @extends {BaseAPI} + */ +export class ActivityTypesApi extends BaseAPI { + /** + * Adds a new activity type. + * @summary Add new activity type + * @param {ActivityTypesApiAddActivityTypeRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ActivityTypesApi + */ + public addActivityType(requestParameters: ActivityTypesApiAddActivityTypeRequest = {}, ) { + return ActivityTypesApiFp(this.configuration).addActivityType(requestParameters.AddActivityTypeRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks an activity type as deleted. + * @summary Delete an activity type + * @param {ActivityTypesApiDeleteActivityTypeRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ActivityTypesApi + */ + public deleteActivityType(requestParameters: ActivityTypesApiDeleteActivityTypeRequest, ) { + return ActivityTypesApiFp(this.configuration).deleteActivityType(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks multiple activity types as deleted. + * @summary Delete multiple activity types in bulk + * @param {ActivityTypesApiDeleteActivityTypesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ActivityTypesApi + */ + public deleteActivityTypes(requestParameters: ActivityTypesApiDeleteActivityTypesRequest, ) { + return ActivityTypesApiFp(this.configuration).deleteActivityTypes(requestParameters.ids, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all activity types. + * @summary Get all activity types + + * @throws {RequiredError} + * @memberof ActivityTypesApi + */ + public getActivityTypes() { + return ActivityTypesApiFp(this.configuration).getActivityTypes().then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates an activity type. + * @summary Update an activity type + * @param {ActivityTypesApiUpdateActivityTypeRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ActivityTypesApi + */ + public updateActivityType(requestParameters: ActivityTypesApiUpdateActivityTypeRequest, ) { + return ActivityTypesApiFp(this.configuration).updateActivityType(requestParameters.id, requestParameters.UpdateActivityTypeRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/billing-api.ts b/src/versions/v1/api/billing-api.ts new file mode 100644 index 00000000..d2268d55 --- /dev/null +++ b/src/versions/v1/api/billing-api.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetSubscriptionAddonsResponse } from '../models'; +/** + * BillingApi - axios parameter creator + * @export + */ +export const BillingApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Returns the add-ons for a single company. + * @summary Get all add-ons for a single company + + * @throws {RequiredError} + */ + getCompanyAddons: async (): Promise => { + const localVarPath = `/billing/subscriptions/addons`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * BillingApi - functional programming interface + * @export + */ +export const BillingApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = BillingApiAxiosParamCreator(configuration) + return { + /** + * Returns the add-ons for a single company. + * @summary Get all add-ons for a single company + + * @throws {RequiredError} + */ + async getCompanyAddons(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCompanyAddons(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * BillingApi - factory interface + * @export + */ +export const BillingApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = BillingApiFp(configuration) + return { + /** + * Returns the add-ons for a single company. + * @summary Get all add-ons for a single company + + * @throws {RequiredError} + */ + getCompanyAddons(): Promise { + return localVarFp.getCompanyAddons().then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * BillingApi - object-oriented interface + * @export + * @class BillingApi + * @extends {BaseAPI} + */ +export class BillingApi extends BaseAPI { + /** + * Returns the add-ons for a single company. + * @summary Get all add-ons for a single company + + * @throws {RequiredError} + * @memberof BillingApi + */ + public getCompanyAddons() { + return BillingApiFp(this.configuration).getCompanyAddons().then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/call-logs-api.ts b/src/versions/v1/api/call-logs-api.ts new file mode 100644 index 00000000..531073b1 --- /dev/null +++ b/src/versions/v1/api/call-logs-api.ts @@ -0,0 +1,553 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddCallLogRequest } from '../models'; +// @ts-ignore +import { BaseResponse } from '../models'; +// @ts-ignore +import { CallLogBadRequestResponse } from '../models'; +// @ts-ignore +import { CallLogConflictResponse } from '../models'; +// @ts-ignore +import { CallLogForbiddenResponse } from '../models'; +// @ts-ignore +import { CallLogGoneResponse } from '../models'; +// @ts-ignore +import { CallLogInternalErrorResponse } from '../models'; +// @ts-ignore +import { CallLogNotFoundResponse } from '../models'; +// @ts-ignore +import { GetCallLogResponse } from '../models'; +// @ts-ignore +import { GetCallLogsResponse } from '../models'; +/** + * CallLogsApi - axios parameter creator + * @export + */ +export const CallLogsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new call log. + * @summary Add a call log + * @param {AddCallLogRequest} [AddCallLogRequest] + + * @throws {RequiredError} + */ + addCallLog: async (AddCallLogRequest?: AddCallLogRequest, ): Promise => { + const localVarPath = `/callLogs`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["phone-integration"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddCallLogRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds an audio recording to the call log. That audio can be played by those who have access to the call log object. + * @summary Attach an audio file to the call log + * @param {string} id The ID received when you create the call log + * @param {File} file Audio file supported by the HTML5 specification + + * @throws {RequiredError} + */ + addCallLogAudioFile: async (id: string, file: File, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addCallLogAudioFile', 'id', id) + // verify required parameter 'file' is not null or undefined + assertParamExists('addCallLogAudioFile', 'file', file) + const localVarPath = `/callLogs/{id}/recordings` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["phone-integration"], configuration) + + + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a call log. If there is an audio recording attached to it, it will also be deleted. The related activity will not be removed by this request. If you want to remove the related activities, please use the endpoint which is specific for activities. + * @summary Delete a call log + * @param {string} id The ID received when you create the call log + + * @throws {RequiredError} + */ + deleteCallLog: async (id: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteCallLog', 'id', id) + const localVarPath = `/callLogs/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["phone-integration"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns details of a specific call log. + * @summary Get details of a call log + * @param {string} id The ID received when you create the call log + + * @throws {RequiredError} + */ + getCallLog: async (id: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getCallLog', 'id', id) + const localVarPath = `/callLogs/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["phone-integration"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all call logs assigned to a particular user. + * @summary Get all call logs assigned to a particular user + * @param {number} [start] Pagination start + * @param {number} [limit] For pagination, the limit of entries to be returned. The upper limit is 50. + + * @throws {RequiredError} + */ + getUserCallLogs: async (start?: number, limit?: number, ): Promise => { + const localVarPath = `/callLogs`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["phone-integration"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * CallLogsApi - functional programming interface + * @export + */ +export const CallLogsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = CallLogsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new call log. + * @summary Add a call log + * @param {AddCallLogRequest} [AddCallLogRequest] + + * @throws {RequiredError} + */ + async addCallLog(AddCallLogRequest?: AddCallLogRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addCallLog(AddCallLogRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds an audio recording to the call log. That audio can be played by those who have access to the call log object. + * @summary Attach an audio file to the call log + * @param {string} id The ID received when you create the call log + * @param {File} file Audio file supported by the HTML5 specification + + * @throws {RequiredError} + */ + async addCallLogAudioFile(id: string, file: File, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addCallLogAudioFile(id, file, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a call log. If there is an audio recording attached to it, it will also be deleted. The related activity will not be removed by this request. If you want to remove the related activities, please use the endpoint which is specific for activities. + * @summary Delete a call log + * @param {string} id The ID received when you create the call log + + * @throws {RequiredError} + */ + async deleteCallLog(id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCallLog(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns details of a specific call log. + * @summary Get details of a call log + * @param {string} id The ID received when you create the call log + + * @throws {RequiredError} + */ + async getCallLog(id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCallLog(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all call logs assigned to a particular user. + * @summary Get all call logs assigned to a particular user + * @param {number} [start] Pagination start + * @param {number} [limit] For pagination, the limit of entries to be returned. The upper limit is 50. + + * @throws {RequiredError} + */ + async getUserCallLogs(start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserCallLogs(start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * CallLogsApi - factory interface + * @export + */ +export const CallLogsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = CallLogsApiFp(configuration) + return { + /** + * Adds a new call log. + * @summary Add a call log + * @param {CallLogsApiAddCallLogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addCallLog(requestParameters: CallLogsApiAddCallLogRequest = {}, ): Promise { + return localVarFp.addCallLog(requestParameters.AddCallLogRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds an audio recording to the call log. That audio can be played by those who have access to the call log object. + * @summary Attach an audio file to the call log + * @param {CallLogsApiAddCallLogAudioFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addCallLogAudioFile(requestParameters: CallLogsApiAddCallLogAudioFileRequest, ): Promise { + return localVarFp.addCallLogAudioFile(requestParameters.id, requestParameters.file, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a call log. If there is an audio recording attached to it, it will also be deleted. The related activity will not be removed by this request. If you want to remove the related activities, please use the endpoint which is specific for activities. + * @summary Delete a call log + * @param {CallLogsApiDeleteCallLogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteCallLog(requestParameters: CallLogsApiDeleteCallLogRequest, ): Promise { + return localVarFp.deleteCallLog(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns details of a specific call log. + * @summary Get details of a call log + * @param {CallLogsApiGetCallLogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getCallLog(requestParameters: CallLogsApiGetCallLogRequest, ): Promise { + return localVarFp.getCallLog(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all call logs assigned to a particular user. + * @summary Get all call logs assigned to a particular user + * @param {CallLogsApiGetUserCallLogsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getUserCallLogs(requestParameters: CallLogsApiGetUserCallLogsRequest = {}, ): Promise { + return localVarFp.getUserCallLogs(requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addCallLog operation in CallLogsApi. + * @export + * @interface CallLogsApiAddCallLogRequest + */ +export interface CallLogsApiAddCallLogRequest { + /** + * + * @type {AddCallLogRequest} + * @memberof CallLogsApiAddCallLog + */ + readonly AddCallLogRequest?: AddCallLogRequest +} + +/** + * Request parameters for addCallLogAudioFile operation in CallLogsApi. + * @export + * @interface CallLogsApiAddCallLogAudioFileRequest + */ +export interface CallLogsApiAddCallLogAudioFileRequest { + /** + * The ID received when you create the call log + * @type {string} + * @memberof CallLogsApiAddCallLogAudioFile + */ + readonly id: string + + /** + * Audio file supported by the HTML5 specification + * @type {File} + * @memberof CallLogsApiAddCallLogAudioFile + */ + readonly file: File +} + +/** + * Request parameters for deleteCallLog operation in CallLogsApi. + * @export + * @interface CallLogsApiDeleteCallLogRequest + */ +export interface CallLogsApiDeleteCallLogRequest { + /** + * The ID received when you create the call log + * @type {string} + * @memberof CallLogsApiDeleteCallLog + */ + readonly id: string +} + +/** + * Request parameters for getCallLog operation in CallLogsApi. + * @export + * @interface CallLogsApiGetCallLogRequest + */ +export interface CallLogsApiGetCallLogRequest { + /** + * The ID received when you create the call log + * @type {string} + * @memberof CallLogsApiGetCallLog + */ + readonly id: string +} + +/** + * Request parameters for getUserCallLogs operation in CallLogsApi. + * @export + * @interface CallLogsApiGetUserCallLogsRequest + */ +export interface CallLogsApiGetUserCallLogsRequest { + /** + * Pagination start + * @type {number} + * @memberof CallLogsApiGetUserCallLogs + */ + readonly start?: number + + /** + * For pagination, the limit of entries to be returned. The upper limit is 50. + * @type {number} + * @memberof CallLogsApiGetUserCallLogs + */ + readonly limit?: number +} + +/** + * CallLogsApi - object-oriented interface + * @export + * @class CallLogsApi + * @extends {BaseAPI} + */ +export class CallLogsApi extends BaseAPI { + /** + * Adds a new call log. + * @summary Add a call log + * @param {CallLogsApiAddCallLogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof CallLogsApi + */ + public addCallLog(requestParameters: CallLogsApiAddCallLogRequest = {}, ) { + return CallLogsApiFp(this.configuration).addCallLog(requestParameters.AddCallLogRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds an audio recording to the call log. That audio can be played by those who have access to the call log object. + * @summary Attach an audio file to the call log + * @param {CallLogsApiAddCallLogAudioFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof CallLogsApi + */ + public addCallLogAudioFile(requestParameters: CallLogsApiAddCallLogAudioFileRequest, ) { + return CallLogsApiFp(this.configuration).addCallLogAudioFile(requestParameters.id, requestParameters.file, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a call log. If there is an audio recording attached to it, it will also be deleted. The related activity will not be removed by this request. If you want to remove the related activities, please use the endpoint which is specific for activities. + * @summary Delete a call log + * @param {CallLogsApiDeleteCallLogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof CallLogsApi + */ + public deleteCallLog(requestParameters: CallLogsApiDeleteCallLogRequest, ) { + return CallLogsApiFp(this.configuration).deleteCallLog(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns details of a specific call log. + * @summary Get details of a call log + * @param {CallLogsApiGetCallLogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof CallLogsApi + */ + public getCallLog(requestParameters: CallLogsApiGetCallLogRequest, ) { + return CallLogsApiFp(this.configuration).getCallLog(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all call logs assigned to a particular user. + * @summary Get all call logs assigned to a particular user + * @param {CallLogsApiGetUserCallLogsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof CallLogsApi + */ + public getUserCallLogs(requestParameters: CallLogsApiGetUserCallLogsRequest = {}, ) { + return CallLogsApiFp(this.configuration).getUserCallLogs(requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/channels-api.ts b/src/versions/v1/api/channels-api.ts new file mode 100644 index 00000000..5067892d --- /dev/null +++ b/src/versions/v1/api/channels-api.ts @@ -0,0 +1,444 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddChannelBadRequestResponse } from '../models'; +// @ts-ignore +import { AddChannelForbiddenErrorResponse } from '../models'; +// @ts-ignore +import { AddChannelRequest } from '../models'; +// @ts-ignore +import { AddChannelResponse } from '../models'; +// @ts-ignore +import { DeleteChannel200Response } from '../models'; +// @ts-ignore +import { DeleteConversationForbiddenErrorResponse } from '../models'; +// @ts-ignore +import { DeleteConversationNotFoundErrorResponse } from '../models'; +// @ts-ignore +import { GetReceiveMessageSuccessResponse } from '../models'; +// @ts-ignore +import { ReceiveMessageBadRequestErrorResponse } from '../models'; +// @ts-ignore +import { ReceiveMessageRequest } from '../models'; +/** + * ChannelsApi - axios parameter creator + * @export + */ +export const ChannelsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Add a channel + * @param {AddChannelRequest} [AddChannelRequest] + + * @throws {RequiredError} + */ + addChannel: async (AddChannelRequest?: AddChannelRequest, ): Promise => { + const localVarPath = `/channels`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["messengers-integration"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddChannelRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes an existing messenger’s channel and all related entities (conversations and messages). To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Delete a channel + * @param {string} id The ID of the channel provided by the integration + + * @throws {RequiredError} + */ + deleteChannel: async (id: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteChannel', 'id', id) + const localVarPath = `/channels/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["messengers-integration"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes an existing conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Delete a conversation + * @param {string} channel_id The ID of the channel provided by the integration + * @param {string} conversation_id The ID of the conversation provided by the integration + + * @throws {RequiredError} + */ + deleteConversation: async (channel_id: string, conversation_id: string, ): Promise => { + // verify required parameter 'channel_id' is not null or undefined + assertParamExists('deleteConversation', 'channel_id', channel_id) + // verify required parameter 'conversation_id' is not null or undefined + assertParamExists('deleteConversation', 'conversation_id', conversation_id) + const localVarPath = `/channels/{channel-id}/conversations/{conversation-id}` + .replace(`{${"channel-id"}}`, encodeURIComponent(String(channel_id))) + .replace(`{${"conversation-id"}}`, encodeURIComponent(String(conversation_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["messengers-integration"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Receives an incoming message + * @param {ReceiveMessageRequest} [ReceiveMessageRequest] + + * @throws {RequiredError} + */ + receiveMessage: async (ReceiveMessageRequest?: ReceiveMessageRequest, ): Promise => { + const localVarPath = `/channels/messages/receive`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["messengers-integration"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(ReceiveMessageRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * ChannelsApi - functional programming interface + * @export + */ +export const ChannelsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ChannelsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Add a channel + * @param {AddChannelRequest} [AddChannelRequest] + + * @throws {RequiredError} + */ + async addChannel(AddChannelRequest?: AddChannelRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addChannel(AddChannelRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes an existing messenger’s channel and all related entities (conversations and messages). To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Delete a channel + * @param {string} id The ID of the channel provided by the integration + + * @throws {RequiredError} + */ + async deleteChannel(id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteChannel(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes an existing conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Delete a conversation + * @param {string} channel_id The ID of the channel provided by the integration + * @param {string} conversation_id The ID of the conversation provided by the integration + + * @throws {RequiredError} + */ + async deleteConversation(channel_id: string, conversation_id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteConversation(channel_id, conversation_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Receives an incoming message + * @param {ReceiveMessageRequest} [ReceiveMessageRequest] + + * @throws {RequiredError} + */ + async receiveMessage(ReceiveMessageRequest?: ReceiveMessageRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.receiveMessage(ReceiveMessageRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ChannelsApi - factory interface + * @export + */ +export const ChannelsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ChannelsApiFp(configuration) + return { + /** + * Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Add a channel + * @param {ChannelsApiAddChannelRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addChannel(requestParameters: ChannelsApiAddChannelRequest = {}, ): Promise { + return localVarFp.addChannel(requestParameters.AddChannelRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes an existing messenger’s channel and all related entities (conversations and messages). To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Delete a channel + * @param {ChannelsApiDeleteChannelRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteChannel(requestParameters: ChannelsApiDeleteChannelRequest, ): Promise { + return localVarFp.deleteChannel(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes an existing conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Delete a conversation + * @param {ChannelsApiDeleteConversationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteConversation(requestParameters: ChannelsApiDeleteConversationRequest, ): Promise { + return localVarFp.deleteConversation(requestParameters.channel_id, requestParameters.conversation_id, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Receives an incoming message + * @param {ChannelsApiReceiveMessageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + receiveMessage(requestParameters: ChannelsApiReceiveMessageRequest = {}, ): Promise { + return localVarFp.receiveMessage(requestParameters.ReceiveMessageRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addChannel operation in ChannelsApi. + * @export + * @interface ChannelsApiAddChannelRequest + */ +export interface ChannelsApiAddChannelRequest { + /** + * + * @type {AddChannelRequest} + * @memberof ChannelsApiAddChannel + */ + readonly AddChannelRequest?: AddChannelRequest +} + +/** + * Request parameters for deleteChannel operation in ChannelsApi. + * @export + * @interface ChannelsApiDeleteChannelRequest + */ +export interface ChannelsApiDeleteChannelRequest { + /** + * The ID of the channel provided by the integration + * @type {string} + * @memberof ChannelsApiDeleteChannel + */ + readonly id: string +} + +/** + * Request parameters for deleteConversation operation in ChannelsApi. + * @export + * @interface ChannelsApiDeleteConversationRequest + */ +export interface ChannelsApiDeleteConversationRequest { + /** + * The ID of the channel provided by the integration + * @type {string} + * @memberof ChannelsApiDeleteConversation + */ + readonly channel_id: string + + /** + * The ID of the conversation provided by the integration + * @type {string} + * @memberof ChannelsApiDeleteConversation + */ + readonly conversation_id: string +} + +/** + * Request parameters for receiveMessage operation in ChannelsApi. + * @export + * @interface ChannelsApiReceiveMessageRequest + */ +export interface ChannelsApiReceiveMessageRequest { + /** + * + * @type {ReceiveMessageRequest} + * @memberof ChannelsApiReceiveMessage + */ + readonly ReceiveMessageRequest?: ReceiveMessageRequest +} + +/** + * ChannelsApi - object-oriented interface + * @export + * @class ChannelsApi + * @extends {BaseAPI} + */ +export class ChannelsApi extends BaseAPI { + /** + * Adds a new messaging channel, only admins are able to register new channels. It will use the getConversations endpoint to fetch conversations, participants and messages afterward. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Add a channel + * @param {ChannelsApiAddChannelRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ChannelsApi + */ + public addChannel(requestParameters: ChannelsApiAddChannelRequest = {}, ) { + return ChannelsApiFp(this.configuration).addChannel(requestParameters.AddChannelRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes an existing messenger’s channel and all related entities (conversations and messages). To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Delete a channel + * @param {ChannelsApiDeleteChannelRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ChannelsApi + */ + public deleteChannel(requestParameters: ChannelsApiDeleteChannelRequest, ) { + return ChannelsApiFp(this.configuration).deleteChannel(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes an existing conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Delete a conversation + * @param {ChannelsApiDeleteConversationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ChannelsApi + */ + public deleteConversation(requestParameters: ChannelsApiDeleteConversationRequest, ) { + return ChannelsApiFp(this.configuration).deleteConversation(requestParameters.channel_id, requestParameters.conversation_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a message to a conversation. To use the endpoint, you need to have **Messengers integration** OAuth scope enabled and the Messaging manifest ready for the [Messaging app extension](https://pipedrive.readme.io/docs/messaging-app-extension). + * @summary Receives an incoming message + * @param {ChannelsApiReceiveMessageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ChannelsApi + */ + public receiveMessage(requestParameters: ChannelsApiReceiveMessageRequest = {}, ) { + return ChannelsApiFp(this.configuration).receiveMessage(requestParameters.ReceiveMessageRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/currencies-api.ts b/src/versions/v1/api/currencies-api.ts new file mode 100644 index 00000000..95891c7d --- /dev/null +++ b/src/versions/v1/api/currencies-api.ts @@ -0,0 +1,151 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetCurrenciesResponse } from '../models'; +/** + * CurrenciesApi - axios parameter creator + * @export + */ +export const CurrenciesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Returns all supported currencies in given account which should be used when saving monetary values with other objects. The `code` parameter of the returning objects is the currency code according to ISO 4217 for all non-custom currencies. + * @summary Get all supported currencies + * @param {string} [term] Optional search term that is searched for from currency\'s name and/or code + + * @throws {RequiredError} + */ + getCurrencies: async (term?: string, ): Promise => { + const localVarPath = `/currencies`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["base"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * CurrenciesApi - functional programming interface + * @export + */ +export const CurrenciesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = CurrenciesApiAxiosParamCreator(configuration) + return { + /** + * Returns all supported currencies in given account which should be used when saving monetary values with other objects. The `code` parameter of the returning objects is the currency code according to ISO 4217 for all non-custom currencies. + * @summary Get all supported currencies + * @param {string} [term] Optional search term that is searched for from currency\'s name and/or code + + * @throws {RequiredError} + */ + async getCurrencies(term?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrencies(term, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * CurrenciesApi - factory interface + * @export + */ +export const CurrenciesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = CurrenciesApiFp(configuration) + return { + /** + * Returns all supported currencies in given account which should be used when saving monetary values with other objects. The `code` parameter of the returning objects is the currency code according to ISO 4217 for all non-custom currencies. + * @summary Get all supported currencies + * @param {CurrenciesApiGetCurrenciesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getCurrencies(requestParameters: CurrenciesApiGetCurrenciesRequest = {}, ): Promise { + return localVarFp.getCurrencies(requestParameters.term, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for getCurrencies operation in CurrenciesApi. + * @export + * @interface CurrenciesApiGetCurrenciesRequest + */ +export interface CurrenciesApiGetCurrenciesRequest { + /** + * Optional search term that is searched for from currency\'s name and/or code + * @type {string} + * @memberof CurrenciesApiGetCurrencies + */ + readonly term?: string +} + +/** + * CurrenciesApi - object-oriented interface + * @export + * @class CurrenciesApi + * @extends {BaseAPI} + */ +export class CurrenciesApi extends BaseAPI { + /** + * Returns all supported currencies in given account which should be used when saving monetary values with other objects. The `code` parameter of the returning objects is the currency code according to ISO 4217 for all non-custom currencies. + * @summary Get all supported currencies + * @param {CurrenciesApiGetCurrenciesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof CurrenciesApi + */ + public getCurrencies(requestParameters: CurrenciesApiGetCurrenciesRequest = {}, ) { + return CurrenciesApiFp(this.configuration).getCurrencies(requestParameters.term, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/deal-fields-api.ts b/src/versions/v1/api/deal-fields-api.ts new file mode 100644 index 00000000..0143883d --- /dev/null +++ b/src/versions/v1/api/deal-fields-api.ts @@ -0,0 +1,629 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { CreateFieldRequest } from '../models'; +// @ts-ignore +import { DeleteFieldsResponse } from '../models'; +// @ts-ignore +import { DeleteResponse } from '../models'; +// @ts-ignore +import { GetFieldResponse } from '../models'; +// @ts-ignore +import { GetFieldsResponse } from '../models'; +// @ts-ignore +import { UpdateFieldRequest } from '../models'; +/** + * DealFieldsApi - axios parameter creator + * @export + */ +export const DealFieldsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new deal field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new deal field + * @param {CreateFieldRequest} [CreateFieldRequest] + + * @throws {RequiredError} + */ + addDealField: async (CreateFieldRequest?: CreateFieldRequest, ): Promise => { + const localVarPath = `/dealFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(CreateFieldRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a deal field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + deleteDealField: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteDealField', 'id', id) + const localVarPath = `/dealFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks multiple deal fields as deleted. + * @summary Delete multiple deal fields in bulk + * @param {string} ids The comma-separated field IDs to delete + + * @throws {RequiredError} + */ + deleteDealFields: async (ids: string, ): Promise => { + // verify required parameter 'ids' is not null or undefined + assertParamExists('deleteDealFields', 'ids', ids) + const localVarPath = `/dealFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific deal field. + * @summary Get one deal field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + getDealField: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealField', 'id', id) + const localVarPath = `/dealFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all deal fields. + * @summary Get all deal fields + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getDealFields: async (start?: number, limit?: number, ): Promise => { + const localVarPath = `/dealFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates a deal field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a deal field + * @param {number} id The ID of the field + * @param {UpdateFieldRequest} [UpdateFieldRequest] + + * @throws {RequiredError} + */ + updateDealField: async (id: number, UpdateFieldRequest?: UpdateFieldRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateDealField', 'id', id) + const localVarPath = `/dealFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateFieldRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * DealFieldsApi - functional programming interface + * @export + */ +export const DealFieldsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = DealFieldsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new deal field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new deal field + * @param {CreateFieldRequest} [CreateFieldRequest] + + * @throws {RequiredError} + */ + async addDealField(CreateFieldRequest?: CreateFieldRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addDealField(CreateFieldRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a deal field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + async deleteDealField(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDealField(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks multiple deal fields as deleted. + * @summary Delete multiple deal fields in bulk + * @param {string} ids The comma-separated field IDs to delete + + * @throws {RequiredError} + */ + async deleteDealFields(ids: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDealFields(ids, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific deal field. + * @summary Get one deal field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + async getDealField(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealField(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all deal fields. + * @summary Get all deal fields + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getDealFields(start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealFields(start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates a deal field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a deal field + * @param {number} id The ID of the field + * @param {UpdateFieldRequest} [UpdateFieldRequest] + + * @throws {RequiredError} + */ + async updateDealField(id: number, UpdateFieldRequest?: UpdateFieldRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateDealField(id, UpdateFieldRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * DealFieldsApi - factory interface + * @export + */ +export const DealFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = DealFieldsApiFp(configuration) + return { + /** + * Adds a new deal field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new deal field + * @param {DealFieldsApiAddDealFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addDealField(requestParameters: DealFieldsApiAddDealFieldRequest = {}, ): Promise { + return localVarFp.addDealField(requestParameters.CreateFieldRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a deal field + * @param {DealFieldsApiDeleteDealFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteDealField(requestParameters: DealFieldsApiDeleteDealFieldRequest, ): Promise { + return localVarFp.deleteDealField(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks multiple deal fields as deleted. + * @summary Delete multiple deal fields in bulk + * @param {DealFieldsApiDeleteDealFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteDealFields(requestParameters: DealFieldsApiDeleteDealFieldsRequest, ): Promise { + return localVarFp.deleteDealFields(requestParameters.ids, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific deal field. + * @summary Get one deal field + * @param {DealFieldsApiGetDealFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealField(requestParameters: DealFieldsApiGetDealFieldRequest, ): Promise { + return localVarFp.getDealField(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all deal fields. + * @summary Get all deal fields + * @param {DealFieldsApiGetDealFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealFields(requestParameters: DealFieldsApiGetDealFieldsRequest = {}, ): Promise { + return localVarFp.getDealFields(requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates a deal field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a deal field + * @param {DealFieldsApiUpdateDealFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateDealField(requestParameters: DealFieldsApiUpdateDealFieldRequest, ): Promise { + return localVarFp.updateDealField(requestParameters.id, requestParameters.UpdateFieldRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addDealField operation in DealFieldsApi. + * @export + * @interface DealFieldsApiAddDealFieldRequest + */ +export interface DealFieldsApiAddDealFieldRequest { + /** + * + * @type {CreateFieldRequest} + * @memberof DealFieldsApiAddDealField + */ + readonly CreateFieldRequest?: CreateFieldRequest +} + +/** + * Request parameters for deleteDealField operation in DealFieldsApi. + * @export + * @interface DealFieldsApiDeleteDealFieldRequest + */ +export interface DealFieldsApiDeleteDealFieldRequest { + /** + * The ID of the field + * @type {number} + * @memberof DealFieldsApiDeleteDealField + */ + readonly id: number +} + +/** + * Request parameters for deleteDealFields operation in DealFieldsApi. + * @export + * @interface DealFieldsApiDeleteDealFieldsRequest + */ +export interface DealFieldsApiDeleteDealFieldsRequest { + /** + * The comma-separated field IDs to delete + * @type {string} + * @memberof DealFieldsApiDeleteDealFields + */ + readonly ids: string +} + +/** + * Request parameters for getDealField operation in DealFieldsApi. + * @export + * @interface DealFieldsApiGetDealFieldRequest + */ +export interface DealFieldsApiGetDealFieldRequest { + /** + * The ID of the field + * @type {number} + * @memberof DealFieldsApiGetDealField + */ + readonly id: number +} + +/** + * Request parameters for getDealFields operation in DealFieldsApi. + * @export + * @interface DealFieldsApiGetDealFieldsRequest + */ +export interface DealFieldsApiGetDealFieldsRequest { + /** + * Pagination start + * @type {number} + * @memberof DealFieldsApiGetDealFields + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof DealFieldsApiGetDealFields + */ + readonly limit?: number +} + +/** + * Request parameters for updateDealField operation in DealFieldsApi. + * @export + * @interface DealFieldsApiUpdateDealFieldRequest + */ +export interface DealFieldsApiUpdateDealFieldRequest { + /** + * The ID of the field + * @type {number} + * @memberof DealFieldsApiUpdateDealField + */ + readonly id: number + + /** + * + * @type {UpdateFieldRequest} + * @memberof DealFieldsApiUpdateDealField + */ + readonly UpdateFieldRequest?: UpdateFieldRequest +} + +/** + * DealFieldsApi - object-oriented interface + * @export + * @class DealFieldsApi + * @extends {BaseAPI} + */ +export class DealFieldsApi extends BaseAPI { + /** + * Adds a new deal field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new deal field + * @param {DealFieldsApiAddDealFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealFieldsApi + */ + public addDealField(requestParameters: DealFieldsApiAddDealFieldRequest = {}, ) { + return DealFieldsApiFp(this.configuration).addDealField(requestParameters.CreateFieldRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a deal field + * @param {DealFieldsApiDeleteDealFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealFieldsApi + */ + public deleteDealField(requestParameters: DealFieldsApiDeleteDealFieldRequest, ) { + return DealFieldsApiFp(this.configuration).deleteDealField(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks multiple deal fields as deleted. + * @summary Delete multiple deal fields in bulk + * @param {DealFieldsApiDeleteDealFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealFieldsApi + */ + public deleteDealFields(requestParameters: DealFieldsApiDeleteDealFieldsRequest, ) { + return DealFieldsApiFp(this.configuration).deleteDealFields(requestParameters.ids, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific deal field. + * @summary Get one deal field + * @param {DealFieldsApiGetDealFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealFieldsApi + */ + public getDealField(requestParameters: DealFieldsApiGetDealFieldRequest, ) { + return DealFieldsApiFp(this.configuration).getDealField(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all deal fields. + * @summary Get all deal fields + * @param {DealFieldsApiGetDealFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealFieldsApi + */ + public getDealFields(requestParameters: DealFieldsApiGetDealFieldsRequest = {}, ) { + return DealFieldsApiFp(this.configuration).getDealFields(requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates a deal field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a deal field + * @param {DealFieldsApiUpdateDealFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealFieldsApi + */ + public updateDealField(requestParameters: DealFieldsApiUpdateDealFieldRequest, ) { + return DealFieldsApiFp(this.configuration).updateDealField(requestParameters.id, requestParameters.UpdateFieldRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/deals-api.ts b/src/versions/v1/api/deals-api.ts new file mode 100644 index 00000000..d6412176 --- /dev/null +++ b/src/versions/v1/api/deals-api.ts @@ -0,0 +1,3642 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddDealFollowerRequest } from '../models'; +// @ts-ignore +import { AddDealFollowerResponse } from '../models'; +// @ts-ignore +import { AddDealParticipantRequest } from '../models'; +// @ts-ignore +import { AddDealProductRequest } from '../models'; +// @ts-ignore +import { AddDealRequest } from '../models'; +// @ts-ignore +import { AddParticipantsResponse } from '../models'; +// @ts-ignore +import { DeleteDealFollowerResponse } from '../models'; +// @ts-ignore +import { DeleteDealParticipantResponse } from '../models'; +// @ts-ignore +import { DeleteDealProductResponse } from '../models'; +// @ts-ignore +import { DeleteDealResponse } from '../models'; +// @ts-ignore +import { DeleteDealsResponse } from '../models'; +// @ts-ignore +import { FailResponse } from '../models'; +// @ts-ignore +import { GetAddProductAttachmentDetailsResponse } from '../models'; +// @ts-ignore +import { GetAddedDealResponse } from '../models'; +// @ts-ignore +import { GetAssociatedFilesResponse } from '../models'; +// @ts-ignore +import { GetAssociatedMailMessagesResponse } from '../models'; +// @ts-ignore +import { GetChangelogResponse } from '../models'; +// @ts-ignore +import { GetDealActivitiesResponse } from '../models'; +// @ts-ignore +import { GetDealParticipantsResponse } from '../models'; +// @ts-ignore +import { GetDealResponse } from '../models'; +// @ts-ignore +import { GetDealSearchResponse } from '../models'; +// @ts-ignore +import { GetDealUpdatesResponse } from '../models'; +// @ts-ignore +import { GetDealsCollectionResponse } from '../models'; +// @ts-ignore +import { GetDealsResponse } from '../models'; +// @ts-ignore +import { GetDealsSummaryResponse } from '../models'; +// @ts-ignore +import { GetDealsTimelineResponse } from '../models'; +// @ts-ignore +import { GetDuplicatedDealResponse } from '../models'; +// @ts-ignore +import { GetListFollowersResponse } from '../models'; +// @ts-ignore +import { GetMergedDealResponse } from '../models'; +// @ts-ignore +import { GetParticipantsChangelogResponse } from '../models'; +// @ts-ignore +import { GetPermittedUsersResponse } from '../models'; +// @ts-ignore +import { GetPersonsResponse } from '../models'; +// @ts-ignore +import { GetProductAttachmentDetailsResponse } from '../models'; +// @ts-ignore +import { GetProductsResponse } from '../models'; +// @ts-ignore +import { MergeDealsRequest } from '../models'; +// @ts-ignore +import { UpdateDealProductRequest } from '../models'; +// @ts-ignore +import { UpdateDealRequest } from '../models'; +/** + * DealsApi - axios parameter creator + * @export + */ +export const DealsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for adding a deal. + * @summary Add a deal + * @param {AddDealRequest} [AddDealRequest] + + * @throws {RequiredError} + */ + addDeal: async (AddDealRequest?: AddDealRequest, ): Promise => { + const localVarPath = `/deals`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddDealRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a follower to a deal. + * @summary Add a follower to a deal + * @param {number} id The ID of the deal + * @param {AddDealFollowerRequest} [AddDealFollowerRequest] + + * @throws {RequiredError} + */ + addDealFollower: async (id: number, AddDealFollowerRequest?: AddDealFollowerRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addDealFollower', 'id', id) + const localVarPath = `/deals/{id}/followers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddDealFollowerRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a participant to a deal. + * @summary Add a participant to a deal + * @param {number} id The ID of the deal + * @param {AddDealParticipantRequest} [AddDealParticipantRequest] + + * @throws {RequiredError} + */ + addDealParticipant: async (id: number, AddDealParticipantRequest?: AddDealParticipantRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addDealParticipant', 'id', id) + const localVarPath = `/deals/{id}/participants` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddDealParticipantRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {number} id The ID of the deal + * @param {AddDealProductRequest} [AddDealProductRequest] + + * @throws {RequiredError} + */ + addDealProduct: async (id: number, AddDealProductRequest?: AddDealProductRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addDealProduct', 'id', id) + const localVarPath = `/deals/{id}/products` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "products:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddDealProductRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + deleteDeal: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteDeal', 'id', id) + const localVarPath = `/deals/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a follower from a deal. + * @summary Delete a follower from a deal + * @param {number} id The ID of the deal + * @param {number} follower_id The ID of the follower + + * @throws {RequiredError} + */ + deleteDealFollower: async (id: number, follower_id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteDealFollower', 'id', id) + // verify required parameter 'follower_id' is not null or undefined + assertParamExists('deleteDealFollower', 'follower_id', follower_id) + const localVarPath = `/deals/{id}/followers/{follower_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a participant from a deal. + * @summary Delete a participant from a deal + * @param {number} id The ID of the deal + * @param {number} deal_participant_id The ID of the participant of the deal + + * @throws {RequiredError} + */ + deleteDealParticipant: async (id: number, deal_participant_id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteDealParticipant', 'id', id) + // verify required parameter 'deal_participant_id' is not null or undefined + assertParamExists('deleteDealParticipant', 'deal_participant_id', deal_participant_id) + const localVarPath = `/deals/{id}/participants/{deal_participant_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"deal_participant_id"}}`, encodeURIComponent(String(deal_participant_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled + * @summary Delete an attached product from a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The product attachment ID + + * @throws {RequiredError} + */ + deleteDealProduct: async (id: number, product_attachment_id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteDealProduct', 'id', id) + // verify required parameter 'product_attachment_id' is not null or undefined + assertParamExists('deleteDealProduct', 'product_attachment_id', product_attachment_id) + const localVarPath = `/deals/{id}/products/{product_attachment_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"product_attachment_id"}}`, encodeURIComponent(String(product_attachment_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted. + * @summary Delete multiple deals in bulk + * @param {string} ids The comma-separated IDs that will be deleted + + * @throws {RequiredError} + */ + deleteDeals: async (ids: string, ): Promise => { + // verify required parameter 'ids' is not null or undefined + assertParamExists('deleteDeals', 'ids', ids) + const localVarPath = `/deals`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Duplicates a deal. + * @summary Duplicate deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + duplicateDeal: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('duplicateDeal', 'id', id) + const localVarPath = `/deals/{id}/duplicate` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for getting details of a deal. + * @summary Get details of a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + getDeal: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDeal', 'id', id) + const localVarPath = `/deals/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists activities associated with a deal. + * @summary List activities associated with a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. + * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result + + * @throws {RequiredError} + */ + getDealActivities: async (id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealActivities', 'id', id) + const localVarPath = `/deals/{id}/activities` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (done !== undefined) { + localVarQueryParameter['done'] = done; + } + + if (exclude !== undefined) { + localVarQueryParameter['exclude'] = exclude; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists updates about field values of a deal. + * @summary List updates about deal field values + * @param {number} id The ID of the deal + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getDealChangelog: async (id: number, cursor?: string, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealChangelog', 'id', id) + const localVarPath = `/deals/{id}/changelog` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists files associated with a deal. + * @summary List files attached to a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. + * @param {string} [sort] Supported fields: `id`, `update_time` + + * @throws {RequiredError} + */ + getDealFiles: async (id: number, start?: number, limit?: number, sort?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealFiles', 'id', id) + const localVarPath = `/deals/{id}/files` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists the followers of a deal. + * @summary List followers of a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + getDealFollowers: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealFollowers', 'id', id) + const localVarPath = `/deals/{id}/followers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists mail messages associated with a deal. + * @summary List mail messages associated with a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getDealMailMessages: async (id: number, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealMailMessages', 'id', id) + const localVarPath = `/deals/{id}/mailMessages` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["mail:read", "mail:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists the participants associated with a deal.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List participants of a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getDealParticipants: async (id: number, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealParticipants', 'id', id) + const localVarPath = `/deals/{id}/participants` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List updates about participants of a deal. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary List updates about participants of a deal + * @param {number} id The ID of the deal + * @param {number} [limit] Items shown per page + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + getDealParticipantsChangelog: async (id: number, limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealParticipantsChangelog', 'id', id) + const localVarPath = `/deals/{id}/participantsChangelog` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List all persons associated with a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getDealPersons: async (id: number, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealPersons', 'id', id) + const localVarPath = `/deals/{id}/persons` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {0 | 1} [include_product_data] Whether to fetch product data along with each attached product (1) or not (0, default) + + * @throws {RequiredError} + */ + getDealProducts: async (id: number, start?: number, limit?: number, include_product_data?: 0 | 1, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealProducts', 'id', id) + const localVarPath = `/deals/{id}/products` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (include_product_data !== undefined) { + localVarQueryParameter['include_product_data'] = include_product_data; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists updates about a deal. + * @summary List updates about a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. + * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). + + * @throws {RequiredError} + */ + getDealUpdates: async (id: number, start?: number, limit?: number, all_changes?: string, items?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealUpdates', 'id', id) + const localVarPath = `/deals/{id}/flow` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (all_changes !== undefined) { + localVarQueryParameter['all_changes'] = all_changes; + } + + if (items !== undefined) { + localVarQueryParameter['items'] = items; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists the users permitted to access a deal. + * @summary List permitted users + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + getDealUsers: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealUsers', 'id', id) + const localVarPath = `/deals/{id}/permittedUsers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all deals. For more information, see the tutorial for getting all deals. + * @summary Get all deals + * @param {number} [user_id] If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied. + * @param {number} [filter_id] The ID of the filter to use + * @param {number} [stage_id] If supplied, only deals within the given stage will be returned + * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + * @param {0 | 1} [owned_by_you] When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied. + + * @throws {RequiredError} + */ + getDeals: async (user_id?: number, filter_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', start?: number, limit?: number, sort?: string, owned_by_you?: 0 | 1, ): Promise => { + const localVarPath = `/deals`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (stage_id !== undefined) { + localVarQueryParameter['stage_id'] = stage_id; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + if (owned_by_you !== undefined) { + localVarQueryParameter['owned_by_you'] = owned_by_you; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all deals. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all deals (BETA) + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {number} [user_id] If supplied, only deals matching the given user will be returned + * @param {number} [stage_id] If supplied, only deals within the given stage will be returned + * @param {'open' | 'won' | 'lost' | 'deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + + * @throws {RequiredError} + */ + getDealsCollection: async (cursor?: string, limit?: number, since?: string, until?: string, user_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted', ): Promise => { + const localVarPath = `/deals/collection`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (since !== undefined) { + localVarQueryParameter['since'] = since; + } + + if (until !== undefined) { + localVarQueryParameter['until'] = until; + } + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + if (stage_id !== undefined) { + localVarQueryParameter['stage_id'] = stage_id; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns a summary of all the deals. + * @summary Get deals summary + * @param {'open' | 'won' | 'lost'} [status] Only fetch deals with a specific status. open = Open, won = Won, lost = Lost. + * @param {number} [filter_id] <code>user_id</code> will not be considered. Only deals matching the given filter will be returned. + * @param {number} [user_id] Only deals matching the given user will be returned. `user_id` will not be considered if you use `filter_id`. + * @param {number} [stage_id] Only deals within the given stage will be returned + + * @throws {RequiredError} + */ + getDealsSummary: async (status?: 'open' | 'won' | 'lost', filter_id?: number, user_id?: number, stage_id?: number, ): Promise => { + const localVarPath = `/deals/summary`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + if (stage_id !== undefined) { + localVarQueryParameter['stage_id'] = stage_id; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns open and won deals, grouped by a defined interval of time set in a date-type dealField (`field_key`) — e.g. when month is the chosen interval, and 3 months are asked starting from January 1st, 2012, deals are returned grouped into 3 groups — January, February and March — based on the value of the given `field_key`. + * @summary Get deals timeline + * @param {string} start_date The date when the first interval starts. Format: YYYY-MM-DD. + * @param {'day' | 'week' | 'month' | 'quarter'} interval The type of the interval<table><tr><th>Value</th><th>Description</th></tr><tr><td>`day`</td><td>Day</td></tr><tr><td>`week`</td><td>A full week (7 days) starting from `start_date`</td></tr><tr><td>`month`</td><td>A full month (depending on the number of days in given month) starting from `start_date`</td></tr><tr><td>`quarter`</td><td>A full quarter (3 months) starting from `start_date`</td></tr></table> + * @param {number} amount The number of given intervals, starting from `start_date`, to fetch. E.g. 3 (months). + * @param {string} field_key The date field key which deals will be retrieved from + * @param {number} [user_id] If supplied, only deals matching the given user will be returned + * @param {number} [pipeline_id] If supplied, only deals matching the given pipeline will be returned + * @param {number} [filter_id] If supplied, only deals matching the given filter will be returned + * @param {0 | 1} [exclude_deals] Whether to exclude deals list (1) or not (0). Note that when deals are excluded, the timeline summary (counts and values) is still returned. + * @param {string} [totals_convert_currency] The 3-letter currency code of any of the supported currencies. When supplied, `totals_converted` is returned per each interval which contains the currency-converted total amounts in the given currency. You may also set this parameter to `default_currency` in which case the user\'s default currency is used. + + * @throws {RequiredError} + */ + getDealsTimeline: async (start_date: string, interval: 'day' | 'week' | 'month' | 'quarter', amount: number, field_key: string, user_id?: number, pipeline_id?: number, filter_id?: number, exclude_deals?: 0 | 1, totals_convert_currency?: string, ): Promise => { + // verify required parameter 'start_date' is not null or undefined + assertParamExists('getDealsTimeline', 'start_date', start_date) + // verify required parameter 'interval' is not null or undefined + assertParamExists('getDealsTimeline', 'interval', interval) + // verify required parameter 'amount' is not null or undefined + assertParamExists('getDealsTimeline', 'amount', amount) + // verify required parameter 'field_key' is not null or undefined + assertParamExists('getDealsTimeline', 'field_key', field_key) + const localVarPath = `/deals/timeline`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (start_date !== undefined) { + localVarQueryParameter['start_date'] = (start_date as any instanceof Date) ? + (start_date as any).toISOString().substr(0,10) : + start_date; + } + + if (interval !== undefined) { + localVarQueryParameter['interval'] = interval; + } + + if (amount !== undefined) { + localVarQueryParameter['amount'] = amount; + } + + if (field_key !== undefined) { + localVarQueryParameter['field_key'] = field_key; + } + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + if (pipeline_id !== undefined) { + localVarQueryParameter['pipeline_id'] = pipeline_id; + } + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (exclude_deals !== undefined) { + localVarQueryParameter['exclude_deals'] = exclude_deals; + } + + if (totals_convert_currency !== undefined) { + localVarQueryParameter['totals_convert_currency'] = totals_convert_currency; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Merges a deal with another deal. For more information, see the tutorial for merging two deals. + * @summary Merge two deals + * @param {number} id The ID of the deal + * @param {MergeDealsRequest} [MergeDealsRequest] + + * @throws {RequiredError} + */ + mergeDeals: async (id: number, MergeDealsRequest?: MergeDealsRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('mergeDeals', 'id', id) + const localVarPath = `/deals/{id}/merge` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(MergeDealsRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. + * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. + * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. + * @param {'deal.cc_email'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + searchDeals: async (term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: 'deal.cc_email', start?: number, limit?: number, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchDeals', 'term', term) + const localVarPath = `/deals/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (person_id !== undefined) { + localVarQueryParameter['person_id'] = person_id; + } + + if (organization_id !== undefined) { + localVarQueryParameter['organization_id'] = organization_id; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a deal. For more information, see the tutorial for updating a deal. + * @summary Update a deal + * @param {number} id The ID of the deal + * @param {UpdateDealRequest} [UpdateDealRequest] + + * @throws {RequiredError} + */ + updateDeal: async (id: number, UpdateDealRequest?: UpdateDealRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateDeal', 'id', id) + const localVarPath = `/deals/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateDealRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The ID of the deal-product (the ID of the product attached to the deal) + * @param {UpdateDealProductRequest} [UpdateDealProductRequest] + + * @throws {RequiredError} + */ + updateDealProduct: async (id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateDealProduct', 'id', id) + // verify required parameter 'product_attachment_id' is not null or undefined + assertParamExists('updateDealProduct', 'product_attachment_id', product_attachment_id) + const localVarPath = `/deals/{id}/products/{product_attachment_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"product_attachment_id"}}`, encodeURIComponent(String(product_attachment_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateDealProductRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * DealsApi - functional programming interface + * @export + */ +export const DealsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = DealsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for adding a deal. + * @summary Add a deal + * @param {AddDealRequest} [AddDealRequest] + + * @throws {RequiredError} + */ + async addDeal(AddDealRequest?: AddDealRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addDeal(AddDealRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a follower to a deal. + * @summary Add a follower to a deal + * @param {number} id The ID of the deal + * @param {AddDealFollowerRequest} [AddDealFollowerRequest] + + * @throws {RequiredError} + */ + async addDealFollower(id: number, AddDealFollowerRequest?: AddDealFollowerRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addDealFollower(id, AddDealFollowerRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a participant to a deal. + * @summary Add a participant to a deal + * @param {number} id The ID of the deal + * @param {AddDealParticipantRequest} [AddDealParticipantRequest] + + * @throws {RequiredError} + */ + async addDealParticipant(id: number, AddDealParticipantRequest?: AddDealParticipantRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addDealParticipant(id, AddDealParticipantRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {number} id The ID of the deal + * @param {AddDealProductRequest} [AddDealProductRequest] + + * @throws {RequiredError} + */ + async addDealProduct(id: number, AddDealProductRequest?: AddDealProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addDealProduct(id, AddDealProductRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + async deleteDeal(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeal(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a follower from a deal. + * @summary Delete a follower from a deal + * @param {number} id The ID of the deal + * @param {number} follower_id The ID of the follower + + * @throws {RequiredError} + */ + async deleteDealFollower(id: number, follower_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDealFollower(id, follower_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a participant from a deal. + * @summary Delete a participant from a deal + * @param {number} id The ID of the deal + * @param {number} deal_participant_id The ID of the participant of the deal + + * @throws {RequiredError} + */ + async deleteDealParticipant(id: number, deal_participant_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDealParticipant(id, deal_participant_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled + * @summary Delete an attached product from a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The product attachment ID + + * @throws {RequiredError} + */ + async deleteDealProduct(id: number, product_attachment_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDealProduct(id, product_attachment_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted. + * @summary Delete multiple deals in bulk + * @param {string} ids The comma-separated IDs that will be deleted + + * @throws {RequiredError} + */ + async deleteDeals(ids: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeals(ids, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Duplicates a deal. + * @summary Duplicate deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + async duplicateDeal(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateDeal(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for getting details of a deal. + * @summary Get details of a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + async getDeal(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDeal(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists activities associated with a deal. + * @summary List activities associated with a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. + * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result + + * @throws {RequiredError} + */ + async getDealActivities(id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealActivities(id, start, limit, done, exclude, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists updates about field values of a deal. + * @summary List updates about deal field values + * @param {number} id The ID of the deal + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getDealChangelog(id: number, cursor?: string, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealChangelog(id, cursor, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists files associated with a deal. + * @summary List files attached to a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. + * @param {string} [sort] Supported fields: `id`, `update_time` + + * @throws {RequiredError} + */ + async getDealFiles(id: number, start?: number, limit?: number, sort?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealFiles(id, start, limit, sort, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists the followers of a deal. + * @summary List followers of a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + async getDealFollowers(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealFollowers(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists mail messages associated with a deal. + * @summary List mail messages associated with a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getDealMailMessages(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealMailMessages(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists the participants associated with a deal.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List participants of a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getDealParticipants(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealParticipants(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * List updates about participants of a deal. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary List updates about participants of a deal + * @param {number} id The ID of the deal + * @param {number} [limit] Items shown per page + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async getDealParticipantsChangelog(id: number, limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealParticipantsChangelog(id, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List all persons associated with a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getDealPersons(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealPersons(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {0 | 1} [include_product_data] Whether to fetch product data along with each attached product (1) or not (0, default) + + * @throws {RequiredError} + */ + async getDealProducts(id: number, start?: number, limit?: number, include_product_data?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealProducts(id, start, limit, include_product_data, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists updates about a deal. + * @summary List updates about a deal + * @param {number} id The ID of the deal + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. + * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). + + * @throws {RequiredError} + */ + async getDealUpdates(id: number, start?: number, limit?: number, all_changes?: string, items?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealUpdates(id, start, limit, all_changes, items, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists the users permitted to access a deal. + * @summary List permitted users + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + async getDealUsers(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealUsers(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all deals. For more information, see the tutorial for getting all deals. + * @summary Get all deals + * @param {number} [user_id] If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied. + * @param {number} [filter_id] The ID of the filter to use + * @param {number} [stage_id] If supplied, only deals within the given stage will be returned + * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + * @param {0 | 1} [owned_by_you] When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied. + + * @throws {RequiredError} + */ + async getDeals(user_id?: number, filter_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', start?: number, limit?: number, sort?: string, owned_by_you?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDeals(user_id, filter_id, stage_id, status, start, limit, sort, owned_by_you, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all deals. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all deals (BETA) + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {number} [user_id] If supplied, only deals matching the given user will be returned + * @param {number} [stage_id] If supplied, only deals within the given stage will be returned + * @param {'open' | 'won' | 'lost' | 'deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + + * @throws {RequiredError} + */ + async getDealsCollection(cursor?: string, limit?: number, since?: string, until?: string, user_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealsCollection(cursor, limit, since, until, user_id, stage_id, status, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns a summary of all the deals. + * @summary Get deals summary + * @param {'open' | 'won' | 'lost'} [status] Only fetch deals with a specific status. open = Open, won = Won, lost = Lost. + * @param {number} [filter_id] <code>user_id</code> will not be considered. Only deals matching the given filter will be returned. + * @param {number} [user_id] Only deals matching the given user will be returned. `user_id` will not be considered if you use `filter_id`. + * @param {number} [stage_id] Only deals within the given stage will be returned + + * @throws {RequiredError} + */ + async getDealsSummary(status?: 'open' | 'won' | 'lost', filter_id?: number, user_id?: number, stage_id?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealsSummary(status, filter_id, user_id, stage_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns open and won deals, grouped by a defined interval of time set in a date-type dealField (`field_key`) — e.g. when month is the chosen interval, and 3 months are asked starting from January 1st, 2012, deals are returned grouped into 3 groups — January, February and March — based on the value of the given `field_key`. + * @summary Get deals timeline + * @param {string} start_date The date when the first interval starts. Format: YYYY-MM-DD. + * @param {'day' | 'week' | 'month' | 'quarter'} interval The type of the interval<table><tr><th>Value</th><th>Description</th></tr><tr><td>`day`</td><td>Day</td></tr><tr><td>`week`</td><td>A full week (7 days) starting from `start_date`</td></tr><tr><td>`month`</td><td>A full month (depending on the number of days in given month) starting from `start_date`</td></tr><tr><td>`quarter`</td><td>A full quarter (3 months) starting from `start_date`</td></tr></table> + * @param {number} amount The number of given intervals, starting from `start_date`, to fetch. E.g. 3 (months). + * @param {string} field_key The date field key which deals will be retrieved from + * @param {number} [user_id] If supplied, only deals matching the given user will be returned + * @param {number} [pipeline_id] If supplied, only deals matching the given pipeline will be returned + * @param {number} [filter_id] If supplied, only deals matching the given filter will be returned + * @param {0 | 1} [exclude_deals] Whether to exclude deals list (1) or not (0). Note that when deals are excluded, the timeline summary (counts and values) is still returned. + * @param {string} [totals_convert_currency] The 3-letter currency code of any of the supported currencies. When supplied, `totals_converted` is returned per each interval which contains the currency-converted total amounts in the given currency. You may also set this parameter to `default_currency` in which case the user\'s default currency is used. + + * @throws {RequiredError} + */ + async getDealsTimeline(start_date: string, interval: 'day' | 'week' | 'month' | 'quarter', amount: number, field_key: string, user_id?: number, pipeline_id?: number, filter_id?: number, exclude_deals?: 0 | 1, totals_convert_currency?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealsTimeline(start_date, interval, amount, field_key, user_id, pipeline_id, filter_id, exclude_deals, totals_convert_currency, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Merges a deal with another deal. For more information, see the tutorial for merging two deals. + * @summary Merge two deals + * @param {number} id The ID of the deal + * @param {MergeDealsRequest} [MergeDealsRequest] + + * @throws {RequiredError} + */ + async mergeDeals(id: number, MergeDealsRequest?: MergeDealsRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.mergeDeals(id, MergeDealsRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. + * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. + * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. + * @param {'deal.cc_email'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async searchDeals(term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: 'deal.cc_email', start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchDeals(term, fields, exact_match, person_id, organization_id, status, include_fields, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a deal. For more information, see the tutorial for updating a deal. + * @summary Update a deal + * @param {number} id The ID of the deal + * @param {UpdateDealRequest} [UpdateDealRequest] + + * @throws {RequiredError} + */ + async updateDeal(id: number, UpdateDealRequest?: UpdateDealRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeal(id, UpdateDealRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The ID of the deal-product (the ID of the product attached to the deal) + * @param {UpdateDealProductRequest} [UpdateDealProductRequest] + + * @throws {RequiredError} + */ + async updateDealProduct(id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateDealProduct(id, product_attachment_id, UpdateDealProductRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * DealsApi - factory interface + * @export + */ +export const DealsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = DealsApiFp(configuration) + return { + /** + * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for adding a deal. + * @summary Add a deal + * @param {DealsApiAddDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addDeal(requestParameters: DealsApiAddDealRequest = {}, ): Promise { + return localVarFp.addDeal(requestParameters.AddDealRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a follower to a deal. + * @summary Add a follower to a deal + * @param {DealsApiAddDealFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addDealFollower(requestParameters: DealsApiAddDealFollowerRequest, ): Promise { + return localVarFp.addDealFollower(requestParameters.id, requestParameters.AddDealFollowerRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a participant to a deal. + * @summary Add a participant to a deal + * @param {DealsApiAddDealParticipantRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addDealParticipant(requestParameters: DealsApiAddDealParticipantRequest, ): Promise { + return localVarFp.addDealParticipant(requestParameters.id, requestParameters.AddDealParticipantRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {DealsApiAddDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addDealProduct(requestParameters: DealsApiAddDealProductRequest, ): Promise { + return localVarFp.addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {DealsApiDeleteDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteDeal(requestParameters: DealsApiDeleteDealRequest, ): Promise { + return localVarFp.deleteDeal(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a follower from a deal. + * @summary Delete a follower from a deal + * @param {DealsApiDeleteDealFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteDealFollower(requestParameters: DealsApiDeleteDealFollowerRequest, ): Promise { + return localVarFp.deleteDealFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a participant from a deal. + * @summary Delete a participant from a deal + * @param {DealsApiDeleteDealParticipantRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteDealParticipant(requestParameters: DealsApiDeleteDealParticipantRequest, ): Promise { + return localVarFp.deleteDealParticipant(requestParameters.id, requestParameters.deal_participant_id, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled + * @summary Delete an attached product from a deal + * @param {DealsApiDeleteDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteDealProduct(requestParameters: DealsApiDeleteDealProductRequest, ): Promise { + return localVarFp.deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted. + * @summary Delete multiple deals in bulk + * @param {DealsApiDeleteDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteDeals(requestParameters: DealsApiDeleteDealsRequest, ): Promise { + return localVarFp.deleteDeals(requestParameters.ids, ).then((request) => request(axios, basePath)); + }, + /** + * Duplicates a deal. + * @summary Duplicate deal + * @param {DealsApiDuplicateDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + duplicateDeal(requestParameters: DealsApiDuplicateDealRequest, ): Promise { + return localVarFp.duplicateDeal(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for getting details of a deal. + * @summary Get details of a deal + * @param {DealsApiGetDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDeal(requestParameters: DealsApiGetDealRequest, ): Promise { + return localVarFp.getDeal(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists activities associated with a deal. + * @summary List activities associated with a deal + * @param {DealsApiGetDealActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealActivities(requestParameters: DealsApiGetDealActivitiesRequest, ): Promise { + return localVarFp.getDealActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(axios, basePath)); + }, + /** + * Lists updates about field values of a deal. + * @summary List updates about deal field values + * @param {DealsApiGetDealChangelogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealChangelog(requestParameters: DealsApiGetDealChangelogRequest, ): Promise { + return localVarFp.getDealChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Lists files associated with a deal. + * @summary List files attached to a deal + * @param {DealsApiGetDealFilesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealFiles(requestParameters: DealsApiGetDealFilesRequest, ): Promise { + return localVarFp.getDealFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(axios, basePath)); + }, + /** + * Lists the followers of a deal. + * @summary List followers of a deal + * @param {DealsApiGetDealFollowersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealFollowers(requestParameters: DealsApiGetDealFollowersRequest, ): Promise { + return localVarFp.getDealFollowers(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists mail messages associated with a deal. + * @summary List mail messages associated with a deal + * @param {DealsApiGetDealMailMessagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealMailMessages(requestParameters: DealsApiGetDealMailMessagesRequest, ): Promise { + return localVarFp.getDealMailMessages(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Lists the participants associated with a deal.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List participants of a deal + * @param {DealsApiGetDealParticipantsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealParticipants(requestParameters: DealsApiGetDealParticipantsRequest, ): Promise { + return localVarFp.getDealParticipants(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * List updates about participants of a deal. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary List updates about participants of a deal + * @param {DealsApiGetDealParticipantsChangelogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealParticipantsChangelog(requestParameters: DealsApiGetDealParticipantsChangelogRequest, ): Promise { + return localVarFp.getDealParticipantsChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List all persons associated with a deal + * @param {DealsApiGetDealPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealPersons(requestParameters: DealsApiGetDealPersonsRequest, ): Promise { + return localVarFp.getDealPersons(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {DealsApiGetDealProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealProducts(requestParameters: DealsApiGetDealProductsRequest, ): Promise { + return localVarFp.getDealProducts(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.include_product_data, ).then((request) => request(axios, basePath)); + }, + /** + * Lists updates about a deal. + * @summary List updates about a deal + * @param {DealsApiGetDealUpdatesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealUpdates(requestParameters: DealsApiGetDealUpdatesRequest, ): Promise { + return localVarFp.getDealUpdates(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.all_changes, requestParameters.items, ).then((request) => request(axios, basePath)); + }, + /** + * Lists the users permitted to access a deal. + * @summary List permitted users + * @param {DealsApiGetDealUsersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealUsers(requestParameters: DealsApiGetDealUsersRequest, ): Promise { + return localVarFp.getDealUsers(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all deals. For more information, see the tutorial for getting all deals. + * @summary Get all deals + * @param {DealsApiGetDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDeals(requestParameters: DealsApiGetDealsRequest = {}, ): Promise { + return localVarFp.getDeals(requestParameters.user_id, requestParameters.filter_id, requestParameters.stage_id, requestParameters.status, requestParameters.start, requestParameters.limit, requestParameters.sort, requestParameters.owned_by_you, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all deals. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all deals (BETA) + * @param {DealsApiGetDealsCollectionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealsCollection(requestParameters: DealsApiGetDealsCollectionRequest = {}, ): Promise { + return localVarFp.getDealsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.user_id, requestParameters.stage_id, requestParameters.status, ).then((request) => request(axios, basePath)); + }, + /** + * Returns a summary of all the deals. + * @summary Get deals summary + * @param {DealsApiGetDealsSummaryRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealsSummary(requestParameters: DealsApiGetDealsSummaryRequest = {}, ): Promise { + return localVarFp.getDealsSummary(requestParameters.status, requestParameters.filter_id, requestParameters.user_id, requestParameters.stage_id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns open and won deals, grouped by a defined interval of time set in a date-type dealField (`field_key`) — e.g. when month is the chosen interval, and 3 months are asked starting from January 1st, 2012, deals are returned grouped into 3 groups — January, February and March — based on the value of the given `field_key`. + * @summary Get deals timeline + * @param {DealsApiGetDealsTimelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealsTimeline(requestParameters: DealsApiGetDealsTimelineRequest, ): Promise { + return localVarFp.getDealsTimeline(requestParameters.start_date, requestParameters.interval, requestParameters.amount, requestParameters.field_key, requestParameters.user_id, requestParameters.pipeline_id, requestParameters.filter_id, requestParameters.exclude_deals, requestParameters.totals_convert_currency, ).then((request) => request(axios, basePath)); + }, + /** + * Merges a deal with another deal. For more information, see the tutorial for merging two deals. + * @summary Merge two deals + * @param {DealsApiMergeDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + mergeDeals(requestParameters: DealsApiMergeDealsRequest, ): Promise { + return localVarFp.mergeDeals(requestParameters.id, requestParameters.MergeDealsRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {DealsApiSearchDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchDeals(requestParameters: DealsApiSearchDealsRequest, ): Promise { + return localVarFp.searchDeals(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a deal. For more information, see the tutorial for updating a deal. + * @summary Update a deal + * @param {DealsApiUpdateDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateDeal(requestParameters: DealsApiUpdateDealRequest, ): Promise { + return localVarFp.updateDeal(requestParameters.id, requestParameters.UpdateDealRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {DealsApiUpdateDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateDealProduct(requestParameters: DealsApiUpdateDealProductRequest, ): Promise { + return localVarFp.updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addDeal operation in DealsApi. + * @export + * @interface DealsApiAddDealRequest + */ +export interface DealsApiAddDealRequest { + /** + * + * @type {AddDealRequest} + * @memberof DealsApiAddDeal + */ + readonly AddDealRequest?: AddDealRequest +} + +/** + * Request parameters for addDealFollower operation in DealsApi. + * @export + * @interface DealsApiAddDealFollowerRequest + */ +export interface DealsApiAddDealFollowerRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiAddDealFollower + */ + readonly id: number + + /** + * + * @type {AddDealFollowerRequest} + * @memberof DealsApiAddDealFollower + */ + readonly AddDealFollowerRequest?: AddDealFollowerRequest +} + +/** + * Request parameters for addDealParticipant operation in DealsApi. + * @export + * @interface DealsApiAddDealParticipantRequest + */ +export interface DealsApiAddDealParticipantRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiAddDealParticipant + */ + readonly id: number + + /** + * + * @type {AddDealParticipantRequest} + * @memberof DealsApiAddDealParticipant + */ + readonly AddDealParticipantRequest?: AddDealParticipantRequest +} + +/** + * Request parameters for addDealProduct operation in DealsApi. + * @export + * @interface DealsApiAddDealProductRequest + */ +export interface DealsApiAddDealProductRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiAddDealProduct + */ + readonly id: number + + /** + * + * @type {AddDealProductRequest} + * @memberof DealsApiAddDealProduct + */ + readonly AddDealProductRequest?: AddDealProductRequest +} + +/** + * Request parameters for deleteDeal operation in DealsApi. + * @export + * @interface DealsApiDeleteDealRequest + */ +export interface DealsApiDeleteDealRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiDeleteDeal + */ + readonly id: number +} + +/** + * Request parameters for deleteDealFollower operation in DealsApi. + * @export + * @interface DealsApiDeleteDealFollowerRequest + */ +export interface DealsApiDeleteDealFollowerRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiDeleteDealFollower + */ + readonly id: number + + /** + * The ID of the follower + * @type {number} + * @memberof DealsApiDeleteDealFollower + */ + readonly follower_id: number +} + +/** + * Request parameters for deleteDealParticipant operation in DealsApi. + * @export + * @interface DealsApiDeleteDealParticipantRequest + */ +export interface DealsApiDeleteDealParticipantRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiDeleteDealParticipant + */ + readonly id: number + + /** + * The ID of the participant of the deal + * @type {number} + * @memberof DealsApiDeleteDealParticipant + */ + readonly deal_participant_id: number +} + +/** + * Request parameters for deleteDealProduct operation in DealsApi. + * @export + * @interface DealsApiDeleteDealProductRequest + */ +export interface DealsApiDeleteDealProductRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiDeleteDealProduct + */ + readonly id: number + + /** + * The product attachment ID + * @type {number} + * @memberof DealsApiDeleteDealProduct + */ + readonly product_attachment_id: number +} + +/** + * Request parameters for deleteDeals operation in DealsApi. + * @export + * @interface DealsApiDeleteDealsRequest + */ +export interface DealsApiDeleteDealsRequest { + /** + * The comma-separated IDs that will be deleted + * @type {string} + * @memberof DealsApiDeleteDeals + */ + readonly ids: string +} + +/** + * Request parameters for duplicateDeal operation in DealsApi. + * @export + * @interface DealsApiDuplicateDealRequest + */ +export interface DealsApiDuplicateDealRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiDuplicateDeal + */ + readonly id: number +} + +/** + * Request parameters for getDeal operation in DealsApi. + * @export + * @interface DealsApiGetDealRequest + */ +export interface DealsApiGetDealRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDeal + */ + readonly id: number +} + +/** + * Request parameters for getDealActivities operation in DealsApi. + * @export + * @interface DealsApiGetDealActivitiesRequest + */ +export interface DealsApiGetDealActivitiesRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealActivities + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof DealsApiGetDealActivities + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof DealsApiGetDealActivities + */ + readonly limit?: number + + /** + * Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. + * @type {0 | 1} + * @memberof DealsApiGetDealActivities + */ + readonly done?: 0 | 1 + + /** + * A comma-separated string of activity IDs to exclude from result + * @type {string} + * @memberof DealsApiGetDealActivities + */ + readonly exclude?: string +} + +/** + * Request parameters for getDealChangelog operation in DealsApi. + * @export + * @interface DealsApiGetDealChangelogRequest + */ +export interface DealsApiGetDealChangelogRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealChangelog + */ + readonly id: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof DealsApiGetDealChangelog + */ + readonly cursor?: string + + /** + * Items shown per page + * @type {number} + * @memberof DealsApiGetDealChangelog + */ + readonly limit?: number +} + +/** + * Request parameters for getDealFiles operation in DealsApi. + * @export + * @interface DealsApiGetDealFilesRequest + */ +export interface DealsApiGetDealFilesRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealFiles + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof DealsApiGetDealFiles + */ + readonly start?: number + + /** + * Items shown per page. Please note that a maximum value of 100 is allowed. + * @type {number} + * @memberof DealsApiGetDealFiles + */ + readonly limit?: number + + /** + * Supported fields: `id`, `update_time` + * @type {string} + * @memberof DealsApiGetDealFiles + */ + readonly sort?: string +} + +/** + * Request parameters for getDealFollowers operation in DealsApi. + * @export + * @interface DealsApiGetDealFollowersRequest + */ +export interface DealsApiGetDealFollowersRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealFollowers + */ + readonly id: number +} + +/** + * Request parameters for getDealMailMessages operation in DealsApi. + * @export + * @interface DealsApiGetDealMailMessagesRequest + */ +export interface DealsApiGetDealMailMessagesRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealMailMessages + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof DealsApiGetDealMailMessages + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof DealsApiGetDealMailMessages + */ + readonly limit?: number +} + +/** + * Request parameters for getDealParticipants operation in DealsApi. + * @export + * @interface DealsApiGetDealParticipantsRequest + */ +export interface DealsApiGetDealParticipantsRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealParticipants + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof DealsApiGetDealParticipants + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof DealsApiGetDealParticipants + */ + readonly limit?: number +} + +/** + * Request parameters for getDealParticipantsChangelog operation in DealsApi. + * @export + * @interface DealsApiGetDealParticipantsChangelogRequest + */ +export interface DealsApiGetDealParticipantsChangelogRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealParticipantsChangelog + */ + readonly id: number + + /** + * Items shown per page + * @type {number} + * @memberof DealsApiGetDealParticipantsChangelog + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof DealsApiGetDealParticipantsChangelog + */ + readonly cursor?: string +} + +/** + * Request parameters for getDealPersons operation in DealsApi. + * @export + * @interface DealsApiGetDealPersonsRequest + */ +export interface DealsApiGetDealPersonsRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealPersons + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof DealsApiGetDealPersons + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof DealsApiGetDealPersons + */ + readonly limit?: number +} + +/** + * Request parameters for getDealProducts operation in DealsApi. + * @export + * @interface DealsApiGetDealProductsRequest + */ +export interface DealsApiGetDealProductsRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealProducts + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof DealsApiGetDealProducts + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof DealsApiGetDealProducts + */ + readonly limit?: number + + /** + * Whether to fetch product data along with each attached product (1) or not (0, default) + * @type {0 | 1} + * @memberof DealsApiGetDealProducts + */ + readonly include_product_data?: 0 | 1 +} + +/** + * Request parameters for getDealUpdates operation in DealsApi. + * @export + * @interface DealsApiGetDealUpdatesRequest + */ +export interface DealsApiGetDealUpdatesRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealUpdates + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof DealsApiGetDealUpdates + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof DealsApiGetDealUpdates + */ + readonly limit?: number + + /** + * Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. + * @type {string} + * @memberof DealsApiGetDealUpdates + */ + readonly all_changes?: string + + /** + * A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). + * @type {string} + * @memberof DealsApiGetDealUpdates + */ + readonly items?: string +} + +/** + * Request parameters for getDealUsers operation in DealsApi. + * @export + * @interface DealsApiGetDealUsersRequest + */ +export interface DealsApiGetDealUsersRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealUsers + */ + readonly id: number +} + +/** + * Request parameters for getDeals operation in DealsApi. + * @export + * @interface DealsApiGetDealsRequest + */ +export interface DealsApiGetDealsRequest { + /** + * If supplied, only deals matching the given user will be returned. However, `filter_id` and `owned_by_you` takes precedence over `user_id` when supplied. + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly user_id?: number + + /** + * The ID of the filter to use + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly filter_id?: number + + /** + * If supplied, only deals within the given stage will be returned + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly stage_id?: number + + /** + * Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + * @type {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} + * @memberof DealsApiGetDeals + */ + readonly status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted' + + /** + * Pagination start + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly limit?: number + + /** + * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + * @type {string} + * @memberof DealsApiGetDeals + */ + readonly sort?: string + + /** + * When supplied, only deals owned by you are returned. However, `filter_id` takes precedence over `owned_by_you` when both are supplied. + * @type {0 | 1} + * @memberof DealsApiGetDeals + */ + readonly owned_by_you?: 0 | 1 +} + +/** + * Request parameters for getDealsCollection operation in DealsApi. + * @export + * @interface DealsApiGetDealsCollectionRequest + */ +export interface DealsApiGetDealsCollectionRequest { + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof DealsApiGetDealsCollection + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof DealsApiGetDealsCollection + */ + readonly limit?: number + + /** + * The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @type {string} + * @memberof DealsApiGetDealsCollection + */ + readonly since?: string + + /** + * The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @type {string} + * @memberof DealsApiGetDealsCollection + */ + readonly until?: string + + /** + * If supplied, only deals matching the given user will be returned + * @type {number} + * @memberof DealsApiGetDealsCollection + */ + readonly user_id?: number + + /** + * If supplied, only deals within the given stage will be returned + * @type {number} + * @memberof DealsApiGetDealsCollection + */ + readonly stage_id?: number + + /** + * Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + * @type {'open' | 'won' | 'lost' | 'deleted'} + * @memberof DealsApiGetDealsCollection + */ + readonly status?: 'open' | 'won' | 'lost' | 'deleted' +} + +/** + * Request parameters for getDealsSummary operation in DealsApi. + * @export + * @interface DealsApiGetDealsSummaryRequest + */ +export interface DealsApiGetDealsSummaryRequest { + /** + * Only fetch deals with a specific status. open = Open, won = Won, lost = Lost. + * @type {'open' | 'won' | 'lost'} + * @memberof DealsApiGetDealsSummary + */ + readonly status?: 'open' | 'won' | 'lost' + + /** + * <code>user_id</code> will not be considered. Only deals matching the given filter will be returned. + * @type {number} + * @memberof DealsApiGetDealsSummary + */ + readonly filter_id?: number + + /** + * Only deals matching the given user will be returned. `user_id` will not be considered if you use `filter_id`. + * @type {number} + * @memberof DealsApiGetDealsSummary + */ + readonly user_id?: number + + /** + * Only deals within the given stage will be returned + * @type {number} + * @memberof DealsApiGetDealsSummary + */ + readonly stage_id?: number +} + +/** + * Request parameters for getDealsTimeline operation in DealsApi. + * @export + * @interface DealsApiGetDealsTimelineRequest + */ +export interface DealsApiGetDealsTimelineRequest { + /** + * The date when the first interval starts. Format: YYYY-MM-DD. + * @type {string} + * @memberof DealsApiGetDealsTimeline + */ + readonly start_date: string + + /** + * The type of the interval<table><tr><th>Value</th><th>Description</th></tr><tr><td>`day`</td><td>Day</td></tr><tr><td>`week`</td><td>A full week (7 days) starting from `start_date`</td></tr><tr><td>`month`</td><td>A full month (depending on the number of days in given month) starting from `start_date`</td></tr><tr><td>`quarter`</td><td>A full quarter (3 months) starting from `start_date`</td></tr></table> + * @type {'day' | 'week' | 'month' | 'quarter'} + * @memberof DealsApiGetDealsTimeline + */ + readonly interval: 'day' | 'week' | 'month' | 'quarter' + + /** + * The number of given intervals, starting from `start_date`, to fetch. E.g. 3 (months). + * @type {number} + * @memberof DealsApiGetDealsTimeline + */ + readonly amount: number + + /** + * The date field key which deals will be retrieved from + * @type {string} + * @memberof DealsApiGetDealsTimeline + */ + readonly field_key: string + + /** + * If supplied, only deals matching the given user will be returned + * @type {number} + * @memberof DealsApiGetDealsTimeline + */ + readonly user_id?: number + + /** + * If supplied, only deals matching the given pipeline will be returned + * @type {number} + * @memberof DealsApiGetDealsTimeline + */ + readonly pipeline_id?: number + + /** + * If supplied, only deals matching the given filter will be returned + * @type {number} + * @memberof DealsApiGetDealsTimeline + */ + readonly filter_id?: number + + /** + * Whether to exclude deals list (1) or not (0). Note that when deals are excluded, the timeline summary (counts and values) is still returned. + * @type {0 | 1} + * @memberof DealsApiGetDealsTimeline + */ + readonly exclude_deals?: 0 | 1 + + /** + * The 3-letter currency code of any of the supported currencies. When supplied, `totals_converted` is returned per each interval which contains the currency-converted total amounts in the given currency. You may also set this parameter to `default_currency` in which case the user\'s default currency is used. + * @type {string} + * @memberof DealsApiGetDealsTimeline + */ + readonly totals_convert_currency?: string +} + +/** + * Request parameters for mergeDeals operation in DealsApi. + * @export + * @interface DealsApiMergeDealsRequest + */ +export interface DealsApiMergeDealsRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiMergeDeals + */ + readonly id: number + + /** + * + * @type {MergeDealsRequest} + * @memberof DealsApiMergeDeals + */ + readonly MergeDealsRequest?: MergeDealsRequest +} + +/** + * Request parameters for searchDeals operation in DealsApi. + * @export + * @interface DealsApiSearchDealsRequest + */ +export interface DealsApiSearchDealsRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof DealsApiSearchDeals + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {'custom_fields' | 'notes' | 'title'} + * @memberof DealsApiSearchDeals + */ + readonly fields?: 'custom_fields' | 'notes' | 'title' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof DealsApiSearchDeals + */ + readonly exact_match?: boolean + + /** + * Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. + * @type {number} + * @memberof DealsApiSearchDeals + */ + readonly person_id?: number + + /** + * Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. + * @type {number} + * @memberof DealsApiSearchDeals + */ + readonly organization_id?: number + + /** + * Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. + * @type {'open' | 'won' | 'lost'} + * @memberof DealsApiSearchDeals + */ + readonly status?: 'open' | 'won' | 'lost' + + /** + * Supports including optional fields in the results which are not provided by default + * @type {'deal.cc_email'} + * @memberof DealsApiSearchDeals + */ + readonly include_fields?: 'deal.cc_email' + + /** + * Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @type {number} + * @memberof DealsApiSearchDeals + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof DealsApiSearchDeals + */ + readonly limit?: number +} + +/** + * Request parameters for updateDeal operation in DealsApi. + * @export + * @interface DealsApiUpdateDealRequest + */ +export interface DealsApiUpdateDealRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiUpdateDeal + */ + readonly id: number + + /** + * + * @type {UpdateDealRequest} + * @memberof DealsApiUpdateDeal + */ + readonly UpdateDealRequest?: UpdateDealRequest +} + +/** + * Request parameters for updateDealProduct operation in DealsApi. + * @export + * @interface DealsApiUpdateDealProductRequest + */ +export interface DealsApiUpdateDealProductRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiUpdateDealProduct + */ + readonly id: number + + /** + * The ID of the deal-product (the ID of the product attached to the deal) + * @type {number} + * @memberof DealsApiUpdateDealProduct + */ + readonly product_attachment_id: number + + /** + * + * @type {UpdateDealProductRequest} + * @memberof DealsApiUpdateDealProduct + */ + readonly UpdateDealProductRequest?: UpdateDealProductRequest +} + +/** + * DealsApi - object-oriented interface + * @export + * @class DealsApi + * @extends {BaseAPI} + */ +export class DealsApi extends BaseAPI { + /** + * Adds a new deal. All deals created through the Pipedrive API will have a `origin` set to `API`. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the dealFields and look for `key` values. For more information, see the tutorial for adding a deal. + * @summary Add a deal + * @param {DealsApiAddDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public addDeal(requestParameters: DealsApiAddDealRequest = {}, ) { + return DealsApiFp(this.configuration).addDeal(requestParameters.AddDealRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a follower to a deal. + * @summary Add a follower to a deal + * @param {DealsApiAddDealFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public addDealFollower(requestParameters: DealsApiAddDealFollowerRequest, ) { + return DealsApiFp(this.configuration).addDealFollower(requestParameters.id, requestParameters.AddDealFollowerRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a participant to a deal. + * @summary Add a participant to a deal + * @param {DealsApiAddDealParticipantRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public addDealParticipant(requestParameters: DealsApiAddDealParticipantRequest, ) { + return DealsApiFp(this.configuration).addDealParticipant(requestParameters.id, requestParameters.AddDealParticipantRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {DealsApiAddDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public addDealProduct(requestParameters: DealsApiAddDealProductRequest, ) { + return DealsApiFp(this.configuration).addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {DealsApiDeleteDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public deleteDeal(requestParameters: DealsApiDeleteDealRequest, ) { + return DealsApiFp(this.configuration).deleteDeal(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a follower from a deal. + * @summary Delete a follower from a deal + * @param {DealsApiDeleteDealFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public deleteDealFollower(requestParameters: DealsApiDeleteDealFollowerRequest, ) { + return DealsApiFp(this.configuration).deleteDealFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a participant from a deal. + * @summary Delete a participant from a deal + * @param {DealsApiDeleteDealParticipantRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public deleteDealParticipant(requestParameters: DealsApiDeleteDealParticipantRequest, ) { + return DealsApiFp(this.configuration).deleteDealParticipant(requestParameters.id, requestParameters.deal_participant_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a product attachment from a deal, using the `product_attachment_id` Not possible to delete the attached product if the deal has installments associated and the product is the last one enabled + * @summary Delete an attached product from a deal + * @param {DealsApiDeleteDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public deleteDealProduct(requestParameters: DealsApiDeleteDealProductRequest, ) { + return DealsApiFp(this.configuration).deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks multiple deals as deleted. After 30 days, the deals will be permanently deleted. + * @summary Delete multiple deals in bulk + * @param {DealsApiDeleteDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public deleteDeals(requestParameters: DealsApiDeleteDealsRequest, ) { + return DealsApiFp(this.configuration).deleteDeals(requestParameters.ids, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Duplicates a deal. + * @summary Duplicate deal + * @param {DealsApiDuplicateDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public duplicateDeal(requestParameters: DealsApiDuplicateDealRequest, ) { + return DealsApiFp(this.configuration).duplicateDeal(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific deal. Note that this also returns some additional fields which are not present when asking for all deals – such as deal age and stay in pipeline stages. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of dealFields. For more information, see the tutorial for getting details of a deal. + * @summary Get details of a deal + * @param {DealsApiGetDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDeal(requestParameters: DealsApiGetDealRequest, ) { + return DealsApiFp(this.configuration).getDeal(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists activities associated with a deal. + * @summary List activities associated with a deal + * @param {DealsApiGetDealActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealActivities(requestParameters: DealsApiGetDealActivitiesRequest, ) { + return DealsApiFp(this.configuration).getDealActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists updates about field values of a deal. + * @summary List updates about deal field values + * @param {DealsApiGetDealChangelogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealChangelog(requestParameters: DealsApiGetDealChangelogRequest, ) { + return DealsApiFp(this.configuration).getDealChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists files associated with a deal. + * @summary List files attached to a deal + * @param {DealsApiGetDealFilesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealFiles(requestParameters: DealsApiGetDealFilesRequest, ) { + return DealsApiFp(this.configuration).getDealFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists the followers of a deal. + * @summary List followers of a deal + * @param {DealsApiGetDealFollowersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealFollowers(requestParameters: DealsApiGetDealFollowersRequest, ) { + return DealsApiFp(this.configuration).getDealFollowers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists mail messages associated with a deal. + * @summary List mail messages associated with a deal + * @param {DealsApiGetDealMailMessagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealMailMessages(requestParameters: DealsApiGetDealMailMessagesRequest, ) { + return DealsApiFp(this.configuration).getDealMailMessages(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists the participants associated with a deal.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List participants of a deal + * @param {DealsApiGetDealParticipantsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealParticipants(requestParameters: DealsApiGetDealParticipantsRequest, ) { + return DealsApiFp(this.configuration).getDealParticipants(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * List updates about participants of a deal. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary List updates about participants of a deal + * @param {DealsApiGetDealParticipantsChangelogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealParticipantsChangelog(requestParameters: DealsApiGetDealParticipantsChangelogRequest, ) { + return DealsApiFp(this.configuration).getDealParticipantsChangelog(requestParameters.id, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists all persons associated with a deal, regardless of whether the person is the primary contact of the deal, or added as a participant.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List all persons associated with a deal + * @param {DealsApiGetDealPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealPersons(requestParameters: DealsApiGetDealPersonsRequest, ) { + return DealsApiFp(this.configuration).getDealPersons(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {DealsApiGetDealProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealProducts(requestParameters: DealsApiGetDealProductsRequest, ) { + return DealsApiFp(this.configuration).getDealProducts(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.include_product_data, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists updates about a deal. + * @summary List updates about a deal + * @param {DealsApiGetDealUpdatesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealUpdates(requestParameters: DealsApiGetDealUpdatesRequest, ) { + return DealsApiFp(this.configuration).getDealUpdates(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.all_changes, requestParameters.items, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists the users permitted to access a deal. + * @summary List permitted users + * @param {DealsApiGetDealUsersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealUsers(requestParameters: DealsApiGetDealUsersRequest, ) { + return DealsApiFp(this.configuration).getDealUsers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all deals. For more information, see the tutorial for getting all deals. + * @summary Get all deals + * @param {DealsApiGetDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDeals(requestParameters: DealsApiGetDealsRequest = {}, ) { + return DealsApiFp(this.configuration).getDeals(requestParameters.user_id, requestParameters.filter_id, requestParameters.stage_id, requestParameters.status, requestParameters.start, requestParameters.limit, requestParameters.sort, requestParameters.owned_by_you, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all deals. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all deals (BETA) + * @param {DealsApiGetDealsCollectionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealsCollection(requestParameters: DealsApiGetDealsCollectionRequest = {}, ) { + return DealsApiFp(this.configuration).getDealsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.user_id, requestParameters.stage_id, requestParameters.status, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns a summary of all the deals. + * @summary Get deals summary + * @param {DealsApiGetDealsSummaryRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealsSummary(requestParameters: DealsApiGetDealsSummaryRequest = {}, ) { + return DealsApiFp(this.configuration).getDealsSummary(requestParameters.status, requestParameters.filter_id, requestParameters.user_id, requestParameters.stage_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns open and won deals, grouped by a defined interval of time set in a date-type dealField (`field_key`) — e.g. when month is the chosen interval, and 3 months are asked starting from January 1st, 2012, deals are returned grouped into 3 groups — January, February and March — based on the value of the given `field_key`. + * @summary Get deals timeline + * @param {DealsApiGetDealsTimelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealsTimeline(requestParameters: DealsApiGetDealsTimelineRequest, ) { + return DealsApiFp(this.configuration).getDealsTimeline(requestParameters.start_date, requestParameters.interval, requestParameters.amount, requestParameters.field_key, requestParameters.user_id, requestParameters.pipeline_id, requestParameters.filter_id, requestParameters.exclude_deals, requestParameters.totals_convert_currency, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Merges a deal with another deal. For more information, see the tutorial for merging two deals. + * @summary Merge two deals + * @param {DealsApiMergeDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public mergeDeals(requestParameters: DealsApiMergeDealsRequest, ) { + return DealsApiFp(this.configuration).mergeDeals(requestParameters.id, requestParameters.MergeDealsRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {DealsApiSearchDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public searchDeals(requestParameters: DealsApiSearchDealsRequest, ) { + return DealsApiFp(this.configuration).searchDeals(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a deal. For more information, see the tutorial for updating a deal. + * @summary Update a deal + * @param {DealsApiUpdateDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public updateDeal(requestParameters: DealsApiUpdateDealRequest, ) { + return DealsApiFp(this.configuration).updateDeal(requestParameters.id, requestParameters.UpdateDealRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {DealsApiUpdateDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public updateDealProduct(requestParameters: DealsApiUpdateDealProductRequest, ) { + return DealsApiFp(this.configuration).updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/files-api.ts b/src/versions/v1/api/files-api.ts new file mode 100644 index 00000000..196408b0 --- /dev/null +++ b/src/versions/v1/api/files-api.ts @@ -0,0 +1,1039 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddFileResponse } from '../models'; +// @ts-ignore +import { AddRemoteFileAndLinkItToItemResponse } from '../models'; +// @ts-ignore +import { DeleteFileResponse } from '../models'; +// @ts-ignore +import { GetFileResponse } from '../models'; +// @ts-ignore +import { GetFilesResponse } from '../models'; +// @ts-ignore +import { GetLinkRemoteFileToItemResponse } from '../models'; +// @ts-ignore +import { UpdateFileResponse } from '../models'; +/** + * FilesApi - axios parameter creator + * @export + */ +export const FilesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Lets you upload a file and associate it with a deal, person, organization, activity, product or lead. For more information, see the tutorial for adding a file. + * @summary Add file + * @param {File} file A single file, supplied in the multipart/form-data encoding and contained within the given boundaries + * @param {number} [deal_id] The ID of the deal to associate file(s) with + * @param {number} [person_id] The ID of the person to associate file(s) with + * @param {number} [org_id] The ID of the organization to associate file(s) with + * @param {number} [product_id] The ID of the product to associate file(s) with + * @param {number} [activity_id] The ID of the activity to associate file(s) with + * @param {string} [lead_id] The ID of the lead to associate file(s) with + + * @throws {RequiredError} + */ + addFile: async (file: File, deal_id?: number, person_id?: number, org_id?: number, product_id?: number, activity_id?: number, lead_id?: string, ): Promise => { + // verify required parameter 'file' is not null or undefined + assertParamExists('addFile', 'file', file) + const localVarPath = `/files`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration) + + + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + if (deal_id !== undefined) { + localVarFormParams.append('deal_id', deal_id as any); + } + + if (person_id !== undefined) { + localVarFormParams.append('person_id', person_id as any); + } + + if (org_id !== undefined) { + localVarFormParams.append('org_id', org_id as any); + } + + if (product_id !== undefined) { + localVarFormParams.append('product_id', product_id as any); + } + + if (activity_id !== undefined) { + localVarFormParams.append('activity_id', activity_id as any); + } + + if (lead_id !== undefined) { + localVarFormParams.append('lead_id', lead_id as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Creates a new empty file in the remote location (`googledrive`) that will be linked to the item you supply. For more information, see the tutorial for adding a remote file. + * @summary Create a remote file and link it to an item + * @param {string} file_type The file type + * @param {string} title The title of the file + * @param {string} item_type The item type + * @param {number} item_id The ID of the item to associate the file with + * @param {string} remote_location The location type to send the file to. Only `googledrive` is supported at the moment. + + * @throws {RequiredError} + */ + addFileAndLinkIt: async (file_type: string, title: string, item_type: string, item_id: number, remote_location: string, ): Promise => { + // verify required parameter 'file_type' is not null or undefined + assertParamExists('addFileAndLinkIt', 'file_type', file_type) + // verify required parameter 'title' is not null or undefined + assertParamExists('addFileAndLinkIt', 'title', title) + // verify required parameter 'item_type' is not null or undefined + assertParamExists('addFileAndLinkIt', 'item_type', item_type) + // verify required parameter 'item_id' is not null or undefined + assertParamExists('addFileAndLinkIt', 'item_id', item_id) + // verify required parameter 'remote_location' is not null or undefined + assertParamExists('addFileAndLinkIt', 'remote_location', remote_location) + const localVarPath = `/files/remote`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new URLSearchParams(); + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration) + + + if (file_type !== undefined) { + localVarFormParams.set('file_type', file_type as any); + } + + if (title !== undefined) { + localVarFormParams.set('title', title as any); + } + + if (item_type !== undefined) { + localVarFormParams.set('item_type', item_type as any); + } + + if (item_id !== undefined) { + localVarFormParams.set('item_id', item_id as any); + } + + if (remote_location !== undefined) { + localVarFormParams.set('remote_location', remote_location as any); + } + + + localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = localVarFormParams.toString(); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a file as deleted. After 30 days, the file will be permanently deleted. + * @summary Delete a file + * @param {number} id The ID of the file + + * @throws {RequiredError} + */ + deleteFile: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteFile', 'id', id) + const localVarPath = `/files/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Initializes a file download. + * @summary Download one file + * @param {number} id The ID of the file + + * @throws {RequiredError} + */ + downloadFile: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('downloadFile', 'id', id) + const localVarPath = `/files/{id}/download` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific file. + * @summary Get one file + * @param {number} id The ID of the file + + * @throws {RequiredError} + */ + getFile: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getFile', 'id', id) + const localVarPath = `/files/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all files. + * @summary Get all files + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. + * @param {string} [sort] Supported fields: `id`, `update_time` + + * @throws {RequiredError} + */ + getFiles: async (start?: number, limit?: number, sort?: string, ): Promise => { + const localVarPath = `/files`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Links an existing remote file (`googledrive`) to the item you supply. For more information, see the tutorial for adding a remote file. + * @summary Link a remote file to an item + * @param {string} item_type The item type + * @param {number} item_id The ID of the item to associate the file with + * @param {string} remote_id The remote item ID + * @param {string} remote_location The location type to send the file to. Only `googledrive` is supported at the moment. + + * @throws {RequiredError} + */ + linkFileToItem: async (item_type: string, item_id: number, remote_id: string, remote_location: string, ): Promise => { + // verify required parameter 'item_type' is not null or undefined + assertParamExists('linkFileToItem', 'item_type', item_type) + // verify required parameter 'item_id' is not null or undefined + assertParamExists('linkFileToItem', 'item_id', item_id) + // verify required parameter 'remote_id' is not null or undefined + assertParamExists('linkFileToItem', 'remote_id', remote_id) + // verify required parameter 'remote_location' is not null or undefined + assertParamExists('linkFileToItem', 'remote_location', remote_location) + const localVarPath = `/files/remoteLink`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new URLSearchParams(); + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration) + + + if (item_type !== undefined) { + localVarFormParams.set('item_type', item_type as any); + } + + if (item_id !== undefined) { + localVarFormParams.set('item_id', item_id as any); + } + + if (remote_id !== undefined) { + localVarFormParams.set('remote_id', remote_id as any); + } + + if (remote_location !== undefined) { + localVarFormParams.set('remote_location', remote_location as any); + } + + + localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = localVarFormParams.toString(); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a file. + * @summary Update file details + * @param {number} id The ID of the file + * @param {string} [name] The visible name of the file + * @param {string} [description] The description of the file + + * @throws {RequiredError} + */ + updateFile: async (id: number, name?: string, description?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateFile', 'id', id) + const localVarPath = `/files/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new URLSearchParams(); + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration) + + + if (name !== undefined) { + localVarFormParams.set('name', name as any); + } + + if (description !== undefined) { + localVarFormParams.set('description', description as any); + } + + + localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = localVarFormParams.toString(); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * FilesApi - functional programming interface + * @export + */ +export const FilesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = FilesApiAxiosParamCreator(configuration) + return { + /** + * Lets you upload a file and associate it with a deal, person, organization, activity, product or lead. For more information, see the tutorial for adding a file. + * @summary Add file + * @param {File} file A single file, supplied in the multipart/form-data encoding and contained within the given boundaries + * @param {number} [deal_id] The ID of the deal to associate file(s) with + * @param {number} [person_id] The ID of the person to associate file(s) with + * @param {number} [org_id] The ID of the organization to associate file(s) with + * @param {number} [product_id] The ID of the product to associate file(s) with + * @param {number} [activity_id] The ID of the activity to associate file(s) with + * @param {string} [lead_id] The ID of the lead to associate file(s) with + + * @throws {RequiredError} + */ + async addFile(file: File, deal_id?: number, person_id?: number, org_id?: number, product_id?: number, activity_id?: number, lead_id?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addFile(file, deal_id, person_id, org_id, product_id, activity_id, lead_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Creates a new empty file in the remote location (`googledrive`) that will be linked to the item you supply. For more information, see the tutorial for adding a remote file. + * @summary Create a remote file and link it to an item + * @param {string} file_type The file type + * @param {string} title The title of the file + * @param {string} item_type The item type + * @param {number} item_id The ID of the item to associate the file with + * @param {string} remote_location The location type to send the file to. Only `googledrive` is supported at the moment. + + * @throws {RequiredError} + */ + async addFileAndLinkIt(file_type: string, title: string, item_type: string, item_id: number, remote_location: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addFileAndLinkIt(file_type, title, item_type, item_id, remote_location, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a file as deleted. After 30 days, the file will be permanently deleted. + * @summary Delete a file + * @param {number} id The ID of the file + + * @throws {RequiredError} + */ + async deleteFile(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFile(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Initializes a file download. + * @summary Download one file + * @param {number} id The ID of the file + + * @throws {RequiredError} + */ + async downloadFile(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.downloadFile(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific file. + * @summary Get one file + * @param {number} id The ID of the file + + * @throws {RequiredError} + */ + async getFile(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getFile(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all files. + * @summary Get all files + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. + * @param {string} [sort] Supported fields: `id`, `update_time` + + * @throws {RequiredError} + */ + async getFiles(start?: number, limit?: number, sort?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getFiles(start, limit, sort, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Links an existing remote file (`googledrive`) to the item you supply. For more information, see the tutorial for adding a remote file. + * @summary Link a remote file to an item + * @param {string} item_type The item type + * @param {number} item_id The ID of the item to associate the file with + * @param {string} remote_id The remote item ID + * @param {string} remote_location The location type to send the file to. Only `googledrive` is supported at the moment. + + * @throws {RequiredError} + */ + async linkFileToItem(item_type: string, item_id: number, remote_id: string, remote_location: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.linkFileToItem(item_type, item_id, remote_id, remote_location, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a file. + * @summary Update file details + * @param {number} id The ID of the file + * @param {string} [name] The visible name of the file + * @param {string} [description] The description of the file + + * @throws {RequiredError} + */ + async updateFile(id: number, name?: string, description?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateFile(id, name, description, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * FilesApi - factory interface + * @export + */ +export const FilesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = FilesApiFp(configuration) + return { + /** + * Lets you upload a file and associate it with a deal, person, organization, activity, product or lead. For more information, see the tutorial for adding a file. + * @summary Add file + * @param {FilesApiAddFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addFile(requestParameters: FilesApiAddFileRequest, ): Promise { + return localVarFp.addFile(requestParameters.file, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.product_id, requestParameters.activity_id, requestParameters.lead_id, ).then((request) => request(axios, basePath)); + }, + /** + * Creates a new empty file in the remote location (`googledrive`) that will be linked to the item you supply. For more information, see the tutorial for adding a remote file. + * @summary Create a remote file and link it to an item + * @param {FilesApiAddFileAndLinkItRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addFileAndLinkIt(requestParameters: FilesApiAddFileAndLinkItRequest, ): Promise { + return localVarFp.addFileAndLinkIt(requestParameters.file_type, requestParameters.title, requestParameters.item_type, requestParameters.item_id, requestParameters.remote_location, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a file as deleted. After 30 days, the file will be permanently deleted. + * @summary Delete a file + * @param {FilesApiDeleteFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteFile(requestParameters: FilesApiDeleteFileRequest, ): Promise { + return localVarFp.deleteFile(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Initializes a file download. + * @summary Download one file + * @param {FilesApiDownloadFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + downloadFile(requestParameters: FilesApiDownloadFileRequest, ): Promise { + return localVarFp.downloadFile(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific file. + * @summary Get one file + * @param {FilesApiGetFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getFile(requestParameters: FilesApiGetFileRequest, ): Promise { + return localVarFp.getFile(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all files. + * @summary Get all files + * @param {FilesApiGetFilesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getFiles(requestParameters: FilesApiGetFilesRequest = {}, ): Promise { + return localVarFp.getFiles(requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(axios, basePath)); + }, + /** + * Links an existing remote file (`googledrive`) to the item you supply. For more information, see the tutorial for adding a remote file. + * @summary Link a remote file to an item + * @param {FilesApiLinkFileToItemRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + linkFileToItem(requestParameters: FilesApiLinkFileToItemRequest, ): Promise { + return localVarFp.linkFileToItem(requestParameters.item_type, requestParameters.item_id, requestParameters.remote_id, requestParameters.remote_location, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a file. + * @summary Update file details + * @param {FilesApiUpdateFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateFile(requestParameters: FilesApiUpdateFileRequest, ): Promise { + return localVarFp.updateFile(requestParameters.id, requestParameters.name, requestParameters.description, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addFile operation in FilesApi. + * @export + * @interface FilesApiAddFileRequest + */ +export interface FilesApiAddFileRequest { + /** + * A single file, supplied in the multipart/form-data encoding and contained within the given boundaries + * @type {File} + * @memberof FilesApiAddFile + */ + readonly file: File + + /** + * The ID of the deal to associate file(s) with + * @type {number} + * @memberof FilesApiAddFile + */ + readonly deal_id?: number + + /** + * The ID of the person to associate file(s) with + * @type {number} + * @memberof FilesApiAddFile + */ + readonly person_id?: number + + /** + * The ID of the organization to associate file(s) with + * @type {number} + * @memberof FilesApiAddFile + */ + readonly org_id?: number + + /** + * The ID of the product to associate file(s) with + * @type {number} + * @memberof FilesApiAddFile + */ + readonly product_id?: number + + /** + * The ID of the activity to associate file(s) with + * @type {number} + * @memberof FilesApiAddFile + */ + readonly activity_id?: number + + /** + * The ID of the lead to associate file(s) with + * @type {string} + * @memberof FilesApiAddFile + */ + readonly lead_id?: string +} + +/** + * Request parameters for addFileAndLinkIt operation in FilesApi. + * @export + * @interface FilesApiAddFileAndLinkItRequest + */ +export interface FilesApiAddFileAndLinkItRequest { + /** + * The file type + * @type {string} + * @memberof FilesApiAddFileAndLinkIt + */ + readonly file_type: string + + /** + * The title of the file + * @type {string} + * @memberof FilesApiAddFileAndLinkIt + */ + readonly title: string + + /** + * The item type + * @type {string} + * @memberof FilesApiAddFileAndLinkIt + */ + readonly item_type: string + + /** + * The ID of the item to associate the file with + * @type {number} + * @memberof FilesApiAddFileAndLinkIt + */ + readonly item_id: number + + /** + * The location type to send the file to. Only `googledrive` is supported at the moment. + * @type {string} + * @memberof FilesApiAddFileAndLinkIt + */ + readonly remote_location: string +} + +/** + * Request parameters for deleteFile operation in FilesApi. + * @export + * @interface FilesApiDeleteFileRequest + */ +export interface FilesApiDeleteFileRequest { + /** + * The ID of the file + * @type {number} + * @memberof FilesApiDeleteFile + */ + readonly id: number +} + +/** + * Request parameters for downloadFile operation in FilesApi. + * @export + * @interface FilesApiDownloadFileRequest + */ +export interface FilesApiDownloadFileRequest { + /** + * The ID of the file + * @type {number} + * @memberof FilesApiDownloadFile + */ + readonly id: number +} + +/** + * Request parameters for getFile operation in FilesApi. + * @export + * @interface FilesApiGetFileRequest + */ +export interface FilesApiGetFileRequest { + /** + * The ID of the file + * @type {number} + * @memberof FilesApiGetFile + */ + readonly id: number +} + +/** + * Request parameters for getFiles operation in FilesApi. + * @export + * @interface FilesApiGetFilesRequest + */ +export interface FilesApiGetFilesRequest { + /** + * Pagination start + * @type {number} + * @memberof FilesApiGetFiles + */ + readonly start?: number + + /** + * Items shown per page. Please note that a maximum value of 100 is allowed. + * @type {number} + * @memberof FilesApiGetFiles + */ + readonly limit?: number + + /** + * Supported fields: `id`, `update_time` + * @type {string} + * @memberof FilesApiGetFiles + */ + readonly sort?: string +} + +/** + * Request parameters for linkFileToItem operation in FilesApi. + * @export + * @interface FilesApiLinkFileToItemRequest + */ +export interface FilesApiLinkFileToItemRequest { + /** + * The item type + * @type {string} + * @memberof FilesApiLinkFileToItem + */ + readonly item_type: string + + /** + * The ID of the item to associate the file with + * @type {number} + * @memberof FilesApiLinkFileToItem + */ + readonly item_id: number + + /** + * The remote item ID + * @type {string} + * @memberof FilesApiLinkFileToItem + */ + readonly remote_id: string + + /** + * The location type to send the file to. Only `googledrive` is supported at the moment. + * @type {string} + * @memberof FilesApiLinkFileToItem + */ + readonly remote_location: string +} + +/** + * Request parameters for updateFile operation in FilesApi. + * @export + * @interface FilesApiUpdateFileRequest + */ +export interface FilesApiUpdateFileRequest { + /** + * The ID of the file + * @type {number} + * @memberof FilesApiUpdateFile + */ + readonly id: number + + /** + * The visible name of the file + * @type {string} + * @memberof FilesApiUpdateFile + */ + readonly name?: string + + /** + * The description of the file + * @type {string} + * @memberof FilesApiUpdateFile + */ + readonly description?: string +} + +/** + * FilesApi - object-oriented interface + * @export + * @class FilesApi + * @extends {BaseAPI} + */ +export class FilesApi extends BaseAPI { + /** + * Lets you upload a file and associate it with a deal, person, organization, activity, product or lead. For more information, see the tutorial for adding a file. + * @summary Add file + * @param {FilesApiAddFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FilesApi + */ + public addFile(requestParameters: FilesApiAddFileRequest, ) { + return FilesApiFp(this.configuration).addFile(requestParameters.file, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.product_id, requestParameters.activity_id, requestParameters.lead_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Creates a new empty file in the remote location (`googledrive`) that will be linked to the item you supply. For more information, see the tutorial for adding a remote file. + * @summary Create a remote file and link it to an item + * @param {FilesApiAddFileAndLinkItRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FilesApi + */ + public addFileAndLinkIt(requestParameters: FilesApiAddFileAndLinkItRequest, ) { + return FilesApiFp(this.configuration).addFileAndLinkIt(requestParameters.file_type, requestParameters.title, requestParameters.item_type, requestParameters.item_id, requestParameters.remote_location, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a file as deleted. After 30 days, the file will be permanently deleted. + * @summary Delete a file + * @param {FilesApiDeleteFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FilesApi + */ + public deleteFile(requestParameters: FilesApiDeleteFileRequest, ) { + return FilesApiFp(this.configuration).deleteFile(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Initializes a file download. + * @summary Download one file + * @param {FilesApiDownloadFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FilesApi + */ + public downloadFile(requestParameters: FilesApiDownloadFileRequest, ) { + return FilesApiFp(this.configuration).downloadFile(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific file. + * @summary Get one file + * @param {FilesApiGetFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FilesApi + */ + public getFile(requestParameters: FilesApiGetFileRequest, ) { + return FilesApiFp(this.configuration).getFile(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all files. + * @summary Get all files + * @param {FilesApiGetFilesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FilesApi + */ + public getFiles(requestParameters: FilesApiGetFilesRequest = {}, ) { + return FilesApiFp(this.configuration).getFiles(requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Links an existing remote file (`googledrive`) to the item you supply. For more information, see the tutorial for adding a remote file. + * @summary Link a remote file to an item + * @param {FilesApiLinkFileToItemRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FilesApi + */ + public linkFileToItem(requestParameters: FilesApiLinkFileToItemRequest, ) { + return FilesApiFp(this.configuration).linkFileToItem(requestParameters.item_type, requestParameters.item_id, requestParameters.remote_id, requestParameters.remote_location, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a file. + * @summary Update file details + * @param {FilesApiUpdateFileRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FilesApi + */ + public updateFile(requestParameters: FilesApiUpdateFileRequest, ) { + return FilesApiFp(this.configuration).updateFile(requestParameters.id, requestParameters.name, requestParameters.description, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/filters-api.ts b/src/versions/v1/api/filters-api.ts new file mode 100644 index 00000000..e8cb5f85 --- /dev/null +++ b/src/versions/v1/api/filters-api.ts @@ -0,0 +1,685 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddFilterRequest } from '../models'; +// @ts-ignore +import { AddFiltersResponse } from '../models'; +// @ts-ignore +import { DeleteFilterResponse } from '../models'; +// @ts-ignore +import { DeleteFiltersResponse } from '../models'; +// @ts-ignore +import { GetFiltersResponse } from '../models'; +// @ts-ignore +import { GetFiltersResponse1 } from '../models'; +// @ts-ignore +import { UpdateFilterRequest } from '../models'; +/** + * FiltersApi - axios parameter creator + * @export + */ +export const FiltersApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with \'AND\', and only two second level condition groups are supported of which one must be glued with \'AND\' and the second with \'OR\'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for adding a filter. + * @summary Add a new filter + * @param {AddFilterRequest} [AddFilterRequest] + + * @throws {RequiredError} + */ + addFilter: async (AddFilterRequest?: AddFilterRequest, ): Promise => { + const localVarPath = `/filters`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddFilterRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a filter as deleted. + * @summary Delete a filter + * @param {number} id The ID of the filter + + * @throws {RequiredError} + */ + deleteFilter: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteFilter', 'id', id) + const localVarPath = `/filters/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks multiple filters as deleted. + * @summary Delete multiple filters in bulk + * @param {string} ids The comma-separated filter IDs to delete + + * @throws {RequiredError} + */ + deleteFilters: async (ids: string, ): Promise => { + // verify required parameter 'ids' is not null or undefined + assertParamExists('deleteFilters', 'ids', ids) + const localVarPath = `/filters`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration) + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific filter. Note that this also returns the condition lines of the filter. + * @summary Get one filter + * @param {number} id The ID of the filter + + * @throws {RequiredError} + */ + getFilter: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getFilter', 'id', id) + const localVarPath = `/filters/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to add or update filters. For more information, see the tutorial for adding a filter. + * @summary Get all filter helpers + + * @throws {RequiredError} + */ + getFilterHelpers: async (): Promise => { + const localVarPath = `/filters/helpers`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all filters. + * @summary Get all filters + * @param {'deals' | 'leads' | 'org' | 'people' | 'products' | 'activity' | 'projects'} [type] The types of filters to fetch + + * @throws {RequiredError} + */ + getFilters: async (type?: 'deals' | 'leads' | 'org' | 'people' | 'products' | 'activity' | 'projects', ): Promise => { + const localVarPath = `/filters`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "activities:read", "activities:full", "contacts:read", "contacts:full"], configuration) + + if (type !== undefined) { + localVarQueryParameter['type'] = type; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates an existing filter. + * @summary Update filter + * @param {number} id The ID of the filter + * @param {UpdateFilterRequest} [UpdateFilterRequest] + + * @throws {RequiredError} + */ + updateFilter: async (id: number, UpdateFilterRequest?: UpdateFilterRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateFilter', 'id', id) + const localVarPath = `/filters/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "activities:full", "contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateFilterRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * FiltersApi - functional programming interface + * @export + */ +export const FiltersApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = FiltersApiAxiosParamCreator(configuration) + return { + /** + * Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with \'AND\', and only two second level condition groups are supported of which one must be glued with \'AND\' and the second with \'OR\'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for adding a filter. + * @summary Add a new filter + * @param {AddFilterRequest} [AddFilterRequest] + + * @throws {RequiredError} + */ + async addFilter(AddFilterRequest?: AddFilterRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addFilter(AddFilterRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a filter as deleted. + * @summary Delete a filter + * @param {number} id The ID of the filter + + * @throws {RequiredError} + */ + async deleteFilter(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFilter(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks multiple filters as deleted. + * @summary Delete multiple filters in bulk + * @param {string} ids The comma-separated filter IDs to delete + + * @throws {RequiredError} + */ + async deleteFilters(ids: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteFilters(ids, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific filter. Note that this also returns the condition lines of the filter. + * @summary Get one filter + * @param {number} id The ID of the filter + + * @throws {RequiredError} + */ + async getFilter(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getFilter(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to add or update filters. For more information, see the tutorial for adding a filter. + * @summary Get all filter helpers + + * @throws {RequiredError} + */ + async getFilterHelpers(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getFilterHelpers(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all filters. + * @summary Get all filters + * @param {'deals' | 'leads' | 'org' | 'people' | 'products' | 'activity' | 'projects'} [type] The types of filters to fetch + + * @throws {RequiredError} + */ + async getFilters(type?: 'deals' | 'leads' | 'org' | 'people' | 'products' | 'activity' | 'projects', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getFilters(type, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates an existing filter. + * @summary Update filter + * @param {number} id The ID of the filter + * @param {UpdateFilterRequest} [UpdateFilterRequest] + + * @throws {RequiredError} + */ + async updateFilter(id: number, UpdateFilterRequest?: UpdateFilterRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateFilter(id, UpdateFilterRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * FiltersApi - factory interface + * @export + */ +export const FiltersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = FiltersApiFp(configuration) + return { + /** + * Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with \'AND\', and only two second level condition groups are supported of which one must be glued with \'AND\' and the second with \'OR\'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for adding a filter. + * @summary Add a new filter + * @param {FiltersApiAddFilterRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addFilter(requestParameters: FiltersApiAddFilterRequest = {}, ): Promise { + return localVarFp.addFilter(requestParameters.AddFilterRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a filter as deleted. + * @summary Delete a filter + * @param {FiltersApiDeleteFilterRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteFilter(requestParameters: FiltersApiDeleteFilterRequest, ): Promise { + return localVarFp.deleteFilter(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks multiple filters as deleted. + * @summary Delete multiple filters in bulk + * @param {FiltersApiDeleteFiltersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteFilters(requestParameters: FiltersApiDeleteFiltersRequest, ): Promise { + return localVarFp.deleteFilters(requestParameters.ids, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific filter. Note that this also returns the condition lines of the filter. + * @summary Get one filter + * @param {FiltersApiGetFilterRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getFilter(requestParameters: FiltersApiGetFilterRequest, ): Promise { + return localVarFp.getFilter(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to add or update filters. For more information, see the tutorial for adding a filter. + * @summary Get all filter helpers + + * @throws {RequiredError} + */ + getFilterHelpers(): Promise { + return localVarFp.getFilterHelpers().then((request) => request(axios, basePath)); + }, + /** + * Returns data about all filters. + * @summary Get all filters + * @param {FiltersApiGetFiltersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getFilters(requestParameters: FiltersApiGetFiltersRequest = {}, ): Promise { + return localVarFp.getFilters(requestParameters.type, ).then((request) => request(axios, basePath)); + }, + /** + * Updates an existing filter. + * @summary Update filter + * @param {FiltersApiUpdateFilterRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateFilter(requestParameters: FiltersApiUpdateFilterRequest, ): Promise { + return localVarFp.updateFilter(requestParameters.id, requestParameters.UpdateFilterRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addFilter operation in FiltersApi. + * @export + * @interface FiltersApiAddFilterRequest + */ +export interface FiltersApiAddFilterRequest { + /** + * + * @type {AddFilterRequest} + * @memberof FiltersApiAddFilter + */ + readonly AddFilterRequest?: AddFilterRequest +} + +/** + * Request parameters for deleteFilter operation in FiltersApi. + * @export + * @interface FiltersApiDeleteFilterRequest + */ +export interface FiltersApiDeleteFilterRequest { + /** + * The ID of the filter + * @type {number} + * @memberof FiltersApiDeleteFilter + */ + readonly id: number +} + +/** + * Request parameters for deleteFilters operation in FiltersApi. + * @export + * @interface FiltersApiDeleteFiltersRequest + */ +export interface FiltersApiDeleteFiltersRequest { + /** + * The comma-separated filter IDs to delete + * @type {string} + * @memberof FiltersApiDeleteFilters + */ + readonly ids: string +} + +/** + * Request parameters for getFilter operation in FiltersApi. + * @export + * @interface FiltersApiGetFilterRequest + */ +export interface FiltersApiGetFilterRequest { + /** + * The ID of the filter + * @type {number} + * @memberof FiltersApiGetFilter + */ + readonly id: number +} + +/** + * Request parameters for getFilters operation in FiltersApi. + * @export + * @interface FiltersApiGetFiltersRequest + */ +export interface FiltersApiGetFiltersRequest { + /** + * The types of filters to fetch + * @type {'deals' | 'leads' | 'org' | 'people' | 'products' | 'activity' | 'projects'} + * @memberof FiltersApiGetFilters + */ + readonly type?: 'deals' | 'leads' | 'org' | 'people' | 'products' | 'activity' | 'projects' +} + +/** + * Request parameters for updateFilter operation in FiltersApi. + * @export + * @interface FiltersApiUpdateFilterRequest + */ +export interface FiltersApiUpdateFilterRequest { + /** + * The ID of the filter + * @type {number} + * @memberof FiltersApiUpdateFilter + */ + readonly id: number + + /** + * + * @type {UpdateFilterRequest} + * @memberof FiltersApiUpdateFilter + */ + readonly UpdateFilterRequest?: UpdateFilterRequest +} + +/** + * FiltersApi - object-oriented interface + * @export + * @class FiltersApi + * @extends {BaseAPI} + */ +export class FiltersApi extends BaseAPI { + /** + * Adds a new filter, returns the ID upon success. Note that in the conditions JSON object only one first-level condition group is supported, and it must be glued with \'AND\', and only two second level condition groups are supported of which one must be glued with \'AND\' and the second with \'OR\'. Other combinations do not work (yet) but the syntax supports introducing them in future. For more information, see the tutorial for adding a filter. + * @summary Add a new filter + * @param {FiltersApiAddFilterRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FiltersApi + */ + public addFilter(requestParameters: FiltersApiAddFilterRequest = {}, ) { + return FiltersApiFp(this.configuration).addFilter(requestParameters.AddFilterRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a filter as deleted. + * @summary Delete a filter + * @param {FiltersApiDeleteFilterRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FiltersApi + */ + public deleteFilter(requestParameters: FiltersApiDeleteFilterRequest, ) { + return FiltersApiFp(this.configuration).deleteFilter(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks multiple filters as deleted. + * @summary Delete multiple filters in bulk + * @param {FiltersApiDeleteFiltersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FiltersApi + */ + public deleteFilters(requestParameters: FiltersApiDeleteFiltersRequest, ) { + return FiltersApiFp(this.configuration).deleteFilters(requestParameters.ids, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific filter. Note that this also returns the condition lines of the filter. + * @summary Get one filter + * @param {FiltersApiGetFilterRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FiltersApi + */ + public getFilter(requestParameters: FiltersApiGetFilterRequest, ) { + return FiltersApiFp(this.configuration).getFilter(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all supported filter helpers. It helps to know what conditions and helpers are available when you want to add or update filters. For more information, see the tutorial for adding a filter. + * @summary Get all filter helpers + + * @throws {RequiredError} + * @memberof FiltersApi + */ + public getFilterHelpers() { + return FiltersApiFp(this.configuration).getFilterHelpers().then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all filters. + * @summary Get all filters + * @param {FiltersApiGetFiltersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FiltersApi + */ + public getFilters(requestParameters: FiltersApiGetFiltersRequest = {}, ) { + return FiltersApiFp(this.configuration).getFilters(requestParameters.type, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates an existing filter. + * @summary Update filter + * @param {FiltersApiUpdateFilterRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof FiltersApi + */ + public updateFilter(requestParameters: FiltersApiUpdateFilterRequest, ) { + return FiltersApiFp(this.configuration).updateFilter(requestParameters.id, requestParameters.UpdateFilterRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/goals-api.ts b/src/versions/v1/api/goals-api.ts new file mode 100644 index 00000000..3b26d456 --- /dev/null +++ b/src/versions/v1/api/goals-api.ts @@ -0,0 +1,719 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddGoalRequest } from '../models'; +// @ts-ignore +import { BasicGoalRequest } from '../models'; +// @ts-ignore +import { DeleteGoalResponse } from '../models'; +// @ts-ignore +import { GetGoalResultResponse } from '../models'; +// @ts-ignore +import { GetGoalsResponse } from '../models'; +// @ts-ignore +import { UpsertGoalResponse } from '../models'; +/** + * GoalsApi - axios parameter creator + * @export + */ +export const GoalsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new goal. Along with adding a new goal, a report is created to track the progress of your goal. + * @summary Add a new goal + * @param {AddGoalRequest} [AddGoalRequest] + + * @throws {RequiredError} + */ + addGoal: async (AddGoalRequest?: AddGoalRequest, ): Promise => { + const localVarPath = `/goals`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["goals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddGoalRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a goal as deleted. + * @summary Delete existing goal + * @param {string} id The ID of the goal + + * @throws {RequiredError} + */ + deleteGoal: async (id: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteGoal', 'id', id) + const localVarPath = `/goals/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["goals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Gets the progress of a goal for the specified period. + * @summary Get result of a goal + * @param {string} id The ID of the goal that the results are looked for + * @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date. + * @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date. + + * @throws {RequiredError} + */ + getGoalResult: async (id: string, period_start: string, period_end: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getGoalResult', 'id', id) + // verify required parameter 'period_start' is not null or undefined + assertParamExists('getGoalResult', 'period_start', period_start) + // verify required parameter 'period_end' is not null or undefined + assertParamExists('getGoalResult', 'period_end', period_end) + const localVarPath = `/goals/{id}/results` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["goals:read", "goals:full"], configuration) + + if (period_start !== undefined) { + localVarQueryParameter['period.start'] = (period_start as any instanceof Date) ? + (period_start as any).toISOString().substr(0,10) : + period_start; + } + + if (period_end !== undefined) { + localVarQueryParameter['period.end'] = (period_end as any instanceof Date) ? + (period_end as any).toISOString().substr(0,10) : + period_end; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa. + * @summary Find goals + * @param {'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started'} [type_name] The type of the goal. If provided, everyone\'s goals will be returned. + * @param {string} [title] The title of the goal + * @param {boolean} [is_active] Whether the goal is active or not + * @param {number} [assignee_id] The ID of the user who\'s goal to fetch. When omitted, only your goals will be returned. + * @param {'person' | 'company' | 'team'} [assignee_type] The type of the goal\'s assignee. If provided, everyone\'s goals will be returned. + * @param {number} [expected_outcome_target] The numeric value of the outcome. If provided, everyone\'s goals will be returned. + * @param {'quantity' | 'sum'} [expected_outcome_tracking_metric] The tracking metric of the expected outcome of the goal. If provided, everyone\'s goals will be returned. + * @param {number} [expected_outcome_currency_id] The numeric ID of the goal\'s currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone\'s goals will be returned. + * @param {Array} [type_params_pipeline_id] An array of pipeline IDs or `null` for all pipelines. If provided, everyone\'s goals will be returned. + * @param {number} [type_params_stage_id] The ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone\'s goals will be returned. + * @param {Array} [type_params_activity_type_id] An array of IDs or `null` for all activity types. Only applicable for `activities_completed` and/or `activities_added` types of goals. If provided, everyone\'s goals will be returned. + * @param {string} [period_start] The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too. + * @param {string} [period_end] The end date of the period for which to find goals. Date in format of YYYY-MM-DD. + + * @throws {RequiredError} + */ + getGoals: async (type_name?: 'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started', title?: string, is_active?: boolean, assignee_id?: number, assignee_type?: 'person' | 'company' | 'team', expected_outcome_target?: number, expected_outcome_tracking_metric?: 'quantity' | 'sum', expected_outcome_currency_id?: number, type_params_pipeline_id?: Array, type_params_stage_id?: number, type_params_activity_type_id?: Array, period_start?: string, period_end?: string, ): Promise => { + const localVarPath = `/goals/find`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["goals:read", "goals:full"], configuration) + + if (type_name !== undefined) { + localVarQueryParameter['type.name'] = type_name; + } + + if (title !== undefined) { + localVarQueryParameter['title'] = title; + } + + if (is_active !== undefined) { + localVarQueryParameter['is_active'] = is_active; + } + + if (assignee_id !== undefined) { + localVarQueryParameter['assignee.id'] = assignee_id; + } + + if (assignee_type !== undefined) { + localVarQueryParameter['assignee.type'] = assignee_type; + } + + if (expected_outcome_target !== undefined) { + localVarQueryParameter['expected_outcome.target'] = expected_outcome_target; + } + + if (expected_outcome_tracking_metric !== undefined) { + localVarQueryParameter['expected_outcome.tracking_metric'] = expected_outcome_tracking_metric; + } + + if (expected_outcome_currency_id !== undefined) { + localVarQueryParameter['expected_outcome.currency_id'] = expected_outcome_currency_id; + } + + if (type_params_pipeline_id) { + localVarQueryParameter['type.params.pipeline_id'] = type_params_pipeline_id; + } + + if (type_params_stage_id !== undefined) { + localVarQueryParameter['type.params.stage_id'] = type_params_stage_id; + } + + if (type_params_activity_type_id) { + localVarQueryParameter['type.params.activity_type_id'] = type_params_activity_type_id; + } + + if (period_start !== undefined) { + localVarQueryParameter['period.start'] = (period_start as any instanceof Date) ? + (period_start as any).toISOString().substr(0,10) : + period_start; + } + + if (period_end !== undefined) { + localVarQueryParameter['period.end'] = (period_end as any instanceof Date) ? + (period_end as any).toISOString().substr(0,10) : + period_end; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates an existing goal. + * @summary Update existing goal + * @param {string} id The ID of the goal + * @param {BasicGoalRequest} [BasicGoalRequest] + + * @throws {RequiredError} + */ + updateGoal: async (id: string, BasicGoalRequest?: BasicGoalRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateGoal', 'id', id) + const localVarPath = `/goals/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["goals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(BasicGoalRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * GoalsApi - functional programming interface + * @export + */ +export const GoalsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = GoalsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new goal. Along with adding a new goal, a report is created to track the progress of your goal. + * @summary Add a new goal + * @param {AddGoalRequest} [AddGoalRequest] + + * @throws {RequiredError} + */ + async addGoal(AddGoalRequest?: AddGoalRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addGoal(AddGoalRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a goal as deleted. + * @summary Delete existing goal + * @param {string} id The ID of the goal + + * @throws {RequiredError} + */ + async deleteGoal(id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteGoal(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Gets the progress of a goal for the specified period. + * @summary Get result of a goal + * @param {string} id The ID of the goal that the results are looked for + * @param {string} period_start The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date. + * @param {string} period_end The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date. + + * @throws {RequiredError} + */ + async getGoalResult(id: string, period_start: string, period_end: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getGoalResult(id, period_start, period_end, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa. + * @summary Find goals + * @param {'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started'} [type_name] The type of the goal. If provided, everyone\'s goals will be returned. + * @param {string} [title] The title of the goal + * @param {boolean} [is_active] Whether the goal is active or not + * @param {number} [assignee_id] The ID of the user who\'s goal to fetch. When omitted, only your goals will be returned. + * @param {'person' | 'company' | 'team'} [assignee_type] The type of the goal\'s assignee. If provided, everyone\'s goals will be returned. + * @param {number} [expected_outcome_target] The numeric value of the outcome. If provided, everyone\'s goals will be returned. + * @param {'quantity' | 'sum'} [expected_outcome_tracking_metric] The tracking metric of the expected outcome of the goal. If provided, everyone\'s goals will be returned. + * @param {number} [expected_outcome_currency_id] The numeric ID of the goal\'s currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone\'s goals will be returned. + * @param {Array} [type_params_pipeline_id] An array of pipeline IDs or `null` for all pipelines. If provided, everyone\'s goals will be returned. + * @param {number} [type_params_stage_id] The ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone\'s goals will be returned. + * @param {Array} [type_params_activity_type_id] An array of IDs or `null` for all activity types. Only applicable for `activities_completed` and/or `activities_added` types of goals. If provided, everyone\'s goals will be returned. + * @param {string} [period_start] The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too. + * @param {string} [period_end] The end date of the period for which to find goals. Date in format of YYYY-MM-DD. + + * @throws {RequiredError} + */ + async getGoals(type_name?: 'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started', title?: string, is_active?: boolean, assignee_id?: number, assignee_type?: 'person' | 'company' | 'team', expected_outcome_target?: number, expected_outcome_tracking_metric?: 'quantity' | 'sum', expected_outcome_currency_id?: number, type_params_pipeline_id?: Array, type_params_stage_id?: number, type_params_activity_type_id?: Array, period_start?: string, period_end?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getGoals(type_name, title, is_active, assignee_id, assignee_type, expected_outcome_target, expected_outcome_tracking_metric, expected_outcome_currency_id, type_params_pipeline_id, type_params_stage_id, type_params_activity_type_id, period_start, period_end, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates an existing goal. + * @summary Update existing goal + * @param {string} id The ID of the goal + * @param {BasicGoalRequest} [BasicGoalRequest] + + * @throws {RequiredError} + */ + async updateGoal(id: string, BasicGoalRequest?: BasicGoalRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateGoal(id, BasicGoalRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * GoalsApi - factory interface + * @export + */ +export const GoalsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = GoalsApiFp(configuration) + return { + /** + * Adds a new goal. Along with adding a new goal, a report is created to track the progress of your goal. + * @summary Add a new goal + * @param {GoalsApiAddGoalRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addGoal(requestParameters: GoalsApiAddGoalRequest = {}, ): Promise { + return localVarFp.addGoal(requestParameters.AddGoalRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a goal as deleted. + * @summary Delete existing goal + * @param {GoalsApiDeleteGoalRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteGoal(requestParameters: GoalsApiDeleteGoalRequest, ): Promise { + return localVarFp.deleteGoal(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Gets the progress of a goal for the specified period. + * @summary Get result of a goal + * @param {GoalsApiGetGoalResultRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getGoalResult(requestParameters: GoalsApiGetGoalResultRequest, ): Promise { + return localVarFp.getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa. + * @summary Find goals + * @param {GoalsApiGetGoalsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getGoals(requestParameters: GoalsApiGetGoalsRequest = {}, ): Promise { + return localVarFp.getGoals(requestParameters.type_name, requestParameters.title, requestParameters.is_active, requestParameters.assignee_id, requestParameters.assignee_type, requestParameters.expected_outcome_target, requestParameters.expected_outcome_tracking_metric, requestParameters.expected_outcome_currency_id, requestParameters.type_params_pipeline_id, requestParameters.type_params_stage_id, requestParameters.type_params_activity_type_id, requestParameters.period_start, requestParameters.period_end, ).then((request) => request(axios, basePath)); + }, + /** + * Updates an existing goal. + * @summary Update existing goal + * @param {GoalsApiUpdateGoalRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateGoal(requestParameters: GoalsApiUpdateGoalRequest, ): Promise { + return localVarFp.updateGoal(requestParameters.id, requestParameters.BasicGoalRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addGoal operation in GoalsApi. + * @export + * @interface GoalsApiAddGoalRequest + */ +export interface GoalsApiAddGoalRequest { + /** + * + * @type {AddGoalRequest} + * @memberof GoalsApiAddGoal + */ + readonly AddGoalRequest?: AddGoalRequest +} + +/** + * Request parameters for deleteGoal operation in GoalsApi. + * @export + * @interface GoalsApiDeleteGoalRequest + */ +export interface GoalsApiDeleteGoalRequest { + /** + * The ID of the goal + * @type {string} + * @memberof GoalsApiDeleteGoal + */ + readonly id: string +} + +/** + * Request parameters for getGoalResult operation in GoalsApi. + * @export + * @interface GoalsApiGetGoalResultRequest + */ +export interface GoalsApiGetGoalResultRequest { + /** + * The ID of the goal that the results are looked for + * @type {string} + * @memberof GoalsApiGetGoalResult + */ + readonly id: string + + /** + * The start date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or after the goal duration start date. + * @type {string} + * @memberof GoalsApiGetGoalResult + */ + readonly period_start: string + + /** + * The end date of the period for which to find the goal\'s progress. Format: YYYY-MM-DD. This date must be the same or before the goal duration end date. + * @type {string} + * @memberof GoalsApiGetGoalResult + */ + readonly period_end: string +} + +/** + * Request parameters for getGoals operation in GoalsApi. + * @export + * @interface GoalsApiGetGoalsRequest + */ +export interface GoalsApiGetGoalsRequest { + /** + * The type of the goal. If provided, everyone\'s goals will be returned. + * @type {'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started'} + * @memberof GoalsApiGetGoals + */ + readonly type_name?: 'deals_won' | 'deals_progressed' | 'activities_completed' | 'activities_added' | 'deals_started' + + /** + * The title of the goal + * @type {string} + * @memberof GoalsApiGetGoals + */ + readonly title?: string + + /** + * Whether the goal is active or not + * @type {boolean} + * @memberof GoalsApiGetGoals + */ + readonly is_active?: boolean + + /** + * The ID of the user who\'s goal to fetch. When omitted, only your goals will be returned. + * @type {number} + * @memberof GoalsApiGetGoals + */ + readonly assignee_id?: number + + /** + * The type of the goal\'s assignee. If provided, everyone\'s goals will be returned. + * @type {'person' | 'company' | 'team'} + * @memberof GoalsApiGetGoals + */ + readonly assignee_type?: 'person' | 'company' | 'team' + + /** + * The numeric value of the outcome. If provided, everyone\'s goals will be returned. + * @type {number} + * @memberof GoalsApiGetGoals + */ + readonly expected_outcome_target?: number + + /** + * The tracking metric of the expected outcome of the goal. If provided, everyone\'s goals will be returned. + * @type {'quantity' | 'sum'} + * @memberof GoalsApiGetGoals + */ + readonly expected_outcome_tracking_metric?: 'quantity' | 'sum' + + /** + * The numeric ID of the goal\'s currency. Only applicable to goals with `expected_outcome.tracking_metric` with value `sum`. If provided, everyone\'s goals will be returned. + * @type {number} + * @memberof GoalsApiGetGoals + */ + readonly expected_outcome_currency_id?: number + + /** + * An array of pipeline IDs or `null` for all pipelines. If provided, everyone\'s goals will be returned. + * @type {Array} + * @memberof GoalsApiGetGoals + */ + readonly type_params_pipeline_id?: Array + + /** + * The ID of the stage. Applicable to only `deals_progressed` type of goals. If provided, everyone\'s goals will be returned. + * @type {number} + * @memberof GoalsApiGetGoals + */ + readonly type_params_stage_id?: number + + /** + * An array of IDs or `null` for all activity types. Only applicable for `activities_completed` and/or `activities_added` types of goals. If provided, everyone\'s goals will be returned. + * @type {Array} + * @memberof GoalsApiGetGoals + */ + readonly type_params_activity_type_id?: Array + + /** + * The start date of the period for which to find goals. Date in format of YYYY-MM-DD. When `period.start` is provided, `period.end` must be provided too. + * @type {string} + * @memberof GoalsApiGetGoals + */ + readonly period_start?: string + + /** + * The end date of the period for which to find goals. Date in format of YYYY-MM-DD. + * @type {string} + * @memberof GoalsApiGetGoals + */ + readonly period_end?: string +} + +/** + * Request parameters for updateGoal operation in GoalsApi. + * @export + * @interface GoalsApiUpdateGoalRequest + */ +export interface GoalsApiUpdateGoalRequest { + /** + * The ID of the goal + * @type {string} + * @memberof GoalsApiUpdateGoal + */ + readonly id: string + + /** + * + * @type {BasicGoalRequest} + * @memberof GoalsApiUpdateGoal + */ + readonly BasicGoalRequest?: BasicGoalRequest +} + +/** + * GoalsApi - object-oriented interface + * @export + * @class GoalsApi + * @extends {BaseAPI} + */ +export class GoalsApi extends BaseAPI { + /** + * Adds a new goal. Along with adding a new goal, a report is created to track the progress of your goal. + * @summary Add a new goal + * @param {GoalsApiAddGoalRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof GoalsApi + */ + public addGoal(requestParameters: GoalsApiAddGoalRequest = {}, ) { + return GoalsApiFp(this.configuration).addGoal(requestParameters.AddGoalRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a goal as deleted. + * @summary Delete existing goal + * @param {GoalsApiDeleteGoalRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof GoalsApi + */ + public deleteGoal(requestParameters: GoalsApiDeleteGoalRequest, ) { + return GoalsApiFp(this.configuration).deleteGoal(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Gets the progress of a goal for the specified period. + * @summary Get result of a goal + * @param {GoalsApiGetGoalResultRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof GoalsApi + */ + public getGoalResult(requestParameters: GoalsApiGetGoalResultRequest, ) { + return GoalsApiFp(this.configuration).getGoalResult(requestParameters.id, requestParameters.period_start, requestParameters.period_end, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about goals based on criteria. For searching, append `{searchField}={searchValue}` to the URL, where `searchField` can be any one of the lowest-level fields in dot-notation (e.g. `type.params.pipeline_id`; `title`). `searchValue` should be the value you are looking for on that field. Additionally, `is_active=` can be provided to search for only active/inactive goals. When providing `period.start`, `period.end` must also be provided and vice versa. + * @summary Find goals + * @param {GoalsApiGetGoalsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof GoalsApi + */ + public getGoals(requestParameters: GoalsApiGetGoalsRequest = {}, ) { + return GoalsApiFp(this.configuration).getGoals(requestParameters.type_name, requestParameters.title, requestParameters.is_active, requestParameters.assignee_id, requestParameters.assignee_type, requestParameters.expected_outcome_target, requestParameters.expected_outcome_tracking_metric, requestParameters.expected_outcome_currency_id, requestParameters.type_params_pipeline_id, requestParameters.type_params_stage_id, requestParameters.type_params_activity_type_id, requestParameters.period_start, requestParameters.period_end, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates an existing goal. + * @summary Update existing goal + * @param {GoalsApiUpdateGoalRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof GoalsApi + */ + public updateGoal(requestParameters: GoalsApiUpdateGoalRequest, ) { + return GoalsApiFp(this.configuration).updateGoal(requestParameters.id, requestParameters.BasicGoalRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/item-search-api.ts b/src/versions/v1/api/item-search-api.ts new file mode 100644 index 00000000..74fd1595 --- /dev/null +++ b/src/versions/v1/api/item-search-api.ts @@ -0,0 +1,419 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetItemSearchFieldResponse } from '../models'; +// @ts-ignore +import { GetItemSearchResponse } from '../models'; +/** + * ItemSearchApi - axios parameter creator + * @export + */ +export const ItemSearchApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all. + * @param {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<br/> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. + * @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {'deal.cc_email' | 'person.picture' | 'product.price'} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default. + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + searchItem: async (term: string, item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project', fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description', search_for_related_items?: boolean, exact_match?: boolean, include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price', start?: number, limit?: number, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchItem', 'term', term) + const localVarPath = `/itemSearch`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (item_types !== undefined) { + localVarQueryParameter['item_types'] = item_types; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (search_for_related_items !== undefined) { + localVarQueryParameter['search_for_related_items'] = search_for_related_items; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField'} field_type The type of the field to perform the search from + * @param {string} field_key The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. The search <b>is</b> case sensitive. + * @param {boolean} [return_item_ids] Whether to return the IDs of the matching items or not. When not set or set to `0` or `false`, only distinct values of the searched field are returned. When set to `1` or `true`, the ID of each found item is returned. + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + searchItemByField: async (term: string, field_type: 'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField', field_key: string, exact_match?: boolean, return_item_ids?: boolean, start?: number, limit?: number, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchItemByField', 'term', term) + // verify required parameter 'field_type' is not null or undefined + assertParamExists('searchItemByField', 'field_type', field_type) + // verify required parameter 'field_key' is not null or undefined + assertParamExists('searchItemByField', 'field_key', field_key) + const localVarPath = `/itemSearch/field`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (field_type !== undefined) { + localVarQueryParameter['field_type'] = field_type; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (field_key !== undefined) { + localVarQueryParameter['field_key'] = field_key; + } + + if (return_item_ids !== undefined) { + localVarQueryParameter['return_item_ids'] = return_item_ids; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * ItemSearchApi - functional programming interface + * @export + */ +export const ItemSearchApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ItemSearchApiAxiosParamCreator(configuration) + return { + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all. + * @param {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<br/> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. + * @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {'deal.cc_email' | 'person.picture' | 'product.price'} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default. + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async searchItem(term: string, item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project', fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description', search_for_related_items?: boolean, exact_match?: boolean, include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price', start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchItem(term, item_types, fields, search_for_related_items, exact_match, include_fields, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField'} field_type The type of the field to perform the search from + * @param {string} field_key The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. The search <b>is</b> case sensitive. + * @param {boolean} [return_item_ids] Whether to return the IDs of the matching items or not. When not set or set to `0` or `false`, only distinct values of the searched field are returned. When set to `1` or `true`, the ID of each found item is returned. + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async searchItemByField(term: string, field_type: 'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField', field_key: string, exact_match?: boolean, return_item_ids?: boolean, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchItemByField(term, field_type, field_key, exact_match, return_item_ids, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ItemSearchApi - factory interface + * @export + */ +export const ItemSearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ItemSearchApiFp(configuration) + return { + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchItem(requestParameters: ItemSearchApiSearchItemRequest, ): Promise { + return localVarFp.searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchItemByField(requestParameters: ItemSearchApiSearchItemByFieldRequest, ): Promise { + return localVarFp.searchItemByField(requestParameters.term, requestParameters.field_type, requestParameters.field_key, requestParameters.exact_match, requestParameters.return_item_ids, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for searchItem operation in ItemSearchApi. + * @export + * @interface ItemSearchApiSearchItemRequest + */ +export interface ItemSearchApiSearchItemRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof ItemSearchApiSearchItem + */ + readonly term: string + + /** + * A comma-separated string array. The type of items to perform the search from. Defaults to all. + * @type {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} + * @memberof ItemSearchApiSearchItem + */ + readonly item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project' + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<br/> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. + * @type {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description'} + * @memberof ItemSearchApiSearchItem + */ + readonly fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description' + + /** + * When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization + * @type {boolean} + * @memberof ItemSearchApiSearchItem + */ + readonly search_for_related_items?: boolean + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof ItemSearchApiSearchItem + */ + readonly exact_match?: boolean + + /** + * A comma-separated string array. Supports including optional fields in the results which are not provided by default. + * @type {'deal.cc_email' | 'person.picture' | 'product.price'} + * @memberof ItemSearchApiSearchItem + */ + readonly include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price' + + /** + * Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @type {number} + * @memberof ItemSearchApiSearchItem + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof ItemSearchApiSearchItem + */ + readonly limit?: number +} + +/** + * Request parameters for searchItemByField operation in ItemSearchApi. + * @export + * @interface ItemSearchApiSearchItemByFieldRequest + */ +export interface ItemSearchApiSearchItemByFieldRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof ItemSearchApiSearchItemByField + */ + readonly term: string + + /** + * The type of the field to perform the search from + * @type {'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField'} + * @memberof ItemSearchApiSearchItemByField + */ + readonly field_type: 'dealField' | 'leadField' | 'personField' | 'organizationField' | 'productField' | 'projectField' + + /** + * The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {string} + * @memberof ItemSearchApiSearchItemByField + */ + readonly field_key: string + + /** + * When enabled, only full exact matches against the given term are returned. The search <b>is</b> case sensitive. + * @type {boolean} + * @memberof ItemSearchApiSearchItemByField + */ + readonly exact_match?: boolean + + /** + * Whether to return the IDs of the matching items or not. When not set or set to `0` or `false`, only distinct values of the searched field are returned. When set to `1` or `true`, the ID of each found item is returned. + * @type {boolean} + * @memberof ItemSearchApiSearchItemByField + */ + readonly return_item_ids?: boolean + + /** + * Pagination start + * @type {number} + * @memberof ItemSearchApiSearchItemByField + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof ItemSearchApiSearchItemByField + */ + readonly limit?: number +} + +/** + * ItemSearchApi - object-oriented interface + * @export + * @class ItemSearchApi + * @extends {BaseAPI} + */ +export class ItemSearchApi extends BaseAPI { + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ItemSearchApi + */ + public searchItem(requestParameters: ItemSearchApiSearchItemRequest, ) { + return ItemSearchApiFp(this.configuration).searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ItemSearchApi + */ + public searchItemByField(requestParameters: ItemSearchApiSearchItemByFieldRequest, ) { + return ItemSearchApiFp(this.configuration).searchItemByField(requestParameters.term, requestParameters.field_type, requestParameters.field_key, requestParameters.exact_match, requestParameters.return_item_ids, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/lead-labels-api.ts b/src/versions/v1/api/lead-labels-api.ts new file mode 100644 index 00000000..733cd380 --- /dev/null +++ b/src/versions/v1/api/lead-labels-api.ts @@ -0,0 +1,415 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddLeadLabelRequest } from '../models'; +// @ts-ignore +import { DeleteLeadIdResponse } from '../models'; +// @ts-ignore +import { GetLeadLabelsResponse } from '../models'; +// @ts-ignore +import { LeadNotFoundResponse } from '../models'; +// @ts-ignore +import { UpdateLeadLabelRequest } from '../models'; +// @ts-ignore +import { UpsertLeadLabelResponse } from '../models'; +/** + * LeadLabelsApi - axios parameter creator + * @export + */ +export const LeadLabelsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Creates a lead label. + * @summary Add a lead label + * @param {AddLeadLabelRequest} [AddLeadLabelRequest] + + * @throws {RequiredError} + */ + addLeadLabel: async (AddLeadLabelRequest?: AddLeadLabelRequest, ): Promise => { + const localVarPath = `/leadLabels`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddLeadLabelRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a specific lead label. + * @summary Delete a lead label + * @param {string} id The ID of the lead label + + * @throws {RequiredError} + */ + deleteLeadLabel: async (id: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteLeadLabel', 'id', id) + const localVarPath = `/leadLabels/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns details of all lead labels. This endpoint does not support pagination and all labels are always returned. + * @summary Get all lead labels + + * @throws {RequiredError} + */ + getLeadLabels: async (): Promise => { + const localVarPath = `/leadLabels`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates one or more properties of a lead label. Only properties included in the request will be updated. + * @summary Update a lead label + * @param {string} id The ID of the lead label + * @param {UpdateLeadLabelRequest} [UpdateLeadLabelRequest] + + * @throws {RequiredError} + */ + updateLeadLabel: async (id: string, UpdateLeadLabelRequest?: UpdateLeadLabelRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateLeadLabel', 'id', id) + const localVarPath = `/leadLabels/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateLeadLabelRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * LeadLabelsApi - functional programming interface + * @export + */ +export const LeadLabelsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = LeadLabelsApiAxiosParamCreator(configuration) + return { + /** + * Creates a lead label. + * @summary Add a lead label + * @param {AddLeadLabelRequest} [AddLeadLabelRequest] + + * @throws {RequiredError} + */ + async addLeadLabel(AddLeadLabelRequest?: AddLeadLabelRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addLeadLabel(AddLeadLabelRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a specific lead label. + * @summary Delete a lead label + * @param {string} id The ID of the lead label + + * @throws {RequiredError} + */ + async deleteLeadLabel(id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLeadLabel(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns details of all lead labels. This endpoint does not support pagination and all labels are always returned. + * @summary Get all lead labels + + * @throws {RequiredError} + */ + async getLeadLabels(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLeadLabels(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates one or more properties of a lead label. Only properties included in the request will be updated. + * @summary Update a lead label + * @param {string} id The ID of the lead label + * @param {UpdateLeadLabelRequest} [UpdateLeadLabelRequest] + + * @throws {RequiredError} + */ + async updateLeadLabel(id: string, UpdateLeadLabelRequest?: UpdateLeadLabelRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateLeadLabel(id, UpdateLeadLabelRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * LeadLabelsApi - factory interface + * @export + */ +export const LeadLabelsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = LeadLabelsApiFp(configuration) + return { + /** + * Creates a lead label. + * @summary Add a lead label + * @param {LeadLabelsApiAddLeadLabelRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addLeadLabel(requestParameters: LeadLabelsApiAddLeadLabelRequest = {}, ): Promise { + return localVarFp.addLeadLabel(requestParameters.AddLeadLabelRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a specific lead label. + * @summary Delete a lead label + * @param {LeadLabelsApiDeleteLeadLabelRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteLeadLabel(requestParameters: LeadLabelsApiDeleteLeadLabelRequest, ): Promise { + return localVarFp.deleteLeadLabel(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns details of all lead labels. This endpoint does not support pagination and all labels are always returned. + * @summary Get all lead labels + + * @throws {RequiredError} + */ + getLeadLabels(): Promise { + return localVarFp.getLeadLabels().then((request) => request(axios, basePath)); + }, + /** + * Updates one or more properties of a lead label. Only properties included in the request will be updated. + * @summary Update a lead label + * @param {LeadLabelsApiUpdateLeadLabelRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateLeadLabel(requestParameters: LeadLabelsApiUpdateLeadLabelRequest, ): Promise { + return localVarFp.updateLeadLabel(requestParameters.id, requestParameters.UpdateLeadLabelRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addLeadLabel operation in LeadLabelsApi. + * @export + * @interface LeadLabelsApiAddLeadLabelRequest + */ +export interface LeadLabelsApiAddLeadLabelRequest { + /** + * + * @type {AddLeadLabelRequest} + * @memberof LeadLabelsApiAddLeadLabel + */ + readonly AddLeadLabelRequest?: AddLeadLabelRequest +} + +/** + * Request parameters for deleteLeadLabel operation in LeadLabelsApi. + * @export + * @interface LeadLabelsApiDeleteLeadLabelRequest + */ +export interface LeadLabelsApiDeleteLeadLabelRequest { + /** + * The ID of the lead label + * @type {string} + * @memberof LeadLabelsApiDeleteLeadLabel + */ + readonly id: string +} + +/** + * Request parameters for updateLeadLabel operation in LeadLabelsApi. + * @export + * @interface LeadLabelsApiUpdateLeadLabelRequest + */ +export interface LeadLabelsApiUpdateLeadLabelRequest { + /** + * The ID of the lead label + * @type {string} + * @memberof LeadLabelsApiUpdateLeadLabel + */ + readonly id: string + + /** + * + * @type {UpdateLeadLabelRequest} + * @memberof LeadLabelsApiUpdateLeadLabel + */ + readonly UpdateLeadLabelRequest?: UpdateLeadLabelRequest +} + +/** + * LeadLabelsApi - object-oriented interface + * @export + * @class LeadLabelsApi + * @extends {BaseAPI} + */ +export class LeadLabelsApi extends BaseAPI { + /** + * Creates a lead label. + * @summary Add a lead label + * @param {LeadLabelsApiAddLeadLabelRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof LeadLabelsApi + */ + public addLeadLabel(requestParameters: LeadLabelsApiAddLeadLabelRequest = {}, ) { + return LeadLabelsApiFp(this.configuration).addLeadLabel(requestParameters.AddLeadLabelRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a specific lead label. + * @summary Delete a lead label + * @param {LeadLabelsApiDeleteLeadLabelRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof LeadLabelsApi + */ + public deleteLeadLabel(requestParameters: LeadLabelsApiDeleteLeadLabelRequest, ) { + return LeadLabelsApiFp(this.configuration).deleteLeadLabel(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns details of all lead labels. This endpoint does not support pagination and all labels are always returned. + * @summary Get all lead labels + + * @throws {RequiredError} + * @memberof LeadLabelsApi + */ + public getLeadLabels() { + return LeadLabelsApiFp(this.configuration).getLeadLabels().then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates one or more properties of a lead label. Only properties included in the request will be updated. + * @summary Update a lead label + * @param {LeadLabelsApiUpdateLeadLabelRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof LeadLabelsApi + */ + public updateLeadLabel(requestParameters: LeadLabelsApiUpdateLeadLabelRequest, ) { + return LeadLabelsApiFp(this.configuration).updateLeadLabel(requestParameters.id, requestParameters.UpdateLeadLabelRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/lead-sources-api.ts b/src/versions/v1/api/lead-sources-api.ts new file mode 100644 index 00000000..fd1019be --- /dev/null +++ b/src/versions/v1/api/lead-sources-api.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetLeadsSourceResponse } from '../models'; +/** + * LeadSourcesApi - axios parameter creator + * @export + */ +export const LeadSourcesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Returns all lead sources. Please note that the list of lead sources is fixed, it cannot be modified. All leads created through the Pipedrive API will have a lead source `API` assigned. + * @summary Get all lead sources + + * @throws {RequiredError} + */ + getLeadSources: async (): Promise => { + const localVarPath = `/leadSources`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * LeadSourcesApi - functional programming interface + * @export + */ +export const LeadSourcesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = LeadSourcesApiAxiosParamCreator(configuration) + return { + /** + * Returns all lead sources. Please note that the list of lead sources is fixed, it cannot be modified. All leads created through the Pipedrive API will have a lead source `API` assigned. + * @summary Get all lead sources + + * @throws {RequiredError} + */ + async getLeadSources(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLeadSources(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * LeadSourcesApi - factory interface + * @export + */ +export const LeadSourcesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = LeadSourcesApiFp(configuration) + return { + /** + * Returns all lead sources. Please note that the list of lead sources is fixed, it cannot be modified. All leads created through the Pipedrive API will have a lead source `API` assigned. + * @summary Get all lead sources + + * @throws {RequiredError} + */ + getLeadSources(): Promise { + return localVarFp.getLeadSources().then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * LeadSourcesApi - object-oriented interface + * @export + * @class LeadSourcesApi + * @extends {BaseAPI} + */ +export class LeadSourcesApi extends BaseAPI { + /** + * Returns all lead sources. Please note that the list of lead sources is fixed, it cannot be modified. All leads created through the Pipedrive API will have a lead source `API` assigned. + * @summary Get all lead sources + + * @throws {RequiredError} + * @memberof LeadSourcesApi + */ + public getLeadSources() { + return LeadSourcesApiFp(this.configuration).getLeadSources().then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/leads-api.ts b/src/versions/v1/api/leads-api.ts new file mode 100644 index 00000000..a5430ec9 --- /dev/null +++ b/src/versions/v1/api/leads-api.ts @@ -0,0 +1,890 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddLeadRequest } from '../models'; +// @ts-ignore +import { GetLeadIdResponse } from '../models'; +// @ts-ignore +import { GetLeadResponse } from '../models'; +// @ts-ignore +import { GetLeadSearchResponse } from '../models'; +// @ts-ignore +import { GetLeadsResponse } from '../models'; +// @ts-ignore +import { LeadNotFoundResponse } from '../models'; +// @ts-ignore +import { UpdateLeadRequest } from '../models'; +// @ts-ignore +import { UserIds } from '../models'; +/** + * LeadsApi - axios parameter creator + * @export + */ +export const LeadsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Creates a lead. A lead always has to be linked to a person or an organization or both. All leads created through the Pipedrive API will have a lead source and origin set to `API`. Here\'s the tutorial for adding a lead. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals. See an example given in the updating custom fields\' values tutorial. + * @summary Add a lead + * @param {AddLeadRequest} [AddLeadRequest] + + * @throws {RequiredError} + */ + addLead: async (AddLeadRequest?: AddLeadRequest, ): Promise => { + const localVarPath = `/leads`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddLeadRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a specific lead. + * @summary Delete a lead + * @param {string} id The ID of the lead + + * @throws {RequiredError} + */ + deleteLead: async (id: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteLead', 'id', id) + const localVarPath = `/leads/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns details of a specific lead. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. + * @summary Get one lead + * @param {string} id The ID of the lead + + * @throws {RequiredError} + */ + getLead: async (id: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getLead', 'id', id) + const localVarPath = `/leads/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists the users permitted to access a lead. + * @summary List permitted users + * @param {string} id The ID of the lead + + * @throws {RequiredError} + */ + getLeadUsers: async (id: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getLeadUsers', 'id', id) + const localVarPath = `/leads/{id}/permittedUsers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns multiple leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals. + * @summary Get all leads + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. + * @param {number} [start] For pagination, the position that represents the first result for the page + * @param {'archived' | 'not_archived' | 'all'} [archived_status] Filtering based on the archived status of a lead. If not provided, `All` is used. + * @param {number} [owner_id] If supplied, only leads matching the given user will be returned. However, `filter_id` takes precedence over `owner_id` when supplied. + * @param {number} [person_id] If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied. + * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied. + * @param {number} [filter_id] The ID of the filter to use + * @param {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'} [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). + + * @throws {RequiredError} + */ + getLeads: async (limit?: number, start?: number, archived_status?: 'archived' | 'not_archived' | 'all', owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time', ): Promise => { + const localVarPath = `/leads`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full"], configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (archived_status !== undefined) { + localVarQueryParameter['archived_status'] = archived_status; + } + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (person_id !== undefined) { + localVarQueryParameter['person_id'] = person_id; + } + + if (organization_id !== undefined) { + localVarQueryParameter['organization_id'] = organization_id; + } + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. + * @param {number} [organization_id] Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. + * @param {'lead.was_seen'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + searchLeads: async (term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: 'lead.was_seen', start?: number, limit?: number, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchLeads', 'term', term) + const localVarPath = `/leads/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (person_id !== undefined) { + localVarQueryParameter['person_id'] = person_id; + } + + if (organization_id !== undefined) { + localVarQueryParameter['organization_id'] = organization_id; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates one or more properties of a lead. Only properties included in the request will be updated. Send `null` to unset a property (applicable for example for `value`, `person_id` or `organization_id`). If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. See an example given in the updating custom fields’ values tutorial. + * @summary Update a lead + * @param {string} id The ID of the lead + * @param {UpdateLeadRequest} [UpdateLeadRequest] + + * @throws {RequiredError} + */ + updateLead: async (id: string, UpdateLeadRequest?: UpdateLeadRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateLead', 'id', id) + const localVarPath = `/leads/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateLeadRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * LeadsApi - functional programming interface + * @export + */ +export const LeadsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = LeadsApiAxiosParamCreator(configuration) + return { + /** + * Creates a lead. A lead always has to be linked to a person or an organization or both. All leads created through the Pipedrive API will have a lead source and origin set to `API`. Here\'s the tutorial for adding a lead. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals. See an example given in the updating custom fields\' values tutorial. + * @summary Add a lead + * @param {AddLeadRequest} [AddLeadRequest] + + * @throws {RequiredError} + */ + async addLead(AddLeadRequest?: AddLeadRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addLead(AddLeadRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a specific lead. + * @summary Delete a lead + * @param {string} id The ID of the lead + + * @throws {RequiredError} + */ + async deleteLead(id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteLead(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns details of a specific lead. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. + * @summary Get one lead + * @param {string} id The ID of the lead + + * @throws {RequiredError} + */ + async getLead(id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists the users permitted to access a lead. + * @summary List permitted users + * @param {string} id The ID of the lead + + * @throws {RequiredError} + */ + async getLeadUsers(id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLeadUsers(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns multiple leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals. + * @summary Get all leads + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. + * @param {number} [start] For pagination, the position that represents the first result for the page + * @param {'archived' | 'not_archived' | 'all'} [archived_status] Filtering based on the archived status of a lead. If not provided, `All` is used. + * @param {number} [owner_id] If supplied, only leads matching the given user will be returned. However, `filter_id` takes precedence over `owner_id` when supplied. + * @param {number} [person_id] If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied. + * @param {number} [organization_id] If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied. + * @param {number} [filter_id] The ID of the filter to use + * @param {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'} [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). + + * @throws {RequiredError} + */ + async getLeads(limit?: number, start?: number, archived_status?: 'archived' | 'not_archived' | 'all', owner_id?: number, person_id?: number, organization_id?: number, filter_id?: number, sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getLeads(limit, start, archived_status, owner_id, person_id, organization_id, filter_id, sort, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. + * @param {number} [organization_id] Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. + * @param {'lead.was_seen'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async searchLeads(term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: 'lead.was_seen', start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchLeads(term, fields, exact_match, person_id, organization_id, include_fields, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates one or more properties of a lead. Only properties included in the request will be updated. Send `null` to unset a property (applicable for example for `value`, `person_id` or `organization_id`). If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. See an example given in the updating custom fields’ values tutorial. + * @summary Update a lead + * @param {string} id The ID of the lead + * @param {UpdateLeadRequest} [UpdateLeadRequest] + + * @throws {RequiredError} + */ + async updateLead(id: string, UpdateLeadRequest?: UpdateLeadRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(id, UpdateLeadRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * LeadsApi - factory interface + * @export + */ +export const LeadsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = LeadsApiFp(configuration) + return { + /** + * Creates a lead. A lead always has to be linked to a person or an organization or both. All leads created through the Pipedrive API will have a lead source and origin set to `API`. Here\'s the tutorial for adding a lead. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals. See an example given in the updating custom fields\' values tutorial. + * @summary Add a lead + * @param {LeadsApiAddLeadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addLead(requestParameters: LeadsApiAddLeadRequest = {}, ): Promise { + return localVarFp.addLead(requestParameters.AddLeadRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a specific lead. + * @summary Delete a lead + * @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteLead(requestParameters: LeadsApiDeleteLeadRequest, ): Promise { + return localVarFp.deleteLead(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns details of a specific lead. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. + * @summary Get one lead + * @param {LeadsApiGetLeadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getLead(requestParameters: LeadsApiGetLeadRequest, ): Promise { + return localVarFp.getLead(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists the users permitted to access a lead. + * @summary List permitted users + * @param {LeadsApiGetLeadUsersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getLeadUsers(requestParameters: LeadsApiGetLeadUsersRequest, ): Promise { + return localVarFp.getLeadUsers(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns multiple leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals. + * @summary Get all leads + * @param {LeadsApiGetLeadsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getLeads(requestParameters: LeadsApiGetLeadsRequest = {}, ): Promise { + return localVarFp.getLeads(requestParameters.limit, requestParameters.start, requestParameters.archived_status, requestParameters.owner_id, requestParameters.person_id, requestParameters.organization_id, requestParameters.filter_id, requestParameters.sort, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {LeadsApiSearchLeadsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchLeads(requestParameters: LeadsApiSearchLeadsRequest, ): Promise { + return localVarFp.searchLeads(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates one or more properties of a lead. Only properties included in the request will be updated. Send `null` to unset a property (applicable for example for `value`, `person_id` or `organization_id`). If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. See an example given in the updating custom fields’ values tutorial. + * @summary Update a lead + * @param {LeadsApiUpdateLeadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateLead(requestParameters: LeadsApiUpdateLeadRequest, ): Promise { + return localVarFp.updateLead(requestParameters.id, requestParameters.UpdateLeadRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addLead operation in LeadsApi. + * @export + * @interface LeadsApiAddLeadRequest + */ +export interface LeadsApiAddLeadRequest { + /** + * + * @type {AddLeadRequest} + * @memberof LeadsApiAddLead + */ + readonly AddLeadRequest?: AddLeadRequest +} + +/** + * Request parameters for deleteLead operation in LeadsApi. + * @export + * @interface LeadsApiDeleteLeadRequest + */ +export interface LeadsApiDeleteLeadRequest { + /** + * The ID of the lead + * @type {string} + * @memberof LeadsApiDeleteLead + */ + readonly id: string +} + +/** + * Request parameters for getLead operation in LeadsApi. + * @export + * @interface LeadsApiGetLeadRequest + */ +export interface LeadsApiGetLeadRequest { + /** + * The ID of the lead + * @type {string} + * @memberof LeadsApiGetLead + */ + readonly id: string +} + +/** + * Request parameters for getLeadUsers operation in LeadsApi. + * @export + * @interface LeadsApiGetLeadUsersRequest + */ +export interface LeadsApiGetLeadUsersRequest { + /** + * The ID of the lead + * @type {string} + * @memberof LeadsApiGetLeadUsers + */ + readonly id: string +} + +/** + * Request parameters for getLeads operation in LeadsApi. + * @export + * @interface LeadsApiGetLeadsRequest + */ +export interface LeadsApiGetLeadsRequest { + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. + * @type {number} + * @memberof LeadsApiGetLeads + */ + readonly limit?: number + + /** + * For pagination, the position that represents the first result for the page + * @type {number} + * @memberof LeadsApiGetLeads + */ + readonly start?: number + + /** + * Filtering based on the archived status of a lead. If not provided, `All` is used. + * @type {'archived' | 'not_archived' | 'all'} + * @memberof LeadsApiGetLeads + */ + readonly archived_status?: 'archived' | 'not_archived' | 'all' + + /** + * If supplied, only leads matching the given user will be returned. However, `filter_id` takes precedence over `owner_id` when supplied. + * @type {number} + * @memberof LeadsApiGetLeads + */ + readonly owner_id?: number + + /** + * If supplied, only leads matching the given person will be returned. However, `filter_id` takes precedence over `person_id` when supplied. + * @type {number} + * @memberof LeadsApiGetLeads + */ + readonly person_id?: number + + /** + * If supplied, only leads matching the given organization will be returned. However, `filter_id` takes precedence over `organization_id` when supplied. + * @type {number} + * @memberof LeadsApiGetLeads + */ + readonly organization_id?: number + + /** + * The ID of the filter to use + * @type {number} + * @memberof LeadsApiGetLeads + */ + readonly filter_id?: number + + /** + * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + * @type {'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time'} + * @memberof LeadsApiGetLeads + */ + readonly sort?: 'id' | 'title' | 'owner_id' | 'creator_id' | 'was_seen' | 'expected_close_date' | 'next_activity_id' | 'add_time' | 'update_time' +} + +/** + * Request parameters for searchLeads operation in LeadsApi. + * @export + * @interface LeadsApiSearchLeadsRequest + */ +export interface LeadsApiSearchLeadsRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof LeadsApiSearchLeads + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. + * @type {'custom_fields' | 'notes' | 'title'} + * @memberof LeadsApiSearchLeads + */ + readonly fields?: 'custom_fields' | 'notes' | 'title' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof LeadsApiSearchLeads + */ + readonly exact_match?: boolean + + /** + * Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. + * @type {number} + * @memberof LeadsApiSearchLeads + */ + readonly person_id?: number + + /** + * Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. + * @type {number} + * @memberof LeadsApiSearchLeads + */ + readonly organization_id?: number + + /** + * Supports including optional fields in the results which are not provided by default + * @type {'lead.was_seen'} + * @memberof LeadsApiSearchLeads + */ + readonly include_fields?: 'lead.was_seen' + + /** + * Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @type {number} + * @memberof LeadsApiSearchLeads + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof LeadsApiSearchLeads + */ + readonly limit?: number +} + +/** + * Request parameters for updateLead operation in LeadsApi. + * @export + * @interface LeadsApiUpdateLeadRequest + */ +export interface LeadsApiUpdateLeadRequest { + /** + * The ID of the lead + * @type {string} + * @memberof LeadsApiUpdateLead + */ + readonly id: string + + /** + * + * @type {UpdateLeadRequest} + * @memberof LeadsApiUpdateLead + */ + readonly UpdateLeadRequest?: UpdateLeadRequest +} + +/** + * LeadsApi - object-oriented interface + * @export + * @class LeadsApi + * @extends {BaseAPI} + */ +export class LeadsApi extends BaseAPI { + /** + * Creates a lead. A lead always has to be linked to a person or an organization or both. All leads created through the Pipedrive API will have a lead source and origin set to `API`. Here\'s the tutorial for adding a lead. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals. See an example given in the updating custom fields\' values tutorial. + * @summary Add a lead + * @param {LeadsApiAddLeadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof LeadsApi + */ + public addLead(requestParameters: LeadsApiAddLeadRequest = {}, ) { + return LeadsApiFp(this.configuration).addLead(requestParameters.AddLeadRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a specific lead. + * @summary Delete a lead + * @param {LeadsApiDeleteLeadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof LeadsApi + */ + public deleteLead(requestParameters: LeadsApiDeleteLeadRequest, ) { + return LeadsApiFp(this.configuration).deleteLead(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns details of a specific lead. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. + * @summary Get one lead + * @param {LeadsApiGetLeadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof LeadsApi + */ + public getLead(requestParameters: LeadsApiGetLeadRequest, ) { + return LeadsApiFp(this.configuration).getLead(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists the users permitted to access a lead. + * @summary List permitted users + * @param {LeadsApiGetLeadUsersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof LeadsApi + */ + public getLeadUsers(requestParameters: LeadsApiGetLeadUsersRequest, ) { + return LeadsApiFp(this.configuration).getLeadUsers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns multiple leads. Leads are sorted by the time they were created, from oldest to newest. Pagination can be controlled using `limit` and `start` query parameters. If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields\' structure from deals. + * @summary Get all leads + * @param {LeadsApiGetLeadsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof LeadsApi + */ + public getLeads(requestParameters: LeadsApiGetLeadsRequest = {}, ) { + return LeadsApiFp(this.configuration).getLeads(requestParameters.limit, requestParameters.start, requestParameters.archived_status, requestParameters.owner_id, requestParameters.person_id, requestParameters.organization_id, requestParameters.filter_id, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {LeadsApiSearchLeadsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof LeadsApi + */ + public searchLeads(requestParameters: LeadsApiSearchLeadsRequest, ) { + return LeadsApiFp(this.configuration).searchLeads(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates one or more properties of a lead. Only properties included in the request will be updated. Send `null` to unset a property (applicable for example for `value`, `person_id` or `organization_id`). If a lead contains custom fields, the fields\' values will be included in the response in the same format as with the `Deals` endpoints. If a custom field\'s value hasn\'t been set for the lead, it won\'t appear in the response. Please note that leads do not have a separate set of custom fields, instead they inherit the custom fields’ structure from deals. See an example given in the updating custom fields’ values tutorial. + * @summary Update a lead + * @param {LeadsApiUpdateLeadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof LeadsApi + */ + public updateLead(requestParameters: LeadsApiUpdateLeadRequest, ) { + return LeadsApiFp(this.configuration).updateLead(requestParameters.id, requestParameters.UpdateLeadRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/legacy-teams-api.ts b/src/versions/v1/api/legacy-teams-api.ts new file mode 100644 index 00000000..c6590feb --- /dev/null +++ b/src/versions/v1/api/legacy-teams-api.ts @@ -0,0 +1,869 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddTeamRequest1 } from '../models'; +// @ts-ignore +import { AddTeamUserRequest } from '../models'; +// @ts-ignore +import { DeleteTeamUserRequest } from '../models'; +// @ts-ignore +import { FailResponse } from '../models'; +// @ts-ignore +import { GetTeamResponse } from '../models'; +// @ts-ignore +import { GetTeamsResponse } from '../models'; +// @ts-ignore +import { UpdateTeamRequest } from '../models'; +// @ts-ignore +import { UserIds } from '../models'; +/** + * LegacyTeamsApi - axios parameter creator + * @export + */ +export const LegacyTeamsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new team to the company and returns the created object. + * @summary Add a new team + * @param {AddTeamRequest1} [AddTeamRequest1] + * @deprecated + * @throws {RequiredError} + */ + addTeam: async (AddTeamRequest1?: AddTeamRequest1, ): Promise => { + const localVarPath = `/legacyTeams`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddTeamRequest1, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds users to an existing team. + * @summary Add users to a team + * @param {number} id The ID of the team + * @param {AddTeamUserRequest} [AddTeamUserRequest] + * @deprecated + * @throws {RequiredError} + */ + addTeamUser: async (id: number, AddTeamUserRequest?: AddTeamUserRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addTeamUser', 'id', id) + const localVarPath = `/legacyTeams/{id}/users` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddTeamUserRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes users from an existing team. + * @summary Delete users from a team + * @param {number} id The ID of the team + * @param {DeleteTeamUserRequest} [DeleteTeamUserRequest] + * @deprecated + * @throws {RequiredError} + */ + deleteTeamUser: async (id: number, DeleteTeamUserRequest?: DeleteTeamUserRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteTeamUser', 'id', id) + const localVarPath = `/legacyTeams/{id}/users` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(DeleteTeamUserRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific team. + * @summary Get a single team + * @param {number} id The ID of the team + * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users + * @deprecated + * @throws {RequiredError} + */ + getTeam: async (id: number, skip_users?: 0 | 1, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getTeam', 'id', id) + const localVarPath = `/legacyTeams/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + if (skip_users !== undefined) { + localVarQueryParameter['skip_users'] = skip_users; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns a list of all user IDs within a team. + * @summary Get all users in a team + * @param {number} id The ID of the team + * @deprecated + * @throws {RequiredError} + */ + getTeamUsers: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getTeamUsers', 'id', id) + const localVarPath = `/legacyTeams/{id}/users` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about teams within the company. + * @summary Get all teams + * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by + * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users + * @deprecated + * @throws {RequiredError} + */ + getTeams: async (order_by?: 'id' | 'name' | 'manager_id' | 'active_flag', skip_users?: 0 | 1, ): Promise => { + const localVarPath = `/legacyTeams`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + if (order_by !== undefined) { + localVarQueryParameter['order_by'] = order_by; + } + + if (skip_users !== undefined) { + localVarQueryParameter['skip_users'] = skip_users; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all teams which have the specified user as a member. + * @summary Get all teams of a user + * @param {number} id The ID of the user + * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by + * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users + * @deprecated + * @throws {RequiredError} + */ + getUserTeams: async (id: number, order_by?: 'id' | 'name' | 'manager_id' | 'active_flag', skip_users?: 0 | 1, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getUserTeams', 'id', id) + const localVarPath = `/legacyTeams/user/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + if (order_by !== undefined) { + localVarQueryParameter['order_by'] = order_by; + } + + if (skip_users !== undefined) { + localVarQueryParameter['skip_users'] = skip_users; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates an existing team and returns the updated object. + * @summary Update a team + * @param {number} id The ID of the team + * @param {UpdateTeamRequest} [UpdateTeamRequest] + * @deprecated + * @throws {RequiredError} + */ + updateTeam: async (id: number, UpdateTeamRequest?: UpdateTeamRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateTeam', 'id', id) + const localVarPath = `/legacyTeams/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateTeamRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * LegacyTeamsApi - functional programming interface + * @export + */ +export const LegacyTeamsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = LegacyTeamsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new team to the company and returns the created object. + * @summary Add a new team + * @param {AddTeamRequest1} [AddTeamRequest1] + * @deprecated + * @throws {RequiredError} + */ + async addTeam(AddTeamRequest1?: AddTeamRequest1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addTeam(AddTeamRequest1, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds users to an existing team. + * @summary Add users to a team + * @param {number} id The ID of the team + * @param {AddTeamUserRequest} [AddTeamUserRequest] + * @deprecated + * @throws {RequiredError} + */ + async addTeamUser(id: number, AddTeamUserRequest?: AddTeamUserRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addTeamUser(id, AddTeamUserRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes users from an existing team. + * @summary Delete users from a team + * @param {number} id The ID of the team + * @param {DeleteTeamUserRequest} [DeleteTeamUserRequest] + * @deprecated + * @throws {RequiredError} + */ + async deleteTeamUser(id: number, DeleteTeamUserRequest?: DeleteTeamUserRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTeamUser(id, DeleteTeamUserRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific team. + * @summary Get a single team + * @param {number} id The ID of the team + * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users + * @deprecated + * @throws {RequiredError} + */ + async getTeam(id: number, skip_users?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTeam(id, skip_users, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns a list of all user IDs within a team. + * @summary Get all users in a team + * @param {number} id The ID of the team + * @deprecated + * @throws {RequiredError} + */ + async getTeamUsers(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTeamUsers(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about teams within the company. + * @summary Get all teams + * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by + * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users + * @deprecated + * @throws {RequiredError} + */ + async getTeams(order_by?: 'id' | 'name' | 'manager_id' | 'active_flag', skip_users?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTeams(order_by, skip_users, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all teams which have the specified user as a member. + * @summary Get all teams of a user + * @param {number} id The ID of the user + * @param {'id' | 'name' | 'manager_id' | 'active_flag'} [order_by] The field name to sort returned teams by + * @param {0 | 1} [skip_users] When enabled, the teams will not include IDs of member users + * @deprecated + * @throws {RequiredError} + */ + async getUserTeams(id: number, order_by?: 'id' | 'name' | 'manager_id' | 'active_flag', skip_users?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserTeams(id, order_by, skip_users, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates an existing team and returns the updated object. + * @summary Update a team + * @param {number} id The ID of the team + * @param {UpdateTeamRequest} [UpdateTeamRequest] + * @deprecated + * @throws {RequiredError} + */ + async updateTeam(id: number, UpdateTeamRequest?: UpdateTeamRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateTeam(id, UpdateTeamRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * LegacyTeamsApi - factory interface + * @export + */ +export const LegacyTeamsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = LegacyTeamsApiFp(configuration) + return { + /** + * Adds a new team to the company and returns the created object. + * @summary Add a new team + * @param {LegacyTeamsApiAddTeamRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + */ + addTeam(requestParameters: LegacyTeamsApiAddTeamRequest = {}, ): Promise { + return localVarFp.addTeam(requestParameters.AddTeamRequest1, ).then((request) => request(axios, basePath)); + }, + /** + * Adds users to an existing team. + * @summary Add users to a team + * @param {LegacyTeamsApiAddTeamUserRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + */ + addTeamUser(requestParameters: LegacyTeamsApiAddTeamUserRequest, ): Promise { + return localVarFp.addTeamUser(requestParameters.id, requestParameters.AddTeamUserRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes users from an existing team. + * @summary Delete users from a team + * @param {LegacyTeamsApiDeleteTeamUserRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + */ + deleteTeamUser(requestParameters: LegacyTeamsApiDeleteTeamUserRequest, ): Promise { + return localVarFp.deleteTeamUser(requestParameters.id, requestParameters.DeleteTeamUserRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific team. + * @summary Get a single team + * @param {LegacyTeamsApiGetTeamRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + */ + getTeam(requestParameters: LegacyTeamsApiGetTeamRequest, ): Promise { + return localVarFp.getTeam(requestParameters.id, requestParameters.skip_users, ).then((request) => request(axios, basePath)); + }, + /** + * Returns a list of all user IDs within a team. + * @summary Get all users in a team + * @param {LegacyTeamsApiGetTeamUsersRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + */ + getTeamUsers(requestParameters: LegacyTeamsApiGetTeamUsersRequest, ): Promise { + return localVarFp.getTeamUsers(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about teams within the company. + * @summary Get all teams + * @param {LegacyTeamsApiGetTeamsRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + */ + getTeams(requestParameters: LegacyTeamsApiGetTeamsRequest = {}, ): Promise { + return localVarFp.getTeams(requestParameters.order_by, requestParameters.skip_users, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all teams which have the specified user as a member. + * @summary Get all teams of a user + * @param {LegacyTeamsApiGetUserTeamsRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + */ + getUserTeams(requestParameters: LegacyTeamsApiGetUserTeamsRequest, ): Promise { + return localVarFp.getUserTeams(requestParameters.id, requestParameters.order_by, requestParameters.skip_users, ).then((request) => request(axios, basePath)); + }, + /** + * Updates an existing team and returns the updated object. + * @summary Update a team + * @param {LegacyTeamsApiUpdateTeamRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + */ + updateTeam(requestParameters: LegacyTeamsApiUpdateTeamRequest, ): Promise { + return localVarFp.updateTeam(requestParameters.id, requestParameters.UpdateTeamRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addTeam operation in LegacyTeamsApi. + * @export + * @interface LegacyTeamsApiAddTeamRequest + */ +export interface LegacyTeamsApiAddTeamRequest { + /** + * + * @type {AddTeamRequest1} + * @memberof LegacyTeamsApiAddTeam + */ + readonly AddTeamRequest1?: AddTeamRequest1 +} + +/** + * Request parameters for addTeamUser operation in LegacyTeamsApi. + * @export + * @interface LegacyTeamsApiAddTeamUserRequest + */ +export interface LegacyTeamsApiAddTeamUserRequest { + /** + * The ID of the team + * @type {number} + * @memberof LegacyTeamsApiAddTeamUser + */ + readonly id: number + + /** + * + * @type {AddTeamUserRequest} + * @memberof LegacyTeamsApiAddTeamUser + */ + readonly AddTeamUserRequest?: AddTeamUserRequest +} + +/** + * Request parameters for deleteTeamUser operation in LegacyTeamsApi. + * @export + * @interface LegacyTeamsApiDeleteTeamUserRequest + */ +export interface LegacyTeamsApiDeleteTeamUserRequest { + /** + * The ID of the team + * @type {number} + * @memberof LegacyTeamsApiDeleteTeamUser + */ + readonly id: number + + /** + * + * @type {DeleteTeamUserRequest} + * @memberof LegacyTeamsApiDeleteTeamUser + */ + readonly DeleteTeamUserRequest?: DeleteTeamUserRequest +} + +/** + * Request parameters for getTeam operation in LegacyTeamsApi. + * @export + * @interface LegacyTeamsApiGetTeamRequest + */ +export interface LegacyTeamsApiGetTeamRequest { + /** + * The ID of the team + * @type {number} + * @memberof LegacyTeamsApiGetTeam + */ + readonly id: number + + /** + * When enabled, the teams will not include IDs of member users + * @type {0 | 1} + * @memberof LegacyTeamsApiGetTeam + */ + readonly skip_users?: 0 | 1 +} + +/** + * Request parameters for getTeamUsers operation in LegacyTeamsApi. + * @export + * @interface LegacyTeamsApiGetTeamUsersRequest + */ +export interface LegacyTeamsApiGetTeamUsersRequest { + /** + * The ID of the team + * @type {number} + * @memberof LegacyTeamsApiGetTeamUsers + */ + readonly id: number +} + +/** + * Request parameters for getTeams operation in LegacyTeamsApi. + * @export + * @interface LegacyTeamsApiGetTeamsRequest + */ +export interface LegacyTeamsApiGetTeamsRequest { + /** + * The field name to sort returned teams by + * @type {'id' | 'name' | 'manager_id' | 'active_flag'} + * @memberof LegacyTeamsApiGetTeams + */ + readonly order_by?: 'id' | 'name' | 'manager_id' | 'active_flag' + + /** + * When enabled, the teams will not include IDs of member users + * @type {0 | 1} + * @memberof LegacyTeamsApiGetTeams + */ + readonly skip_users?: 0 | 1 +} + +/** + * Request parameters for getUserTeams operation in LegacyTeamsApi. + * @export + * @interface LegacyTeamsApiGetUserTeamsRequest + */ +export interface LegacyTeamsApiGetUserTeamsRequest { + /** + * The ID of the user + * @type {number} + * @memberof LegacyTeamsApiGetUserTeams + */ + readonly id: number + + /** + * The field name to sort returned teams by + * @type {'id' | 'name' | 'manager_id' | 'active_flag'} + * @memberof LegacyTeamsApiGetUserTeams + */ + readonly order_by?: 'id' | 'name' | 'manager_id' | 'active_flag' + + /** + * When enabled, the teams will not include IDs of member users + * @type {0 | 1} + * @memberof LegacyTeamsApiGetUserTeams + */ + readonly skip_users?: 0 | 1 +} + +/** + * Request parameters for updateTeam operation in LegacyTeamsApi. + * @export + * @interface LegacyTeamsApiUpdateTeamRequest + */ +export interface LegacyTeamsApiUpdateTeamRequest { + /** + * The ID of the team + * @type {number} + * @memberof LegacyTeamsApiUpdateTeam + */ + readonly id: number + + /** + * + * @type {UpdateTeamRequest} + * @memberof LegacyTeamsApiUpdateTeam + */ + readonly UpdateTeamRequest?: UpdateTeamRequest +} + +/** + * LegacyTeamsApi - object-oriented interface + * @export + * @class LegacyTeamsApi + * @extends {BaseAPI} + */ +export class LegacyTeamsApi extends BaseAPI { + /** + * Adds a new team to the company and returns the created object. + * @summary Add a new team + * @param {LegacyTeamsApiAddTeamRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + * @memberof LegacyTeamsApi + */ + public addTeam(requestParameters: LegacyTeamsApiAddTeamRequest = {}, ) { + return LegacyTeamsApiFp(this.configuration).addTeam(requestParameters.AddTeamRequest1, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds users to an existing team. + * @summary Add users to a team + * @param {LegacyTeamsApiAddTeamUserRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + * @memberof LegacyTeamsApi + */ + public addTeamUser(requestParameters: LegacyTeamsApiAddTeamUserRequest, ) { + return LegacyTeamsApiFp(this.configuration).addTeamUser(requestParameters.id, requestParameters.AddTeamUserRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes users from an existing team. + * @summary Delete users from a team + * @param {LegacyTeamsApiDeleteTeamUserRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + * @memberof LegacyTeamsApi + */ + public deleteTeamUser(requestParameters: LegacyTeamsApiDeleteTeamUserRequest, ) { + return LegacyTeamsApiFp(this.configuration).deleteTeamUser(requestParameters.id, requestParameters.DeleteTeamUserRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific team. + * @summary Get a single team + * @param {LegacyTeamsApiGetTeamRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + * @memberof LegacyTeamsApi + */ + public getTeam(requestParameters: LegacyTeamsApiGetTeamRequest, ) { + return LegacyTeamsApiFp(this.configuration).getTeam(requestParameters.id, requestParameters.skip_users, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns a list of all user IDs within a team. + * @summary Get all users in a team + * @param {LegacyTeamsApiGetTeamUsersRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + * @memberof LegacyTeamsApi + */ + public getTeamUsers(requestParameters: LegacyTeamsApiGetTeamUsersRequest, ) { + return LegacyTeamsApiFp(this.configuration).getTeamUsers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about teams within the company. + * @summary Get all teams + * @param {LegacyTeamsApiGetTeamsRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + * @memberof LegacyTeamsApi + */ + public getTeams(requestParameters: LegacyTeamsApiGetTeamsRequest = {}, ) { + return LegacyTeamsApiFp(this.configuration).getTeams(requestParameters.order_by, requestParameters.skip_users, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all teams which have the specified user as a member. + * @summary Get all teams of a user + * @param {LegacyTeamsApiGetUserTeamsRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + * @memberof LegacyTeamsApi + */ + public getUserTeams(requestParameters: LegacyTeamsApiGetUserTeamsRequest, ) { + return LegacyTeamsApiFp(this.configuration).getUserTeams(requestParameters.id, requestParameters.order_by, requestParameters.skip_users, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates an existing team and returns the updated object. + * @summary Update a team + * @param {LegacyTeamsApiUpdateTeamRequest} requestParameters Request parameters. + * @deprecated + * @throws {RequiredError} + * @memberof LegacyTeamsApi + */ + public updateTeam(requestParameters: LegacyTeamsApiUpdateTeamRequest, ) { + return LegacyTeamsApiFp(this.configuration).updateTeam(requestParameters.id, requestParameters.UpdateTeamRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/mailbox-api.ts b/src/versions/v1/api/mailbox-api.ts new file mode 100644 index 00000000..739e27fa --- /dev/null +++ b/src/versions/v1/api/mailbox-api.ts @@ -0,0 +1,711 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { DeleteMailThreadResponse } from '../models'; +// @ts-ignore +import { GetMailMessageResponse } from '../models'; +// @ts-ignore +import { GetMailThreadMessagesResponse } from '../models'; +// @ts-ignore +import { GetMailThreadResponse } from '../models'; +// @ts-ignore +import { GetMailThreadResponse1 } from '../models'; +// @ts-ignore +import { UpdateMailThreadResponse } from '../models'; +/** + * MailboxApi - axios parameter creator + * @export + */ +export const MailboxApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Marks a mail thread as deleted. + * @summary Delete mail thread + * @param {number} id The ID of the mail thread + + * @throws {RequiredError} + */ + deleteMailThread: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteMailThread', 'id', id) + const localVarPath = `/mailbox/mailThreads/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["mail:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific mail message. + * @summary Get one mail message + * @param {number} id The ID of the mail message to fetch + * @param {0 | 1} [include_body] Whether to include the full message body or not. `0` = Don\'t include, `1` = Include. + + * @throws {RequiredError} + */ + getMailMessage: async (id: number, include_body?: 0 | 1, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getMailMessage', 'id', id) + const localVarPath = `/mailbox/mailMessages/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["mail:read", "mail:full"], configuration) + + if (include_body !== undefined) { + localVarQueryParameter['include_body'] = include_body; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns a specific mail thread. + * @summary Get one mail thread + * @param {number} id The ID of the mail thread + + * @throws {RequiredError} + */ + getMailThread: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getMailThread', 'id', id) + const localVarPath = `/mailbox/mailThreads/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["mail:read", "mail:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all the mail messages inside a specified mail thread. + * @summary Get all mail messages of mail thread + * @param {number} id The ID of the mail thread + + * @throws {RequiredError} + */ + getMailThreadMessages: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getMailThreadMessages', 'id', id) + const localVarPath = `/mailbox/mailThreads/{id}/mailMessages` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["mail:read", "mail:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns mail threads in a specified folder ordered by the most recent message within. + * @summary Get mail threads + * @param {'inbox' | 'drafts' | 'sent' | 'archive'} folder The type of folder to fetch + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getMailThreads: async (folder: 'inbox' | 'drafts' | 'sent' | 'archive', start?: number, limit?: number, ): Promise => { + // verify required parameter 'folder' is not null or undefined + assertParamExists('getMailThreads', 'folder', folder) + const localVarPath = `/mailbox/mailThreads`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["mail:read", "mail:full"], configuration) + + if (folder !== undefined) { + localVarQueryParameter['folder'] = folder; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a mail thread. + * @summary Update mail thread details + * @param {number} id The ID of the mail thread + * @param {number} [deal_id] The ID of the deal this thread is associated with + * @param {string} [lead_id] The ID of the lead this thread is associated with + * @param {number} [shared_flag] + * @param {number} [read_flag] + * @param {number} [archived_flag] + + * @throws {RequiredError} + */ + updateMailThreadDetails: async (id: number, deal_id?: number, lead_id?: string, shared_flag?: number, read_flag?: number, archived_flag?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateMailThreadDetails', 'id', id) + const localVarPath = `/mailbox/mailThreads/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new URLSearchParams(); + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["mail:full"], configuration) + + + if (deal_id !== undefined) { + localVarFormParams.set('deal_id', deal_id as any); + } + + if (lead_id !== undefined) { + localVarFormParams.set('lead_id', lead_id as any); + } + + if (shared_flag !== undefined) { + localVarFormParams.set('shared_flag', shared_flag as any); + } + + if (read_flag !== undefined) { + localVarFormParams.set('read_flag', read_flag as any); + } + + if (archived_flag !== undefined) { + localVarFormParams.set('archived_flag', archived_flag as any); + } + + + localVarHeaderParameter['Content-Type'] = 'application/x-www-form-urlencoded'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = localVarFormParams.toString(); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * MailboxApi - functional programming interface + * @export + */ +export const MailboxApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = MailboxApiAxiosParamCreator(configuration) + return { + /** + * Marks a mail thread as deleted. + * @summary Delete mail thread + * @param {number} id The ID of the mail thread + + * @throws {RequiredError} + */ + async deleteMailThread(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteMailThread(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific mail message. + * @summary Get one mail message + * @param {number} id The ID of the mail message to fetch + * @param {0 | 1} [include_body] Whether to include the full message body or not. `0` = Don\'t include, `1` = Include. + + * @throws {RequiredError} + */ + async getMailMessage(id: number, include_body?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMailMessage(id, include_body, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns a specific mail thread. + * @summary Get one mail thread + * @param {number} id The ID of the mail thread + + * @throws {RequiredError} + */ + async getMailThread(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMailThread(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all the mail messages inside a specified mail thread. + * @summary Get all mail messages of mail thread + * @param {number} id The ID of the mail thread + + * @throws {RequiredError} + */ + async getMailThreadMessages(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMailThreadMessages(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns mail threads in a specified folder ordered by the most recent message within. + * @summary Get mail threads + * @param {'inbox' | 'drafts' | 'sent' | 'archive'} folder The type of folder to fetch + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getMailThreads(folder: 'inbox' | 'drafts' | 'sent' | 'archive', start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getMailThreads(folder, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a mail thread. + * @summary Update mail thread details + * @param {number} id The ID of the mail thread + * @param {number} [deal_id] The ID of the deal this thread is associated with + * @param {string} [lead_id] The ID of the lead this thread is associated with + * @param {number} [shared_flag] + * @param {number} [read_flag] + * @param {number} [archived_flag] + + * @throws {RequiredError} + */ + async updateMailThreadDetails(id: number, deal_id?: number, lead_id?: string, shared_flag?: number, read_flag?: number, archived_flag?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateMailThreadDetails(id, deal_id, lead_id, shared_flag, read_flag, archived_flag, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * MailboxApi - factory interface + * @export + */ +export const MailboxApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = MailboxApiFp(configuration) + return { + /** + * Marks a mail thread as deleted. + * @summary Delete mail thread + * @param {MailboxApiDeleteMailThreadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteMailThread(requestParameters: MailboxApiDeleteMailThreadRequest, ): Promise { + return localVarFp.deleteMailThread(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific mail message. + * @summary Get one mail message + * @param {MailboxApiGetMailMessageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getMailMessage(requestParameters: MailboxApiGetMailMessageRequest, ): Promise { + return localVarFp.getMailMessage(requestParameters.id, requestParameters.include_body, ).then((request) => request(axios, basePath)); + }, + /** + * Returns a specific mail thread. + * @summary Get one mail thread + * @param {MailboxApiGetMailThreadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getMailThread(requestParameters: MailboxApiGetMailThreadRequest, ): Promise { + return localVarFp.getMailThread(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all the mail messages inside a specified mail thread. + * @summary Get all mail messages of mail thread + * @param {MailboxApiGetMailThreadMessagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getMailThreadMessages(requestParameters: MailboxApiGetMailThreadMessagesRequest, ): Promise { + return localVarFp.getMailThreadMessages(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns mail threads in a specified folder ordered by the most recent message within. + * @summary Get mail threads + * @param {MailboxApiGetMailThreadsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getMailThreads(requestParameters: MailboxApiGetMailThreadsRequest, ): Promise { + return localVarFp.getMailThreads(requestParameters.folder, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a mail thread. + * @summary Update mail thread details + * @param {MailboxApiUpdateMailThreadDetailsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateMailThreadDetails(requestParameters: MailboxApiUpdateMailThreadDetailsRequest, ): Promise { + return localVarFp.updateMailThreadDetails(requestParameters.id, requestParameters.deal_id, requestParameters.lead_id, requestParameters.shared_flag, requestParameters.read_flag, requestParameters.archived_flag, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for deleteMailThread operation in MailboxApi. + * @export + * @interface MailboxApiDeleteMailThreadRequest + */ +export interface MailboxApiDeleteMailThreadRequest { + /** + * The ID of the mail thread + * @type {number} + * @memberof MailboxApiDeleteMailThread + */ + readonly id: number +} + +/** + * Request parameters for getMailMessage operation in MailboxApi. + * @export + * @interface MailboxApiGetMailMessageRequest + */ +export interface MailboxApiGetMailMessageRequest { + /** + * The ID of the mail message to fetch + * @type {number} + * @memberof MailboxApiGetMailMessage + */ + readonly id: number + + /** + * Whether to include the full message body or not. `0` = Don\'t include, `1` = Include. + * @type {0 | 1} + * @memberof MailboxApiGetMailMessage + */ + readonly include_body?: 0 | 1 +} + +/** + * Request parameters for getMailThread operation in MailboxApi. + * @export + * @interface MailboxApiGetMailThreadRequest + */ +export interface MailboxApiGetMailThreadRequest { + /** + * The ID of the mail thread + * @type {number} + * @memberof MailboxApiGetMailThread + */ + readonly id: number +} + +/** + * Request parameters for getMailThreadMessages operation in MailboxApi. + * @export + * @interface MailboxApiGetMailThreadMessagesRequest + */ +export interface MailboxApiGetMailThreadMessagesRequest { + /** + * The ID of the mail thread + * @type {number} + * @memberof MailboxApiGetMailThreadMessages + */ + readonly id: number +} + +/** + * Request parameters for getMailThreads operation in MailboxApi. + * @export + * @interface MailboxApiGetMailThreadsRequest + */ +export interface MailboxApiGetMailThreadsRequest { + /** + * The type of folder to fetch + * @type {'inbox' | 'drafts' | 'sent' | 'archive'} + * @memberof MailboxApiGetMailThreads + */ + readonly folder: 'inbox' | 'drafts' | 'sent' | 'archive' + + /** + * Pagination start + * @type {number} + * @memberof MailboxApiGetMailThreads + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof MailboxApiGetMailThreads + */ + readonly limit?: number +} + +/** + * Request parameters for updateMailThreadDetails operation in MailboxApi. + * @export + * @interface MailboxApiUpdateMailThreadDetailsRequest + */ +export interface MailboxApiUpdateMailThreadDetailsRequest { + /** + * The ID of the mail thread + * @type {number} + * @memberof MailboxApiUpdateMailThreadDetails + */ + readonly id: number + + /** + * The ID of the deal this thread is associated with + * @type {number} + * @memberof MailboxApiUpdateMailThreadDetails + */ + readonly deal_id?: number + + /** + * The ID of the lead this thread is associated with + * @type {string} + * @memberof MailboxApiUpdateMailThreadDetails + */ + readonly lead_id?: string + + /** + * + * @type {number} + * @memberof MailboxApiUpdateMailThreadDetails + */ + readonly shared_flag?: number + + /** + * + * @type {number} + * @memberof MailboxApiUpdateMailThreadDetails + */ + readonly read_flag?: number + + /** + * + * @type {number} + * @memberof MailboxApiUpdateMailThreadDetails + */ + readonly archived_flag?: number +} + +/** + * MailboxApi - object-oriented interface + * @export + * @class MailboxApi + * @extends {BaseAPI} + */ +export class MailboxApi extends BaseAPI { + /** + * Marks a mail thread as deleted. + * @summary Delete mail thread + * @param {MailboxApiDeleteMailThreadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof MailboxApi + */ + public deleteMailThread(requestParameters: MailboxApiDeleteMailThreadRequest, ) { + return MailboxApiFp(this.configuration).deleteMailThread(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific mail message. + * @summary Get one mail message + * @param {MailboxApiGetMailMessageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof MailboxApi + */ + public getMailMessage(requestParameters: MailboxApiGetMailMessageRequest, ) { + return MailboxApiFp(this.configuration).getMailMessage(requestParameters.id, requestParameters.include_body, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns a specific mail thread. + * @summary Get one mail thread + * @param {MailboxApiGetMailThreadRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof MailboxApi + */ + public getMailThread(requestParameters: MailboxApiGetMailThreadRequest, ) { + return MailboxApiFp(this.configuration).getMailThread(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all the mail messages inside a specified mail thread. + * @summary Get all mail messages of mail thread + * @param {MailboxApiGetMailThreadMessagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof MailboxApi + */ + public getMailThreadMessages(requestParameters: MailboxApiGetMailThreadMessagesRequest, ) { + return MailboxApiFp(this.configuration).getMailThreadMessages(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns mail threads in a specified folder ordered by the most recent message within. + * @summary Get mail threads + * @param {MailboxApiGetMailThreadsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof MailboxApi + */ + public getMailThreads(requestParameters: MailboxApiGetMailThreadsRequest, ) { + return MailboxApiFp(this.configuration).getMailThreads(requestParameters.folder, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a mail thread. + * @summary Update mail thread details + * @param {MailboxApiUpdateMailThreadDetailsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof MailboxApi + */ + public updateMailThreadDetails(requestParameters: MailboxApiUpdateMailThreadDetailsRequest, ) { + return MailboxApiFp(this.configuration).updateMailThreadDetails(requestParameters.id, requestParameters.deal_id, requestParameters.lead_id, requestParameters.shared_flag, requestParameters.read_flag, requestParameters.archived_flag, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/meetings-api.ts b/src/versions/v1/api/meetings-api.ts new file mode 100644 index 00000000..145f73bb --- /dev/null +++ b/src/versions/v1/api/meetings-api.ts @@ -0,0 +1,242 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddUserProviderLinkRequest } from '../models'; +// @ts-ignore +import { GetUserProviderLinkSuccessResponse } from '../models'; +// @ts-ignore +import { UserProviderLinkErrorResponse } from '../models'; +/** + * MeetingsApi - axios parameter creator + * @export + */ +export const MeetingsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * A video calling provider must call this endpoint to remove the link between a user and the installed video calling app. + * @summary Delete the link between a user and the installed video call integration + * @param {string} id Unique identifier linking a user to the installed integration + + * @throws {RequiredError} + */ + deleteUserProviderLink: async (id: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteUserProviderLink', 'id', id) + const localVarPath = `/meetings/userProviderLinks/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["video-calls"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * A video calling provider must call this endpoint after a user has installed the video calling app so that the new user\'s information is sent. + * @summary Link a user with the installed video call integration + * @param {AddUserProviderLinkRequest} [AddUserProviderLinkRequest] + + * @throws {RequiredError} + */ + saveUserProviderLink: async (AddUserProviderLinkRequest?: AddUserProviderLinkRequest, ): Promise => { + const localVarPath = `/meetings/userProviderLinks`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["video-calls"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddUserProviderLinkRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * MeetingsApi - functional programming interface + * @export + */ +export const MeetingsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = MeetingsApiAxiosParamCreator(configuration) + return { + /** + * A video calling provider must call this endpoint to remove the link between a user and the installed video calling app. + * @summary Delete the link between a user and the installed video call integration + * @param {string} id Unique identifier linking a user to the installed integration + + * @throws {RequiredError} + */ + async deleteUserProviderLink(id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserProviderLink(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * A video calling provider must call this endpoint after a user has installed the video calling app so that the new user\'s information is sent. + * @summary Link a user with the installed video call integration + * @param {AddUserProviderLinkRequest} [AddUserProviderLinkRequest] + + * @throws {RequiredError} + */ + async saveUserProviderLink(AddUserProviderLinkRequest?: AddUserProviderLinkRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.saveUserProviderLink(AddUserProviderLinkRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * MeetingsApi - factory interface + * @export + */ +export const MeetingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = MeetingsApiFp(configuration) + return { + /** + * A video calling provider must call this endpoint to remove the link between a user and the installed video calling app. + * @summary Delete the link between a user and the installed video call integration + * @param {MeetingsApiDeleteUserProviderLinkRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteUserProviderLink(requestParameters: MeetingsApiDeleteUserProviderLinkRequest, ): Promise { + return localVarFp.deleteUserProviderLink(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * A video calling provider must call this endpoint after a user has installed the video calling app so that the new user\'s information is sent. + * @summary Link a user with the installed video call integration + * @param {MeetingsApiSaveUserProviderLinkRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + saveUserProviderLink(requestParameters: MeetingsApiSaveUserProviderLinkRequest = {}, ): Promise { + return localVarFp.saveUserProviderLink(requestParameters.AddUserProviderLinkRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for deleteUserProviderLink operation in MeetingsApi. + * @export + * @interface MeetingsApiDeleteUserProviderLinkRequest + */ +export interface MeetingsApiDeleteUserProviderLinkRequest { + /** + * Unique identifier linking a user to the installed integration + * @type {string} + * @memberof MeetingsApiDeleteUserProviderLink + */ + readonly id: string +} + +/** + * Request parameters for saveUserProviderLink operation in MeetingsApi. + * @export + * @interface MeetingsApiSaveUserProviderLinkRequest + */ +export interface MeetingsApiSaveUserProviderLinkRequest { + /** + * + * @type {AddUserProviderLinkRequest} + * @memberof MeetingsApiSaveUserProviderLink + */ + readonly AddUserProviderLinkRequest?: AddUserProviderLinkRequest +} + +/** + * MeetingsApi - object-oriented interface + * @export + * @class MeetingsApi + * @extends {BaseAPI} + */ +export class MeetingsApi extends BaseAPI { + /** + * A video calling provider must call this endpoint to remove the link between a user and the installed video calling app. + * @summary Delete the link between a user and the installed video call integration + * @param {MeetingsApiDeleteUserProviderLinkRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof MeetingsApi + */ + public deleteUserProviderLink(requestParameters: MeetingsApiDeleteUserProviderLinkRequest, ) { + return MeetingsApiFp(this.configuration).deleteUserProviderLink(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * A video calling provider must call this endpoint after a user has installed the video calling app so that the new user\'s information is sent. + * @summary Link a user with the installed video call integration + * @param {MeetingsApiSaveUserProviderLinkRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof MeetingsApi + */ + public saveUserProviderLink(requestParameters: MeetingsApiSaveUserProviderLinkRequest = {}, ) { + return MeetingsApiFp(this.configuration).saveUserProviderLink(requestParameters.AddUserProviderLinkRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/note-fields-api.ts b/src/versions/v1/api/note-fields-api.ts new file mode 100644 index 00000000..ec8de174 --- /dev/null +++ b/src/versions/v1/api/note-fields-api.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetNoteFieldsResponse } from '../models'; +/** + * NoteFieldsApi - axios parameter creator + * @export + */ +export const NoteFieldsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Returns data about all note fields. + * @summary Get all note fields + + * @throws {RequiredError} + */ + getNoteFields: async (): Promise => { + const localVarPath = `/noteFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * NoteFieldsApi - functional programming interface + * @export + */ +export const NoteFieldsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = NoteFieldsApiAxiosParamCreator(configuration) + return { + /** + * Returns data about all note fields. + * @summary Get all note fields + + * @throws {RequiredError} + */ + async getNoteFields(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getNoteFields(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * NoteFieldsApi - factory interface + * @export + */ +export const NoteFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = NoteFieldsApiFp(configuration) + return { + /** + * Returns data about all note fields. + * @summary Get all note fields + + * @throws {RequiredError} + */ + getNoteFields(): Promise { + return localVarFp.getNoteFields().then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * NoteFieldsApi - object-oriented interface + * @export + * @class NoteFieldsApi + * @extends {BaseAPI} + */ +export class NoteFieldsApi extends BaseAPI { + /** + * Returns data about all note fields. + * @summary Get all note fields + + * @throws {RequiredError} + * @memberof NoteFieldsApi + */ + public getNoteFields() { + return NoteFieldsApiFp(this.configuration).getNoteFields().then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/notes-api.ts b/src/versions/v1/api/notes-api.ts new file mode 100644 index 00000000..f2d6d0ba --- /dev/null +++ b/src/versions/v1/api/notes-api.ts @@ -0,0 +1,1230 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddNoteRequest } from '../models'; +// @ts-ignore +import { CommentPostPutObject } from '../models'; +// @ts-ignore +import { DeleteCommentResponse } from '../models'; +// @ts-ignore +import { DeleteNoteResponse } from '../models'; +// @ts-ignore +import { GetCommentsResponse } from '../models'; +// @ts-ignore +import { GetNotesResponse } from '../models'; +// @ts-ignore +import { NoteRequest } from '../models'; +// @ts-ignore +import { UpsertCommentResponse } from '../models'; +// @ts-ignore +import { UpsertNoteResponse } from '../models'; +/** + * NotesApi - axios parameter creator + * @export + */ +export const NotesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new note. + * @summary Add a note + * @param {AddNoteRequest} [AddNoteRequest] + + * @throws {RequiredError} + */ + addNote: async (AddNoteRequest?: AddNoteRequest, ): Promise => { + const localVarPath = `/notes`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddNoteRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a new comment to a note. + * @summary Add a comment to a note + * @param {number} id The ID of the note + * @param {CommentPostPutObject} [CommentPostPutObject] + + * @throws {RequiredError} + */ + addNoteComment: async (id: number, CommentPostPutObject?: CommentPostPutObject, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addNoteComment', 'id', id) + const localVarPath = `/notes/{id}/comments` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(CommentPostPutObject, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a comment. + * @summary Delete a comment related to a note + * @param {number} id The ID of the note + * @param {string} commentId The ID of the comment + + * @throws {RequiredError} + */ + deleteComment: async (id: number, commentId: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteComment', 'id', id) + // verify required parameter 'commentId' is not null or undefined + assertParamExists('deleteComment', 'commentId', commentId) + const localVarPath = `/notes/{id}/comments/{commentId}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"commentId"}}`, encodeURIComponent(String(commentId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a specific note. + * @summary Delete a note + * @param {number} id The ID of the note + + * @throws {RequiredError} + */ + deleteNote: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteNote', 'id', id) + const localVarPath = `/notes/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a comment. + * @summary Get one comment + * @param {number} id The ID of the note + * @param {string} commentId The ID of the comment + + * @throws {RequiredError} + */ + getComment: async (id: number, commentId: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getComment', 'id', id) + // verify required parameter 'commentId' is not null or undefined + assertParamExists('getComment', 'commentId', commentId) + const localVarPath = `/notes/{id}/comments/{commentId}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"commentId"}}`, encodeURIComponent(String(commentId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns details about a specific note. + * @summary Get one note + * @param {number} id The ID of the note + + * @throws {RequiredError} + */ + getNote: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getNote', 'id', id) + const localVarPath = `/notes/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all comments associated with a note. + * @summary Get all comments for a note + * @param {number} id The ID of the note + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getNoteComments: async (id: number, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getNoteComments', 'id', id) + const localVarPath = `/notes/{id}/comments` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "contacts:read", "contacts:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all notes. + * @summary Get all notes + * @param {number} [user_id] The ID of the user whose notes to fetch. If omitted, notes by all users will be returned. + * @param {string} [lead_id] The ID of the lead which notes to fetch. If omitted, notes about all leads will be returned. + * @param {number} [deal_id] The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. + * @param {number} [person_id] The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. + * @param {number} [org_id] The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned. + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `content`, `add_time`, `update_time`. + * @param {string} [start_date] The date in format of YYYY-MM-DD from which notes to fetch + * @param {string} [end_date] The date in format of YYYY-MM-DD until which notes to fetch to + * @param {0 | 1} [pinned_to_lead_flag] If set, the results are filtered by note to lead pinning state + * @param {0 | 1} [pinned_to_deal_flag] If set, the results are filtered by note to deal pinning state + * @param {0 | 1} [pinned_to_organization_flag] If set, the results are filtered by note to organization pinning state + * @param {0 | 1} [pinned_to_person_flag] If set, the results are filtered by note to person pinning state + + * @throws {RequiredError} + */ + getNotes: async (user_id?: number, lead_id?: string, deal_id?: number, person_id?: number, org_id?: number, start?: number, limit?: number, sort?: string, start_date?: string, end_date?: string, pinned_to_lead_flag?: 0 | 1, pinned_to_deal_flag?: 0 | 1, pinned_to_organization_flag?: 0 | 1, pinned_to_person_flag?: 0 | 1, ): Promise => { + const localVarPath = `/notes`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "contacts:read", "contacts:full"], configuration) + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + if (lead_id !== undefined) { + localVarQueryParameter['lead_id'] = lead_id; + } + + if (deal_id !== undefined) { + localVarQueryParameter['deal_id'] = deal_id; + } + + if (person_id !== undefined) { + localVarQueryParameter['person_id'] = person_id; + } + + if (org_id !== undefined) { + localVarQueryParameter['org_id'] = org_id; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + if (start_date !== undefined) { + localVarQueryParameter['start_date'] = (start_date as any instanceof Date) ? + (start_date as any).toISOString().substr(0,10) : + start_date; + } + + if (end_date !== undefined) { + localVarQueryParameter['end_date'] = (end_date as any instanceof Date) ? + (end_date as any).toISOString().substr(0,10) : + end_date; + } + + if (pinned_to_lead_flag !== undefined) { + localVarQueryParameter['pinned_to_lead_flag'] = pinned_to_lead_flag; + } + + if (pinned_to_deal_flag !== undefined) { + localVarQueryParameter['pinned_to_deal_flag'] = pinned_to_deal_flag; + } + + if (pinned_to_organization_flag !== undefined) { + localVarQueryParameter['pinned_to_organization_flag'] = pinned_to_organization_flag; + } + + if (pinned_to_person_flag !== undefined) { + localVarQueryParameter['pinned_to_person_flag'] = pinned_to_person_flag; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates a comment related to a note. + * @summary Update a comment related to a note + * @param {number} id The ID of the note + * @param {string} commentId The ID of the comment + * @param {CommentPostPutObject} [CommentPostPutObject] + + * @throws {RequiredError} + */ + updateCommentForNote: async (id: number, commentId: string, CommentPostPutObject?: CommentPostPutObject, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateCommentForNote', 'id', id) + // verify required parameter 'commentId' is not null or undefined + assertParamExists('updateCommentForNote', 'commentId', commentId) + const localVarPath = `/notes/{id}/comments/{commentId}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"commentId"}}`, encodeURIComponent(String(commentId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(CommentPostPutObject, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates a note. + * @summary Update a note + * @param {number} id The ID of the note + * @param {NoteRequest} [NoteRequest] + + * @throws {RequiredError} + */ + updateNote: async (id: number, NoteRequest?: NoteRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateNote', 'id', id) + const localVarPath = `/notes/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(NoteRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * NotesApi - functional programming interface + * @export + */ +export const NotesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = NotesApiAxiosParamCreator(configuration) + return { + /** + * Adds a new note. + * @summary Add a note + * @param {AddNoteRequest} [AddNoteRequest] + + * @throws {RequiredError} + */ + async addNote(AddNoteRequest?: AddNoteRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addNote(AddNoteRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a new comment to a note. + * @summary Add a comment to a note + * @param {number} id The ID of the note + * @param {CommentPostPutObject} [CommentPostPutObject] + + * @throws {RequiredError} + */ + async addNoteComment(id: number, CommentPostPutObject?: CommentPostPutObject, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addNoteComment(id, CommentPostPutObject, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a comment. + * @summary Delete a comment related to a note + * @param {number} id The ID of the note + * @param {string} commentId The ID of the comment + + * @throws {RequiredError} + */ + async deleteComment(id: number, commentId: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteComment(id, commentId, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a specific note. + * @summary Delete a note + * @param {number} id The ID of the note + + * @throws {RequiredError} + */ + async deleteNote(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteNote(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a comment. + * @summary Get one comment + * @param {number} id The ID of the note + * @param {string} commentId The ID of the comment + + * @throws {RequiredError} + */ + async getComment(id: number, commentId: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getComment(id, commentId, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns details about a specific note. + * @summary Get one note + * @param {number} id The ID of the note + + * @throws {RequiredError} + */ + async getNote(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getNote(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all comments associated with a note. + * @summary Get all comments for a note + * @param {number} id The ID of the note + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getNoteComments(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getNoteComments(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all notes. + * @summary Get all notes + * @param {number} [user_id] The ID of the user whose notes to fetch. If omitted, notes by all users will be returned. + * @param {string} [lead_id] The ID of the lead which notes to fetch. If omitted, notes about all leads will be returned. + * @param {number} [deal_id] The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. + * @param {number} [person_id] The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. + * @param {number} [org_id] The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned. + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `content`, `add_time`, `update_time`. + * @param {string} [start_date] The date in format of YYYY-MM-DD from which notes to fetch + * @param {string} [end_date] The date in format of YYYY-MM-DD until which notes to fetch to + * @param {0 | 1} [pinned_to_lead_flag] If set, the results are filtered by note to lead pinning state + * @param {0 | 1} [pinned_to_deal_flag] If set, the results are filtered by note to deal pinning state + * @param {0 | 1} [pinned_to_organization_flag] If set, the results are filtered by note to organization pinning state + * @param {0 | 1} [pinned_to_person_flag] If set, the results are filtered by note to person pinning state + + * @throws {RequiredError} + */ + async getNotes(user_id?: number, lead_id?: string, deal_id?: number, person_id?: number, org_id?: number, start?: number, limit?: number, sort?: string, start_date?: string, end_date?: string, pinned_to_lead_flag?: 0 | 1, pinned_to_deal_flag?: 0 | 1, pinned_to_organization_flag?: 0 | 1, pinned_to_person_flag?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getNotes(user_id, lead_id, deal_id, person_id, org_id, start, limit, sort, start_date, end_date, pinned_to_lead_flag, pinned_to_deal_flag, pinned_to_organization_flag, pinned_to_person_flag, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates a comment related to a note. + * @summary Update a comment related to a note + * @param {number} id The ID of the note + * @param {string} commentId The ID of the comment + * @param {CommentPostPutObject} [CommentPostPutObject] + + * @throws {RequiredError} + */ + async updateCommentForNote(id: number, commentId: string, CommentPostPutObject?: CommentPostPutObject, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommentForNote(id, commentId, CommentPostPutObject, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates a note. + * @summary Update a note + * @param {number} id The ID of the note + * @param {NoteRequest} [NoteRequest] + + * @throws {RequiredError} + */ + async updateNote(id: number, NoteRequest?: NoteRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateNote(id, NoteRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * NotesApi - factory interface + * @export + */ +export const NotesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = NotesApiFp(configuration) + return { + /** + * Adds a new note. + * @summary Add a note + * @param {NotesApiAddNoteRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addNote(requestParameters: NotesApiAddNoteRequest = {}, ): Promise { + return localVarFp.addNote(requestParameters.AddNoteRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a new comment to a note. + * @summary Add a comment to a note + * @param {NotesApiAddNoteCommentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addNoteComment(requestParameters: NotesApiAddNoteCommentRequest, ): Promise { + return localVarFp.addNoteComment(requestParameters.id, requestParameters.CommentPostPutObject, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a comment. + * @summary Delete a comment related to a note + * @param {NotesApiDeleteCommentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteComment(requestParameters: NotesApiDeleteCommentRequest, ): Promise { + return localVarFp.deleteComment(requestParameters.id, requestParameters.commentId, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a specific note. + * @summary Delete a note + * @param {NotesApiDeleteNoteRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteNote(requestParameters: NotesApiDeleteNoteRequest, ): Promise { + return localVarFp.deleteNote(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a comment. + * @summary Get one comment + * @param {NotesApiGetCommentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getComment(requestParameters: NotesApiGetCommentRequest, ): Promise { + return localVarFp.getComment(requestParameters.id, requestParameters.commentId, ).then((request) => request(axios, basePath)); + }, + /** + * Returns details about a specific note. + * @summary Get one note + * @param {NotesApiGetNoteRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getNote(requestParameters: NotesApiGetNoteRequest, ): Promise { + return localVarFp.getNote(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all comments associated with a note. + * @summary Get all comments for a note + * @param {NotesApiGetNoteCommentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getNoteComments(requestParameters: NotesApiGetNoteCommentsRequest, ): Promise { + return localVarFp.getNoteComments(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all notes. + * @summary Get all notes + * @param {NotesApiGetNotesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getNotes(requestParameters: NotesApiGetNotesRequest = {}, ): Promise { + return localVarFp.getNotes(requestParameters.user_id, requestParameters.lead_id, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.start, requestParameters.limit, requestParameters.sort, requestParameters.start_date, requestParameters.end_date, requestParameters.pinned_to_lead_flag, requestParameters.pinned_to_deal_flag, requestParameters.pinned_to_organization_flag, requestParameters.pinned_to_person_flag, ).then((request) => request(axios, basePath)); + }, + /** + * Updates a comment related to a note. + * @summary Update a comment related to a note + * @param {NotesApiUpdateCommentForNoteRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateCommentForNote(requestParameters: NotesApiUpdateCommentForNoteRequest, ): Promise { + return localVarFp.updateCommentForNote(requestParameters.id, requestParameters.commentId, requestParameters.CommentPostPutObject, ).then((request) => request(axios, basePath)); + }, + /** + * Updates a note. + * @summary Update a note + * @param {NotesApiUpdateNoteRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateNote(requestParameters: NotesApiUpdateNoteRequest, ): Promise { + return localVarFp.updateNote(requestParameters.id, requestParameters.NoteRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addNote operation in NotesApi. + * @export + * @interface NotesApiAddNoteRequest + */ +export interface NotesApiAddNoteRequest { + /** + * + * @type {AddNoteRequest} + * @memberof NotesApiAddNote + */ + readonly AddNoteRequest?: AddNoteRequest +} + +/** + * Request parameters for addNoteComment operation in NotesApi. + * @export + * @interface NotesApiAddNoteCommentRequest + */ +export interface NotesApiAddNoteCommentRequest { + /** + * The ID of the note + * @type {number} + * @memberof NotesApiAddNoteComment + */ + readonly id: number + + /** + * + * @type {CommentPostPutObject} + * @memberof NotesApiAddNoteComment + */ + readonly CommentPostPutObject?: CommentPostPutObject +} + +/** + * Request parameters for deleteComment operation in NotesApi. + * @export + * @interface NotesApiDeleteCommentRequest + */ +export interface NotesApiDeleteCommentRequest { + /** + * The ID of the note + * @type {number} + * @memberof NotesApiDeleteComment + */ + readonly id: number + + /** + * The ID of the comment + * @type {string} + * @memberof NotesApiDeleteComment + */ + readonly commentId: string +} + +/** + * Request parameters for deleteNote operation in NotesApi. + * @export + * @interface NotesApiDeleteNoteRequest + */ +export interface NotesApiDeleteNoteRequest { + /** + * The ID of the note + * @type {number} + * @memberof NotesApiDeleteNote + */ + readonly id: number +} + +/** + * Request parameters for getComment operation in NotesApi. + * @export + * @interface NotesApiGetCommentRequest + */ +export interface NotesApiGetCommentRequest { + /** + * The ID of the note + * @type {number} + * @memberof NotesApiGetComment + */ + readonly id: number + + /** + * The ID of the comment + * @type {string} + * @memberof NotesApiGetComment + */ + readonly commentId: string +} + +/** + * Request parameters for getNote operation in NotesApi. + * @export + * @interface NotesApiGetNoteRequest + */ +export interface NotesApiGetNoteRequest { + /** + * The ID of the note + * @type {number} + * @memberof NotesApiGetNote + */ + readonly id: number +} + +/** + * Request parameters for getNoteComments operation in NotesApi. + * @export + * @interface NotesApiGetNoteCommentsRequest + */ +export interface NotesApiGetNoteCommentsRequest { + /** + * The ID of the note + * @type {number} + * @memberof NotesApiGetNoteComments + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof NotesApiGetNoteComments + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof NotesApiGetNoteComments + */ + readonly limit?: number +} + +/** + * Request parameters for getNotes operation in NotesApi. + * @export + * @interface NotesApiGetNotesRequest + */ +export interface NotesApiGetNotesRequest { + /** + * The ID of the user whose notes to fetch. If omitted, notes by all users will be returned. + * @type {number} + * @memberof NotesApiGetNotes + */ + readonly user_id?: number + + /** + * The ID of the lead which notes to fetch. If omitted, notes about all leads will be returned. + * @type {string} + * @memberof NotesApiGetNotes + */ + readonly lead_id?: string + + /** + * The ID of the deal which notes to fetch. If omitted, notes about all deals will be returned. + * @type {number} + * @memberof NotesApiGetNotes + */ + readonly deal_id?: number + + /** + * The ID of the person whose notes to fetch. If omitted, notes about all persons will be returned. + * @type {number} + * @memberof NotesApiGetNotes + */ + readonly person_id?: number + + /** + * The ID of the organization which notes to fetch. If omitted, notes about all organizations will be returned. + * @type {number} + * @memberof NotesApiGetNotes + */ + readonly org_id?: number + + /** + * Pagination start + * @type {number} + * @memberof NotesApiGetNotes + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof NotesApiGetNotes + */ + readonly limit?: number + + /** + * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). Supported fields: `id`, `user_id`, `deal_id`, `person_id`, `org_id`, `content`, `add_time`, `update_time`. + * @type {string} + * @memberof NotesApiGetNotes + */ + readonly sort?: string + + /** + * The date in format of YYYY-MM-DD from which notes to fetch + * @type {string} + * @memberof NotesApiGetNotes + */ + readonly start_date?: string + + /** + * The date in format of YYYY-MM-DD until which notes to fetch to + * @type {string} + * @memberof NotesApiGetNotes + */ + readonly end_date?: string + + /** + * If set, the results are filtered by note to lead pinning state + * @type {0 | 1} + * @memberof NotesApiGetNotes + */ + readonly pinned_to_lead_flag?: 0 | 1 + + /** + * If set, the results are filtered by note to deal pinning state + * @type {0 | 1} + * @memberof NotesApiGetNotes + */ + readonly pinned_to_deal_flag?: 0 | 1 + + /** + * If set, the results are filtered by note to organization pinning state + * @type {0 | 1} + * @memberof NotesApiGetNotes + */ + readonly pinned_to_organization_flag?: 0 | 1 + + /** + * If set, the results are filtered by note to person pinning state + * @type {0 | 1} + * @memberof NotesApiGetNotes + */ + readonly pinned_to_person_flag?: 0 | 1 +} + +/** + * Request parameters for updateCommentForNote operation in NotesApi. + * @export + * @interface NotesApiUpdateCommentForNoteRequest + */ +export interface NotesApiUpdateCommentForNoteRequest { + /** + * The ID of the note + * @type {number} + * @memberof NotesApiUpdateCommentForNote + */ + readonly id: number + + /** + * The ID of the comment + * @type {string} + * @memberof NotesApiUpdateCommentForNote + */ + readonly commentId: string + + /** + * + * @type {CommentPostPutObject} + * @memberof NotesApiUpdateCommentForNote + */ + readonly CommentPostPutObject?: CommentPostPutObject +} + +/** + * Request parameters for updateNote operation in NotesApi. + * @export + * @interface NotesApiUpdateNoteRequest + */ +export interface NotesApiUpdateNoteRequest { + /** + * The ID of the note + * @type {number} + * @memberof NotesApiUpdateNote + */ + readonly id: number + + /** + * + * @type {NoteRequest} + * @memberof NotesApiUpdateNote + */ + readonly NoteRequest?: NoteRequest +} + +/** + * NotesApi - object-oriented interface + * @export + * @class NotesApi + * @extends {BaseAPI} + */ +export class NotesApi extends BaseAPI { + /** + * Adds a new note. + * @summary Add a note + * @param {NotesApiAddNoteRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof NotesApi + */ + public addNote(requestParameters: NotesApiAddNoteRequest = {}, ) { + return NotesApiFp(this.configuration).addNote(requestParameters.AddNoteRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a new comment to a note. + * @summary Add a comment to a note + * @param {NotesApiAddNoteCommentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof NotesApi + */ + public addNoteComment(requestParameters: NotesApiAddNoteCommentRequest, ) { + return NotesApiFp(this.configuration).addNoteComment(requestParameters.id, requestParameters.CommentPostPutObject, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a comment. + * @summary Delete a comment related to a note + * @param {NotesApiDeleteCommentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof NotesApi + */ + public deleteComment(requestParameters: NotesApiDeleteCommentRequest, ) { + return NotesApiFp(this.configuration).deleteComment(requestParameters.id, requestParameters.commentId, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a specific note. + * @summary Delete a note + * @param {NotesApiDeleteNoteRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof NotesApi + */ + public deleteNote(requestParameters: NotesApiDeleteNoteRequest, ) { + return NotesApiFp(this.configuration).deleteNote(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a comment. + * @summary Get one comment + * @param {NotesApiGetCommentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof NotesApi + */ + public getComment(requestParameters: NotesApiGetCommentRequest, ) { + return NotesApiFp(this.configuration).getComment(requestParameters.id, requestParameters.commentId, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns details about a specific note. + * @summary Get one note + * @param {NotesApiGetNoteRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof NotesApi + */ + public getNote(requestParameters: NotesApiGetNoteRequest, ) { + return NotesApiFp(this.configuration).getNote(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all comments associated with a note. + * @summary Get all comments for a note + * @param {NotesApiGetNoteCommentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof NotesApi + */ + public getNoteComments(requestParameters: NotesApiGetNoteCommentsRequest, ) { + return NotesApiFp(this.configuration).getNoteComments(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all notes. + * @summary Get all notes + * @param {NotesApiGetNotesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof NotesApi + */ + public getNotes(requestParameters: NotesApiGetNotesRequest = {}, ) { + return NotesApiFp(this.configuration).getNotes(requestParameters.user_id, requestParameters.lead_id, requestParameters.deal_id, requestParameters.person_id, requestParameters.org_id, requestParameters.start, requestParameters.limit, requestParameters.sort, requestParameters.start_date, requestParameters.end_date, requestParameters.pinned_to_lead_flag, requestParameters.pinned_to_deal_flag, requestParameters.pinned_to_organization_flag, requestParameters.pinned_to_person_flag, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates a comment related to a note. + * @summary Update a comment related to a note + * @param {NotesApiUpdateCommentForNoteRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof NotesApi + */ + public updateCommentForNote(requestParameters: NotesApiUpdateCommentForNoteRequest, ) { + return NotesApiFp(this.configuration).updateCommentForNote(requestParameters.id, requestParameters.commentId, requestParameters.CommentPostPutObject, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates a note. + * @summary Update a note + * @param {NotesApiUpdateNoteRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof NotesApi + */ + public updateNote(requestParameters: NotesApiUpdateNoteRequest, ) { + return NotesApiFp(this.configuration).updateNote(requestParameters.id, requestParameters.NoteRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/organization-fields-api.ts b/src/versions/v1/api/organization-fields-api.ts new file mode 100644 index 00000000..2dfc9ca6 --- /dev/null +++ b/src/versions/v1/api/organization-fields-api.ts @@ -0,0 +1,629 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { CreateFieldRequest } from '../models'; +// @ts-ignore +import { DeleteFieldsResponse } from '../models'; +// @ts-ignore +import { DeleteResponse } from '../models'; +// @ts-ignore +import { GetFieldResponse } from '../models'; +// @ts-ignore +import { GetFieldsResponse } from '../models'; +// @ts-ignore +import { UpdateFieldRequest } from '../models'; +/** + * OrganizationFieldsApi - axios parameter creator + * @export + */ +export const OrganizationFieldsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new organization field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new organization field + * @param {CreateFieldRequest} [CreateFieldRequest] + + * @throws {RequiredError} + */ + addOrganizationField: async (CreateFieldRequest?: CreateFieldRequest, ): Promise => { + const localVarPath = `/organizationFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(CreateFieldRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete an organization field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + deleteOrganizationField: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteOrganizationField', 'id', id) + const localVarPath = `/organizationFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks multiple fields as deleted. + * @summary Delete multiple organization fields in bulk + * @param {string} ids The comma-separated field IDs to delete + + * @throws {RequiredError} + */ + deleteOrganizationFields: async (ids: string, ): Promise => { + // verify required parameter 'ids' is not null or undefined + assertParamExists('deleteOrganizationFields', 'ids', ids) + const localVarPath = `/organizationFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific organization field. + * @summary Get one organization field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + getOrganizationField: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganizationField', 'id', id) + const localVarPath = `/organizationFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all organization fields. + * @summary Get all organization fields + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getOrganizationFields: async (start?: number, limit?: number, ): Promise => { + const localVarPath = `/organizationFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "admin"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates an organization field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update an organization field + * @param {number} id The ID of the field + * @param {UpdateFieldRequest} [UpdateFieldRequest] + + * @throws {RequiredError} + */ + updateOrganizationField: async (id: number, UpdateFieldRequest?: UpdateFieldRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateOrganizationField', 'id', id) + const localVarPath = `/organizationFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateFieldRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * OrganizationFieldsApi - functional programming interface + * @export + */ +export const OrganizationFieldsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = OrganizationFieldsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new organization field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new organization field + * @param {CreateFieldRequest} [CreateFieldRequest] + + * @throws {RequiredError} + */ + async addOrganizationField(CreateFieldRequest?: CreateFieldRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganizationField(CreateFieldRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete an organization field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + async deleteOrganizationField(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationField(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks multiple fields as deleted. + * @summary Delete multiple organization fields in bulk + * @param {string} ids The comma-separated field IDs to delete + + * @throws {RequiredError} + */ + async deleteOrganizationFields(ids: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationFields(ids, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific organization field. + * @summary Get one organization field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + async getOrganizationField(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationField(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all organization fields. + * @summary Get all organization fields + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getOrganizationFields(start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationFields(start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates an organization field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update an organization field + * @param {number} id The ID of the field + * @param {UpdateFieldRequest} [UpdateFieldRequest] + + * @throws {RequiredError} + */ + async updateOrganizationField(id: number, UpdateFieldRequest?: UpdateFieldRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganizationField(id, UpdateFieldRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * OrganizationFieldsApi - factory interface + * @export + */ +export const OrganizationFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = OrganizationFieldsApiFp(configuration) + return { + /** + * Adds a new organization field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new organization field + * @param {OrganizationFieldsApiAddOrganizationFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addOrganizationField(requestParameters: OrganizationFieldsApiAddOrganizationFieldRequest = {}, ): Promise { + return localVarFp.addOrganizationField(requestParameters.CreateFieldRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete an organization field + * @param {OrganizationFieldsApiDeleteOrganizationFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteOrganizationField(requestParameters: OrganizationFieldsApiDeleteOrganizationFieldRequest, ): Promise { + return localVarFp.deleteOrganizationField(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks multiple fields as deleted. + * @summary Delete multiple organization fields in bulk + * @param {OrganizationFieldsApiDeleteOrganizationFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteOrganizationFields(requestParameters: OrganizationFieldsApiDeleteOrganizationFieldsRequest, ): Promise { + return localVarFp.deleteOrganizationFields(requestParameters.ids, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific organization field. + * @summary Get one organization field + * @param {OrganizationFieldsApiGetOrganizationFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationField(requestParameters: OrganizationFieldsApiGetOrganizationFieldRequest, ): Promise { + return localVarFp.getOrganizationField(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all organization fields. + * @summary Get all organization fields + * @param {OrganizationFieldsApiGetOrganizationFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationFields(requestParameters: OrganizationFieldsApiGetOrganizationFieldsRequest = {}, ): Promise { + return localVarFp.getOrganizationFields(requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates an organization field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update an organization field + * @param {OrganizationFieldsApiUpdateOrganizationFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateOrganizationField(requestParameters: OrganizationFieldsApiUpdateOrganizationFieldRequest, ): Promise { + return localVarFp.updateOrganizationField(requestParameters.id, requestParameters.UpdateFieldRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addOrganizationField operation in OrganizationFieldsApi. + * @export + * @interface OrganizationFieldsApiAddOrganizationFieldRequest + */ +export interface OrganizationFieldsApiAddOrganizationFieldRequest { + /** + * + * @type {CreateFieldRequest} + * @memberof OrganizationFieldsApiAddOrganizationField + */ + readonly CreateFieldRequest?: CreateFieldRequest +} + +/** + * Request parameters for deleteOrganizationField operation in OrganizationFieldsApi. + * @export + * @interface OrganizationFieldsApiDeleteOrganizationFieldRequest + */ +export interface OrganizationFieldsApiDeleteOrganizationFieldRequest { + /** + * The ID of the field + * @type {number} + * @memberof OrganizationFieldsApiDeleteOrganizationField + */ + readonly id: number +} + +/** + * Request parameters for deleteOrganizationFields operation in OrganizationFieldsApi. + * @export + * @interface OrganizationFieldsApiDeleteOrganizationFieldsRequest + */ +export interface OrganizationFieldsApiDeleteOrganizationFieldsRequest { + /** + * The comma-separated field IDs to delete + * @type {string} + * @memberof OrganizationFieldsApiDeleteOrganizationFields + */ + readonly ids: string +} + +/** + * Request parameters for getOrganizationField operation in OrganizationFieldsApi. + * @export + * @interface OrganizationFieldsApiGetOrganizationFieldRequest + */ +export interface OrganizationFieldsApiGetOrganizationFieldRequest { + /** + * The ID of the field + * @type {number} + * @memberof OrganizationFieldsApiGetOrganizationField + */ + readonly id: number +} + +/** + * Request parameters for getOrganizationFields operation in OrganizationFieldsApi. + * @export + * @interface OrganizationFieldsApiGetOrganizationFieldsRequest + */ +export interface OrganizationFieldsApiGetOrganizationFieldsRequest { + /** + * Pagination start + * @type {number} + * @memberof OrganizationFieldsApiGetOrganizationFields + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof OrganizationFieldsApiGetOrganizationFields + */ + readonly limit?: number +} + +/** + * Request parameters for updateOrganizationField operation in OrganizationFieldsApi. + * @export + * @interface OrganizationFieldsApiUpdateOrganizationFieldRequest + */ +export interface OrganizationFieldsApiUpdateOrganizationFieldRequest { + /** + * The ID of the field + * @type {number} + * @memberof OrganizationFieldsApiUpdateOrganizationField + */ + readonly id: number + + /** + * + * @type {UpdateFieldRequest} + * @memberof OrganizationFieldsApiUpdateOrganizationField + */ + readonly UpdateFieldRequest?: UpdateFieldRequest +} + +/** + * OrganizationFieldsApi - object-oriented interface + * @export + * @class OrganizationFieldsApi + * @extends {BaseAPI} + */ +export class OrganizationFieldsApi extends BaseAPI { + /** + * Adds a new organization field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new organization field + * @param {OrganizationFieldsApiAddOrganizationFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationFieldsApi + */ + public addOrganizationField(requestParameters: OrganizationFieldsApiAddOrganizationFieldRequest = {}, ) { + return OrganizationFieldsApiFp(this.configuration).addOrganizationField(requestParameters.CreateFieldRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete an organization field + * @param {OrganizationFieldsApiDeleteOrganizationFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationFieldsApi + */ + public deleteOrganizationField(requestParameters: OrganizationFieldsApiDeleteOrganizationFieldRequest, ) { + return OrganizationFieldsApiFp(this.configuration).deleteOrganizationField(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks multiple fields as deleted. + * @summary Delete multiple organization fields in bulk + * @param {OrganizationFieldsApiDeleteOrganizationFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationFieldsApi + */ + public deleteOrganizationFields(requestParameters: OrganizationFieldsApiDeleteOrganizationFieldsRequest, ) { + return OrganizationFieldsApiFp(this.configuration).deleteOrganizationFields(requestParameters.ids, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific organization field. + * @summary Get one organization field + * @param {OrganizationFieldsApiGetOrganizationFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationFieldsApi + */ + public getOrganizationField(requestParameters: OrganizationFieldsApiGetOrganizationFieldRequest, ) { + return OrganizationFieldsApiFp(this.configuration).getOrganizationField(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all organization fields. + * @summary Get all organization fields + * @param {OrganizationFieldsApiGetOrganizationFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationFieldsApi + */ + public getOrganizationFields(requestParameters: OrganizationFieldsApiGetOrganizationFieldsRequest = {}, ) { + return OrganizationFieldsApiFp(this.configuration).getOrganizationFields(requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates an organization field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update an organization field + * @param {OrganizationFieldsApiUpdateOrganizationFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationFieldsApi + */ + public updateOrganizationField(requestParameters: OrganizationFieldsApiUpdateOrganizationFieldRequest, ) { + return OrganizationFieldsApiFp(this.configuration).updateOrganizationField(requestParameters.id, requestParameters.UpdateFieldRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/organization-relationships-api.ts b/src/versions/v1/api/organization-relationships-api.ts new file mode 100644 index 00000000..c7fe6177 --- /dev/null +++ b/src/versions/v1/api/organization-relationships-api.ts @@ -0,0 +1,542 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddOrganizationRelationshipRequest } from '../models'; +// @ts-ignore +import { AddOrganizationRelationshipResponse } from '../models'; +// @ts-ignore +import { DeleteOrganizationRelationshipResponse } from '../models'; +// @ts-ignore +import { GetOrganizationRelationshipResponse } from '../models'; +// @ts-ignore +import { GetOrganizationRelationshipsResponse } from '../models'; +// @ts-ignore +import { OrganizationRelationship } from '../models'; +// @ts-ignore +import { UpdateOrganizationRelationshipResponse } from '../models'; +/** + * OrganizationRelationshipsApi - axios parameter creator + * @export + */ +export const OrganizationRelationshipsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Creates and returns an organization relationship. + * @summary Create an organization relationship + * @param {AddOrganizationRelationshipRequest} [AddOrganizationRelationshipRequest] + + * @throws {RequiredError} + */ + addOrganizationRelationship: async (AddOrganizationRelationshipRequest?: AddOrganizationRelationshipRequest, ): Promise => { + const localVarPath = `/organizationRelationships`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddOrganizationRelationshipRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes an organization relationship and returns the deleted ID. + * @summary Delete an organization relationship + * @param {number} id The ID of the organization relationship + + * @throws {RequiredError} + */ + deleteOrganizationRelationship: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteOrganizationRelationship', 'id', id) + const localVarPath = `/organizationRelationships/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Finds and returns an organization relationship from its ID. + * @summary Get one organization relationship + * @param {number} id The ID of the organization relationship + * @param {number} [org_id] The ID of the base organization for the returned calculated values + + * @throws {RequiredError} + */ + getOrganizationRelationship: async (id: number, org_id?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganizationRelationship', 'id', id) + const localVarPath = `/organizationRelationships/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (org_id !== undefined) { + localVarQueryParameter['org_id'] = org_id; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Gets all of the relationships for a supplied organization ID. + * @summary Get all relationships for organization + * @param {number} org_id The ID of the organization to get relationships for + + * @throws {RequiredError} + */ + getOrganizationRelationships: async (org_id: number, ): Promise => { + // verify required parameter 'org_id' is not null or undefined + assertParamExists('getOrganizationRelationships', 'org_id', org_id) + const localVarPath = `/organizationRelationships`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (org_id !== undefined) { + localVarQueryParameter['org_id'] = org_id; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates and returns an organization relationship. + * @summary Update an organization relationship + * @param {number} id The ID of the organization relationship + * @param {OrganizationRelationship} [OrganizationRelationship] + + * @throws {RequiredError} + */ + updateOrganizationRelationship: async (id: number, OrganizationRelationship?: OrganizationRelationship, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateOrganizationRelationship', 'id', id) + const localVarPath = `/organizationRelationships/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(OrganizationRelationship, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * OrganizationRelationshipsApi - functional programming interface + * @export + */ +export const OrganizationRelationshipsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = OrganizationRelationshipsApiAxiosParamCreator(configuration) + return { + /** + * Creates and returns an organization relationship. + * @summary Create an organization relationship + * @param {AddOrganizationRelationshipRequest} [AddOrganizationRelationshipRequest] + + * @throws {RequiredError} + */ + async addOrganizationRelationship(AddOrganizationRelationshipRequest?: AddOrganizationRelationshipRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganizationRelationship(AddOrganizationRelationshipRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes an organization relationship and returns the deleted ID. + * @summary Delete an organization relationship + * @param {number} id The ID of the organization relationship + + * @throws {RequiredError} + */ + async deleteOrganizationRelationship(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationRelationship(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Finds and returns an organization relationship from its ID. + * @summary Get one organization relationship + * @param {number} id The ID of the organization relationship + * @param {number} [org_id] The ID of the base organization for the returned calculated values + + * @throws {RequiredError} + */ + async getOrganizationRelationship(id: number, org_id?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationRelationship(id, org_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Gets all of the relationships for a supplied organization ID. + * @summary Get all relationships for organization + * @param {number} org_id The ID of the organization to get relationships for + + * @throws {RequiredError} + */ + async getOrganizationRelationships(org_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationRelationships(org_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates and returns an organization relationship. + * @summary Update an organization relationship + * @param {number} id The ID of the organization relationship + * @param {OrganizationRelationship} [OrganizationRelationship] + + * @throws {RequiredError} + */ + async updateOrganizationRelationship(id: number, OrganizationRelationship?: OrganizationRelationship, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganizationRelationship(id, OrganizationRelationship, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * OrganizationRelationshipsApi - factory interface + * @export + */ +export const OrganizationRelationshipsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = OrganizationRelationshipsApiFp(configuration) + return { + /** + * Creates and returns an organization relationship. + * @summary Create an organization relationship + * @param {OrganizationRelationshipsApiAddOrganizationRelationshipRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addOrganizationRelationship(requestParameters: OrganizationRelationshipsApiAddOrganizationRelationshipRequest = {}, ): Promise { + return localVarFp.addOrganizationRelationship(requestParameters.AddOrganizationRelationshipRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes an organization relationship and returns the deleted ID. + * @summary Delete an organization relationship + * @param {OrganizationRelationshipsApiDeleteOrganizationRelationshipRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteOrganizationRelationship(requestParameters: OrganizationRelationshipsApiDeleteOrganizationRelationshipRequest, ): Promise { + return localVarFp.deleteOrganizationRelationship(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Finds and returns an organization relationship from its ID. + * @summary Get one organization relationship + * @param {OrganizationRelationshipsApiGetOrganizationRelationshipRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationRelationship(requestParameters: OrganizationRelationshipsApiGetOrganizationRelationshipRequest, ): Promise { + return localVarFp.getOrganizationRelationship(requestParameters.id, requestParameters.org_id, ).then((request) => request(axios, basePath)); + }, + /** + * Gets all of the relationships for a supplied organization ID. + * @summary Get all relationships for organization + * @param {OrganizationRelationshipsApiGetOrganizationRelationshipsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationRelationships(requestParameters: OrganizationRelationshipsApiGetOrganizationRelationshipsRequest, ): Promise { + return localVarFp.getOrganizationRelationships(requestParameters.org_id, ).then((request) => request(axios, basePath)); + }, + /** + * Updates and returns an organization relationship. + * @summary Update an organization relationship + * @param {OrganizationRelationshipsApiUpdateOrganizationRelationshipRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateOrganizationRelationship(requestParameters: OrganizationRelationshipsApiUpdateOrganizationRelationshipRequest, ): Promise { + return localVarFp.updateOrganizationRelationship(requestParameters.id, requestParameters.OrganizationRelationship, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addOrganizationRelationship operation in OrganizationRelationshipsApi. + * @export + * @interface OrganizationRelationshipsApiAddOrganizationRelationshipRequest + */ +export interface OrganizationRelationshipsApiAddOrganizationRelationshipRequest { + /** + * + * @type {AddOrganizationRelationshipRequest} + * @memberof OrganizationRelationshipsApiAddOrganizationRelationship + */ + readonly AddOrganizationRelationshipRequest?: AddOrganizationRelationshipRequest +} + +/** + * Request parameters for deleteOrganizationRelationship operation in OrganizationRelationshipsApi. + * @export + * @interface OrganizationRelationshipsApiDeleteOrganizationRelationshipRequest + */ +export interface OrganizationRelationshipsApiDeleteOrganizationRelationshipRequest { + /** + * The ID of the organization relationship + * @type {number} + * @memberof OrganizationRelationshipsApiDeleteOrganizationRelationship + */ + readonly id: number +} + +/** + * Request parameters for getOrganizationRelationship operation in OrganizationRelationshipsApi. + * @export + * @interface OrganizationRelationshipsApiGetOrganizationRelationshipRequest + */ +export interface OrganizationRelationshipsApiGetOrganizationRelationshipRequest { + /** + * The ID of the organization relationship + * @type {number} + * @memberof OrganizationRelationshipsApiGetOrganizationRelationship + */ + readonly id: number + + /** + * The ID of the base organization for the returned calculated values + * @type {number} + * @memberof OrganizationRelationshipsApiGetOrganizationRelationship + */ + readonly org_id?: number +} + +/** + * Request parameters for getOrganizationRelationships operation in OrganizationRelationshipsApi. + * @export + * @interface OrganizationRelationshipsApiGetOrganizationRelationshipsRequest + */ +export interface OrganizationRelationshipsApiGetOrganizationRelationshipsRequest { + /** + * The ID of the organization to get relationships for + * @type {number} + * @memberof OrganizationRelationshipsApiGetOrganizationRelationships + */ + readonly org_id: number +} + +/** + * Request parameters for updateOrganizationRelationship operation in OrganizationRelationshipsApi. + * @export + * @interface OrganizationRelationshipsApiUpdateOrganizationRelationshipRequest + */ +export interface OrganizationRelationshipsApiUpdateOrganizationRelationshipRequest { + /** + * The ID of the organization relationship + * @type {number} + * @memberof OrganizationRelationshipsApiUpdateOrganizationRelationship + */ + readonly id: number + + /** + * + * @type {OrganizationRelationship} + * @memberof OrganizationRelationshipsApiUpdateOrganizationRelationship + */ + readonly OrganizationRelationship?: OrganizationRelationship +} + +/** + * OrganizationRelationshipsApi - object-oriented interface + * @export + * @class OrganizationRelationshipsApi + * @extends {BaseAPI} + */ +export class OrganizationRelationshipsApi extends BaseAPI { + /** + * Creates and returns an organization relationship. + * @summary Create an organization relationship + * @param {OrganizationRelationshipsApiAddOrganizationRelationshipRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationRelationshipsApi + */ + public addOrganizationRelationship(requestParameters: OrganizationRelationshipsApiAddOrganizationRelationshipRequest = {}, ) { + return OrganizationRelationshipsApiFp(this.configuration).addOrganizationRelationship(requestParameters.AddOrganizationRelationshipRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes an organization relationship and returns the deleted ID. + * @summary Delete an organization relationship + * @param {OrganizationRelationshipsApiDeleteOrganizationRelationshipRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationRelationshipsApi + */ + public deleteOrganizationRelationship(requestParameters: OrganizationRelationshipsApiDeleteOrganizationRelationshipRequest, ) { + return OrganizationRelationshipsApiFp(this.configuration).deleteOrganizationRelationship(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Finds and returns an organization relationship from its ID. + * @summary Get one organization relationship + * @param {OrganizationRelationshipsApiGetOrganizationRelationshipRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationRelationshipsApi + */ + public getOrganizationRelationship(requestParameters: OrganizationRelationshipsApiGetOrganizationRelationshipRequest, ) { + return OrganizationRelationshipsApiFp(this.configuration).getOrganizationRelationship(requestParameters.id, requestParameters.org_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Gets all of the relationships for a supplied organization ID. + * @summary Get all relationships for organization + * @param {OrganizationRelationshipsApiGetOrganizationRelationshipsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationRelationshipsApi + */ + public getOrganizationRelationships(requestParameters: OrganizationRelationshipsApiGetOrganizationRelationshipsRequest, ) { + return OrganizationRelationshipsApiFp(this.configuration).getOrganizationRelationships(requestParameters.org_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates and returns an organization relationship. + * @summary Update an organization relationship + * @param {OrganizationRelationshipsApiUpdateOrganizationRelationshipRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationRelationshipsApi + */ + public updateOrganizationRelationship(requestParameters: OrganizationRelationshipsApiUpdateOrganizationRelationshipRequest, ) { + return OrganizationRelationshipsApiFp(this.configuration).updateOrganizationRelationship(requestParameters.id, requestParameters.OrganizationRelationship, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/organizations-api.ts b/src/versions/v1/api/organizations-api.ts new file mode 100644 index 00000000..8dfaf916 --- /dev/null +++ b/src/versions/v1/api/organizations-api.ts @@ -0,0 +1,2394 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddOrganizationFollowerRequest } from '../models'; +// @ts-ignore +import { AddOrganizationFollowerResponse } from '../models'; +// @ts-ignore +import { AddOrganizationRequest } from '../models'; +// @ts-ignore +import { AddOrganizationResponse } from '../models'; +// @ts-ignore +import { DeleteOrganizationFollowerResponse } from '../models'; +// @ts-ignore +import { DeleteOrganizationResponse } from '../models'; +// @ts-ignore +import { DeleteOrganizationsResponse } from '../models'; +// @ts-ignore +import { FailResponse } from '../models'; +// @ts-ignore +import { GetAssociatedActivitiesResponse } from '../models'; +// @ts-ignore +import { GetAssociatedDealsResponse } from '../models'; +// @ts-ignore +import { GetAssociatedFilesResponse } from '../models'; +// @ts-ignore +import { GetAssociatedFollowersResponse } from '../models'; +// @ts-ignore +import { GetAssociatedMailMessagesResponse } from '../models'; +// @ts-ignore +import { GetAssociatedOrganizationUpdatesResponse } from '../models'; +// @ts-ignore +import { GetChangelogResponse } from '../models'; +// @ts-ignore +import { GetOrganizationResponse } from '../models'; +// @ts-ignore +import { GetOrganizationSearchResponse } from '../models'; +// @ts-ignore +import { GetOrganizationsCollection200Response } from '../models'; +// @ts-ignore +import { GetOrganizationsResponse } from '../models'; +// @ts-ignore +import { GetPermittedUsersResponse1 } from '../models'; +// @ts-ignore +import { GetPersonsResponse } from '../models'; +// @ts-ignore +import { MergeOrganizationsRequest } from '../models'; +// @ts-ignore +import { MergeOrganizationsResponse } from '../models'; +// @ts-ignore +import { UpdateOrganizationRequest } from '../models'; +// @ts-ignore +import { UpdateOrganizationResponse } from '../models'; +/** + * OrganizationsApi - axios parameter creator + * @export + */ +export const OrganizationsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new organization. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the organizationFields and look for `key` values. For more information, see the tutorial for adding an organization. + * @summary Add an organization + * @param {AddOrganizationRequest} [AddOrganizationRequest] + + * @throws {RequiredError} + */ + addOrganization: async (AddOrganizationRequest?: AddOrganizationRequest, ): Promise => { + const localVarPath = `/organizations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddOrganizationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a follower to an organization. + * @summary Add a follower to an organization + * @param {number} id The ID of the organization + * @param {AddOrganizationFollowerRequest} [AddOrganizationFollowerRequest] + + * @throws {RequiredError} + */ + addOrganizationFollower: async (id: number, AddOrganizationFollowerRequest?: AddOrganizationFollowerRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addOrganizationFollower', 'id', id) + const localVarPath = `/organizations/{id}/followers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddOrganizationFollowerRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks an organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete an organization + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + deleteOrganization: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteOrganization', 'id', id) + const localVarPath = `/organizations/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a follower from an organization. You can retrieve the `follower_id` from the List followers of an organization endpoint. + * @summary Delete a follower from an organization + * @param {number} id The ID of the organization + * @param {number} follower_id The ID of the follower + + * @throws {RequiredError} + */ + deleteOrganizationFollower: async (id: number, follower_id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteOrganizationFollower', 'id', id) + // verify required parameter 'follower_id' is not null or undefined + assertParamExists('deleteOrganizationFollower', 'follower_id', follower_id) + const localVarPath = `/organizations/{id}/followers/{follower_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks multiple organizations as deleted. After 30 days, the organizations will be permanently deleted. + * @summary Delete multiple organizations in bulk + * @param {string} ids The comma-separated IDs that will be deleted + + * @throws {RequiredError} + */ + deleteOrganizations: async (ids: string, ): Promise => { + // verify required parameter 'ids' is not null or undefined + assertParamExists('deleteOrganizations', 'ids', ids) + const localVarPath = `/organizations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields. + * @summary Get details of an organization + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + getOrganization: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganization', 'id', id) + const localVarPath = `/organizations/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists activities associated with an organization. + * @summary List activities associated with an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities. + * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result + + * @throws {RequiredError} + */ + getOrganizationActivities: async (id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganizationActivities', 'id', id) + const localVarPath = `/organizations/{id}/activities` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (done !== undefined) { + localVarQueryParameter['done'] = done; + } + + if (exclude !== undefined) { + localVarQueryParameter['exclude'] = exclude; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists updates about field values of an organization. + * @summary List updates about organization field values + * @param {number} id The ID of the organization + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getOrganizationChangelog: async (id: number, cursor?: string, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganizationChangelog', 'id', id) + const localVarPath = `/organizations/{id}/changelog` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists deals associated with an organization. + * @summary List deals associated with an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + * @param {0 | 1} [only_primary_association] If set, only deals that are directly associated to the organization are fetched. If not set (default), all deals are fetched that are either directly or indirectly related to the organization. Indirect relations include relations through custom, organization-type fields and through persons of the given organization. + + * @throws {RequiredError} + */ + getOrganizationDeals: async (id: number, start?: number, limit?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', sort?: string, only_primary_association?: 0 | 1, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganizationDeals', 'id', id) + const localVarPath = `/organizations/{id}/deals` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + if (only_primary_association !== undefined) { + localVarQueryParameter['only_primary_association'] = only_primary_association; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists files associated with an organization. + * @summary List files attached to an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. + * @param {string} [sort] Supported fields: `id`, `update_time` + + * @throws {RequiredError} + */ + getOrganizationFiles: async (id: number, start?: number, limit?: number, sort?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganizationFiles', 'id', id) + const localVarPath = `/organizations/{id}/files` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists the followers of an organization. + * @summary List followers of an organization + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + getOrganizationFollowers: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganizationFollowers', 'id', id) + const localVarPath = `/organizations/{id}/followers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists mail messages associated with an organization. + * @summary List mail messages associated with an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getOrganizationMailMessages: async (id: number, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganizationMailMessages', 'id', id) + const localVarPath = `/organizations/{id}/mailMessages` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["mail:read", "mail:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists persons associated with an organization.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List persons of an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getOrganizationPersons: async (id: number, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganizationPersons', 'id', id) + const localVarPath = `/organizations/{id}/persons` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists updates about an organization. + * @summary List updates about an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. + * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document). + + * @throws {RequiredError} + */ + getOrganizationUpdates: async (id: number, start?: number, limit?: number, all_changes?: string, items?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganizationUpdates', 'id', id) + const localVarPath = `/organizations/{id}/flow` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (all_changes !== undefined) { + localVarQueryParameter['all_changes'] = all_changes; + } + + if (items !== undefined) { + localVarQueryParameter['items'] = items; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List users permitted to access an organization. + * @summary List permitted users + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + getOrganizationUsers: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganizationUsers', 'id', id) + const localVarPath = `/organizations/{id}/permittedUsers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all organizations. + * @summary Get all organizations + * @param {number} [user_id] If supplied, only organizations owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. + * @param {number} [filter_id] The ID of the filter to use + * @param {string} [first_char] If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + + * @throws {RequiredError} + */ + getOrganizations: async (user_id?: number, filter_id?: number, first_char?: string, start?: number, limit?: number, sort?: string, ): Promise => { + const localVarPath = `/organizations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (first_char !== undefined) { + localVarQueryParameter['first_char'] = first_char; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all organizations. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all organizations (BETA) + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {number} [owner_id] If supplied, only organizations owned by the given user will be returned + * @param {string} [first_char] If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) + + * @throws {RequiredError} + */ + getOrganizationsCollection: async (cursor?: string, limit?: number, since?: string, until?: string, owner_id?: number, first_char?: string, ): Promise => { + const localVarPath = `/organizations/collection`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (since !== undefined) { + localVarQueryParameter['since'] = since; + } + + if (until !== undefined) { + localVarQueryParameter['until'] = until; + } + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (first_char !== undefined) { + localVarQueryParameter['first_char'] = first_char; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Merges an organization with another organization. For more information, see the tutorial for merging two organizations. + * @summary Merge two organizations + * @param {number} id The ID of the organization + * @param {MergeOrganizationsRequest} [MergeOrganizationsRequest] + + * @throws {RequiredError} + */ + mergeOrganizations: async (id: number, MergeOrganizationsRequest?: MergeOrganizationsRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('mergeOrganizations', 'id', id) + const localVarPath = `/organizations/{id}/merge` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(MergeOrganizationsRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'address' | 'custom_fields' | 'notes' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + searchOrganization: async (term: string, fields?: 'address' | 'custom_fields' | 'notes' | 'name', exact_match?: boolean, start?: number, limit?: number, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchOrganization', 'term', term) + const localVarPath = `/organizations/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of an organization. + * @summary Update an organization + * @param {number} id The ID of the organization + * @param {UpdateOrganizationRequest} [UpdateOrganizationRequest] + + * @throws {RequiredError} + */ + updateOrganization: async (id: number, UpdateOrganizationRequest?: UpdateOrganizationRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateOrganization', 'id', id) + const localVarPath = `/organizations/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateOrganizationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * OrganizationsApi - functional programming interface + * @export + */ +export const OrganizationsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new organization. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the organizationFields and look for `key` values. For more information, see the tutorial for adding an organization. + * @summary Add an organization + * @param {AddOrganizationRequest} [AddOrganizationRequest] + + * @throws {RequiredError} + */ + async addOrganization(AddOrganizationRequest?: AddOrganizationRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganization(AddOrganizationRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a follower to an organization. + * @summary Add a follower to an organization + * @param {number} id The ID of the organization + * @param {AddOrganizationFollowerRequest} [AddOrganizationFollowerRequest] + + * @throws {RequiredError} + */ + async addOrganizationFollower(id: number, AddOrganizationFollowerRequest?: AddOrganizationFollowerRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganizationFollower(id, AddOrganizationFollowerRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks an organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete an organization + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + async deleteOrganization(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganization(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a follower from an organization. You can retrieve the `follower_id` from the List followers of an organization endpoint. + * @summary Delete a follower from an organization + * @param {number} id The ID of the organization + * @param {number} follower_id The ID of the follower + + * @throws {RequiredError} + */ + async deleteOrganizationFollower(id: number, follower_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizationFollower(id, follower_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks multiple organizations as deleted. After 30 days, the organizations will be permanently deleted. + * @summary Delete multiple organizations in bulk + * @param {string} ids The comma-separated IDs that will be deleted + + * @throws {RequiredError} + */ + async deleteOrganizations(ids: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganizations(ids, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields. + * @summary Get details of an organization + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + async getOrganization(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganization(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists activities associated with an organization. + * @summary List activities associated with an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities. + * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result + + * @throws {RequiredError} + */ + async getOrganizationActivities(id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationActivities(id, start, limit, done, exclude, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists updates about field values of an organization. + * @summary List updates about organization field values + * @param {number} id The ID of the organization + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getOrganizationChangelog(id: number, cursor?: string, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationChangelog(id, cursor, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists deals associated with an organization. + * @summary List deals associated with an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + * @param {0 | 1} [only_primary_association] If set, only deals that are directly associated to the organization are fetched. If not set (default), all deals are fetched that are either directly or indirectly related to the organization. Indirect relations include relations through custom, organization-type fields and through persons of the given organization. + + * @throws {RequiredError} + */ + async getOrganizationDeals(id: number, start?: number, limit?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', sort?: string, only_primary_association?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationDeals(id, start, limit, status, sort, only_primary_association, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists files associated with an organization. + * @summary List files attached to an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. + * @param {string} [sort] Supported fields: `id`, `update_time` + + * @throws {RequiredError} + */ + async getOrganizationFiles(id: number, start?: number, limit?: number, sort?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationFiles(id, start, limit, sort, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists the followers of an organization. + * @summary List followers of an organization + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + async getOrganizationFollowers(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationFollowers(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists mail messages associated with an organization. + * @summary List mail messages associated with an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getOrganizationMailMessages(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationMailMessages(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists persons associated with an organization.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List persons of an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getOrganizationPersons(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationPersons(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists updates about an organization. + * @summary List updates about an organization + * @param {number} id The ID of the organization + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. + * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document). + + * @throws {RequiredError} + */ + async getOrganizationUpdates(id: number, start?: number, limit?: number, all_changes?: string, items?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationUpdates(id, start, limit, all_changes, items, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * List users permitted to access an organization. + * @summary List permitted users + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + async getOrganizationUsers(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationUsers(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all organizations. + * @summary Get all organizations + * @param {number} [user_id] If supplied, only organizations owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. + * @param {number} [filter_id] The ID of the filter to use + * @param {string} [first_char] If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + + * @throws {RequiredError} + */ + async getOrganizations(user_id?: number, filter_id?: number, first_char?: string, start?: number, limit?: number, sort?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizations(user_id, filter_id, first_char, start, limit, sort, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all organizations. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all organizations (BETA) + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {number} [owner_id] If supplied, only organizations owned by the given user will be returned + * @param {string} [first_char] If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) + + * @throws {RequiredError} + */ + async getOrganizationsCollection(cursor?: string, limit?: number, since?: string, until?: string, owner_id?: number, first_char?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizationsCollection(cursor, limit, since, until, owner_id, first_char, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Merges an organization with another organization. For more information, see the tutorial for merging two organizations. + * @summary Merge two organizations + * @param {number} id The ID of the organization + * @param {MergeOrganizationsRequest} [MergeOrganizationsRequest] + + * @throws {RequiredError} + */ + async mergeOrganizations(id: number, MergeOrganizationsRequest?: MergeOrganizationsRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.mergeOrganizations(id, MergeOrganizationsRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'address' | 'custom_fields' | 'notes' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async searchOrganization(term: string, fields?: 'address' | 'custom_fields' | 'notes' | 'name', exact_match?: boolean, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchOrganization(term, fields, exact_match, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of an organization. + * @summary Update an organization + * @param {number} id The ID of the organization + * @param {UpdateOrganizationRequest} [UpdateOrganizationRequest] + + * @throws {RequiredError} + */ + async updateOrganization(id: number, UpdateOrganizationRequest?: UpdateOrganizationRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(id, UpdateOrganizationRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * OrganizationsApi - factory interface + * @export + */ +export const OrganizationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = OrganizationsApiFp(configuration) + return { + /** + * Adds a new organization. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the organizationFields and look for `key` values. For more information, see the tutorial for adding an organization. + * @summary Add an organization + * @param {OrganizationsApiAddOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addOrganization(requestParameters: OrganizationsApiAddOrganizationRequest = {}, ): Promise { + return localVarFp.addOrganization(requestParameters.AddOrganizationRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a follower to an organization. + * @summary Add a follower to an organization + * @param {OrganizationsApiAddOrganizationFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addOrganizationFollower(requestParameters: OrganizationsApiAddOrganizationFollowerRequest, ): Promise { + return localVarFp.addOrganizationFollower(requestParameters.id, requestParameters.AddOrganizationFollowerRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks an organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete an organization + * @param {OrganizationsApiDeleteOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteOrganization(requestParameters: OrganizationsApiDeleteOrganizationRequest, ): Promise { + return localVarFp.deleteOrganization(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a follower from an organization. You can retrieve the `follower_id` from the List followers of an organization endpoint. + * @summary Delete a follower from an organization + * @param {OrganizationsApiDeleteOrganizationFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteOrganizationFollower(requestParameters: OrganizationsApiDeleteOrganizationFollowerRequest, ): Promise { + return localVarFp.deleteOrganizationFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks multiple organizations as deleted. After 30 days, the organizations will be permanently deleted. + * @summary Delete multiple organizations in bulk + * @param {OrganizationsApiDeleteOrganizationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteOrganizations(requestParameters: OrganizationsApiDeleteOrganizationsRequest, ): Promise { + return localVarFp.deleteOrganizations(requestParameters.ids, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields. + * @summary Get details of an organization + * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, ): Promise { + return localVarFp.getOrganization(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists activities associated with an organization. + * @summary List activities associated with an organization + * @param {OrganizationsApiGetOrganizationActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationActivities(requestParameters: OrganizationsApiGetOrganizationActivitiesRequest, ): Promise { + return localVarFp.getOrganizationActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(axios, basePath)); + }, + /** + * Lists updates about field values of an organization. + * @summary List updates about organization field values + * @param {OrganizationsApiGetOrganizationChangelogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationChangelog(requestParameters: OrganizationsApiGetOrganizationChangelogRequest, ): Promise { + return localVarFp.getOrganizationChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Lists deals associated with an organization. + * @summary List deals associated with an organization + * @param {OrganizationsApiGetOrganizationDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationDeals(requestParameters: OrganizationsApiGetOrganizationDealsRequest, ): Promise { + return localVarFp.getOrganizationDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status, requestParameters.sort, requestParameters.only_primary_association, ).then((request) => request(axios, basePath)); + }, + /** + * Lists files associated with an organization. + * @summary List files attached to an organization + * @param {OrganizationsApiGetOrganizationFilesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationFiles(requestParameters: OrganizationsApiGetOrganizationFilesRequest, ): Promise { + return localVarFp.getOrganizationFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(axios, basePath)); + }, + /** + * Lists the followers of an organization. + * @summary List followers of an organization + * @param {OrganizationsApiGetOrganizationFollowersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationFollowers(requestParameters: OrganizationsApiGetOrganizationFollowersRequest, ): Promise { + return localVarFp.getOrganizationFollowers(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists mail messages associated with an organization. + * @summary List mail messages associated with an organization + * @param {OrganizationsApiGetOrganizationMailMessagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationMailMessages(requestParameters: OrganizationsApiGetOrganizationMailMessagesRequest, ): Promise { + return localVarFp.getOrganizationMailMessages(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Lists persons associated with an organization.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List persons of an organization + * @param {OrganizationsApiGetOrganizationPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationPersons(requestParameters: OrganizationsApiGetOrganizationPersonsRequest, ): Promise { + return localVarFp.getOrganizationPersons(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Lists updates about an organization. + * @summary List updates about an organization + * @param {OrganizationsApiGetOrganizationUpdatesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationUpdates(requestParameters: OrganizationsApiGetOrganizationUpdatesRequest, ): Promise { + return localVarFp.getOrganizationUpdates(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.all_changes, requestParameters.items, ).then((request) => request(axios, basePath)); + }, + /** + * List users permitted to access an organization. + * @summary List permitted users + * @param {OrganizationsApiGetOrganizationUsersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationUsers(requestParameters: OrganizationsApiGetOrganizationUsersRequest, ): Promise { + return localVarFp.getOrganizationUsers(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all organizations. + * @summary Get all organizations + * @param {OrganizationsApiGetOrganizationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizations(requestParameters: OrganizationsApiGetOrganizationsRequest = {}, ): Promise { + return localVarFp.getOrganizations(requestParameters.user_id, requestParameters.filter_id, requestParameters.first_char, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all organizations. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all organizations (BETA) + * @param {OrganizationsApiGetOrganizationsCollectionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizationsCollection(requestParameters: OrganizationsApiGetOrganizationsCollectionRequest = {}, ): Promise { + return localVarFp.getOrganizationsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.owner_id, requestParameters.first_char, ).then((request) => request(axios, basePath)); + }, + /** + * Merges an organization with another organization. For more information, see the tutorial for merging two organizations. + * @summary Merge two organizations + * @param {OrganizationsApiMergeOrganizationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + mergeOrganizations(requestParameters: OrganizationsApiMergeOrganizationsRequest, ): Promise { + return localVarFp.mergeOrganizations(requestParameters.id, requestParameters.MergeOrganizationsRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {OrganizationsApiSearchOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchOrganization(requestParameters: OrganizationsApiSearchOrganizationRequest, ): Promise { + return localVarFp.searchOrganization(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of an organization. + * @summary Update an organization + * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, ): Promise { + return localVarFp.updateOrganization(requestParameters.id, requestParameters.UpdateOrganizationRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addOrganization operation in OrganizationsApi. + * @export + * @interface OrganizationsApiAddOrganizationRequest + */ +export interface OrganizationsApiAddOrganizationRequest { + /** + * + * @type {AddOrganizationRequest} + * @memberof OrganizationsApiAddOrganization + */ + readonly AddOrganizationRequest?: AddOrganizationRequest +} + +/** + * Request parameters for addOrganizationFollower operation in OrganizationsApi. + * @export + * @interface OrganizationsApiAddOrganizationFollowerRequest + */ +export interface OrganizationsApiAddOrganizationFollowerRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiAddOrganizationFollower + */ + readonly id: number + + /** + * + * @type {AddOrganizationFollowerRequest} + * @memberof OrganizationsApiAddOrganizationFollower + */ + readonly AddOrganizationFollowerRequest?: AddOrganizationFollowerRequest +} + +/** + * Request parameters for deleteOrganization operation in OrganizationsApi. + * @export + * @interface OrganizationsApiDeleteOrganizationRequest + */ +export interface OrganizationsApiDeleteOrganizationRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiDeleteOrganization + */ + readonly id: number +} + +/** + * Request parameters for deleteOrganizationFollower operation in OrganizationsApi. + * @export + * @interface OrganizationsApiDeleteOrganizationFollowerRequest + */ +export interface OrganizationsApiDeleteOrganizationFollowerRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiDeleteOrganizationFollower + */ + readonly id: number + + /** + * The ID of the follower + * @type {number} + * @memberof OrganizationsApiDeleteOrganizationFollower + */ + readonly follower_id: number +} + +/** + * Request parameters for deleteOrganizations operation in OrganizationsApi. + * @export + * @interface OrganizationsApiDeleteOrganizationsRequest + */ +export interface OrganizationsApiDeleteOrganizationsRequest { + /** + * The comma-separated IDs that will be deleted + * @type {string} + * @memberof OrganizationsApiDeleteOrganizations + */ + readonly ids: string +} + +/** + * Request parameters for getOrganization operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationRequest + */ +export interface OrganizationsApiGetOrganizationRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiGetOrganization + */ + readonly id: number +} + +/** + * Request parameters for getOrganizationActivities operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationActivitiesRequest + */ +export interface OrganizationsApiGetOrganizationActivitiesRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiGetOrganizationActivities + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof OrganizationsApiGetOrganizationActivities + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof OrganizationsApiGetOrganizationActivities + */ + readonly limit?: number + + /** + * Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities. + * @type {0 | 1} + * @memberof OrganizationsApiGetOrganizationActivities + */ + readonly done?: 0 | 1 + + /** + * A comma-separated string of activity IDs to exclude from result + * @type {string} + * @memberof OrganizationsApiGetOrganizationActivities + */ + readonly exclude?: string +} + +/** + * Request parameters for getOrganizationChangelog operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationChangelogRequest + */ +export interface OrganizationsApiGetOrganizationChangelogRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiGetOrganizationChangelog + */ + readonly id: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof OrganizationsApiGetOrganizationChangelog + */ + readonly cursor?: string + + /** + * Items shown per page + * @type {number} + * @memberof OrganizationsApiGetOrganizationChangelog + */ + readonly limit?: number +} + +/** + * Request parameters for getOrganizationDeals operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationDealsRequest + */ +export interface OrganizationsApiGetOrganizationDealsRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiGetOrganizationDeals + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof OrganizationsApiGetOrganizationDeals + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof OrganizationsApiGetOrganizationDeals + */ + readonly limit?: number + + /** + * Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + * @type {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} + * @memberof OrganizationsApiGetOrganizationDeals + */ + readonly status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted' + + /** + * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + * @type {string} + * @memberof OrganizationsApiGetOrganizationDeals + */ + readonly sort?: string + + /** + * If set, only deals that are directly associated to the organization are fetched. If not set (default), all deals are fetched that are either directly or indirectly related to the organization. Indirect relations include relations through custom, organization-type fields and through persons of the given organization. + * @type {0 | 1} + * @memberof OrganizationsApiGetOrganizationDeals + */ + readonly only_primary_association?: 0 | 1 +} + +/** + * Request parameters for getOrganizationFiles operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationFilesRequest + */ +export interface OrganizationsApiGetOrganizationFilesRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiGetOrganizationFiles + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof OrganizationsApiGetOrganizationFiles + */ + readonly start?: number + + /** + * Items shown per page. Please note that a maximum value of 100 is allowed. + * @type {number} + * @memberof OrganizationsApiGetOrganizationFiles + */ + readonly limit?: number + + /** + * Supported fields: `id`, `update_time` + * @type {string} + * @memberof OrganizationsApiGetOrganizationFiles + */ + readonly sort?: string +} + +/** + * Request parameters for getOrganizationFollowers operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationFollowersRequest + */ +export interface OrganizationsApiGetOrganizationFollowersRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiGetOrganizationFollowers + */ + readonly id: number +} + +/** + * Request parameters for getOrganizationMailMessages operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationMailMessagesRequest + */ +export interface OrganizationsApiGetOrganizationMailMessagesRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiGetOrganizationMailMessages + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof OrganizationsApiGetOrganizationMailMessages + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof OrganizationsApiGetOrganizationMailMessages + */ + readonly limit?: number +} + +/** + * Request parameters for getOrganizationPersons operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationPersonsRequest + */ +export interface OrganizationsApiGetOrganizationPersonsRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiGetOrganizationPersons + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof OrganizationsApiGetOrganizationPersons + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof OrganizationsApiGetOrganizationPersons + */ + readonly limit?: number +} + +/** + * Request parameters for getOrganizationUpdates operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationUpdatesRequest + */ +export interface OrganizationsApiGetOrganizationUpdatesRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiGetOrganizationUpdates + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof OrganizationsApiGetOrganizationUpdates + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof OrganizationsApiGetOrganizationUpdates + */ + readonly limit?: number + + /** + * Whether to show custom field updates or not. 1 = Include custom field changes. If omitted, returns changes without custom field updates. + * @type {string} + * @memberof OrganizationsApiGetOrganizationUpdates + */ + readonly all_changes?: string + + /** + * 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). + * @type {string} + * @memberof OrganizationsApiGetOrganizationUpdates + */ + readonly items?: string +} + +/** + * Request parameters for getOrganizationUsers operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationUsersRequest + */ +export interface OrganizationsApiGetOrganizationUsersRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiGetOrganizationUsers + */ + readonly id: number +} + +/** + * Request parameters for getOrganizations operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationsRequest + */ +export interface OrganizationsApiGetOrganizationsRequest { + /** + * If supplied, only organizations owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. + * @type {number} + * @memberof OrganizationsApiGetOrganizations + */ + readonly user_id?: number + + /** + * The ID of the filter to use + * @type {number} + * @memberof OrganizationsApiGetOrganizations + */ + readonly filter_id?: number + + /** + * If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) + * @type {string} + * @memberof OrganizationsApiGetOrganizations + */ + readonly first_char?: string + + /** + * Pagination start + * @type {number} + * @memberof OrganizationsApiGetOrganizations + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof OrganizationsApiGetOrganizations + */ + readonly limit?: number + + /** + * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + * @type {string} + * @memberof OrganizationsApiGetOrganizations + */ + readonly sort?: string +} + +/** + * Request parameters for getOrganizationsCollection operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationsCollectionRequest + */ +export interface OrganizationsApiGetOrganizationsCollectionRequest { + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof OrganizationsApiGetOrganizationsCollection + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof OrganizationsApiGetOrganizationsCollection + */ + readonly limit?: number + + /** + * The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @type {string} + * @memberof OrganizationsApiGetOrganizationsCollection + */ + readonly since?: string + + /** + * The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @type {string} + * @memberof OrganizationsApiGetOrganizationsCollection + */ + readonly until?: string + + /** + * If supplied, only organizations owned by the given user will be returned + * @type {number} + * @memberof OrganizationsApiGetOrganizationsCollection + */ + readonly owner_id?: number + + /** + * If supplied, only organizations whose name starts with the specified letter will be returned (case-insensitive) + * @type {string} + * @memberof OrganizationsApiGetOrganizationsCollection + */ + readonly first_char?: string +} + +/** + * Request parameters for mergeOrganizations operation in OrganizationsApi. + * @export + * @interface OrganizationsApiMergeOrganizationsRequest + */ +export interface OrganizationsApiMergeOrganizationsRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiMergeOrganizations + */ + readonly id: number + + /** + * + * @type {MergeOrganizationsRequest} + * @memberof OrganizationsApiMergeOrganizations + */ + readonly MergeOrganizationsRequest?: MergeOrganizationsRequest +} + +/** + * Request parameters for searchOrganization operation in OrganizationsApi. + * @export + * @interface OrganizationsApiSearchOrganizationRequest + */ +export interface OrganizationsApiSearchOrganizationRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof OrganizationsApiSearchOrganization + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {'address' | 'custom_fields' | 'notes' | 'name'} + * @memberof OrganizationsApiSearchOrganization + */ + readonly fields?: 'address' | 'custom_fields' | 'notes' | 'name' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof OrganizationsApiSearchOrganization + */ + readonly exact_match?: boolean + + /** + * Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @type {number} + * @memberof OrganizationsApiSearchOrganization + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof OrganizationsApiSearchOrganization + */ + readonly limit?: number +} + +/** + * Request parameters for updateOrganization operation in OrganizationsApi. + * @export + * @interface OrganizationsApiUpdateOrganizationRequest + */ +export interface OrganizationsApiUpdateOrganizationRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiUpdateOrganization + */ + readonly id: number + + /** + * + * @type {UpdateOrganizationRequest} + * @memberof OrganizationsApiUpdateOrganization + */ + readonly UpdateOrganizationRequest?: UpdateOrganizationRequest +} + +/** + * OrganizationsApi - object-oriented interface + * @export + * @class OrganizationsApi + * @extends {BaseAPI} + */ +export class OrganizationsApi extends BaseAPI { + /** + * Adds a new organization. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the organizationFields and look for `key` values. For more information, see the tutorial for adding an organization. + * @summary Add an organization + * @param {OrganizationsApiAddOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public addOrganization(requestParameters: OrganizationsApiAddOrganizationRequest = {}, ) { + return OrganizationsApiFp(this.configuration).addOrganization(requestParameters.AddOrganizationRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a follower to an organization. + * @summary Add a follower to an organization + * @param {OrganizationsApiAddOrganizationFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public addOrganizationFollower(requestParameters: OrganizationsApiAddOrganizationFollowerRequest, ) { + return OrganizationsApiFp(this.configuration).addOrganizationFollower(requestParameters.id, requestParameters.AddOrganizationFollowerRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks an organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete an organization + * @param {OrganizationsApiDeleteOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public deleteOrganization(requestParameters: OrganizationsApiDeleteOrganizationRequest, ) { + return OrganizationsApiFp(this.configuration).deleteOrganization(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a follower from an organization. You can retrieve the `follower_id` from the List followers of an organization endpoint. + * @summary Delete a follower from an organization + * @param {OrganizationsApiDeleteOrganizationFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public deleteOrganizationFollower(requestParameters: OrganizationsApiDeleteOrganizationFollowerRequest, ) { + return OrganizationsApiFp(this.configuration).deleteOrganizationFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks multiple organizations as deleted. After 30 days, the organizations will be permanently deleted. + * @summary Delete multiple organizations in bulk + * @param {OrganizationsApiDeleteOrganizationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public deleteOrganizations(requestParameters: OrganizationsApiDeleteOrganizationsRequest, ) { + return OrganizationsApiFp(this.configuration).deleteOrganizations(requestParameters.ids, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of organizationFields. + * @summary Get details of an organization + * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, ) { + return OrganizationsApiFp(this.configuration).getOrganization(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists activities associated with an organization. + * @summary List activities associated with an organization + * @param {OrganizationsApiGetOrganizationActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizationActivities(requestParameters: OrganizationsApiGetOrganizationActivitiesRequest, ) { + return OrganizationsApiFp(this.configuration).getOrganizationActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists updates about field values of an organization. + * @summary List updates about organization field values + * @param {OrganizationsApiGetOrganizationChangelogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizationChangelog(requestParameters: OrganizationsApiGetOrganizationChangelogRequest, ) { + return OrganizationsApiFp(this.configuration).getOrganizationChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists deals associated with an organization. + * @summary List deals associated with an organization + * @param {OrganizationsApiGetOrganizationDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizationDeals(requestParameters: OrganizationsApiGetOrganizationDealsRequest, ) { + return OrganizationsApiFp(this.configuration).getOrganizationDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status, requestParameters.sort, requestParameters.only_primary_association, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists files associated with an organization. + * @summary List files attached to an organization + * @param {OrganizationsApiGetOrganizationFilesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizationFiles(requestParameters: OrganizationsApiGetOrganizationFilesRequest, ) { + return OrganizationsApiFp(this.configuration).getOrganizationFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists the followers of an organization. + * @summary List followers of an organization + * @param {OrganizationsApiGetOrganizationFollowersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizationFollowers(requestParameters: OrganizationsApiGetOrganizationFollowersRequest, ) { + return OrganizationsApiFp(this.configuration).getOrganizationFollowers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists mail messages associated with an organization. + * @summary List mail messages associated with an organization + * @param {OrganizationsApiGetOrganizationMailMessagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizationMailMessages(requestParameters: OrganizationsApiGetOrganizationMailMessagesRequest, ) { + return OrganizationsApiFp(this.configuration).getOrganizationMailMessages(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists persons associated with an organization.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary List persons of an organization + * @param {OrganizationsApiGetOrganizationPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizationPersons(requestParameters: OrganizationsApiGetOrganizationPersonsRequest, ) { + return OrganizationsApiFp(this.configuration).getOrganizationPersons(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists updates about an organization. + * @summary List updates about an organization + * @param {OrganizationsApiGetOrganizationUpdatesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizationUpdates(requestParameters: OrganizationsApiGetOrganizationUpdatesRequest, ) { + return OrganizationsApiFp(this.configuration).getOrganizationUpdates(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.all_changes, requestParameters.items, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * List users permitted to access an organization. + * @summary List permitted users + * @param {OrganizationsApiGetOrganizationUsersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizationUsers(requestParameters: OrganizationsApiGetOrganizationUsersRequest, ) { + return OrganizationsApiFp(this.configuration).getOrganizationUsers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all organizations. + * @summary Get all organizations + * @param {OrganizationsApiGetOrganizationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizations(requestParameters: OrganizationsApiGetOrganizationsRequest = {}, ) { + return OrganizationsApiFp(this.configuration).getOrganizations(requestParameters.user_id, requestParameters.filter_id, requestParameters.first_char, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all organizations. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all organizations (BETA) + * @param {OrganizationsApiGetOrganizationsCollectionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizationsCollection(requestParameters: OrganizationsApiGetOrganizationsCollectionRequest = {}, ) { + return OrganizationsApiFp(this.configuration).getOrganizationsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.owner_id, requestParameters.first_char, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Merges an organization with another organization. For more information, see the tutorial for merging two organizations. + * @summary Merge two organizations + * @param {OrganizationsApiMergeOrganizationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public mergeOrganizations(requestParameters: OrganizationsApiMergeOrganizationsRequest, ) { + return OrganizationsApiFp(this.configuration).mergeOrganizations(requestParameters.id, requestParameters.MergeOrganizationsRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {OrganizationsApiSearchOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public searchOrganization(requestParameters: OrganizationsApiSearchOrganizationRequest, ) { + return OrganizationsApiFp(this.configuration).searchOrganization(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of an organization. + * @summary Update an organization + * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, ) { + return OrganizationsApiFp(this.configuration).updateOrganization(requestParameters.id, requestParameters.UpdateOrganizationRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/permission-sets-api.ts b/src/versions/v1/api/permission-sets-api.ts new file mode 100644 index 00000000..4505db33 --- /dev/null +++ b/src/versions/v1/api/permission-sets-api.ts @@ -0,0 +1,357 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetPermissionSetResponse } from '../models'; +// @ts-ignore +import { GetPermissionSetsResponse } from '../models'; +// @ts-ignore +import { GetUserAssignmentsToPermissionSetResponse } from '../models'; +/** + * PermissionSetsApi - axios parameter creator + * @export + */ +export const PermissionSetsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Returns data about a specific permission set. + * @summary Get one permission set + * @param {string} id The ID of the permission set + + * @throws {RequiredError} + */ + getPermissionSet: async (id: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPermissionSet', 'id', id) + const localVarPath = `/permissionSets/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the list of assignments for a permission set. + * @summary List permission set assignments + * @param {string} id The ID of the permission set + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getPermissionSetAssignments: async (id: string, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPermissionSetAssignments', 'id', id) + const localVarPath = `/permissionSets/{id}/assignments` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all permission sets. + * @summary Get all permission sets + * @param {'sales' | 'projects' | 'campaigns' | 'global' | 'account_settings'} [app] The app to filter the permission sets by + + * @throws {RequiredError} + */ + getPermissionSets: async (app?: 'sales' | 'projects' | 'campaigns' | 'global' | 'account_settings', ): Promise => { + const localVarPath = `/permissionSets`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + if (app !== undefined) { + localVarQueryParameter['app'] = app; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * PermissionSetsApi - functional programming interface + * @export + */ +export const PermissionSetsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PermissionSetsApiAxiosParamCreator(configuration) + return { + /** + * Returns data about a specific permission set. + * @summary Get one permission set + * @param {string} id The ID of the permission set + + * @throws {RequiredError} + */ + async getPermissionSet(id: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPermissionSet(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the list of assignments for a permission set. + * @summary List permission set assignments + * @param {string} id The ID of the permission set + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getPermissionSetAssignments(id: string, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPermissionSetAssignments(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all permission sets. + * @summary Get all permission sets + * @param {'sales' | 'projects' | 'campaigns' | 'global' | 'account_settings'} [app] The app to filter the permission sets by + + * @throws {RequiredError} + */ + async getPermissionSets(app?: 'sales' | 'projects' | 'campaigns' | 'global' | 'account_settings', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPermissionSets(app, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * PermissionSetsApi - factory interface + * @export + */ +export const PermissionSetsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PermissionSetsApiFp(configuration) + return { + /** + * Returns data about a specific permission set. + * @summary Get one permission set + * @param {PermissionSetsApiGetPermissionSetRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPermissionSet(requestParameters: PermissionSetsApiGetPermissionSetRequest, ): Promise { + return localVarFp.getPermissionSet(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the list of assignments for a permission set. + * @summary List permission set assignments + * @param {PermissionSetsApiGetPermissionSetAssignmentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPermissionSetAssignments(requestParameters: PermissionSetsApiGetPermissionSetAssignmentsRequest, ): Promise { + return localVarFp.getPermissionSetAssignments(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all permission sets. + * @summary Get all permission sets + * @param {PermissionSetsApiGetPermissionSetsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPermissionSets(requestParameters: PermissionSetsApiGetPermissionSetsRequest = {}, ): Promise { + return localVarFp.getPermissionSets(requestParameters.app, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for getPermissionSet operation in PermissionSetsApi. + * @export + * @interface PermissionSetsApiGetPermissionSetRequest + */ +export interface PermissionSetsApiGetPermissionSetRequest { + /** + * The ID of the permission set + * @type {string} + * @memberof PermissionSetsApiGetPermissionSet + */ + readonly id: string +} + +/** + * Request parameters for getPermissionSetAssignments operation in PermissionSetsApi. + * @export + * @interface PermissionSetsApiGetPermissionSetAssignmentsRequest + */ +export interface PermissionSetsApiGetPermissionSetAssignmentsRequest { + /** + * The ID of the permission set + * @type {string} + * @memberof PermissionSetsApiGetPermissionSetAssignments + */ + readonly id: string + + /** + * Pagination start + * @type {number} + * @memberof PermissionSetsApiGetPermissionSetAssignments + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof PermissionSetsApiGetPermissionSetAssignments + */ + readonly limit?: number +} + +/** + * Request parameters for getPermissionSets operation in PermissionSetsApi. + * @export + * @interface PermissionSetsApiGetPermissionSetsRequest + */ +export interface PermissionSetsApiGetPermissionSetsRequest { + /** + * The app to filter the permission sets by + * @type {'sales' | 'projects' | 'campaigns' | 'global' | 'account_settings'} + * @memberof PermissionSetsApiGetPermissionSets + */ + readonly app?: 'sales' | 'projects' | 'campaigns' | 'global' | 'account_settings' +} + +/** + * PermissionSetsApi - object-oriented interface + * @export + * @class PermissionSetsApi + * @extends {BaseAPI} + */ +export class PermissionSetsApi extends BaseAPI { + /** + * Returns data about a specific permission set. + * @summary Get one permission set + * @param {PermissionSetsApiGetPermissionSetRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PermissionSetsApi + */ + public getPermissionSet(requestParameters: PermissionSetsApiGetPermissionSetRequest, ) { + return PermissionSetsApiFp(this.configuration).getPermissionSet(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the list of assignments for a permission set. + * @summary List permission set assignments + * @param {PermissionSetsApiGetPermissionSetAssignmentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PermissionSetsApi + */ + public getPermissionSetAssignments(requestParameters: PermissionSetsApiGetPermissionSetAssignmentsRequest, ) { + return PermissionSetsApiFp(this.configuration).getPermissionSetAssignments(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all permission sets. + * @summary Get all permission sets + * @param {PermissionSetsApiGetPermissionSetsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PermissionSetsApi + */ + public getPermissionSets(requestParameters: PermissionSetsApiGetPermissionSetsRequest = {}, ) { + return PermissionSetsApiFp(this.configuration).getPermissionSets(requestParameters.app, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/person-fields-api.ts b/src/versions/v1/api/person-fields-api.ts new file mode 100644 index 00000000..fa830bd9 --- /dev/null +++ b/src/versions/v1/api/person-fields-api.ts @@ -0,0 +1,629 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { CreateFieldRequest } from '../models'; +// @ts-ignore +import { DeleteFieldsResponse } from '../models'; +// @ts-ignore +import { DeleteResponse } from '../models'; +// @ts-ignore +import { GetFieldResponse } from '../models'; +// @ts-ignore +import { GetFieldsResponse } from '../models'; +// @ts-ignore +import { UpdateFieldRequest } from '../models'; +/** + * PersonFieldsApi - axios parameter creator + * @export + */ +export const PersonFieldsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new person field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new person field + * @param {CreateFieldRequest} [CreateFieldRequest] + + * @throws {RequiredError} + */ + addPersonField: async (CreateFieldRequest?: CreateFieldRequest, ): Promise => { + const localVarPath = `/personFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(CreateFieldRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a person field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + deletePersonField: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deletePersonField', 'id', id) + const localVarPath = `/personFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks multiple fields as deleted. + * @summary Delete multiple person fields in bulk + * @param {string} ids The comma-separated field IDs to delete + + * @throws {RequiredError} + */ + deletePersonFields: async (ids: string, ): Promise => { + // verify required parameter 'ids' is not null or undefined + assertParamExists('deletePersonFields', 'ids', ids) + const localVarPath = `/personFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific person field. + * @summary Get one person field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + getPersonField: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPersonField', 'id', id) + const localVarPath = `/personFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all person fields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary Get all person fields + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getPersonFields: async (start?: number, limit?: number, ): Promise => { + const localVarPath = `/personFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "admin"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates a person field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a person field + * @param {number} id The ID of the field + * @param {UpdateFieldRequest} [UpdateFieldRequest] + + * @throws {RequiredError} + */ + updatePersonField: async (id: number, UpdateFieldRequest?: UpdateFieldRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updatePersonField', 'id', id) + const localVarPath = `/personFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateFieldRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * PersonFieldsApi - functional programming interface + * @export + */ +export const PersonFieldsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PersonFieldsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new person field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new person field + * @param {CreateFieldRequest} [CreateFieldRequest] + + * @throws {RequiredError} + */ + async addPersonField(CreateFieldRequest?: CreateFieldRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addPersonField(CreateFieldRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a person field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + async deletePersonField(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePersonField(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks multiple fields as deleted. + * @summary Delete multiple person fields in bulk + * @param {string} ids The comma-separated field IDs to delete + + * @throws {RequiredError} + */ + async deletePersonFields(ids: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePersonFields(ids, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific person field. + * @summary Get one person field + * @param {number} id The ID of the field + + * @throws {RequiredError} + */ + async getPersonField(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonField(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all person fields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary Get all person fields + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getPersonFields(start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonFields(start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates a person field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a person field + * @param {number} id The ID of the field + * @param {UpdateFieldRequest} [UpdateFieldRequest] + + * @throws {RequiredError} + */ + async updatePersonField(id: number, UpdateFieldRequest?: UpdateFieldRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatePersonField(id, UpdateFieldRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * PersonFieldsApi - factory interface + * @export + */ +export const PersonFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PersonFieldsApiFp(configuration) + return { + /** + * Adds a new person field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new person field + * @param {PersonFieldsApiAddPersonFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addPersonField(requestParameters: PersonFieldsApiAddPersonFieldRequest = {}, ): Promise { + return localVarFp.addPersonField(requestParameters.CreateFieldRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a person field + * @param {PersonFieldsApiDeletePersonFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deletePersonField(requestParameters: PersonFieldsApiDeletePersonFieldRequest, ): Promise { + return localVarFp.deletePersonField(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks multiple fields as deleted. + * @summary Delete multiple person fields in bulk + * @param {PersonFieldsApiDeletePersonFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deletePersonFields(requestParameters: PersonFieldsApiDeletePersonFieldsRequest, ): Promise { + return localVarFp.deletePersonFields(requestParameters.ids, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific person field. + * @summary Get one person field + * @param {PersonFieldsApiGetPersonFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonField(requestParameters: PersonFieldsApiGetPersonFieldRequest, ): Promise { + return localVarFp.getPersonField(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all person fields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary Get all person fields + * @param {PersonFieldsApiGetPersonFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonFields(requestParameters: PersonFieldsApiGetPersonFieldsRequest = {}, ): Promise { + return localVarFp.getPersonFields(requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates a person field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a person field + * @param {PersonFieldsApiUpdatePersonFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updatePersonField(requestParameters: PersonFieldsApiUpdatePersonFieldRequest, ): Promise { + return localVarFp.updatePersonField(requestParameters.id, requestParameters.UpdateFieldRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addPersonField operation in PersonFieldsApi. + * @export + * @interface PersonFieldsApiAddPersonFieldRequest + */ +export interface PersonFieldsApiAddPersonFieldRequest { + /** + * + * @type {CreateFieldRequest} + * @memberof PersonFieldsApiAddPersonField + */ + readonly CreateFieldRequest?: CreateFieldRequest +} + +/** + * Request parameters for deletePersonField operation in PersonFieldsApi. + * @export + * @interface PersonFieldsApiDeletePersonFieldRequest + */ +export interface PersonFieldsApiDeletePersonFieldRequest { + /** + * The ID of the field + * @type {number} + * @memberof PersonFieldsApiDeletePersonField + */ + readonly id: number +} + +/** + * Request parameters for deletePersonFields operation in PersonFieldsApi. + * @export + * @interface PersonFieldsApiDeletePersonFieldsRequest + */ +export interface PersonFieldsApiDeletePersonFieldsRequest { + /** + * The comma-separated field IDs to delete + * @type {string} + * @memberof PersonFieldsApiDeletePersonFields + */ + readonly ids: string +} + +/** + * Request parameters for getPersonField operation in PersonFieldsApi. + * @export + * @interface PersonFieldsApiGetPersonFieldRequest + */ +export interface PersonFieldsApiGetPersonFieldRequest { + /** + * The ID of the field + * @type {number} + * @memberof PersonFieldsApiGetPersonField + */ + readonly id: number +} + +/** + * Request parameters for getPersonFields operation in PersonFieldsApi. + * @export + * @interface PersonFieldsApiGetPersonFieldsRequest + */ +export interface PersonFieldsApiGetPersonFieldsRequest { + /** + * Pagination start + * @type {number} + * @memberof PersonFieldsApiGetPersonFields + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof PersonFieldsApiGetPersonFields + */ + readonly limit?: number +} + +/** + * Request parameters for updatePersonField operation in PersonFieldsApi. + * @export + * @interface PersonFieldsApiUpdatePersonFieldRequest + */ +export interface PersonFieldsApiUpdatePersonFieldRequest { + /** + * The ID of the field + * @type {number} + * @memberof PersonFieldsApiUpdatePersonField + */ + readonly id: number + + /** + * + * @type {UpdateFieldRequest} + * @memberof PersonFieldsApiUpdatePersonField + */ + readonly UpdateFieldRequest?: UpdateFieldRequest +} + +/** + * PersonFieldsApi - object-oriented interface + * @export + * @class PersonFieldsApi + * @extends {BaseAPI} + */ +export class PersonFieldsApi extends BaseAPI { + /** + * Adds a new person field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new person field + * @param {PersonFieldsApiAddPersonFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonFieldsApi + */ + public addPersonField(requestParameters: PersonFieldsApiAddPersonFieldRequest = {}, ) { + return PersonFieldsApiFp(this.configuration).addPersonField(requestParameters.CreateFieldRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a person field + * @param {PersonFieldsApiDeletePersonFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonFieldsApi + */ + public deletePersonField(requestParameters: PersonFieldsApiDeletePersonFieldRequest, ) { + return PersonFieldsApiFp(this.configuration).deletePersonField(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks multiple fields as deleted. + * @summary Delete multiple person fields in bulk + * @param {PersonFieldsApiDeletePersonFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonFieldsApi + */ + public deletePersonFields(requestParameters: PersonFieldsApiDeletePersonFieldsRequest, ) { + return PersonFieldsApiFp(this.configuration).deletePersonFields(requestParameters.ids, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific person field. + * @summary Get one person field + * @param {PersonFieldsApiGetPersonFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonFieldsApi + */ + public getPersonField(requestParameters: PersonFieldsApiGetPersonFieldRequest, ) { + return PersonFieldsApiFp(this.configuration).getPersonField(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all person fields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary Get all person fields + * @param {PersonFieldsApiGetPersonFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonFieldsApi + */ + public getPersonFields(requestParameters: PersonFieldsApiGetPersonFieldsRequest = {}, ) { + return PersonFieldsApiFp(this.configuration).getPersonFields(requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates a person field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a person field + * @param {PersonFieldsApiUpdatePersonFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonFieldsApi + */ + public updatePersonField(requestParameters: PersonFieldsApiUpdatePersonFieldRequest, ) { + return PersonFieldsApiFp(this.configuration).updatePersonField(requestParameters.id, requestParameters.UpdateFieldRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/persons-api.ts b/src/versions/v1/api/persons-api.ts new file mode 100644 index 00000000..edfb766c --- /dev/null +++ b/src/versions/v1/api/persons-api.ts @@ -0,0 +1,2654 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddPersonFollowerRequest } from '../models'; +// @ts-ignore +import { AddPersonFollowerResponse } from '../models'; +// @ts-ignore +import { AddPersonPictureResponse } from '../models'; +// @ts-ignore +import { AddPersonRequest } from '../models'; +// @ts-ignore +import { AddPersonResponse } from '../models'; +// @ts-ignore +import { DeletePersonResponse } from '../models'; +// @ts-ignore +import { DeletePersonsResponse } from '../models'; +// @ts-ignore +import { FailResponse } from '../models'; +// @ts-ignore +import { GetAssociatedActivitiesResponse } from '../models'; +// @ts-ignore +import { GetAssociatedDealsResponse } from '../models'; +// @ts-ignore +import { GetAssociatedFilesResponse } from '../models'; +// @ts-ignore +import { GetAssociatedMailMessagesResponse } from '../models'; +// @ts-ignore +import { GetAssociatedPersonUpdatesResponse } from '../models'; +// @ts-ignore +import { GetChangelogResponse } from '../models'; +// @ts-ignore +import { GetListFollowersResponse } from '../models'; +// @ts-ignore +import { GetPermittedUsersResponse1 } from '../models'; +// @ts-ignore +import { GetPersonDetailsResponse } from '../models'; +// @ts-ignore +import { GetPersonProductsResponse } from '../models'; +// @ts-ignore +import { GetPersonSearchResponse } from '../models'; +// @ts-ignore +import { GetPersonsCollection200Response } from '../models'; +// @ts-ignore +import { GetPersonsResponse1 } from '../models'; +// @ts-ignore +import { MergePersonsRequest } from '../models'; +// @ts-ignore +import { MergePersonsResponse } from '../models'; +// @ts-ignore +import { UpdatePersonRequest } from '../models'; +// @ts-ignore +import { UpdatePersonResponse } from '../models'; +/** + * PersonsApi - axios parameter creator + * @export + */ +export const PersonsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for `key` values.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. + * @summary Add a person + * @param {AddPersonRequest} [AddPersonRequest] + + * @throws {RequiredError} + */ + addPerson: async (AddPersonRequest?: AddPersonRequest, ): Promise => { + const localVarPath = `/persons`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddPersonRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a follower to a person. + * @summary Add a follower to a person + * @param {number} id The ID of the person + * @param {AddPersonFollowerRequest} [AddPersonFollowerRequest] + + * @throws {RequiredError} + */ + addPersonFollower: async (id: number, AddPersonFollowerRequest?: AddPersonFollowerRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addPersonFollower', 'id', id) + const localVarPath = `/persons/{id}/followers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddPersonFollowerRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a picture to a person. If a picture is already set, the old picture will be replaced. Added image (or the cropping parameters supplied with the request) should have an equal width and height and should be at least 128 pixels. GIF, JPG and PNG are accepted. All added images will be resized to 128 and 512 pixel wide squares. + * @summary Add person picture + * @param {number} id The ID of the person + * @param {File} file One image supplied in the multipart/form-data encoding + * @param {number} [crop_x] X coordinate to where start cropping form (in pixels) + * @param {number} [crop_y] Y coordinate to where start cropping form (in pixels) + * @param {number} [crop_width] The width of the cropping area (in pixels) + * @param {number} [crop_height] The height of the cropping area (in pixels) + + * @throws {RequiredError} + */ + addPersonPicture: async (id: number, file: File, crop_x?: number, crop_y?: number, crop_width?: number, crop_height?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addPersonPicture', 'id', id) + // verify required parameter 'file' is not null or undefined + assertParamExists('addPersonPicture', 'file', file) + const localVarPath = `/persons/{id}/picture` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + if (crop_x !== undefined) { + localVarFormParams.append('crop_x', crop_x as any); + } + + if (crop_y !== undefined) { + localVarFormParams.append('crop_y', crop_y as any); + } + + if (crop_width !== undefined) { + localVarFormParams.append('crop_width', crop_width as any); + } + + if (crop_height !== undefined) { + localVarFormParams.append('crop_height', crop_height as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + deletePerson: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deletePerson', 'id', id) + const localVarPath = `/persons/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a follower from a person. + * @summary Delete a follower from a person + * @param {number} id The ID of the person + * @param {number} follower_id The ID of the follower + + * @throws {RequiredError} + */ + deletePersonFollower: async (id: number, follower_id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deletePersonFollower', 'id', id) + // verify required parameter 'follower_id' is not null or undefined + assertParamExists('deletePersonFollower', 'follower_id', follower_id) + const localVarPath = `/persons/{id}/followers/{follower_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a person’s picture. + * @summary Delete person picture + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + deletePersonPicture: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deletePersonPicture', 'id', id) + const localVarPath = `/persons/{id}/picture` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted. + * @summary Delete multiple persons in bulk + * @param {string} ids The comma-separated IDs that will be deleted + + * @throws {RequiredError} + */ + deletePersons: async (ids: string, ): Promise => { + // verify required parameter 'ids' is not null or undefined + assertParamExists('deletePersons', 'ids', ids) + const localVarPath = `/persons`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary Get details of a person + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + getPerson: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPerson', 'id', id) + const localVarPath = `/persons/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists activities associated with a person. + * @summary List activities associated with a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. + * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result + + * @throws {RequiredError} + */ + getPersonActivities: async (id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPersonActivities', 'id', id) + const localVarPath = `/persons/{id}/activities` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (done !== undefined) { + localVarQueryParameter['done'] = done; + } + + if (exclude !== undefined) { + localVarQueryParameter['exclude'] = exclude; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists updates about field values of a person. + * @summary List updates about person field values + * @param {number} id The ID of the person + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getPersonChangelog: async (id: number, cursor?: string, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPersonChangelog', 'id', id) + const localVarPath = `/persons/{id}/changelog` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists deals associated with a person. + * @summary List deals associated with a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + + * @throws {RequiredError} + */ + getPersonDeals: async (id: number, start?: number, limit?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', sort?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPersonDeals', 'id', id) + const localVarPath = `/persons/{id}/deals` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists files associated with a person. + * @summary List files attached to a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. + * @param {string} [sort] Supported fields: `id`, `update_time` + + * @throws {RequiredError} + */ + getPersonFiles: async (id: number, start?: number, limit?: number, sort?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPersonFiles', 'id', id) + const localVarPath = `/persons/{id}/files` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists the followers of a person. + * @summary List followers of a person + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + getPersonFollowers: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPersonFollowers', 'id', id) + const localVarPath = `/persons/{id}/followers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists mail messages associated with a person. + * @summary List mail messages associated with a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getPersonMailMessages: async (id: number, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPersonMailMessages', 'id', id) + const localVarPath = `/persons/{id}/mailMessages` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["mail:read", "mail:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists products associated with a person. + * @summary List products associated with a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getPersonProducts: async (id: number, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPersonProducts', 'id', id) + const localVarPath = `/persons/{id}/products` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists updates about a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint\'s response will also include updates for the `marketing_status` field. + * @summary List updates about a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. + * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). + + * @throws {RequiredError} + */ + getPersonUpdates: async (id: number, start?: number, limit?: number, all_changes?: string, items?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPersonUpdates', 'id', id) + const localVarPath = `/persons/{id}/flow` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (all_changes !== undefined) { + localVarQueryParameter['all_changes'] = all_changes; + } + + if (items !== undefined) { + localVarQueryParameter['items'] = items; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * List users permitted to access a person. + * @summary List permitted users + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + getPersonUsers: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPersonUsers', 'id', id) + const localVarPath = `/persons/{id}/permittedUsers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all persons. + * @summary Get all persons + * @param {number} [user_id] If supplied, only persons owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. + * @param {number} [filter_id] The ID of the filter to use + * @param {string} [first_char] If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + + * @throws {RequiredError} + */ + getPersons: async (user_id?: number, filter_id?: number, first_char?: string, start?: number, limit?: number, sort?: string, ): Promise => { + const localVarPath = `/persons`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (first_char !== undefined) { + localVarQueryParameter['first_char'] = first_char; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all persons. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all persons (BETA) + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {number} [owner_id] If supplied, only persons owned by the given user will be returned + * @param {string} [first_char] If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) + + * @throws {RequiredError} + */ + getPersonsCollection: async (cursor?: string, limit?: number, since?: string, until?: string, owner_id?: number, first_char?: string, ): Promise => { + const localVarPath = `/persons/collection`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (since !== undefined) { + localVarQueryParameter['since'] = since; + } + + if (until !== undefined) { + localVarQueryParameter['until'] = until; + } + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (first_char !== undefined) { + localVarQueryParameter['first_char'] = first_char; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Merges a person with another person. For more information, see the tutorial for merging two persons. + * @summary Merge two persons + * @param {number} id The ID of the person + * @param {MergePersonsRequest} [MergePersonsRequest] + + * @throws {RequiredError} + */ + mergePersons: async (id: number, MergePersonsRequest?: MergePersonsRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('mergePersons', 'id', id) + const localVarPath = `/persons/{id}/merge` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(MergePersonsRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. + * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + searchPersons: async (term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', start?: number, limit?: number, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchPersons', 'term', term) + const localVarPath = `/persons/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (organization_id !== undefined) { + localVarQueryParameter['organization_id'] = organization_id; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a person. For more information, see the tutorial for updating a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. + * @summary Update a person + * @param {number} id The ID of the person + * @param {UpdatePersonRequest} [UpdatePersonRequest] + + * @throws {RequiredError} + */ + updatePerson: async (id: number, UpdatePersonRequest?: UpdatePersonRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updatePerson', 'id', id) + const localVarPath = `/persons/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdatePersonRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * PersonsApi - functional programming interface + * @export + */ +export const PersonsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PersonsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for `key` values.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. + * @summary Add a person + * @param {AddPersonRequest} [AddPersonRequest] + + * @throws {RequiredError} + */ + async addPerson(AddPersonRequest?: AddPersonRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addPerson(AddPersonRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a follower to a person. + * @summary Add a follower to a person + * @param {number} id The ID of the person + * @param {AddPersonFollowerRequest} [AddPersonFollowerRequest] + + * @throws {RequiredError} + */ + async addPersonFollower(id: number, AddPersonFollowerRequest?: AddPersonFollowerRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addPersonFollower(id, AddPersonFollowerRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a picture to a person. If a picture is already set, the old picture will be replaced. Added image (or the cropping parameters supplied with the request) should have an equal width and height and should be at least 128 pixels. GIF, JPG and PNG are accepted. All added images will be resized to 128 and 512 pixel wide squares. + * @summary Add person picture + * @param {number} id The ID of the person + * @param {File} file One image supplied in the multipart/form-data encoding + * @param {number} [crop_x] X coordinate to where start cropping form (in pixels) + * @param {number} [crop_y] Y coordinate to where start cropping form (in pixels) + * @param {number} [crop_width] The width of the cropping area (in pixels) + * @param {number} [crop_height] The height of the cropping area (in pixels) + + * @throws {RequiredError} + */ + async addPersonPicture(id: number, file: File, crop_x?: number, crop_y?: number, crop_width?: number, crop_height?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addPersonPicture(id, file, crop_x, crop_y, crop_width, crop_height, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + async deletePerson(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePerson(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a follower from a person. + * @summary Delete a follower from a person + * @param {number} id The ID of the person + * @param {number} follower_id The ID of the follower + + * @throws {RequiredError} + */ + async deletePersonFollower(id: number, follower_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePersonFollower(id, follower_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a person’s picture. + * @summary Delete person picture + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + async deletePersonPicture(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePersonPicture(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted. + * @summary Delete multiple persons in bulk + * @param {string} ids The comma-separated IDs that will be deleted + + * @throws {RequiredError} + */ + async deletePersons(ids: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePersons(ids, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary Get details of a person + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + async getPerson(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists activities associated with a person. + * @summary List activities associated with a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {0 | 1} [done] Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. + * @param {string} [exclude] A comma-separated string of activity IDs to exclude from result + + * @throws {RequiredError} + */ + async getPersonActivities(id: number, start?: number, limit?: number, done?: 0 | 1, exclude?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonActivities(id, start, limit, done, exclude, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists updates about field values of a person. + * @summary List updates about person field values + * @param {number} id The ID of the person + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getPersonChangelog(id: number, cursor?: string, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonChangelog(id, cursor, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists deals associated with a person. + * @summary List deals associated with a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + + * @throws {RequiredError} + */ + async getPersonDeals(id: number, start?: number, limit?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', sort?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonDeals(id, start, limit, status, sort, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists files associated with a person. + * @summary List files attached to a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. + * @param {string} [sort] Supported fields: `id`, `update_time` + + * @throws {RequiredError} + */ + async getPersonFiles(id: number, start?: number, limit?: number, sort?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonFiles(id, start, limit, sort, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists the followers of a person. + * @summary List followers of a person + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + async getPersonFollowers(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonFollowers(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists mail messages associated with a person. + * @summary List mail messages associated with a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getPersonMailMessages(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonMailMessages(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists products associated with a person. + * @summary List products associated with a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getPersonProducts(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonProducts(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists updates about a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint\'s response will also include updates for the `marketing_status` field. + * @summary List updates about a person + * @param {number} id The ID of the person + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [all_changes] Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. + * @param {string} [items] A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). + + * @throws {RequiredError} + */ + async getPersonUpdates(id: number, start?: number, limit?: number, all_changes?: string, items?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonUpdates(id, start, limit, all_changes, items, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * List users permitted to access a person. + * @summary List permitted users + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + async getPersonUsers(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonUsers(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all persons. + * @summary Get all persons + * @param {number} [user_id] If supplied, only persons owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. + * @param {number} [filter_id] The ID of the filter to use + * @param {string} [first_char] If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {string} [sort] The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + + * @throws {RequiredError} + */ + async getPersons(user_id?: number, filter_id?: number, first_char?: string, start?: number, limit?: number, sort?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersons(user_id, filter_id, first_char, start, limit, sort, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all persons. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all persons (BETA) + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [since] The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {string} [until] The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @param {number} [owner_id] If supplied, only persons owned by the given user will be returned + * @param {string} [first_char] If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) + + * @throws {RequiredError} + */ + async getPersonsCollection(cursor?: string, limit?: number, since?: string, until?: string, owner_id?: number, first_char?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonsCollection(cursor, limit, since, until, owner_id, first_char, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Merges a person with another person. For more information, see the tutorial for merging two persons. + * @summary Merge two persons + * @param {number} id The ID of the person + * @param {MergePersonsRequest} [MergePersonsRequest] + + * @throws {RequiredError} + */ + async mergePersons(id: number, MergePersonsRequest?: MergePersonsRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.mergePersons(id, MergePersonsRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. + * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async searchPersons(term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchPersons(term, fields, exact_match, organization_id, include_fields, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a person. For more information, see the tutorial for updating a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. + * @summary Update a person + * @param {number} id The ID of the person + * @param {UpdatePersonRequest} [UpdatePersonRequest] + + * @throws {RequiredError} + */ + async updatePerson(id: number, UpdatePersonRequest?: UpdatePersonRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, UpdatePersonRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * PersonsApi - factory interface + * @export + */ +export const PersonsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PersonsApiFp(configuration) + return { + /** + * Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for `key` values.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. + * @summary Add a person + * @param {PersonsApiAddPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addPerson(requestParameters: PersonsApiAddPersonRequest = {}, ): Promise { + return localVarFp.addPerson(requestParameters.AddPersonRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a follower to a person. + * @summary Add a follower to a person + * @param {PersonsApiAddPersonFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addPersonFollower(requestParameters: PersonsApiAddPersonFollowerRequest, ): Promise { + return localVarFp.addPersonFollower(requestParameters.id, requestParameters.AddPersonFollowerRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a picture to a person. If a picture is already set, the old picture will be replaced. Added image (or the cropping parameters supplied with the request) should have an equal width and height and should be at least 128 pixels. GIF, JPG and PNG are accepted. All added images will be resized to 128 and 512 pixel wide squares. + * @summary Add person picture + * @param {PersonsApiAddPersonPictureRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addPersonPicture(requestParameters: PersonsApiAddPersonPictureRequest, ): Promise { + return localVarFp.addPersonPicture(requestParameters.id, requestParameters.file, requestParameters.crop_x, requestParameters.crop_y, requestParameters.crop_width, requestParameters.crop_height, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {PersonsApiDeletePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deletePerson(requestParameters: PersonsApiDeletePersonRequest, ): Promise { + return localVarFp.deletePerson(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a follower from a person. + * @summary Delete a follower from a person + * @param {PersonsApiDeletePersonFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deletePersonFollower(requestParameters: PersonsApiDeletePersonFollowerRequest, ): Promise { + return localVarFp.deletePersonFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a person’s picture. + * @summary Delete person picture + * @param {PersonsApiDeletePersonPictureRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deletePersonPicture(requestParameters: PersonsApiDeletePersonPictureRequest, ): Promise { + return localVarFp.deletePersonPicture(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted. + * @summary Delete multiple persons in bulk + * @param {PersonsApiDeletePersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deletePersons(requestParameters: PersonsApiDeletePersonsRequest, ): Promise { + return localVarFp.deletePersons(requestParameters.ids, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary Get details of a person + * @param {PersonsApiGetPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPerson(requestParameters: PersonsApiGetPersonRequest, ): Promise { + return localVarFp.getPerson(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists activities associated with a person. + * @summary List activities associated with a person + * @param {PersonsApiGetPersonActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonActivities(requestParameters: PersonsApiGetPersonActivitiesRequest, ): Promise { + return localVarFp.getPersonActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(axios, basePath)); + }, + /** + * Lists updates about field values of a person. + * @summary List updates about person field values + * @param {PersonsApiGetPersonChangelogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonChangelog(requestParameters: PersonsApiGetPersonChangelogRequest, ): Promise { + return localVarFp.getPersonChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Lists deals associated with a person. + * @summary List deals associated with a person + * @param {PersonsApiGetPersonDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonDeals(requestParameters: PersonsApiGetPersonDealsRequest, ): Promise { + return localVarFp.getPersonDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status, requestParameters.sort, ).then((request) => request(axios, basePath)); + }, + /** + * Lists files associated with a person. + * @summary List files attached to a person + * @param {PersonsApiGetPersonFilesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonFiles(requestParameters: PersonsApiGetPersonFilesRequest, ): Promise { + return localVarFp.getPersonFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(axios, basePath)); + }, + /** + * Lists the followers of a person. + * @summary List followers of a person + * @param {PersonsApiGetPersonFollowersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonFollowers(requestParameters: PersonsApiGetPersonFollowersRequest, ): Promise { + return localVarFp.getPersonFollowers(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists mail messages associated with a person. + * @summary List mail messages associated with a person + * @param {PersonsApiGetPersonMailMessagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonMailMessages(requestParameters: PersonsApiGetPersonMailMessagesRequest, ): Promise { + return localVarFp.getPersonMailMessages(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Lists products associated with a person. + * @summary List products associated with a person + * @param {PersonsApiGetPersonProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonProducts(requestParameters: PersonsApiGetPersonProductsRequest, ): Promise { + return localVarFp.getPersonProducts(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Lists updates about a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint\'s response will also include updates for the `marketing_status` field. + * @summary List updates about a person + * @param {PersonsApiGetPersonUpdatesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonUpdates(requestParameters: PersonsApiGetPersonUpdatesRequest, ): Promise { + return localVarFp.getPersonUpdates(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.all_changes, requestParameters.items, ).then((request) => request(axios, basePath)); + }, + /** + * List users permitted to access a person. + * @summary List permitted users + * @param {PersonsApiGetPersonUsersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonUsers(requestParameters: PersonsApiGetPersonUsersRequest, ): Promise { + return localVarFp.getPersonUsers(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all persons. + * @summary Get all persons + * @param {PersonsApiGetPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersons(requestParameters: PersonsApiGetPersonsRequest = {}, ): Promise { + return localVarFp.getPersons(requestParameters.user_id, requestParameters.filter_id, requestParameters.first_char, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all persons. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all persons (BETA) + * @param {PersonsApiGetPersonsCollectionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersonsCollection(requestParameters: PersonsApiGetPersonsCollectionRequest = {}, ): Promise { + return localVarFp.getPersonsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.owner_id, requestParameters.first_char, ).then((request) => request(axios, basePath)); + }, + /** + * Merges a person with another person. For more information, see the tutorial for merging two persons. + * @summary Merge two persons + * @param {PersonsApiMergePersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + mergePersons(requestParameters: PersonsApiMergePersonsRequest, ): Promise { + return localVarFp.mergePersons(requestParameters.id, requestParameters.MergePersonsRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {PersonsApiSearchPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchPersons(requestParameters: PersonsApiSearchPersonsRequest, ): Promise { + return localVarFp.searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a person. For more information, see the tutorial for updating a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. + * @summary Update a person + * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updatePerson(requestParameters: PersonsApiUpdatePersonRequest, ): Promise { + return localVarFp.updatePerson(requestParameters.id, requestParameters.UpdatePersonRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addPerson operation in PersonsApi. + * @export + * @interface PersonsApiAddPersonRequest + */ +export interface PersonsApiAddPersonRequest { + /** + * + * @type {AddPersonRequest} + * @memberof PersonsApiAddPerson + */ + readonly AddPersonRequest?: AddPersonRequest +} + +/** + * Request parameters for addPersonFollower operation in PersonsApi. + * @export + * @interface PersonsApiAddPersonFollowerRequest + */ +export interface PersonsApiAddPersonFollowerRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiAddPersonFollower + */ + readonly id: number + + /** + * + * @type {AddPersonFollowerRequest} + * @memberof PersonsApiAddPersonFollower + */ + readonly AddPersonFollowerRequest?: AddPersonFollowerRequest +} + +/** + * Request parameters for addPersonPicture operation in PersonsApi. + * @export + * @interface PersonsApiAddPersonPictureRequest + */ +export interface PersonsApiAddPersonPictureRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiAddPersonPicture + */ + readonly id: number + + /** + * One image supplied in the multipart/form-data encoding + * @type {File} + * @memberof PersonsApiAddPersonPicture + */ + readonly file: File + + /** + * X coordinate to where start cropping form (in pixels) + * @type {number} + * @memberof PersonsApiAddPersonPicture + */ + readonly crop_x?: number + + /** + * Y coordinate to where start cropping form (in pixels) + * @type {number} + * @memberof PersonsApiAddPersonPicture + */ + readonly crop_y?: number + + /** + * The width of the cropping area (in pixels) + * @type {number} + * @memberof PersonsApiAddPersonPicture + */ + readonly crop_width?: number + + /** + * The height of the cropping area (in pixels) + * @type {number} + * @memberof PersonsApiAddPersonPicture + */ + readonly crop_height?: number +} + +/** + * Request parameters for deletePerson operation in PersonsApi. + * @export + * @interface PersonsApiDeletePersonRequest + */ +export interface PersonsApiDeletePersonRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiDeletePerson + */ + readonly id: number +} + +/** + * Request parameters for deletePersonFollower operation in PersonsApi. + * @export + * @interface PersonsApiDeletePersonFollowerRequest + */ +export interface PersonsApiDeletePersonFollowerRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiDeletePersonFollower + */ + readonly id: number + + /** + * The ID of the follower + * @type {number} + * @memberof PersonsApiDeletePersonFollower + */ + readonly follower_id: number +} + +/** + * Request parameters for deletePersonPicture operation in PersonsApi. + * @export + * @interface PersonsApiDeletePersonPictureRequest + */ +export interface PersonsApiDeletePersonPictureRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiDeletePersonPicture + */ + readonly id: number +} + +/** + * Request parameters for deletePersons operation in PersonsApi. + * @export + * @interface PersonsApiDeletePersonsRequest + */ +export interface PersonsApiDeletePersonsRequest { + /** + * The comma-separated IDs that will be deleted + * @type {string} + * @memberof PersonsApiDeletePersons + */ + readonly ids: string +} + +/** + * Request parameters for getPerson operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonRequest + */ +export interface PersonsApiGetPersonRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiGetPerson + */ + readonly id: number +} + +/** + * Request parameters for getPersonActivities operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonActivitiesRequest + */ +export interface PersonsApiGetPersonActivitiesRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiGetPersonActivities + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof PersonsApiGetPersonActivities + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof PersonsApiGetPersonActivities + */ + readonly limit?: number + + /** + * Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted, returns both Done and Not done activities. + * @type {0 | 1} + * @memberof PersonsApiGetPersonActivities + */ + readonly done?: 0 | 1 + + /** + * A comma-separated string of activity IDs to exclude from result + * @type {string} + * @memberof PersonsApiGetPersonActivities + */ + readonly exclude?: string +} + +/** + * Request parameters for getPersonChangelog operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonChangelogRequest + */ +export interface PersonsApiGetPersonChangelogRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiGetPersonChangelog + */ + readonly id: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof PersonsApiGetPersonChangelog + */ + readonly cursor?: string + + /** + * Items shown per page + * @type {number} + * @memberof PersonsApiGetPersonChangelog + */ + readonly limit?: number +} + +/** + * Request parameters for getPersonDeals operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonDealsRequest + */ +export interface PersonsApiGetPersonDealsRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiGetPersonDeals + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof PersonsApiGetPersonDeals + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof PersonsApiGetPersonDeals + */ + readonly limit?: number + + /** + * Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + * @type {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} + * @memberof PersonsApiGetPersonDeals + */ + readonly status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted' + + /** + * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + * @type {string} + * @memberof PersonsApiGetPersonDeals + */ + readonly sort?: string +} + +/** + * Request parameters for getPersonFiles operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonFilesRequest + */ +export interface PersonsApiGetPersonFilesRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiGetPersonFiles + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof PersonsApiGetPersonFiles + */ + readonly start?: number + + /** + * Items shown per page. Please note that a maximum value of 100 is allowed. + * @type {number} + * @memberof PersonsApiGetPersonFiles + */ + readonly limit?: number + + /** + * Supported fields: `id`, `update_time` + * @type {string} + * @memberof PersonsApiGetPersonFiles + */ + readonly sort?: string +} + +/** + * Request parameters for getPersonFollowers operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonFollowersRequest + */ +export interface PersonsApiGetPersonFollowersRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiGetPersonFollowers + */ + readonly id: number +} + +/** + * Request parameters for getPersonMailMessages operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonMailMessagesRequest + */ +export interface PersonsApiGetPersonMailMessagesRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiGetPersonMailMessages + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof PersonsApiGetPersonMailMessages + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof PersonsApiGetPersonMailMessages + */ + readonly limit?: number +} + +/** + * Request parameters for getPersonProducts operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonProductsRequest + */ +export interface PersonsApiGetPersonProductsRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiGetPersonProducts + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof PersonsApiGetPersonProducts + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof PersonsApiGetPersonProducts + */ + readonly limit?: number +} + +/** + * Request parameters for getPersonUpdates operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonUpdatesRequest + */ +export interface PersonsApiGetPersonUpdatesRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiGetPersonUpdates + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof PersonsApiGetPersonUpdates + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof PersonsApiGetPersonUpdates + */ + readonly limit?: number + + /** + * Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates. + * @type {string} + * @memberof PersonsApiGetPersonUpdates + */ + readonly all_changes?: string + + /** + * A comma-separated string for filtering out item specific updates. (Possible values - call, activity, plannedActivity, change, note, deal, file, dealChange, personChange, organizationChange, follower, dealFollower, personFollower, organizationFollower, participant, comment, mailMessage, mailMessageWithAttachment, invoice, document, marketing_campaign_stat, marketing_status_change). + * @type {string} + * @memberof PersonsApiGetPersonUpdates + */ + readonly items?: string +} + +/** + * Request parameters for getPersonUsers operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonUsersRequest + */ +export interface PersonsApiGetPersonUsersRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiGetPersonUsers + */ + readonly id: number +} + +/** + * Request parameters for getPersons operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonsRequest + */ +export interface PersonsApiGetPersonsRequest { + /** + * If supplied, only persons owned by the given user will be returned. However, `filter_id` takes precedence over `user_id` when both are supplied. + * @type {number} + * @memberof PersonsApiGetPersons + */ + readonly user_id?: number + + /** + * The ID of the filter to use + * @type {number} + * @memberof PersonsApiGetPersons + */ + readonly filter_id?: number + + /** + * If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) + * @type {string} + * @memberof PersonsApiGetPersons + */ + readonly first_char?: string + + /** + * Pagination start + * @type {number} + * @memberof PersonsApiGetPersons + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof PersonsApiGetPersons + */ + readonly limit?: number + + /** + * The field names and sorting mode separated by a comma (`field_name_1 ASC`, `field_name_2 DESC`). Only first-level field keys are supported (no nested keys). + * @type {string} + * @memberof PersonsApiGetPersons + */ + readonly sort?: string +} + +/** + * Request parameters for getPersonsCollection operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonsCollectionRequest + */ +export interface PersonsApiGetPersonsCollectionRequest { + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof PersonsApiGetPersonsCollection + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof PersonsApiGetPersonsCollection + */ + readonly limit?: number + + /** + * The time boundary that points to the start of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @type {string} + * @memberof PersonsApiGetPersonsCollection + */ + readonly since?: string + + /** + * The time boundary that points to the end of the range of data. Datetime in ISO 8601 format. E.g. 2022-11-01 08:55:59. Operates on the `update_time` field. + * @type {string} + * @memberof PersonsApiGetPersonsCollection + */ + readonly until?: string + + /** + * If supplied, only persons owned by the given user will be returned + * @type {number} + * @memberof PersonsApiGetPersonsCollection + */ + readonly owner_id?: number + + /** + * If supplied, only persons whose name starts with the specified letter will be returned (case-insensitive) + * @type {string} + * @memberof PersonsApiGetPersonsCollection + */ + readonly first_char?: string +} + +/** + * Request parameters for mergePersons operation in PersonsApi. + * @export + * @interface PersonsApiMergePersonsRequest + */ +export interface PersonsApiMergePersonsRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiMergePersons + */ + readonly id: number + + /** + * + * @type {MergePersonsRequest} + * @memberof PersonsApiMergePersons + */ + readonly MergePersonsRequest?: MergePersonsRequest +} + +/** + * Request parameters for searchPersons operation in PersonsApi. + * @export + * @interface PersonsApiSearchPersonsRequest + */ +export interface PersonsApiSearchPersonsRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof PersonsApiSearchPersons + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} + * @memberof PersonsApiSearchPersons + */ + readonly fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof PersonsApiSearchPersons + */ + readonly exact_match?: boolean + + /** + * Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. + * @type {number} + * @memberof PersonsApiSearchPersons + */ + readonly organization_id?: number + + /** + * Supports including optional fields in the results which are not provided by default + * @type {'person.picture'} + * @memberof PersonsApiSearchPersons + */ + readonly include_fields?: 'person.picture' + + /** + * Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @type {number} + * @memberof PersonsApiSearchPersons + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof PersonsApiSearchPersons + */ + readonly limit?: number +} + +/** + * Request parameters for updatePerson operation in PersonsApi. + * @export + * @interface PersonsApiUpdatePersonRequest + */ +export interface PersonsApiUpdatePersonRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiUpdatePerson + */ + readonly id: number + + /** + * + * @type {UpdatePersonRequest} + * @memberof PersonsApiUpdatePerson + */ + readonly UpdatePersonRequest?: UpdatePersonRequest +} + +/** + * PersonsApi - object-oriented interface + * @export + * @class PersonsApi + * @extends {BaseAPI} + */ +export class PersonsApi extends BaseAPI { + /** + * Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for `key` values.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. + * @summary Add a person + * @param {PersonsApiAddPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public addPerson(requestParameters: PersonsApiAddPersonRequest = {}, ) { + return PersonsApiFp(this.configuration).addPerson(requestParameters.AddPersonRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a follower to a person. + * @summary Add a follower to a person + * @param {PersonsApiAddPersonFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public addPersonFollower(requestParameters: PersonsApiAddPersonFollowerRequest, ) { + return PersonsApiFp(this.configuration).addPersonFollower(requestParameters.id, requestParameters.AddPersonFollowerRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a picture to a person. If a picture is already set, the old picture will be replaced. Added image (or the cropping parameters supplied with the request) should have an equal width and height and should be at least 128 pixels. GIF, JPG and PNG are accepted. All added images will be resized to 128 and 512 pixel wide squares. + * @summary Add person picture + * @param {PersonsApiAddPersonPictureRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public addPersonPicture(requestParameters: PersonsApiAddPersonPictureRequest, ) { + return PersonsApiFp(this.configuration).addPersonPicture(requestParameters.id, requestParameters.file, requestParameters.crop_x, requestParameters.crop_y, requestParameters.crop_width, requestParameters.crop_height, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {PersonsApiDeletePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public deletePerson(requestParameters: PersonsApiDeletePersonRequest, ) { + return PersonsApiFp(this.configuration).deletePerson(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a follower from a person. + * @summary Delete a follower from a person + * @param {PersonsApiDeletePersonFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public deletePersonFollower(requestParameters: PersonsApiDeletePersonFollowerRequest, ) { + return PersonsApiFp(this.configuration).deletePersonFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a person’s picture. + * @summary Delete person picture + * @param {PersonsApiDeletePersonPictureRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public deletePersonPicture(requestParameters: PersonsApiDeletePersonPictureRequest, ) { + return PersonsApiFp(this.configuration).deletePersonPicture(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks multiple persons as deleted. After 30 days, the persons will be permanently deleted. + * @summary Delete multiple persons in bulk + * @param {PersonsApiDeletePersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public deletePersons(requestParameters: PersonsApiDeletePersonsRequest, ) { + return PersonsApiFp(this.configuration).deletePersons(requestParameters.ids, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of personFields.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also return the `data.marketing_status` field. + * @summary Get details of a person + * @param {PersonsApiGetPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPerson(requestParameters: PersonsApiGetPersonRequest, ) { + return PersonsApiFp(this.configuration).getPerson(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists activities associated with a person. + * @summary List activities associated with a person + * @param {PersonsApiGetPersonActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersonActivities(requestParameters: PersonsApiGetPersonActivitiesRequest, ) { + return PersonsApiFp(this.configuration).getPersonActivities(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.done, requestParameters.exclude, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists updates about field values of a person. + * @summary List updates about person field values + * @param {PersonsApiGetPersonChangelogRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersonChangelog(requestParameters: PersonsApiGetPersonChangelogRequest, ) { + return PersonsApiFp(this.configuration).getPersonChangelog(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists deals associated with a person. + * @summary List deals associated with a person + * @param {PersonsApiGetPersonDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersonDeals(requestParameters: PersonsApiGetPersonDealsRequest, ) { + return PersonsApiFp(this.configuration).getPersonDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists files associated with a person. + * @summary List files attached to a person + * @param {PersonsApiGetPersonFilesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersonFiles(requestParameters: PersonsApiGetPersonFilesRequest, ) { + return PersonsApiFp(this.configuration).getPersonFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists the followers of a person. + * @summary List followers of a person + * @param {PersonsApiGetPersonFollowersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersonFollowers(requestParameters: PersonsApiGetPersonFollowersRequest, ) { + return PersonsApiFp(this.configuration).getPersonFollowers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists mail messages associated with a person. + * @summary List mail messages associated with a person + * @param {PersonsApiGetPersonMailMessagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersonMailMessages(requestParameters: PersonsApiGetPersonMailMessagesRequest, ) { + return PersonsApiFp(this.configuration).getPersonMailMessages(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists products associated with a person. + * @summary List products associated with a person + * @param {PersonsApiGetPersonProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersonProducts(requestParameters: PersonsApiGetPersonProductsRequest, ) { + return PersonsApiFp(this.configuration).getPersonProducts(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists updates about a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint\'s response will also include updates for the `marketing_status` field. + * @summary List updates about a person + * @param {PersonsApiGetPersonUpdatesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersonUpdates(requestParameters: PersonsApiGetPersonUpdatesRequest, ) { + return PersonsApiFp(this.configuration).getPersonUpdates(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.all_changes, requestParameters.items, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * List users permitted to access a person. + * @summary List permitted users + * @param {PersonsApiGetPersonUsersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersonUsers(requestParameters: PersonsApiGetPersonUsersRequest, ) { + return PersonsApiFp(this.configuration).getPersonUsers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all persons. + * @summary Get all persons + * @param {PersonsApiGetPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersons(requestParameters: PersonsApiGetPersonsRequest = {}, ) { + return PersonsApiFp(this.configuration).getPersons(requestParameters.user_id, requestParameters.filter_id, requestParameters.first_char, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all persons. This is a cursor-paginated endpoint that is currently in BETA. For more information, please refer to our documentation on pagination. Please note that only global admins (those with global permissions) can access these endpoints. Users with regular permissions will receive a 403 response. Read more about global permissions here. + * @summary Get all persons (BETA) + * @param {PersonsApiGetPersonsCollectionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersonsCollection(requestParameters: PersonsApiGetPersonsCollectionRequest = {}, ) { + return PersonsApiFp(this.configuration).getPersonsCollection(requestParameters.cursor, requestParameters.limit, requestParameters.since, requestParameters.until, requestParameters.owner_id, requestParameters.first_char, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Merges a person with another person. For more information, see the tutorial for merging two persons. + * @summary Merge two persons + * @param {PersonsApiMergePersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public mergePersons(requestParameters: PersonsApiMergePersonsRequest, ) { + return PersonsApiFp(this.configuration).mergePersons(requestParameters.id, requestParameters.MergePersonsRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {PersonsApiSearchPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public searchPersons(requestParameters: PersonsApiSearchPersonsRequest, ) { + return PersonsApiFp(this.configuration).searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a person. For more information, see the tutorial for updating a person.
If a company uses the [Campaigns product](https://pipedrive.readme.io/docs/campaigns-in-pipedrive-api), then this endpoint will also accept and return the `data.marketing_status` field. + * @summary Update a person + * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public updatePerson(requestParameters: PersonsApiUpdatePersonRequest, ) { + return PersonsApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.UpdatePersonRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/pipelines-api.ts b/src/versions/v1/api/pipelines-api.ts new file mode 100644 index 00000000..cc537827 --- /dev/null +++ b/src/versions/v1/api/pipelines-api.ts @@ -0,0 +1,986 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddPipelineResponse } from '../models'; +// @ts-ignore +import { DeletePipelineResponse } from '../models'; +// @ts-ignore +import { GetPipelineDealsConversionRatesInResponse } from '../models'; +// @ts-ignore +import { GetPipelineDealsMovementsStatisticsResponse } from '../models'; +// @ts-ignore +import { GetPipelineResponse } from '../models'; +// @ts-ignore +import { GetPipelinesResponse } from '../models'; +// @ts-ignore +import { GetStageDealsResponse } from '../models'; +// @ts-ignore +import { PipelineRequest } from '../models'; +// @ts-ignore +import { PipelineRequest1 } from '../models'; +// @ts-ignore +import { UpdatePipelineResponse } from '../models'; +/** + * PipelinesApi - axios parameter creator + * @export + */ +export const PipelinesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new pipeline. + * @summary Add a new pipeline + * @param {PipelineRequest} [PipelineRequest] + + * @throws {RequiredError} + */ + addPipeline: async (PipelineRequest?: PipelineRequest, ): Promise => { + const localVarPath = `/pipelines`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(PipelineRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a pipeline as deleted. + * @summary Delete a pipeline + * @param {number} id The ID of the pipeline + + * @throws {RequiredError} + */ + deletePipeline: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deletePipeline', 'id', id) + const localVarPath = `/pipelines/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific pipeline. Also returns the summary of the deals in this pipeline across its stages. + * @summary Get one pipeline + * @param {number} id The ID of the pipeline + * @param {string} [totals_convert_currency] The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned in `deals_summary` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. + + * @throws {RequiredError} + */ + getPipeline: async (id: number, totals_convert_currency?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPipeline', 'id', id) + const localVarPath = `/pipelines/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) + + if (totals_convert_currency !== undefined) { + localVarQueryParameter['totals_convert_currency'] = totals_convert_currency; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all stage-to-stage conversion and pipeline-to-close rates for the given time period. + * @summary Get deals conversion rates in pipeline + * @param {number} id The ID of the pipeline + * @param {string} start_date The start of the period. Date in format of YYYY-MM-DD. + * @param {string} end_date The end of the period. Date in format of YYYY-MM-DD. + * @param {number} [user_id] The ID of the user who\'s pipeline metrics statistics to fetch. If omitted, the authorized user will be used. + + * @throws {RequiredError} + */ + getPipelineConversionStatistics: async (id: number, start_date: string, end_date: string, user_id?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPipelineConversionStatistics', 'id', id) + // verify required parameter 'start_date' is not null or undefined + assertParamExists('getPipelineConversionStatistics', 'start_date', start_date) + // verify required parameter 'end_date' is not null or undefined + assertParamExists('getPipelineConversionStatistics', 'end_date', end_date) + const localVarPath = `/pipelines/{id}/conversion_statistics` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (start_date !== undefined) { + localVarQueryParameter['start_date'] = (start_date as any instanceof Date) ? + (start_date as any).toISOString().substr(0,10) : + start_date; + } + + if (end_date !== undefined) { + localVarQueryParameter['end_date'] = (end_date as any instanceof Date) ? + (end_date as any).toISOString().substr(0,10) : + end_date; + } + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists deals in a specific pipeline across all its stages. If no parameters are provided open deals owned by the authorized user will be returned. + * @summary Get deals in a pipeline + * @param {number} id The ID of the pipeline + * @param {number} [filter_id] If supplied, only deals matching the given filter will be returned + * @param {number} [user_id] If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. + * @param {0 | 1} [everyone] If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned + * @param {number} [stage_id] If supplied, only deals within the given stage will be returned + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {0 | 1} [get_summary] Whether to include a summary of the pipeline in the `additional_data` or not + * @param {string} [totals_convert_currency] The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned inside `deals_summary` inside `additional_data` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. Only works when `get_summary` parameter flag is enabled. + + * @throws {RequiredError} + */ + getPipelineDeals: async (id: number, filter_id?: number, user_id?: number, everyone?: 0 | 1, stage_id?: number, start?: number, limit?: number, get_summary?: 0 | 1, totals_convert_currency?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPipelineDeals', 'id', id) + const localVarPath = `/pipelines/{id}/deals` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + if (everyone !== undefined) { + localVarQueryParameter['everyone'] = everyone; + } + + if (stage_id !== undefined) { + localVarQueryParameter['stage_id'] = stage_id; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (get_summary !== undefined) { + localVarQueryParameter['get_summary'] = get_summary; + } + + if (totals_convert_currency !== undefined) { + localVarQueryParameter['totals_convert_currency'] = totals_convert_currency; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns statistics for deals movements for the given time period. + * @summary Get deals movements in pipeline + * @param {number} id The ID of the pipeline + * @param {string} start_date The start of the period. Date in format of YYYY-MM-DD. + * @param {string} end_date The end of the period. Date in format of YYYY-MM-DD. + * @param {number} [user_id] The ID of the user who\'s pipeline statistics to fetch. If omitted, the authorized user will be used. + + * @throws {RequiredError} + */ + getPipelineMovementStatistics: async (id: number, start_date: string, end_date: string, user_id?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPipelineMovementStatistics', 'id', id) + // verify required parameter 'start_date' is not null or undefined + assertParamExists('getPipelineMovementStatistics', 'start_date', start_date) + // verify required parameter 'end_date' is not null or undefined + assertParamExists('getPipelineMovementStatistics', 'end_date', end_date) + const localVarPath = `/pipelines/{id}/movement_statistics` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (start_date !== undefined) { + localVarQueryParameter['start_date'] = (start_date as any instanceof Date) ? + (start_date as any).toISOString().substr(0,10) : + start_date; + } + + if (end_date !== undefined) { + localVarQueryParameter['end_date'] = (end_date as any instanceof Date) ? + (end_date as any).toISOString().substr(0,10) : + end_date; + } + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all pipelines. + * @summary Get all pipelines + + * @throws {RequiredError} + */ + getPipelines: async (): Promise => { + const localVarPath = `/pipelines`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a pipeline. + * @summary Update a pipeline + * @param {number} id The ID of the pipeline + * @param {PipelineRequest1} [PipelineRequest1] + + * @throws {RequiredError} + */ + updatePipeline: async (id: number, PipelineRequest1?: PipelineRequest1, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updatePipeline', 'id', id) + const localVarPath = `/pipelines/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(PipelineRequest1, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * PipelinesApi - functional programming interface + * @export + */ +export const PipelinesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PipelinesApiAxiosParamCreator(configuration) + return { + /** + * Adds a new pipeline. + * @summary Add a new pipeline + * @param {PipelineRequest} [PipelineRequest] + + * @throws {RequiredError} + */ + async addPipeline(PipelineRequest?: PipelineRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addPipeline(PipelineRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a pipeline as deleted. + * @summary Delete a pipeline + * @param {number} id The ID of the pipeline + + * @throws {RequiredError} + */ + async deletePipeline(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePipeline(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific pipeline. Also returns the summary of the deals in this pipeline across its stages. + * @summary Get one pipeline + * @param {number} id The ID of the pipeline + * @param {string} [totals_convert_currency] The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned in `deals_summary` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. + + * @throws {RequiredError} + */ + async getPipeline(id: number, totals_convert_currency?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPipeline(id, totals_convert_currency, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all stage-to-stage conversion and pipeline-to-close rates for the given time period. + * @summary Get deals conversion rates in pipeline + * @param {number} id The ID of the pipeline + * @param {string} start_date The start of the period. Date in format of YYYY-MM-DD. + * @param {string} end_date The end of the period. Date in format of YYYY-MM-DD. + * @param {number} [user_id] The ID of the user who\'s pipeline metrics statistics to fetch. If omitted, the authorized user will be used. + + * @throws {RequiredError} + */ + async getPipelineConversionStatistics(id: number, start_date: string, end_date: string, user_id?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPipelineConversionStatistics(id, start_date, end_date, user_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists deals in a specific pipeline across all its stages. If no parameters are provided open deals owned by the authorized user will be returned. + * @summary Get deals in a pipeline + * @param {number} id The ID of the pipeline + * @param {number} [filter_id] If supplied, only deals matching the given filter will be returned + * @param {number} [user_id] If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. + * @param {0 | 1} [everyone] If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned + * @param {number} [stage_id] If supplied, only deals within the given stage will be returned + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {0 | 1} [get_summary] Whether to include a summary of the pipeline in the `additional_data` or not + * @param {string} [totals_convert_currency] The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned inside `deals_summary` inside `additional_data` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. Only works when `get_summary` parameter flag is enabled. + + * @throws {RequiredError} + */ + async getPipelineDeals(id: number, filter_id?: number, user_id?: number, everyone?: 0 | 1, stage_id?: number, start?: number, limit?: number, get_summary?: 0 | 1, totals_convert_currency?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPipelineDeals(id, filter_id, user_id, everyone, stage_id, start, limit, get_summary, totals_convert_currency, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns statistics for deals movements for the given time period. + * @summary Get deals movements in pipeline + * @param {number} id The ID of the pipeline + * @param {string} start_date The start of the period. Date in format of YYYY-MM-DD. + * @param {string} end_date The end of the period. Date in format of YYYY-MM-DD. + * @param {number} [user_id] The ID of the user who\'s pipeline statistics to fetch. If omitted, the authorized user will be used. + + * @throws {RequiredError} + */ + async getPipelineMovementStatistics(id: number, start_date: string, end_date: string, user_id?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPipelineMovementStatistics(id, start_date, end_date, user_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all pipelines. + * @summary Get all pipelines + + * @throws {RequiredError} + */ + async getPipelines(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPipelines(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a pipeline. + * @summary Update a pipeline + * @param {number} id The ID of the pipeline + * @param {PipelineRequest1} [PipelineRequest1] + + * @throws {RequiredError} + */ + async updatePipeline(id: number, PipelineRequest1?: PipelineRequest1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatePipeline(id, PipelineRequest1, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * PipelinesApi - factory interface + * @export + */ +export const PipelinesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PipelinesApiFp(configuration) + return { + /** + * Adds a new pipeline. + * @summary Add a new pipeline + * @param {PipelinesApiAddPipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addPipeline(requestParameters: PipelinesApiAddPipelineRequest = {}, ): Promise { + return localVarFp.addPipeline(requestParameters.PipelineRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a pipeline as deleted. + * @summary Delete a pipeline + * @param {PipelinesApiDeletePipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deletePipeline(requestParameters: PipelinesApiDeletePipelineRequest, ): Promise { + return localVarFp.deletePipeline(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific pipeline. Also returns the summary of the deals in this pipeline across its stages. + * @summary Get one pipeline + * @param {PipelinesApiGetPipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPipeline(requestParameters: PipelinesApiGetPipelineRequest, ): Promise { + return localVarFp.getPipeline(requestParameters.id, requestParameters.totals_convert_currency, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all stage-to-stage conversion and pipeline-to-close rates for the given time period. + * @summary Get deals conversion rates in pipeline + * @param {PipelinesApiGetPipelineConversionStatisticsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPipelineConversionStatistics(requestParameters: PipelinesApiGetPipelineConversionStatisticsRequest, ): Promise { + return localVarFp.getPipelineConversionStatistics(requestParameters.id, requestParameters.start_date, requestParameters.end_date, requestParameters.user_id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists deals in a specific pipeline across all its stages. If no parameters are provided open deals owned by the authorized user will be returned. + * @summary Get deals in a pipeline + * @param {PipelinesApiGetPipelineDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPipelineDeals(requestParameters: PipelinesApiGetPipelineDealsRequest, ): Promise { + return localVarFp.getPipelineDeals(requestParameters.id, requestParameters.filter_id, requestParameters.user_id, requestParameters.everyone, requestParameters.stage_id, requestParameters.start, requestParameters.limit, requestParameters.get_summary, requestParameters.totals_convert_currency, ).then((request) => request(axios, basePath)); + }, + /** + * Returns statistics for deals movements for the given time period. + * @summary Get deals movements in pipeline + * @param {PipelinesApiGetPipelineMovementStatisticsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPipelineMovementStatistics(requestParameters: PipelinesApiGetPipelineMovementStatisticsRequest, ): Promise { + return localVarFp.getPipelineMovementStatistics(requestParameters.id, requestParameters.start_date, requestParameters.end_date, requestParameters.user_id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all pipelines. + * @summary Get all pipelines + + * @throws {RequiredError} + */ + getPipelines(): Promise { + return localVarFp.getPipelines().then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a pipeline. + * @summary Update a pipeline + * @param {PipelinesApiUpdatePipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updatePipeline(requestParameters: PipelinesApiUpdatePipelineRequest, ): Promise { + return localVarFp.updatePipeline(requestParameters.id, requestParameters.PipelineRequest1, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addPipeline operation in PipelinesApi. + * @export + * @interface PipelinesApiAddPipelineRequest + */ +export interface PipelinesApiAddPipelineRequest { + /** + * + * @type {PipelineRequest} + * @memberof PipelinesApiAddPipeline + */ + readonly PipelineRequest?: PipelineRequest +} + +/** + * Request parameters for deletePipeline operation in PipelinesApi. + * @export + * @interface PipelinesApiDeletePipelineRequest + */ +export interface PipelinesApiDeletePipelineRequest { + /** + * The ID of the pipeline + * @type {number} + * @memberof PipelinesApiDeletePipeline + */ + readonly id: number +} + +/** + * Request parameters for getPipeline operation in PipelinesApi. + * @export + * @interface PipelinesApiGetPipelineRequest + */ +export interface PipelinesApiGetPipelineRequest { + /** + * The ID of the pipeline + * @type {number} + * @memberof PipelinesApiGetPipeline + */ + readonly id: number + + /** + * The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned in `deals_summary` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. + * @type {string} + * @memberof PipelinesApiGetPipeline + */ + readonly totals_convert_currency?: string +} + +/** + * Request parameters for getPipelineConversionStatistics operation in PipelinesApi. + * @export + * @interface PipelinesApiGetPipelineConversionStatisticsRequest + */ +export interface PipelinesApiGetPipelineConversionStatisticsRequest { + /** + * The ID of the pipeline + * @type {number} + * @memberof PipelinesApiGetPipelineConversionStatistics + */ + readonly id: number + + /** + * The start of the period. Date in format of YYYY-MM-DD. + * @type {string} + * @memberof PipelinesApiGetPipelineConversionStatistics + */ + readonly start_date: string + + /** + * The end of the period. Date in format of YYYY-MM-DD. + * @type {string} + * @memberof PipelinesApiGetPipelineConversionStatistics + */ + readonly end_date: string + + /** + * The ID of the user who\'s pipeline metrics statistics to fetch. If omitted, the authorized user will be used. + * @type {number} + * @memberof PipelinesApiGetPipelineConversionStatistics + */ + readonly user_id?: number +} + +/** + * Request parameters for getPipelineDeals operation in PipelinesApi. + * @export + * @interface PipelinesApiGetPipelineDealsRequest + */ +export interface PipelinesApiGetPipelineDealsRequest { + /** + * The ID of the pipeline + * @type {number} + * @memberof PipelinesApiGetPipelineDeals + */ + readonly id: number + + /** + * If supplied, only deals matching the given filter will be returned + * @type {number} + * @memberof PipelinesApiGetPipelineDeals + */ + readonly filter_id?: number + + /** + * If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. + * @type {number} + * @memberof PipelinesApiGetPipelineDeals + */ + readonly user_id?: number + + /** + * If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned + * @type {0 | 1} + * @memberof PipelinesApiGetPipelineDeals + */ + readonly everyone?: 0 | 1 + + /** + * If supplied, only deals within the given stage will be returned + * @type {number} + * @memberof PipelinesApiGetPipelineDeals + */ + readonly stage_id?: number + + /** + * Pagination start + * @type {number} + * @memberof PipelinesApiGetPipelineDeals + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof PipelinesApiGetPipelineDeals + */ + readonly limit?: number + + /** + * Whether to include a summary of the pipeline in the `additional_data` or not + * @type {0 | 1} + * @memberof PipelinesApiGetPipelineDeals + */ + readonly get_summary?: 0 | 1 + + /** + * The 3-letter currency code of any of the supported currencies. When supplied, `per_stages_converted` is returned inside `deals_summary` inside `additional_data` which contains the currency-converted total amounts in the given currency per each stage. You may also set this parameter to `default_currency` in which case users default currency is used. Only works when `get_summary` parameter flag is enabled. + * @type {string} + * @memberof PipelinesApiGetPipelineDeals + */ + readonly totals_convert_currency?: string +} + +/** + * Request parameters for getPipelineMovementStatistics operation in PipelinesApi. + * @export + * @interface PipelinesApiGetPipelineMovementStatisticsRequest + */ +export interface PipelinesApiGetPipelineMovementStatisticsRequest { + /** + * The ID of the pipeline + * @type {number} + * @memberof PipelinesApiGetPipelineMovementStatistics + */ + readonly id: number + + /** + * The start of the period. Date in format of YYYY-MM-DD. + * @type {string} + * @memberof PipelinesApiGetPipelineMovementStatistics + */ + readonly start_date: string + + /** + * The end of the period. Date in format of YYYY-MM-DD. + * @type {string} + * @memberof PipelinesApiGetPipelineMovementStatistics + */ + readonly end_date: string + + /** + * The ID of the user who\'s pipeline statistics to fetch. If omitted, the authorized user will be used. + * @type {number} + * @memberof PipelinesApiGetPipelineMovementStatistics + */ + readonly user_id?: number +} + +/** + * Request parameters for updatePipeline operation in PipelinesApi. + * @export + * @interface PipelinesApiUpdatePipelineRequest + */ +export interface PipelinesApiUpdatePipelineRequest { + /** + * The ID of the pipeline + * @type {number} + * @memberof PipelinesApiUpdatePipeline + */ + readonly id: number + + /** + * + * @type {PipelineRequest1} + * @memberof PipelinesApiUpdatePipeline + */ + readonly PipelineRequest1?: PipelineRequest1 +} + +/** + * PipelinesApi - object-oriented interface + * @export + * @class PipelinesApi + * @extends {BaseAPI} + */ +export class PipelinesApi extends BaseAPI { + /** + * Adds a new pipeline. + * @summary Add a new pipeline + * @param {PipelinesApiAddPipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public addPipeline(requestParameters: PipelinesApiAddPipelineRequest = {}, ) { + return PipelinesApiFp(this.configuration).addPipeline(requestParameters.PipelineRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a pipeline as deleted. + * @summary Delete a pipeline + * @param {PipelinesApiDeletePipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public deletePipeline(requestParameters: PipelinesApiDeletePipelineRequest, ) { + return PipelinesApiFp(this.configuration).deletePipeline(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific pipeline. Also returns the summary of the deals in this pipeline across its stages. + * @summary Get one pipeline + * @param {PipelinesApiGetPipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public getPipeline(requestParameters: PipelinesApiGetPipelineRequest, ) { + return PipelinesApiFp(this.configuration).getPipeline(requestParameters.id, requestParameters.totals_convert_currency, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all stage-to-stage conversion and pipeline-to-close rates for the given time period. + * @summary Get deals conversion rates in pipeline + * @param {PipelinesApiGetPipelineConversionStatisticsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public getPipelineConversionStatistics(requestParameters: PipelinesApiGetPipelineConversionStatisticsRequest, ) { + return PipelinesApiFp(this.configuration).getPipelineConversionStatistics(requestParameters.id, requestParameters.start_date, requestParameters.end_date, requestParameters.user_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists deals in a specific pipeline across all its stages. If no parameters are provided open deals owned by the authorized user will be returned. + * @summary Get deals in a pipeline + * @param {PipelinesApiGetPipelineDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public getPipelineDeals(requestParameters: PipelinesApiGetPipelineDealsRequest, ) { + return PipelinesApiFp(this.configuration).getPipelineDeals(requestParameters.id, requestParameters.filter_id, requestParameters.user_id, requestParameters.everyone, requestParameters.stage_id, requestParameters.start, requestParameters.limit, requestParameters.get_summary, requestParameters.totals_convert_currency, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns statistics for deals movements for the given time period. + * @summary Get deals movements in pipeline + * @param {PipelinesApiGetPipelineMovementStatisticsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public getPipelineMovementStatistics(requestParameters: PipelinesApiGetPipelineMovementStatisticsRequest, ) { + return PipelinesApiFp(this.configuration).getPipelineMovementStatistics(requestParameters.id, requestParameters.start_date, requestParameters.end_date, requestParameters.user_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all pipelines. + * @summary Get all pipelines + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public getPipelines() { + return PipelinesApiFp(this.configuration).getPipelines().then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a pipeline. + * @summary Update a pipeline + * @param {PipelinesApiUpdatePipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public updatePipeline(requestParameters: PipelinesApiUpdatePipelineRequest, ) { + return PipelinesApiFp(this.configuration).updatePipeline(requestParameters.id, requestParameters.PipelineRequest1, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/product-fields-api.ts b/src/versions/v1/api/product-fields-api.ts new file mode 100644 index 00000000..7088d374 --- /dev/null +++ b/src/versions/v1/api/product-fields-api.ts @@ -0,0 +1,631 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { DeleteProductFieldResponse } from '../models'; +// @ts-ignore +import { DeleteProductFieldsResponse } from '../models'; +// @ts-ignore +import { FailResponse } from '../models'; +// @ts-ignore +import { GetProductFieldResponse } from '../models'; +// @ts-ignore +import { GetProductFieldsResponse } from '../models'; +// @ts-ignore +import { ProductFieldAllOf } from '../models'; +// @ts-ignore +import { UpdateProductFieldResponse } from '../models'; +/** + * ProductFieldsApi - axios parameter creator + * @export + */ +export const ProductFieldsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new product field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new product field + * @param {ProductFieldAllOf} [ProductFieldAllOf] + + * @throws {RequiredError} + */ + addProductField: async (ProductFieldAllOf?: ProductFieldAllOf, ): Promise => { + const localVarPath = `/productFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(ProductFieldAllOf, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a product field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a product field + * @param {number} id The ID of the product field + + * @throws {RequiredError} + */ + deleteProductField: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteProductField', 'id', id) + const localVarPath = `/productFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks multiple fields as deleted. + * @summary Delete multiple product fields in bulk + * @param {string} ids The comma-separated field IDs to delete + + * @throws {RequiredError} + */ + deleteProductFields: async (ids: string, ): Promise => { + // verify required parameter 'ids' is not null or undefined + assertParamExists('deleteProductFields', 'ids', ids) + const localVarPath = `/productFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific product field. + * @summary Get one product field + * @param {number} id The ID of the product field + + * @throws {RequiredError} + */ + getProductField: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProductField', 'id', id) + const localVarPath = `/productFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all product fields. + * @summary Get all product fields + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getProductFields: async (start?: number, limit?: number, ): Promise => { + const localVarPath = `/productFields`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates a product field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a product field + * @param {number} id The ID of the product field + * @param {UpdateProductFieldResponse} [UpdateProductFieldResponse] + + * @throws {RequiredError} + */ + updateProductField: async (id: number, UpdateProductFieldResponse?: UpdateProductFieldResponse, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateProductField', 'id', id) + const localVarPath = `/productFields/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateProductFieldResponse, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * ProductFieldsApi - functional programming interface + * @export + */ +export const ProductFieldsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ProductFieldsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new product field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new product field + * @param {ProductFieldAllOf} [ProductFieldAllOf] + + * @throws {RequiredError} + */ + async addProductField(ProductFieldAllOf?: ProductFieldAllOf, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addProductField(ProductFieldAllOf, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a product field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a product field + * @param {number} id The ID of the product field + + * @throws {RequiredError} + */ + async deleteProductField(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductField(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks multiple fields as deleted. + * @summary Delete multiple product fields in bulk + * @param {string} ids The comma-separated field IDs to delete + + * @throws {RequiredError} + */ + async deleteProductFields(ids: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFields(ids, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific product field. + * @summary Get one product field + * @param {number} id The ID of the product field + + * @throws {RequiredError} + */ + async getProductField(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProductField(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all product fields. + * @summary Get all product fields + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getProductFields(start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFields(start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates a product field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a product field + * @param {number} id The ID of the product field + * @param {UpdateProductFieldResponse} [UpdateProductFieldResponse] + + * @throws {RequiredError} + */ + async updateProductField(id: number, UpdateProductFieldResponse?: UpdateProductFieldResponse, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductField(id, UpdateProductFieldResponse, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ProductFieldsApi - factory interface + * @export + */ +export const ProductFieldsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ProductFieldsApiFp(configuration) + return { + /** + * Adds a new product field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new product field + * @param {ProductFieldsApiAddProductFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addProductField(requestParameters: ProductFieldsApiAddProductFieldRequest = {}, ): Promise { + return localVarFp.addProductField(requestParameters.ProductFieldAllOf, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a product field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a product field + * @param {ProductFieldsApiDeleteProductFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteProductField(requestParameters: ProductFieldsApiDeleteProductFieldRequest, ): Promise { + return localVarFp.deleteProductField(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks multiple fields as deleted. + * @summary Delete multiple product fields in bulk + * @param {ProductFieldsApiDeleteProductFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteProductFields(requestParameters: ProductFieldsApiDeleteProductFieldsRequest, ): Promise { + return localVarFp.deleteProductFields(requestParameters.ids, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific product field. + * @summary Get one product field + * @param {ProductFieldsApiGetProductFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProductField(requestParameters: ProductFieldsApiGetProductFieldRequest, ): Promise { + return localVarFp.getProductField(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all product fields. + * @summary Get all product fields + * @param {ProductFieldsApiGetProductFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProductFields(requestParameters: ProductFieldsApiGetProductFieldsRequest = {}, ): Promise { + return localVarFp.getProductFields(requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates a product field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a product field + * @param {ProductFieldsApiUpdateProductFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateProductField(requestParameters: ProductFieldsApiUpdateProductFieldRequest, ): Promise { + return localVarFp.updateProductField(requestParameters.id, requestParameters.UpdateProductFieldResponse, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addProductField operation in ProductFieldsApi. + * @export + * @interface ProductFieldsApiAddProductFieldRequest + */ +export interface ProductFieldsApiAddProductFieldRequest { + /** + * + * @type {ProductFieldAllOf} + * @memberof ProductFieldsApiAddProductField + */ + readonly ProductFieldAllOf?: ProductFieldAllOf +} + +/** + * Request parameters for deleteProductField operation in ProductFieldsApi. + * @export + * @interface ProductFieldsApiDeleteProductFieldRequest + */ +export interface ProductFieldsApiDeleteProductFieldRequest { + /** + * The ID of the product field + * @type {number} + * @memberof ProductFieldsApiDeleteProductField + */ + readonly id: number +} + +/** + * Request parameters for deleteProductFields operation in ProductFieldsApi. + * @export + * @interface ProductFieldsApiDeleteProductFieldsRequest + */ +export interface ProductFieldsApiDeleteProductFieldsRequest { + /** + * The comma-separated field IDs to delete + * @type {string} + * @memberof ProductFieldsApiDeleteProductFields + */ + readonly ids: string +} + +/** + * Request parameters for getProductField operation in ProductFieldsApi. + * @export + * @interface ProductFieldsApiGetProductFieldRequest + */ +export interface ProductFieldsApiGetProductFieldRequest { + /** + * The ID of the product field + * @type {number} + * @memberof ProductFieldsApiGetProductField + */ + readonly id: number +} + +/** + * Request parameters for getProductFields operation in ProductFieldsApi. + * @export + * @interface ProductFieldsApiGetProductFieldsRequest + */ +export interface ProductFieldsApiGetProductFieldsRequest { + /** + * Pagination start + * @type {number} + * @memberof ProductFieldsApiGetProductFields + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof ProductFieldsApiGetProductFields + */ + readonly limit?: number +} + +/** + * Request parameters for updateProductField operation in ProductFieldsApi. + * @export + * @interface ProductFieldsApiUpdateProductFieldRequest + */ +export interface ProductFieldsApiUpdateProductFieldRequest { + /** + * The ID of the product field + * @type {number} + * @memberof ProductFieldsApiUpdateProductField + */ + readonly id: number + + /** + * + * @type {UpdateProductFieldResponse} + * @memberof ProductFieldsApiUpdateProductField + */ + readonly UpdateProductFieldResponse?: UpdateProductFieldResponse +} + +/** + * ProductFieldsApi - object-oriented interface + * @export + * @class ProductFieldsApi + * @extends {BaseAPI} + */ +export class ProductFieldsApi extends BaseAPI { + /** + * Adds a new product field. For more information, see the tutorial for adding a new custom field. + * @summary Add a new product field + * @param {ProductFieldsApiAddProductFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductFieldsApi + */ + public addProductField(requestParameters: ProductFieldsApiAddProductFieldRequest = {}, ) { + return ProductFieldsApiFp(this.configuration).addProductField(requestParameters.ProductFieldAllOf, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a product field as deleted. For more information, see the tutorial for deleting a custom field. + * @summary Delete a product field + * @param {ProductFieldsApiDeleteProductFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductFieldsApi + */ + public deleteProductField(requestParameters: ProductFieldsApiDeleteProductFieldRequest, ) { + return ProductFieldsApiFp(this.configuration).deleteProductField(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks multiple fields as deleted. + * @summary Delete multiple product fields in bulk + * @param {ProductFieldsApiDeleteProductFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductFieldsApi + */ + public deleteProductFields(requestParameters: ProductFieldsApiDeleteProductFieldsRequest, ) { + return ProductFieldsApiFp(this.configuration).deleteProductFields(requestParameters.ids, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific product field. + * @summary Get one product field + * @param {ProductFieldsApiGetProductFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductFieldsApi + */ + public getProductField(requestParameters: ProductFieldsApiGetProductFieldRequest, ) { + return ProductFieldsApiFp(this.configuration).getProductField(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all product fields. + * @summary Get all product fields + * @param {ProductFieldsApiGetProductFieldsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductFieldsApi + */ + public getProductFields(requestParameters: ProductFieldsApiGetProductFieldsRequest = {}, ) { + return ProductFieldsApiFp(this.configuration).getProductFields(requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates a product field. For more information, see the tutorial for updating custom fields\' values. + * @summary Update a product field + * @param {ProductFieldsApiUpdateProductFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductFieldsApi + */ + public updateProductField(requestParameters: ProductFieldsApiUpdateProductFieldRequest, ) { + return ProductFieldsApiFp(this.configuration).updateProductField(requestParameters.id, requestParameters.UpdateProductFieldResponse, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/products-api.ts b/src/versions/v1/api/products-api.ts new file mode 100644 index 00000000..b35b8133 --- /dev/null +++ b/src/versions/v1/api/products-api.ts @@ -0,0 +1,1431 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddNewFollowerResponse } from '../models'; +// @ts-ignore +import { AddProductFollowerRequest } from '../models'; +// @ts-ignore +import { AddProductRequest } from '../models'; +// @ts-ignore +import { DeleteProductFollowerResponse } from '../models'; +// @ts-ignore +import { DeleteProductResponse } from '../models'; +// @ts-ignore +import { GetAssociatedDealsResponse } from '../models'; +// @ts-ignore +import { GetAssociatedProductFilesResponse } from '../models'; +// @ts-ignore +import { GetProductFollowersResponse } from '../models'; +// @ts-ignore +import { GetProductResponse } from '../models'; +// @ts-ignore +import { GetProductSearchResponse } from '../models'; +// @ts-ignore +import { GetProductsResponse1 } from '../models'; +// @ts-ignore +import { UpdateProductRequest } from '../models'; +// @ts-ignore +import { UpdateProductResponse } from '../models'; +// @ts-ignore +import { UserIds } from '../models'; +/** + * ProductsApi - axios parameter creator + * @export + */ +export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. + * @summary Add a product + * @param {AddProductRequest} [AddProductRequest] + + * @throws {RequiredError} + */ + addProduct: async (AddProductRequest?: AddProductRequest, ): Promise => { + const localVarPath = `/products`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddProductRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a follower to a product. + * @summary Add a follower to a product + * @param {number} id The ID of the product + * @param {AddProductFollowerRequest} [AddProductFollowerRequest] + + * @throws {RequiredError} + */ + addProductFollower: async (id: number, AddProductFollowerRequest?: AddProductFollowerRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addProductFollower', 'id', id) + const localVarPath = `/products/{id}/followers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddProductFollowerRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a product as deleted. After 30 days, the product will be permanently deleted. + * @summary Delete a product + * @param {number} id The ID of the product + + * @throws {RequiredError} + */ + deleteProduct: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteProduct', 'id', id) + const localVarPath = `/products/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a follower from a product. + * @summary Delete a follower from a product + * @param {number} id The ID of the product + * @param {number} follower_id The ID of the relationship between the follower and the product + + * @throws {RequiredError} + */ + deleteProductFollower: async (id: number, follower_id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteProductFollower', 'id', id) + // verify required parameter 'follower_id' is not null or undefined + assertParamExists('deleteProductFollower', 'follower_id', follower_id) + const localVarPath = `/products/{id}/followers/{follower_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"follower_id"}}`, encodeURIComponent(String(follower_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific product. + * @summary Get one product + * @param {number} id The ID of the product + + * @throws {RequiredError} + */ + getProduct: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProduct', 'id', id) + const localVarPath = `/products/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about deals that have a product attached to it. + * @summary Get deals where a product is attached to + * @param {number} id The ID of the product + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + + * @throws {RequiredError} + */ + getProductDeals: async (id: number, start?: number, limit?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProductDeals', 'id', id) + const localVarPath = `/products/{id}/deals` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists files associated with a product. + * @summary List files attached to a product + * @param {number} id The ID of the product + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. + * @param {string} [sort] Supported fields: `id`, `update_time` + + * @throws {RequiredError} + */ + getProductFiles: async (id: number, start?: number, limit?: number, sort?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProductFiles', 'id', id) + const localVarPath = `/products/{id}/files` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort !== undefined) { + localVarQueryParameter['sort'] = sort; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists the followers of a product. + * @summary List followers of a product + * @param {number} id The ID of the product + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getProductFollowers: async (id: number, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProductFollowers', 'id', id) + const localVarPath = `/products/{id}/followers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists users permitted to access a product. + * @summary List permitted users + * @param {number} id The ID of the product + + * @throws {RequiredError} + */ + getProductUsers: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProductUsers', 'id', id) + const localVarPath = `/products/{id}/permittedUsers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all products. + * @summary Get all products + * @param {number} [user_id] If supplied, only products owned by the given user will be returned + * @param {number} [filter_id] The ID of the filter to use + * @param {Array} [ids] An array of integers with the IDs of the products that should be returned in the response + * @param {string} [first_char] If supplied, only products whose name starts with the specified letter will be returned (case-insensitive) + * @param {boolean} [get_summary] If supplied, the response will return the total numbers of products in the `additional_data.summary.total_count` property + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getProducts: async (user_id?: number, filter_id?: number, ids?: Array, first_char?: string, get_summary?: boolean, start?: number, limit?: number, ): Promise => { + const localVarPath = `/products`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (ids) { + localVarQueryParameter['ids'] = ids; + } + + if (first_char !== undefined) { + localVarQueryParameter['first_char'] = first_char; + } + + if (get_summary !== undefined) { + localVarQueryParameter['get_summary'] = get_summary; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search products + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'code' | 'custom_fields' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + searchProducts: async (term: string, fields?: 'code' | 'custom_fields' | 'name', exact_match?: boolean, include_fields?: 'product.price', start?: number, limit?: number, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchProducts', 'term', term) + const localVarPath = `/products/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates product data. + * @summary Update a product + * @param {number} id The ID of the product + * @param {UpdateProductRequest} [UpdateProductRequest] + + * @throws {RequiredError} + */ + updateProduct: async (id: number, UpdateProductRequest?: UpdateProductRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateProduct', 'id', id) + const localVarPath = `/products/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateProductRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * ProductsApi - functional programming interface + * @export + */ +export const ProductsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. + * @summary Add a product + * @param {AddProductRequest} [AddProductRequest] + + * @throws {RequiredError} + */ + async addProduct(AddProductRequest?: AddProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addProduct(AddProductRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a follower to a product. + * @summary Add a follower to a product + * @param {number} id The ID of the product + * @param {AddProductFollowerRequest} [AddProductFollowerRequest] + + * @throws {RequiredError} + */ + async addProductFollower(id: number, AddProductFollowerRequest?: AddProductFollowerRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addProductFollower(id, AddProductFollowerRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a product as deleted. After 30 days, the product will be permanently deleted. + * @summary Delete a product + * @param {number} id The ID of the product + + * @throws {RequiredError} + */ + async deleteProduct(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProduct(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a follower from a product. + * @summary Delete a follower from a product + * @param {number} id The ID of the product + * @param {number} follower_id The ID of the relationship between the follower and the product + + * @throws {RequiredError} + */ + async deleteProductFollower(id: number, follower_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductFollower(id, follower_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific product. + * @summary Get one product + * @param {number} id The ID of the product + + * @throws {RequiredError} + */ + async getProduct(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProduct(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about deals that have a product attached to it. + * @summary Get deals where a product is attached to + * @param {number} id The ID of the product + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + * @param {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + + * @throws {RequiredError} + */ + async getProductDeals(id: number, start?: number, limit?: number, status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProductDeals(id, start, limit, status, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists files associated with a product. + * @summary List files attached to a product + * @param {number} id The ID of the product + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page. Please note that a maximum value of 100 is allowed. + * @param {string} [sort] Supported fields: `id`, `update_time` + + * @throws {RequiredError} + */ + async getProductFiles(id: number, start?: number, limit?: number, sort?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFiles(id, start, limit, sort, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists the followers of a product. + * @summary List followers of a product + * @param {number} id The ID of the product + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getProductFollowers(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFollowers(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists users permitted to access a product. + * @summary List permitted users + * @param {number} id The ID of the product + + * @throws {RequiredError} + */ + async getProductUsers(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProductUsers(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all products. + * @summary Get all products + * @param {number} [user_id] If supplied, only products owned by the given user will be returned + * @param {number} [filter_id] The ID of the filter to use + * @param {Array} [ids] An array of integers with the IDs of the products that should be returned in the response + * @param {string} [first_char] If supplied, only products whose name starts with the specified letter will be returned (case-insensitive) + * @param {boolean} [get_summary] If supplied, the response will return the total numbers of products in the `additional_data.summary.total_count` property + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getProducts(user_id?: number, filter_id?: number, ids?: Array, first_char?: string, get_summary?: boolean, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(user_id, filter_id, ids, first_char, get_summary, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search products + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'code' | 'custom_fields' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [start] Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async searchProducts(term: string, fields?: 'code' | 'custom_fields' | 'name', exact_match?: boolean, include_fields?: 'product.price', start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(term, fields, exact_match, include_fields, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates product data. + * @summary Update a product + * @param {number} id The ID of the product + * @param {UpdateProductRequest} [UpdateProductRequest] + + * @throws {RequiredError} + */ + async updateProduct(id: number, UpdateProductRequest?: UpdateProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateProduct(id, UpdateProductRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ProductsApi - factory interface + * @export + */ +export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ProductsApiFp(configuration) + return { + /** + * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. + * @summary Add a product + * @param {ProductsApiAddProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addProduct(requestParameters: ProductsApiAddProductRequest = {}, ): Promise { + return localVarFp.addProduct(requestParameters.AddProductRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a follower to a product. + * @summary Add a follower to a product + * @param {ProductsApiAddProductFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addProductFollower(requestParameters: ProductsApiAddProductFollowerRequest, ): Promise { + return localVarFp.addProductFollower(requestParameters.id, requestParameters.AddProductFollowerRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a product as deleted. After 30 days, the product will be permanently deleted. + * @summary Delete a product + * @param {ProductsApiDeleteProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteProduct(requestParameters: ProductsApiDeleteProductRequest, ): Promise { + return localVarFp.deleteProduct(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a follower from a product. + * @summary Delete a follower from a product + * @param {ProductsApiDeleteProductFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteProductFollower(requestParameters: ProductsApiDeleteProductFollowerRequest, ): Promise { + return localVarFp.deleteProductFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific product. + * @summary Get one product + * @param {ProductsApiGetProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProduct(requestParameters: ProductsApiGetProductRequest, ): Promise { + return localVarFp.getProduct(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about deals that have a product attached to it. + * @summary Get deals where a product is attached to + * @param {ProductsApiGetProductDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProductDeals(requestParameters: ProductsApiGetProductDealsRequest, ): Promise { + return localVarFp.getProductDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status, ).then((request) => request(axios, basePath)); + }, + /** + * Lists files associated with a product. + * @summary List files attached to a product + * @param {ProductsApiGetProductFilesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProductFiles(requestParameters: ProductsApiGetProductFilesRequest, ): Promise { + return localVarFp.getProductFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(axios, basePath)); + }, + /** + * Lists the followers of a product. + * @summary List followers of a product + * @param {ProductsApiGetProductFollowersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProductFollowers(requestParameters: ProductsApiGetProductFollowersRequest, ): Promise { + return localVarFp.getProductFollowers(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Lists users permitted to access a product. + * @summary List permitted users + * @param {ProductsApiGetProductUsersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProductUsers(requestParameters: ProductsApiGetProductUsersRequest, ): Promise { + return localVarFp.getProductUsers(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all products. + * @summary Get all products + * @param {ProductsApiGetProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProducts(requestParameters: ProductsApiGetProductsRequest = {}, ): Promise { + return localVarFp.getProducts(requestParameters.user_id, requestParameters.filter_id, requestParameters.ids, requestParameters.first_char, requestParameters.get_summary, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search products + * @param {ProductsApiSearchProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchProducts(requestParameters: ProductsApiSearchProductsRequest, ): Promise { + return localVarFp.searchProducts(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates product data. + * @summary Update a product + * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateProduct(requestParameters: ProductsApiUpdateProductRequest, ): Promise { + return localVarFp.updateProduct(requestParameters.id, requestParameters.UpdateProductRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addProduct operation in ProductsApi. + * @export + * @interface ProductsApiAddProductRequest + */ +export interface ProductsApiAddProductRequest { + /** + * + * @type {AddProductRequest} + * @memberof ProductsApiAddProduct + */ + readonly AddProductRequest?: AddProductRequest +} + +/** + * Request parameters for addProductFollower operation in ProductsApi. + * @export + * @interface ProductsApiAddProductFollowerRequest + */ +export interface ProductsApiAddProductFollowerRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiAddProductFollower + */ + readonly id: number + + /** + * + * @type {AddProductFollowerRequest} + * @memberof ProductsApiAddProductFollower + */ + readonly AddProductFollowerRequest?: AddProductFollowerRequest +} + +/** + * Request parameters for deleteProduct operation in ProductsApi. + * @export + * @interface ProductsApiDeleteProductRequest + */ +export interface ProductsApiDeleteProductRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiDeleteProduct + */ + readonly id: number +} + +/** + * Request parameters for deleteProductFollower operation in ProductsApi. + * @export + * @interface ProductsApiDeleteProductFollowerRequest + */ +export interface ProductsApiDeleteProductFollowerRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiDeleteProductFollower + */ + readonly id: number + + /** + * The ID of the relationship between the follower and the product + * @type {number} + * @memberof ProductsApiDeleteProductFollower + */ + readonly follower_id: number +} + +/** + * Request parameters for getProduct operation in ProductsApi. + * @export + * @interface ProductsApiGetProductRequest + */ +export interface ProductsApiGetProductRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiGetProduct + */ + readonly id: number +} + +/** + * Request parameters for getProductDeals operation in ProductsApi. + * @export + * @interface ProductsApiGetProductDealsRequest + */ +export interface ProductsApiGetProductDealsRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiGetProductDeals + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof ProductsApiGetProductDeals + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof ProductsApiGetProductDeals + */ + readonly limit?: number + + /** + * Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. + * @type {'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted'} + * @memberof ProductsApiGetProductDeals + */ + readonly status?: 'open' | 'won' | 'lost' | 'deleted' | 'all_not_deleted' +} + +/** + * Request parameters for getProductFiles operation in ProductsApi. + * @export + * @interface ProductsApiGetProductFilesRequest + */ +export interface ProductsApiGetProductFilesRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiGetProductFiles + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof ProductsApiGetProductFiles + */ + readonly start?: number + + /** + * Items shown per page. Please note that a maximum value of 100 is allowed. + * @type {number} + * @memberof ProductsApiGetProductFiles + */ + readonly limit?: number + + /** + * Supported fields: `id`, `update_time` + * @type {string} + * @memberof ProductsApiGetProductFiles + */ + readonly sort?: string +} + +/** + * Request parameters for getProductFollowers operation in ProductsApi. + * @export + * @interface ProductsApiGetProductFollowersRequest + */ +export interface ProductsApiGetProductFollowersRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiGetProductFollowers + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof ProductsApiGetProductFollowers + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof ProductsApiGetProductFollowers + */ + readonly limit?: number +} + +/** + * Request parameters for getProductUsers operation in ProductsApi. + * @export + * @interface ProductsApiGetProductUsersRequest + */ +export interface ProductsApiGetProductUsersRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiGetProductUsers + */ + readonly id: number +} + +/** + * Request parameters for getProducts operation in ProductsApi. + * @export + * @interface ProductsApiGetProductsRequest + */ +export interface ProductsApiGetProductsRequest { + /** + * If supplied, only products owned by the given user will be returned + * @type {number} + * @memberof ProductsApiGetProducts + */ + readonly user_id?: number + + /** + * The ID of the filter to use + * @type {number} + * @memberof ProductsApiGetProducts + */ + readonly filter_id?: number + + /** + * An array of integers with the IDs of the products that should be returned in the response + * @type {Array} + * @memberof ProductsApiGetProducts + */ + readonly ids?: Array + + /** + * If supplied, only products whose name starts with the specified letter will be returned (case-insensitive) + * @type {string} + * @memberof ProductsApiGetProducts + */ + readonly first_char?: string + + /** + * If supplied, the response will return the total numbers of products in the `additional_data.summary.total_count` property + * @type {boolean} + * @memberof ProductsApiGetProducts + */ + readonly get_summary?: boolean + + /** + * Pagination start + * @type {number} + * @memberof ProductsApiGetProducts + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof ProductsApiGetProducts + */ + readonly limit?: number +} + +/** + * Request parameters for searchProducts operation in ProductsApi. + * @export + * @interface ProductsApiSearchProductsRequest + */ +export interface ProductsApiSearchProductsRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof ProductsApiSearchProducts + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {'code' | 'custom_fields' | 'name'} + * @memberof ProductsApiSearchProducts + */ + readonly fields?: 'code' | 'custom_fields' | 'name' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof ProductsApiSearchProducts + */ + readonly exact_match?: boolean + + /** + * Supports including optional fields in the results which are not provided by default + * @type {'product.price'} + * @memberof ProductsApiSearchProducts + */ + readonly include_fields?: 'product.price' + + /** + * Pagination start. Note that the pagination is based on main results and does not include related items when using `search_for_related_items` parameter. + * @type {number} + * @memberof ProductsApiSearchProducts + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof ProductsApiSearchProducts + */ + readonly limit?: number +} + +/** + * Request parameters for updateProduct operation in ProductsApi. + * @export + * @interface ProductsApiUpdateProductRequest + */ +export interface ProductsApiUpdateProductRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiUpdateProduct + */ + readonly id: number + + /** + * + * @type {UpdateProductRequest} + * @memberof ProductsApiUpdateProduct + */ + readonly UpdateProductRequest?: UpdateProductRequest +} + +/** + * ProductsApi - object-oriented interface + * @export + * @class ProductsApi + * @extends {BaseAPI} + */ +export class ProductsApi extends BaseAPI { + /** + * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. + * @summary Add a product + * @param {ProductsApiAddProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public addProduct(requestParameters: ProductsApiAddProductRequest = {}, ) { + return ProductsApiFp(this.configuration).addProduct(requestParameters.AddProductRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a follower to a product. + * @summary Add a follower to a product + * @param {ProductsApiAddProductFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public addProductFollower(requestParameters: ProductsApiAddProductFollowerRequest, ) { + return ProductsApiFp(this.configuration).addProductFollower(requestParameters.id, requestParameters.AddProductFollowerRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a product as deleted. After 30 days, the product will be permanently deleted. + * @summary Delete a product + * @param {ProductsApiDeleteProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public deleteProduct(requestParameters: ProductsApiDeleteProductRequest, ) { + return ProductsApiFp(this.configuration).deleteProduct(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a follower from a product. + * @summary Delete a follower from a product + * @param {ProductsApiDeleteProductFollowerRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public deleteProductFollower(requestParameters: ProductsApiDeleteProductFollowerRequest, ) { + return ProductsApiFp(this.configuration).deleteProductFollower(requestParameters.id, requestParameters.follower_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific product. + * @summary Get one product + * @param {ProductsApiGetProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public getProduct(requestParameters: ProductsApiGetProductRequest, ) { + return ProductsApiFp(this.configuration).getProduct(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about deals that have a product attached to it. + * @summary Get deals where a product is attached to + * @param {ProductsApiGetProductDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public getProductDeals(requestParameters: ProductsApiGetProductDealsRequest, ) { + return ProductsApiFp(this.configuration).getProductDeals(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.status, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists files associated with a product. + * @summary List files attached to a product + * @param {ProductsApiGetProductFilesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public getProductFiles(requestParameters: ProductsApiGetProductFilesRequest, ) { + return ProductsApiFp(this.configuration).getProductFiles(requestParameters.id, requestParameters.start, requestParameters.limit, requestParameters.sort, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists the followers of a product. + * @summary List followers of a product + * @param {ProductsApiGetProductFollowersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public getProductFollowers(requestParameters: ProductsApiGetProductFollowersRequest, ) { + return ProductsApiFp(this.configuration).getProductFollowers(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists users permitted to access a product. + * @summary List permitted users + * @param {ProductsApiGetProductUsersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public getProductUsers(requestParameters: ProductsApiGetProductUsersRequest, ) { + return ProductsApiFp(this.configuration).getProductUsers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all products. + * @summary Get all products + * @param {ProductsApiGetProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public getProducts(requestParameters: ProductsApiGetProductsRequest = {}, ) { + return ProductsApiFp(this.configuration).getProducts(requestParameters.user_id, requestParameters.filter_id, requestParameters.ids, requestParameters.first_char, requestParameters.get_summary, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search products + * @param {ProductsApiSearchProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public searchProducts(requestParameters: ProductsApiSearchProductsRequest, ) { + return ProductsApiFp(this.configuration).searchProducts(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates product data. + * @summary Update a product + * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public updateProduct(requestParameters: ProductsApiUpdateProductRequest, ) { + return ProductsApiFp(this.configuration).updateProduct(requestParameters.id, requestParameters.UpdateProductRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/project-templates-api.ts b/src/versions/v1/api/project-templates-api.ts new file mode 100644 index 00000000..f4130d19 --- /dev/null +++ b/src/versions/v1/api/project-templates-api.ts @@ -0,0 +1,434 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetProjectBoardResponse } from '../models'; +// @ts-ignore +import { GetProjectPhaseResponse } from '../models'; +// @ts-ignore +import { GetProjectTemplateResponse } from '../models'; +// @ts-ignore +import { GetProjectTemplatesResponse } from '../models'; +/** + * ProjectTemplatesApi - axios parameter creator + * @export + */ +export const ProjectTemplatesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Returns the details of a specific project template. + * @summary Get details of a template + * @param {number} id The ID of the project template + + * @throws {RequiredError} + */ + getProjectTemplate: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProjectTemplate', 'id', id) + const localVarPath = `/projectTemplates/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all not deleted project templates. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all project templates + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. + + * @throws {RequiredError} + */ + getProjectTemplates: async (cursor?: string, limit?: number, ): Promise => { + const localVarPath = `/projectTemplates`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific project board. + * @summary Get details of a board + * @param {number} id The ID of the project board + + * @throws {RequiredError} + */ + getProjectsBoard: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProjectsBoard', 'id', id) + const localVarPath = `/projects/boards/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific project phase. + * @summary Get details of a phase + * @param {number} id The ID of the project phase + + * @throws {RequiredError} + */ + getProjectsPhase: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProjectsPhase', 'id', id) + const localVarPath = `/projects/phases/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * ProjectTemplatesApi - functional programming interface + * @export + */ +export const ProjectTemplatesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ProjectTemplatesApiAxiosParamCreator(configuration) + return { + /** + * Returns the details of a specific project template. + * @summary Get details of a template + * @param {number} id The ID of the project template + + * @throws {RequiredError} + */ + async getProjectTemplate(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectTemplate(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all not deleted project templates. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all project templates + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. + + * @throws {RequiredError} + */ + async getProjectTemplates(cursor?: string, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectTemplates(cursor, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific project board. + * @summary Get details of a board + * @param {number} id The ID of the project board + + * @throws {RequiredError} + */ + async getProjectsBoard(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectsBoard(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific project phase. + * @summary Get details of a phase + * @param {number} id The ID of the project phase + + * @throws {RequiredError} + */ + async getProjectsPhase(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectsPhase(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ProjectTemplatesApi - factory interface + * @export + */ +export const ProjectTemplatesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ProjectTemplatesApiFp(configuration) + return { + /** + * Returns the details of a specific project template. + * @summary Get details of a template + * @param {ProjectTemplatesApiGetProjectTemplateRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProjectTemplate(requestParameters: ProjectTemplatesApiGetProjectTemplateRequest, ): Promise { + return localVarFp.getProjectTemplate(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all not deleted project templates. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all project templates + * @param {ProjectTemplatesApiGetProjectTemplatesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProjectTemplates(requestParameters: ProjectTemplatesApiGetProjectTemplatesRequest = {}, ): Promise { + return localVarFp.getProjectTemplates(requestParameters.cursor, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific project board. + * @summary Get details of a board + * @param {ProjectTemplatesApiGetProjectsBoardRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProjectsBoard(requestParameters: ProjectTemplatesApiGetProjectsBoardRequest, ): Promise { + return localVarFp.getProjectsBoard(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific project phase. + * @summary Get details of a phase + * @param {ProjectTemplatesApiGetProjectsPhaseRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProjectsPhase(requestParameters: ProjectTemplatesApiGetProjectsPhaseRequest, ): Promise { + return localVarFp.getProjectsPhase(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for getProjectTemplate operation in ProjectTemplatesApi. + * @export + * @interface ProjectTemplatesApiGetProjectTemplateRequest + */ +export interface ProjectTemplatesApiGetProjectTemplateRequest { + /** + * The ID of the project template + * @type {number} + * @memberof ProjectTemplatesApiGetProjectTemplate + */ + readonly id: number +} + +/** + * Request parameters for getProjectTemplates operation in ProjectTemplatesApi. + * @export + * @interface ProjectTemplatesApiGetProjectTemplatesRequest + */ +export interface ProjectTemplatesApiGetProjectTemplatesRequest { + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof ProjectTemplatesApiGetProjectTemplates + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. + * @type {number} + * @memberof ProjectTemplatesApiGetProjectTemplates + */ + readonly limit?: number +} + +/** + * Request parameters for getProjectsBoard operation in ProjectTemplatesApi. + * @export + * @interface ProjectTemplatesApiGetProjectsBoardRequest + */ +export interface ProjectTemplatesApiGetProjectsBoardRequest { + /** + * The ID of the project board + * @type {number} + * @memberof ProjectTemplatesApiGetProjectsBoard + */ + readonly id: number +} + +/** + * Request parameters for getProjectsPhase operation in ProjectTemplatesApi. + * @export + * @interface ProjectTemplatesApiGetProjectsPhaseRequest + */ +export interface ProjectTemplatesApiGetProjectsPhaseRequest { + /** + * The ID of the project phase + * @type {number} + * @memberof ProjectTemplatesApiGetProjectsPhase + */ + readonly id: number +} + +/** + * ProjectTemplatesApi - object-oriented interface + * @export + * @class ProjectTemplatesApi + * @extends {BaseAPI} + */ +export class ProjectTemplatesApi extends BaseAPI { + /** + * Returns the details of a specific project template. + * @summary Get details of a template + * @param {ProjectTemplatesApiGetProjectTemplateRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectTemplatesApi + */ + public getProjectTemplate(requestParameters: ProjectTemplatesApiGetProjectTemplateRequest, ) { + return ProjectTemplatesApiFp(this.configuration).getProjectTemplate(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all not deleted project templates. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all project templates + * @param {ProjectTemplatesApiGetProjectTemplatesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectTemplatesApi + */ + public getProjectTemplates(requestParameters: ProjectTemplatesApiGetProjectTemplatesRequest = {}, ) { + return ProjectTemplatesApiFp(this.configuration).getProjectTemplates(requestParameters.cursor, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific project board. + * @summary Get details of a board + * @param {ProjectTemplatesApiGetProjectsBoardRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectTemplatesApi + */ + public getProjectsBoard(requestParameters: ProjectTemplatesApiGetProjectsBoardRequest, ) { + return ProjectTemplatesApiFp(this.configuration).getProjectsBoard(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific project phase. + * @summary Get details of a phase + * @param {ProjectTemplatesApiGetProjectsPhaseRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectTemplatesApi + */ + public getProjectsPhase(requestParameters: ProjectTemplatesApiGetProjectsPhaseRequest, ) { + return ProjectTemplatesApiFp(this.configuration).getProjectsPhase(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/projects-api.ts b/src/versions/v1/api/projects-api.ts new file mode 100644 index 00000000..fe9d0ff9 --- /dev/null +++ b/src/versions/v1/api/projects-api.ts @@ -0,0 +1,1432 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddProjectRequest } from '../models'; +// @ts-ignore +import { AddProjectResponse } from '../models'; +// @ts-ignore +import { DeleteProjectResponse } from '../models'; +// @ts-ignore +import { GetActivitiesCollectionResponse } from '../models'; +// @ts-ignore +import { GetProjectBoardsResponse } from '../models'; +// @ts-ignore +import { GetProjectGroupsResponse } from '../models'; +// @ts-ignore +import { GetProjectPhasesResponse } from '../models'; +// @ts-ignore +import { GetProjectPlanResponse } from '../models'; +// @ts-ignore +import { GetProjectResponse } from '../models'; +// @ts-ignore +import { GetProjectsResponse } from '../models'; +// @ts-ignore +import { GetTasksResponse } from '../models'; +// @ts-ignore +import { ProjectPutPlanItemBodyObject } from '../models'; +// @ts-ignore +import { UpdateActivityPlanItemResponse } from '../models'; +// @ts-ignore +import { UpdateProjectRequest } from '../models'; +// @ts-ignore +import { UpdateProjectResponse } from '../models'; +// @ts-ignore +import { UpdateTaskPlanItemResponse } from '../models'; +/** + * ProjectsApi - axios parameter creator + * @export + */ +export const ProjectsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new project. 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. + * @summary Add a project + * @param {AddProjectRequest} [AddProjectRequest] + + * @throws {RequiredError} + */ + addProject: async (AddProjectRequest?: AddProjectRequest, ): Promise => { + const localVarPath = `/projects`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddProjectRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Archives a project. + * @summary Archive a project + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + archiveProject: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('archiveProject', 'id', id) + const localVarPath = `/projects/{id}/archive` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a project as deleted. + * @summary Delete a project + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + deleteProject: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteProject', 'id', id) + const localVarPath = `/projects/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields. + * @summary Get details of a project + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + getProject: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProject', 'id', id) + const localVarPath = `/projects/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns activities linked to a specific project. + * @summary Returns project activities + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + getProjectActivities: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProjectActivities', 'id', id) + const localVarPath = `/projects/{id}/activities` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all active groups under a specific project. + * @summary Returns project groups + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + getProjectGroups: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProjectGroups', 'id', id) + const localVarPath = `/projects/{id}/groups` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group. + * @summary Returns project plan + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + getProjectPlan: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProjectPlan', 'id', id) + const localVarPath = `/projects/{id}/plan` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns tasks linked to a specific project. + * @summary Returns project tasks + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + getProjectTasks: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProjectTasks', 'id', id) + const localVarPath = `/projects/{id}/tasks` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all projects + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. + * @param {number} [filter_id] The ID of the filter to use + * @param {string} [status] If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned. + * @param {number} [phase_id] If supplied, only projects in specified phase are returned + * @param {boolean} [include_archived] If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned. + + * @throws {RequiredError} + */ + getProjects: async (cursor?: string, limit?: number, filter_id?: number, status?: string, phase_id?: number, include_archived?: boolean, ): Promise => { + const localVarPath = `/projects`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + if (phase_id !== undefined) { + localVarQueryParameter['phase_id'] = phase_id; + } + + if (include_archived !== undefined) { + localVarQueryParameter['include_archived'] = include_archived; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all projects boards that are not deleted. + * @summary Get all project boards + + * @throws {RequiredError} + */ + getProjectsBoards: async (): Promise => { + const localVarPath = `/projects/boards`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all active project phases under a specific board. + * @summary Get project phases + * @param {number} board_id ID of the board for which phases are requested + + * @throws {RequiredError} + */ + getProjectsPhases: async (board_id: number, ): Promise => { + // verify required parameter 'board_id' is not null or undefined + assertParamExists('getProjectsPhases', 'board_id', board_id) + const localVarPath = `/projects/phases`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + if (board_id !== undefined) { + localVarQueryParameter['board_id'] = board_id; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates an activity phase or group in a project. + * @summary Update activity in project plan + * @param {number} id The ID of the project + * @param {number} activityId The ID of the activity + * @param {ProjectPutPlanItemBodyObject} [ProjectPutPlanItemBodyObject] + + * @throws {RequiredError} + */ + putProjectPlanActivity: async (id: number, activityId: number, ProjectPutPlanItemBodyObject?: ProjectPutPlanItemBodyObject, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('putProjectPlanActivity', 'id', id) + // verify required parameter 'activityId' is not null or undefined + assertParamExists('putProjectPlanActivity', 'activityId', activityId) + const localVarPath = `/projects/{id}/plan/activities/{activityId}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"activityId"}}`, encodeURIComponent(String(activityId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(ProjectPutPlanItemBodyObject, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates a task phase or group in a project. + * @summary Update task in project plan + * @param {number} id The ID of the project + * @param {number} taskId The ID of the task + * @param {ProjectPutPlanItemBodyObject} [ProjectPutPlanItemBodyObject] + + * @throws {RequiredError} + */ + putProjectPlanTask: async (id: number, taskId: number, ProjectPutPlanItemBodyObject?: ProjectPutPlanItemBodyObject, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('putProjectPlanTask', 'id', id) + // verify required parameter 'taskId' is not null or undefined + assertParamExists('putProjectPlanTask', 'taskId', taskId) + const localVarPath = `/projects/{id}/plan/tasks/{taskId}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"taskId"}}`, encodeURIComponent(String(taskId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(ProjectPutPlanItemBodyObject, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates a project. + * @summary Update a project + * @param {number} id The ID of the project + * @param {UpdateProjectRequest} [UpdateProjectRequest] + + * @throws {RequiredError} + */ + updateProject: async (id: number, UpdateProjectRequest?: UpdateProjectRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateProject', 'id', id) + const localVarPath = `/projects/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateProjectRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * ProjectsApi - functional programming interface + * @export + */ +export const ProjectsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new project. 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. + * @summary Add a project + * @param {AddProjectRequest} [AddProjectRequest] + + * @throws {RequiredError} + */ + async addProject(AddProjectRequest?: AddProjectRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addProject(AddProjectRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Archives a project. + * @summary Archive a project + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + async archiveProject(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.archiveProject(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a project as deleted. + * @summary Delete a project + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + async deleteProject(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProject(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields. + * @summary Get details of a project + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + async getProject(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProject(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns activities linked to a specific project. + * @summary Returns project activities + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + async getProjectActivities(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectActivities(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all active groups under a specific project. + * @summary Returns project groups + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + async getProjectGroups(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectGroups(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group. + * @summary Returns project plan + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + async getProjectPlan(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectPlan(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns tasks linked to a specific project. + * @summary Returns project tasks + * @param {number} id The ID of the project + + * @throws {RequiredError} + */ + async getProjectTasks(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectTasks(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all projects + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. + * @param {number} [filter_id] The ID of the filter to use + * @param {string} [status] If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned. + * @param {number} [phase_id] If supplied, only projects in specified phase are returned + * @param {boolean} [include_archived] If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned. + + * @throws {RequiredError} + */ + async getProjects(cursor?: string, limit?: number, filter_id?: number, status?: string, phase_id?: number, include_archived?: boolean, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProjects(cursor, limit, filter_id, status, phase_id, include_archived, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all projects boards that are not deleted. + * @summary Get all project boards + + * @throws {RequiredError} + */ + async getProjectsBoards(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectsBoards(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all active project phases under a specific board. + * @summary Get project phases + * @param {number} board_id ID of the board for which phases are requested + + * @throws {RequiredError} + */ + async getProjectsPhases(board_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectsPhases(board_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates an activity phase or group in a project. + * @summary Update activity in project plan + * @param {number} id The ID of the project + * @param {number} activityId The ID of the activity + * @param {ProjectPutPlanItemBodyObject} [ProjectPutPlanItemBodyObject] + + * @throws {RequiredError} + */ + async putProjectPlanActivity(id: number, activityId: number, ProjectPutPlanItemBodyObject?: ProjectPutPlanItemBodyObject, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.putProjectPlanActivity(id, activityId, ProjectPutPlanItemBodyObject, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates a task phase or group in a project. + * @summary Update task in project plan + * @param {number} id The ID of the project + * @param {number} taskId The ID of the task + * @param {ProjectPutPlanItemBodyObject} [ProjectPutPlanItemBodyObject] + + * @throws {RequiredError} + */ + async putProjectPlanTask(id: number, taskId: number, ProjectPutPlanItemBodyObject?: ProjectPutPlanItemBodyObject, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.putProjectPlanTask(id, taskId, ProjectPutPlanItemBodyObject, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates a project. + * @summary Update a project + * @param {number} id The ID of the project + * @param {UpdateProjectRequest} [UpdateProjectRequest] + + * @throws {RequiredError} + */ + async updateProject(id: number, UpdateProjectRequest?: UpdateProjectRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateProject(id, UpdateProjectRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ProjectsApi - factory interface + * @export + */ +export const ProjectsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ProjectsApiFp(configuration) + return { + /** + * Adds a new project. 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. + * @summary Add a project + * @param {ProjectsApiAddProjectRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addProject(requestParameters: ProjectsApiAddProjectRequest = {}, ): Promise { + return localVarFp.addProject(requestParameters.AddProjectRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Archives a project. + * @summary Archive a project + * @param {ProjectsApiArchiveProjectRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + archiveProject(requestParameters: ProjectsApiArchiveProjectRequest, ): Promise { + return localVarFp.archiveProject(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a project as deleted. + * @summary Delete a project + * @param {ProjectsApiDeleteProjectRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteProject(requestParameters: ProjectsApiDeleteProjectRequest, ): Promise { + return localVarFp.deleteProject(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields. + * @summary Get details of a project + * @param {ProjectsApiGetProjectRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProject(requestParameters: ProjectsApiGetProjectRequest, ): Promise { + return localVarFp.getProject(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns activities linked to a specific project. + * @summary Returns project activities + * @param {ProjectsApiGetProjectActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProjectActivities(requestParameters: ProjectsApiGetProjectActivitiesRequest, ): Promise { + return localVarFp.getProjectActivities(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all active groups under a specific project. + * @summary Returns project groups + * @param {ProjectsApiGetProjectGroupsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProjectGroups(requestParameters: ProjectsApiGetProjectGroupsRequest, ): Promise { + return localVarFp.getProjectGroups(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group. + * @summary Returns project plan + * @param {ProjectsApiGetProjectPlanRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProjectPlan(requestParameters: ProjectsApiGetProjectPlanRequest, ): Promise { + return localVarFp.getProjectPlan(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns tasks linked to a specific project. + * @summary Returns project tasks + * @param {ProjectsApiGetProjectTasksRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProjectTasks(requestParameters: ProjectsApiGetProjectTasksRequest, ): Promise { + return localVarFp.getProjectTasks(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all projects + * @param {ProjectsApiGetProjectsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProjects(requestParameters: ProjectsApiGetProjectsRequest = {}, ): Promise { + return localVarFp.getProjects(requestParameters.cursor, requestParameters.limit, requestParameters.filter_id, requestParameters.status, requestParameters.phase_id, requestParameters.include_archived, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all projects boards that are not deleted. + * @summary Get all project boards + + * @throws {RequiredError} + */ + getProjectsBoards(): Promise { + return localVarFp.getProjectsBoards().then((request) => request(axios, basePath)); + }, + /** + * Returns all active project phases under a specific board. + * @summary Get project phases + * @param {ProjectsApiGetProjectsPhasesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProjectsPhases(requestParameters: ProjectsApiGetProjectsPhasesRequest, ): Promise { + return localVarFp.getProjectsPhases(requestParameters.board_id, ).then((request) => request(axios, basePath)); + }, + /** + * Updates an activity phase or group in a project. + * @summary Update activity in project plan + * @param {ProjectsApiPutProjectPlanActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + putProjectPlanActivity(requestParameters: ProjectsApiPutProjectPlanActivityRequest, ): Promise { + return localVarFp.putProjectPlanActivity(requestParameters.id, requestParameters.activityId, requestParameters.ProjectPutPlanItemBodyObject, ).then((request) => request(axios, basePath)); + }, + /** + * Updates a task phase or group in a project. + * @summary Update task in project plan + * @param {ProjectsApiPutProjectPlanTaskRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + putProjectPlanTask(requestParameters: ProjectsApiPutProjectPlanTaskRequest, ): Promise { + return localVarFp.putProjectPlanTask(requestParameters.id, requestParameters.taskId, requestParameters.ProjectPutPlanItemBodyObject, ).then((request) => request(axios, basePath)); + }, + /** + * Updates a project. + * @summary Update a project + * @param {ProjectsApiUpdateProjectRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateProject(requestParameters: ProjectsApiUpdateProjectRequest, ): Promise { + return localVarFp.updateProject(requestParameters.id, requestParameters.UpdateProjectRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addProject operation in ProjectsApi. + * @export + * @interface ProjectsApiAddProjectRequest + */ +export interface ProjectsApiAddProjectRequest { + /** + * + * @type {AddProjectRequest} + * @memberof ProjectsApiAddProject + */ + readonly AddProjectRequest?: AddProjectRequest +} + +/** + * Request parameters for archiveProject operation in ProjectsApi. + * @export + * @interface ProjectsApiArchiveProjectRequest + */ +export interface ProjectsApiArchiveProjectRequest { + /** + * The ID of the project + * @type {number} + * @memberof ProjectsApiArchiveProject + */ + readonly id: number +} + +/** + * Request parameters for deleteProject operation in ProjectsApi. + * @export + * @interface ProjectsApiDeleteProjectRequest + */ +export interface ProjectsApiDeleteProjectRequest { + /** + * The ID of the project + * @type {number} + * @memberof ProjectsApiDeleteProject + */ + readonly id: number +} + +/** + * Request parameters for getProject operation in ProjectsApi. + * @export + * @interface ProjectsApiGetProjectRequest + */ +export interface ProjectsApiGetProjectRequest { + /** + * The ID of the project + * @type {number} + * @memberof ProjectsApiGetProject + */ + readonly id: number +} + +/** + * Request parameters for getProjectActivities operation in ProjectsApi. + * @export + * @interface ProjectsApiGetProjectActivitiesRequest + */ +export interface ProjectsApiGetProjectActivitiesRequest { + /** + * The ID of the project + * @type {number} + * @memberof ProjectsApiGetProjectActivities + */ + readonly id: number +} + +/** + * Request parameters for getProjectGroups operation in ProjectsApi. + * @export + * @interface ProjectsApiGetProjectGroupsRequest + */ +export interface ProjectsApiGetProjectGroupsRequest { + /** + * The ID of the project + * @type {number} + * @memberof ProjectsApiGetProjectGroups + */ + readonly id: number +} + +/** + * Request parameters for getProjectPlan operation in ProjectsApi. + * @export + * @interface ProjectsApiGetProjectPlanRequest + */ +export interface ProjectsApiGetProjectPlanRequest { + /** + * The ID of the project + * @type {number} + * @memberof ProjectsApiGetProjectPlan + */ + readonly id: number +} + +/** + * Request parameters for getProjectTasks operation in ProjectsApi. + * @export + * @interface ProjectsApiGetProjectTasksRequest + */ +export interface ProjectsApiGetProjectTasksRequest { + /** + * The ID of the project + * @type {number} + * @memberof ProjectsApiGetProjectTasks + */ + readonly id: number +} + +/** + * Request parameters for getProjects operation in ProjectsApi. + * @export + * @interface ProjectsApiGetProjectsRequest + */ +export interface ProjectsApiGetProjectsRequest { + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof ProjectsApiGetProjects + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. + * @type {number} + * @memberof ProjectsApiGetProjects + */ + readonly limit?: number + + /** + * The ID of the filter to use + * @type {number} + * @memberof ProjectsApiGetProjects + */ + readonly filter_id?: number + + /** + * If supplied, includes only projects with the specified statuses. Possible values are `open`, `completed`, `canceled` and `deleted`. By default `deleted` projects are not returned. + * @type {string} + * @memberof ProjectsApiGetProjects + */ + readonly status?: string + + /** + * If supplied, only projects in specified phase are returned + * @type {number} + * @memberof ProjectsApiGetProjects + */ + readonly phase_id?: number + + /** + * If supplied with `true` then archived projects are also included in the response. By default only not archived projects are returned. + * @type {boolean} + * @memberof ProjectsApiGetProjects + */ + readonly include_archived?: boolean +} + +/** + * Request parameters for getProjectsPhases operation in ProjectsApi. + * @export + * @interface ProjectsApiGetProjectsPhasesRequest + */ +export interface ProjectsApiGetProjectsPhasesRequest { + /** + * ID of the board for which phases are requested + * @type {number} + * @memberof ProjectsApiGetProjectsPhases + */ + readonly board_id: number +} + +/** + * Request parameters for putProjectPlanActivity operation in ProjectsApi. + * @export + * @interface ProjectsApiPutProjectPlanActivityRequest + */ +export interface ProjectsApiPutProjectPlanActivityRequest { + /** + * The ID of the project + * @type {number} + * @memberof ProjectsApiPutProjectPlanActivity + */ + readonly id: number + + /** + * The ID of the activity + * @type {number} + * @memberof ProjectsApiPutProjectPlanActivity + */ + readonly activityId: number + + /** + * + * @type {ProjectPutPlanItemBodyObject} + * @memberof ProjectsApiPutProjectPlanActivity + */ + readonly ProjectPutPlanItemBodyObject?: ProjectPutPlanItemBodyObject +} + +/** + * Request parameters for putProjectPlanTask operation in ProjectsApi. + * @export + * @interface ProjectsApiPutProjectPlanTaskRequest + */ +export interface ProjectsApiPutProjectPlanTaskRequest { + /** + * The ID of the project + * @type {number} + * @memberof ProjectsApiPutProjectPlanTask + */ + readonly id: number + + /** + * The ID of the task + * @type {number} + * @memberof ProjectsApiPutProjectPlanTask + */ + readonly taskId: number + + /** + * + * @type {ProjectPutPlanItemBodyObject} + * @memberof ProjectsApiPutProjectPlanTask + */ + readonly ProjectPutPlanItemBodyObject?: ProjectPutPlanItemBodyObject +} + +/** + * Request parameters for updateProject operation in ProjectsApi. + * @export + * @interface ProjectsApiUpdateProjectRequest + */ +export interface ProjectsApiUpdateProjectRequest { + /** + * The ID of the project + * @type {number} + * @memberof ProjectsApiUpdateProject + */ + readonly id: number + + /** + * + * @type {UpdateProjectRequest} + * @memberof ProjectsApiUpdateProject + */ + readonly UpdateProjectRequest?: UpdateProjectRequest +} + +/** + * ProjectsApi - object-oriented interface + * @export + * @class ProjectsApi + * @extends {BaseAPI} + */ +export class ProjectsApi extends BaseAPI { + /** + * Adds a new project. 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. + * @summary Add a project + * @param {ProjectsApiAddProjectRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public addProject(requestParameters: ProjectsApiAddProjectRequest = {}, ) { + return ProjectsApiFp(this.configuration).addProject(requestParameters.AddProjectRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Archives a project. + * @summary Archive a project + * @param {ProjectsApiArchiveProjectRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public archiveProject(requestParameters: ProjectsApiArchiveProjectRequest, ) { + return ProjectsApiFp(this.configuration).archiveProject(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a project as deleted. + * @summary Delete a project + * @param {ProjectsApiDeleteProjectRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public deleteProject(requestParameters: ProjectsApiDeleteProjectRequest, ) { + return ProjectsApiFp(this.configuration).deleteProject(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific project. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the `key` value of project fields. + * @summary Get details of a project + * @param {ProjectsApiGetProjectRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public getProject(requestParameters: ProjectsApiGetProjectRequest, ) { + return ProjectsApiFp(this.configuration).getProject(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns activities linked to a specific project. + * @summary Returns project activities + * @param {ProjectsApiGetProjectActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public getProjectActivities(requestParameters: ProjectsApiGetProjectActivitiesRequest, ) { + return ProjectsApiFp(this.configuration).getProjectActivities(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all active groups under a specific project. + * @summary Returns project groups + * @param {ProjectsApiGetProjectGroupsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public getProjectGroups(requestParameters: ProjectsApiGetProjectGroupsRequest, ) { + return ProjectsApiFp(this.configuration).getProjectGroups(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns information about items in a project plan. Items consists of tasks and activities and are linked to specific project phase and group. + * @summary Returns project plan + * @param {ProjectsApiGetProjectPlanRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public getProjectPlan(requestParameters: ProjectsApiGetProjectPlanRequest, ) { + return ProjectsApiFp(this.configuration).getProjectPlan(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns tasks linked to a specific project. + * @summary Returns project tasks + * @param {ProjectsApiGetProjectTasksRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public getProjectTasks(requestParameters: ProjectsApiGetProjectTasksRequest, ) { + return ProjectsApiFp(this.configuration).getProjectTasks(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all projects. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all projects + * @param {ProjectsApiGetProjectsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public getProjects(requestParameters: ProjectsApiGetProjectsRequest = {}, ) { + return ProjectsApiFp(this.configuration).getProjects(requestParameters.cursor, requestParameters.limit, requestParameters.filter_id, requestParameters.status, requestParameters.phase_id, requestParameters.include_archived, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all projects boards that are not deleted. + * @summary Get all project boards + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public getProjectsBoards() { + return ProjectsApiFp(this.configuration).getProjectsBoards().then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all active project phases under a specific board. + * @summary Get project phases + * @param {ProjectsApiGetProjectsPhasesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public getProjectsPhases(requestParameters: ProjectsApiGetProjectsPhasesRequest, ) { + return ProjectsApiFp(this.configuration).getProjectsPhases(requestParameters.board_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates an activity phase or group in a project. + * @summary Update activity in project plan + * @param {ProjectsApiPutProjectPlanActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public putProjectPlanActivity(requestParameters: ProjectsApiPutProjectPlanActivityRequest, ) { + return ProjectsApiFp(this.configuration).putProjectPlanActivity(requestParameters.id, requestParameters.activityId, requestParameters.ProjectPutPlanItemBodyObject, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates a task phase or group in a project. + * @summary Update task in project plan + * @param {ProjectsApiPutProjectPlanTaskRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public putProjectPlanTask(requestParameters: ProjectsApiPutProjectPlanTaskRequest, ) { + return ProjectsApiFp(this.configuration).putProjectPlanTask(requestParameters.id, requestParameters.taskId, requestParameters.ProjectPutPlanItemBodyObject, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates a project. + * @summary Update a project + * @param {ProjectsApiUpdateProjectRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProjectsApi + */ + public updateProject(requestParameters: ProjectsApiUpdateProjectRequest, ) { + return ProjectsApiFp(this.configuration).updateProject(requestParameters.id, requestParameters.UpdateProjectRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/recents-api.ts b/src/versions/v1/api/recents-api.ts new file mode 100644 index 00000000..5c4b7c2b --- /dev/null +++ b/src/versions/v1/api/recents-api.ts @@ -0,0 +1,192 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetRecentsResponse } from '../models'; +/** + * RecentsApi - axios parameter creator + * @export + */ +export const RecentsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Returns data about all recent changes occurred after the given timestamp. + * @summary Get recents + * @param {string} since_timestamp The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @param {'activity' | 'activityType' | 'deal' | 'file' | 'filter' | 'note' | 'person' | 'organization' | 'pipeline' | 'product' | 'stage' | 'user'} [items] Multiple selection of item types to include in the query (optional) + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getRecents: async (since_timestamp: string, items?: 'activity' | 'activityType' | 'deal' | 'file' | 'filter' | 'note' | 'person' | 'organization' | 'pipeline' | 'product' | 'stage' | 'user', start?: number, limit?: number, ): Promise => { + // verify required parameter 'since_timestamp' is not null or undefined + assertParamExists('getRecents', 'since_timestamp', since_timestamp) + const localVarPath = `/recents`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["recents:read", "search:read"], configuration) + + if (since_timestamp !== undefined) { + localVarQueryParameter['since_timestamp'] = since_timestamp; + } + + if (items !== undefined) { + localVarQueryParameter['items'] = items; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * RecentsApi - functional programming interface + * @export + */ +export const RecentsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = RecentsApiAxiosParamCreator(configuration) + return { + /** + * Returns data about all recent changes occurred after the given timestamp. + * @summary Get recents + * @param {string} since_timestamp The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @param {'activity' | 'activityType' | 'deal' | 'file' | 'filter' | 'note' | 'person' | 'organization' | 'pipeline' | 'product' | 'stage' | 'user'} [items] Multiple selection of item types to include in the query (optional) + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getRecents(since_timestamp: string, items?: 'activity' | 'activityType' | 'deal' | 'file' | 'filter' | 'note' | 'person' | 'organization' | 'pipeline' | 'product' | 'stage' | 'user', start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRecents(since_timestamp, items, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * RecentsApi - factory interface + * @export + */ +export const RecentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = RecentsApiFp(configuration) + return { + /** + * Returns data about all recent changes occurred after the given timestamp. + * @summary Get recents + * @param {RecentsApiGetRecentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getRecents(requestParameters: RecentsApiGetRecentsRequest, ): Promise { + return localVarFp.getRecents(requestParameters.since_timestamp, requestParameters.items, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for getRecents operation in RecentsApi. + * @export + * @interface RecentsApiGetRecentsRequest + */ +export interface RecentsApiGetRecentsRequest { + /** + * The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + * @memberof RecentsApiGetRecents + */ + readonly since_timestamp: string + + /** + * Multiple selection of item types to include in the query (optional) + * @type {'activity' | 'activityType' | 'deal' | 'file' | 'filter' | 'note' | 'person' | 'organization' | 'pipeline' | 'product' | 'stage' | 'user'} + * @memberof RecentsApiGetRecents + */ + readonly items?: 'activity' | 'activityType' | 'deal' | 'file' | 'filter' | 'note' | 'person' | 'organization' | 'pipeline' | 'product' | 'stage' | 'user' + + /** + * Pagination start + * @type {number} + * @memberof RecentsApiGetRecents + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof RecentsApiGetRecents + */ + readonly limit?: number +} + +/** + * RecentsApi - object-oriented interface + * @export + * @class RecentsApi + * @extends {BaseAPI} + */ +export class RecentsApi extends BaseAPI { + /** + * Returns data about all recent changes occurred after the given timestamp. + * @summary Get recents + * @param {RecentsApiGetRecentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RecentsApi + */ + public getRecents(requestParameters: RecentsApiGetRecentsRequest, ) { + return RecentsApiFp(this.configuration).getRecents(requestParameters.since_timestamp, requestParameters.items, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/roles-api.ts b/src/versions/v1/api/roles-api.ts new file mode 100644 index 00000000..3893de82 --- /dev/null +++ b/src/versions/v1/api/roles-api.ts @@ -0,0 +1,1263 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddOrUpdateRoleSettingRequest } from '../models'; +// @ts-ignore +import { AddRoleAssignmentRequest } from '../models'; +// @ts-ignore +import { AddRoleAssignmentResponse } from '../models'; +// @ts-ignore +import { AddRoleRequest } from '../models'; +// @ts-ignore +import { AddRolesResponse } from '../models'; +// @ts-ignore +import { BaseRoleRequest } from '../models'; +// @ts-ignore +import { DeleteRoleAssignmentRequest } from '../models'; +// @ts-ignore +import { DeleteRoleAssignmentResponse } from '../models'; +// @ts-ignore +import { DeleteRoleResponse } from '../models'; +// @ts-ignore +import { GetRoleAssignmentsResponse } from '../models'; +// @ts-ignore +import { GetRolePipelinesResponse } from '../models'; +// @ts-ignore +import { GetRoleResponse } from '../models'; +// @ts-ignore +import { GetRoleSettingsResponse } from '../models'; +// @ts-ignore +import { GetRolesResponse } from '../models'; +// @ts-ignore +import { PutRolePipelinesBody } from '../models'; +// @ts-ignore +import { UpdateRoleResponse } from '../models'; +// @ts-ignore +import { UpsertRoleSettingsResponse } from '../models'; +/** + * RolesApi - axios parameter creator + * @export + */ +export const RolesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds or updates the visibility setting for a role. + * @summary Add or update role setting + * @param {number} id The ID of the role + * @param {AddOrUpdateRoleSettingRequest} [AddOrUpdateRoleSettingRequest] + + * @throws {RequiredError} + */ + addOrUpdateRoleSetting: async (id: number, AddOrUpdateRoleSettingRequest?: AddOrUpdateRoleSettingRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addOrUpdateRoleSetting', 'id', id) + const localVarPath = `/roles/{id}/settings` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddOrUpdateRoleSettingRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a new role. + * @summary Add a role + * @param {AddRoleRequest} [AddRoleRequest] + + * @throws {RequiredError} + */ + addRole: async (AddRoleRequest?: AddRoleRequest, ): Promise => { + const localVarPath = `/roles`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddRoleRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Assigns a user to a role. + * @summary Add role assignment + * @param {number} id The ID of the role + * @param {AddRoleAssignmentRequest} [AddRoleAssignmentRequest] + + * @throws {RequiredError} + */ + addRoleAssignment: async (id: number, AddRoleAssignmentRequest?: AddRoleAssignmentRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addRoleAssignment', 'id', id) + const localVarPath = `/roles/{id}/assignments` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddRoleAssignmentRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a role as deleted. + * @summary Delete a role + * @param {number} id The ID of the role + + * @throws {RequiredError} + */ + deleteRole: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteRole', 'id', id) + const localVarPath = `/roles/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Removes the assigned user from a role and adds to the default role. + * @summary Delete a role assignment + * @param {number} id The ID of the role + * @param {DeleteRoleAssignmentRequest} [DeleteRoleAssignmentRequest] + + * @throws {RequiredError} + */ + deleteRoleAssignment: async (id: number, DeleteRoleAssignmentRequest?: DeleteRoleAssignmentRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteRoleAssignment', 'id', id) + const localVarPath = `/roles/{id}/assignments` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(DeleteRoleAssignmentRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific role. + * @summary Get one role + * @param {number} id The ID of the role + + * @throws {RequiredError} + */ + getRole: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getRole', 'id', id) + const localVarPath = `/roles/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all users assigned to a role. + * @summary List role assignments + * @param {number} id The ID of the role + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getRoleAssignments: async (id: number, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getRoleAssignments', 'id', id) + const localVarPath = `/roles/{id}/assignments` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the list of either visible or hidden pipeline IDs for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. + * @summary List pipeline visibility for a role + * @param {number} id The ID of the role + * @param {boolean} [visible] Whether to return the visible or hidden pipelines for the role + + * @throws {RequiredError} + */ + getRolePipelines: async (id: number, visible?: boolean, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getRolePipelines', 'id', id) + const localVarPath = `/roles/{id}/pipelines` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + if (visible !== undefined) { + localVarQueryParameter['visible'] = visible; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the visibility settings of a specific role. + * @summary List role settings + * @param {number} id The ID of the role + + * @throws {RequiredError} + */ + getRoleSettings: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getRoleSettings', 'id', id) + const localVarPath = `/roles/{id}/settings` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all the roles within the company. + * @summary Get all roles + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getRoles: async (start?: number, limit?: number, ): Promise => { + const localVarPath = `/roles`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the parent role and/or the name of a specific role. + * @summary Update role details + * @param {number} id The ID of the role + * @param {BaseRoleRequest} [BaseRoleRequest] + + * @throws {RequiredError} + */ + updateRole: async (id: number, BaseRoleRequest?: BaseRoleRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateRole', 'id', id) + const localVarPath = `/roles/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(BaseRoleRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the specified pipelines to be visible and/or hidden for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. + * @summary Update pipeline visibility for a role + * @param {number} id The ID of the role + * @param {PutRolePipelinesBody} [PutRolePipelinesBody] + + * @throws {RequiredError} + */ + updateRolePipelines: async (id: number, PutRolePipelinesBody?: PutRolePipelinesBody, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateRolePipelines', 'id', id) + const localVarPath = `/roles/{id}/pipelines` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(PutRolePipelinesBody, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * RolesApi - functional programming interface + * @export + */ +export const RolesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = RolesApiAxiosParamCreator(configuration) + return { + /** + * Adds or updates the visibility setting for a role. + * @summary Add or update role setting + * @param {number} id The ID of the role + * @param {AddOrUpdateRoleSettingRequest} [AddOrUpdateRoleSettingRequest] + + * @throws {RequiredError} + */ + async addOrUpdateRoleSetting(id: number, AddOrUpdateRoleSettingRequest?: AddOrUpdateRoleSettingRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addOrUpdateRoleSetting(id, AddOrUpdateRoleSettingRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a new role. + * @summary Add a role + * @param {AddRoleRequest} [AddRoleRequest] + + * @throws {RequiredError} + */ + async addRole(AddRoleRequest?: AddRoleRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addRole(AddRoleRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Assigns a user to a role. + * @summary Add role assignment + * @param {number} id The ID of the role + * @param {AddRoleAssignmentRequest} [AddRoleAssignmentRequest] + + * @throws {RequiredError} + */ + async addRoleAssignment(id: number, AddRoleAssignmentRequest?: AddRoleAssignmentRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addRoleAssignment(id, AddRoleAssignmentRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a role as deleted. + * @summary Delete a role + * @param {number} id The ID of the role + + * @throws {RequiredError} + */ + async deleteRole(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRole(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Removes the assigned user from a role and adds to the default role. + * @summary Delete a role assignment + * @param {number} id The ID of the role + * @param {DeleteRoleAssignmentRequest} [DeleteRoleAssignmentRequest] + + * @throws {RequiredError} + */ + async deleteRoleAssignment(id: number, DeleteRoleAssignmentRequest?: DeleteRoleAssignmentRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRoleAssignment(id, DeleteRoleAssignmentRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific role. + * @summary Get one role + * @param {number} id The ID of the role + + * @throws {RequiredError} + */ + async getRole(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRole(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all users assigned to a role. + * @summary List role assignments + * @param {number} id The ID of the role + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getRoleAssignments(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRoleAssignments(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the list of either visible or hidden pipeline IDs for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. + * @summary List pipeline visibility for a role + * @param {number} id The ID of the role + * @param {boolean} [visible] Whether to return the visible or hidden pipelines for the role + + * @throws {RequiredError} + */ + async getRolePipelines(id: number, visible?: boolean, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRolePipelines(id, visible, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the visibility settings of a specific role. + * @summary List role settings + * @param {number} id The ID of the role + + * @throws {RequiredError} + */ + async getRoleSettings(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRoleSettings(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all the roles within the company. + * @summary Get all roles + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getRoles(start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getRoles(start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the parent role and/or the name of a specific role. + * @summary Update role details + * @param {number} id The ID of the role + * @param {BaseRoleRequest} [BaseRoleRequest] + + * @throws {RequiredError} + */ + async updateRole(id: number, BaseRoleRequest?: BaseRoleRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateRole(id, BaseRoleRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the specified pipelines to be visible and/or hidden for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. + * @summary Update pipeline visibility for a role + * @param {number} id The ID of the role + * @param {PutRolePipelinesBody} [PutRolePipelinesBody] + + * @throws {RequiredError} + */ + async updateRolePipelines(id: number, PutRolePipelinesBody?: PutRolePipelinesBody, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateRolePipelines(id, PutRolePipelinesBody, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * RolesApi - factory interface + * @export + */ +export const RolesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = RolesApiFp(configuration) + return { + /** + * Adds or updates the visibility setting for a role. + * @summary Add or update role setting + * @param {RolesApiAddOrUpdateRoleSettingRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addOrUpdateRoleSetting(requestParameters: RolesApiAddOrUpdateRoleSettingRequest, ): Promise { + return localVarFp.addOrUpdateRoleSetting(requestParameters.id, requestParameters.AddOrUpdateRoleSettingRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a new role. + * @summary Add a role + * @param {RolesApiAddRoleRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addRole(requestParameters: RolesApiAddRoleRequest = {}, ): Promise { + return localVarFp.addRole(requestParameters.AddRoleRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Assigns a user to a role. + * @summary Add role assignment + * @param {RolesApiAddRoleAssignmentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addRoleAssignment(requestParameters: RolesApiAddRoleAssignmentRequest, ): Promise { + return localVarFp.addRoleAssignment(requestParameters.id, requestParameters.AddRoleAssignmentRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a role as deleted. + * @summary Delete a role + * @param {RolesApiDeleteRoleRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteRole(requestParameters: RolesApiDeleteRoleRequest, ): Promise { + return localVarFp.deleteRole(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Removes the assigned user from a role and adds to the default role. + * @summary Delete a role assignment + * @param {RolesApiDeleteRoleAssignmentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteRoleAssignment(requestParameters: RolesApiDeleteRoleAssignmentRequest, ): Promise { + return localVarFp.deleteRoleAssignment(requestParameters.id, requestParameters.DeleteRoleAssignmentRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific role. + * @summary Get one role + * @param {RolesApiGetRoleRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getRole(requestParameters: RolesApiGetRoleRequest, ): Promise { + return localVarFp.getRole(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all users assigned to a role. + * @summary List role assignments + * @param {RolesApiGetRoleAssignmentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getRoleAssignments(requestParameters: RolesApiGetRoleAssignmentsRequest, ): Promise { + return localVarFp.getRoleAssignments(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the list of either visible or hidden pipeline IDs for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. + * @summary List pipeline visibility for a role + * @param {RolesApiGetRolePipelinesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getRolePipelines(requestParameters: RolesApiGetRolePipelinesRequest, ): Promise { + return localVarFp.getRolePipelines(requestParameters.id, requestParameters.visible, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the visibility settings of a specific role. + * @summary List role settings + * @param {RolesApiGetRoleSettingsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getRoleSettings(requestParameters: RolesApiGetRoleSettingsRequest, ): Promise { + return localVarFp.getRoleSettings(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all the roles within the company. + * @summary Get all roles + * @param {RolesApiGetRolesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getRoles(requestParameters: RolesApiGetRolesRequest = {}, ): Promise { + return localVarFp.getRoles(requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the parent role and/or the name of a specific role. + * @summary Update role details + * @param {RolesApiUpdateRoleRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateRole(requestParameters: RolesApiUpdateRoleRequest, ): Promise { + return localVarFp.updateRole(requestParameters.id, requestParameters.BaseRoleRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the specified pipelines to be visible and/or hidden for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. + * @summary Update pipeline visibility for a role + * @param {RolesApiUpdateRolePipelinesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateRolePipelines(requestParameters: RolesApiUpdateRolePipelinesRequest, ): Promise { + return localVarFp.updateRolePipelines(requestParameters.id, requestParameters.PutRolePipelinesBody, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addOrUpdateRoleSetting operation in RolesApi. + * @export + * @interface RolesApiAddOrUpdateRoleSettingRequest + */ +export interface RolesApiAddOrUpdateRoleSettingRequest { + /** + * The ID of the role + * @type {number} + * @memberof RolesApiAddOrUpdateRoleSetting + */ + readonly id: number + + /** + * + * @type {AddOrUpdateRoleSettingRequest} + * @memberof RolesApiAddOrUpdateRoleSetting + */ + readonly AddOrUpdateRoleSettingRequest?: AddOrUpdateRoleSettingRequest +} + +/** + * Request parameters for addRole operation in RolesApi. + * @export + * @interface RolesApiAddRoleRequest + */ +export interface RolesApiAddRoleRequest { + /** + * + * @type {AddRoleRequest} + * @memberof RolesApiAddRole + */ + readonly AddRoleRequest?: AddRoleRequest +} + +/** + * Request parameters for addRoleAssignment operation in RolesApi. + * @export + * @interface RolesApiAddRoleAssignmentRequest + */ +export interface RolesApiAddRoleAssignmentRequest { + /** + * The ID of the role + * @type {number} + * @memberof RolesApiAddRoleAssignment + */ + readonly id: number + + /** + * + * @type {AddRoleAssignmentRequest} + * @memberof RolesApiAddRoleAssignment + */ + readonly AddRoleAssignmentRequest?: AddRoleAssignmentRequest +} + +/** + * Request parameters for deleteRole operation in RolesApi. + * @export + * @interface RolesApiDeleteRoleRequest + */ +export interface RolesApiDeleteRoleRequest { + /** + * The ID of the role + * @type {number} + * @memberof RolesApiDeleteRole + */ + readonly id: number +} + +/** + * Request parameters for deleteRoleAssignment operation in RolesApi. + * @export + * @interface RolesApiDeleteRoleAssignmentRequest + */ +export interface RolesApiDeleteRoleAssignmentRequest { + /** + * The ID of the role + * @type {number} + * @memberof RolesApiDeleteRoleAssignment + */ + readonly id: number + + /** + * + * @type {DeleteRoleAssignmentRequest} + * @memberof RolesApiDeleteRoleAssignment + */ + readonly DeleteRoleAssignmentRequest?: DeleteRoleAssignmentRequest +} + +/** + * Request parameters for getRole operation in RolesApi. + * @export + * @interface RolesApiGetRoleRequest + */ +export interface RolesApiGetRoleRequest { + /** + * The ID of the role + * @type {number} + * @memberof RolesApiGetRole + */ + readonly id: number +} + +/** + * Request parameters for getRoleAssignments operation in RolesApi. + * @export + * @interface RolesApiGetRoleAssignmentsRequest + */ +export interface RolesApiGetRoleAssignmentsRequest { + /** + * The ID of the role + * @type {number} + * @memberof RolesApiGetRoleAssignments + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof RolesApiGetRoleAssignments + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof RolesApiGetRoleAssignments + */ + readonly limit?: number +} + +/** + * Request parameters for getRolePipelines operation in RolesApi. + * @export + * @interface RolesApiGetRolePipelinesRequest + */ +export interface RolesApiGetRolePipelinesRequest { + /** + * The ID of the role + * @type {number} + * @memberof RolesApiGetRolePipelines + */ + readonly id: number + + /** + * Whether to return the visible or hidden pipelines for the role + * @type {boolean} + * @memberof RolesApiGetRolePipelines + */ + readonly visible?: boolean +} + +/** + * Request parameters for getRoleSettings operation in RolesApi. + * @export + * @interface RolesApiGetRoleSettingsRequest + */ +export interface RolesApiGetRoleSettingsRequest { + /** + * The ID of the role + * @type {number} + * @memberof RolesApiGetRoleSettings + */ + readonly id: number +} + +/** + * Request parameters for getRoles operation in RolesApi. + * @export + * @interface RolesApiGetRolesRequest + */ +export interface RolesApiGetRolesRequest { + /** + * Pagination start + * @type {number} + * @memberof RolesApiGetRoles + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof RolesApiGetRoles + */ + readonly limit?: number +} + +/** + * Request parameters for updateRole operation in RolesApi. + * @export + * @interface RolesApiUpdateRoleRequest + */ +export interface RolesApiUpdateRoleRequest { + /** + * The ID of the role + * @type {number} + * @memberof RolesApiUpdateRole + */ + readonly id: number + + /** + * + * @type {BaseRoleRequest} + * @memberof RolesApiUpdateRole + */ + readonly BaseRoleRequest?: BaseRoleRequest +} + +/** + * Request parameters for updateRolePipelines operation in RolesApi. + * @export + * @interface RolesApiUpdateRolePipelinesRequest + */ +export interface RolesApiUpdateRolePipelinesRequest { + /** + * The ID of the role + * @type {number} + * @memberof RolesApiUpdateRolePipelines + */ + readonly id: number + + /** + * + * @type {PutRolePipelinesBody} + * @memberof RolesApiUpdateRolePipelines + */ + readonly PutRolePipelinesBody?: PutRolePipelinesBody +} + +/** + * RolesApi - object-oriented interface + * @export + * @class RolesApi + * @extends {BaseAPI} + */ +export class RolesApi extends BaseAPI { + /** + * Adds or updates the visibility setting for a role. + * @summary Add or update role setting + * @param {RolesApiAddOrUpdateRoleSettingRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public addOrUpdateRoleSetting(requestParameters: RolesApiAddOrUpdateRoleSettingRequest, ) { + return RolesApiFp(this.configuration).addOrUpdateRoleSetting(requestParameters.id, requestParameters.AddOrUpdateRoleSettingRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a new role. + * @summary Add a role + * @param {RolesApiAddRoleRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public addRole(requestParameters: RolesApiAddRoleRequest = {}, ) { + return RolesApiFp(this.configuration).addRole(requestParameters.AddRoleRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Assigns a user to a role. + * @summary Add role assignment + * @param {RolesApiAddRoleAssignmentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public addRoleAssignment(requestParameters: RolesApiAddRoleAssignmentRequest, ) { + return RolesApiFp(this.configuration).addRoleAssignment(requestParameters.id, requestParameters.AddRoleAssignmentRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a role as deleted. + * @summary Delete a role + * @param {RolesApiDeleteRoleRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public deleteRole(requestParameters: RolesApiDeleteRoleRequest, ) { + return RolesApiFp(this.configuration).deleteRole(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Removes the assigned user from a role and adds to the default role. + * @summary Delete a role assignment + * @param {RolesApiDeleteRoleAssignmentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public deleteRoleAssignment(requestParameters: RolesApiDeleteRoleAssignmentRequest, ) { + return RolesApiFp(this.configuration).deleteRoleAssignment(requestParameters.id, requestParameters.DeleteRoleAssignmentRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific role. + * @summary Get one role + * @param {RolesApiGetRoleRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public getRole(requestParameters: RolesApiGetRoleRequest, ) { + return RolesApiFp(this.configuration).getRole(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all users assigned to a role. + * @summary List role assignments + * @param {RolesApiGetRoleAssignmentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public getRoleAssignments(requestParameters: RolesApiGetRoleAssignmentsRequest, ) { + return RolesApiFp(this.configuration).getRoleAssignments(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the list of either visible or hidden pipeline IDs for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. + * @summary List pipeline visibility for a role + * @param {RolesApiGetRolePipelinesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public getRolePipelines(requestParameters: RolesApiGetRolePipelinesRequest, ) { + return RolesApiFp(this.configuration).getRolePipelines(requestParameters.id, requestParameters.visible, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the visibility settings of a specific role. + * @summary List role settings + * @param {RolesApiGetRoleSettingsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public getRoleSettings(requestParameters: RolesApiGetRoleSettingsRequest, ) { + return RolesApiFp(this.configuration).getRoleSettings(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all the roles within the company. + * @summary Get all roles + * @param {RolesApiGetRolesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public getRoles(requestParameters: RolesApiGetRolesRequest = {}, ) { + return RolesApiFp(this.configuration).getRoles(requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the parent role and/or the name of a specific role. + * @summary Update role details + * @param {RolesApiUpdateRoleRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public updateRole(requestParameters: RolesApiUpdateRoleRequest, ) { + return RolesApiFp(this.configuration).updateRole(requestParameters.id, requestParameters.BaseRoleRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the specified pipelines to be visible and/or hidden for a specific role. For more information on pipeline visibility, please refer to the Visibility groups article. + * @summary Update pipeline visibility for a role + * @param {RolesApiUpdateRolePipelinesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof RolesApi + */ + public updateRolePipelines(requestParameters: RolesApiUpdateRolePipelinesRequest, ) { + return RolesApiFp(this.configuration).updateRolePipelines(requestParameters.id, requestParameters.PutRolePipelinesBody, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/stages-api.ts b/src/versions/v1/api/stages-api.ts new file mode 100644 index 00000000..25db90b8 --- /dev/null +++ b/src/versions/v1/api/stages-api.ts @@ -0,0 +1,812 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddStageRequest } from '../models'; +// @ts-ignore +import { DeleteStageResponse } from '../models'; +// @ts-ignore +import { DeleteStagesResponse } from '../models'; +// @ts-ignore +import { GetStageDealsResponse } from '../models'; +// @ts-ignore +import { GetStageResponse } from '../models'; +// @ts-ignore +import { GetStagesResponse } from '../models'; +// @ts-ignore +import { UpdateStageRequest } from '../models'; +// @ts-ignore +import { UpsertStageResponse } from '../models'; +/** + * StagesApi - axios parameter creator + * @export + */ +export const StagesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new stage, returns the ID upon success. + * @summary Add a new stage + * @param {AddStageRequest} [AddStageRequest] + + * @throws {RequiredError} + */ + addStage: async (AddStageRequest?: AddStageRequest, ): Promise => { + const localVarPath = `/stages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddStageRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a stage as deleted. + * @summary Delete a stage + * @param {number} id The ID of the stage + + * @throws {RequiredError} + */ + deleteStage: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteStage', 'id', id) + const localVarPath = `/stages/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks multiple stages as deleted. + * @summary Delete multiple stages in bulk + * @param {string} ids The comma-separated stage IDs to delete + + * @throws {RequiredError} + */ + deleteStages: async (ids: string, ): Promise => { + // verify required parameter 'ids' is not null or undefined + assertParamExists('deleteStages', 'ids', ids) + const localVarPath = `/stages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific stage. + * @summary Get one stage + * @param {number} id The ID of the stage + * @param {0 | 1} [everyone] If `everyone=1` is provided, deals summary will return deals owned by every user + + * @throws {RequiredError} + */ + getStage: async (id: number, everyone?: 0 | 1, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getStage', 'id', id) + const localVarPath = `/stages/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) + + if (everyone !== undefined) { + localVarQueryParameter['everyone'] = everyone; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned. + * @summary Get deals in a stage + * @param {number} id The ID of the stage + * @param {number} [filter_id] If supplied, only deals matching the given filter will be returned + * @param {number} [user_id] If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. + * @param {0 | 1} [everyone] If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getStageDeals: async (id: number, filter_id?: number, user_id?: number, everyone?: 0 | 1, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getStageDeals', 'id', id) + const localVarPath = `/stages/{id}/deals` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (user_id !== undefined) { + localVarQueryParameter['user_id'] = user_id; + } + + if (everyone !== undefined) { + localVarQueryParameter['everyone'] = everyone; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all stages. + * @summary Get all stages + * @param {number} [pipeline_id] The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getStages: async (pipeline_id?: number, start?: number, limit?: number, ): Promise => { + const localVarPath = `/stages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) + + if (pipeline_id !== undefined) { + localVarQueryParameter['pipeline_id'] = pipeline_id; + } + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a stage. + * @summary Update stage details + * @param {number} id The ID of the stage + * @param {UpdateStageRequest} [UpdateStageRequest] + + * @throws {RequiredError} + */ + updateStage: async (id: number, UpdateStageRequest?: UpdateStageRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateStage', 'id', id) + const localVarPath = `/stages/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateStageRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * StagesApi - functional programming interface + * @export + */ +export const StagesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = StagesApiAxiosParamCreator(configuration) + return { + /** + * Adds a new stage, returns the ID upon success. + * @summary Add a new stage + * @param {AddStageRequest} [AddStageRequest] + + * @throws {RequiredError} + */ + async addStage(AddStageRequest?: AddStageRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addStage(AddStageRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a stage as deleted. + * @summary Delete a stage + * @param {number} id The ID of the stage + + * @throws {RequiredError} + */ + async deleteStage(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStage(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks multiple stages as deleted. + * @summary Delete multiple stages in bulk + * @param {string} ids The comma-separated stage IDs to delete + + * @throws {RequiredError} + */ + async deleteStages(ids: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStages(ids, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific stage. + * @summary Get one stage + * @param {number} id The ID of the stage + * @param {0 | 1} [everyone] If `everyone=1` is provided, deals summary will return deals owned by every user + + * @throws {RequiredError} + */ + async getStage(id: number, everyone?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getStage(id, everyone, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned. + * @summary Get deals in a stage + * @param {number} id The ID of the stage + * @param {number} [filter_id] If supplied, only deals matching the given filter will be returned + * @param {number} [user_id] If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. + * @param {0 | 1} [everyone] If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getStageDeals(id: number, filter_id?: number, user_id?: number, everyone?: 0 | 1, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getStageDeals(id, filter_id, user_id, everyone, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all stages. + * @summary Get all stages + * @param {number} [pipeline_id] The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getStages(pipeline_id?: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getStages(pipeline_id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a stage. + * @summary Update stage details + * @param {number} id The ID of the stage + * @param {UpdateStageRequest} [UpdateStageRequest] + + * @throws {RequiredError} + */ + async updateStage(id: number, UpdateStageRequest?: UpdateStageRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateStage(id, UpdateStageRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * StagesApi - factory interface + * @export + */ +export const StagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = StagesApiFp(configuration) + return { + /** + * Adds a new stage, returns the ID upon success. + * @summary Add a new stage + * @param {StagesApiAddStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addStage(requestParameters: StagesApiAddStageRequest = {}, ): Promise { + return localVarFp.addStage(requestParameters.AddStageRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a stage as deleted. + * @summary Delete a stage + * @param {StagesApiDeleteStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteStage(requestParameters: StagesApiDeleteStageRequest, ): Promise { + return localVarFp.deleteStage(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks multiple stages as deleted. + * @summary Delete multiple stages in bulk + * @param {StagesApiDeleteStagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteStages(requestParameters: StagesApiDeleteStagesRequest, ): Promise { + return localVarFp.deleteStages(requestParameters.ids, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific stage. + * @summary Get one stage + * @param {StagesApiGetStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getStage(requestParameters: StagesApiGetStageRequest, ): Promise { + return localVarFp.getStage(requestParameters.id, requestParameters.everyone, ).then((request) => request(axios, basePath)); + }, + /** + * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned. + * @summary Get deals in a stage + * @param {StagesApiGetStageDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getStageDeals(requestParameters: StagesApiGetStageDealsRequest, ): Promise { + return localVarFp.getStageDeals(requestParameters.id, requestParameters.filter_id, requestParameters.user_id, requestParameters.everyone, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all stages. + * @summary Get all stages + * @param {StagesApiGetStagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getStages(requestParameters: StagesApiGetStagesRequest = {}, ): Promise { + return localVarFp.getStages(requestParameters.pipeline_id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a stage. + * @summary Update stage details + * @param {StagesApiUpdateStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateStage(requestParameters: StagesApiUpdateStageRequest, ): Promise { + return localVarFp.updateStage(requestParameters.id, requestParameters.UpdateStageRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addStage operation in StagesApi. + * @export + * @interface StagesApiAddStageRequest + */ +export interface StagesApiAddStageRequest { + /** + * + * @type {AddStageRequest} + * @memberof StagesApiAddStage + */ + readonly AddStageRequest?: AddStageRequest +} + +/** + * Request parameters for deleteStage operation in StagesApi. + * @export + * @interface StagesApiDeleteStageRequest + */ +export interface StagesApiDeleteStageRequest { + /** + * The ID of the stage + * @type {number} + * @memberof StagesApiDeleteStage + */ + readonly id: number +} + +/** + * Request parameters for deleteStages operation in StagesApi. + * @export + * @interface StagesApiDeleteStagesRequest + */ +export interface StagesApiDeleteStagesRequest { + /** + * The comma-separated stage IDs to delete + * @type {string} + * @memberof StagesApiDeleteStages + */ + readonly ids: string +} + +/** + * Request parameters for getStage operation in StagesApi. + * @export + * @interface StagesApiGetStageRequest + */ +export interface StagesApiGetStageRequest { + /** + * The ID of the stage + * @type {number} + * @memberof StagesApiGetStage + */ + readonly id: number + + /** + * If `everyone=1` is provided, deals summary will return deals owned by every user + * @type {0 | 1} + * @memberof StagesApiGetStage + */ + readonly everyone?: 0 | 1 +} + +/** + * Request parameters for getStageDeals operation in StagesApi. + * @export + * @interface StagesApiGetStageDealsRequest + */ +export interface StagesApiGetStageDealsRequest { + /** + * The ID of the stage + * @type {number} + * @memberof StagesApiGetStageDeals + */ + readonly id: number + + /** + * If supplied, only deals matching the given filter will be returned + * @type {number} + * @memberof StagesApiGetStageDeals + */ + readonly filter_id?: number + + /** + * If supplied, `filter_id` will not be considered and only deals owned by the given user will be returned. If omitted, deals owned by the authorized user will be returned. + * @type {number} + * @memberof StagesApiGetStageDeals + */ + readonly user_id?: number + + /** + * If supplied, `filter_id` and `user_id` will not be considered – instead, deals owned by everyone will be returned + * @type {0 | 1} + * @memberof StagesApiGetStageDeals + */ + readonly everyone?: 0 | 1 + + /** + * Pagination start + * @type {number} + * @memberof StagesApiGetStageDeals + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof StagesApiGetStageDeals + */ + readonly limit?: number +} + +/** + * Request parameters for getStages operation in StagesApi. + * @export + * @interface StagesApiGetStagesRequest + */ +export interface StagesApiGetStagesRequest { + /** + * The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. + * @type {number} + * @memberof StagesApiGetStages + */ + readonly pipeline_id?: number + + /** + * Pagination start + * @type {number} + * @memberof StagesApiGetStages + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof StagesApiGetStages + */ + readonly limit?: number +} + +/** + * Request parameters for updateStage operation in StagesApi. + * @export + * @interface StagesApiUpdateStageRequest + */ +export interface StagesApiUpdateStageRequest { + /** + * The ID of the stage + * @type {number} + * @memberof StagesApiUpdateStage + */ + readonly id: number + + /** + * + * @type {UpdateStageRequest} + * @memberof StagesApiUpdateStage + */ + readonly UpdateStageRequest?: UpdateStageRequest +} + +/** + * StagesApi - object-oriented interface + * @export + * @class StagesApi + * @extends {BaseAPI} + */ +export class StagesApi extends BaseAPI { + /** + * Adds a new stage, returns the ID upon success. + * @summary Add a new stage + * @param {StagesApiAddStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public addStage(requestParameters: StagesApiAddStageRequest = {}, ) { + return StagesApiFp(this.configuration).addStage(requestParameters.AddStageRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a stage as deleted. + * @summary Delete a stage + * @param {StagesApiDeleteStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public deleteStage(requestParameters: StagesApiDeleteStageRequest, ) { + return StagesApiFp(this.configuration).deleteStage(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks multiple stages as deleted. + * @summary Delete multiple stages in bulk + * @param {StagesApiDeleteStagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public deleteStages(requestParameters: StagesApiDeleteStagesRequest, ) { + return StagesApiFp(this.configuration).deleteStages(requestParameters.ids, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific stage. + * @summary Get one stage + * @param {StagesApiGetStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public getStage(requestParameters: StagesApiGetStageRequest, ) { + return StagesApiFp(this.configuration).getStage(requestParameters.id, requestParameters.everyone, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists deals in a specific stage. If no parameters are provided open deals owned by the authorized user will be returned. + * @summary Get deals in a stage + * @param {StagesApiGetStageDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public getStageDeals(requestParameters: StagesApiGetStageDealsRequest, ) { + return StagesApiFp(this.configuration).getStageDeals(requestParameters.id, requestParameters.filter_id, requestParameters.user_id, requestParameters.everyone, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all stages. + * @summary Get all stages + * @param {StagesApiGetStagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public getStages(requestParameters: StagesApiGetStagesRequest = {}, ) { + return StagesApiFp(this.configuration).getStages(requestParameters.pipeline_id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a stage. + * @summary Update stage details + * @param {StagesApiUpdateStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public updateStage(requestParameters: StagesApiUpdateStageRequest, ) { + return StagesApiFp(this.configuration).updateStage(requestParameters.id, requestParameters.UpdateStageRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/subscriptions-api.ts b/src/versions/v1/api/subscriptions-api.ts new file mode 100644 index 00000000..8d5ec4fb --- /dev/null +++ b/src/versions/v1/api/subscriptions-api.ts @@ -0,0 +1,902 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddRecurringSubscriptionRequest } from '../models'; +// @ts-ignore +import { AddSubscriptionInstallmentRequest } from '../models'; +// @ts-ignore +import { CancelRecurringSubscriptionRequest } from '../models'; +// @ts-ignore +import { GetPaymentsResponse } from '../models'; +// @ts-ignore +import { GetSubscriptionsIdResponse } from '../models'; +// @ts-ignore +import { UpdateRecurringSubscriptionRequest } from '../models'; +// @ts-ignore +import { UpdateSubscriptionInstallmentRequest } from '../models'; +/** + * SubscriptionsApi - axios parameter creator + * @export + */ +export const SubscriptionsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new recurring subscription. + * @summary Add a recurring subscription + * @param {AddRecurringSubscriptionRequest} [AddRecurringSubscriptionRequest] + + * @throws {RequiredError} + */ + addRecurringSubscription: async (AddRecurringSubscriptionRequest?: AddRecurringSubscriptionRequest, ): Promise => { + const localVarPath = `/subscriptions/recurring`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddRecurringSubscriptionRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a new installment subscription. + * @summary Add an installment subscription + * @param {AddSubscriptionInstallmentRequest} [AddSubscriptionInstallmentRequest] + + * @throws {RequiredError} + */ + addSubscriptionInstallment: async (AddSubscriptionInstallmentRequest?: AddSubscriptionInstallmentRequest, ): Promise => { + const localVarPath = `/subscriptions/installment`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddSubscriptionInstallmentRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Cancels a recurring subscription. + * @summary Cancel a recurring subscription + * @param {number} id The ID of the subscription + * @param {CancelRecurringSubscriptionRequest} [CancelRecurringSubscriptionRequest] + + * @throws {RequiredError} + */ + cancelRecurringSubscription: async (id: number, CancelRecurringSubscriptionRequest?: CancelRecurringSubscriptionRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('cancelRecurringSubscription', 'id', id) + const localVarPath = `/subscriptions/recurring/{id}/cancel` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(CancelRecurringSubscriptionRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks an installment or a recurring subscription as deleted. + * @summary Delete a subscription + * @param {number} id The ID of the subscription + + * @throws {RequiredError} + */ + deleteSubscription: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteSubscription', 'id', id) + const localVarPath = `/subscriptions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns details of an installment or a recurring subscription by the deal ID. + * @summary Find subscription by deal + * @param {number} dealId The ID of the deal + + * @throws {RequiredError} + */ + findSubscriptionByDeal: async (dealId: number, ): Promise => { + // verify required parameter 'dealId' is not null or undefined + assertParamExists('findSubscriptionByDeal', 'dealId', dealId) + const localVarPath = `/subscriptions/find/{dealId}` + .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns details of an installment or a recurring subscription. + * @summary Get details of a subscription + * @param {number} id The ID of the subscription + + * @throws {RequiredError} + */ + getSubscription: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getSubscription', 'id', id) + const localVarPath = `/subscriptions/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all payments of an installment or recurring subscription. + * @summary Get all payments of a subscription + * @param {number} id The ID of the subscription + + * @throws {RequiredError} + */ + getSubscriptionPayments: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getSubscriptionPayments', 'id', id) + const localVarPath = `/subscriptions/{id}/payments` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates a recurring subscription. + * @summary Update a recurring subscription + * @param {number} id The ID of the subscription + * @param {UpdateRecurringSubscriptionRequest} [UpdateRecurringSubscriptionRequest] + + * @throws {RequiredError} + */ + updateRecurringSubscription: async (id: number, UpdateRecurringSubscriptionRequest?: UpdateRecurringSubscriptionRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateRecurringSubscription', 'id', id) + const localVarPath = `/subscriptions/recurring/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateRecurringSubscriptionRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates an installment subscription. + * @summary Update an installment subscription + * @param {number} id The ID of the subscription + * @param {UpdateSubscriptionInstallmentRequest} [UpdateSubscriptionInstallmentRequest] + + * @throws {RequiredError} + */ + updateSubscriptionInstallment: async (id: number, UpdateSubscriptionInstallmentRequest?: UpdateSubscriptionInstallmentRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateSubscriptionInstallment', 'id', id) + const localVarPath = `/subscriptions/installment/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateSubscriptionInstallmentRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * SubscriptionsApi - functional programming interface + * @export + */ +export const SubscriptionsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = SubscriptionsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new recurring subscription. + * @summary Add a recurring subscription + * @param {AddRecurringSubscriptionRequest} [AddRecurringSubscriptionRequest] + + * @throws {RequiredError} + */ + async addRecurringSubscription(AddRecurringSubscriptionRequest?: AddRecurringSubscriptionRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addRecurringSubscription(AddRecurringSubscriptionRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a new installment subscription. + * @summary Add an installment subscription + * @param {AddSubscriptionInstallmentRequest} [AddSubscriptionInstallmentRequest] + + * @throws {RequiredError} + */ + async addSubscriptionInstallment(AddSubscriptionInstallmentRequest?: AddSubscriptionInstallmentRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addSubscriptionInstallment(AddSubscriptionInstallmentRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Cancels a recurring subscription. + * @summary Cancel a recurring subscription + * @param {number} id The ID of the subscription + * @param {CancelRecurringSubscriptionRequest} [CancelRecurringSubscriptionRequest] + + * @throws {RequiredError} + */ + async cancelRecurringSubscription(id: number, CancelRecurringSubscriptionRequest?: CancelRecurringSubscriptionRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.cancelRecurringSubscription(id, CancelRecurringSubscriptionRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks an installment or a recurring subscription as deleted. + * @summary Delete a subscription + * @param {number} id The ID of the subscription + + * @throws {RequiredError} + */ + async deleteSubscription(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSubscription(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns details of an installment or a recurring subscription by the deal ID. + * @summary Find subscription by deal + * @param {number} dealId The ID of the deal + + * @throws {RequiredError} + */ + async findSubscriptionByDeal(dealId: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.findSubscriptionByDeal(dealId, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns details of an installment or a recurring subscription. + * @summary Get details of a subscription + * @param {number} id The ID of the subscription + + * @throws {RequiredError} + */ + async getSubscription(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscription(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all payments of an installment or recurring subscription. + * @summary Get all payments of a subscription + * @param {number} id The ID of the subscription + + * @throws {RequiredError} + */ + async getSubscriptionPayments(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscriptionPayments(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates a recurring subscription. + * @summary Update a recurring subscription + * @param {number} id The ID of the subscription + * @param {UpdateRecurringSubscriptionRequest} [UpdateRecurringSubscriptionRequest] + + * @throws {RequiredError} + */ + async updateRecurringSubscription(id: number, UpdateRecurringSubscriptionRequest?: UpdateRecurringSubscriptionRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateRecurringSubscription(id, UpdateRecurringSubscriptionRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates an installment subscription. + * @summary Update an installment subscription + * @param {number} id The ID of the subscription + * @param {UpdateSubscriptionInstallmentRequest} [UpdateSubscriptionInstallmentRequest] + + * @throws {RequiredError} + */ + async updateSubscriptionInstallment(id: number, UpdateSubscriptionInstallmentRequest?: UpdateSubscriptionInstallmentRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateSubscriptionInstallment(id, UpdateSubscriptionInstallmentRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * SubscriptionsApi - factory interface + * @export + */ +export const SubscriptionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = SubscriptionsApiFp(configuration) + return { + /** + * Adds a new recurring subscription. + * @summary Add a recurring subscription + * @param {SubscriptionsApiAddRecurringSubscriptionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addRecurringSubscription(requestParameters: SubscriptionsApiAddRecurringSubscriptionRequest = {}, ): Promise { + return localVarFp.addRecurringSubscription(requestParameters.AddRecurringSubscriptionRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a new installment subscription. + * @summary Add an installment subscription + * @param {SubscriptionsApiAddSubscriptionInstallmentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addSubscriptionInstallment(requestParameters: SubscriptionsApiAddSubscriptionInstallmentRequest = {}, ): Promise { + return localVarFp.addSubscriptionInstallment(requestParameters.AddSubscriptionInstallmentRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Cancels a recurring subscription. + * @summary Cancel a recurring subscription + * @param {SubscriptionsApiCancelRecurringSubscriptionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + cancelRecurringSubscription(requestParameters: SubscriptionsApiCancelRecurringSubscriptionRequest, ): Promise { + return localVarFp.cancelRecurringSubscription(requestParameters.id, requestParameters.CancelRecurringSubscriptionRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks an installment or a recurring subscription as deleted. + * @summary Delete a subscription + * @param {SubscriptionsApiDeleteSubscriptionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteSubscription(requestParameters: SubscriptionsApiDeleteSubscriptionRequest, ): Promise { + return localVarFp.deleteSubscription(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns details of an installment or a recurring subscription by the deal ID. + * @summary Find subscription by deal + * @param {SubscriptionsApiFindSubscriptionByDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + findSubscriptionByDeal(requestParameters: SubscriptionsApiFindSubscriptionByDealRequest, ): Promise { + return localVarFp.findSubscriptionByDeal(requestParameters.dealId, ).then((request) => request(axios, basePath)); + }, + /** + * Returns details of an installment or a recurring subscription. + * @summary Get details of a subscription + * @param {SubscriptionsApiGetSubscriptionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getSubscription(requestParameters: SubscriptionsApiGetSubscriptionRequest, ): Promise { + return localVarFp.getSubscription(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all payments of an installment or recurring subscription. + * @summary Get all payments of a subscription + * @param {SubscriptionsApiGetSubscriptionPaymentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getSubscriptionPayments(requestParameters: SubscriptionsApiGetSubscriptionPaymentsRequest, ): Promise { + return localVarFp.getSubscriptionPayments(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Updates a recurring subscription. + * @summary Update a recurring subscription + * @param {SubscriptionsApiUpdateRecurringSubscriptionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateRecurringSubscription(requestParameters: SubscriptionsApiUpdateRecurringSubscriptionRequest, ): Promise { + return localVarFp.updateRecurringSubscription(requestParameters.id, requestParameters.UpdateRecurringSubscriptionRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Updates an installment subscription. + * @summary Update an installment subscription + * @param {SubscriptionsApiUpdateSubscriptionInstallmentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateSubscriptionInstallment(requestParameters: SubscriptionsApiUpdateSubscriptionInstallmentRequest, ): Promise { + return localVarFp.updateSubscriptionInstallment(requestParameters.id, requestParameters.UpdateSubscriptionInstallmentRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addRecurringSubscription operation in SubscriptionsApi. + * @export + * @interface SubscriptionsApiAddRecurringSubscriptionRequest + */ +export interface SubscriptionsApiAddRecurringSubscriptionRequest { + /** + * + * @type {AddRecurringSubscriptionRequest} + * @memberof SubscriptionsApiAddRecurringSubscription + */ + readonly AddRecurringSubscriptionRequest?: AddRecurringSubscriptionRequest +} + +/** + * Request parameters for addSubscriptionInstallment operation in SubscriptionsApi. + * @export + * @interface SubscriptionsApiAddSubscriptionInstallmentRequest + */ +export interface SubscriptionsApiAddSubscriptionInstallmentRequest { + /** + * + * @type {AddSubscriptionInstallmentRequest} + * @memberof SubscriptionsApiAddSubscriptionInstallment + */ + readonly AddSubscriptionInstallmentRequest?: AddSubscriptionInstallmentRequest +} + +/** + * Request parameters for cancelRecurringSubscription operation in SubscriptionsApi. + * @export + * @interface SubscriptionsApiCancelRecurringSubscriptionRequest + */ +export interface SubscriptionsApiCancelRecurringSubscriptionRequest { + /** + * The ID of the subscription + * @type {number} + * @memberof SubscriptionsApiCancelRecurringSubscription + */ + readonly id: number + + /** + * + * @type {CancelRecurringSubscriptionRequest} + * @memberof SubscriptionsApiCancelRecurringSubscription + */ + readonly CancelRecurringSubscriptionRequest?: CancelRecurringSubscriptionRequest +} + +/** + * Request parameters for deleteSubscription operation in SubscriptionsApi. + * @export + * @interface SubscriptionsApiDeleteSubscriptionRequest + */ +export interface SubscriptionsApiDeleteSubscriptionRequest { + /** + * The ID of the subscription + * @type {number} + * @memberof SubscriptionsApiDeleteSubscription + */ + readonly id: number +} + +/** + * Request parameters for findSubscriptionByDeal operation in SubscriptionsApi. + * @export + * @interface SubscriptionsApiFindSubscriptionByDealRequest + */ +export interface SubscriptionsApiFindSubscriptionByDealRequest { + /** + * The ID of the deal + * @type {number} + * @memberof SubscriptionsApiFindSubscriptionByDeal + */ + readonly dealId: number +} + +/** + * Request parameters for getSubscription operation in SubscriptionsApi. + * @export + * @interface SubscriptionsApiGetSubscriptionRequest + */ +export interface SubscriptionsApiGetSubscriptionRequest { + /** + * The ID of the subscription + * @type {number} + * @memberof SubscriptionsApiGetSubscription + */ + readonly id: number +} + +/** + * Request parameters for getSubscriptionPayments operation in SubscriptionsApi. + * @export + * @interface SubscriptionsApiGetSubscriptionPaymentsRequest + */ +export interface SubscriptionsApiGetSubscriptionPaymentsRequest { + /** + * The ID of the subscription + * @type {number} + * @memberof SubscriptionsApiGetSubscriptionPayments + */ + readonly id: number +} + +/** + * Request parameters for updateRecurringSubscription operation in SubscriptionsApi. + * @export + * @interface SubscriptionsApiUpdateRecurringSubscriptionRequest + */ +export interface SubscriptionsApiUpdateRecurringSubscriptionRequest { + /** + * The ID of the subscription + * @type {number} + * @memberof SubscriptionsApiUpdateRecurringSubscription + */ + readonly id: number + + /** + * + * @type {UpdateRecurringSubscriptionRequest} + * @memberof SubscriptionsApiUpdateRecurringSubscription + */ + readonly UpdateRecurringSubscriptionRequest?: UpdateRecurringSubscriptionRequest +} + +/** + * Request parameters for updateSubscriptionInstallment operation in SubscriptionsApi. + * @export + * @interface SubscriptionsApiUpdateSubscriptionInstallmentRequest + */ +export interface SubscriptionsApiUpdateSubscriptionInstallmentRequest { + /** + * The ID of the subscription + * @type {number} + * @memberof SubscriptionsApiUpdateSubscriptionInstallment + */ + readonly id: number + + /** + * + * @type {UpdateSubscriptionInstallmentRequest} + * @memberof SubscriptionsApiUpdateSubscriptionInstallment + */ + readonly UpdateSubscriptionInstallmentRequest?: UpdateSubscriptionInstallmentRequest +} + +/** + * SubscriptionsApi - object-oriented interface + * @export + * @class SubscriptionsApi + * @extends {BaseAPI} + */ +export class SubscriptionsApi extends BaseAPI { + /** + * Adds a new recurring subscription. + * @summary Add a recurring subscription + * @param {SubscriptionsApiAddRecurringSubscriptionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof SubscriptionsApi + */ + public addRecurringSubscription(requestParameters: SubscriptionsApiAddRecurringSubscriptionRequest = {}, ) { + return SubscriptionsApiFp(this.configuration).addRecurringSubscription(requestParameters.AddRecurringSubscriptionRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a new installment subscription. + * @summary Add an installment subscription + * @param {SubscriptionsApiAddSubscriptionInstallmentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof SubscriptionsApi + */ + public addSubscriptionInstallment(requestParameters: SubscriptionsApiAddSubscriptionInstallmentRequest = {}, ) { + return SubscriptionsApiFp(this.configuration).addSubscriptionInstallment(requestParameters.AddSubscriptionInstallmentRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Cancels a recurring subscription. + * @summary Cancel a recurring subscription + * @param {SubscriptionsApiCancelRecurringSubscriptionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof SubscriptionsApi + */ + public cancelRecurringSubscription(requestParameters: SubscriptionsApiCancelRecurringSubscriptionRequest, ) { + return SubscriptionsApiFp(this.configuration).cancelRecurringSubscription(requestParameters.id, requestParameters.CancelRecurringSubscriptionRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks an installment or a recurring subscription as deleted. + * @summary Delete a subscription + * @param {SubscriptionsApiDeleteSubscriptionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof SubscriptionsApi + */ + public deleteSubscription(requestParameters: SubscriptionsApiDeleteSubscriptionRequest, ) { + return SubscriptionsApiFp(this.configuration).deleteSubscription(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns details of an installment or a recurring subscription by the deal ID. + * @summary Find subscription by deal + * @param {SubscriptionsApiFindSubscriptionByDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof SubscriptionsApi + */ + public findSubscriptionByDeal(requestParameters: SubscriptionsApiFindSubscriptionByDealRequest, ) { + return SubscriptionsApiFp(this.configuration).findSubscriptionByDeal(requestParameters.dealId, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns details of an installment or a recurring subscription. + * @summary Get details of a subscription + * @param {SubscriptionsApiGetSubscriptionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof SubscriptionsApi + */ + public getSubscription(requestParameters: SubscriptionsApiGetSubscriptionRequest, ) { + return SubscriptionsApiFp(this.configuration).getSubscription(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all payments of an installment or recurring subscription. + * @summary Get all payments of a subscription + * @param {SubscriptionsApiGetSubscriptionPaymentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof SubscriptionsApi + */ + public getSubscriptionPayments(requestParameters: SubscriptionsApiGetSubscriptionPaymentsRequest, ) { + return SubscriptionsApiFp(this.configuration).getSubscriptionPayments(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates a recurring subscription. + * @summary Update a recurring subscription + * @param {SubscriptionsApiUpdateRecurringSubscriptionRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof SubscriptionsApi + */ + public updateRecurringSubscription(requestParameters: SubscriptionsApiUpdateRecurringSubscriptionRequest, ) { + return SubscriptionsApiFp(this.configuration).updateRecurringSubscription(requestParameters.id, requestParameters.UpdateRecurringSubscriptionRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates an installment subscription. + * @summary Update an installment subscription + * @param {SubscriptionsApiUpdateSubscriptionInstallmentRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof SubscriptionsApi + */ + public updateSubscriptionInstallment(requestParameters: SubscriptionsApiUpdateSubscriptionInstallmentRequest, ) { + return SubscriptionsApiFp(this.configuration).updateSubscriptionInstallment(requestParameters.id, requestParameters.UpdateSubscriptionInstallmentRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/tasks-api.ts b/src/versions/v1/api/tasks-api.ts new file mode 100644 index 00000000..7734cea4 --- /dev/null +++ b/src/versions/v1/api/tasks-api.ts @@ -0,0 +1,592 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddTaskRequest } from '../models'; +// @ts-ignore +import { AddTaskResponse } from '../models'; +// @ts-ignore +import { DeleteTaskResponse } from '../models'; +// @ts-ignore +import { GetTaskResponse } from '../models'; +// @ts-ignore +import { GetTasksResponse } from '../models'; +// @ts-ignore +import { UpdateProjectRequest2 } from '../models'; +// @ts-ignore +import { UpdateTaskResponse } from '../models'; +/** + * TasksApi - axios parameter creator + * @export + */ +export const TasksApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new task. + * @summary Add a task + * @param {AddTaskRequest} [AddTaskRequest] + + * @throws {RequiredError} + */ + addTask: async (AddTaskRequest?: AddTaskRequest, ): Promise => { + const localVarPath = `/tasks`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddTaskRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a task as deleted. If the task has subtasks then those will also be deleted. + * @summary Delete a task + * @param {number} id The ID of the task + + * @throws {RequiredError} + */ + deleteTask: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteTask', 'id', id) + const localVarPath = `/tasks/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific task. + * @summary Get details of a task + * @param {number} id The ID of the task + + * @throws {RequiredError} + */ + getTask: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getTask', 'id', id) + const localVarPath = `/tasks/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns all tasks. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all tasks + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. + * @param {number} [assignee_id] If supplied, only tasks that are assigned to this user are returned + * @param {number} [project_id] If supplied, only tasks that are assigned to this project are returned + * @param {number} [parent_task_id] If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are returned. + * @param {0 | 1} [done] Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. + + * @throws {RequiredError} + */ + getTasks: async (cursor?: string, limit?: number, assignee_id?: number, project_id?: number, parent_task_id?: number, done?: 0 | 1, ): Promise => { + const localVarPath = `/tasks`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:read", "projects:full"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (assignee_id !== undefined) { + localVarQueryParameter['assignee_id'] = assignee_id; + } + + if (project_id !== undefined) { + localVarQueryParameter['project_id'] = project_id; + } + + if (parent_task_id !== undefined) { + localVarQueryParameter['parent_task_id'] = parent_task_id; + } + + if (done !== undefined) { + localVarQueryParameter['done'] = done; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates a task. + * @summary Update a task + * @param {number} id The ID of the task + * @param {UpdateProjectRequest2} [UpdateProjectRequest2] + + * @throws {RequiredError} + */ + updateTask: async (id: number, UpdateProjectRequest2?: UpdateProjectRequest2, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateTask', 'id', id) + const localVarPath = `/tasks/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["projects:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateProjectRequest2, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * TasksApi - functional programming interface + * @export + */ +export const TasksApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = TasksApiAxiosParamCreator(configuration) + return { + /** + * Adds a new task. + * @summary Add a task + * @param {AddTaskRequest} [AddTaskRequest] + + * @throws {RequiredError} + */ + async addTask(AddTaskRequest?: AddTaskRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addTask(AddTaskRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a task as deleted. If the task has subtasks then those will also be deleted. + * @summary Delete a task + * @param {number} id The ID of the task + + * @throws {RequiredError} + */ + async deleteTask(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTask(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific task. + * @summary Get details of a task + * @param {number} id The ID of the task + + * @throws {RequiredError} + */ + async getTask(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTask(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns all tasks. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all tasks + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. + * @param {number} [assignee_id] If supplied, only tasks that are assigned to this user are returned + * @param {number} [project_id] If supplied, only tasks that are assigned to this project are returned + * @param {number} [parent_task_id] If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are returned. + * @param {0 | 1} [done] Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. + + * @throws {RequiredError} + */ + async getTasks(cursor?: string, limit?: number, assignee_id?: number, project_id?: number, parent_task_id?: number, done?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getTasks(cursor, limit, assignee_id, project_id, parent_task_id, done, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates a task. + * @summary Update a task + * @param {number} id The ID of the task + * @param {UpdateProjectRequest2} [UpdateProjectRequest2] + + * @throws {RequiredError} + */ + async updateTask(id: number, UpdateProjectRequest2?: UpdateProjectRequest2, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateTask(id, UpdateProjectRequest2, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * TasksApi - factory interface + * @export + */ +export const TasksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = TasksApiFp(configuration) + return { + /** + * Adds a new task. + * @summary Add a task + * @param {TasksApiAddTaskRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addTask(requestParameters: TasksApiAddTaskRequest = {}, ): Promise { + return localVarFp.addTask(requestParameters.AddTaskRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a task as deleted. If the task has subtasks then those will also be deleted. + * @summary Delete a task + * @param {TasksApiDeleteTaskRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteTask(requestParameters: TasksApiDeleteTaskRequest, ): Promise { + return localVarFp.deleteTask(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific task. + * @summary Get details of a task + * @param {TasksApiGetTaskRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getTask(requestParameters: TasksApiGetTaskRequest, ): Promise { + return localVarFp.getTask(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns all tasks. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all tasks + * @param {TasksApiGetTasksRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getTasks(requestParameters: TasksApiGetTasksRequest = {}, ): Promise { + return localVarFp.getTasks(requestParameters.cursor, requestParameters.limit, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id, requestParameters.done, ).then((request) => request(axios, basePath)); + }, + /** + * Updates a task. + * @summary Update a task + * @param {TasksApiUpdateTaskRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateTask(requestParameters: TasksApiUpdateTaskRequest, ): Promise { + return localVarFp.updateTask(requestParameters.id, requestParameters.UpdateProjectRequest2, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addTask operation in TasksApi. + * @export + * @interface TasksApiAddTaskRequest + */ +export interface TasksApiAddTaskRequest { + /** + * + * @type {AddTaskRequest} + * @memberof TasksApiAddTask + */ + readonly AddTaskRequest?: AddTaskRequest +} + +/** + * Request parameters for deleteTask operation in TasksApi. + * @export + * @interface TasksApiDeleteTaskRequest + */ +export interface TasksApiDeleteTaskRequest { + /** + * The ID of the task + * @type {number} + * @memberof TasksApiDeleteTask + */ + readonly id: number +} + +/** + * Request parameters for getTask operation in TasksApi. + * @export + * @interface TasksApiGetTaskRequest + */ +export interface TasksApiGetTaskRequest { + /** + * The ID of the task + * @type {number} + * @memberof TasksApiGetTask + */ + readonly id: number +} + +/** + * Request parameters for getTasks operation in TasksApi. + * @export + * @interface TasksApiGetTasksRequest + */ +export interface TasksApiGetTasksRequest { + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof TasksApiGetTasks + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, up to 500 items will be returned. + * @type {number} + * @memberof TasksApiGetTasks + */ + readonly limit?: number + + /** + * If supplied, only tasks that are assigned to this user are returned + * @type {number} + * @memberof TasksApiGetTasks + */ + readonly assignee_id?: number + + /** + * If supplied, only tasks that are assigned to this project are returned + * @type {number} + * @memberof TasksApiGetTasks + */ + readonly project_id?: number + + /** + * If `null` is supplied then only parent tasks are returned. If integer is supplied then only subtasks of a specific task are returned. By default all tasks are returned. + * @type {number} + * @memberof TasksApiGetTasks + */ + readonly parent_task_id?: number + + /** + * Whether the task is done or not. `0` = Not done, `1` = Done. If not omitted then returns both done and not done tasks. + * @type {0 | 1} + * @memberof TasksApiGetTasks + */ + readonly done?: 0 | 1 +} + +/** + * Request parameters for updateTask operation in TasksApi. + * @export + * @interface TasksApiUpdateTaskRequest + */ +export interface TasksApiUpdateTaskRequest { + /** + * The ID of the task + * @type {number} + * @memberof TasksApiUpdateTask + */ + readonly id: number + + /** + * + * @type {UpdateProjectRequest2} + * @memberof TasksApiUpdateTask + */ + readonly UpdateProjectRequest2?: UpdateProjectRequest2 +} + +/** + * TasksApi - object-oriented interface + * @export + * @class TasksApi + * @extends {BaseAPI} + */ +export class TasksApi extends BaseAPI { + /** + * Adds a new task. + * @summary Add a task + * @param {TasksApiAddTaskRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof TasksApi + */ + public addTask(requestParameters: TasksApiAddTaskRequest = {}, ) { + return TasksApiFp(this.configuration).addTask(requestParameters.AddTaskRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a task as deleted. If the task has subtasks then those will also be deleted. + * @summary Delete a task + * @param {TasksApiDeleteTaskRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof TasksApi + */ + public deleteTask(requestParameters: TasksApiDeleteTaskRequest, ) { + return TasksApiFp(this.configuration).deleteTask(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific task. + * @summary Get details of a task + * @param {TasksApiGetTaskRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof TasksApi + */ + public getTask(requestParameters: TasksApiGetTaskRequest, ) { + return TasksApiFp(this.configuration).getTask(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns all tasks. This is a cursor-paginated endpoint. For more information, please refer to our documentation on pagination. + * @summary Get all tasks + * @param {TasksApiGetTasksRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof TasksApi + */ + public getTasks(requestParameters: TasksApiGetTasksRequest = {}, ) { + return TasksApiFp(this.configuration).getTasks(requestParameters.cursor, requestParameters.limit, requestParameters.assignee_id, requestParameters.project_id, requestParameters.parent_task_id, requestParameters.done, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates a task. + * @summary Update a task + * @param {TasksApiUpdateTaskRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof TasksApi + */ + public updateTask(requestParameters: TasksApiUpdateTaskRequest, ) { + return TasksApiFp(this.configuration).updateTask(requestParameters.id, requestParameters.UpdateProjectRequest2, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/user-connections-api.ts b/src/versions/v1/api/user-connections-api.ts new file mode 100644 index 00000000..42165186 --- /dev/null +++ b/src/versions/v1/api/user-connections-api.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetUserConnectionsResponse } from '../models'; +// @ts-ignore +import { UnathorizedResponse } from '../models'; +/** + * UserConnectionsApi - axios parameter creator + * @export + */ +export const UserConnectionsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Returns data about all connections for the authorized user. + * @summary Get all user connections + + * @throws {RequiredError} + */ + getUserConnections: async (): Promise => { + const localVarPath = `/userConnections`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["base"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * UserConnectionsApi - functional programming interface + * @export + */ +export const UserConnectionsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = UserConnectionsApiAxiosParamCreator(configuration) + return { + /** + * Returns data about all connections for the authorized user. + * @summary Get all user connections + + * @throws {RequiredError} + */ + async getUserConnections(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserConnections(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * UserConnectionsApi - factory interface + * @export + */ +export const UserConnectionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = UserConnectionsApiFp(configuration) + return { + /** + * Returns data about all connections for the authorized user. + * @summary Get all user connections + + * @throws {RequiredError} + */ + getUserConnections(): Promise { + return localVarFp.getUserConnections().then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * UserConnectionsApi - object-oriented interface + * @export + * @class UserConnectionsApi + * @extends {BaseAPI} + */ +export class UserConnectionsApi extends BaseAPI { + /** + * Returns data about all connections for the authorized user. + * @summary Get all user connections + + * @throws {RequiredError} + * @memberof UserConnectionsApi + */ + public getUserConnections() { + return UserConnectionsApiFp(this.configuration).getUserConnections().then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/user-settings-api.ts b/src/versions/v1/api/user-settings-api.ts new file mode 100644 index 00000000..68d7fd18 --- /dev/null +++ b/src/versions/v1/api/user-settings-api.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetUserSettingsResponse } from '../models'; +// @ts-ignore +import { UnathorizedResponse } from '../models'; +/** + * UserSettingsApi - axios parameter creator + * @export + */ +export const UserSettingsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Lists the settings of an authorized user. Example response contains a shortened list of settings. + * @summary List settings of an authorized user + + * @throws {RequiredError} + */ + getUserSettings: async (): Promise => { + const localVarPath = `/userSettings`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["base"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * UserSettingsApi - functional programming interface + * @export + */ +export const UserSettingsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = UserSettingsApiAxiosParamCreator(configuration) + return { + /** + * Lists the settings of an authorized user. Example response contains a shortened list of settings. + * @summary List settings of an authorized user + + * @throws {RequiredError} + */ + async getUserSettings(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserSettings(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * UserSettingsApi - factory interface + * @export + */ +export const UserSettingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = UserSettingsApiFp(configuration) + return { + /** + * Lists the settings of an authorized user. Example response contains a shortened list of settings. + * @summary List settings of an authorized user + + * @throws {RequiredError} + */ + getUserSettings(): Promise { + return localVarFp.getUserSettings().then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * UserSettingsApi - object-oriented interface + * @export + * @class UserSettingsApi + * @extends {BaseAPI} + */ +export class UserSettingsApi extends BaseAPI { + /** + * Lists the settings of an authorized user. Example response contains a shortened list of settings. + * @summary List settings of an authorized user + + * @throws {RequiredError} + * @memberof UserSettingsApi + */ + public getUserSettings() { + return UserSettingsApiFp(this.configuration).getUserSettings().then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/users-api.ts b/src/versions/v1/api/users-api.ts new file mode 100644 index 00000000..bb6e8e74 --- /dev/null +++ b/src/versions/v1/api/users-api.ts @@ -0,0 +1,974 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddUserRequest } from '../models'; +// @ts-ignore +import { FailResponse } from '../models'; +// @ts-ignore +import { GetCurrentUserResponse } from '../models'; +// @ts-ignore +import { GetRoleAssignmentsResponse } from '../models'; +// @ts-ignore +import { GetRoleSettingsResponse } from '../models'; +// @ts-ignore +import { GetUserPermissionsResponse } from '../models'; +// @ts-ignore +import { GetUserResponse } from '../models'; +// @ts-ignore +import { GetUsersResponse } from '../models'; +// @ts-ignore +import { UnathorizedResponse } from '../models'; +// @ts-ignore +import { UpdateUserRequest } from '../models'; +// @ts-ignore +import { UserIds } from '../models'; +/** + * UsersApi - axios parameter creator + * @export + */ +export const UsersApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new user to the company, returns the ID upon success. + * @summary Add a new user + * @param {AddUserRequest} [AddUserRequest] + + * @throws {RequiredError} + */ + addUser: async (AddUserRequest?: AddUserRequest, ): Promise => { + const localVarPath = `/users`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddUserRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Finds users by their name. + * @summary Find users by name + * @param {string} term The search term to look for + * @param {0 | 1} [search_by_email] When enabled, the term will only be matched against email addresses of users. Default: `false`. + + * @throws {RequiredError} + */ + findUsersByName: async (term: string, search_by_email?: 0 | 1, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('findUsersByName', 'term', term) + const localVarPath = `/users/find`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (search_by_email !== undefined) { + localVarQueryParameter['search_by_email'] = search_by_email; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about an authorized user within the company with bound company data: company ID, company name, and domain. Note that the `locale` property means \'Date/number format\' in the Pipedrive account settings, not the chosen language. + * @summary Get current user data + + * @throws {RequiredError} + */ + getCurrentUser: async (): Promise => { + const localVarPath = `/users/me`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["base"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific user within the company. + * @summary Get one user + * @param {number} id The ID of the user + + * @throws {RequiredError} + */ + getUser: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getUser', 'id', id) + const localVarPath = `/users/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists the followers of a specific user. + * @summary List followers of a user + * @param {number} id The ID of the user + + * @throws {RequiredError} + */ + getUserFollowers: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getUserFollowers', 'id', id) + const localVarPath = `/users/{id}/followers` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists aggregated permissions over all assigned permission sets for a user. + * @summary List user permissions + * @param {number} id The ID of the user + + * @throws {RequiredError} + */ + getUserPermissions: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getUserPermissions', 'id', id) + const localVarPath = `/users/{id}/permissions` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists role assignments for a user. + * @summary List role assignments + * @param {number} id The ID of the user + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + getUserRoleAssignments: async (id: number, start?: number, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getUserRoleAssignments', 'id', id) + const localVarPath = `/users/{id}/roleAssignments` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + if (start !== undefined) { + localVarQueryParameter['start'] = start; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists the settings of user\'s assigned role. + * @summary List user role settings + * @param {number} id The ID of the user + + * @throws {RequiredError} + */ + getUserRoleSettings: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getUserRoleSettings', 'id', id) + const localVarPath = `/users/{id}/roleSettings` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all users within the company. + * @summary Get all users + + * @throws {RequiredError} + */ + getUsers: async (): Promise => { + const localVarPath = `/users`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["users:read"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a user. Currently, only `active_flag` can be updated. + * @summary Update user details + * @param {number} id The ID of the user + * @param {UpdateUserRequest} [UpdateUserRequest] + + * @throws {RequiredError} + */ + updateUser: async (id: number, UpdateUserRequest?: UpdateUserRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateUser', 'id', id) + const localVarPath = `/users/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateUserRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * UsersApi - functional programming interface + * @export + */ +export const UsersApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = UsersApiAxiosParamCreator(configuration) + return { + /** + * Adds a new user to the company, returns the ID upon success. + * @summary Add a new user + * @param {AddUserRequest} [AddUserRequest] + + * @throws {RequiredError} + */ + async addUser(AddUserRequest?: AddUserRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addUser(AddUserRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Finds users by their name. + * @summary Find users by name + * @param {string} term The search term to look for + * @param {0 | 1} [search_by_email] When enabled, the term will only be matched against email addresses of users. Default: `false`. + + * @throws {RequiredError} + */ + async findUsersByName(term: string, search_by_email?: 0 | 1, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.findUsersByName(term, search_by_email, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about an authorized user within the company with bound company data: company ID, company name, and domain. Note that the `locale` property means \'Date/number format\' in the Pipedrive account settings, not the chosen language. + * @summary Get current user data + + * @throws {RequiredError} + */ + async getCurrentUser(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentUser(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific user within the company. + * @summary Get one user + * @param {number} id The ID of the user + + * @throws {RequiredError} + */ + async getUser(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists the followers of a specific user. + * @summary List followers of a user + * @param {number} id The ID of the user + + * @throws {RequiredError} + */ + async getUserFollowers(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserFollowers(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists aggregated permissions over all assigned permission sets for a user. + * @summary List user permissions + * @param {number} id The ID of the user + + * @throws {RequiredError} + */ + async getUserPermissions(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserPermissions(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists role assignments for a user. + * @summary List role assignments + * @param {number} id The ID of the user + * @param {number} [start] Pagination start + * @param {number} [limit] Items shown per page + + * @throws {RequiredError} + */ + async getUserRoleAssignments(id: number, start?: number, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserRoleAssignments(id, start, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists the settings of user\'s assigned role. + * @summary List user role settings + * @param {number} id The ID of the user + + * @throws {RequiredError} + */ + async getUserRoleSettings(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUserRoleSettings(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all users within the company. + * @summary Get all users + + * @throws {RequiredError} + */ + async getUsers(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getUsers(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a user. Currently, only `active_flag` can be updated. + * @summary Update user details + * @param {number} id The ID of the user + * @param {UpdateUserRequest} [UpdateUserRequest] + + * @throws {RequiredError} + */ + async updateUser(id: number, UpdateUserRequest?: UpdateUserRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(id, UpdateUserRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * UsersApi - factory interface + * @export + */ +export const UsersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = UsersApiFp(configuration) + return { + /** + * Adds a new user to the company, returns the ID upon success. + * @summary Add a new user + * @param {UsersApiAddUserRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addUser(requestParameters: UsersApiAddUserRequest = {}, ): Promise { + return localVarFp.addUser(requestParameters.AddUserRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Finds users by their name. + * @summary Find users by name + * @param {UsersApiFindUsersByNameRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + findUsersByName(requestParameters: UsersApiFindUsersByNameRequest, ): Promise { + return localVarFp.findUsersByName(requestParameters.term, requestParameters.search_by_email, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about an authorized user within the company with bound company data: company ID, company name, and domain. Note that the `locale` property means \'Date/number format\' in the Pipedrive account settings, not the chosen language. + * @summary Get current user data + + * @throws {RequiredError} + */ + getCurrentUser(): Promise { + return localVarFp.getCurrentUser().then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific user within the company. + * @summary Get one user + * @param {UsersApiGetUserRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getUser(requestParameters: UsersApiGetUserRequest, ): Promise { + return localVarFp.getUser(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists the followers of a specific user. + * @summary List followers of a user + * @param {UsersApiGetUserFollowersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getUserFollowers(requestParameters: UsersApiGetUserFollowersRequest, ): Promise { + return localVarFp.getUserFollowers(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists aggregated permissions over all assigned permission sets for a user. + * @summary List user permissions + * @param {UsersApiGetUserPermissionsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getUserPermissions(requestParameters: UsersApiGetUserPermissionsRequest, ): Promise { + return localVarFp.getUserPermissions(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists role assignments for a user. + * @summary List role assignments + * @param {UsersApiGetUserRoleAssignmentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getUserRoleAssignments(requestParameters: UsersApiGetUserRoleAssignmentsRequest, ): Promise { + return localVarFp.getUserRoleAssignments(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Lists the settings of user\'s assigned role. + * @summary List user role settings + * @param {UsersApiGetUserRoleSettingsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getUserRoleSettings(requestParameters: UsersApiGetUserRoleSettingsRequest, ): Promise { + return localVarFp.getUserRoleSettings(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all users within the company. + * @summary Get all users + + * @throws {RequiredError} + */ + getUsers(): Promise { + return localVarFp.getUsers().then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a user. Currently, only `active_flag` can be updated. + * @summary Update user details + * @param {UsersApiUpdateUserRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateUser(requestParameters: UsersApiUpdateUserRequest, ): Promise { + return localVarFp.updateUser(requestParameters.id, requestParameters.UpdateUserRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addUser operation in UsersApi. + * @export + * @interface UsersApiAddUserRequest + */ +export interface UsersApiAddUserRequest { + /** + * + * @type {AddUserRequest} + * @memberof UsersApiAddUser + */ + readonly AddUserRequest?: AddUserRequest +} + +/** + * Request parameters for findUsersByName operation in UsersApi. + * @export + * @interface UsersApiFindUsersByNameRequest + */ +export interface UsersApiFindUsersByNameRequest { + /** + * The search term to look for + * @type {string} + * @memberof UsersApiFindUsersByName + */ + readonly term: string + + /** + * When enabled, the term will only be matched against email addresses of users. Default: `false`. + * @type {0 | 1} + * @memberof UsersApiFindUsersByName + */ + readonly search_by_email?: 0 | 1 +} + +/** + * Request parameters for getUser operation in UsersApi. + * @export + * @interface UsersApiGetUserRequest + */ +export interface UsersApiGetUserRequest { + /** + * The ID of the user + * @type {number} + * @memberof UsersApiGetUser + */ + readonly id: number +} + +/** + * Request parameters for getUserFollowers operation in UsersApi. + * @export + * @interface UsersApiGetUserFollowersRequest + */ +export interface UsersApiGetUserFollowersRequest { + /** + * The ID of the user + * @type {number} + * @memberof UsersApiGetUserFollowers + */ + readonly id: number +} + +/** + * Request parameters for getUserPermissions operation in UsersApi. + * @export + * @interface UsersApiGetUserPermissionsRequest + */ +export interface UsersApiGetUserPermissionsRequest { + /** + * The ID of the user + * @type {number} + * @memberof UsersApiGetUserPermissions + */ + readonly id: number +} + +/** + * Request parameters for getUserRoleAssignments operation in UsersApi. + * @export + * @interface UsersApiGetUserRoleAssignmentsRequest + */ +export interface UsersApiGetUserRoleAssignmentsRequest { + /** + * The ID of the user + * @type {number} + * @memberof UsersApiGetUserRoleAssignments + */ + readonly id: number + + /** + * Pagination start + * @type {number} + * @memberof UsersApiGetUserRoleAssignments + */ + readonly start?: number + + /** + * Items shown per page + * @type {number} + * @memberof UsersApiGetUserRoleAssignments + */ + readonly limit?: number +} + +/** + * Request parameters for getUserRoleSettings operation in UsersApi. + * @export + * @interface UsersApiGetUserRoleSettingsRequest + */ +export interface UsersApiGetUserRoleSettingsRequest { + /** + * The ID of the user + * @type {number} + * @memberof UsersApiGetUserRoleSettings + */ + readonly id: number +} + +/** + * Request parameters for updateUser operation in UsersApi. + * @export + * @interface UsersApiUpdateUserRequest + */ +export interface UsersApiUpdateUserRequest { + /** + * The ID of the user + * @type {number} + * @memberof UsersApiUpdateUser + */ + readonly id: number + + /** + * + * @type {UpdateUserRequest} + * @memberof UsersApiUpdateUser + */ + readonly UpdateUserRequest?: UpdateUserRequest +} + +/** + * UsersApi - object-oriented interface + * @export + * @class UsersApi + * @extends {BaseAPI} + */ +export class UsersApi extends BaseAPI { + /** + * Adds a new user to the company, returns the ID upon success. + * @summary Add a new user + * @param {UsersApiAddUserRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof UsersApi + */ + public addUser(requestParameters: UsersApiAddUserRequest = {}, ) { + return UsersApiFp(this.configuration).addUser(requestParameters.AddUserRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Finds users by their name. + * @summary Find users by name + * @param {UsersApiFindUsersByNameRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof UsersApi + */ + public findUsersByName(requestParameters: UsersApiFindUsersByNameRequest, ) { + return UsersApiFp(this.configuration).findUsersByName(requestParameters.term, requestParameters.search_by_email, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about an authorized user within the company with bound company data: company ID, company name, and domain. Note that the `locale` property means \'Date/number format\' in the Pipedrive account settings, not the chosen language. + * @summary Get current user data + + * @throws {RequiredError} + * @memberof UsersApi + */ + public getCurrentUser() { + return UsersApiFp(this.configuration).getCurrentUser().then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific user within the company. + * @summary Get one user + * @param {UsersApiGetUserRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof UsersApi + */ + public getUser(requestParameters: UsersApiGetUserRequest, ) { + return UsersApiFp(this.configuration).getUser(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists the followers of a specific user. + * @summary List followers of a user + * @param {UsersApiGetUserFollowersRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof UsersApi + */ + public getUserFollowers(requestParameters: UsersApiGetUserFollowersRequest, ) { + return UsersApiFp(this.configuration).getUserFollowers(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists aggregated permissions over all assigned permission sets for a user. + * @summary List user permissions + * @param {UsersApiGetUserPermissionsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof UsersApi + */ + public getUserPermissions(requestParameters: UsersApiGetUserPermissionsRequest, ) { + return UsersApiFp(this.configuration).getUserPermissions(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists role assignments for a user. + * @summary List role assignments + * @param {UsersApiGetUserRoleAssignmentsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof UsersApi + */ + public getUserRoleAssignments(requestParameters: UsersApiGetUserRoleAssignmentsRequest, ) { + return UsersApiFp(this.configuration).getUserRoleAssignments(requestParameters.id, requestParameters.start, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists the settings of user\'s assigned role. + * @summary List user role settings + * @param {UsersApiGetUserRoleSettingsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof UsersApi + */ + public getUserRoleSettings(requestParameters: UsersApiGetUserRoleSettingsRequest, ) { + return UsersApiFp(this.configuration).getUserRoleSettings(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all users within the company. + * @summary Get all users + + * @throws {RequiredError} + * @memberof UsersApi + */ + public getUsers() { + return UsersApiFp(this.configuration).getUsers().then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a user. Currently, only `active_flag` can be updated. + * @summary Update user details + * @param {UsersApiUpdateUserRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof UsersApi + */ + public updateUser(requestParameters: UsersApiUpdateUserRequest, ) { + return UsersApiFp(this.configuration).updateUser(requestParameters.id, requestParameters.UpdateUserRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/api/webhooks-api.ts b/src/versions/v1/api/webhooks-api.ts new file mode 100644 index 00000000..d8a98c65 --- /dev/null +++ b/src/versions/v1/api/webhooks-api.ts @@ -0,0 +1,317 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddWebhookRequest } from '../models'; +// @ts-ignore +import { BaseResponse } from '../models'; +// @ts-ignore +import { DeleteWebhook403Response } from '../models'; +// @ts-ignore +import { GetWebhookResponse } from '../models'; +// @ts-ignore +import { GetWebhooksResponse } from '../models'; +// @ts-ignore +import { UnathorizedResponse } from '../models'; +// @ts-ignore +import { WebhooksBadRequestResponse } from '../models'; +/** + * WebhooksApi - axios parameter creator + * @export + */ +export const WebhooksApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Creates a new Webhook and returns its details. Note that specifying an event which triggers the Webhook combines 2 parameters - `event_action` and `event_object`. E.g., use `*.*` for getting notifications about all events, `added.deal` for any newly added deals, `deleted.persons` for any deleted persons, etc. See the guide for Webhooks for more details. + * @summary Create a new Webhook + * @param {AddWebhookRequest} [AddWebhookRequest] + + * @throws {RequiredError} + */ + addWebhook: async (AddWebhookRequest?: AddWebhookRequest, ): Promise => { + const localVarPath = `/webhooks`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddWebhookRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes the specified Webhook. + * @summary Delete existing Webhook + * @param {number} id The ID of the Webhook to delete + + * @throws {RequiredError} + */ + deleteWebhook: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteWebhook', 'id', id) + const localVarPath = `/webhooks/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all the Webhooks of a company. + * @summary Get all Webhooks + + * @throws {RequiredError} + */ + getWebhooks: async (): Promise => { + const localVarPath = `/webhooks`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * WebhooksApi - functional programming interface + * @export + */ +export const WebhooksApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = WebhooksApiAxiosParamCreator(configuration) + return { + /** + * Creates a new Webhook and returns its details. Note that specifying an event which triggers the Webhook combines 2 parameters - `event_action` and `event_object`. E.g., use `*.*` for getting notifications about all events, `added.deal` for any newly added deals, `deleted.persons` for any deleted persons, etc. See the guide for Webhooks for more details. + * @summary Create a new Webhook + * @param {AddWebhookRequest} [AddWebhookRequest] + + * @throws {RequiredError} + */ + async addWebhook(AddWebhookRequest?: AddWebhookRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addWebhook(AddWebhookRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes the specified Webhook. + * @summary Delete existing Webhook + * @param {number} id The ID of the Webhook to delete + + * @throws {RequiredError} + */ + async deleteWebhook(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteWebhook(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all the Webhooks of a company. + * @summary Get all Webhooks + + * @throws {RequiredError} + */ + async getWebhooks(): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getWebhooks(); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * WebhooksApi - factory interface + * @export + */ +export const WebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = WebhooksApiFp(configuration) + return { + /** + * Creates a new Webhook and returns its details. Note that specifying an event which triggers the Webhook combines 2 parameters - `event_action` and `event_object`. E.g., use `*.*` for getting notifications about all events, `added.deal` for any newly added deals, `deleted.persons` for any deleted persons, etc. See the guide for Webhooks for more details. + * @summary Create a new Webhook + * @param {WebhooksApiAddWebhookRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addWebhook(requestParameters: WebhooksApiAddWebhookRequest = {}, ): Promise { + return localVarFp.addWebhook(requestParameters.AddWebhookRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes the specified Webhook. + * @summary Delete existing Webhook + * @param {WebhooksApiDeleteWebhookRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteWebhook(requestParameters: WebhooksApiDeleteWebhookRequest, ): Promise { + return localVarFp.deleteWebhook(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all the Webhooks of a company. + * @summary Get all Webhooks + + * @throws {RequiredError} + */ + getWebhooks(): Promise { + return localVarFp.getWebhooks().then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addWebhook operation in WebhooksApi. + * @export + * @interface WebhooksApiAddWebhookRequest + */ +export interface WebhooksApiAddWebhookRequest { + /** + * + * @type {AddWebhookRequest} + * @memberof WebhooksApiAddWebhook + */ + readonly AddWebhookRequest?: AddWebhookRequest +} + +/** + * Request parameters for deleteWebhook operation in WebhooksApi. + * @export + * @interface WebhooksApiDeleteWebhookRequest + */ +export interface WebhooksApiDeleteWebhookRequest { + /** + * The ID of the Webhook to delete + * @type {number} + * @memberof WebhooksApiDeleteWebhook + */ + readonly id: number +} + +/** + * WebhooksApi - object-oriented interface + * @export + * @class WebhooksApi + * @extends {BaseAPI} + */ +export class WebhooksApi extends BaseAPI { + /** + * Creates a new Webhook and returns its details. Note that specifying an event which triggers the Webhook combines 2 parameters - `event_action` and `event_object`. E.g., use `*.*` for getting notifications about all events, `added.deal` for any newly added deals, `deleted.persons` for any deleted persons, etc. See the guide for Webhooks for more details. + * @summary Create a new Webhook + * @param {WebhooksApiAddWebhookRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof WebhooksApi + */ + public addWebhook(requestParameters: WebhooksApiAddWebhookRequest = {}, ) { + return WebhooksApiFp(this.configuration).addWebhook(requestParameters.AddWebhookRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes the specified Webhook. + * @summary Delete existing Webhook + * @param {WebhooksApiDeleteWebhookRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof WebhooksApi + */ + public deleteWebhook(requestParameters: WebhooksApiDeleteWebhookRequest, ) { + return WebhooksApiFp(this.configuration).deleteWebhook(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all the Webhooks of a company. + * @summary Get all Webhooks + + * @throws {RequiredError} + * @memberof WebhooksApi + */ + public getWebhooks() { + return WebhooksApiFp(this.configuration).getWebhooks().then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v1/base.ts b/src/versions/v1/base.ts new file mode 100644 index 00000000..df55d6d8 --- /dev/null +++ b/src/versions/v1/base.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from './configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import type { AxiosError, AxiosResponse, AxiosRequestConfig , InternalAxiosRequestConfig } from 'axios'; +import axios from 'axios'; +import { join, dirname } from 'path'; +import { existsSync } from 'fs'; + +export const BASE_PATH = "https://api.pipedrive.com/v1".replace(/\/+$/, ""); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: AxiosRequestConfig; +} + +const searchForPackageJson = (startPath: string): string | null => { + const filePath = join(startPath, 'package.json'); + + if (existsSync(filePath)) { + return filePath; + } + + const parentDir = dirname(startPath); + + // Stop if we've reached the root directory + if (parentDir.endsWith('/pipedrive') || parentDir === startPath) { + return null; + } + + return searchForPackageJson(parentDir); +}; + + +export const versionInterceptor = async (config:InternalAxiosRequestConfig) => { + let version:string; + try { + const path = searchForPackageJson(__dirname); + + version = path ? require(path).version : '22.x'; + } catch (error) { + version = '22.x'; + } + + config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`; + return config; +} + +export const responseInterceptor = (response: AxiosResponse) => { + return response?.data ? response.data: response; +}; + +export const errorInterceptor = (error: AxiosError) => { + if (error.response && error.response.data) { + return Promise.reject(error.response.data); + } + return Promise.reject(error); +}; + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + protected basePath: string = BASE_PATH; + protected axios = axios.create(); + constructor(configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath || this.basePath; + } + + this.axios.interceptors.response.use(responseInterceptor, errorInterceptor); + this.axios.interceptors.request.use(versionInterceptor); + } +}; + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + constructor(public field: string, msg?: string) { + super(msg); + this.name = "RequiredError" + } +} + + + diff --git a/src/versions/v1/common.ts b/src/versions/v1/common.ts new file mode 100644 index 00000000..24db768f --- /dev/null +++ b/src/versions/v1/common.ts @@ -0,0 +1,148 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { Configuration } from "./configuration"; +import { RequiredError, RequestArgs } from "./base"; +import { AxiosInstance, AxiosResponse } from 'axios'; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com' + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +} + +/** + * + * @export + */ +export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +} + +/** + * + * @export + */ +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +} + +/** + * + * @export + */ +export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +} + +/** + * + * @export + */ +export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +} + +function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => + setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) + ); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +} + +/** + * + * @export + */ +export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +} + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash +} + +/** + * + * @export + */ +export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { + return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url}; + return axios.request(axiosRequestArgs); + }; +} diff --git a/src/versions/v1/configuration.ts b/src/versions/v1/configuration.ts new file mode 100644 index 00000000..9db94018 --- /dev/null +++ b/src/versions/v1/configuration.ts @@ -0,0 +1,312 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import axios from "axios"; +import { stringify } from "qs"; +import { errorInterceptor, responseInterceptor, versionInterceptor } from './base'; + +export type TokenResponse = { + access_token: string; + refresh_token: string; + token_type: string; + expires_in: number; + scope: string; + api_domain: string; +} + +export interface Parameters { + clientId: string; + clientSecret: string; + redirectUri: string; + host?: string; +} + +export type ParamKey = keyof Parameters; + +export class OAuth2Configuration { + public host: string; + public clientId: string; + public clientSecret: string; + public basePath = ""; + public onTokenUpdate?: (token: TokenResponse) => void; + + private axios = axios.create(); + private accessToken: string | null = null; + private refreshToken: string | null = null; + private scope: string | null = null; + private expiresIn = 0; // expiration value in seconds sent by the OAuth server. + private expiresAt = 0; // expiration time as number of milliseconds elapsed since January 1, 1970 00:00:00 UTC. + private redirectUri: string; + + constructor(params: Parameters) { + this.clientId = this.validateParam(params, 'clientId'); + this.clientSecret = this.validateParam(params, 'clientSecret'); + this.redirectUri = this.validateParam(params, 'redirectUri'); + this.host = params.host || "https://oauth.pipedrive.com"; + const basePath = params.host ||"https://api.pipedrive.com"; + this.basePath = `${basePath}/api/v1`; + + this.axios.interceptors.response.use(responseInterceptor, errorInterceptor); + this.axios.interceptors.request.use(versionInterceptor); + } + + public get authorizationUrl() { + return `${this.host}/oauth/authorize?client_id=${ + this.clientId + }&redirect_uri=${encodeURIComponent(this.redirectUri)}`; + } + + public getAccessToken = async (): Promise => { + if (this.shouldRefreshToken()) { + const newToken = await this.tokenRefresh(); + this.updateToken(newToken); + + return newToken.access_token; + } + + return this.accessToken!; + }; + + public shouldRefreshToken = (): boolean => { + return this.expiresAt && Date.now() > this.expiresAt; + } + + /** + * Authorizes the authorization code sent by the server and returns OAuth 2 token. + * @param {String} code The authorization code sent by the OAuth server. + * @returns {Object} The OAuth 2 token. + */ + public authorize = async (code: string): Promise => { + if (!code) { + throw new Error("Authorization failed. Authorization code is not set."); + } + + const authorizationUrl = `${this.host}/oauth/token`; + + const clientIdAndSecretInBase64 = Buffer.from( + `${this.clientId}:${this.clientSecret}` + ).toString("base64"); + + const response = await this.axios.post( + authorizationUrl, + stringify({ + code, + redirect_uri: this.redirectUri, + grant_type: "authorization_code", + }), + { + headers: { + "Content-Type": "application/x-www-form-urlencoded", + Authorization: `Basic ${clientIdAndSecretInBase64}`, + }, + } + ) as TokenResponse; + + this.updateToken(response); + + return response; + }; + + public tokenRefresh = async (): Promise => { + const refreshUrl = `${this.host}/oauth/token`; + const clientIdAndSecretInBase64 = Buffer.from( + `${this.clientId}:${this.clientSecret}` + ).toString("base64"); + + const response = await this.axios.post( + refreshUrl, + stringify({ + refresh_token: this.refreshToken, + grant_type: "refresh_token", + }), + { + headers: { + "Content-Type": "application/x-www-form-urlencoded", + Authorization: `Basic ${clientIdAndSecretInBase64}`, + }, + } + ) as TokenResponse; + + this.updateToken(response); + + return response; + }; + + + /* + * Updates the ApiClient OAuth 2 authentication properties and invokes the token update callback if it is set. + * Besides extracting all the values from the provided OAuth 2 token, + * the expiration time of access token is calculated and set as expiresAt property. + * @param {Object} token The OAuth 2 token got from the OAuth server. + */ + public updateToken = (token: TokenResponse | null) => { + if (!token) { + return null; + } + + if (token.access_token) { + this.accessToken = token.access_token; + } + + if (token.refresh_token) { + this.refreshToken = token.refresh_token; + } + + if (token.expires_in) { + this.expiresIn = token.expires_in; + this.expiresAt = Date.now() + token.expires_in * 1000; + } + + if (token.scope) { + this.scope = token.scope; + } + + if (token.api_domain) { + this.basePath = `${token.api_domain}/api/v1`; + } + + this.onTokenUpdate?.(token); + + return token; + }; + +/** + * Revoke Refresh Token aka marking an app uninstalled or revoke the Access Token. + * @param {String} tokenTypeHint values can be: 'access_token' or 'refresh_token'. +*/ + public async revokeToken(tokenTypeHint?: 'access_token' | 'refresh_token') { + + const token = tokenTypeHint === 'refresh_token' + ? this.refreshToken : encodeURIComponent(this.accessToken); + + const clientId = this.clientId; + const clientSecret = this.clientSecret; + const revokeUrl = `${this.host}/oauth/revoke?`; + const clientIdAndSecretInBase64 = Buffer.from(`${clientId}:${clientSecret}`).toString('base64'); + + const response = await this.axios.post( + revokeUrl, + stringify({ + token, + token_type_hint: tokenTypeHint + }),{ + headers: { + "Content-Type": "application/x-www-form-urlencoded", + 'Authorization': `Basic ${clientIdAndSecretInBase64}`, + + } + } + ); + + return response; + } + + private validateParam = (params: Parameters, key: ParamKey): string => { + if (!params[key]) { + throw new Error(`OAuth 2 property ${key} is not set.`); + } + return params[key]; + } +} + + +export interface ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + formDataCtor?: new () => any; + basePath?: string; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters) { + this.apiKey = param.apiKey; + this.accessToken = param.accessToken; + this.formDataCtor = param.formDataCtor; + this.basePath = param.basePath; + + /** Values either not supported or set by the packaged already **/ + this.username = undefined; + this.password = undefined; + this.baseOptions = undefined; + + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} + + diff --git a/src/versions/v1/index.ts b/src/versions/v1/index.ts new file mode 100644 index 00000000..5758cdab --- /dev/null +++ b/src/versions/v1/index.ts @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export * from "./api"; +export * from "./configuration"; +export * from "./models"; diff --git a/src/versions/v1/models/activity-all-of.ts b/src/versions/v1/models/activity-all-of.ts new file mode 100644 index 00000000..e1d6078d --- /dev/null +++ b/src/versions/v1/models/activity-all-of.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ActivityAllOf +*/ +export interface ActivityAllOf { + /** + * The due date of the activity. Format: YYYY-MM-DD + * @type {string} + */ + 'due_date'?: string; + /** + * The due time of the activity in UTC. Format: HH:MM + * @type {string} + */ + 'due_time'?: string; + /** + * The duration of the activity. Format: HH:MM + * @type {string} + */ + 'duration'?: string; + /** + * The ID of the deal this activity is associated with + * @type {number} + */ + 'deal_id'?: number; + /** + * The ID of the lead in the UUID format this activity is associated with + * @type {string} + */ + 'lead_id'?: string | null; + /** + * The ID of the person this activity is associated with + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the project this activity is associated with + * @type {number} + */ + 'project_id'?: number | null; + /** + * The ID of the organization this activity is associated with + * @type {number} + */ + 'org_id'?: number; + /** + * The address of the activity. + * @type {string} + */ + 'location'?: string; + /** + * Additional details about the activity that is synced to your external calendar. Unlike the note added to the activity, the description is publicly visible to any guests added to the activity. + * @type {string} + */ + 'public_description'?: string; +} + diff --git a/src/versions/v1/models/activity-all-of1.ts b/src/versions/v1/models/activity-all-of1.ts new file mode 100644 index 00000000..db2dbd46 --- /dev/null +++ b/src/versions/v1/models/activity-all-of1.ts @@ -0,0 +1,279 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ActivityAllOf1 +*/ +export interface ActivityAllOf1 { + /** + * The ID of the activity, generated when the activity was created + * @type {number} + */ + 'id': number; + /** + * The note of the activity (HTML format) + * @type {string} + */ + 'note': string; + /** + * Whether the activity is done or not + * @type {boolean} + */ + 'done': boolean; + /** + * The subject of the activity + * @type {string} + */ + 'subject': string; + /** + * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. + * @type {string} + */ + 'type': string; + /** + * The ID of the user whom the activity is assigned to + * @type {number} + */ + 'user_id': number; + /** + * List of multiple persons (participants) this activity is associated with + * @type {Array} + */ + 'participants': Array | null; + /** + * Marks if the activity is set as \'Busy\' or \'Free\'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to \'Busy\' if it has a time set, and \'Free\' if it is an all-day event without specified time. + * @type {boolean} + */ + 'busy_flag': boolean; + /** + * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. + * @type {Array} + */ + 'attendees': Array | null; + /** + * The user\'s company ID + * @type {number} + */ + 'company_id': number; + /** + * If the activity references some other object, it is indicated here. For example, value `Salesphone` refers to activities created with Caller. + * @type {string} + */ + 'reference_type': string; + /** + * Together with the `reference_type`, gives the ID of the other object + * @type {number} + */ + 'reference_id': number; + /** + * The ID of the Marketplace app, which is connected to this activity + * @type {string} + */ + 'conference_meeting_client': string; + /** + * The link to join the meeting which is associated with this activity + * @type {string} + */ + 'conference_meeting_url': string; + /** + * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity + * @type {string} + */ + 'conference_meeting_id': string; + /** + * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time': string; + /** + * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'marked_as_done_time': string; + /** + * The date and time of latest notifications sent about this activity to the participants or the attendees of this activity + * @type {string} + */ + 'last_notification_time': string; + /** + * The ID of the user who triggered the sending of the latest notifications about this activity to the participants or the attendees of this activity + * @type {number} + */ + 'last_notification_user_id': number; + /** + * The ID of the language the notifications are sent in + * @type {number} + */ + 'notification_language_id': number; + /** + * Whether the activity is active or not + * @type {boolean} + */ + 'active_flag': boolean; + /** + * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time': string; + /** + * The ID of the user who was the last to update this activity + * @type {number} + */ + 'update_user_id': number; + /** + * For the activity which syncs to Google calendar, this is the Google event ID. NB! This field is related to old Google calendar sync and will be deprecated soon. + * @type {string} + */ + 'gcal_event_id': string; + /** + * The Google calendar ID that this activity syncs to. NB! This field is related to old Google calendar sync and will be deprecated soon. + * @type {string} + */ + 'google_calendar_id': string; + /** + * The Google calendar API etag (version) that is used for syncing this activity. NB! This field is related to old Google calendar sync and will be deprecated soon. + * @type {string} + */ + 'google_calendar_etag': string; + /** + * For activities that sync to an external calendar, this setting indicates if the activity syncs with context (what are the deals, persons, organizations this activity is related to) + * @type {string} + */ + 'calendar_sync_include_context': string; + /** + * The timezone the activity was created in an external calendar + * @type {string} + */ + 'source_timezone': string; + /** + * The rule for the recurrence of the activity. Is important for activities synced into Pipedrive from an external calendar. Example: \"RRULE:FREQ=WEEKLY;BYDAY=WE\" + * @type {string} + */ + 'rec_rule': string; + /** + * Additional rules for the recurrence of the activity, extend the `rec_rule`. Is important for activities synced into Pipedrive from an external calendar. + * @type {string} + */ + 'rec_rule_extension': string; + /** + * The ID of parent activity for a recurrent activity if the current activity is an exception to recurrence rules + * @type {number} + */ + 'rec_master_activity_id': number; + /** + * The list of recurring activity instances. It is in a structure as follows: `[{due_date: \"2020-06-24\", due_time: \"10:00:00\"}]` + * @type {Array} + */ + 'series': Array; + /** + * The ID of the user who created the activity + * @type {number} + */ + 'created_by_user_id': number; + /** + * A subfield of the location field. Indicates apartment/suite number. + * @type {string} + */ + 'location_subpremise': string; + /** + * A subfield of the location field. Indicates house number. + * @type {string} + */ + 'location_street_number': string; + /** + * A subfield of the location field. Indicates street name. + * @type {string} + */ + 'location_route': string; + /** + * A subfield of the location field. Indicates district/sublocality. + * @type {string} + */ + 'location_sublocality': string; + /** + * A subfield of the location field. Indicates city/town/village/locality. + * @type {string} + */ + 'location_locality': string; + /** + * A subfield of the location field. Indicates state/county. + * @type {string} + */ + 'location_admin_area_level_1': string; + /** + * A subfield of the location field. Indicates region. + * @type {string} + */ + 'location_admin_area_level_2': string; + /** + * A subfield of the location field. Indicates country. + * @type {string} + */ + 'location_country': string; + /** + * A subfield of the location field. Indicates ZIP/postal code. + * @type {string} + */ + 'location_postal_code': string; + /** + * A subfield of the location field. Indicates full/combined address. + * @type {string} + */ + 'location_formatted_address': string; + /** + * The name of the organization this activity is associated with + * @type {string} + */ + 'org_name': string; + /** + * The name of the person this activity is associated with + * @type {string} + */ + 'person_name': string; + /** + * The name of the deal this activity is associated with + * @type {string} + */ + 'deal_title': string; + /** + * The name of the user this activity is owned by + * @type {string} + */ + 'owner_name': string; + /** + * The BCC email address of the person + * @type {string} + */ + 'person_dropbox_bcc': string; + /** + * The BCC email address of the deal + * @type {string} + */ + 'deal_dropbox_bcc': string; + /** + * The ID of the user to whom the activity is assigned to. Equal to `user_id`. + * @type {number} + */ + 'assigned_to_user_id': number; + /** + * The file that is attached to this activity. For example, this can be a reference to an audio note file generated with Pipedrive mobile app. + * @type {object} + */ + 'file': object; +} + diff --git a/src/versions/v1/models/activity-collection-response-object-all-of.ts b/src/versions/v1/models/activity-collection-response-object-all-of.ts new file mode 100644 index 00000000..b10f4117 --- /dev/null +++ b/src/versions/v1/models/activity-collection-response-object-all-of.ts @@ -0,0 +1,154 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ActivityCollectionResponseObjectAllOf +*/ +export interface ActivityCollectionResponseObjectAllOf { + /** + * The ID of the activity, generated when the activity was created + * @type {number} + */ + 'id': number; + /** + * Whether the activity is done or not + * @type {boolean} + */ + 'done': boolean; + /** + * The subject of the activity + * @type {string} + */ + 'subject': string; + /** + * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. + * @type {string} + */ + 'type': string; + /** + * The ID of the user whom the activity is assigned to + * @type {number} + */ + 'user_id': number; + /** + * Marks if the activity is set as \'Busy\' or \'Free\'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset. When the value of the flag is unset (`null`), the flag defaults to \'Busy\' if it has a time set, and \'Free\' if it is an all-day event without specified time. + * @type {boolean} + */ + 'busy_flag': boolean; + /** + * The user\'s company ID + * @type {number} + */ + 'company_id': number; + /** + * The ID of the Marketplace app, which is connected to this activity + * @type {string} + */ + 'conference_meeting_client': string; + /** + * The link to join the meeting which is associated with this activity + * @type {string} + */ + 'conference_meeting_url': string; + /** + * The meeting ID of the meeting provider (Zoom, MS Teams etc.) that is associated with this activity + * @type {string} + */ + 'conference_meeting_id': string; + /** + * The creation date and time of the activity in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time': string; + /** + * The date and time this activity was marked as done. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'marked_as_done_time': string; + /** + * Whether the activity is active or not + * @type {boolean} + */ + 'active_flag': boolean; + /** + * The last update date and time of the activity. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time': string; + /** + * The ID of the user who was the last to update this activity + * @type {number} + */ + 'update_user_id': number; + /** + * The timezone the activity was created in an external calendar + * @type {string} + */ + 'source_timezone': string; + /** + * A subfield of the location field. Indicates apartment/suite number. + * @type {string} + */ + 'location_subpremise': string; + /** + * A subfield of the location field. Indicates house number. + * @type {string} + */ + 'location_street_number': string; + /** + * A subfield of the location field. Indicates street name. + * @type {string} + */ + 'location_route': string; + /** + * A subfield of the location field. Indicates district/sublocality. + * @type {string} + */ + 'location_sublocality': string; + /** + * A subfield of the location field. Indicates city/town/village/locality. + * @type {string} + */ + 'location_locality': string; + /** + * A subfield of the location field. Indicates state/county. + * @type {string} + */ + 'location_admin_area_level_1': string; + /** + * A subfield of the location field. Indicates region. + * @type {string} + */ + 'location_admin_area_level_2': string; + /** + * A subfield of the location field. Indicates country. + * @type {string} + */ + 'location_country': string; + /** + * A subfield of the location field. Indicates ZIP/postal code. + * @type {string} + */ + 'location_postal_code': string; + /** + * A subfield of the location field. Indicates full/combined address. + * @type {string} + */ + 'location_formatted_address': string; +} + diff --git a/src/versions/v1/models/activity-collection-response-object.ts b/src/versions/v1/models/activity-collection-response-object.ts new file mode 100644 index 00000000..0375bcd8 --- /dev/null +++ b/src/versions/v1/models/activity-collection-response-object.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityAllOf } from './activity-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityCollectionResponseObjectAllOf } from './activity-collection-response-object-all-of'; + +/** + * @type ActivityCollectionResponseObject + * @export + */ +export type ActivityCollectionResponseObject = ActivityAllOf & ActivityCollectionResponseObjectAllOf; + + diff --git a/src/versions/v1/models/activity-distribution-data-with-additional-data.ts b/src/versions/v1/models/activity-distribution-data-with-additional-data.ts new file mode 100644 index 00000000..5b4a17a5 --- /dev/null +++ b/src/versions/v1/models/activity-distribution-data-with-additional-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityDistribution } from './activity-distribution'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityDistributionData } from './activity-distribution-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** + * @type ActivityDistributionDataWithAdditionalData + * @export + */ +export type ActivityDistributionDataWithAdditionalData = ActivityDistributionData & GetFieldsResponseAllOfAdditionalData; + + diff --git a/src/versions/v1/models/activity-distribution-data.ts b/src/versions/v1/models/activity-distribution-data.ts new file mode 100644 index 00000000..94b9a3e1 --- /dev/null +++ b/src/versions/v1/models/activity-distribution-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityDistribution } from './activity-distribution'; + +/** +* +* @export +* @interface ActivityDistributionData +*/ +export interface ActivityDistributionData { + /** + * + * @type {ActivityDistribution} + */ + 'activity_distribution'?: ActivityDistribution; +} + diff --git a/src/versions/v1/models/activity-distribution-item.ts b/src/versions/v1/models/activity-distribution-item.ts new file mode 100644 index 00000000..13924d40 --- /dev/null +++ b/src/versions/v1/models/activity-distribution-item.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityTypeCount } from './activity-type-count'; + +/** +* The ID of the user +* @export +* @interface ActivityDistributionItem +*/ +export interface ActivityDistributionItem { + /** + * + * @type {ActivityTypeCount} + */ + 'activities'?: ActivityTypeCount; + /** + * The name of the user + * @type {string} + */ + 'name'?: string; + /** + * The overall count of activities for the user + * @type {number} + */ + 'activity_count'?: number; + /** + * The percentage of activities belongs to the user + * @type {number} + */ + 'share'?: number; +} + diff --git a/src/versions/v1/models/activity-distribution.ts b/src/versions/v1/models/activity-distribution.ts new file mode 100644 index 00000000..e27e5d47 --- /dev/null +++ b/src/versions/v1/models/activity-distribution.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityDistributionItem } from './activity-distribution-item'; + +/** +* The distribution of activities related to the organization grouped by the user ID +* @export +* @interface ActivityDistribution +*/ +export interface ActivityDistribution { + /** + * + * @type {ActivityDistributionItem} + */ + 'ASSIGNED_TO_USER_ID'?: ActivityDistributionItem; +} + diff --git a/src/versions/v1/models/activity-type-count.ts b/src/versions/v1/models/activity-type-count.ts new file mode 100644 index 00000000..d796756d --- /dev/null +++ b/src/versions/v1/models/activity-type-count.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The count of activities related to the user grouped by activity type +* @export +* @interface ActivityTypeCount +*/ +export interface ActivityTypeCount { + /** + * The count of activities related to a specific type + * @type {number} + */ + 'ACTIVITY_TYPE_NAME'?: number; +} + diff --git a/src/versions/v1/models/activity-type.ts b/src/versions/v1/models/activity-type.ts new file mode 100644 index 00000000..85ef5b83 --- /dev/null +++ b/src/versions/v1/models/activity-type.ts @@ -0,0 +1,120 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ActivityType +*/ +export interface ActivityType { + /** + * The ID of the activity type + * @type {number} + */ + 'id': number; + /** + * The name of the activity type + * @type {string} + */ + 'name': string; + /** + * Icon graphic to use for representing this activity type + * @type {string} + */ + 'icon_key': ActivityTypeIconKeyConst; + /** + * A designated color for the activity type in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black) + * @type {string} + */ + 'color': string; + /** + * An order number for the activity type. Order numbers should be used to order the types in the activity type selections. + * @type {number} + */ + 'order_nr': number; + /** + * A string that is generated by the API based on the given name of the activity type upon creation + * @type {string} + */ + 'key_string': string; + /** + * The active flag of the activity type + * @type {boolean} + */ + 'active_flag': boolean; + /** + * Whether the activity type is a custom one or not + * @type {boolean} + */ + 'is_custom_flag': boolean; + /** + * The creation time of the activity type + * @type {string} + */ + 'add_time': string; + /** + * The update time of the activity type + * @type {string} + */ + 'update_time': string; +} + + export const ActivityTypeIconKeyConst = { + task: 'task', + email: 'email', + meeting: 'meeting', + deadline: 'deadline', + call: 'call', + lunch: 'lunch', + calendar: 'calendar', + downarrow: 'downarrow', + document: 'document', + smartphone: 'smartphone', + camera: 'camera', + scissors: 'scissors', + cogs: 'cogs', + bubble: 'bubble', + uparrow: 'uparrow', + checkbox: 'checkbox', + signpost: 'signpost', + shuffle: 'shuffle', + addressbook: 'addressbook', + linegraph: 'linegraph', + picture: 'picture', + car: 'car', + world: 'world', + search: 'search', + clip: 'clip', + sound: 'sound', + brush: 'brush', + key: 'key', + padlock: 'padlock', + pricetag: 'pricetag', + suitcase: 'suitcase', + finish: 'finish', + plane: 'plane', + loop: 'loop', + wifi: 'wifi', + truck: 'truck', + cart: 'cart', + bulb: 'bulb', + bell: 'bell', + presentation: 'presentation' + } as const; + + export type ActivityTypeIconKeyConst = typeof ActivityTypeIconKeyConst[keyof typeof ActivityTypeIconKeyConst]; + + diff --git a/src/versions/v1/models/activity.ts b/src/versions/v1/models/activity.ts new file mode 100644 index 00000000..291194d9 --- /dev/null +++ b/src/versions/v1/models/activity.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityAllOf } from './activity-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityAllOf1 } from './activity-all-of1'; + +/** + * @type Activity + * @export + */ +export type Activity = ActivityAllOf & ActivityAllOf1; + + diff --git a/src/versions/v1/models/add-activity-request-all-of.ts b/src/versions/v1/models/add-activity-request-all-of.ts new file mode 100644 index 00000000..a6a9a739 --- /dev/null +++ b/src/versions/v1/models/add-activity-request-all-of.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddActivityRequestAllOf +*/ +export interface AddActivityRequestAllOf { + /** + * The note of the activity (HTML format) + * @type {string} + */ + 'note'?: string; + /** + * The subject of the activity. When value for subject is not set, it will be given a default value `Call`. + * @type {string} + */ + 'subject'?: string; + /** + * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. When value for type is not set, it will be given a default value `Call`. + * @type {string} + */ + 'type'?: string; + /** + * The ID of the user whom the activity is assigned to. If omitted, the activity is assigned to the authorized user. + * @type {number} + */ + 'user_id'?: number; + /** + * List of multiple persons (participants) this activity is associated with. If omitted, single participant from `person_id` field is used. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` + * @type {Array} + */ + 'participants'?: Array; + /** + * Set the activity as \'Busy\' or \'Free\'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to \'Busy\' if it has a time set, and \'Free\' if it is an all-day event without specified time. + * @type {boolean} + */ + 'busy_flag'?: boolean; + /** + * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` + * @type {Array} + */ + 'attendees'?: Array; + /** + * + * @type {number} + */ + 'done'?: AddActivityRequestAllOfDoneConst; +} + + export const AddActivityRequestAllOfDoneConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type AddActivityRequestAllOfDoneConst = typeof AddActivityRequestAllOfDoneConst[keyof typeof AddActivityRequestAllOfDoneConst]; + + diff --git a/src/versions/v1/models/add-activity-request.ts b/src/versions/v1/models/add-activity-request.ts new file mode 100644 index 00000000..4cfd3672 --- /dev/null +++ b/src/versions/v1/models/add-activity-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityAllOf } from './activity-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { AddActivityRequestAllOf } from './add-activity-request-all-of'; + +/** + * @type AddActivityRequest + * @export + */ +export type AddActivityRequest = ActivityAllOf & AddActivityRequestAllOf; + + diff --git a/src/versions/v1/models/add-activity-response-additional-data.ts b/src/versions/v1/models/add-activity-response-additional-data.ts new file mode 100644 index 00000000..677fe238 --- /dev/null +++ b/src/versions/v1/models/add-activity-response-additional-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddActivityResponseAdditionalData +*/ +export interface AddActivityResponseAdditionalData { + /** + * This field will be deprecated + * @type {number} + */ + 'updates_story_id'?: number; +} + diff --git a/src/versions/v1/models/add-activity-response-related-objects-person.ts b/src/versions/v1/models/add-activity-response-related-objects-person.ts new file mode 100644 index 00000000..d6167e9b --- /dev/null +++ b/src/versions/v1/models/add-activity-response-related-objects-person.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PersonDataWithActiveFlag } from './person-data-with-active-flag'; + +/** +* +* @export +* @interface AddActivityResponseRelatedObjectsPerson +*/ +export interface AddActivityResponseRelatedObjectsPerson { + /** + * + * @type {PersonDataWithActiveFlag} + */ + 'PERSON_ID'?: PersonDataWithActiveFlag; +} + diff --git a/src/versions/v1/models/add-activity-response-related-objects.ts b/src/versions/v1/models/add-activity-response-related-objects.ts new file mode 100644 index 00000000..26e230b3 --- /dev/null +++ b/src/versions/v1/models/add-activity-response-related-objects.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedDealData } from './related-deal-data'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; + +/** +* +* @export +* @interface AddActivityResponseRelatedObjects +*/ +export interface AddActivityResponseRelatedObjects { + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; + /** + * + * @type {RelatedDealData} + */ + 'deal'?: RelatedDealData; + /** + * + * @type {AddActivityResponseRelatedObjectsPerson} + */ + 'person'?: AddActivityResponseRelatedObjectsPerson; + /** + * + * @type {RelatedOrganizationDataWithActiveFlag} + */ + 'organization'?: RelatedOrganizationDataWithActiveFlag; +} + diff --git a/src/versions/v1/models/add-activity-response.ts b/src/versions/v1/models/add-activity-response.ts new file mode 100644 index 00000000..3eda3a4e --- /dev/null +++ b/src/versions/v1/models/add-activity-response.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Activity } from './activity'; +// May contain unused imports in some cases +// @ts-ignore +import { AddActivityResponseAdditionalData } from './add-activity-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { AddActivityResponseRelatedObjects } from './add-activity-response-related-objects'; + +/** +* +* @export +* @interface AddActivityResponse +*/ +export interface AddActivityResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Activity} + */ + 'data'?: Activity; + /** + * + * @type {AddActivityResponseAdditionalData} + */ + 'additional_data'?: AddActivityResponseAdditionalData; + /** + * + * @type {AddActivityResponseRelatedObjects} + */ + 'related_objects'?: AddActivityResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/add-activity-type-request.ts b/src/versions/v1/models/add-activity-type-request.ts new file mode 100644 index 00000000..6c0c6894 --- /dev/null +++ b/src/versions/v1/models/add-activity-type-request.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddActivityTypeRequest +*/ +export interface AddActivityTypeRequest { + /** + * The name of the activity type + * @type {string} + */ + 'name': string; + /** + * Icon graphic to use for representing this activity type + * @type {string} + */ + 'icon_key': AddActivityTypeRequestIconKeyConst; + /** + * A designated color for the activity type in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black) + * @type {string} + */ + 'color'?: string; +} + + export const AddActivityTypeRequestIconKeyConst = { + task: 'task', + email: 'email', + meeting: 'meeting', + deadline: 'deadline', + call: 'call', + lunch: 'lunch', + calendar: 'calendar', + downarrow: 'downarrow', + document: 'document', + smartphone: 'smartphone', + camera: 'camera', + scissors: 'scissors', + cogs: 'cogs', + bubble: 'bubble', + uparrow: 'uparrow', + checkbox: 'checkbox', + signpost: 'signpost', + shuffle: 'shuffle', + addressbook: 'addressbook', + linegraph: 'linegraph', + picture: 'picture', + car: 'car', + world: 'world', + search: 'search', + clip: 'clip', + sound: 'sound', + brush: 'brush', + key: 'key', + padlock: 'padlock', + pricetag: 'pricetag', + suitcase: 'suitcase', + finish: 'finish', + plane: 'plane', + loop: 'loop', + wifi: 'wifi', + truck: 'truck', + cart: 'cart', + bulb: 'bulb', + bell: 'bell', + presentation: 'presentation' + } as const; + + export type AddActivityTypeRequestIconKeyConst = typeof AddActivityTypeRequestIconKeyConst[keyof typeof AddActivityTypeRequestIconKeyConst]; + + diff --git a/src/versions/v1/models/add-call-log-request.ts b/src/versions/v1/models/add-call-log-request.ts new file mode 100644 index 00000000..29465c0b --- /dev/null +++ b/src/versions/v1/models/add-call-log-request.ts @@ -0,0 +1,106 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddCallLogRequest +*/ +export interface AddCallLogRequest { + /** + * Describes the outcome of the call + * @type {string} + */ + 'outcome': AddCallLogRequestOutcomeConst; + /** + * The number called + * @type {string} + */ + 'to_phone_number': string; + /** + * The date and time of the start of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'start_time': string; + /** + * The date and time of the end of the call in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'end_time': string; + /** + * The ID of the owner of the call log. Please note that a user without account settings access cannot create call logs for other users. + * @type {number} + */ + 'user_id'?: number; + /** + * If specified, this activity will be converted into a call log, with the information provided. When this field is used, you don\'t need to specify `deal_id`, `person_id` or `org_id`, as they will be ignored in favor of the values already available in the activity. The `activity_id` must refer to a `call` type activity. + * @type {number} + */ + 'activity_id'?: number; + /** + * The name of the activity this call is attached to + * @type {string} + */ + 'subject'?: string; + /** + * The duration of the call in seconds + * @type {string} + */ + 'duration'?: string; + /** + * The number that made the call + * @type {string} + */ + 'from_phone_number'?: string; + /** + * The ID of the person this call is associated with + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization this call is associated with + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the deal this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. + * @type {number} + */ + 'deal_id'?: number; + /** + * The ID of the lead in the UUID format this call is associated with. A call log can be associated with either a deal or a lead, but not both at once. + * @type {string} + */ + 'lead_id'?: string; + /** + * The note for the call log in HTML format + * @type {string} + */ + 'note'?: string; +} + + export const AddCallLogRequestOutcomeConst = { + connected: 'connected', + no_answer: 'no_answer', + left_message: 'left_message', + left_voicemail: 'left_voicemail', + wrong_number: 'wrong_number', + busy: 'busy' + } as const; + + export type AddCallLogRequestOutcomeConst = typeof AddCallLogRequestOutcomeConst[keyof typeof AddCallLogRequestOutcomeConst]; + + diff --git a/src/versions/v1/models/add-channel-bad-request-response-additional-data.ts b/src/versions/v1/models/add-channel-bad-request-response-additional-data.ts new file mode 100644 index 00000000..065895eb --- /dev/null +++ b/src/versions/v1/models/add-channel-bad-request-response-additional-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddChannelBadRequestResponseAdditionalData +*/ +export interface AddChannelBadRequestResponseAdditionalData { + /** + * An error code sent by the API + * @type {string} + */ + 'code'?: string; +} + diff --git a/src/versions/v1/models/add-channel-bad-request-response.ts b/src/versions/v1/models/add-channel-bad-request-response.ts new file mode 100644 index 00000000..09fe281f --- /dev/null +++ b/src/versions/v1/models/add-channel-bad-request-response.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddChannelBadRequestResponseAdditionalData } from './add-channel-bad-request-response-additional-data'; + +/** +* +* @export +* @interface AddChannelBadRequestResponse +*/ +export interface AddChannelBadRequestResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The error description + * @type {string} + */ + 'error'?: string; + /** + * + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {AddChannelBadRequestResponseAdditionalData} + */ + 'additional_data'?: AddChannelBadRequestResponseAdditionalData; +} + diff --git a/src/versions/v1/models/add-channel-forbidden-error-response-additional-data.ts b/src/versions/v1/models/add-channel-forbidden-error-response-additional-data.ts new file mode 100644 index 00000000..853b7c6a --- /dev/null +++ b/src/versions/v1/models/add-channel-forbidden-error-response-additional-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddChannelForbiddenErrorResponseAdditionalData +*/ +export interface AddChannelForbiddenErrorResponseAdditionalData { + /** + * An error code sent by the API + * @type {string} + */ + 'code'?: string; +} + diff --git a/src/versions/v1/models/add-channel-forbidden-error-response.ts b/src/versions/v1/models/add-channel-forbidden-error-response.ts new file mode 100644 index 00000000..06ad6f04 --- /dev/null +++ b/src/versions/v1/models/add-channel-forbidden-error-response.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddChannelForbiddenErrorResponseAdditionalData } from './add-channel-forbidden-error-response-additional-data'; + +/** +* +* @export +* @interface AddChannelForbiddenErrorResponse +*/ +export interface AddChannelForbiddenErrorResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The error description + * @type {string} + */ + 'error'?: string; + /** + * + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {AddChannelForbiddenErrorResponseAdditionalData} + */ + 'additional_data'?: AddChannelForbiddenErrorResponseAdditionalData; +} + diff --git a/src/versions/v1/models/add-channel-request.ts b/src/versions/v1/models/add-channel-request.ts new file mode 100644 index 00000000..f9691d79 --- /dev/null +++ b/src/versions/v1/models/add-channel-request.ts @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddChannelRequest +*/ +export interface AddChannelRequest { + /** + * The name of the channel + * @type {string} + */ + 'name': string; + /** + * The channel ID + * @type {string} + */ + 'provider_channel_id': string; + /** + * The URL for an icon that represents your channel + * @type {string} + */ + 'avatar_url'?: string; + /** + * If true, enables templates logic on UI. Requires getTemplates endpoint implemented. Find out more [here](https://pipedrive.readme.io/docs/implementing-messaging-app-extension). + * @type {boolean} + */ + 'template_support'?: boolean; + /** + * It controls the icons (like the icon next to the conversation) + * @type {string} + */ + 'provider_type'?: AddChannelRequestProviderTypeConst; +} + + export const AddChannelRequestProviderTypeConst = { + facebook: 'facebook', + whatsapp: 'whatsapp', + other: 'other' + } as const; + + export type AddChannelRequestProviderTypeConst = typeof AddChannelRequestProviderTypeConst[keyof typeof AddChannelRequestProviderTypeConst]; + + diff --git a/src/versions/v1/models/add-channel-response-data.ts b/src/versions/v1/models/add-channel-response-data.ts new file mode 100644 index 00000000..7393432d --- /dev/null +++ b/src/versions/v1/models/add-channel-response-data.ts @@ -0,0 +1,83 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddChannelResponseData +*/ +export interface AddChannelResponseData { + /** + * The unique channel ID used internally in omnichannel-api and the frontend of the extension + * @type {string} + */ + 'id'?: string; + /** + * The name of the channel + * @type {string} + */ + 'name'?: string; + /** + * The URL for an icon that represents your channel + * @type {string} + */ + 'avatar_url'?: string; + /** + * The channel ID you specified while creating the channel + * @type {string} + */ + 'provider_channel_id'?: string; + /** + * The client_id of your app in Pipedrive marketplace + * @type {string} + */ + 'marketplace_client_id'?: string; + /** + * The ID of the user\'s company in Pipedrive + * @type {number} + */ + 'pd_company_id'?: number; + /** + * The ID of the user in Pipedrive + * @type {number} + */ + 'pd_user_id'?: number; + /** + * The date and time when your channel was created in the API + * @type {string} + */ + 'created_at'?: string; + /** + * Value of the provider_type sent to this endpoint + * @type {string} + */ + 'provider_type'?: AddChannelResponseDataProviderTypeConst; + /** + * Value of the template_support sent to this endpoint + * @type {boolean} + */ + 'template_support'?: boolean; +} + + export const AddChannelResponseDataProviderTypeConst = { + facebook: 'facebook', + whatsapp: 'whatsapp', + other: 'other' + } as const; + + export type AddChannelResponseDataProviderTypeConst = typeof AddChannelResponseDataProviderTypeConst[keyof typeof AddChannelResponseDataProviderTypeConst]; + + diff --git a/src/versions/v1/models/add-channel-response.ts b/src/versions/v1/models/add-channel-response.ts new file mode 100644 index 00000000..6fabdece --- /dev/null +++ b/src/versions/v1/models/add-channel-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddChannelResponseData } from './add-channel-response-data'; + +/** +* +* @export +* @interface AddChannelResponse +*/ +export interface AddChannelResponse { + /** + * + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {AddChannelResponseData} + */ + 'data': AddChannelResponseData; +} + diff --git a/src/versions/v1/models/add-deal-follower-request.ts b/src/versions/v1/models/add-deal-follower-request.ts new file mode 100644 index 00000000..be6892d2 --- /dev/null +++ b/src/versions/v1/models/add-deal-follower-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddDealFollowerRequest +*/ +export interface AddDealFollowerRequest { + /** + * The ID of the user + * @type {number} + */ + 'user_id': number; +} + diff --git a/src/versions/v1/models/add-deal-follower-response-data.ts b/src/versions/v1/models/add-deal-follower-response-data.ts new file mode 100644 index 00000000..3728ac5e --- /dev/null +++ b/src/versions/v1/models/add-deal-follower-response-data.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddDealFollowerResponseData +*/ +export interface AddDealFollowerResponseData { + /** + * The user ID who added the follower + * @type {number} + */ + 'user_id'?: number; + /** + * The follower ID + * @type {number} + */ + 'id'?: number; + /** + * The ID of the deal which the follower was added to + * @type {number} + */ + 'deal_id'?: number; + /** + * The date and time when the deal follower was added + * @type {string} + */ + 'add_time'?: string; +} + diff --git a/src/versions/v1/models/add-deal-follower-response.ts b/src/versions/v1/models/add-deal-follower-response.ts new file mode 100644 index 00000000..9192c901 --- /dev/null +++ b/src/versions/v1/models/add-deal-follower-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddDealFollowerResponseData } from './add-deal-follower-response-data'; + +/** +* +* @export +* @interface AddDealFollowerResponse +*/ +export interface AddDealFollowerResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {AddDealFollowerResponseData} + */ + 'data'?: AddDealFollowerResponseData; +} + diff --git a/src/versions/v1/models/add-deal-participant-request.ts b/src/versions/v1/models/add-deal-participant-request.ts new file mode 100644 index 00000000..e5baeb62 --- /dev/null +++ b/src/versions/v1/models/add-deal-participant-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddDealParticipantRequest +*/ +export interface AddDealParticipantRequest { + /** + * The ID of the person + * @type {number} + */ + 'person_id': number; +} + diff --git a/src/versions/v1/models/add-deal-product-request-all-of.ts b/src/versions/v1/models/add-deal-product-request-all-of.ts new file mode 100644 index 00000000..cf0c9832 --- /dev/null +++ b/src/versions/v1/models/add-deal-product-request-all-of.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddDealProductRequestAllOf +*/ +export interface AddDealProductRequestAllOf { + /** + * Only available in Advanced and above plans How often a customer is billed for access to a service or product To set `billing_frequency` different than `one-time`, the deal must not have installments associated A deal can have up to 20 products attached with `billing_frequency` different than `one-time` + * @type {string} + */ + 'billing_frequency'?: AddDealProductRequestAllOfBillingFrequencyConst; +} + + export const AddDealProductRequestAllOfBillingFrequencyConst = { + one_time: 'one-time', + annually: 'annually', + semi_annually: 'semi-annually', + quarterly: 'quarterly', + monthly: 'monthly', + weekly: 'weekly' + } as const; + + export type AddDealProductRequestAllOfBillingFrequencyConst = typeof AddDealProductRequestAllOfBillingFrequencyConst[keyof typeof AddDealProductRequestAllOfBillingFrequencyConst]; + + diff --git a/src/versions/v1/models/add-deal-product-request-all-of1.ts b/src/versions/v1/models/add-deal-product-request-all-of1.ts new file mode 100644 index 00000000..8ccc5327 --- /dev/null +++ b/src/versions/v1/models/add-deal-product-request-all-of1.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddDealProductRequestAllOf1 +*/ +export interface AddDealProductRequestAllOf1 { + /** + * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` When `billing_frequency` is set to `weekly`, this field cannot be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 208 + * @type {number} + */ + 'billing_frequency_cycles'?: number | null; +} + diff --git a/src/versions/v1/models/add-deal-product-request-all-of2.ts b/src/versions/v1/models/add-deal-product-request-all-of2.ts new file mode 100644 index 00000000..1a52d478 --- /dev/null +++ b/src/versions/v1/models/add-deal-product-request-all-of2.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddDealProductRequestAllOf2 +*/ +export interface AddDealProductRequestAllOf2 { + /** + * Only available in Advanced and above plans The billing start date. Must be between 10 years in the past and 10 years in the future + * @type {string} + */ + 'billing_start_date'?: string | null; +} + diff --git a/src/versions/v1/models/add-deal-product-request.ts b/src/versions/v1/models/add-deal-product-request.ts new file mode 100644 index 00000000..6da03a41 --- /dev/null +++ b/src/versions/v1/models/add-deal-product-request.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddDealProductRequestAllOf } from './add-deal-product-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { AddDealProductRequestAllOf1 } from './add-deal-product-request-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { AddDealProductRequestAllOf2 } from './add-deal-product-request-all-of2'; +// May contain unused imports in some cases +// @ts-ignore +import { DealProductRequestBody } from './deal-product-request-body'; + +/** + * @type AddDealProductRequest + * @export + */ +export type AddDealProductRequest = AddDealProductRequestAllOf & AddDealProductRequestAllOf1 & AddDealProductRequestAllOf2 & DealProductRequestBody; + + diff --git a/src/versions/v1/models/add-deal-request.ts b/src/versions/v1/models/add-deal-request.ts new file mode 100644 index 00000000..c5b27293 --- /dev/null +++ b/src/versions/v1/models/add-deal-request.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasicDeal } from './basic-deal'; +// May contain unused imports in some cases +// @ts-ignore +import { NewDealParameters } from './new-deal-parameters'; +// May contain unused imports in some cases +// @ts-ignore +import { RequredTitleParameter } from './requred-title-parameter'; + +/** + * @type AddDealRequest + * @export + */ +export type AddDealRequest = BasicDeal & NewDealParameters & RequredTitleParameter; + + diff --git a/src/versions/v1/models/add-file-response.ts b/src/versions/v1/models/add-file-response.ts new file mode 100644 index 00000000..141bc7bf --- /dev/null +++ b/src/versions/v1/models/add-file-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFilesResponseDataInner } from './get-files-response-data-inner'; + +/** +* +* @export +* @interface AddFileResponse +*/ +export interface AddFileResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetFilesResponseDataInner} + */ + 'data'?: GetFilesResponseDataInner; +} + diff --git a/src/versions/v1/models/add-filter-request.ts b/src/versions/v1/models/add-filter-request.ts new file mode 100644 index 00000000..f492b9f9 --- /dev/null +++ b/src/versions/v1/models/add-filter-request.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddFilterRequest +*/ +export interface AddFilterRequest { + /** + * The name of the filter + * @type {string} + */ + 'name': string; + /** + * The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter and `date` values must be supplied in the `YYYY-MM-DD` format. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE \'$%\'\"`, `\"LIKE \'%$%\'\"`, `\"NOT LIKE \'$%\'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application. + * @type {object} + */ + 'conditions': object; + /** + * + * @type {string} + */ + 'type': AddFilterRequestTypeConst; +} + + export const AddFilterRequestTypeConst = { + deals: 'deals', + leads: 'leads', + org: 'org', + people: 'people', + products: 'products', + activity: 'activity', + projects: 'projects' + } as const; + + export type AddFilterRequestTypeConst = typeof AddFilterRequestTypeConst[keyof typeof AddFilterRequestTypeConst]; + + diff --git a/src/versions/v1/models/add-filters-response-all-of.ts b/src/versions/v1/models/add-filters-response-all-of.ts new file mode 100644 index 00000000..53aeac4f --- /dev/null +++ b/src/versions/v1/models/add-filters-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Filter } from './filter'; + +/** +* +* @export +* @interface AddFiltersResponseAllOf +*/ +export interface AddFiltersResponseAllOf { + /** + * + * @type {Filter} + */ + 'data': Filter; +} + diff --git a/src/versions/v1/models/add-filters-response.ts b/src/versions/v1/models/add-filters-response.ts new file mode 100644 index 00000000..449fb1f1 --- /dev/null +++ b/src/versions/v1/models/add-filters-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddFiltersResponseAllOf } from './add-filters-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { Filter } from './filter'; + +/** + * @type AddFiltersResponse + * @export + */ +export type AddFiltersResponse = AddFiltersResponseAllOf & BaseResponse; + + diff --git a/src/versions/v1/models/add-goal-request.ts b/src/versions/v1/models/add-goal-request.ts new file mode 100644 index 00000000..1b229f8e --- /dev/null +++ b/src/versions/v1/models/add-goal-request.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddGoalRequest +*/ +export interface AddGoalRequest { + /** + * Who this goal is assigned to. It requires the following JSON structure: `{ \"id\": \"1\", \"type\": \"person\" }`. `type` can be either `person`, `company` or `team`. ID of the assignee person, company or team. + * @type {object} + */ + 'assignee': object; + /** + * The type of the goal. It requires the following JSON structure: `{ \"name\": \"deals_started\", \"params\": { \"pipeline_id\": [1, 2], \"activity_type_id\": [9] } }`. Type can be one of: `deals_won`, `deals_progressed`, `activities_completed`, `activities_added`, `deals_started` or `revenue_forecast`. `params` can include `pipeline_id`, `stage_id` or `activity_type_id`. `stage_id` is related to only `deals_progressed` type of goals and `activity_type_id` to `activities_completed` or `activities_added` types of goals. The `pipeline_id` and `activity_type_id` need to be given as an array of integers. To track the goal in all pipelines, set `pipeline_id` as `null` and similarly, to track the goal for all activities, set `activity_type_id` as `null`.” + * @type {object} + */ + 'type': object; + /** + * The expected outcome of the goal. Expected outcome can be tracked either by `quantity` or by `sum`. It requires the following JSON structure: `{ \"target\": \"50\", \"tracking_metric\": \"quantity\" }` or `{ \"target\": \"50\", \"tracking_metric\": \"sum\", \"currency_id\": 1 }`. `currency_id` should only be added to `sum` type of goals. + * @type {object} + */ + 'expected_outcome': object; + /** + * The date when the goal starts and ends. It requires the following JSON structure: `{ \"start\": \"2019-01-01\", \"end\": \"2022-12-31\" }`. Date in format of YYYY-MM-DD. \"end\" can be set to `null` for an infinite, open-ended goal. + * @type {object} + */ + 'duration': object; + /** + * The interval of the goal + * @type {string} + */ + 'interval': AddGoalRequestIntervalConst; + /** + * The title of the goal + * @type {string} + */ + 'title'?: string; +} + + export const AddGoalRequestIntervalConst = { + weekly: 'weekly', + monthly: 'monthly', + quarterly: 'quarterly', + yearly: 'yearly' + } as const; + + export type AddGoalRequestIntervalConst = typeof AddGoalRequestIntervalConst[keyof typeof AddGoalRequestIntervalConst]; + + diff --git a/src/versions/v1/models/add-lead-label-request.ts b/src/versions/v1/models/add-lead-label-request.ts new file mode 100644 index 00000000..f470c5c8 --- /dev/null +++ b/src/versions/v1/models/add-lead-label-request.ts @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddLeadLabelRequest +*/ +export interface AddLeadLabelRequest { + /** + * The name of the lead label + * @type {string} + */ + 'name': string; + /** + * The color of the label. Only a subset of colors can be used. + * @type {string} + */ + 'color': AddLeadLabelRequestColorConst; +} + + export const AddLeadLabelRequestColorConst = { + green: 'green', + blue: 'blue', + red: 'red', + yellow: 'yellow', + purple: 'purple', + gray: 'gray' + } as const; + + export type AddLeadLabelRequestColorConst = typeof AddLeadLabelRequestColorConst[keyof typeof AddLeadLabelRequestColorConst]; + + diff --git a/src/versions/v1/models/add-lead-request.ts b/src/versions/v1/models/add-lead-request.ts new file mode 100644 index 00000000..45b5c685 --- /dev/null +++ b/src/versions/v1/models/add-lead-request.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadValue } from './lead-value'; + +/** +* +* @export +* @interface AddLeadRequest +*/ +export interface AddLeadRequest { + /** + * The name of the lead + * @type {string} + */ + 'title': string; + /** + * The ID of the user which will be the owner of the created lead. If not provided, the user making the request will be used. + * @type {number} + */ + 'owner_id'?: number; + /** + * The IDs of the lead labels which will be associated with the lead + * @type {Array} + */ + 'label_ids'?: Array; + /** + * The ID of a person which this lead will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `organization_id` is specified. + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of an organization which this lead will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified. + * @type {number} + */ + 'organization_id'?: number; + /** + * + * @type {LeadValue} + */ + 'value'?: LeadValue | null; + /** + * The date of when the deal which will be created from the lead is expected to be closed. In ISO 8601 format: YYYY-MM-DD. + * @type {string} + */ + 'expected_close_date'?: string; + /** + * + * @type {string} + */ + 'visible_to'?: AddLeadRequestVisibleToConst; + /** + * A flag indicating whether the lead was seen by someone in the Pipedrive UI + * @type {boolean} + */ + 'was_seen'?: boolean; + /** + * The optional ID to further distinguish the origin of the lead - e.g. Which API integration created this lead. If omitted, `origin_id` will be set to null. + * @type {string} + */ + 'origin_id'?: string | null; + /** + * The ID of Marketing channel this lead was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with GET /v1/dealFields. If omitted, channel will be set to null. + * @type {number} + */ + 'channel'?: number | null; + /** + * The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null. + * @type {string} + */ + 'channel_id'?: string | null; +} + + export const AddLeadRequestVisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type AddLeadRequestVisibleToConst = typeof AddLeadRequestVisibleToConst[keyof typeof AddLeadRequestVisibleToConst]; + + diff --git a/src/versions/v1/models/add-new-follower-response-data.ts b/src/versions/v1/models/add-new-follower-response-data.ts new file mode 100644 index 00000000..de0415fa --- /dev/null +++ b/src/versions/v1/models/add-new-follower-response-data.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddNewFollowerResponseData +*/ +export interface AddNewFollowerResponseData { + /** + * The ID of the user that was added as follower + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the follower + * @type {number} + */ + 'id'?: number; + /** + * The ID of the product + * @type {number} + */ + 'product_id'?: number; + /** + * The follower creation time. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; +} + diff --git a/src/versions/v1/models/add-new-follower-response.ts b/src/versions/v1/models/add-new-follower-response.ts new file mode 100644 index 00000000..4f92e83e --- /dev/null +++ b/src/versions/v1/models/add-new-follower-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddNewFollowerResponseData } from './add-new-follower-response-data'; + +/** +* +* @export +* @interface AddNewFollowerResponse +*/ +export interface AddNewFollowerResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {AddNewFollowerResponseData} + */ + 'data': AddNewFollowerResponseData; +} + diff --git a/src/versions/v1/models/add-note-request-all-of.ts b/src/versions/v1/models/add-note-request-all-of.ts new file mode 100644 index 00000000..6dc34a7d --- /dev/null +++ b/src/versions/v1/models/add-note-request-all-of.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddNoteRequestAllOf +*/ +export interface AddNoteRequestAllOf { + /** + * The content of the note in HTML format. Subject to sanitization on the back-end. + * @type {string} + */ + 'content': string; + /** + * The ID of the lead the note will be attached to. This property is required unless one of (`deal_id/person_id/org_id`) is specified. + * @type {string} + */ + 'lead_id'?: string; + /** + * The ID of the deal the note will be attached to. This property is required unless one of (`lead_id/person_id/org_id`) is specified. + * @type {number} + */ + 'deal_id'?: number; + /** + * The ID of the person this note will be attached to. This property is required unless one of (`deal_id/lead_id/org_id`) is specified. + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization this note will be attached to. This property is required unless one of (`deal_id/lead_id/person_id`) is specified. + * @type {number} + */ + 'org_id'?: number; +} + diff --git a/src/versions/v1/models/add-note-request-all-of1.ts b/src/versions/v1/models/add-note-request-all-of1.ts new file mode 100644 index 00000000..76eec9b5 --- /dev/null +++ b/src/versions/v1/models/add-note-request-all-of1.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddNoteRequestAllOf1 +*/ +export interface AddNoteRequestAllOf1 { + /** + * The ID of the user who will be marked as the author of the note. Only an admin can change the author. + * @type {number} + */ + 'user_id'?: number; + /** + * The optional creation date & time of the note in UTC. Can be set in the past or in the future. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; + /** + * + * @type {number} + */ + 'pinned_to_lead_flag'?: AddNoteRequestAllOf1PinnedToLeadFlagConst; + /** + * + * @type {number} + */ + 'pinned_to_deal_flag'?: AddNoteRequestAllOf1PinnedToDealFlagConst; + /** + * + * @type {number} + */ + 'pinned_to_organization_flag'?: AddNoteRequestAllOf1PinnedToOrganizationFlagConst; + /** + * + * @type {number} + */ + 'pinned_to_person_flag'?: AddNoteRequestAllOf1PinnedToPersonFlagConst; +} + + export const AddNoteRequestAllOf1PinnedToLeadFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type AddNoteRequestAllOf1PinnedToLeadFlagConst = typeof AddNoteRequestAllOf1PinnedToLeadFlagConst[keyof typeof AddNoteRequestAllOf1PinnedToLeadFlagConst]; + export const AddNoteRequestAllOf1PinnedToDealFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type AddNoteRequestAllOf1PinnedToDealFlagConst = typeof AddNoteRequestAllOf1PinnedToDealFlagConst[keyof typeof AddNoteRequestAllOf1PinnedToDealFlagConst]; + export const AddNoteRequestAllOf1PinnedToOrganizationFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type AddNoteRequestAllOf1PinnedToOrganizationFlagConst = typeof AddNoteRequestAllOf1PinnedToOrganizationFlagConst[keyof typeof AddNoteRequestAllOf1PinnedToOrganizationFlagConst]; + export const AddNoteRequestAllOf1PinnedToPersonFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type AddNoteRequestAllOf1PinnedToPersonFlagConst = typeof AddNoteRequestAllOf1PinnedToPersonFlagConst[keyof typeof AddNoteRequestAllOf1PinnedToPersonFlagConst]; + + diff --git a/src/versions/v1/models/add-note-request.ts b/src/versions/v1/models/add-note-request.ts new file mode 100644 index 00000000..6fb5948d --- /dev/null +++ b/src/versions/v1/models/add-note-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddNoteRequestAllOf } from './add-note-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { AddNoteRequestAllOf1 } from './add-note-request-all-of1'; + +/** + * @type AddNoteRequest + * @export + */ +export type AddNoteRequest = AddNoteRequestAllOf & AddNoteRequestAllOf1; + + diff --git a/src/versions/v1/models/add-or-update-role-setting-request.ts b/src/versions/v1/models/add-or-update-role-setting-request.ts new file mode 100644 index 00000000..7ee121be --- /dev/null +++ b/src/versions/v1/models/add-or-update-role-setting-request.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddOrUpdateRoleSettingRequest +*/ +export interface AddOrUpdateRoleSettingRequest { + /** + * + * @type {string} + */ + 'setting_key': AddOrUpdateRoleSettingRequestSettingKeyConst; + /** + * Possible values for the `default_visibility` setting depending on the subscription plan:
Essential / Advanced plan
ValueDescription
`1`Owner & Followers
`3`Entire company

Professional / Enterprise plan
ValueDescription
`1`Owner only
`3`Owner's visibility group
`5`Owner's visibility group and sub-groups
`7`Entire company

Read more about visibility groups here. + * @type {number} + */ + 'value': AddOrUpdateRoleSettingRequestValueConst; +} + + export const AddOrUpdateRoleSettingRequestSettingKeyConst = { + deal_default_visibility: 'deal_default_visibility', + lead_default_visibility: 'lead_default_visibility', + org_default_visibility: 'org_default_visibility', + person_default_visibility: 'person_default_visibility', + product_default_visibility: 'product_default_visibility' + } as const; + + export type AddOrUpdateRoleSettingRequestSettingKeyConst = typeof AddOrUpdateRoleSettingRequestSettingKeyConst[keyof typeof AddOrUpdateRoleSettingRequestSettingKeyConst]; + export const AddOrUpdateRoleSettingRequestValueConst = { + NUMBER_1: 1, + NUMBER_3: 3, + NUMBER_5: 5, + NUMBER_7: 7 + } as const; + + export type AddOrUpdateRoleSettingRequestValueConst = typeof AddOrUpdateRoleSettingRequestValueConst[keyof typeof AddOrUpdateRoleSettingRequestValueConst]; + + diff --git a/src/versions/v1/models/add-organization-follower-request.ts b/src/versions/v1/models/add-organization-follower-request.ts new file mode 100644 index 00000000..95ba0a96 --- /dev/null +++ b/src/versions/v1/models/add-organization-follower-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddOrganizationFollowerRequest +*/ +export interface AddOrganizationFollowerRequest { + /** + * The ID of the user + * @type {number} + */ + 'user_id': number; +} + diff --git a/src/versions/v1/models/add-organization-follower-response.ts b/src/versions/v1/models/add-organization-follower-response.ts new file mode 100644 index 00000000..55816cc8 --- /dev/null +++ b/src/versions/v1/models/add-organization-follower-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedFollowersResponseDataInner } from './get-associated-followers-response-data-inner'; + +/** +* +* @export +* @interface AddOrganizationFollowerResponse +*/ +export interface AddOrganizationFollowerResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {GetAssociatedFollowersResponseDataInner} + */ + 'data': GetAssociatedFollowersResponseDataInner; +} + diff --git a/src/versions/v1/models/add-organization-relationship-request.ts b/src/versions/v1/models/add-organization-relationship-request.ts new file mode 100644 index 00000000..301ee98b --- /dev/null +++ b/src/versions/v1/models/add-organization-relationship-request.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddOrganizationRelationshipRequest +*/ +export interface AddOrganizationRelationshipRequest { + /** + * The type of organization relationship + * @type {string} + */ + 'type': AddOrganizationRelationshipRequestTypeConst; + /** + * The owner of the relationship. If type is `parent`, then the owner is the parent and the linked organization is the daughter. + * @type {number} + */ + 'rel_owner_org_id': number; + /** + * The linked organization in the relationship. If type is `parent`, then the linked organization is the daughter. + * @type {number} + */ + 'rel_linked_org_id': number; + /** + * The ID of the base organization for the returned calculated values + * @type {number} + */ + 'org_id'?: number; +} + + export const AddOrganizationRelationshipRequestTypeConst = { + parent: 'parent', + related: 'related' + } as const; + + export type AddOrganizationRelationshipRequestTypeConst = typeof AddOrganizationRelationshipRequestTypeConst[keyof typeof AddOrganizationRelationshipRequestTypeConst]; + + diff --git a/src/versions/v1/models/add-organization-relationship-response-all-of.ts b/src/versions/v1/models/add-organization-relationship-response-all-of.ts new file mode 100644 index 00000000..6f085ecf --- /dev/null +++ b/src/versions/v1/models/add-organization-relationship-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationRelationshipsResponseAllOfRelatedObjects } from './get-organization-relationships-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationRelationshipWithCalculatedFieldsAllOf } from './organization-relationship-with-calculated-fields-all-of'; + +/** +* +* @export +* @interface AddOrganizationRelationshipResponseAllOf +*/ +export interface AddOrganizationRelationshipResponseAllOf { + /** + * + * @type {OrganizationRelationshipWithCalculatedFieldsAllOf} + */ + 'data': OrganizationRelationshipWithCalculatedFieldsAllOf; + /** + * + * @type {GetOrganizationRelationshipsResponseAllOfRelatedObjects} + */ + 'related_objects': GetOrganizationRelationshipsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/add-organization-relationship-response.ts b/src/versions/v1/models/add-organization-relationship-response.ts new file mode 100644 index 00000000..99017c45 --- /dev/null +++ b/src/versions/v1/models/add-organization-relationship-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddOrganizationRelationshipResponseAllOf } from './add-organization-relationship-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationRelationshipsResponseAllOfRelatedObjects } from './get-organization-relationships-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationRelationshipWithCalculatedFieldsAllOf } from './organization-relationship-with-calculated-fields-all-of'; + +/** + * @type AddOrganizationRelationshipResponse + * @export + */ +export type AddOrganizationRelationshipResponse = AddOrganizationRelationshipResponseAllOf & BaseResponse; + + diff --git a/src/versions/v1/models/add-organization-request-all-of.ts b/src/versions/v1/models/add-organization-request-all-of.ts new file mode 100644 index 00000000..d98e745a --- /dev/null +++ b/src/versions/v1/models/add-organization-request-all-of.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddOrganizationRequestAllOf +*/ +export interface AddOrganizationRequestAllOf { + /** + * The name of the organization + * @type {string} + */ + 'name': string; + /** + * The optional creation date & time of the organization in UTC. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; +} + diff --git a/src/versions/v1/models/add-organization-request.ts b/src/versions/v1/models/add-organization-request.ts new file mode 100644 index 00000000..df15c684 --- /dev/null +++ b/src/versions/v1/models/add-organization-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddOrganizationRequestAllOf } from './add-organization-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicOrganization } from './basic-organization'; + +/** + * @type AddOrganizationRequest + * @export + */ +export type AddOrganizationRequest = AddOrganizationRequestAllOf & BasicOrganization; + + diff --git a/src/versions/v1/models/add-organization-response-all-of.ts b/src/versions/v1/models/add-organization-response-all-of.ts new file mode 100644 index 00000000..c42bb2c0 --- /dev/null +++ b/src/versions/v1/models/add-organization-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItemWithEditNameFlag } from './base-organization-item-with-edit-name-flag'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; + +/** +* +* @export +* @interface AddOrganizationResponseAllOf +*/ +export interface AddOrganizationResponseAllOf { + /** + * + * @type {BaseOrganizationItemWithEditNameFlag} + */ + 'data': BaseOrganizationItemWithEditNameFlag; + /** + * + * @type {GetOrganizationsResponseAllOfRelatedObjects} + */ + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/add-organization-response.ts b/src/versions/v1/models/add-organization-response.ts new file mode 100644 index 00000000..43c79591 --- /dev/null +++ b/src/versions/v1/models/add-organization-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddOrganizationResponseAllOf } from './add-organization-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItemWithEditNameFlag } from './base-organization-item-with-edit-name-flag'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; + +/** + * @type AddOrganizationResponse + * @export + */ +export type AddOrganizationResponse = AddOrganizationResponseAllOf & BaseResponse; + + diff --git a/src/versions/v1/models/add-participants-response-data.ts b/src/versions/v1/models/add-participants-response-data.ts new file mode 100644 index 00000000..73aeac91 --- /dev/null +++ b/src/versions/v1/models/add-participants-response-data.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Owner } from './owner'; +// May contain unused imports in some cases +// @ts-ignore +import { Person } from './person'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfEmailInner } from './person-all-of-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPhoneInner } from './person-all-of-phone-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPictureId } from './person-all-of-picture-id'; +// May contain unused imports in some cases +// @ts-ignore +import { RelationshipOrganizationInfoItemWithActiveFlag } from './relationship-organization-info-item-with-active-flag'; + +/** + * @type AddParticipantsResponseData + * The object of participant + * @export + */ +export type AddParticipantsResponseData = Person; + + diff --git a/src/versions/v1/models/add-participants-response-related-objects.ts b/src/versions/v1/models/add-participants-response-related-objects.ts new file mode 100644 index 00000000..c10bde32 --- /dev/null +++ b/src/versions/v1/models/add-participants-response-related-objects.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; + +/** +* +* @export +* @interface AddParticipantsResponseRelatedObjects +*/ +export interface AddParticipantsResponseRelatedObjects { + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; + /** + * + * @type {AddActivityResponseRelatedObjectsPerson} + */ + 'person'?: AddActivityResponseRelatedObjectsPerson; +} + diff --git a/src/versions/v1/models/add-participants-response.ts b/src/versions/v1/models/add-participants-response.ts new file mode 100644 index 00000000..777ee174 --- /dev/null +++ b/src/versions/v1/models/add-participants-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddParticipantsResponseData } from './add-participants-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { AddParticipantsResponseRelatedObjects } from './add-participants-response-related-objects'; + +/** +* +* @export +* @interface AddParticipantsResponse +*/ +export interface AddParticipantsResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {AddParticipantsResponseData} + */ + 'data'?: AddParticipantsResponseData; + /** + * + * @type {AddParticipantsResponseRelatedObjects} + */ + 'related_objects'?: AddParticipantsResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/add-person-follower-request.ts b/src/versions/v1/models/add-person-follower-request.ts new file mode 100644 index 00000000..e64acaf6 --- /dev/null +++ b/src/versions/v1/models/add-person-follower-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddPersonFollowerRequest +*/ +export interface AddPersonFollowerRequest { + /** + * The ID of the user + * @type {number} + */ + 'user_id': number; +} + diff --git a/src/versions/v1/models/add-person-follower-response-all-of-data.ts b/src/versions/v1/models/add-person-follower-response-all-of-data.ts new file mode 100644 index 00000000..aeafe281 --- /dev/null +++ b/src/versions/v1/models/add-person-follower-response-all-of-data.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddPersonFollowerResponseAllOfData +*/ +export interface AddPersonFollowerResponseAllOfData { + /** + * The ID of the user who was added as a follower to a person + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the follower + * @type {number} + */ + 'id'?: number; + /** + * The ID of the person to whom the follower was added + * @type {number} + */ + 'person_id'?: number; + /** + * The date and time when the follower was added to a person. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; +} + diff --git a/src/versions/v1/models/add-person-follower-response-all-of.ts b/src/versions/v1/models/add-person-follower-response-all-of.ts new file mode 100644 index 00000000..e0e0fe97 --- /dev/null +++ b/src/versions/v1/models/add-person-follower-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddPersonFollowerResponseAllOfData } from './add-person-follower-response-all-of-data'; + +/** +* +* @export +* @interface AddPersonFollowerResponseAllOf +*/ +export interface AddPersonFollowerResponseAllOf { + /** + * + * @type {AddPersonFollowerResponseAllOfData} + */ + 'data': AddPersonFollowerResponseAllOfData; +} + diff --git a/src/versions/v1/models/add-person-follower-response.ts b/src/versions/v1/models/add-person-follower-response.ts new file mode 100644 index 00000000..884caae8 --- /dev/null +++ b/src/versions/v1/models/add-person-follower-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddPersonFollowerResponseAllOf } from './add-person-follower-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { AddPersonFollowerResponseAllOfData } from './add-person-follower-response-all-of-data'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; + +/** + * @type AddPersonFollowerResponse + * @export + */ +export type AddPersonFollowerResponse = AddPersonFollowerResponseAllOf & BaseResponse; + + diff --git a/src/versions/v1/models/add-person-picture-response-all-of.ts b/src/versions/v1/models/add-person-picture-response-all-of.ts new file mode 100644 index 00000000..f140e8df --- /dev/null +++ b/src/versions/v1/models/add-person-picture-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { RelatedPictureData } from './related-picture-data'; + +/** +* +* @export +* @interface AddPersonPictureResponseAllOf +*/ +export interface AddPersonPictureResponseAllOf { + /** + * + * @type {RelatedPictureData} + */ + 'data': RelatedPictureData; +} + diff --git a/src/versions/v1/models/add-person-picture-response.ts b/src/versions/v1/models/add-person-picture-response.ts new file mode 100644 index 00000000..f7b0bc01 --- /dev/null +++ b/src/versions/v1/models/add-person-picture-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddPersonPictureResponseAllOf } from './add-person-picture-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedPictureData } from './related-picture-data'; + +/** + * @type AddPersonPictureResponse + * @export + */ +export type AddPersonPictureResponse = AddPersonPictureResponseAllOf & BaseResponse; + + diff --git a/src/versions/v1/models/add-person-request-all-of.ts b/src/versions/v1/models/add-person-request-all-of.ts new file mode 100644 index 00000000..36f16f2c --- /dev/null +++ b/src/versions/v1/models/add-person-request-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddPersonRequestAllOf +*/ +export interface AddPersonRequestAllOf { + /** + * The name of the person + * @type {string} + */ + 'name': string; +} + diff --git a/src/versions/v1/models/add-person-request.ts b/src/versions/v1/models/add-person-request.ts new file mode 100644 index 00000000..1bb1bfba --- /dev/null +++ b/src/versions/v1/models/add-person-request.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddPersonRequestAllOf } from './add-person-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicPersonRequest } from './basic-person-request'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicPersonRequestEmailInner } from './basic-person-request-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPhoneInner } from './person-all-of-phone-inner'; + +/** + * @type AddPersonRequest + * @export + */ +export type AddPersonRequest = AddPersonRequestAllOf & BasicPersonRequest; + + diff --git a/src/versions/v1/models/add-person-response-all-of.ts b/src/versions/v1/models/add-person-response-all-of.ts new file mode 100644 index 00000000..b0b1132e --- /dev/null +++ b/src/versions/v1/models/add-person-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductsResponseAllOfRelatedObjects } from './get-products-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { Person } from './person'; + +/** +* +* @export +* @interface AddPersonResponseAllOf +*/ +export interface AddPersonResponseAllOf { + /** + * + * @type {Person} + */ + 'data': Person; + /** + * + * @type {GetProductsResponseAllOfRelatedObjects} + */ + 'related_objects': GetProductsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/add-person-response.ts b/src/versions/v1/models/add-person-response.ts new file mode 100644 index 00000000..0b6e9265 --- /dev/null +++ b/src/versions/v1/models/add-person-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddPersonResponseAllOf } from './add-person-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductsResponseAllOfRelatedObjects } from './get-products-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { Person } from './person'; + +/** + * @type AddPersonResponse + * @export + */ +export type AddPersonResponse = AddPersonResponseAllOf & BaseResponse; + + diff --git a/src/versions/v1/models/add-pipeline-response-all-of.ts b/src/versions/v1/models/add-pipeline-response-all-of.ts new file mode 100644 index 00000000..cbbb2f61 --- /dev/null +++ b/src/versions/v1/models/add-pipeline-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasePipeline1 } from './base-pipeline1'; + +/** +* +* @export +* @interface AddPipelineResponseAllOf +*/ +export interface AddPipelineResponseAllOf { + /** + * + * @type {BasePipeline1} + */ + 'data'?: BasePipeline1; +} + diff --git a/src/versions/v1/models/add-pipeline-response.ts b/src/versions/v1/models/add-pipeline-response.ts new file mode 100644 index 00000000..44dd3cf8 --- /dev/null +++ b/src/versions/v1/models/add-pipeline-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddPipelineResponseAllOf } from './add-pipeline-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BasePipeline1 } from './base-pipeline1'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; + +/** + * @type AddPipelineResponse + * @export + */ +export type AddPipelineResponse = AddPipelineResponseAllOf & BaseResponse; + + diff --git a/src/versions/v1/models/add-product-follower-request.ts b/src/versions/v1/models/add-product-follower-request.ts new file mode 100644 index 00000000..62a56623 --- /dev/null +++ b/src/versions/v1/models/add-product-follower-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddProductFollowerRequest +*/ +export interface AddProductFollowerRequest { + /** + * The ID of the user + * @type {number} + */ + 'user_id': number; +} + diff --git a/src/versions/v1/models/add-product-request-all-of.ts b/src/versions/v1/models/add-product-request-all-of.ts new file mode 100644 index 00000000..b843b6d9 --- /dev/null +++ b/src/versions/v1/models/add-product-request-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddProductRequestAllOf +*/ +export interface AddProductRequestAllOf { + /** + * The name of the product + * @type {string} + */ + 'name': string; +} + diff --git a/src/versions/v1/models/add-product-request-all-of1.ts b/src/versions/v1/models/add-product-request-all-of1.ts new file mode 100644 index 00000000..5fa026ed --- /dev/null +++ b/src/versions/v1/models/add-product-request-all-of1.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddProductRequestAllOf1 +*/ +export interface AddProductRequestAllOf1 { + /** + * Only available in Advanced and above plans How often a customer is billed for access to a service or product + * @type {string} + */ + 'billing_frequency'?: AddProductRequestAllOf1BillingFrequencyConst; +} + + export const AddProductRequestAllOf1BillingFrequencyConst = { + one_time: 'one-time', + annually: 'annually', + semi_annually: 'semi-annually', + quarterly: 'quarterly', + monthly: 'monthly', + weekly: 'weekly' + } as const; + + export type AddProductRequestAllOf1BillingFrequencyConst = typeof AddProductRequestAllOf1BillingFrequencyConst[keyof typeof AddProductRequestAllOf1BillingFrequencyConst]; + + diff --git a/src/versions/v1/models/add-product-request-all-of2.ts b/src/versions/v1/models/add-product-request-all-of2.ts new file mode 100644 index 00000000..3aa33281 --- /dev/null +++ b/src/versions/v1/models/add-product-request-all-of2.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddProductRequestAllOf2 +*/ +export interface AddProductRequestAllOf2 { + /** + * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 208 + * @type {number} + */ + 'billing_frequency_cycles'?: number | null; +} + diff --git a/src/versions/v1/models/add-product-request.ts b/src/versions/v1/models/add-product-request.ts new file mode 100644 index 00000000..6d73752d --- /dev/null +++ b/src/versions/v1/models/add-product-request.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddProductRequestAllOf } from './add-product-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { AddProductRequestAllOf1 } from './add-product-request-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { AddProductRequestAllOf2 } from './add-product-request-all-of2'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductRequest } from './product-request'; + +/** + * @type AddProductRequest + * @export + */ +export type AddProductRequest = AddProductRequestAllOf & AddProductRequestAllOf1 & AddProductRequestAllOf2 & ProductRequest; + + diff --git a/src/versions/v1/models/add-project-request-all-of.ts b/src/versions/v1/models/add-project-request-all-of.ts new file mode 100644 index 00000000..30e6ea59 --- /dev/null +++ b/src/versions/v1/models/add-project-request-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddProjectRequestAllOf +*/ +export interface AddProjectRequestAllOf { + /** + * The ID of the template the project will be based on + * @type {number} + */ + 'template_id'?: number; +} + diff --git a/src/versions/v1/models/add-project-request.ts b/src/versions/v1/models/add-project-request.ts new file mode 100644 index 00000000..2d640d9b --- /dev/null +++ b/src/versions/v1/models/add-project-request.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddProjectRequestAllOf } from './add-project-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { ProjectAllOf1 } from './project-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { RequiredPostProjectParameters } from './required-post-project-parameters'; + +/** + * @type AddProjectRequest + * @export + */ +export type AddProjectRequest = AddProjectRequestAllOf & ProjectAllOf1 & RequiredPostProjectParameters; + + diff --git a/src/versions/v1/models/add-project-response.ts b/src/versions/v1/models/add-project-response.ts new file mode 100644 index 00000000..7460f9d6 --- /dev/null +++ b/src/versions/v1/models/add-project-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ProjectResponseObject } from './project-response-object'; + +/** +* +* @export +* @interface AddProjectResponse +*/ +export interface AddProjectResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {ProjectResponseObject} + */ + 'data'?: ProjectResponseObject; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/add-recurring-subscription-request.ts b/src/versions/v1/models/add-recurring-subscription-request.ts new file mode 100644 index 00000000..7188d7b0 --- /dev/null +++ b/src/versions/v1/models/add-recurring-subscription-request.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddRecurringSubscriptionRequest +*/ +export interface AddRecurringSubscriptionRequest { + /** + * The ID of the deal this recurring subscription is associated with + * @type {number} + */ + 'deal_id': number; + /** + * The currency of the recurring subscription. Accepts a 3-character currency code. + * @type {string} + */ + 'currency': string; + /** + * The interval between payments + * @type {string} + */ + 'cadence_type': AddRecurringSubscriptionRequestCadenceTypeConst; + /** + * The amount of each payment + * @type {number} + */ + 'cycle_amount': number; + /** + * The start date of the recurring subscription. Format: YYYY-MM-DD + * @type {string} + */ + 'start_date': string; + /** + * The description of the recurring subscription + * @type {string} + */ + 'description'?: string; + /** + * Shows how many payments the subscription has. Note that one field must be set: `cycles_count` or `infinite`. If `cycles_count` is set, then `cycle_amount` and `start_date` are also required. + * @type {number} + */ + 'cycles_count'?: number; + /** + * This indicates that the recurring subscription will last until it\'s manually canceled or deleted. Note that only one field must be set: `cycles_count` or `infinite`. + * @type {boolean} + */ + 'infinite'?: boolean; + /** + * Array of additional payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). + * @type {Array} + */ + 'payments'?: Array; + /** + * Indicates that the deal value must be set to recurring subscription\'s MRR value + * @type {boolean} + */ + 'update_deal_value'?: boolean; +} + + export const AddRecurringSubscriptionRequestCadenceTypeConst = { + weekly: 'weekly', + monthly: 'monthly', + quarterly: 'quarterly', + yearly: 'yearly' + } as const; + + export type AddRecurringSubscriptionRequestCadenceTypeConst = typeof AddRecurringSubscriptionRequestCadenceTypeConst[keyof typeof AddRecurringSubscriptionRequestCadenceTypeConst]; + + diff --git a/src/versions/v1/models/add-remote-file-and-link-it-to-item-response.ts b/src/versions/v1/models/add-remote-file-and-link-it-to-item-response.ts new file mode 100644 index 00000000..381add48 --- /dev/null +++ b/src/versions/v1/models/add-remote-file-and-link-it-to-item-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFilesResponseDataInner } from './get-files-response-data-inner'; + +/** +* +* @export +* @interface AddRemoteFileAndLinkItToItemResponse +*/ +export interface AddRemoteFileAndLinkItToItemResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetFilesResponseDataInner} + */ + 'data'?: GetFilesResponseDataInner; +} + diff --git a/src/versions/v1/models/add-role-assignment-request.ts b/src/versions/v1/models/add-role-assignment-request.ts new file mode 100644 index 00000000..56083c69 --- /dev/null +++ b/src/versions/v1/models/add-role-assignment-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddRoleAssignmentRequest +*/ +export interface AddRoleAssignmentRequest { + /** + * The ID of the user + * @type {number} + */ + 'user_id': number; +} + diff --git a/src/versions/v1/models/add-role-assignment-response-data-data.ts b/src/versions/v1/models/add-role-assignment-response-data-data.ts new file mode 100644 index 00000000..5e933b1d --- /dev/null +++ b/src/versions/v1/models/add-role-assignment-response-data-data.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The response data +* @export +* @interface AddRoleAssignmentResponseDataData +*/ +export interface AddRoleAssignmentResponseDataData { + /** + * The ID of the user that was added to the role + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the role the user was added to + * @type {number} + */ + 'role_id'?: number; +} + diff --git a/src/versions/v1/models/add-role-assignment-response-data.ts b/src/versions/v1/models/add-role-assignment-response-data.ts new file mode 100644 index 00000000..d4b7ece9 --- /dev/null +++ b/src/versions/v1/models/add-role-assignment-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddRoleAssignmentResponseDataData } from './add-role-assignment-response-data-data'; + +/** +* +* @export +* @interface AddRoleAssignmentResponseData +*/ +export interface AddRoleAssignmentResponseData { + /** + * + * @type {AddRoleAssignmentResponseDataData} + */ + 'data'?: AddRoleAssignmentResponseDataData; +} + diff --git a/src/versions/v1/models/add-role-assignment-response.ts b/src/versions/v1/models/add-role-assignment-response.ts new file mode 100644 index 00000000..163b0b29 --- /dev/null +++ b/src/versions/v1/models/add-role-assignment-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddRoleAssignmentResponseData } from './add-role-assignment-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { AddRoleAssignmentResponseDataData } from './add-role-assignment-response-data-data'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; + +/** + * @type AddRoleAssignmentResponse + * @export + */ +export type AddRoleAssignmentResponse = AddRoleAssignmentResponseData & BaseResponse; + + diff --git a/src/versions/v1/models/add-role-request.ts b/src/versions/v1/models/add-role-request.ts new file mode 100644 index 00000000..7a06d50e --- /dev/null +++ b/src/versions/v1/models/add-role-request.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The details of the role +* @export +* @interface AddRoleRequest +*/ +export interface AddRoleRequest { + /** + * The name of the role + * @type {string} + */ + 'name': string; + /** + * The ID of the parent role + * @type {number} + */ + 'parent_role_id'?: number; +} + diff --git a/src/versions/v1/models/add-roles-response-all-of.ts b/src/versions/v1/models/add-roles-response-all-of.ts new file mode 100644 index 00000000..60c51f1e --- /dev/null +++ b/src/versions/v1/models/add-roles-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddRolesResponseData } from './add-roles-response-data'; + +/** +* +* @export +* @interface AddRolesResponseAllOf +*/ +export interface AddRolesResponseAllOf { + /** + * + * @type {AddRolesResponseData} + */ + 'data'?: AddRolesResponseData; +} + diff --git a/src/versions/v1/models/add-roles-response-data.ts b/src/versions/v1/models/add-roles-response-data.ts new file mode 100644 index 00000000..7ca3d47a --- /dev/null +++ b/src/versions/v1/models/add-roles-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The response data +* @export +* @interface AddRolesResponseData +*/ +export interface AddRolesResponseData { + /** + * + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/add-roles-response.ts b/src/versions/v1/models/add-roles-response.ts new file mode 100644 index 00000000..0aa0b0cd --- /dev/null +++ b/src/versions/v1/models/add-roles-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddRolesResponseAllOf } from './add-roles-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { AddRolesResponseData } from './add-roles-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; + +/** + * @type AddRolesResponse + * @export + */ +export type AddRolesResponse = AddRolesResponseAllOf & BaseResponse; + + diff --git a/src/versions/v1/models/add-stage-request.ts b/src/versions/v1/models/add-stage-request.ts new file mode 100644 index 00000000..3dfe6bfb --- /dev/null +++ b/src/versions/v1/models/add-stage-request.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddStageRequest +*/ +export interface AddStageRequest { + /** + * The name of the stage + * @type {string} + */ + 'name': string; + /** + * The ID of the pipeline to add stage to + * @type {number} + */ + 'pipeline_id': number; + /** + * The success probability percentage of the deal. Used/shown when deal weighted values are used. + * @type {number} + */ + 'deal_probability'?: number; + /** + * Whether deals in this stage can become rotten + * @type {boolean} + */ + 'rotten_flag'?: boolean; + /** + * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. + * @type {number} + */ + 'rotten_days'?: number; +} + diff --git a/src/versions/v1/models/add-subscription-installment-request.ts b/src/versions/v1/models/add-subscription-installment-request.ts new file mode 100644 index 00000000..b2062e6d --- /dev/null +++ b/src/versions/v1/models/add-subscription-installment-request.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddSubscriptionInstallmentRequest +*/ +export interface AddSubscriptionInstallmentRequest { + /** + * The ID of the deal this installment subscription is associated with + * @type {number} + */ + 'deal_id': number; + /** + * The currency of the installment subscription. Accepts a 3-character currency code. + * @type {string} + */ + 'currency': string; + /** + * Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). + * @type {Array} + */ + 'payments': Array; + /** + * Indicates that the deal value must be set to the installment subscription\'s total value + * @type {boolean} + */ + 'update_deal_value'?: boolean; +} + diff --git a/src/versions/v1/models/add-task-request.ts b/src/versions/v1/models/add-task-request.ts new file mode 100644 index 00000000..a696f6b2 --- /dev/null +++ b/src/versions/v1/models/add-task-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { RequiedPostProjectParameters } from './requied-post-project-parameters'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateProjectRequest1AllOf1 } from './update-project-request1-all-of1'; + +/** + * @type AddTaskRequest + * @export + */ +export type AddTaskRequest = RequiedPostProjectParameters & UpdateProjectRequest1AllOf1; + + diff --git a/src/versions/v1/models/add-task-response.ts b/src/versions/v1/models/add-task-response.ts new file mode 100644 index 00000000..a844f0e2 --- /dev/null +++ b/src/versions/v1/models/add-task-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { TaskResponseObject } from './task-response-object'; + +/** +* +* @export +* @interface AddTaskResponse +*/ +export interface AddTaskResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {TaskResponseObject} + */ + 'data'?: TaskResponseObject; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/add-team-request.ts b/src/versions/v1/models/add-team-request.ts new file mode 100644 index 00000000..d6ea75a1 --- /dev/null +++ b/src/versions/v1/models/add-team-request.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddTeamRequest +*/ +export interface AddTeamRequest { + /** + * The team name + * @type {string} + */ + 'name'?: string; + /** + * The team description + * @type {string} + */ + 'description'?: string; + /** + * The team manager ID + * @type {number} + */ + 'manager_id'?: number; + /** + * The IDs of the users that belong to the team + * @type {Array} + */ + 'users'?: Array; +} + diff --git a/src/versions/v1/models/add-team-request1.ts b/src/versions/v1/models/add-team-request1.ts new file mode 100644 index 00000000..1dbdacec --- /dev/null +++ b/src/versions/v1/models/add-team-request1.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddTeamRequest1 +*/ +export interface AddTeamRequest1 { + /** + * The team name + * @type {string} + */ + 'name': string; + /** + * The team manager ID + * @type {number} + */ + 'manager_id': number; + /** + * The team description + * @type {string} + */ + 'description'?: string; + /** + * The IDs of the users that belong to the team + * @type {Array} + */ + 'users'?: Array; +} + diff --git a/src/versions/v1/models/add-team-user-request.ts b/src/versions/v1/models/add-team-user-request.ts new file mode 100644 index 00000000..cbe34b8a --- /dev/null +++ b/src/versions/v1/models/add-team-user-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddTeamUserRequest +*/ +export interface AddTeamUserRequest { + /** + * The list of user IDs + * @type {Array} + */ + 'users': Array; +} + diff --git a/src/versions/v1/models/add-user-provider-link-request.ts b/src/versions/v1/models/add-user-provider-link-request.ts new file mode 100644 index 00000000..53c45af6 --- /dev/null +++ b/src/versions/v1/models/add-user-provider-link-request.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddUserProviderLinkRequest +*/ +export interface AddUserProviderLinkRequest { + /** + * Unique identifier linking a user to the installed integration. Generated by the integration. + * @type {string} + */ + 'user_provider_id': string; + /** + * Pipedrive user ID + * @type {number} + */ + 'user_id': number; + /** + * Pipedrive company ID + * @type {number} + */ + 'company_id': number; + /** + * Pipedrive Marketplace client ID of the installed integration + * @type {string} + */ + 'marketplace_client_id': string; +} + diff --git a/src/versions/v1/models/add-user-request.ts b/src/versions/v1/models/add-user-request.ts new file mode 100644 index 00000000..0af53cb4 --- /dev/null +++ b/src/versions/v1/models/add-user-request.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UserAccess1 } from './user-access1'; + +/** +* +* @export +* @interface AddUserRequest +*/ +export interface AddUserRequest { + /** + * The email of the user + * @type {string} + */ + 'email': string; + /** + * The access given to the user. Each item in the array represents access to a specific app. Optionally may include either admin flag or permission set ID to specify which access to give within the app. If both are omitted, the default access for the corresponding app will be used. It requires structure as follows: `[{ app: \'sales\', permission_set_id: \'62cc4d7f-4038-4352-abf3-a8c1c822b631\' }, { app: \'global\', admin: true }, { app: \'account_settings\' }]` + * @type {Array} + */ + 'access'?: Array; + /** + * Whether the user is active or not. `false` = Not activated, `true` = Activated + * @type {boolean} + */ + 'active_flag'?: boolean; +} + diff --git a/src/versions/v1/models/add-webhook-request.ts b/src/versions/v1/models/add-webhook-request.ts new file mode 100644 index 00000000..05629e05 --- /dev/null +++ b/src/versions/v1/models/add-webhook-request.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddWebhookRequest +*/ +export interface AddWebhookRequest { + /** + * A full, valid, publicly accessible URL which determines where to send the notifications. Please note that you cannot use Pipedrive API endpoints as the `subscription_url` and the chosen URL must not redirect to another link. + * @type {string} + */ + 'subscription_url': string; + /** + * The type of action to receive notifications about. Wildcard will match all supported actions. + * @type {string} + */ + 'event_action': AddWebhookRequestEventActionConst; + /** + * The type of object to receive notifications about. Wildcard will match all supported objects. + * @type {string} + */ + 'event_object': AddWebhookRequestEventObjectConst; + /** + * The ID of the user that this webhook will be authorized with. You have the option to use a different user\'s `user_id`. If it is not set, the current user\'s `user_id` will be used. As each webhook event is checked against a user\'s permissions, the webhook will only be sent if the user has access to the specified object(s). If you want to receive notifications for all events, please use a top-level admin user’s `user_id`. + * @type {number} + */ + 'user_id'?: number; + /** + * The HTTP basic auth username of the subscription URL endpoint (if required) + * @type {string} + */ + 'http_auth_user'?: string; + /** + * The HTTP basic auth password of the subscription URL endpoint (if required) + * @type {string} + */ + 'http_auth_password'?: string; + /** + * The webhook\'s version. NB! Webhooks v2 will become the default from March 17th, 2025. See this Changelog post for more details. + * @type {string} + */ + 'version'?: AddWebhookRequestVersionConst; +} + + export const AddWebhookRequestEventActionConst = { + added: 'added', + updated: 'updated', + merged: 'merged', + deleted: 'deleted', + Star: '*' + } as const; + + export type AddWebhookRequestEventActionConst = typeof AddWebhookRequestEventActionConst[keyof typeof AddWebhookRequestEventActionConst]; + export const AddWebhookRequestEventObjectConst = { + activity: 'activity', + activityType: 'activityType', + deal: 'deal', + note: 'note', + organization: 'organization', + person: 'person', + pipeline: 'pipeline', + product: 'product', + stage: 'stage', + user: 'user', + Star: '*' + } as const; + + export type AddWebhookRequestEventObjectConst = typeof AddWebhookRequestEventObjectConst[keyof typeof AddWebhookRequestEventObjectConst]; + export const AddWebhookRequestVersionConst = { + _1_0: '1.0', + _2_0: '2.0' + } as const; + + export type AddWebhookRequestVersionConst = typeof AddWebhookRequestVersionConst[keyof typeof AddWebhookRequestVersionConst]; + + diff --git a/src/versions/v1/models/additional-base-organization-item-info.ts b/src/versions/v1/models/additional-base-organization-item-info.ts new file mode 100644 index 00000000..3f9b739f --- /dev/null +++ b/src/versions/v1/models/additional-base-organization-item-info.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealsCountAndActivityInfo } from './deals-count-and-activity-info'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationCountAndAddressInfo } from './organization-count-and-address-info'; + +/** + * @type AdditionalBaseOrganizationItemInfo + * @export + */ +export type AdditionalBaseOrganizationItemInfo = DealsCountAndActivityInfo & OrganizationCountAndAddressInfo; + + diff --git a/src/versions/v1/models/additional-merge-person-info.ts b/src/versions/v1/models/additional-merge-person-info.ts new file mode 100644 index 00000000..bab5bd87 --- /dev/null +++ b/src/versions/v1/models/additional-merge-person-info.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MergePersonDealRelatedInfo } from './merge-person-deal-related-info'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonNameCountAndEmailInfoWithIds } from './person-name-count-and-email-info-with-ids'; + +/** + * @type AdditionalMergePersonInfo + * @export + */ +export type AdditionalMergePersonInfo = MergePersonDealRelatedInfo & PersonNameCountAndEmailInfoWithIds; + + diff --git a/src/versions/v1/models/additional-person-info.ts b/src/versions/v1/models/additional-person-info.ts new file mode 100644 index 00000000..e915bb1a --- /dev/null +++ b/src/versions/v1/models/additional-person-info.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Owner } from './owner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonCountEmailDealAndActivityInfo } from './person-count-email-deal-and-activity-info'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonNameInfoWithOrgAndOwnerId } from './person-name-info-with-org-and-owner-id'; +// May contain unused imports in some cases +// @ts-ignore +import { RelationshipOrganizationInfoItemWithActiveFlag } from './relationship-organization-info-item-with-active-flag'; + +/** + * @type AdditionalPersonInfo + * @export + */ +export type AdditionalPersonInfo = PersonCountEmailDealAndActivityInfo & PersonNameInfoWithOrgAndOwnerId; + + diff --git a/src/versions/v1/models/base-deal.ts b/src/versions/v1/models/base-deal.ts new file mode 100644 index 00000000..dd346a7b --- /dev/null +++ b/src/versions/v1/models/base-deal.ts @@ -0,0 +1,334 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseDeal +*/ +export interface BaseDeal { + /** + * The ID of the deal stage + * @type {number} + */ + 'stage_id'?: number; + /** + * The title of the deal + * @type {string} + */ + 'title'?: string; + /** + * The value of the deal + * @type {number} + */ + 'value'?: number; + /** + * The currency associated with the deal + * @type {string} + */ + 'currency'?: string; + /** + * The creation date and time of the deal + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the deal + * @type {string} + */ + 'update_time'?: string; + /** + * The last updated date and time of the deal stage + * @type {string} + */ + 'stage_change_time'?: string; + /** + * Whether the deal is active or not + * @type {boolean} + */ + 'active'?: boolean; + /** + * Whether the deal is deleted or not + * @type {boolean} + */ + 'deleted'?: boolean; + /** + * The status of the deal + * @type {string} + */ + 'status'?: string; + /** + * The success probability percentage of the deal + * @type {number} + */ + 'probability'?: number | null; + /** + * The date of the next activity associated with the deal + * @type {string} + */ + 'next_activity_date'?: string; + /** + * The time of the next activity associated with the deal + * @type {string} + */ + 'next_activity_time'?: string; + /** + * The ID of the next activity associated with the deal + * @type {number} + */ + 'next_activity_id'?: number | null; + /** + * The ID of the last activity associated with the deal + * @type {number} + */ + 'last_activity_id'?: number | null; + /** + * The date of the last activity associated with the deal + * @type {string} + */ + 'last_activity_date'?: string | null; + /** + * The reason for losing the deal + * @type {string} + */ + 'lost_reason'?: string | null; + /** + * The visibility of the deal + * @type {string} + */ + 'visible_to'?: string; + /** + * The date and time of closing the deal + * @type {string} + */ + 'close_time'?: string | null; + /** + * The ID of the pipeline associated with the deal + * @type {number} + */ + 'pipeline_id'?: number; + /** + * The date and time of changing the deal status as won + * @type {string} + */ + 'won_time'?: string; + /** + * The date and time of the first time changing the deal status as won + * @type {string} + */ + 'first_won_time'?: string; + /** + * The date and time of changing the deal status as lost + * @type {string} + */ + 'lost_time'?: string; + /** + * The number of products associated with the deal + * @type {number} + */ + 'products_count'?: number; + /** + * The number of files associated with the deal + * @type {number} + */ + 'files_count'?: number; + /** + * The number of notes associated with the deal + * @type {number} + */ + 'notes_count'?: number; + /** + * The number of followers associated with the deal + * @type {number} + */ + 'followers_count'?: number; + /** + * The number of emails associated with the deal + * @type {number} + */ + 'email_messages_count'?: number; + /** + * The number of activities associated with the deal + * @type {number} + */ + 'activities_count'?: number; + /** + * The number of completed activities associated with the deal + * @type {number} + */ + 'done_activities_count'?: number; + /** + * The number of incomplete activities associated with the deal + * @type {number} + */ + 'undone_activities_count'?: number; + /** + * The number of participants associated with the deal + * @type {number} + */ + 'participants_count'?: number; + /** + * The expected close date of the deal + * @type {string} + */ + 'expected_close_date'?: string; + /** + * The date and time of the last incoming email associated with the deal + * @type {string} + */ + 'last_incoming_mail_time'?: string; + /** + * The date and time of the last outgoing email associated with the deal + * @type {string} + */ + 'last_outgoing_mail_time'?: string; + /** + * The label or multiple labels assigned to the deal + * @type {string} + */ + 'label'?: string; + /** + * The order number of the deal stage associated with the deal + * @type {number} + */ + 'stage_order_nr'?: number; + /** + * The name of the person associated with the deal + * @type {string} + */ + 'person_name'?: string; + /** + * The name of the organization associated with the deal + * @type {string} + */ + 'org_name'?: string; + /** + * The subject of the next activity associated with the deal + * @type {string} + */ + 'next_activity_subject'?: string; + /** + * The type of the next activity associated with the deal + * @type {string} + */ + 'next_activity_type'?: string; + /** + * The duration of the next activity associated with the deal + * @type {string} + */ + 'next_activity_duration'?: string; + /** + * The note of the next activity associated with the deal + * @type {string} + */ + 'next_activity_note'?: string; + /** + * The deal value formatted with selected currency. E.g. US$500 + * @type {string} + */ + 'formatted_value'?: string; + /** + * Probability times deal value. Probability can either be deal probability or if not set, then stage probability. + * @type {number} + */ + 'weighted_value'?: number; + /** + * The weighted_value formatted with selected currency. E.g. US$500 + * @type {string} + */ + 'formatted_weighted_value'?: string; + /** + * The currency associated with the deal + * @type {string} + */ + 'weighted_value_currency'?: string; + /** + * The date and time of changing the deal status as rotten + * @type {string} + */ + 'rotten_time'?: string | null; + /** + * The name of the deal owner + * @type {string} + */ + 'owner_name'?: string; + /** + * The BCC email of the deal + * @type {string} + */ + 'cc_email'?: string; + /** + * If the organization that is associated with the deal is hidden or not + * @type {boolean} + */ + 'org_hidden'?: boolean; + /** + * If the person that is associated with the deal is hidden or not + * @type {boolean} + */ + 'person_hidden'?: boolean; + /** + * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. + * @type {string} + */ + 'origin'?: string; + /** + * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. + * @type {string} + */ + 'origin_id'?: string | null; + /** + * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. + * @type {number} + */ + 'channel'?: number | null; + /** + * The optional ID to further distinguish the Marketing channel. + * @type {string} + */ + 'channel_id'?: string | null; + /** + * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal + * @type {number} + */ + 'arr'?: number | null; + /** + * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal + * @type {number} + */ + 'mrr'?: number | null; + /** + * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal + * @type {number} + */ + 'acv'?: number | null; + /** + * Only available in Advanced and above plans The Currency for Annual Recurring Revenue of the deal If the `arr` is null, this will also be null + * @type {string} + */ + 'arr_currency'?: string | null; + /** + * Only available in Advanced and above plans The Currency for Monthly Recurring Revenue of the deal If the `mrr` is null, this will also be null + * @type {string} + */ + 'mrr_currency'?: string | null; + /** + * Only available in Advanced and above plans The Currency for Annual Contract Value of the deal If the `acv` is null, this will also be null + * @type {string} + */ + 'acv_currency'?: string | null; +} + diff --git a/src/versions/v1/models/base-organization-item-all-of-picture-id.ts b/src/versions/v1/models/base-organization-item-all-of-picture-id.ts new file mode 100644 index 00000000..4ee0bf8d --- /dev/null +++ b/src/versions/v1/models/base-organization-item-all-of-picture-id.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PictureData } from './picture-data'; +// May contain unused imports in some cases +// @ts-ignore +import { PictureDataPictures } from './picture-data-pictures'; +// May contain unused imports in some cases +// @ts-ignore +import { PictureDataWithValue } from './picture-data-with-value'; + +/** + * @type BaseOrganizationItemAllOfPictureId + * @export + */ +export type BaseOrganizationItemAllOfPictureId = PictureData & PictureDataWithValue; + + diff --git a/src/versions/v1/models/base-organization-item-all-of.ts b/src/versions/v1/models/base-organization-item-all-of.ts new file mode 100644 index 00000000..fc915c03 --- /dev/null +++ b/src/versions/v1/models/base-organization-item-all-of.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItemAllOfPictureId } from './base-organization-item-all-of-picture-id'; +// May contain unused imports in some cases +// @ts-ignore +import { Owner } from './owner'; + +/** +* +* @export +* @interface BaseOrganizationItemAllOf +*/ +export interface BaseOrganizationItemAllOf { + /** + * The ID of the organization + * @type {number} + */ + 'id'?: number; + /** + * The ID of the company related to the organization + * @type {number} + */ + 'company_id'?: number; + /** + * + * @type {Owner} + */ + 'owner_id'?: Owner; + /** + * The name of the organization + * @type {string} + */ + 'name'?: string; + /** + * Whether the organization is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * + * @type {BaseOrganizationItemAllOfPictureId} + */ + 'picture_id'?: BaseOrganizationItemAllOfPictureId; + /** + * The country code of the organization + * @type {string} + */ + 'country_code'?: string | null; + /** + * The first character of the organization name + * @type {string} + */ + 'first_char'?: string; + /** + * The creation date and time of the organization + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the organization + * @type {string} + */ + 'update_time'?: string; + /** + * The visibility group ID of who can see the organization + * @type {string} + */ + 'visible_to'?: string; + /** + * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. + * @type {number} + */ + 'label'?: number; + /** + * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. + * @type {Array} + */ + 'label_ids'?: Array; + /** + * The name of the organization owner + * @type {string} + */ + 'owner_name'?: string; + /** + * The BCC email associated with the organization + * @type {string} + */ + 'cc_email'?: string; +} + diff --git a/src/versions/v1/models/base-organization-item-with-edit-name-flag-all-of.ts b/src/versions/v1/models/base-organization-item-with-edit-name-flag-all-of.ts new file mode 100644 index 00000000..286c7c1e --- /dev/null +++ b/src/versions/v1/models/base-organization-item-with-edit-name-flag-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseOrganizationItemWithEditNameFlagAllOf +*/ +export interface BaseOrganizationItemWithEditNameFlagAllOf { + /** + * If the company ID of the organization and company ID of the request is same or not + * @type {boolean} + */ + 'edit_name'?: boolean; +} + diff --git a/src/versions/v1/models/base-organization-item-with-edit-name-flag.ts b/src/versions/v1/models/base-organization-item-with-edit-name-flag.ts new file mode 100644 index 00000000..aead77bb --- /dev/null +++ b/src/versions/v1/models/base-organization-item-with-edit-name-flag.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItem } from './base-organization-item'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItemAllOfPictureId } from './base-organization-item-all-of-picture-id'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItemWithEditNameFlagAllOf } from './base-organization-item-with-edit-name-flag-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { Owner } from './owner'; + +/** + * @type BaseOrganizationItemWithEditNameFlag + * @export + */ +export type BaseOrganizationItemWithEditNameFlag = BaseOrganizationItem & BaseOrganizationItemWithEditNameFlagAllOf; + + diff --git a/src/versions/v1/models/base-organization-item.ts b/src/versions/v1/models/base-organization-item.ts new file mode 100644 index 00000000..4a16c40c --- /dev/null +++ b/src/versions/v1/models/base-organization-item.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AdditionalBaseOrganizationItemInfo } from './additional-base-organization-item-info'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItemAllOf } from './base-organization-item-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItemAllOfPictureId } from './base-organization-item-all-of-picture-id'; +// May contain unused imports in some cases +// @ts-ignore +import { Owner } from './owner'; + +/** + * @type BaseOrganizationItem + * @export + */ +export type BaseOrganizationItem = AdditionalBaseOrganizationItemInfo & BaseOrganizationItemAllOf; + + diff --git a/src/versions/v1/models/base-pipeline-with-selected-flag-all-of.ts b/src/versions/v1/models/base-pipeline-with-selected-flag-all-of.ts new file mode 100644 index 00000000..b74e7453 --- /dev/null +++ b/src/versions/v1/models/base-pipeline-with-selected-flag-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BasePipelineWithSelectedFlagAllOf +*/ +export interface BasePipelineWithSelectedFlagAllOf { + /** + * A boolean that shows if the pipeline is selected from a filter or not + * @type {boolean} + */ + 'selected'?: boolean; +} + diff --git a/src/versions/v1/models/base-pipeline-with-selected-flag.ts b/src/versions/v1/models/base-pipeline-with-selected-flag.ts new file mode 100644 index 00000000..32207af0 --- /dev/null +++ b/src/versions/v1/models/base-pipeline-with-selected-flag.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasePipeline } from './base-pipeline'; +// May contain unused imports in some cases +// @ts-ignore +import { BasePipelineWithSelectedFlagAllOf } from './base-pipeline-with-selected-flag-all-of'; + +/** + * @type BasePipelineWithSelectedFlag + * @export + */ +export type BasePipelineWithSelectedFlag = BasePipeline & BasePipelineWithSelectedFlagAllOf; + + diff --git a/src/versions/v1/models/base-pipeline.ts b/src/versions/v1/models/base-pipeline.ts new file mode 100644 index 00000000..69439c0e --- /dev/null +++ b/src/versions/v1/models/base-pipeline.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BasePipeline +*/ +export interface BasePipeline { + /** + * The ID of the pipeline + * @type {number} + */ + 'id'?: number; + /** + * The name of the pipeline + * @type {string} + */ + 'name'?: string; + /** + * The pipeline title displayed in the URL + * @type {string} + */ + 'url_title'?: string; + /** + * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. + * @type {number} + */ + 'order_nr'?: number; + /** + * Whether this pipeline will be made inactive (hidden) or active + * @type {boolean} + */ + 'active'?: boolean; + /** + * Whether deal probability is disabled or enabled for this pipeline + * @type {boolean} + */ + 'deal_probability'?: boolean; + /** + * The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time'?: string; + /** + * The pipeline update time. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v1/models/base-pipeline1.ts b/src/versions/v1/models/base-pipeline1.ts new file mode 100644 index 00000000..5bfa65ef --- /dev/null +++ b/src/versions/v1/models/base-pipeline1.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The pipeline object +* @export +* @interface BasePipeline1 +*/ +export interface BasePipeline1 { + /** + * The ID of the pipeline + * @type {number} + */ + 'id'?: number; + /** + * The name of the pipeline + * @type {string} + */ + 'name'?: string; + /** + * The pipeline title displayed in the URL + * @type {string} + */ + 'url_title'?: string; + /** + * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. + * @type {number} + */ + 'order_nr'?: number; + /** + * Whether this pipeline will be made inactive (hidden) or active + * @type {boolean} + */ + 'active'?: boolean; + /** + * Whether deal probability is disabled or enabled for this pipeline + * @type {boolean} + */ + 'deal_probability'?: boolean; + /** + * The pipeline creation time. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time'?: string; + /** + * The pipeline update time. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v1/models/base-product.ts b/src/versions/v1/models/base-product.ts new file mode 100644 index 00000000..15a5d9cb --- /dev/null +++ b/src/versions/v1/models/base-product.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseProduct +*/ +export interface BaseProduct { + /** + * The ID of the product + * @type {number} + */ + 'id'?: number; + /** + * The name of the product + * @type {string} + */ + 'name'?: string; + /** + * The product code + * @type {string} + */ + 'code'?: string; + /** + * The unit in which this product is sold + * @type {string} + */ + 'unit'?: string; + /** + * The tax percentage + * @type {number} + */ + 'tax'?: number; + /** + * Whether this product is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * Whether this product is selected in deals or not + * @type {boolean} + */ + 'selectable'?: boolean; + /** + * + * @type {string} + */ + 'visible_to'?: BaseProductVisibleToConst; + /** + * Information about the Pipedrive user who owns the product + * @type {object} + */ + 'owner_id'?: object; + /** + * Only available in Advanced and above plans How often a customer is billed for access to a service or product + * @type {string} + */ + 'billing_frequency'?: BaseProductBillingFrequencyConst; + /** + * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field is always `null` When `billing_frequency` is set to `weekly`, this field cannot be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 208 + * @type {number} + */ + 'billing_frequency_cycles'?: number | null; +} + + export const BaseProductVisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type BaseProductVisibleToConst = typeof BaseProductVisibleToConst[keyof typeof BaseProductVisibleToConst]; + export const BaseProductBillingFrequencyConst = { + one_time: 'one-time', + annually: 'annually', + semi_annually: 'semi-annually', + quarterly: 'quarterly', + monthly: 'monthly', + weekly: 'weekly' + } as const; + + export type BaseProductBillingFrequencyConst = typeof BaseProductBillingFrequencyConst[keyof typeof BaseProductBillingFrequencyConst]; + + diff --git a/src/versions/v1/models/base-response-all-of.ts b/src/versions/v1/models/base-response-all-of.ts new file mode 100644 index 00000000..373f1464 --- /dev/null +++ b/src/versions/v1/models/base-response-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseResponseAllOf +*/ +export interface BaseResponseAllOf { + /** + * The status of the response + * @type {string} + */ + 'status'?: string; +} + diff --git a/src/versions/v1/models/base-response.ts b/src/versions/v1/models/base-response.ts new file mode 100644 index 00000000..3cadf1eb --- /dev/null +++ b/src/versions/v1/models/base-response.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseResponse +*/ +export interface BaseResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; +} + diff --git a/src/versions/v1/models/base-response1.ts b/src/versions/v1/models/base-response1.ts new file mode 100644 index 00000000..aebe89e4 --- /dev/null +++ b/src/versions/v1/models/base-response1.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseResponse1 +*/ +export interface BaseResponse1 { + /** + * + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/base-role-request.ts b/src/versions/v1/models/base-role-request.ts new file mode 100644 index 00000000..9801f7af --- /dev/null +++ b/src/versions/v1/models/base-role-request.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The details of the role +* @export +* @interface BaseRoleRequest +*/ +export interface BaseRoleRequest { + /** + * The ID of the parent role + * @type {number} + */ + 'parent_role_id'?: number; + /** + * The name of the role + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/base-stage.ts b/src/versions/v1/models/base-stage.ts new file mode 100644 index 00000000..5989d55e --- /dev/null +++ b/src/versions/v1/models/base-stage.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseStage +*/ +export interface BaseStage { + /** + * The ID of the stage + * @type {number} + */ + 'id'?: number; + /** + * Defines the order of the stage + * @type {number} + */ + 'order_nr'?: number; + /** + * The name of the stage + * @type {string} + */ + 'name'?: string; + /** + * Whether the stage is active or deleted + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The success probability percentage of the deal. Used/shown when the deal weighted values are used. + * @type {number} + */ + 'deal_probability'?: number; + /** + * The ID of the pipeline to add the stage to + * @type {number} + */ + 'pipeline_id'?: number; + /** + * Whether deals in this stage can become rotten + * @type {boolean} + */ + 'rotten_flag'?: boolean; + /** + * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. + * @type {number} + */ + 'rotten_days'?: number; + /** + * The stage creation time. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time'?: string; + /** + * The stage update time. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v1/models/base-stage1.ts b/src/versions/v1/models/base-stage1.ts new file mode 100644 index 00000000..d735daf1 --- /dev/null +++ b/src/versions/v1/models/base-stage1.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* Updated stage object +* @export +* @interface BaseStage1 +*/ +export interface BaseStage1 { + /** + * The ID of the stage + * @type {number} + */ + 'id'?: number; + /** + * Defines the order of the stage + * @type {number} + */ + 'order_nr'?: number; + /** + * The name of the stage + * @type {string} + */ + 'name'?: string; + /** + * Whether the stage is active or deleted + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The success probability percentage of the deal. Used/shown when the deal weighted values are used. + * @type {number} + */ + 'deal_probability'?: number; + /** + * The ID of the pipeline to add the stage to + * @type {number} + */ + 'pipeline_id'?: number; + /** + * Whether deals in this stage can become rotten + * @type {boolean} + */ + 'rotten_flag'?: boolean; + /** + * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. + * @type {number} + */ + 'rotten_days'?: number; + /** + * The stage creation time. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time'?: string; + /** + * The stage update time. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v1/models/base-team-additional-properties.ts b/src/versions/v1/models/base-team-additional-properties.ts new file mode 100644 index 00000000..f53622a1 --- /dev/null +++ b/src/versions/v1/models/base-team-additional-properties.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseTeamAdditionalProperties +*/ +export interface BaseTeamAdditionalProperties { + /** + * The team creation time. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; + /** + * The ID of the user who created the team + * @type {number} + */ + 'created_by_user_id'?: number; +} + diff --git a/src/versions/v1/models/base-team.ts b/src/versions/v1/models/base-team.ts new file mode 100644 index 00000000..3f94dcd4 --- /dev/null +++ b/src/versions/v1/models/base-team.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { TeamId } from './team-id'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateTeamWithAdditionalProperties } from './update-team-with-additional-properties'; + +/** + * @type BaseTeam + * @export + */ +export type BaseTeam = TeamId & UpdateTeamWithAdditionalProperties; + + diff --git a/src/versions/v1/models/base-user.ts b/src/versions/v1/models/base-user.ts new file mode 100644 index 00000000..780df408 --- /dev/null +++ b/src/versions/v1/models/base-user.ts @@ -0,0 +1,127 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UserAccess } from './user-access'; + +/** +* +* @export +* @interface BaseUser +*/ +export interface BaseUser { + /** + * The user ID + * @type {number} + */ + 'id'?: number; + /** + * The user name + * @type {string} + */ + 'name'?: string; + /** + * The user default currency + * @type {string} + */ + 'default_currency'?: string; + /** + * The user locale + * @type {string} + */ + 'locale'?: string; + /** + * The user language ID + * @type {number} + */ + 'lang'?: number; + /** + * The user email + * @type {string} + */ + 'email'?: string; + /** + * The user phone + * @type {string} + */ + 'phone'?: string | null; + /** + * Boolean that indicates whether the user is activated + * @type {boolean} + */ + 'activated'?: boolean; + /** + * The last login date and time of the user. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'last_login'?: string; + /** + * The creation date and time of the user. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'created'?: string; + /** + * The last modification date and time of the user. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'modified'?: string | null; + /** + * Boolean that indicates whether the user has created a company + * @type {boolean} + */ + 'has_created_company'?: boolean; + /** + * + * @type {Array} + */ + 'access'?: Array; + /** + * Boolean that indicates whether the user is activated + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The user timezone name + * @type {string} + */ + 'timezone_name'?: string; + /** + * The user timezone offset + * @type {string} + */ + 'timezone_offset'?: string; + /** + * The ID of the user role + * @type {number} + */ + 'role_id'?: number; + /** + * The user icon URL + * @type {string} + */ + 'icon_url'?: string | null; + /** + * Boolean that indicates if the requested user is the same which is logged in (in this case, always true) + * @type {boolean} + */ + 'is_you'?: boolean; + /** + * Boolean that indicates whether the user is deleted from the company + * @type {boolean} + */ + 'is_deleted'?: boolean; +} + diff --git a/src/versions/v1/models/base-webhook.ts b/src/versions/v1/models/base-webhook.ts new file mode 100644 index 00000000..a6320ff3 --- /dev/null +++ b/src/versions/v1/models/base-webhook.ts @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseWebhook +*/ +export interface BaseWebhook { + /** + * The ID of the Webhook + * @type {number} + */ + 'id'?: number; + /** + * The ID of the company related to the Webhook + * @type {number} + */ + 'company_id'?: number; + /** + * The ID of the user who owns the Webhook + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the user related to the Webhook + * @type {number} + */ + 'user_id'?: number; + /** + * The Webhook action + * @type {string} + */ + 'event_action'?: string; + /** + * The Webhook object + * @type {string} + */ + 'event_object'?: string; + /** + * The subscription URL of the Webhook + * @type {string} + */ + 'subscription_url'?: string; + /** + * + * @type {number} + */ + 'is_active'?: BaseWebhookIsActiveConst; + /** + * The date when the Webhook was added + * @type {string} + */ + 'add_time'?: string; + /** + * The date when the Webhook was removed (if removed) + * @type {string} + */ + 'remove_time'?: string | null; + /** + * The type of the Webhook + * @type {string} + */ + 'type'?: BaseWebhookTypeConst; + /** + * The username of the `subscription_url` of the Webhook + * @type {string} + */ + 'http_auth_user'?: string | null; + /** + * The password of the `subscription_url` of the Webhook + * @type {string} + */ + 'http_auth_password'?: string | null; + /** + * Any additional data related to the Webhook + * @type {object} + */ + 'additional_data'?: object; + /** + * The removal reason of the Webhook (if removed) + * @type {string} + */ + 'remove_reason'?: string | null; + /** + * The last delivery time of the Webhook + * @type {string} + */ + 'last_delivery_time'?: string | null; + /** + * The last delivery HTTP status of the Webhook + * @type {number} + */ + 'last_http_status'?: number | null; + /** + * The ID of the admin of the Webhook + * @type {number} + */ + 'admin_id'?: number; +} + + export const BaseWebhookIsActiveConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type BaseWebhookIsActiveConst = typeof BaseWebhookIsActiveConst[keyof typeof BaseWebhookIsActiveConst]; + export const BaseWebhookTypeConst = { + general: 'general', + app: 'app' + } as const; + + export type BaseWebhookTypeConst = typeof BaseWebhookTypeConst[keyof typeof BaseWebhookTypeConst]; + + diff --git a/src/versions/v1/models/basic-deal-product-request-all-of.ts b/src/versions/v1/models/basic-deal-product-request-all-of.ts new file mode 100644 index 00000000..5ee68a06 --- /dev/null +++ b/src/versions/v1/models/basic-deal-product-request-all-of.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BasicDealProductRequestAllOf +*/ +export interface BasicDealProductRequestAllOf { + /** + * The ID of the product to use + * @type {number} + */ + 'product_id'?: number; + /** + * The price at which this product will be added to the deal + * @type {number} + */ + 'item_price'?: number; + /** + * Quantity – e.g. how many items of this product will be added to the deal + * @type {number} + */ + 'quantity'?: number; + /** + * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage + * @type {number} + */ + 'discount'?: number; + /** + * The type of the discount\'s value + * @type {string} + */ + 'discount_type'?: BasicDealProductRequestAllOfDiscountTypeConst; + /** + * The ID of the product variation to use. When omitted, no variation will be used + * @type {number} + */ + 'product_variation_id'?: number | null; + /** + * A textual comment associated with this product-deal attachment + * @type {string} + */ + 'comments'?: string; + /** + * The tax percentage + * @type {number} + */ + 'tax'?: number; + /** + * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal + * @type {string} + */ + 'tax_method'?: BasicDealProductRequestAllOfTaxMethodConst; + /** + * Whether the product is enabled for a deal or not. This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default + * @type {boolean} + */ + 'enabled_flag'?: boolean; +} + + export const BasicDealProductRequestAllOfDiscountTypeConst = { + percentage: 'percentage', + amount: 'amount' + } as const; + + export type BasicDealProductRequestAllOfDiscountTypeConst = typeof BasicDealProductRequestAllOfDiscountTypeConst[keyof typeof BasicDealProductRequestAllOfDiscountTypeConst]; + export const BasicDealProductRequestAllOfTaxMethodConst = { + exclusive: 'exclusive', + inclusive: 'inclusive', + none: 'none' + } as const; + + export type BasicDealProductRequestAllOfTaxMethodConst = typeof BasicDealProductRequestAllOfTaxMethodConst[keyof typeof BasicDealProductRequestAllOfTaxMethodConst]; + + diff --git a/src/versions/v1/models/basic-deal-product-request.ts b/src/versions/v1/models/basic-deal-product-request.ts new file mode 100644 index 00000000..876c16fa --- /dev/null +++ b/src/versions/v1/models/basic-deal-product-request.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddDealProductRequestAllOf } from './add-deal-product-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { AddDealProductRequestAllOf1 } from './add-deal-product-request-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { AddDealProductRequestAllOf2 } from './add-deal-product-request-all-of2'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicDealProductRequestAllOf } from './basic-deal-product-request-all-of'; + +/** + * @type BasicDealProductRequest + * @export + */ +export type BasicDealProductRequest = AddDealProductRequestAllOf & AddDealProductRequestAllOf1 & AddDealProductRequestAllOf2 & BasicDealProductRequestAllOf; + + diff --git a/src/versions/v1/models/basic-deal.ts b/src/versions/v1/models/basic-deal.ts new file mode 100644 index 00000000..69d2e610 --- /dev/null +++ b/src/versions/v1/models/basic-deal.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BasicDeal +*/ +export interface BasicDeal { + /** + * The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. + * @type {string} + */ + 'won_time'?: string; + /** + * The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. + * @type {string} + */ + 'lost_time'?: string; + /** + * The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'close_time'?: string | null; + /** + * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. + * @type {string} + */ + 'expected_close_date'?: string; + /** + * The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. + * @type {number} + */ + 'probability'?: number; + /** + * The optional message about why the deal was lost (to be used when status = lost) + * @type {string} + */ + 'lost_reason'?: string; + /** + * + * @type {string} + */ + 'visible_to'?: BasicDealVisibleToConst; +} + + export const BasicDealVisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type BasicDealVisibleToConst = typeof BasicDealVisibleToConst[keyof typeof BasicDealVisibleToConst]; + + diff --git a/src/versions/v1/models/basic-deal1.ts b/src/versions/v1/models/basic-deal1.ts new file mode 100644 index 00000000..a7fdc2f2 --- /dev/null +++ b/src/versions/v1/models/basic-deal1.ts @@ -0,0 +1,71 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BasicDeal1 +*/ +export interface BasicDeal1 { + [key: string]: any | any; + + /** + * The optional date and time of changing the deal status as won in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Won. Can not be used together with `lost_time`. + * @type {string} + */ + 'won_time'?: string; + /** + * The optional date and time of changing the deal status as lost in UTC. Format: YYYY-MM-DD HH:MM:SS. Can be set only when deal `status` is already Lost. Can not be used together with `won_time`. + * @type {string} + */ + 'lost_time'?: string; + /** + * The optional date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'close_time'?: string | null; + /** + * The expected close date of the deal. In ISO 8601 format: YYYY-MM-DD. + * @type {string} + */ + 'expected_close_date'?: string; + /** + * The success probability percentage of the deal. Used/shown only when `deal_probability` for the pipeline of the deal is enabled. + * @type {number} + */ + 'probability'?: number; + /** + * The optional message about why the deal was lost (to be used when status = lost) + * @type {string} + */ + 'lost_reason'?: string; + /** + * + * @type {string} + */ + 'visible_to'?: BasicDeal1VisibleToConst; +} + + export const BasicDeal1VisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type BasicDeal1VisibleToConst = typeof BasicDeal1VisibleToConst[keyof typeof BasicDeal1VisibleToConst]; + + diff --git a/src/versions/v1/models/basic-goal-request.ts b/src/versions/v1/models/basic-goal-request.ts new file mode 100644 index 00000000..9b45ad57 --- /dev/null +++ b/src/versions/v1/models/basic-goal-request.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BasicGoalRequest +*/ +export interface BasicGoalRequest { + /** + * The title of the goal + * @type {string} + */ + 'title'?: string; + /** + * Who this goal is assigned to. It requires the following JSON structure: `{ \"id\": \"1\", \"type\": \"person\" }`. `type` can be either `person`, `company` or `team`. ID of the assignee person, company or team. + * @type {object} + */ + 'assignee'?: object; + /** + * The type of the goal. It requires the following JSON structure: `{ \"name\": \"deals_started\", \"params\": { \"pipeline_id\": [1, 2], \"activity_type_id\": [9] } }`. Type can be one of: `deals_won`, `deals_progressed`, `activities_completed`, `activities_added`, `deals_started` or `revenue_forecast`. `params` can include `pipeline_id`, `stage_id` or `activity_type_id`. `stage_id` is related to only `deals_progressed` type of goals and `activity_type_id` to `activities_completed` or `activities_added` types of goals. The `pipeline_id` and `activity_type_id` need to be given as an array of integers. To track the goal in all pipelines, set `pipeline_id` as `null` and similarly, to track the goal for all activities, set `activity_type_id` as `null`.” + * @type {object} + */ + 'type'?: object; + /** + * The expected outcome of the goal. Expected outcome can be tracked either by `quantity` or by `sum`. It requires the following JSON structure: `{ \"target\": \"50\", \"tracking_metric\": \"quantity\" }` or `{ \"target\": \"50\", \"tracking_metric\": \"sum\", \"currency_id\": 1 }`. `currency_id` should only be added to `sum` type of goals. + * @type {object} + */ + 'expected_outcome'?: object; + /** + * The date when the goal starts and ends. It requires the following JSON structure: `{ \"start\": \"2019-01-01\", \"end\": \"2022-12-31\" }`. Date in format of YYYY-MM-DD. \"end\" can be set to `null` for an infinite, open-ended goal. + * @type {object} + */ + 'duration'?: object; + /** + * The interval of the goal + * @type {string} + */ + 'interval'?: BasicGoalRequestIntervalConst; +} + + export const BasicGoalRequestIntervalConst = { + weekly: 'weekly', + monthly: 'monthly', + quarterly: 'quarterly', + yearly: 'yearly' + } as const; + + export type BasicGoalRequestIntervalConst = typeof BasicGoalRequestIntervalConst[keyof typeof BasicGoalRequestIntervalConst]; + + diff --git a/src/versions/v1/models/basic-organization.ts b/src/versions/v1/models/basic-organization.ts new file mode 100644 index 00000000..cf2ec9d0 --- /dev/null +++ b/src/versions/v1/models/basic-organization.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BasicOrganization +*/ +export interface BasicOrganization { + /** + * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. + * @type {number} + */ + 'owner_id'?: number; + /** + * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. + * @type {number} + */ + 'label'?: number; + /** + * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. + * @type {Array} + */ + 'label_ids'?: Array; + /** + * + * @type {string} + */ + 'visible_to'?: BasicOrganizationVisibleToConst; +} + + export const BasicOrganizationVisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type BasicOrganizationVisibleToConst = typeof BasicOrganizationVisibleToConst[keyof typeof BasicOrganizationVisibleToConst]; + + diff --git a/src/versions/v1/models/basic-organization1.ts b/src/versions/v1/models/basic-organization1.ts new file mode 100644 index 00000000..4fddfdd7 --- /dev/null +++ b/src/versions/v1/models/basic-organization1.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BasicOrganization1 +*/ +export interface BasicOrganization1 { + [key: string]: any | any; + + /** + * The ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used. + * @type {number} + */ + 'owner_id'?: number; + /** + * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. + * @type {number} + */ + 'label'?: number; + /** + * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. + * @type {Array} + */ + 'label_ids'?: Array; + /** + * + * @type {string} + */ + 'visible_to'?: BasicOrganization1VisibleToConst; +} + + export const BasicOrganization1VisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type BasicOrganization1VisibleToConst = typeof BasicOrganization1VisibleToConst[keyof typeof BasicOrganization1VisibleToConst]; + + diff --git a/src/versions/v1/models/basic-person-request-email-inner.ts b/src/versions/v1/models/basic-person-request-email-inner.ts new file mode 100644 index 00000000..bd4e5cf0 --- /dev/null +++ b/src/versions/v1/models/basic-person-request-email-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BasicPersonRequestEmailInner +*/ +export interface BasicPersonRequestEmailInner { + /** + * The email + * @type {string} + */ + 'value'?: string; + /** + * Boolean that indicates if email is primary for the person or not + * @type {boolean} + */ + 'primary'?: boolean; + /** + * The label that indicates the type of the email. (Possible values - work, home or other) + * @type {string} + */ + 'label'?: string; +} + diff --git a/src/versions/v1/models/basic-person-request.ts b/src/versions/v1/models/basic-person-request.ts new file mode 100644 index 00000000..e4dae8bb --- /dev/null +++ b/src/versions/v1/models/basic-person-request.ts @@ -0,0 +1,93 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasicPersonRequestEmailInner } from './basic-person-request-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPhoneInner } from './person-all-of-phone-inner'; + +/** +* +* @export +* @interface BasicPersonRequest +*/ +export interface BasicPersonRequest { + /** + * The ID of the user who will be marked as the owner of this person. When omitted, the authorized user ID will be used. + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the organization this person will belong to + * @type {number} + */ + 'org_id'?: number; + /** + * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. + * @type {Array} + */ + 'email'?: Array; + /** + * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. + * @type {Array} + */ + 'phone'?: Array; + /** + * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. + * @type {number} + */ + 'label'?: number; + /** + * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. + * @type {Array} + */ + 'label_ids'?: Array; + /** + * + * @type {string} + */ + 'visible_to'?: BasicPersonRequestVisibleToConst; + /** + * + * @type {string} + */ + 'marketing_status'?: BasicPersonRequestMarketingStatusConst; + /** + * The optional creation date & time of the person in UTC. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; +} + + export const BasicPersonRequestVisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type BasicPersonRequestVisibleToConst = typeof BasicPersonRequestVisibleToConst[keyof typeof BasicPersonRequestVisibleToConst]; + export const BasicPersonRequestMarketingStatusConst = { + no_consent: 'no_consent', + unsubscribed: 'unsubscribed', + subscribed: 'subscribed', + archived: 'archived' + } as const; + + export type BasicPersonRequestMarketingStatusConst = typeof BasicPersonRequestMarketingStatusConst[keyof typeof BasicPersonRequestMarketingStatusConst]; + + diff --git a/src/versions/v1/models/call-log-bad-request-response.ts b/src/versions/v1/models/call-log-bad-request-response.ts new file mode 100644 index 00000000..33a5db41 --- /dev/null +++ b/src/versions/v1/models/call-log-bad-request-response.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface CallLogBadRequestResponse +*/ +export interface CallLogBadRequestResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The description of the error + * @type {string} + */ + 'error'?: string; + /** + * A message describing how to solve the problem + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {object} + */ + 'data'?: object | null; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/call-log-conflict-response.ts b/src/versions/v1/models/call-log-conflict-response.ts new file mode 100644 index 00000000..0a1dbfdb --- /dev/null +++ b/src/versions/v1/models/call-log-conflict-response.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface CallLogConflictResponse +*/ +export interface CallLogConflictResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The description of the error + * @type {string} + */ + 'error'?: string; + /** + * A message describing how to solve the problem + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {object} + */ + 'data'?: object | null; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/call-log-forbidden-response.ts b/src/versions/v1/models/call-log-forbidden-response.ts new file mode 100644 index 00000000..5c1974f5 --- /dev/null +++ b/src/versions/v1/models/call-log-forbidden-response.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface CallLogForbiddenResponse +*/ +export interface CallLogForbiddenResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The description of the error + * @type {string} + */ + 'error'?: string; + /** + * A message describing how to solve the problem + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {object} + */ + 'data'?: object | null; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/call-log-gone-response.ts b/src/versions/v1/models/call-log-gone-response.ts new file mode 100644 index 00000000..0163e909 --- /dev/null +++ b/src/versions/v1/models/call-log-gone-response.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface CallLogGoneResponse +*/ +export interface CallLogGoneResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The description of the error + * @type {string} + */ + 'error'?: string; + /** + * A message describing how to solve the problem + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {object} + */ + 'data'?: object | null; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/call-log-internal-error-response.ts b/src/versions/v1/models/call-log-internal-error-response.ts new file mode 100644 index 00000000..dca9a7ef --- /dev/null +++ b/src/versions/v1/models/call-log-internal-error-response.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface CallLogInternalErrorResponse +*/ +export interface CallLogInternalErrorResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The description of the error + * @type {string} + */ + 'error'?: string; + /** + * A message describing how to solve the problem + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {object} + */ + 'data'?: object | null; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/call-log-not-found-response.ts b/src/versions/v1/models/call-log-not-found-response.ts new file mode 100644 index 00000000..c67d3af7 --- /dev/null +++ b/src/versions/v1/models/call-log-not-found-response.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface CallLogNotFoundResponse +*/ +export interface CallLogNotFoundResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The description of the error + * @type {string} + */ + 'error'?: string; + /** + * A message describing how to solve the problem + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {object} + */ + 'data'?: object | null; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/cancel-recurring-subscription-request.ts b/src/versions/v1/models/cancel-recurring-subscription-request.ts new file mode 100644 index 00000000..14121cce --- /dev/null +++ b/src/versions/v1/models/cancel-recurring-subscription-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface CancelRecurringSubscriptionRequest +*/ +export interface CancelRecurringSubscriptionRequest { + /** + * The subscription termination date. All payments after the specified date will be deleted. The end_date of the subscription will be set to the due date of the payment to follow the specified date. Default value is the current date. + * @type {string} + */ + 'end_date'?: string; +} + diff --git a/src/versions/v1/models/comment-post-put-object.ts b/src/versions/v1/models/comment-post-put-object.ts new file mode 100644 index 00000000..1e4bda32 --- /dev/null +++ b/src/versions/v1/models/comment-post-put-object.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface CommentPostPutObject +*/ +export interface CommentPostPutObject { + /** + * The content of the comment in HTML format. Subject to sanitization on the back-end. + * @type {string} + */ + 'content': string; +} + diff --git a/src/versions/v1/models/comment.ts b/src/versions/v1/models/comment.ts new file mode 100644 index 00000000..36444410 --- /dev/null +++ b/src/versions/v1/models/comment.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface Comment +*/ +export interface Comment { + /** + * The ID of the note + * @type {string} + */ + 'uuid'?: string; + /** + * Whether the note is active or deleted + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The creation date and time of the note + * @type {string} + */ + 'add_time'?: string; + /** + * The creation date and time of the note + * @type {string} + */ + 'update_time'?: string; + /** + * The content of the note in HTML format. Subject to sanitization on the back-end. + * @type {string} + */ + 'content'?: string; + /** + * The ID of the object that the comment is attached to, will be the id of the note + * @type {string} + */ + 'object_id'?: string; + /** + * The type of object that the comment is attached to, will be \"note\" + * @type {string} + */ + 'object_type'?: string; + /** + * The ID of the user who created the comment + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the user who last updated the comment + * @type {number} + */ + 'updater_id'?: number; + /** + * The ID of the company + * @type {number} + */ + 'company_id'?: number; +} + diff --git a/src/versions/v1/models/create-field-request-all-of.ts b/src/versions/v1/models/create-field-request-all-of.ts new file mode 100644 index 00000000..3e24da7c --- /dev/null +++ b/src/versions/v1/models/create-field-request-all-of.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface CreateFieldRequestAllOf +*/ +export interface CreateFieldRequestAllOf { + /** + * The name of the field + * @type {string} + */ + 'name': string; + /** + * When `field_type` is either set or enum, possible options must be supplied as a JSON-encoded sequential array of objects. Example: `[{\"label\":\"New Item\"}]` + * @type {Array} + */ + 'options'?: Array; + /** + * Whether the field is available in the \'add new\' modal or not (both in the web and mobile app) + * @type {boolean} + */ + 'add_visible_flag'?: boolean; +} + diff --git a/src/versions/v1/models/create-field-request-all-of1.ts b/src/versions/v1/models/create-field-request-all-of1.ts new file mode 100644 index 00000000..949e6cc5 --- /dev/null +++ b/src/versions/v1/models/create-field-request-all-of1.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface CreateFieldRequestAllOf1 +*/ +export interface CreateFieldRequestAllOf1 { + /** + * The type of the field
ValueDescription
`address`Address field
`date`Date (format YYYY-MM-DD)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`double`Numeric value
`enum`Options field with a single possible chosen option
`monetary`Monetary field (has a numeric value and a currency value)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a person ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`set`Options field with a possibility of having multiple chosen options
`text`Long text (up to 65k characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`user`User field (contains a user ID of another Pipedrive user)
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`visible_to`System field that keeps item\'s visibility setting
+ * @type {string} + */ + 'field_type': CreateFieldRequestAllOf1FieldTypeConst; +} + + export const CreateFieldRequestAllOf1FieldTypeConst = { + address: 'address', + date: 'date', + daterange: 'daterange', + double: 'double', + enum: 'enum', + monetary: 'monetary', + org: 'org', + people: 'people', + phone: 'phone', + set: 'set', + text: 'text', + time: 'time', + timerange: 'timerange', + user: 'user', + varchar: 'varchar', + varchar_auto: 'varchar_auto', + visible_to: 'visible_to' + } as const; + + export type CreateFieldRequestAllOf1FieldTypeConst = typeof CreateFieldRequestAllOf1FieldTypeConst[keyof typeof CreateFieldRequestAllOf1FieldTypeConst]; + + diff --git a/src/versions/v1/models/create-field-request.ts b/src/versions/v1/models/create-field-request.ts new file mode 100644 index 00000000..ca38ba89 --- /dev/null +++ b/src/versions/v1/models/create-field-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { CreateFieldRequestAllOf } from './create-field-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { CreateFieldRequestAllOf1 } from './create-field-request-all-of1'; + +/** + * @type CreateFieldRequest + * @export + */ +export type CreateFieldRequest = CreateFieldRequestAllOf & CreateFieldRequestAllOf1; + + diff --git a/src/versions/v1/models/deal-all-of-creator-user-id.ts b/src/versions/v1/models/deal-all-of-creator-user-id.ts new file mode 100644 index 00000000..dd8d7af7 --- /dev/null +++ b/src/versions/v1/models/deal-all-of-creator-user-id.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The creator of the deal +* @export +* @interface DealAllOfCreatorUserId +*/ +export interface DealAllOfCreatorUserId { + /** + * The ID of the deal creator + * @type {number} + */ + 'id'?: number; + /** + * The name of the deal creator + * @type {string} + */ + 'name'?: string; + /** + * The email of the deal creator + * @type {string} + */ + 'email'?: string; + /** + * If the creator has a picture or not + * @type {boolean} + */ + 'has_pic'?: boolean; + /** + * The creator picture hash + * @type {string} + */ + 'pic_hash'?: string | null; + /** + * Whether the creator is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The ID of the deal creator + * @type {number} + */ + 'value'?: number; +} + diff --git a/src/versions/v1/models/deal-all-of.ts b/src/versions/v1/models/deal-all-of.ts new file mode 100644 index 00000000..a290d64f --- /dev/null +++ b/src/versions/v1/models/deal-all-of.ts @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealAllOfCreatorUserId } from './deal-all-of-creator-user-id'; +// May contain unused imports in some cases +// @ts-ignore +import { DealOrganizationDataWithId } from './deal-organization-data-with-id'; +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithId } from './deal-person-data-with-id'; +// May contain unused imports in some cases +// @ts-ignore +import { DealUserDataWithId } from './deal-user-data-with-id'; + +/** +* +* @export +* @interface DealAllOf +*/ +export interface DealAllOf { + /** + * The ID of the deal + * @type {number} + */ + 'id'?: number; + /** + * + * @type {DealAllOfCreatorUserId} + */ + 'creator_user_id'?: DealAllOfCreatorUserId; + /** + * + * @type {DealUserDataWithId} + */ + 'user_id'?: DealUserDataWithId; + /** + * + * @type {DealPersonDataWithId} + */ + 'person_id'?: DealPersonDataWithId; + /** + * + * @type {DealOrganizationDataWithId} + */ + 'org_id'?: DealOrganizationDataWithId; +} + diff --git a/src/versions/v1/models/deal-collection-response-object.ts b/src/versions/v1/models/deal-collection-response-object.ts new file mode 100644 index 00000000..6deeed81 --- /dev/null +++ b/src/versions/v1/models/deal-collection-response-object.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealCollectionResponseObject +*/ +export interface DealCollectionResponseObject { + /** + * The ID of the deal + * @type {number} + */ + 'id': number; + /** + * The ID of the deal creator + * @type {number} + */ + 'creator_user_id': number; + /** + * The ID of the user + * @type {number} + */ + 'user_id': number; + /** + * The ID of the person associated with the deal + * @type {number} + */ + 'person_id': number; + /** + * The ID of the organization associated with the deal + * @type {number} + */ + 'org_id': number; + /** + * The ID of the deal stage + * @type {number} + */ + 'stage_id': number; + /** + * The title of the deal + * @type {string} + */ + 'title': string; + /** + * The value of the deal + * @type {number} + */ + 'value': number; + /** + * The currency associated with the deal + * @type {string} + */ + 'currency': string; + /** + * The creation date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time': string; + /** + * The last update date and time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time': string; + /** + * The status of the deal + * @type {string} + */ + 'status': string; + /** + * The success probability percentage of the deal + * @type {number} + */ + 'probability': number | null; + /** + * The reason for losing the deal + * @type {string} + */ + 'lost_reason': string | null; + /** + * The visibility of the deal + * @type {string} + */ + 'visible_to': string; + /** + * The date and time of closing the deal in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'close_time': string | null; + /** + * The ID of the pipeline associated with the deal + * @type {number} + */ + 'pipeline_id': number; + /** + * The date and time of changing the deal status to won in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'won_time': string; + /** + * The date and time of changing the deal status to lost in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'lost_time': string; + /** + * The expected close date of the deal + * @type {string} + */ + 'expected_close_date': string; + /** + * The label or multiple labels assigned to the deal + * @type {string} + */ + 'label': string; +} + diff --git a/src/versions/v1/models/deal-count-and-activity-info-all-of.ts b/src/versions/v1/models/deal-count-and-activity-info-all-of.ts new file mode 100644 index 00000000..71f49c39 --- /dev/null +++ b/src/versions/v1/models/deal-count-and-activity-info-all-of.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealCountAndActivityInfoAllOf +*/ +export interface DealCountAndActivityInfoAllOf { + /** + * The count of open deals related with the item + * @type {number} + */ + 'open_deals_count'?: number; + /** + * The count of related open deals related with the item + * @type {number} + */ + 'related_open_deals_count'?: number; + /** + * The count of closed deals related with the item + * @type {number} + */ + 'closed_deals_count'?: number; + /** + * The count of related closed deals related with the item + * @type {number} + */ + 'related_closed_deals_count'?: number; + /** + * The count of won deals related with the item + * @type {number} + */ + 'won_deals_count'?: number; + /** + * The count of related won deals related with the item + * @type {number} + */ + 'related_won_deals_count'?: number; + /** + * The count of lost deals related with the item + * @type {number} + */ + 'lost_deals_count'?: number; + /** + * The count of related lost deals related with the item + * @type {number} + */ + 'related_lost_deals_count'?: number; +} + diff --git a/src/versions/v1/models/deal-count-and-activity-info-all-of1.ts b/src/versions/v1/models/deal-count-and-activity-info-all-of1.ts new file mode 100644 index 00000000..f0e3be7f --- /dev/null +++ b/src/versions/v1/models/deal-count-and-activity-info-all-of1.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealCountAndActivityInfoAllOf1 +*/ +export interface DealCountAndActivityInfoAllOf1 { + /** + * The date of the next activity associated with the deal + * @type {string} + */ + 'next_activity_date'?: string | null; + /** + * The time of the next activity associated with the deal + * @type {string} + */ + 'next_activity_time'?: string | null; + /** + * The ID of the next activity associated with the deal + * @type {number} + */ + 'next_activity_id'?: number | null; + /** + * The ID of the last activity associated with the deal + * @type {number} + */ + 'last_activity_id'?: number | null; + /** + * The date of the last activity associated with the deal + * @type {string} + */ + 'last_activity_date'?: string | null; +} + diff --git a/src/versions/v1/models/deal-count-and-activity-info.ts b/src/versions/v1/models/deal-count-and-activity-info.ts new file mode 100644 index 00000000..0020be61 --- /dev/null +++ b/src/versions/v1/models/deal-count-and-activity-info.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealCountAndActivityInfoAllOf } from './deal-count-and-activity-info-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DealCountAndActivityInfoAllOf1 } from './deal-count-and-activity-info-all-of1'; + +/** + * @type DealCountAndActivityInfo + * @export + */ +export type DealCountAndActivityInfo = DealCountAndActivityInfoAllOf & DealCountAndActivityInfoAllOf1; + + diff --git a/src/versions/v1/models/deal-non-strict-with-details-all-of-age.ts b/src/versions/v1/models/deal-non-strict-with-details-all-of-age.ts new file mode 100644 index 00000000..f1d653e0 --- /dev/null +++ b/src/versions/v1/models/deal-non-strict-with-details-all-of-age.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The lifetime of the deal +* @export +* @interface DealNonStrictWithDetailsAllOfAge +*/ +export interface DealNonStrictWithDetailsAllOfAge { + /** + * Years + * @type {number} + */ + 'y'?: number; + /** + * Months + * @type {number} + */ + 'm'?: number; + /** + * Days + * @type {number} + */ + 'd'?: number; + /** + * Hours + * @type {number} + */ + 'h'?: number; + /** + * Minutes + * @type {number} + */ + 'i'?: number; + /** + * Seconds + * @type {number} + */ + 's'?: number; + /** + * The total time in seconds + * @type {number} + */ + 'total_seconds'?: number; +} + diff --git a/src/versions/v1/models/deal-non-strict-with-details-all-of-average-time-to-won.ts b/src/versions/v1/models/deal-non-strict-with-details-all-of-average-time-to-won.ts new file mode 100644 index 00000000..805c5681 --- /dev/null +++ b/src/versions/v1/models/deal-non-strict-with-details-all-of-average-time-to-won.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The average time to win the deal +* @export +* @interface DealNonStrictWithDetailsAllOfAverageTimeToWon +*/ +export interface DealNonStrictWithDetailsAllOfAverageTimeToWon { + /** + * Years + * @type {number} + */ + 'y'?: number; + /** + * Months + * @type {number} + */ + 'm'?: number; + /** + * Days + * @type {number} + */ + 'd'?: number; + /** + * Hours + * @type {number} + */ + 'h'?: number; + /** + * Minutes + * @type {number} + */ + 'i'?: number; + /** + * Seconds + * @type {number} + */ + 's'?: number; + /** + * The total time in seconds + * @type {number} + */ + 'total_seconds'?: number; +} + diff --git a/src/versions/v1/models/deal-non-strict-with-details-all-of-stay-in-pipeline-stages.ts b/src/versions/v1/models/deal-non-strict-with-details-all-of-stay-in-pipeline-stages.ts new file mode 100644 index 00000000..9e3a1413 --- /dev/null +++ b/src/versions/v1/models/deal-non-strict-with-details-all-of-stay-in-pipeline-stages.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The details of the duration of the deal being in each stage of the pipeline +* @export +* @interface DealNonStrictWithDetailsAllOfStayInPipelineStages +*/ +export interface DealNonStrictWithDetailsAllOfStayInPipelineStages { + /** + * The number of seconds a deal has been in each stage of the pipeline + * @type {object} + */ + 'times_in_stages'?: object; + /** + * The order of the deal progression through the pipeline stages + * @type {Array} + */ + 'order_of_stages'?: Array; +} + diff --git a/src/versions/v1/models/deal-non-strict-with-details-all-of.ts b/src/versions/v1/models/deal-non-strict-with-details-all-of.ts new file mode 100644 index 00000000..91e77cdc --- /dev/null +++ b/src/versions/v1/models/deal-non-strict-with-details-all-of.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealNonStrictWithDetailsAllOfAge } from './deal-non-strict-with-details-all-of-age'; +// May contain unused imports in some cases +// @ts-ignore +import { DealNonStrictWithDetailsAllOfAverageTimeToWon } from './deal-non-strict-with-details-all-of-average-time-to-won'; +// May contain unused imports in some cases +// @ts-ignore +import { DealNonStrictWithDetailsAllOfStayInPipelineStages } from './deal-non-strict-with-details-all-of-stay-in-pipeline-stages'; + +/** +* +* @export +* @interface DealNonStrictWithDetailsAllOf +*/ +export interface DealNonStrictWithDetailsAllOf { + /** + * + * @type {DealNonStrictWithDetailsAllOfAverageTimeToWon} + */ + 'average_time_to_won'?: DealNonStrictWithDetailsAllOfAverageTimeToWon; + /** + * The average of the deal stage progression + * @type {number} + */ + 'average_stage_progress'?: number; + /** + * + * @type {DealNonStrictWithDetailsAllOfAge} + */ + 'age'?: DealNonStrictWithDetailsAllOfAge; + /** + * + * @type {DealNonStrictWithDetailsAllOfStayInPipelineStages} + */ + 'stay_in_pipeline_stages'?: DealNonStrictWithDetailsAllOfStayInPipelineStages; + /** + * The details of the last activity associated with the deal + * @type {object} + */ + 'last_activity'?: object | null; + /** + * The details of the next activity associated with the deal + * @type {object} + */ + 'next_activity'?: object | null; +} + diff --git a/src/versions/v1/models/deal-non-strict-with-details.ts b/src/versions/v1/models/deal-non-strict-with-details.ts new file mode 100644 index 00000000..7e625ddb --- /dev/null +++ b/src/versions/v1/models/deal-non-strict-with-details.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Deal } from './deal'; +// May contain unused imports in some cases +// @ts-ignore +import { DealAllOfCreatorUserId } from './deal-all-of-creator-user-id'; +// May contain unused imports in some cases +// @ts-ignore +import { DealNonStrictWithDetailsAllOf } from './deal-non-strict-with-details-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DealNonStrictWithDetailsAllOfAge } from './deal-non-strict-with-details-all-of-age'; +// May contain unused imports in some cases +// @ts-ignore +import { DealNonStrictWithDetailsAllOfAverageTimeToWon } from './deal-non-strict-with-details-all-of-average-time-to-won'; +// May contain unused imports in some cases +// @ts-ignore +import { DealNonStrictWithDetailsAllOfStayInPipelineStages } from './deal-non-strict-with-details-all-of-stay-in-pipeline-stages'; +// May contain unused imports in some cases +// @ts-ignore +import { DealOrganizationDataWithId } from './deal-organization-data-with-id'; +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithId } from './deal-person-data-with-id'; +// May contain unused imports in some cases +// @ts-ignore +import { DealUserDataWithId } from './deal-user-data-with-id'; + +/** + * @type DealNonStrictWithDetails + * @export + */ +export type DealNonStrictWithDetails = Deal & DealNonStrictWithDetailsAllOf; + + diff --git a/src/versions/v1/models/deal-organization-data-with-id-all-of.ts b/src/versions/v1/models/deal-organization-data-with-id-all-of.ts new file mode 100644 index 00000000..4ba6b70a --- /dev/null +++ b/src/versions/v1/models/deal-organization-data-with-id-all-of.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The organization which is associated with the deal +* @export +* @interface DealOrganizationDataWithIdAllOf +*/ +export interface DealOrganizationDataWithIdAllOf { + /** + * The name of the organization associated with the deal + * @type {string} + */ + 'name'?: string; + /** + * The number of people connected with the organization that is associated with the deal + * @type {number} + */ + 'people_count'?: number; + /** + * The ID of the owner of the organization that is associated with the deal + * @type {number} + */ + 'owner_id'?: number; + /** + * The address of the organization that is associated with the deal + * @type {string} + */ + 'address'?: string; + /** + * Whether the associated organization is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The BCC email of the organization associated with the deal + * @type {string} + */ + 'cc_email'?: string; +} + diff --git a/src/versions/v1/models/deal-organization-data-with-id-all-of1.ts b/src/versions/v1/models/deal-organization-data-with-id-all-of1.ts new file mode 100644 index 00000000..a1e44490 --- /dev/null +++ b/src/versions/v1/models/deal-organization-data-with-id-all-of1.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealOrganizationDataWithIdAllOf1 +*/ +export interface DealOrganizationDataWithIdAllOf1 { + /** + * The ID of the organization associated with the deal + * @type {number} + */ + 'value'?: number; +} + diff --git a/src/versions/v1/models/deal-organization-data-with-id.ts b/src/versions/v1/models/deal-organization-data-with-id.ts new file mode 100644 index 00000000..42544fa4 --- /dev/null +++ b/src/versions/v1/models/deal-organization-data-with-id.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealOrganizationDataWithIdAllOf } from './deal-organization-data-with-id-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DealOrganizationDataWithIdAllOf1 } from './deal-organization-data-with-id-all-of1'; + +/** + * @type DealOrganizationDataWithId + * @export + */ +export type DealOrganizationDataWithId = DealOrganizationDataWithIdAllOf & DealOrganizationDataWithIdAllOf1; + + diff --git a/src/versions/v1/models/deal-person-data-with-id-all-of-email-inner.ts b/src/versions/v1/models/deal-person-data-with-id-all-of-email-inner.ts new file mode 100644 index 00000000..503dbd13 --- /dev/null +++ b/src/versions/v1/models/deal-person-data-with-id-all-of-email-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealPersonDataWithIdAllOfEmailInner +*/ +export interface DealPersonDataWithIdAllOfEmailInner { + /** + * The type of the email + * @type {string} + */ + 'label'?: string; + /** + * The email of the associated person + * @type {string} + */ + 'value'?: string; + /** + * If this is the primary email or not + * @type {boolean} + */ + 'primary'?: boolean; +} + diff --git a/src/versions/v1/models/deal-person-data-with-id-all-of-phone-inner.ts b/src/versions/v1/models/deal-person-data-with-id-all-of-phone-inner.ts new file mode 100644 index 00000000..3da9ca83 --- /dev/null +++ b/src/versions/v1/models/deal-person-data-with-id-all-of-phone-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealPersonDataWithIdAllOfPhoneInner +*/ +export interface DealPersonDataWithIdAllOfPhoneInner { + /** + * The type of the phone number + * @type {string} + */ + 'label'?: string; + /** + * The phone number of the person associated with the deal + * @type {string} + */ + 'value'?: string; + /** + * If this is the primary phone number or not + * @type {boolean} + */ + 'primary'?: boolean; +} + diff --git a/src/versions/v1/models/deal-person-data-with-id-all-of.ts b/src/versions/v1/models/deal-person-data-with-id-all-of.ts new file mode 100644 index 00000000..674b757a --- /dev/null +++ b/src/versions/v1/models/deal-person-data-with-id-all-of.ts @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithIdAllOfEmailInner } from './deal-person-data-with-id-all-of-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithIdAllOfPhoneInner } from './deal-person-data-with-id-all-of-phone-inner'; + +/** +* The person who is associated with the deal +* @export +* @interface DealPersonDataWithIdAllOf +*/ +export interface DealPersonDataWithIdAllOf { + /** + * Whether the associated person is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The name of the person associated with the deal + * @type {string} + */ + 'name'?: string; + /** + * The emails of the person associated with the deal + * @type {Array} + */ + 'email'?: Array; + /** + * The phone numbers of the person associated with the deal + * @type {Array} + */ + 'phone'?: Array; + /** + * The ID of the owner of the person that is associated with the deal + * @type {number} + */ + 'owner_id'?: number; +} + diff --git a/src/versions/v1/models/deal-person-data-with-id-all-of1.ts b/src/versions/v1/models/deal-person-data-with-id-all-of1.ts new file mode 100644 index 00000000..a161e03c --- /dev/null +++ b/src/versions/v1/models/deal-person-data-with-id-all-of1.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealPersonDataWithIdAllOf1 +*/ +export interface DealPersonDataWithIdAllOf1 { + /** + * The ID of the person associated with the deal + * @type {number} + */ + 'value'?: number; +} + diff --git a/src/versions/v1/models/deal-person-data-with-id.ts b/src/versions/v1/models/deal-person-data-with-id.ts new file mode 100644 index 00000000..3fd625ae --- /dev/null +++ b/src/versions/v1/models/deal-person-data-with-id.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithIdAllOf } from './deal-person-data-with-id-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithIdAllOf1 } from './deal-person-data-with-id-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithIdAllOfEmailInner } from './deal-person-data-with-id-all-of-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithIdAllOfPhoneInner } from './deal-person-data-with-id-all-of-phone-inner'; + +/** + * @type DealPersonDataWithId + * @export + */ +export type DealPersonDataWithId = DealPersonDataWithIdAllOf & DealPersonDataWithIdAllOf1; + + diff --git a/src/versions/v1/models/deal-product-request-body.ts b/src/versions/v1/models/deal-product-request-body.ts new file mode 100644 index 00000000..537567c1 --- /dev/null +++ b/src/versions/v1/models/deal-product-request-body.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealProductRequestBody +*/ +export interface DealProductRequestBody { + /** + * The ID of the product to use + * @type {number} + */ + 'product_id': number; + /** + * The price at which this product will be added to the deal + * @type {number} + */ + 'item_price': number; + /** + * How many items of this product will be added to the deal + * @type {number} + */ + 'quantity': number; + /** + * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage + * @type {number} + */ + 'discount'?: number; + /** + * The type of the discount\'s value + * @type {string} + */ + 'discount_type'?: DealProductRequestBodyDiscountTypeConst; + /** + * The ID of the product variation to use. When omitted, no variation will be used + * @type {number} + */ + 'product_variation_id'?: number; + /** + * A textual comment associated with this product-deal attachment + * @type {string} + */ + 'comments'?: string; + /** + * The tax percentage + * @type {number} + */ + 'tax'?: number; + /** + * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount + * @type {string} + */ + 'tax_method'?: DealProductRequestBodyTaxMethodConst; + /** + * Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring + * @type {boolean} + */ + 'enabled_flag'?: boolean; +} + + export const DealProductRequestBodyDiscountTypeConst = { + percentage: 'percentage', + amount: 'amount' + } as const; + + export type DealProductRequestBodyDiscountTypeConst = typeof DealProductRequestBodyDiscountTypeConst[keyof typeof DealProductRequestBodyDiscountTypeConst]; + export const DealProductRequestBodyTaxMethodConst = { + exclusive: 'exclusive', + inclusive: 'inclusive', + none: 'none' + } as const; + + export type DealProductRequestBodyTaxMethodConst = typeof DealProductRequestBodyTaxMethodConst[keyof typeof DealProductRequestBodyTaxMethodConst]; + + diff --git a/src/versions/v1/models/deal-product-request-body1.ts b/src/versions/v1/models/deal-product-request-body1.ts new file mode 100644 index 00000000..553d8c75 --- /dev/null +++ b/src/versions/v1/models/deal-product-request-body1.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealProductRequestBody1 +*/ +export interface DealProductRequestBody1 { + /** + * The ID of the product to use + * @type {number} + */ + 'product_id'?: number; + /** + * The price at which this product will be added to the deal + * @type {number} + */ + 'item_price'?: number; + /** + * How many items of this product will be added to the deal + * @type {number} + */ + 'quantity'?: number; + /** + * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage + * @type {number} + */ + 'discount'?: number; + /** + * The type of the discount\'s value + * @type {string} + */ + 'discount_type'?: DealProductRequestBody1DiscountTypeConst; + /** + * The ID of the product variation to use. When omitted, no variation will be used + * @type {number} + */ + 'product_variation_id'?: number; + /** + * A textual comment associated with this product-deal attachment + * @type {string} + */ + 'comments'?: string; + /** + * The tax percentage + * @type {number} + */ + 'tax'?: number; + /** + * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount + * @type {string} + */ + 'tax_method'?: DealProductRequestBody1TaxMethodConst; + /** + * Whether the product is enabled for a deal or not This makes it possible to add products to a deal with a specific price and discount criteria, but keep them disabled, which refrains them from being included in the deal value calculation. When omitted, the product will be marked as enabled by default Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring + * @type {boolean} + */ + 'enabled_flag'?: boolean; +} + + export const DealProductRequestBody1DiscountTypeConst = { + percentage: 'percentage', + amount: 'amount' + } as const; + + export type DealProductRequestBody1DiscountTypeConst = typeof DealProductRequestBody1DiscountTypeConst[keyof typeof DealProductRequestBody1DiscountTypeConst]; + export const DealProductRequestBody1TaxMethodConst = { + exclusive: 'exclusive', + inclusive: 'inclusive', + none: 'none' + } as const; + + export type DealProductRequestBody1TaxMethodConst = typeof DealProductRequestBody1TaxMethodConst[keyof typeof DealProductRequestBody1TaxMethodConst]; + + diff --git a/src/versions/v1/models/deal-strict-all-of.ts b/src/versions/v1/models/deal-strict-all-of.ts new file mode 100644 index 00000000..84ebd817 --- /dev/null +++ b/src/versions/v1/models/deal-strict-all-of.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealStrictAllOf +*/ +export interface DealStrictAllOf { + /** + * The ID of the deal + * @type {number} + */ + 'id'?: number; + /** + * The ID of the deal creator + * @type {number} + */ + 'creator_user_id'?: number; + /** + * The ID of the user + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the person associated with the deal + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization associated with the deal + * @type {number} + */ + 'org_id'?: number; +} + diff --git a/src/versions/v1/models/deal-strict.ts b/src/versions/v1/models/deal-strict.ts new file mode 100644 index 00000000..16993239 --- /dev/null +++ b/src/versions/v1/models/deal-strict.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseDeal } from './base-deal'; +// May contain unused imports in some cases +// @ts-ignore +import { DealStrictAllOf } from './deal-strict-all-of'; + +/** + * @type DealStrict + * @export + */ +export type DealStrict = BaseDeal & DealStrictAllOf; + + diff --git a/src/versions/v1/models/deal-title-param.ts b/src/versions/v1/models/deal-title-param.ts new file mode 100644 index 00000000..1c58b3f3 --- /dev/null +++ b/src/versions/v1/models/deal-title-param.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealTitleParam +*/ +export interface DealTitleParam { + /** + * The title of the deal + * @type {string} + */ + 'title'?: string; +} + diff --git a/src/versions/v1/models/deal-user-data-with-id-all-of.ts b/src/versions/v1/models/deal-user-data-with-id-all-of.ts new file mode 100644 index 00000000..c664e17e --- /dev/null +++ b/src/versions/v1/models/deal-user-data-with-id-all-of.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The user who is associated with the deal +* @export +* @interface DealUserDataWithIdAllOf +*/ +export interface DealUserDataWithIdAllOf { + /** + * The ID of the user + * @type {number} + */ + 'id'?: number; + /** + * The name of the user + * @type {string} + */ + 'name'?: string; + /** + * The email of the user + * @type {string} + */ + 'email'?: string; + /** + * If the user has a picture or not + * @type {boolean} + */ + 'has_pic'?: boolean; + /** + * The user picture hash + * @type {string} + */ + 'pic_hash'?: string | null; + /** + * Whether the user is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; +} + diff --git a/src/versions/v1/models/deal-user-data-with-id-all-of1.ts b/src/versions/v1/models/deal-user-data-with-id-all-of1.ts new file mode 100644 index 00000000..fc3164d2 --- /dev/null +++ b/src/versions/v1/models/deal-user-data-with-id-all-of1.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealUserDataWithIdAllOf1 +*/ +export interface DealUserDataWithIdAllOf1 { + /** + * The ID of the user + * @type {number} + */ + 'value'?: number; +} + diff --git a/src/versions/v1/models/deal-user-data-with-id.ts b/src/versions/v1/models/deal-user-data-with-id.ts new file mode 100644 index 00000000..e7b588ec --- /dev/null +++ b/src/versions/v1/models/deal-user-data-with-id.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealUserDataWithIdAllOf } from './deal-user-data-with-id-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DealUserDataWithIdAllOf1 } from './deal-user-data-with-id-all-of1'; + +/** + * @type DealUserDataWithId + * @export + */ +export type DealUserDataWithId = DealUserDataWithIdAllOf & DealUserDataWithIdAllOf1; + + diff --git a/src/versions/v1/models/deal.ts b/src/versions/v1/models/deal.ts new file mode 100644 index 00000000..add9a4f4 --- /dev/null +++ b/src/versions/v1/models/deal.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseDeal } from './base-deal'; +// May contain unused imports in some cases +// @ts-ignore +import { DealAllOf } from './deal-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DealAllOfCreatorUserId } from './deal-all-of-creator-user-id'; +// May contain unused imports in some cases +// @ts-ignore +import { DealOrganizationDataWithId } from './deal-organization-data-with-id'; +// May contain unused imports in some cases +// @ts-ignore +import { DealPersonDataWithId } from './deal-person-data-with-id'; +// May contain unused imports in some cases +// @ts-ignore +import { DealUserDataWithId } from './deal-user-data-with-id'; + +/** + * @type Deal + * @export + */ +export type Deal = BaseDeal & DealAllOf; + + diff --git a/src/versions/v1/models/deals-count-and-activity-info.ts b/src/versions/v1/models/deals-count-and-activity-info.ts new file mode 100644 index 00000000..38f5b7a8 --- /dev/null +++ b/src/versions/v1/models/deals-count-and-activity-info.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealCountAndActivityInfoAllOf } from './deal-count-and-activity-info-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DealCountAndActivityInfoAllOf1 } from './deal-count-and-activity-info-all-of1'; + +/** + * @type DealsCountAndActivityInfo + * @export + */ +export type DealsCountAndActivityInfo = DealCountAndActivityInfoAllOf & DealCountAndActivityInfoAllOf1; + + diff --git a/src/versions/v1/models/delete-activities-response-data.ts b/src/versions/v1/models/delete-activities-response-data.ts new file mode 100644 index 00000000..3ed139a3 --- /dev/null +++ b/src/versions/v1/models/delete-activities-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteActivitiesResponseData +*/ +export interface DeleteActivitiesResponseData { + /** + * An array of the IDs of activities that were deleted + * @type {Array} + */ + 'id'?: Array; +} + diff --git a/src/versions/v1/models/delete-activities-response.ts b/src/versions/v1/models/delete-activities-response.ts new file mode 100644 index 00000000..39fd5a6a --- /dev/null +++ b/src/versions/v1/models/delete-activities-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteActivitiesResponseData } from './delete-activities-response-data'; + +/** +* +* @export +* @interface DeleteActivitiesResponse +*/ +export interface DeleteActivitiesResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteActivitiesResponseData} + */ + 'data'?: DeleteActivitiesResponseData; +} + diff --git a/src/versions/v1/models/delete-activity-response-data.ts b/src/versions/v1/models/delete-activity-response-data.ts new file mode 100644 index 00000000..a1c4c174 --- /dev/null +++ b/src/versions/v1/models/delete-activity-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteActivityResponseData +*/ +export interface DeleteActivityResponseData { + /** + * The ID of the activity that was deleted + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-activity-response.ts b/src/versions/v1/models/delete-activity-response.ts new file mode 100644 index 00000000..6d1a677f --- /dev/null +++ b/src/versions/v1/models/delete-activity-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteActivityResponseData } from './delete-activity-response-data'; + +/** +* +* @export +* @interface DeleteActivityResponse +*/ +export interface DeleteActivityResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteActivityResponseData} + */ + 'data'?: DeleteActivityResponseData; +} + diff --git a/src/versions/v1/models/delete-activity-types-response-all-of-data.ts b/src/versions/v1/models/delete-activity-types-response-all-of-data.ts new file mode 100644 index 00000000..122c2707 --- /dev/null +++ b/src/versions/v1/models/delete-activity-types-response-all-of-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteActivityTypesResponseAllOfData +*/ +export interface DeleteActivityTypesResponseAllOfData { + /** + * The IDs of the deleted activity types + * @type {Array} + */ + 'id'?: Array; +} + diff --git a/src/versions/v1/models/delete-activity-types-response-all-of.ts b/src/versions/v1/models/delete-activity-types-response-all-of.ts new file mode 100644 index 00000000..c126cf67 --- /dev/null +++ b/src/versions/v1/models/delete-activity-types-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteActivityTypesResponseAllOfData } from './delete-activity-types-response-all-of-data'; + +/** +* +* @export +* @interface DeleteActivityTypesResponseAllOf +*/ +export interface DeleteActivityTypesResponseAllOf { + /** + * + * @type {DeleteActivityTypesResponseAllOfData} + */ + 'data': DeleteActivityTypesResponseAllOfData; +} + diff --git a/src/versions/v1/models/delete-activity-types-response.ts b/src/versions/v1/models/delete-activity-types-response.ts new file mode 100644 index 00000000..b2b96310 --- /dev/null +++ b/src/versions/v1/models/delete-activity-types-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteActivityTypesResponseAllOf } from './delete-activity-types-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteActivityTypesResponseAllOfData } from './delete-activity-types-response-all-of-data'; + +/** + * @type DeleteActivityTypesResponse + * @export + */ +export type DeleteActivityTypesResponse = BaseResponse & DeleteActivityTypesResponseAllOf; + + diff --git a/src/versions/v1/models/delete-channel200-response.ts b/src/versions/v1/models/delete-channel200-response.ts new file mode 100644 index 00000000..de66720f --- /dev/null +++ b/src/versions/v1/models/delete-channel200-response.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteChannel200Response +*/ +export interface DeleteChannel200Response { + /** + * + * @type {boolean} + */ + 'success'?: boolean; +} + diff --git a/src/versions/v1/models/delete-comment-response.ts b/src/versions/v1/models/delete-comment-response.ts new file mode 100644 index 00000000..2c509657 --- /dev/null +++ b/src/versions/v1/models/delete-comment-response.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteCommentResponse +*/ +export interface DeleteCommentResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * If the response is successful or not + * @type {boolean} + */ + 'data'?: boolean; +} + diff --git a/src/versions/v1/models/delete-conversation-forbidden-error-response-additional-data.ts b/src/versions/v1/models/delete-conversation-forbidden-error-response-additional-data.ts new file mode 100644 index 00000000..5b9fb979 --- /dev/null +++ b/src/versions/v1/models/delete-conversation-forbidden-error-response-additional-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteConversationForbiddenErrorResponseAdditionalData +*/ +export interface DeleteConversationForbiddenErrorResponseAdditionalData { + /** + * An error code sent by the API + * @type {string} + */ + 'code'?: string; +} + diff --git a/src/versions/v1/models/delete-conversation-forbidden-error-response.ts b/src/versions/v1/models/delete-conversation-forbidden-error-response.ts new file mode 100644 index 00000000..4b51b6c4 --- /dev/null +++ b/src/versions/v1/models/delete-conversation-forbidden-error-response.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteConversationForbiddenErrorResponseAdditionalData } from './delete-conversation-forbidden-error-response-additional-data'; + +/** +* +* @export +* @interface DeleteConversationForbiddenErrorResponse +*/ +export interface DeleteConversationForbiddenErrorResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The error description + * @type {string} + */ + 'error'?: string; + /** + * + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {DeleteConversationForbiddenErrorResponseAdditionalData} + */ + 'additional_data'?: DeleteConversationForbiddenErrorResponseAdditionalData; +} + diff --git a/src/versions/v1/models/delete-conversation-not-found-error-response-additional-data.ts b/src/versions/v1/models/delete-conversation-not-found-error-response-additional-data.ts new file mode 100644 index 00000000..2b744598 --- /dev/null +++ b/src/versions/v1/models/delete-conversation-not-found-error-response-additional-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteConversationNotFoundErrorResponseAdditionalData +*/ +export interface DeleteConversationNotFoundErrorResponseAdditionalData { + /** + * An error code sent by the API + * @type {string} + */ + 'code'?: string; +} + diff --git a/src/versions/v1/models/delete-conversation-not-found-error-response.ts b/src/versions/v1/models/delete-conversation-not-found-error-response.ts new file mode 100644 index 00000000..bc378b59 --- /dev/null +++ b/src/versions/v1/models/delete-conversation-not-found-error-response.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteConversationNotFoundErrorResponseAdditionalData } from './delete-conversation-not-found-error-response-additional-data'; + +/** +* +* @export +* @interface DeleteConversationNotFoundErrorResponse +*/ +export interface DeleteConversationNotFoundErrorResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The error description + * @type {string} + */ + 'error'?: string; + /** + * + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {DeleteConversationNotFoundErrorResponseAdditionalData} + */ + 'additional_data'?: DeleteConversationNotFoundErrorResponseAdditionalData; +} + diff --git a/src/versions/v1/models/delete-deal-follower-response-data.ts b/src/versions/v1/models/delete-deal-follower-response-data.ts new file mode 100644 index 00000000..6a09889d --- /dev/null +++ b/src/versions/v1/models/delete-deal-follower-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteDealFollowerResponseData +*/ +export interface DeleteDealFollowerResponseData { + /** + * The ID of the deal follower that was deleted + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-deal-follower-response.ts b/src/versions/v1/models/delete-deal-follower-response.ts new file mode 100644 index 00000000..e6850427 --- /dev/null +++ b/src/versions/v1/models/delete-deal-follower-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteDealFollowerResponseData } from './delete-deal-follower-response-data'; + +/** +* +* @export +* @interface DeleteDealFollowerResponse +*/ +export interface DeleteDealFollowerResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteDealFollowerResponseData} + */ + 'data'?: DeleteDealFollowerResponseData; +} + diff --git a/src/versions/v1/models/delete-deal-participant-response-data.ts b/src/versions/v1/models/delete-deal-participant-response-data.ts new file mode 100644 index 00000000..a1593d9b --- /dev/null +++ b/src/versions/v1/models/delete-deal-participant-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteDealParticipantResponseData +*/ +export interface DeleteDealParticipantResponseData { + /** + * The ID of the deal participant that was deleted + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-deal-participant-response.ts b/src/versions/v1/models/delete-deal-participant-response.ts new file mode 100644 index 00000000..04c4c599 --- /dev/null +++ b/src/versions/v1/models/delete-deal-participant-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteDealParticipantResponseData } from './delete-deal-participant-response-data'; + +/** +* +* @export +* @interface DeleteDealParticipantResponse +*/ +export interface DeleteDealParticipantResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteDealParticipantResponseData} + */ + 'data'?: DeleteDealParticipantResponseData; +} + diff --git a/src/versions/v1/models/delete-deal-product-response-data.ts b/src/versions/v1/models/delete-deal-product-response-data.ts new file mode 100644 index 00000000..193ac513 --- /dev/null +++ b/src/versions/v1/models/delete-deal-product-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteDealProductResponseData +*/ +export interface DeleteDealProductResponseData { + /** + * The ID of an attached product that was deleted from the deal + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-deal-product-response.ts b/src/versions/v1/models/delete-deal-product-response.ts new file mode 100644 index 00000000..f518b911 --- /dev/null +++ b/src/versions/v1/models/delete-deal-product-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteDealProductResponseData } from './delete-deal-product-response-data'; + +/** +* +* @export +* @interface DeleteDealProductResponse +*/ +export interface DeleteDealProductResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteDealProductResponseData} + */ + 'data'?: DeleteDealProductResponseData; +} + diff --git a/src/versions/v1/models/delete-deal-response-data.ts b/src/versions/v1/models/delete-deal-response-data.ts new file mode 100644 index 00000000..3f79151f --- /dev/null +++ b/src/versions/v1/models/delete-deal-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteDealResponseData +*/ +export interface DeleteDealResponseData { + /** + * The ID of the deal that was deleted + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-deal-response.ts b/src/versions/v1/models/delete-deal-response.ts new file mode 100644 index 00000000..b306ba82 --- /dev/null +++ b/src/versions/v1/models/delete-deal-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteDealResponseData } from './delete-deal-response-data'; + +/** +* +* @export +* @interface DeleteDealResponse +*/ +export interface DeleteDealResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteDealResponseData} + */ + 'data'?: DeleteDealResponseData; +} + diff --git a/src/versions/v1/models/delete-deals-response-data.ts b/src/versions/v1/models/delete-deals-response-data.ts new file mode 100644 index 00000000..b2126127 --- /dev/null +++ b/src/versions/v1/models/delete-deals-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteDealsResponseData +*/ +export interface DeleteDealsResponseData { + /** + * The list of deleted deals IDs + * @type {Array} + */ + 'id'?: Array; +} + diff --git a/src/versions/v1/models/delete-deals-response.ts b/src/versions/v1/models/delete-deals-response.ts new file mode 100644 index 00000000..6fbc8d6a --- /dev/null +++ b/src/versions/v1/models/delete-deals-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteDealsResponseData } from './delete-deals-response-data'; + +/** +* +* @export +* @interface DeleteDealsResponse +*/ +export interface DeleteDealsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteDealsResponseData} + */ + 'data'?: DeleteDealsResponseData; +} + diff --git a/src/versions/v1/models/delete-fields-response-all-of-data.ts b/src/versions/v1/models/delete-fields-response-all-of-data.ts new file mode 100644 index 00000000..76c7b8bc --- /dev/null +++ b/src/versions/v1/models/delete-fields-response-all-of-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteFieldsResponseAllOfData +*/ +export interface DeleteFieldsResponseAllOfData { + /** + * The list of deleted field IDs + * @type {Array} + */ + 'id'?: Array; +} + diff --git a/src/versions/v1/models/delete-fields-response-all-of.ts b/src/versions/v1/models/delete-fields-response-all-of.ts new file mode 100644 index 00000000..e36122b3 --- /dev/null +++ b/src/versions/v1/models/delete-fields-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteFieldsResponseAllOfData } from './delete-fields-response-all-of-data'; + +/** +* +* @export +* @interface DeleteFieldsResponseAllOf +*/ +export interface DeleteFieldsResponseAllOf { + /** + * + * @type {DeleteFieldsResponseAllOfData} + */ + 'data': DeleteFieldsResponseAllOfData; +} + diff --git a/src/versions/v1/models/delete-fields-response.ts b/src/versions/v1/models/delete-fields-response.ts new file mode 100644 index 00000000..3e3adf7d --- /dev/null +++ b/src/versions/v1/models/delete-fields-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteFieldsResponseAllOf } from './delete-fields-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteFieldsResponseAllOfData } from './delete-fields-response-all-of-data'; + +/** + * @type DeleteFieldsResponse + * @export + */ +export type DeleteFieldsResponse = BaseResponse & DeleteFieldsResponseAllOf; + + diff --git a/src/versions/v1/models/delete-file-response-data.ts b/src/versions/v1/models/delete-file-response-data.ts new file mode 100644 index 00000000..a893f774 --- /dev/null +++ b/src/versions/v1/models/delete-file-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteFileResponseData +*/ +export interface DeleteFileResponseData { + /** + * The ID of the file + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-file-response.ts b/src/versions/v1/models/delete-file-response.ts new file mode 100644 index 00000000..8b17959a --- /dev/null +++ b/src/versions/v1/models/delete-file-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteFileResponseData } from './delete-file-response-data'; + +/** +* +* @export +* @interface DeleteFileResponse +*/ +export interface DeleteFileResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteFileResponseData} + */ + 'data'?: DeleteFileResponseData; +} + diff --git a/src/versions/v1/models/delete-filter-response-all-of-data.ts b/src/versions/v1/models/delete-filter-response-all-of-data.ts new file mode 100644 index 00000000..f80e94f4 --- /dev/null +++ b/src/versions/v1/models/delete-filter-response-all-of-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteFilterResponseAllOfData +*/ +export interface DeleteFilterResponseAllOfData { + /** + * The ID of the deleted filter + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-filter-response-all-of.ts b/src/versions/v1/models/delete-filter-response-all-of.ts new file mode 100644 index 00000000..9ff8ee0e --- /dev/null +++ b/src/versions/v1/models/delete-filter-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteFilterResponseAllOfData } from './delete-filter-response-all-of-data'; + +/** +* +* @export +* @interface DeleteFilterResponseAllOf +*/ +export interface DeleteFilterResponseAllOf { + /** + * + * @type {DeleteFilterResponseAllOfData} + */ + 'data': DeleteFilterResponseAllOfData; +} + diff --git a/src/versions/v1/models/delete-filter-response.ts b/src/versions/v1/models/delete-filter-response.ts new file mode 100644 index 00000000..70c92e92 --- /dev/null +++ b/src/versions/v1/models/delete-filter-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteFilterResponseAllOf } from './delete-filter-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteFilterResponseAllOfData } from './delete-filter-response-all-of-data'; + +/** + * @type DeleteFilterResponse + * @export + */ +export type DeleteFilterResponse = BaseResponse & DeleteFilterResponseAllOf; + + diff --git a/src/versions/v1/models/delete-filters-response-all-of-data.ts b/src/versions/v1/models/delete-filters-response-all-of-data.ts new file mode 100644 index 00000000..e6698b61 --- /dev/null +++ b/src/versions/v1/models/delete-filters-response-all-of-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteFiltersResponseAllOfData +*/ +export interface DeleteFiltersResponseAllOfData { + /** + * The array of the IDs of the deleted filter + * @type {Array} + */ + 'id'?: Array; +} + diff --git a/src/versions/v1/models/delete-filters-response-all-of.ts b/src/versions/v1/models/delete-filters-response-all-of.ts new file mode 100644 index 00000000..de4e1464 --- /dev/null +++ b/src/versions/v1/models/delete-filters-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteFiltersResponseAllOfData } from './delete-filters-response-all-of-data'; + +/** +* +* @export +* @interface DeleteFiltersResponseAllOf +*/ +export interface DeleteFiltersResponseAllOf { + /** + * + * @type {DeleteFiltersResponseAllOfData} + */ + 'data': DeleteFiltersResponseAllOfData; +} + diff --git a/src/versions/v1/models/delete-filters-response.ts b/src/versions/v1/models/delete-filters-response.ts new file mode 100644 index 00000000..d11d4626 --- /dev/null +++ b/src/versions/v1/models/delete-filters-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteFiltersResponseAllOf } from './delete-filters-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteFiltersResponseAllOfData } from './delete-filters-response-all-of-data'; + +/** + * @type DeleteFiltersResponse + * @export + */ +export type DeleteFiltersResponse = BaseResponse & DeleteFiltersResponseAllOf; + + diff --git a/src/versions/v1/models/delete-goal-response.ts b/src/versions/v1/models/delete-goal-response.ts new file mode 100644 index 00000000..c94dbd7f --- /dev/null +++ b/src/versions/v1/models/delete-goal-response.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteGoalResponse +*/ +export interface DeleteGoalResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; +} + diff --git a/src/versions/v1/models/delete-lead-id-response.ts b/src/versions/v1/models/delete-lead-id-response.ts new file mode 100644 index 00000000..f2092b2f --- /dev/null +++ b/src/versions/v1/models/delete-lead-id-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetLeadIdResponseData } from './get-lead-id-response-data'; + +/** +* +* @export +* @interface DeleteLeadIdResponse +*/ +export interface DeleteLeadIdResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetLeadIdResponseData} + */ + 'data'?: GetLeadIdResponseData; +} + diff --git a/src/versions/v1/models/delete-mail-thread-response-all-of-data.ts b/src/versions/v1/models/delete-mail-thread-response-all-of-data.ts new file mode 100644 index 00000000..c21dafc0 --- /dev/null +++ b/src/versions/v1/models/delete-mail-thread-response-all-of-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteMailThreadResponseAllOfData +*/ +export interface DeleteMailThreadResponseAllOfData { + /** + * The ID of the deleted mail thread + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-mail-thread-response-all-of.ts b/src/versions/v1/models/delete-mail-thread-response-all-of.ts new file mode 100644 index 00000000..ce7bf50b --- /dev/null +++ b/src/versions/v1/models/delete-mail-thread-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteMailThreadResponseAllOfData } from './delete-mail-thread-response-all-of-data'; + +/** +* +* @export +* @interface DeleteMailThreadResponseAllOf +*/ +export interface DeleteMailThreadResponseAllOf { + /** + * + * @type {DeleteMailThreadResponseAllOfData} + */ + 'data'?: DeleteMailThreadResponseAllOfData; +} + diff --git a/src/versions/v1/models/delete-mail-thread-response.ts b/src/versions/v1/models/delete-mail-thread-response.ts new file mode 100644 index 00000000..c2bbe697 --- /dev/null +++ b/src/versions/v1/models/delete-mail-thread-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteMailThreadResponseAllOf } from './delete-mail-thread-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteMailThreadResponseAllOfData } from './delete-mail-thread-response-all-of-data'; + +/** + * @type DeleteMailThreadResponse + * @export + */ +export type DeleteMailThreadResponse = BaseResponse & DeleteMailThreadResponseAllOf; + + diff --git a/src/versions/v1/models/delete-note-response.ts b/src/versions/v1/models/delete-note-response.ts new file mode 100644 index 00000000..15e2d1b2 --- /dev/null +++ b/src/versions/v1/models/delete-note-response.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteNoteResponse +*/ +export interface DeleteNoteResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * If the response is successful or not + * @type {boolean} + */ + 'data'?: boolean; +} + diff --git a/src/versions/v1/models/delete-organization-follower-response-data.ts b/src/versions/v1/models/delete-organization-follower-response-data.ts new file mode 100644 index 00000000..61afb363 --- /dev/null +++ b/src/versions/v1/models/delete-organization-follower-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteOrganizationFollowerResponseData +*/ +export interface DeleteOrganizationFollowerResponseData { + /** + * The ID of the follower that was deleted from the organization + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-organization-follower-response.ts b/src/versions/v1/models/delete-organization-follower-response.ts new file mode 100644 index 00000000..88c91ec7 --- /dev/null +++ b/src/versions/v1/models/delete-organization-follower-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteOrganizationFollowerResponseData } from './delete-organization-follower-response-data'; + +/** +* +* @export +* @interface DeleteOrganizationFollowerResponse +*/ +export interface DeleteOrganizationFollowerResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {DeleteOrganizationFollowerResponseData} + */ + 'data': DeleteOrganizationFollowerResponseData; +} + diff --git a/src/versions/v1/models/delete-organization-relationship-response-all-of-data.ts b/src/versions/v1/models/delete-organization-relationship-response-all-of-data.ts new file mode 100644 index 00000000..f6500a2a --- /dev/null +++ b/src/versions/v1/models/delete-organization-relationship-response-all-of-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteOrganizationRelationshipResponseAllOfData +*/ +export interface DeleteOrganizationRelationshipResponseAllOfData { + /** + * The ID of the deleted organization relationship + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-organization-relationship-response-all-of.ts b/src/versions/v1/models/delete-organization-relationship-response-all-of.ts new file mode 100644 index 00000000..e83f699b --- /dev/null +++ b/src/versions/v1/models/delete-organization-relationship-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteOrganizationRelationshipResponseAllOfData } from './delete-organization-relationship-response-all-of-data'; + +/** +* +* @export +* @interface DeleteOrganizationRelationshipResponseAllOf +*/ +export interface DeleteOrganizationRelationshipResponseAllOf { + /** + * + * @type {DeleteOrganizationRelationshipResponseAllOfData} + */ + 'data': DeleteOrganizationRelationshipResponseAllOfData; +} + diff --git a/src/versions/v1/models/delete-organization-relationship-response.ts b/src/versions/v1/models/delete-organization-relationship-response.ts new file mode 100644 index 00000000..77932423 --- /dev/null +++ b/src/versions/v1/models/delete-organization-relationship-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteOrganizationRelationshipResponseAllOf } from './delete-organization-relationship-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteOrganizationRelationshipResponseAllOfData } from './delete-organization-relationship-response-all-of-data'; + +/** + * @type DeleteOrganizationRelationshipResponse + * @export + */ +export type DeleteOrganizationRelationshipResponse = BaseResponse & DeleteOrganizationRelationshipResponseAllOf; + + diff --git a/src/versions/v1/models/delete-organization-response-data.ts b/src/versions/v1/models/delete-organization-response-data.ts new file mode 100644 index 00000000..d8063892 --- /dev/null +++ b/src/versions/v1/models/delete-organization-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteOrganizationResponseData +*/ +export interface DeleteOrganizationResponseData { + /** + * The ID of the organization that was deleted + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-organization-response.ts b/src/versions/v1/models/delete-organization-response.ts new file mode 100644 index 00000000..95c8a9dd --- /dev/null +++ b/src/versions/v1/models/delete-organization-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteOrganizationResponseData } from './delete-organization-response-data'; + +/** +* +* @export +* @interface DeleteOrganizationResponse +*/ +export interface DeleteOrganizationResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {DeleteOrganizationResponseData} + */ + 'data': DeleteOrganizationResponseData; +} + diff --git a/src/versions/v1/models/delete-organizations-response-data.ts b/src/versions/v1/models/delete-organizations-response-data.ts new file mode 100644 index 00000000..0d921506 --- /dev/null +++ b/src/versions/v1/models/delete-organizations-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteOrganizationsResponseData +*/ +export interface DeleteOrganizationsResponseData { + /** + * The IDs of the organizations that were deleted + * @type {Array} + */ + 'id'?: Array; +} + diff --git a/src/versions/v1/models/delete-organizations-response.ts b/src/versions/v1/models/delete-organizations-response.ts new file mode 100644 index 00000000..ab44df6a --- /dev/null +++ b/src/versions/v1/models/delete-organizations-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteOrganizationsResponseData } from './delete-organizations-response-data'; + +/** +* +* @export +* @interface DeleteOrganizationsResponse +*/ +export interface DeleteOrganizationsResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {DeleteOrganizationsResponseData} + */ + 'data': DeleteOrganizationsResponseData; +} + diff --git a/src/versions/v1/models/delete-person-response-all-of-data.ts b/src/versions/v1/models/delete-person-response-all-of-data.ts new file mode 100644 index 00000000..80b1ae29 --- /dev/null +++ b/src/versions/v1/models/delete-person-response-all-of-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeletePersonResponseAllOfData +*/ +export interface DeletePersonResponseAllOfData { + /** + * The ID of the deleted person + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-person-response-all-of.ts b/src/versions/v1/models/delete-person-response-all-of.ts new file mode 100644 index 00000000..6beff456 --- /dev/null +++ b/src/versions/v1/models/delete-person-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeletePersonResponseAllOfData } from './delete-person-response-all-of-data'; + +/** +* +* @export +* @interface DeletePersonResponseAllOf +*/ +export interface DeletePersonResponseAllOf { + /** + * + * @type {DeletePersonResponseAllOfData} + */ + 'data': DeletePersonResponseAllOfData; +} + diff --git a/src/versions/v1/models/delete-person-response.ts b/src/versions/v1/models/delete-person-response.ts new file mode 100644 index 00000000..6d76c996 --- /dev/null +++ b/src/versions/v1/models/delete-person-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeletePersonResponseAllOf } from './delete-person-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DeletePersonResponseAllOfData } from './delete-person-response-all-of-data'; + +/** + * @type DeletePersonResponse + * @export + */ +export type DeletePersonResponse = BaseResponse & DeletePersonResponseAllOf; + + diff --git a/src/versions/v1/models/delete-persons-response-all-of-data.ts b/src/versions/v1/models/delete-persons-response-all-of-data.ts new file mode 100644 index 00000000..c189733e --- /dev/null +++ b/src/versions/v1/models/delete-persons-response-all-of-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeletePersonsResponseAllOfData +*/ +export interface DeletePersonsResponseAllOfData { + /** + * The list of deleted persons IDs + * @type {Array} + */ + 'id'?: Array; +} + diff --git a/src/versions/v1/models/delete-persons-response-all-of.ts b/src/versions/v1/models/delete-persons-response-all-of.ts new file mode 100644 index 00000000..8d8fcbf0 --- /dev/null +++ b/src/versions/v1/models/delete-persons-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeletePersonsResponseAllOfData } from './delete-persons-response-all-of-data'; + +/** +* +* @export +* @interface DeletePersonsResponseAllOf +*/ +export interface DeletePersonsResponseAllOf { + /** + * + * @type {DeletePersonsResponseAllOfData} + */ + 'data': DeletePersonsResponseAllOfData; +} + diff --git a/src/versions/v1/models/delete-persons-response.ts b/src/versions/v1/models/delete-persons-response.ts new file mode 100644 index 00000000..2e0a7875 --- /dev/null +++ b/src/versions/v1/models/delete-persons-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeletePersonsResponseAllOf } from './delete-persons-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DeletePersonsResponseAllOfData } from './delete-persons-response-all-of-data'; + +/** + * @type DeletePersonsResponse + * @export + */ +export type DeletePersonsResponse = BaseResponse & DeletePersonsResponseAllOf; + + diff --git a/src/versions/v1/models/delete-pipeline-response-data.ts b/src/versions/v1/models/delete-pipeline-response-data.ts new file mode 100644 index 00000000..badf0de0 --- /dev/null +++ b/src/versions/v1/models/delete-pipeline-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeletePipelineResponseData +*/ +export interface DeletePipelineResponseData { + /** + * Deleted Pipeline ID + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-pipeline-response.ts b/src/versions/v1/models/delete-pipeline-response.ts new file mode 100644 index 00000000..f2c2a1bc --- /dev/null +++ b/src/versions/v1/models/delete-pipeline-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeletePipelineResponseData } from './delete-pipeline-response-data'; + +/** +* +* @export +* @interface DeletePipelineResponse +*/ +export interface DeletePipelineResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeletePipelineResponseData} + */ + 'data'?: DeletePipelineResponseData; +} + diff --git a/src/versions/v1/models/delete-product-field-response.ts b/src/versions/v1/models/delete-product-field-response.ts new file mode 100644 index 00000000..53a57a18 --- /dev/null +++ b/src/versions/v1/models/delete-product-field-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteProductResponseData } from './delete-product-response-data'; + +/** +* +* @export +* @interface DeleteProductFieldResponse +*/ +export interface DeleteProductFieldResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {DeleteProductResponseData} + */ + 'data': DeleteProductResponseData; +} + diff --git a/src/versions/v1/models/delete-product-fields-response-data.ts b/src/versions/v1/models/delete-product-fields-response-data.ts new file mode 100644 index 00000000..fb74aa58 --- /dev/null +++ b/src/versions/v1/models/delete-product-fields-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteProductFieldsResponseData +*/ +export interface DeleteProductFieldsResponseData { + /** + * Array of all the IDs of the deleted product fields + * @type {Array} + */ + 'id'?: Array; +} + diff --git a/src/versions/v1/models/delete-product-fields-response.ts b/src/versions/v1/models/delete-product-fields-response.ts new file mode 100644 index 00000000..d63fea05 --- /dev/null +++ b/src/versions/v1/models/delete-product-fields-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteProductFieldsResponseData } from './delete-product-fields-response-data'; + +/** +* +* @export +* @interface DeleteProductFieldsResponse +*/ +export interface DeleteProductFieldsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {DeleteProductFieldsResponseData} + */ + 'data': DeleteProductFieldsResponseData; +} + diff --git a/src/versions/v1/models/delete-product-follower-response.ts b/src/versions/v1/models/delete-product-follower-response.ts new file mode 100644 index 00000000..6c45d05f --- /dev/null +++ b/src/versions/v1/models/delete-product-follower-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteProductResponseData } from './delete-product-response-data'; + +/** +* +* @export +* @interface DeleteProductFollowerResponse +*/ +export interface DeleteProductFollowerResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {DeleteProductResponseData} + */ + 'data': DeleteProductResponseData; +} + diff --git a/src/versions/v1/models/delete-product-response-data.ts b/src/versions/v1/models/delete-product-response-data.ts new file mode 100644 index 00000000..a8e80641 --- /dev/null +++ b/src/versions/v1/models/delete-product-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteProductResponseData +*/ +export interface DeleteProductResponseData { + /** + * + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-product-response.ts b/src/versions/v1/models/delete-product-response.ts new file mode 100644 index 00000000..52b70d44 --- /dev/null +++ b/src/versions/v1/models/delete-product-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteProductResponseData } from './delete-product-response-data'; + +/** +* +* @export +* @interface DeleteProductResponse +*/ +export interface DeleteProductResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {DeleteProductResponseData} + */ + 'data': DeleteProductResponseData; +} + diff --git a/src/versions/v1/models/delete-project-data.ts b/src/versions/v1/models/delete-project-data.ts new file mode 100644 index 00000000..6e233b3c --- /dev/null +++ b/src/versions/v1/models/delete-project-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteProjectData +*/ +export interface DeleteProjectData { + /** + * The ID of the project that was deleted + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-project-response.ts b/src/versions/v1/models/delete-project-response.ts new file mode 100644 index 00000000..8e27881b --- /dev/null +++ b/src/versions/v1/models/delete-project-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteProject } from './delete-project'; + +/** +* +* @export +* @interface DeleteProjectResponse +*/ +export interface DeleteProjectResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteProject} + */ + 'data'?: DeleteProject; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/delete-project.ts b/src/versions/v1/models/delete-project.ts new file mode 100644 index 00000000..bb6ee895 --- /dev/null +++ b/src/versions/v1/models/delete-project.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteProjectData } from './delete-project-data'; + +/** +* +* @export +* @interface DeleteProject +*/ +export interface DeleteProject { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteProjectData} + */ + 'data'?: DeleteProjectData; +} + diff --git a/src/versions/v1/models/delete-response-all-of-data.ts b/src/versions/v1/models/delete-response-all-of-data.ts new file mode 100644 index 00000000..ebcd7115 --- /dev/null +++ b/src/versions/v1/models/delete-response-all-of-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteResponseAllOfData +*/ +export interface DeleteResponseAllOfData { + /** + * The ID of the field that was deleted + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-response-all-of.ts b/src/versions/v1/models/delete-response-all-of.ts new file mode 100644 index 00000000..3860c2f0 --- /dev/null +++ b/src/versions/v1/models/delete-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteResponseAllOfData } from './delete-response-all-of-data'; + +/** +* +* @export +* @interface DeleteResponseAllOf +*/ +export interface DeleteResponseAllOf { + /** + * + * @type {DeleteResponseAllOfData} + */ + 'data': DeleteResponseAllOfData; +} + diff --git a/src/versions/v1/models/delete-response.ts b/src/versions/v1/models/delete-response.ts new file mode 100644 index 00000000..6d92c0f2 --- /dev/null +++ b/src/versions/v1/models/delete-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteResponseAllOf } from './delete-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteResponseAllOfData } from './delete-response-all-of-data'; + +/** + * @type DeleteResponse + * @export + */ +export type DeleteResponse = BaseResponse & DeleteResponseAllOf; + + diff --git a/src/versions/v1/models/delete-role-assignment-request.ts b/src/versions/v1/models/delete-role-assignment-request.ts new file mode 100644 index 00000000..3fcd40c7 --- /dev/null +++ b/src/versions/v1/models/delete-role-assignment-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteRoleAssignmentRequest +*/ +export interface DeleteRoleAssignmentRequest { + /** + * The ID of the user + * @type {number} + */ + 'user_id': number; +} + diff --git a/src/versions/v1/models/delete-role-assignment-response-data.ts b/src/versions/v1/models/delete-role-assignment-response-data.ts new file mode 100644 index 00000000..5ac5cfdf --- /dev/null +++ b/src/versions/v1/models/delete-role-assignment-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteRoleResponseDataData } from './delete-role-response-data-data'; + +/** +* +* @export +* @interface DeleteRoleAssignmentResponseData +*/ +export interface DeleteRoleAssignmentResponseData { + /** + * + * @type {DeleteRoleResponseDataData} + */ + 'data'?: DeleteRoleResponseDataData; +} + diff --git a/src/versions/v1/models/delete-role-assignment-response.ts b/src/versions/v1/models/delete-role-assignment-response.ts new file mode 100644 index 00000000..7f0951dc --- /dev/null +++ b/src/versions/v1/models/delete-role-assignment-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteRoleAssignmentResponseData } from './delete-role-assignment-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteRoleResponseDataData } from './delete-role-response-data-data'; + +/** + * @type DeleteRoleAssignmentResponse + * @export + */ +export type DeleteRoleAssignmentResponse = BaseResponse & DeleteRoleAssignmentResponseData; + + diff --git a/src/versions/v1/models/delete-role-response-data-data.ts b/src/versions/v1/models/delete-role-response-data-data.ts new file mode 100644 index 00000000..e9836f6c --- /dev/null +++ b/src/versions/v1/models/delete-role-response-data-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The response data +* @export +* @interface DeleteRoleResponseDataData +*/ +export interface DeleteRoleResponseDataData { + /** + * + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-role-response-data.ts b/src/versions/v1/models/delete-role-response-data.ts new file mode 100644 index 00000000..eff74536 --- /dev/null +++ b/src/versions/v1/models/delete-role-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteRoleResponseDataData } from './delete-role-response-data-data'; + +/** +* +* @export +* @interface DeleteRoleResponseData +*/ +export interface DeleteRoleResponseData { + /** + * + * @type {DeleteRoleResponseDataData} + */ + 'data'?: DeleteRoleResponseDataData; +} + diff --git a/src/versions/v1/models/delete-role-response.ts b/src/versions/v1/models/delete-role-response.ts new file mode 100644 index 00000000..53d4e310 --- /dev/null +++ b/src/versions/v1/models/delete-role-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteRoleResponseData } from './delete-role-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteRoleResponseDataData } from './delete-role-response-data-data'; + +/** + * @type DeleteRoleResponse + * @export + */ +export type DeleteRoleResponse = BaseResponse & DeleteRoleResponseData; + + diff --git a/src/versions/v1/models/delete-stage-response-data.ts b/src/versions/v1/models/delete-stage-response-data.ts new file mode 100644 index 00000000..50fb85c3 --- /dev/null +++ b/src/versions/v1/models/delete-stage-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteStageResponseData +*/ +export interface DeleteStageResponseData { + /** + * Deleted stage ID + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-stage-response.ts b/src/versions/v1/models/delete-stage-response.ts new file mode 100644 index 00000000..54221ffc --- /dev/null +++ b/src/versions/v1/models/delete-stage-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteStageResponseData } from './delete-stage-response-data'; + +/** +* +* @export +* @interface DeleteStageResponse +*/ +export interface DeleteStageResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteStageResponseData} + */ + 'data'?: DeleteStageResponseData; +} + diff --git a/src/versions/v1/models/delete-stages-response-data.ts b/src/versions/v1/models/delete-stages-response-data.ts new file mode 100644 index 00000000..71c21ea8 --- /dev/null +++ b/src/versions/v1/models/delete-stages-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteStagesResponseData +*/ +export interface DeleteStagesResponseData { + /** + * The list of deleted stage IDs + * @type {Array} + */ + 'id'?: Array; +} + diff --git a/src/versions/v1/models/delete-stages-response.ts b/src/versions/v1/models/delete-stages-response.ts new file mode 100644 index 00000000..422d2046 --- /dev/null +++ b/src/versions/v1/models/delete-stages-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteStagesResponseData } from './delete-stages-response-data'; + +/** +* +* @export +* @interface DeleteStagesResponse +*/ +export interface DeleteStagesResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteStagesResponseData} + */ + 'data'?: DeleteStagesResponseData; +} + diff --git a/src/versions/v1/models/delete-task-data.ts b/src/versions/v1/models/delete-task-data.ts new file mode 100644 index 00000000..fe468b9a --- /dev/null +++ b/src/versions/v1/models/delete-task-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteTaskData +*/ +export interface DeleteTaskData { + /** + * The ID of the task that was deleted + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/delete-task-response.ts b/src/versions/v1/models/delete-task-response.ts new file mode 100644 index 00000000..f00f5f40 --- /dev/null +++ b/src/versions/v1/models/delete-task-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteTask } from './delete-task'; + +/** +* +* @export +* @interface DeleteTaskResponse +*/ +export interface DeleteTaskResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteTask} + */ + 'data'?: DeleteTask; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/delete-task.ts b/src/versions/v1/models/delete-task.ts new file mode 100644 index 00000000..6d5ce16f --- /dev/null +++ b/src/versions/v1/models/delete-task.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteTaskData } from './delete-task-data'; + +/** +* +* @export +* @interface DeleteTask +*/ +export interface DeleteTask { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteTaskData} + */ + 'data'?: DeleteTaskData; +} + diff --git a/src/versions/v1/models/delete-team-user-request.ts b/src/versions/v1/models/delete-team-user-request.ts new file mode 100644 index 00000000..08a60efb --- /dev/null +++ b/src/versions/v1/models/delete-team-user-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteTeamUserRequest +*/ +export interface DeleteTeamUserRequest { + /** + * The list of user IDs + * @type {Array} + */ + 'users': Array; +} + diff --git a/src/versions/v1/models/delete-webhook403-response-all-of.ts b/src/versions/v1/models/delete-webhook403-response-all-of.ts new file mode 100644 index 00000000..5753dd88 --- /dev/null +++ b/src/versions/v1/models/delete-webhook403-response-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteWebhook403ResponseAllOf +*/ +export interface DeleteWebhook403ResponseAllOf { + /** + * The error message + * @type {string} + */ + 'message'?: string; +} + diff --git a/src/versions/v1/models/delete-webhook403-response.ts b/src/versions/v1/models/delete-webhook403-response.ts new file mode 100644 index 00000000..23d23eea --- /dev/null +++ b/src/versions/v1/models/delete-webhook403-response.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DeleteWebhook403ResponseAllOf } from './delete-webhook403-response-all-of'; + +/** + * @type DeleteWebhook403Response + * @export + */ +export type DeleteWebhook403Response = BaseResponse & DeleteWebhook403ResponseAllOf; + + diff --git a/src/versions/v1/models/fail-response.ts b/src/versions/v1/models/fail-response.ts new file mode 100644 index 00000000..542f278e --- /dev/null +++ b/src/versions/v1/models/fail-response.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface FailResponse +*/ +export interface FailResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * The error message + * @type {string} + */ + 'error': string; +} + diff --git a/src/versions/v1/models/field.ts b/src/versions/v1/models/field.ts new file mode 100644 index 00000000..74f4d6a3 --- /dev/null +++ b/src/versions/v1/models/field.ts @@ -0,0 +1,167 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface Field +*/ +export interface Field { + /** + * The ID of the field. Value is `null` in case of subfields. + * @type {number} + */ + 'id'?: number; + /** + * The key of the field. For custom fields this is generated upon creation. + * @type {string} + */ + 'key'?: string; + /** + * The name of the field + * @type {string} + */ + 'name'?: string; + /** + * The order number of the field + * @type {number} + */ + 'order_nr'?: number; + /** + * The type of the field
ValueDescription
`address`Address field
`date`Date (format YYYY-MM-DD)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`double`Numeric value
`enum`Options field with a single possible chosen option
`monetary`Monetary field (has a numeric value and a currency value)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a person ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`set`Options field with a possibility of having multiple chosen options
`text`Long text (up to 65k characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`user`User field (contains a user ID of another Pipedrive user)
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`visible_to`System field that keeps item\'s visibility setting
+ * @type {string} + */ + 'field_type'?: FieldFieldTypeConst; + /** + * The creation time of the field + * @type {string} + */ + 'add_time'?: string; + /** + * The update time of the field + * @type {string} + */ + 'update_time'?: string; + /** + * The ID of the user who created or most recently updated the field, only applicable for custom fields + * @type {number} + */ + 'last_updated_by_user_id'?: number; + /** + * The ID of the user who created the field + * @type {number} + */ + 'created_by_user_id'?: number; + /** + * The active flag of the field + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The edit flag of the field + * @type {boolean} + */ + 'edit_flag'?: boolean; + /** + * Not used + * @type {boolean} + */ + 'index_visible_flag'?: boolean; + /** + * Not used + * @type {boolean} + */ + 'details_visible_flag'?: boolean; + /** + * Not used + * @type {boolean} + */ + 'add_visible_flag'?: boolean; + /** + * Not used + * @type {boolean} + */ + 'important_flag'?: boolean; + /** + * Whether or not the field of an item can be edited in bulk + * @type {boolean} + */ + 'bulk_edit_allowed'?: boolean; + /** + * Whether or not items can be searched by this field + * @type {boolean} + */ + 'searchable_flag'?: boolean; + /** + * Whether or not items can be filtered by this field + * @type {boolean} + */ + 'filtering_allowed'?: boolean; + /** + * Whether or not items can be sorted by this field + * @type {boolean} + */ + 'sortable_flag'?: boolean; + /** + * Whether or not the field is mandatory + * @type {boolean} + */ + 'mandatory_flag'?: boolean; + /** + * The options of the field. When there are no options, `null` is returned. + * @type {Array} + */ + 'options'?: Array | null; + /** + * The deleted options of the field. Only present when there is at least 1 deleted option. + * @type {Array} + */ + 'options_deleted'?: Array; + /** + * Whether or not the field is a subfield of another field. Only present if field is subfield. + * @type {boolean} + */ + 'is_subfield'?: boolean; + /** + * The subfields of the field. Only present when the field has subfields. + * @type {Array} + */ + 'subfields'?: Array; +} + + export const FieldFieldTypeConst = { + address: 'address', + date: 'date', + daterange: 'daterange', + double: 'double', + enum: 'enum', + monetary: 'monetary', + org: 'org', + people: 'people', + phone: 'phone', + set: 'set', + text: 'text', + time: 'time', + timerange: 'timerange', + user: 'user', + varchar: 'varchar', + varchar_auto: 'varchar_auto', + visible_to: 'visible_to' + } as const; + + export type FieldFieldTypeConst = typeof FieldFieldTypeConst[keyof typeof FieldFieldTypeConst]; + + diff --git a/src/versions/v1/models/filter.ts b/src/versions/v1/models/filter.ts new file mode 100644 index 00000000..17d9fa6a --- /dev/null +++ b/src/versions/v1/models/filter.ts @@ -0,0 +1,92 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface Filter +*/ +export interface Filter { + /** + * The ID of the created filter + * @type {number} + */ + 'id'?: number; + /** + * The name of the created filter + * @type {string} + */ + 'name'?: string; + /** + * The activity flag of the created filter + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * + * @type {string} + */ + 'type'?: FilterTypeConst; + /** + * If the created filter is temporary or not + * @type {boolean} + */ + 'temporary_flag'?: boolean; + /** + * The user ID of the created filter + * @type {number} + */ + 'user_id'?: number; + /** + * The add time of the created filter + * @type {string} + */ + 'add_time'?: string; + /** + * The update time of the created filter + * @type {string} + */ + 'update_time'?: string; + /** + * The visibility group ID of the created filter + * @type {number} + */ + 'visible_to'?: number; + /** + * The custom view ID of the created filter + * @type {number} + */ + 'custom_view_id'?: number; + /** + * The created filter conditions object + * @type {object} + */ + 'conditions'?: object; +} + + export const FilterTypeConst = { + deals: 'deals', + leads: 'leads', + org: 'org', + people: 'people', + products: 'products', + activity: 'activity', + projects: 'projects' + } as const; + + export type FilterTypeConst = typeof FilterTypeConst[keyof typeof FilterTypeConst]; + + diff --git a/src/versions/v1/models/follower-data.ts b/src/versions/v1/models/follower-data.ts new file mode 100644 index 00000000..fad4cf00 --- /dev/null +++ b/src/versions/v1/models/follower-data.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface FollowerData +*/ +export interface FollowerData { + /** + * The name of the follower + * @type {string} + */ + 'name'?: string; + /** + * The email of the follower + * @type {string} + */ + 'email'?: string; + /** + * The user ID of the follower + * @type {number} + */ + 'user_id'?: number; + /** + * The follower picture hash + * @type {string} + */ + 'pic_hash'?: string; +} + diff --git a/src/versions/v1/models/full-role-all-of.ts b/src/versions/v1/models/full-role-all-of.ts new file mode 100644 index 00000000..8dd02fad --- /dev/null +++ b/src/versions/v1/models/full-role-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface FullRoleAllOf +*/ +export interface FullRoleAllOf { + /** + * The level of role in the role hierarchy + * @type {number} + */ + 'level'?: number; +} + diff --git a/src/versions/v1/models/full-role.ts b/src/versions/v1/models/full-role.ts new file mode 100644 index 00000000..916c7831 --- /dev/null +++ b/src/versions/v1/models/full-role.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { FullRoleAllOf } from './full-role-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { SubRole } from './sub-role'; + +/** + * @type FullRole + * @export + */ +export type FullRole = FullRoleAllOf & SubRole; + + diff --git a/src/versions/v1/models/get-activities-collection-response-additional-data.ts b/src/versions/v1/models/get-activities-collection-response-additional-data.ts new file mode 100644 index 00000000..739ce853 --- /dev/null +++ b/src/versions/v1/models/get-activities-collection-response-additional-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The additional data of the list +* @export +* @interface GetActivitiesCollectionResponseAdditionalData +*/ +export interface GetActivitiesCollectionResponseAdditionalData { + /** + * The first item on the next page. The value of the `next_cursor` field will be `null` if you have reached the end of the dataset and there’s no more pages to be returned. + * @type {string} + */ + 'next_cursor'?: string; +} + diff --git a/src/versions/v1/models/get-activities-collection-response.ts b/src/versions/v1/models/get-activities-collection-response.ts new file mode 100644 index 00000000..bc2a9ee6 --- /dev/null +++ b/src/versions/v1/models/get-activities-collection-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityCollectionResponseObject } from './activity-collection-response-object'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; + +/** +* +* @export +* @interface GetActivitiesCollectionResponse +*/ +export interface GetActivitiesCollectionResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetActivitiesCollectionResponseAdditionalData} + */ + 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-activities-response-additional-data-pagination.ts b/src/versions/v1/models/get-activities-response-additional-data-pagination.ts new file mode 100644 index 00000000..9d8475c8 --- /dev/null +++ b/src/versions/v1/models/get-activities-response-additional-data-pagination.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* Pagination details of the list +* @export +* @interface GetActivitiesResponseAdditionalDataPagination +*/ +export interface GetActivitiesResponseAdditionalDataPagination { + /** + * Pagination start + * @type {number} + */ + 'start'?: number; + /** + * Items shown per page + * @type {number} + */ + 'limit'?: number; + /** + * Whether there are more list items in the collection than displayed + * @type {boolean} + */ + 'more_items_in_collection'?: boolean; + /** + * Next pagination start + * @type {number} + */ + 'next_start'?: number; +} + diff --git a/src/versions/v1/models/get-activities-response-additional-data.ts b/src/versions/v1/models/get-activities-response-additional-data.ts new file mode 100644 index 00000000..f9b9d560 --- /dev/null +++ b/src/versions/v1/models/get-activities-response-additional-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalDataPagination } from './get-activities-response-additional-data-pagination'; + +/** +* +* @export +* @interface GetActivitiesResponseAdditionalData +*/ +export interface GetActivitiesResponseAdditionalData { + /** + * + * @type {GetActivitiesResponseAdditionalDataPagination} + */ + 'pagination'?: GetActivitiesResponseAdditionalDataPagination; +} + diff --git a/src/versions/v1/models/get-activities-response-related-objects-person.ts b/src/versions/v1/models/get-activities-response-related-objects-person.ts new file mode 100644 index 00000000..5e452982 --- /dev/null +++ b/src/versions/v1/models/get-activities-response-related-objects-person.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PersonDataWithID } from './person-data-with-id'; + +/** +* +* @export +* @interface GetActivitiesResponseRelatedObjectsPerson +*/ +export interface GetActivitiesResponseRelatedObjectsPerson { + /** + * + * @type {PersonDataWithID} + */ + 'PERSON_ID'?: PersonDataWithID; +} + diff --git a/src/versions/v1/models/get-activities-response-related-objects-user.ts b/src/versions/v1/models/get-activities-response-related-objects-user.ts new file mode 100644 index 00000000..3432d519 --- /dev/null +++ b/src/versions/v1/models/get-activities-response-related-objects-user.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UserDataWithId } from './user-data-with-id'; + +/** +* +* @export +* @interface GetActivitiesResponseRelatedObjectsUser +*/ +export interface GetActivitiesResponseRelatedObjectsUser { + /** + * + * @type {UserDataWithId} + */ + 'USER_ID'?: UserDataWithId; +} + diff --git a/src/versions/v1/models/get-activities-response-related-objects.ts b/src/versions/v1/models/get-activities-response-related-objects.ts new file mode 100644 index 00000000..e353168a --- /dev/null +++ b/src/versions/v1/models/get-activities-response-related-objects.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsPerson } from './get-activities-response-related-objects-person'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedDealData } from './related-deal-data'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedOrganizationData } from './related-organization-data'; + +/** +* +* @export +* @interface GetActivitiesResponseRelatedObjects +*/ +export interface GetActivitiesResponseRelatedObjects { + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; + /** + * + * @type {RelatedDealData} + */ + 'deal'?: RelatedDealData; + /** + * + * @type {GetActivitiesResponseRelatedObjectsPerson} + */ + 'person'?: GetActivitiesResponseRelatedObjectsPerson; + /** + * + * @type {RelatedOrganizationData} + */ + 'organization'?: RelatedOrganizationData; +} + diff --git a/src/versions/v1/models/get-activities-response.ts b/src/versions/v1/models/get-activities-response.ts new file mode 100644 index 00000000..b0b92b82 --- /dev/null +++ b/src/versions/v1/models/get-activities-response.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Activity } from './activity'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjects } from './get-activities-response-related-objects'; + +/** +* +* @export +* @interface GetActivitiesResponse +*/ +export interface GetActivitiesResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data'?: GetActivitiesResponseAdditionalData; + /** + * + * @type {GetActivitiesResponseRelatedObjects} + */ + 'related_objects'?: GetActivitiesResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/get-activity-response.ts b/src/versions/v1/models/get-activity-response.ts new file mode 100644 index 00000000..0114fa2e --- /dev/null +++ b/src/versions/v1/models/get-activity-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Activity } from './activity'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjects } from './get-activities-response-related-objects'; + +/** +* +* @export +* @interface GetActivityResponse +*/ +export interface GetActivityResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Activity} + */ + 'data'?: Activity; + /** + * + * @type {GetActivitiesResponseRelatedObjects} + */ + 'related_objects'?: GetActivitiesResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/get-activity-types-response-all-of.ts b/src/versions/v1/models/get-activity-types-response-all-of.ts new file mode 100644 index 00000000..79082b84 --- /dev/null +++ b/src/versions/v1/models/get-activity-types-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityType } from './activity-type'; + +/** +* +* @export +* @interface GetActivityTypesResponseAllOf +*/ +export interface GetActivityTypesResponseAllOf { + /** + * The array of activity types + * @type {Array} + */ + 'data': Array; +} + diff --git a/src/versions/v1/models/get-activity-types-response.ts b/src/versions/v1/models/get-activity-types-response.ts new file mode 100644 index 00000000..123382a6 --- /dev/null +++ b/src/versions/v1/models/get-activity-types-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityType } from './activity-type'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivityTypesResponseAllOf } from './get-activity-types-response-all-of'; + +/** + * @type GetActivityTypesResponse + * @export + */ +export type GetActivityTypesResponse = BaseResponse & GetActivityTypesResponseAllOf; + + diff --git a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of-all-of.ts b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of-all-of.ts new file mode 100644 index 00000000..83dd9eca --- /dev/null +++ b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of-all-of.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetAddProductAttachmentDetailsResponseDataAllOfAllOfAllOf +*/ +export interface GetAddProductAttachmentDetailsResponseDataAllOfAllOfAllOf { + /** + * The ID of the deal-product (the ID of the product attached to the deal) + * @type {number} + */ + 'id'?: number; + /** + * The ID of the company + * @type {number} + */ + 'company_id'?: number; + /** + * The ID of the deal + * @type {number} + */ + 'deal_id'?: number; + /** + * The ID of the product + * @type {number} + */ + 'product_id'?: number; + /** + * The sum of all the products attached to the deal + * @type {number} + */ + 'sum'?: number; + /** + * The currency associated with the deal product + * @type {string} + */ + 'currency'?: string; + /** + * The date and time when the product was added to the deal + * @type {string} + */ + 'add_time'?: string; + /** + * The date and time when the deal product was last edited + * @type {string} + */ + 'last_edit'?: string; + /** + * Whether the product is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The product tax + * @type {number} + */ + 'tax'?: number; + /** + * The product name + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of.ts b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of.ts new file mode 100644 index 00000000..c9397125 --- /dev/null +++ b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasicDealProductRequest } from './basic-deal-product-request'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAddProductAttachmentDetailsResponseDataAllOfAllOfAllOf } from './get-add-product-attachment-details-response-data-all-of-all-of-all-of'; + +/** + * @type GetAddProductAttachmentDetailsResponseDataAllOfAllOf + * @export + */ +export type GetAddProductAttachmentDetailsResponseDataAllOfAllOf = BasicDealProductRequest & GetAddProductAttachmentDetailsResponseDataAllOfAllOfAllOf; + + diff --git a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of1.ts b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of1.ts new file mode 100644 index 00000000..50055f89 --- /dev/null +++ b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of-all-of1.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetAddProductAttachmentDetailsResponseDataAllOfAllOf1 +*/ +export interface GetAddProductAttachmentDetailsResponseDataAllOfAllOf1 { + /** + * The ID of the deal-product (the ID of the product attached to the deal) + * @type {number} + */ + 'product_attachment_id'?: number; +} + diff --git a/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of.ts b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of.ts new file mode 100644 index 00000000..a2dbf4eb --- /dev/null +++ b/src/versions/v1/models/get-add-product-attachment-details-response-data-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAddProductAttachmentDetailsResponseDataAllOfAllOf } from './get-add-product-attachment-details-response-data-all-of-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAddProductAttachmentDetailsResponseDataAllOfAllOf1 } from './get-add-product-attachment-details-response-data-all-of-all-of1'; + +/** + * @type GetAddProductAttachmentDetailsResponseDataAllOf + * @export + */ +export type GetAddProductAttachmentDetailsResponseDataAllOf = GetAddProductAttachmentDetailsResponseDataAllOfAllOf & GetAddProductAttachmentDetailsResponseDataAllOfAllOf1; + + diff --git a/src/versions/v1/models/get-add-product-attachment-details-response-data.ts b/src/versions/v1/models/get-add-product-attachment-details-response-data.ts new file mode 100644 index 00000000..dfbfdb1a --- /dev/null +++ b/src/versions/v1/models/get-add-product-attachment-details-response-data.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAddProductAttachmentDetailsResponseDataAllOf } from './get-add-product-attachment-details-response-data-all-of'; + +/** + * @type GetAddProductAttachmentDetailsResponseData + * The added product object attached to the deal + * @export + */ +export type GetAddProductAttachmentDetailsResponseData = GetAddProductAttachmentDetailsResponseDataAllOf; + + diff --git a/src/versions/v1/models/get-add-product-attachment-details-response.ts b/src/versions/v1/models/get-add-product-attachment-details-response.ts new file mode 100644 index 00000000..4f962b4f --- /dev/null +++ b/src/versions/v1/models/get-add-product-attachment-details-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAddProductAttachmentDetailsResponseData } from './get-add-product-attachment-details-response-data'; + +/** +* +* @export +* @interface GetAddProductAttachmentDetailsResponse +*/ +export interface GetAddProductAttachmentDetailsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetAddProductAttachmentDetailsResponseData} + */ + 'data'?: GetAddProductAttachmentDetailsResponseData; +} + diff --git a/src/versions/v1/models/get-added-deal-response.ts b/src/versions/v1/models/get-added-deal-response.ts new file mode 100644 index 00000000..dff0ccb4 --- /dev/null +++ b/src/versions/v1/models/get-added-deal-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Deal } from './deal'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsResponseRelatedObjects } from './get-deals-response-related-objects'; + +/** +* +* @export +* @interface GetAddedDealResponse +*/ +export interface GetAddedDealResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Deal} + */ + 'data'?: Deal; + /** + * + * @type {GetDealsResponseRelatedObjects} + */ + 'related_objects'?: GetDealsResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/get-associated-activities-response-all-of.ts b/src/versions/v1/models/get-associated-activities-response-all-of.ts new file mode 100644 index 00000000..f90ded83 --- /dev/null +++ b/src/versions/v1/models/get-associated-activities-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Activity } from './activity'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityDistributionDataWithAdditionalData } from './activity-distribution-data-with-additional-data'; + +/** +* +* @export +* @interface GetAssociatedActivitiesResponseAllOf +*/ +export interface GetAssociatedActivitiesResponseAllOf { + /** + * The array of activities + * @type {Array} + */ + 'data': Array; + /** + * + * @type {ActivityDistributionDataWithAdditionalData} + */ + 'additional_data': ActivityDistributionDataWithAdditionalData; +} + diff --git a/src/versions/v1/models/get-associated-activities-response.ts b/src/versions/v1/models/get-associated-activities-response.ts new file mode 100644 index 00000000..e5bde18c --- /dev/null +++ b/src/versions/v1/models/get-associated-activities-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Activity } from './activity'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityDistributionDataWithAdditionalData } from './activity-distribution-data-with-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedActivitiesResponseAllOf } from './get-associated-activities-response-all-of'; + +/** + * @type GetAssociatedActivitiesResponse + * @export + */ +export type GetAssociatedActivitiesResponse = BaseResponse & GetAssociatedActivitiesResponseAllOf; + + diff --git a/src/versions/v1/models/get-associated-deals-response-all-of-related-objects.ts b/src/versions/v1/models/get-associated-deals-response-all-of-related-objects.ts new file mode 100644 index 00000000..31077857 --- /dev/null +++ b/src/versions/v1/models/get-associated-deals-response-all-of-related-objects.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; +// May contain unused imports in some cases +// @ts-ignore +import { BasePipeline } from './base-pipeline'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseStage } from './base-stage'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; + +/** +* +* @export +* @interface GetAssociatedDealsResponseAllOfRelatedObjects +*/ +export interface GetAssociatedDealsResponseAllOfRelatedObjects { + /** + * + * @type {RelatedOrganizationDataWithActiveFlag} + */ + 'organization'?: RelatedOrganizationDataWithActiveFlag; + /** + * + * @type {AddActivityResponseRelatedObjectsPerson} + */ + 'person'?: AddActivityResponseRelatedObjectsPerson; + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; + /** + * + * @type {BaseStage} + */ + 'stage'?: BaseStage; + /** + * + * @type {BasePipeline} + */ + 'pipeline'?: BasePipeline; +} + diff --git a/src/versions/v1/models/get-associated-deals-response-all-of.ts b/src/versions/v1/models/get-associated-deals-response-all-of.ts new file mode 100644 index 00000000..ba58fbdb --- /dev/null +++ b/src/versions/v1/models/get-associated-deals-response-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Deal } from './deal'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedDealsResponseAllOfRelatedObjects } from './get-associated-deals-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetAssociatedDealsResponseAllOf +*/ +export interface GetAssociatedDealsResponseAllOf { + /** + * The array of deals + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; + /** + * + * @type {GetAssociatedDealsResponseAllOfRelatedObjects} + */ + 'related_objects': GetAssociatedDealsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-associated-deals-response.ts b/src/versions/v1/models/get-associated-deals-response.ts new file mode 100644 index 00000000..c42a7869 --- /dev/null +++ b/src/versions/v1/models/get-associated-deals-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { Deal } from './deal'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedDealsResponseAllOf } from './get-associated-deals-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedDealsResponseAllOfRelatedObjects } from './get-associated-deals-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** + * @type GetAssociatedDealsResponse + * @export + */ +export type GetAssociatedDealsResponse = BaseResponse & GetAssociatedDealsResponseAllOf; + + diff --git a/src/versions/v1/models/get-associated-files-response-all-of-data-inner.ts b/src/versions/v1/models/get-associated-files-response-all-of-data-inner.ts new file mode 100644 index 00000000..3e095b92 --- /dev/null +++ b/src/versions/v1/models/get-associated-files-response-all-of-data-inner.ts @@ -0,0 +1,164 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The file data +* @export +* @interface GetAssociatedFilesResponseAllOfDataInner +*/ +export interface GetAssociatedFilesResponseAllOfDataInner { + /** + * The ID of the file + * @type {number} + */ + 'id'?: number; + /** + * The ID of the user to associate the file with + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the deal to associate the file with + * @type {number} + */ + 'deal_id'?: number; + /** + * The ID of the person to associate the file with + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization to associate the file with + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the product to associate the file with + * @type {number} + */ + 'product_id'?: number; + /** + * The ID of the activity to associate the file with + * @type {number} + */ + 'activity_id'?: number; + /** + * The ID of the lead to associate the file with + * @type {string} + */ + 'lead_id'?: string; + /** + * The date and time when the file was added/created. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the file. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'update_time'?: string; + /** + * The original name of the file + * @type {string} + */ + 'file_name'?: string; + /** + * The size of the file + * @type {number} + */ + 'file_size'?: number; + /** + * Whether the user is active or not. false = Not activated, true = Activated + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * Whether the file was uploaded as inline or not + * @type {boolean} + */ + 'inline_flag'?: boolean; + /** + * The location type to send the file to. Only googledrive is supported at the moment. + * @type {string} + */ + 'remote_location'?: string; + /** + * The ID of the remote item + * @type {string} + */ + 'remote_id'?: string; + /** + * The ID of the inline attachment + * @type {string} + */ + 'cid'?: string; + /** + * The location of the cloud storage + * @type {string} + */ + 's3_bucket'?: string; + /** + * The ID of the mail message to associate the file with + * @type {string} + */ + 'mail_message_id'?: string; + /** + * The ID of the mail template to associate the file with + * @type {string} + */ + 'mail_template_id'?: string; + /** + * The name of the deal associated with the dile + * @type {string} + */ + 'deal_name'?: string; + /** + * The name of the person associated with the file + * @type {string} + */ + 'person_name'?: string; + /** + * The name of the organization associated with the file + * @type {string} + */ + 'org_name'?: string; + /** + * The name of the product associated with the file + * @type {string} + */ + 'product_name'?: string; + /** + * The name of the lead associated with the file + * @type {string} + */ + 'lead_name'?: string; + /** + * The URL of the download file + * @type {string} + */ + 'url'?: string; + /** + * The visible name of the file + * @type {string} + */ + 'name'?: string; + /** + * The description of the file + * @type {string} + */ + 'description'?: string; +} + diff --git a/src/versions/v1/models/get-associated-files-response-all-of.ts b/src/versions/v1/models/get-associated-files-response-all-of.ts new file mode 100644 index 00000000..fd8551d7 --- /dev/null +++ b/src/versions/v1/models/get-associated-files-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedFilesResponseAllOfDataInner } from './get-associated-files-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetAssociatedFilesResponseAllOf +*/ +export interface GetAssociatedFilesResponseAllOf { + /** + * The array of files + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-associated-files-response.ts b/src/versions/v1/models/get-associated-files-response.ts new file mode 100644 index 00000000..360faf00 --- /dev/null +++ b/src/versions/v1/models/get-associated-files-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedFilesResponseAllOf } from './get-associated-files-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedFilesResponseAllOfDataInner } from './get-associated-files-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** + * @type GetAssociatedFilesResponse + * @export + */ +export type GetAssociatedFilesResponse = BaseResponse & GetAssociatedFilesResponseAllOf; + + diff --git a/src/versions/v1/models/get-associated-followers-response-data-inner-all-of.ts b/src/versions/v1/models/get-associated-followers-response-data-inner-all-of.ts new file mode 100644 index 00000000..85259934 --- /dev/null +++ b/src/versions/v1/models/get-associated-followers-response-data-inner-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetAssociatedFollowersResponseDataInnerAllOf +*/ +export interface GetAssociatedFollowersResponseDataInnerAllOf { + /** + * The ID of the organization + * @type {number} + */ + 'org_id'?: number; +} + diff --git a/src/versions/v1/models/get-associated-followers-response-data-inner-all-of1.ts b/src/versions/v1/models/get-associated-followers-response-data-inner-all-of1.ts new file mode 100644 index 00000000..b9268fe2 --- /dev/null +++ b/src/versions/v1/models/get-associated-followers-response-data-inner-all-of1.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetAssociatedFollowersResponseDataInnerAllOf1 +*/ +export interface GetAssociatedFollowersResponseDataInnerAllOf1 { + /** + * The user ID of the follower related to the item + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the follower + * @type {number} + */ + 'id'?: number; + /** + * The date and time of adding the follower to the item + * @type {string} + */ + 'add_time'?: string; +} + diff --git a/src/versions/v1/models/get-associated-followers-response-data-inner.ts b/src/versions/v1/models/get-associated-followers-response-data-inner.ts new file mode 100644 index 00000000..897f1fff --- /dev/null +++ b/src/versions/v1/models/get-associated-followers-response-data-inner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedFollowersResponseDataInnerAllOf } from './get-associated-followers-response-data-inner-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedFollowersResponseDataInnerAllOf1 } from './get-associated-followers-response-data-inner-all-of1'; + +/** + * @type GetAssociatedFollowersResponseDataInner + * @export + */ +export type GetAssociatedFollowersResponseDataInner = GetAssociatedFollowersResponseDataInnerAllOf & GetAssociatedFollowersResponseDataInnerAllOf1; + + diff --git a/src/versions/v1/models/get-associated-followers-response.ts b/src/versions/v1/models/get-associated-followers-response.ts new file mode 100644 index 00000000..188c5f6c --- /dev/null +++ b/src/versions/v1/models/get-associated-followers-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedFollowersResponseDataInner } from './get-associated-followers-response-data-inner'; + +/** +* +* @export +* @interface GetAssociatedFollowersResponse +*/ +export interface GetAssociatedFollowersResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * The array of followers + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data': GetActivitiesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-associated-mail-messages-response-all-of-data-inner.ts b/src/versions/v1/models/get-associated-mail-messages-response-all-of-data-inner.ts new file mode 100644 index 00000000..c7937715 --- /dev/null +++ b/src/versions/v1/models/get-associated-mail-messages-response-all-of-data-inner.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailMessageItemForList } from './mail-message-item-for-list'; + +/** +* +* @export +* @interface GetAssociatedMailMessagesResponseAllOfDataInner +*/ +export interface GetAssociatedMailMessagesResponseAllOfDataInner { + /** + * The type of the data item + * @type {string} + */ + 'object'?: string; + /** + * The date and time when the item was created + * @type {string} + */ + 'timestamp'?: string; + /** + * + * @type {MailMessageItemForList} + */ + 'data'?: MailMessageItemForList; +} + diff --git a/src/versions/v1/models/get-associated-mail-messages-response-all-of.ts b/src/versions/v1/models/get-associated-mail-messages-response-all-of.ts new file mode 100644 index 00000000..217aaae3 --- /dev/null +++ b/src/versions/v1/models/get-associated-mail-messages-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedMailMessagesResponseAllOfDataInner } from './get-associated-mail-messages-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetAssociatedMailMessagesResponseAllOf +*/ +export interface GetAssociatedMailMessagesResponseAllOf { + /** + * The array of mail messages + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-associated-mail-messages-response.ts b/src/versions/v1/models/get-associated-mail-messages-response.ts new file mode 100644 index 00000000..d216cc5e --- /dev/null +++ b/src/versions/v1/models/get-associated-mail-messages-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedMailMessagesResponseAllOf } from './get-associated-mail-messages-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedMailMessagesResponseAllOfDataInner } from './get-associated-mail-messages-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** + * @type GetAssociatedMailMessagesResponse + * @export + */ +export type GetAssociatedMailMessagesResponse = BaseResponse & GetAssociatedMailMessagesResponseAllOf; + + diff --git a/src/versions/v1/models/get-associated-organization-updates-response-all-of-data-inner.ts b/src/versions/v1/models/get-associated-organization-updates-response-all-of-data-inner.ts new file mode 100644 index 00000000..c07f502a --- /dev/null +++ b/src/versions/v1/models/get-associated-organization-updates-response-all-of-data-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetAssociatedOrganizationUpdatesResponseAllOfDataInner +*/ +export interface GetAssociatedOrganizationUpdatesResponseAllOfDataInner { + /** + * The type of the person update. (Possible object types - organizationChange, dealChange, file, activity) + * @type {string} + */ + 'object'?: string; + /** + * The creation date and time of the update + * @type {string} + */ + 'timestamp'?: string; + /** + * The data related to the update + * @type {object} + */ + 'data'?: object; +} + diff --git a/src/versions/v1/models/get-associated-organization-updates-response-all-of-related-objects.ts b/src/versions/v1/models/get-associated-organization-updates-response-all-of-related-objects.ts new file mode 100644 index 00000000..d3a47069 --- /dev/null +++ b/src/versions/v1/models/get-associated-organization-updates-response-all-of-related-objects.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedOrganizationData } from './related-organization-data'; + +/** +* +* @export +* @interface GetAssociatedOrganizationUpdatesResponseAllOfRelatedObjects +*/ +export interface GetAssociatedOrganizationUpdatesResponseAllOfRelatedObjects { + /** + * + * @type {RelatedOrganizationData} + */ + 'organization'?: RelatedOrganizationData; + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; +} + diff --git a/src/versions/v1/models/get-associated-organization-updates-response-all-of.ts b/src/versions/v1/models/get-associated-organization-updates-response-all-of.ts new file mode 100644 index 00000000..36e6d51a --- /dev/null +++ b/src/versions/v1/models/get-associated-organization-updates-response-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedOrganizationUpdatesResponseAllOfDataInner } from './get-associated-organization-updates-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedOrganizationUpdatesResponseAllOfRelatedObjects } from './get-associated-organization-updates-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetAssociatedOrganizationUpdatesResponseAllOf +*/ +export interface GetAssociatedOrganizationUpdatesResponseAllOf { + /** + * + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; + /** + * + * @type {GetAssociatedOrganizationUpdatesResponseAllOfRelatedObjects} + */ + 'related_objects': GetAssociatedOrganizationUpdatesResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-associated-organization-updates-response.ts b/src/versions/v1/models/get-associated-organization-updates-response.ts new file mode 100644 index 00000000..5db57ff8 --- /dev/null +++ b/src/versions/v1/models/get-associated-organization-updates-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedOrganizationUpdatesResponseAllOf } from './get-associated-organization-updates-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedOrganizationUpdatesResponseAllOfDataInner } from './get-associated-organization-updates-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedOrganizationUpdatesResponseAllOfRelatedObjects } from './get-associated-organization-updates-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** + * @type GetAssociatedOrganizationUpdatesResponse + * @export + */ +export type GetAssociatedOrganizationUpdatesResponse = BaseResponse & GetAssociatedOrganizationUpdatesResponseAllOf; + + diff --git a/src/versions/v1/models/get-associated-person-updates-response-all-of-data-inner.ts b/src/versions/v1/models/get-associated-person-updates-response-all-of-data-inner.ts new file mode 100644 index 00000000..6180f68a --- /dev/null +++ b/src/versions/v1/models/get-associated-person-updates-response-all-of-data-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetAssociatedPersonUpdatesResponseAllOfDataInner +*/ +export interface GetAssociatedPersonUpdatesResponseAllOfDataInner { + /** + * The type of the person update. (Possible object types - personChange, note, activity, file) + * @type {string} + */ + 'object'?: string; + /** + * The creation date and time of the update + * @type {string} + */ + 'timestamp'?: string; + /** + * The data related to the update + * @type {object} + */ + 'data'?: object; +} + diff --git a/src/versions/v1/models/get-associated-person-updates-response-all-of.ts b/src/versions/v1/models/get-associated-person-updates-response-all-of.ts new file mode 100644 index 00000000..b035537d --- /dev/null +++ b/src/versions/v1/models/get-associated-person-updates-response-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedPersonUpdatesResponseAllOfDataInner } from './get-associated-person-updates-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealUpdatesResponseAllOfRelatedObjects } from './get-deal-updates-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetAssociatedPersonUpdatesResponseAllOf +*/ +export interface GetAssociatedPersonUpdatesResponseAllOf { + /** + * + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; + /** + * + * @type {GetDealUpdatesResponseAllOfRelatedObjects} + */ + 'related_objects': GetDealUpdatesResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-associated-person-updates-response.ts b/src/versions/v1/models/get-associated-person-updates-response.ts new file mode 100644 index 00000000..30f3d7e7 --- /dev/null +++ b/src/versions/v1/models/get-associated-person-updates-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedPersonUpdatesResponseAllOf } from './get-associated-person-updates-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedPersonUpdatesResponseAllOfDataInner } from './get-associated-person-updates-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealUpdatesResponseAllOfRelatedObjects } from './get-deal-updates-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** + * @type GetAssociatedPersonUpdatesResponse + * @export + */ +export type GetAssociatedPersonUpdatesResponse = BaseResponse & GetAssociatedPersonUpdatesResponseAllOf; + + diff --git a/src/versions/v1/models/get-associated-product-files-response-all-of-data-inner.ts b/src/versions/v1/models/get-associated-product-files-response-all-of-data-inner.ts new file mode 100644 index 00000000..a142dd54 --- /dev/null +++ b/src/versions/v1/models/get-associated-product-files-response-all-of-data-inner.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The file data +* @export +* @interface GetAssociatedProductFilesResponseAllOfDataInner +*/ +export interface GetAssociatedProductFilesResponseAllOfDataInner { + /** + * The ID of the file + * @type {number} + */ + 'id'?: number; + /** + * The ID of the product associated with the file + * @type {number} + */ + 'product_id'?: number; + /** + * The UTC date time when the file was uploaded. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; + /** + * The UTC date time when the file was last updated. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'update_time'?: string; + /** + * The original name of the file + * @type {string} + */ + 'file_name'?: string; + /** + * The size of the file in bytes + * @type {number} + */ + 'file_size'?: number; + /** + * Whether the user is active or not. + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * Whether the file was uploaded as inline or not + * @type {boolean} + */ + 'inline_flag'?: boolean; + /** + * The location type to send the file to. Only googledrive is supported at the moment. + * @type {string} + */ + 'remote_location'?: string; + /** + * The ID of the remote item + * @type {string} + */ + 'remote_id'?: string; + /** + * The location of the cloud storage + * @type {string} + */ + 's3_bucket'?: string; + /** + * The name of the product associated with the file + * @type {string} + */ + 'product_name'?: string; + /** + * The URL to download the file + * @type {string} + */ + 'url'?: string; + /** + * The visible name of the file + * @type {string} + */ + 'name'?: string; + /** + * The description of the file + * @type {string} + */ + 'description'?: string; +} + diff --git a/src/versions/v1/models/get-associated-product-files-response-all-of.ts b/src/versions/v1/models/get-associated-product-files-response-all-of.ts new file mode 100644 index 00000000..903d1c9f --- /dev/null +++ b/src/versions/v1/models/get-associated-product-files-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedProductFilesResponseAllOfDataInner } from './get-associated-product-files-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetAssociatedProductFilesResponseAllOf +*/ +export interface GetAssociatedProductFilesResponseAllOf { + /** + * The array of files + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-associated-product-files-response.ts b/src/versions/v1/models/get-associated-product-files-response.ts new file mode 100644 index 00000000..303bccd5 --- /dev/null +++ b/src/versions/v1/models/get-associated-product-files-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedProductFilesResponseAllOf } from './get-associated-product-files-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedProductFilesResponseAllOfDataInner } from './get-associated-product-files-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** + * @type GetAssociatedProductFilesResponse + * @export + */ +export type GetAssociatedProductFilesResponse = BaseResponse & GetAssociatedProductFilesResponseAllOf; + + diff --git a/src/versions/v1/models/get-call-log-response.ts b/src/versions/v1/models/get-call-log-response.ts new file mode 100644 index 00000000..b5e0e2bd --- /dev/null +++ b/src/versions/v1/models/get-call-log-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ResponseCallLogObject } from './response-call-log-object'; + +/** +* +* @export +* @interface GetCallLogResponse +*/ +export interface GetCallLogResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {ResponseCallLogObject} + */ + 'data': ResponseCallLogObject; +} + diff --git a/src/versions/v1/models/get-call-logs-response-additional-data.ts b/src/versions/v1/models/get-call-logs-response-additional-data.ts new file mode 100644 index 00000000..c1d328ad --- /dev/null +++ b/src/versions/v1/models/get-call-logs-response-additional-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetCallLogsResponseAdditionalData +*/ +export interface GetCallLogsResponseAdditionalData { + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'pagination'?: GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-call-logs-response.ts b/src/versions/v1/models/get-call-logs-response.ts new file mode 100644 index 00000000..7ae8bd41 --- /dev/null +++ b/src/versions/v1/models/get-call-logs-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetCallLogsResponseAdditionalData } from './get-call-logs-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { ResponseCallLogObject } from './response-call-log-object'; + +/** +* +* @export +* @interface GetCallLogsResponse +*/ +export interface GetCallLogsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetCallLogsResponseAdditionalData} + */ + 'additional_data': GetCallLogsResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-changelog-response-all-of-data-inner.ts b/src/versions/v1/models/get-changelog-response-all-of-data-inner.ts new file mode 100644 index 00000000..55d14bd4 --- /dev/null +++ b/src/versions/v1/models/get-changelog-response-all-of-data-inner.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetChangelogResponseAllOfDataInner +*/ +export interface GetChangelogResponseAllOfDataInner { + /** + * The key of the field that was changed + * @type {string} + */ + 'field_key'?: string; + /** + * The value of the field before the change + * @type {string} + */ + 'old_value'?: string | null; + /** + * The value of the field after the change + * @type {string} + */ + 'new_value'?: string | null; + /** + * The ID of the user who made the change + * @type {number} + */ + 'actor_user_id'?: number; + /** + * The date and time of the change + * @type {string} + */ + 'time'?: string; + /** + * The source of change, for example \'app\', \'mobile\', \'api\', etc. + * @type {string} + */ + 'change_source'?: string | null; + /** + * The user agent from which the change was made + * @type {string} + */ + 'change_source_user_agent'?: string | null; + /** + * Whether the change was made as part of a bulk update + * @type {boolean} + */ + 'is_bulk_update_flag'?: boolean; +} + diff --git a/src/versions/v1/models/get-changelog-response-all-of.ts b/src/versions/v1/models/get-changelog-response-all-of.ts new file mode 100644 index 00000000..7af51bb7 --- /dev/null +++ b/src/versions/v1/models/get-changelog-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetChangelogResponseAllOfDataInner } from './get-changelog-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetChangelogResponseAllOf +*/ +export interface GetChangelogResponseAllOf { + /** + * + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetActivitiesCollectionResponseAdditionalData} + */ + 'additional_data': GetActivitiesCollectionResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-changelog-response.ts b/src/versions/v1/models/get-changelog-response.ts new file mode 100644 index 00000000..ef8eee5d --- /dev/null +++ b/src/versions/v1/models/get-changelog-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetChangelogResponseAllOf } from './get-changelog-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetChangelogResponseAllOfDataInner } from './get-changelog-response-all-of-data-inner'; + +/** + * @type GetChangelogResponse + * @export + */ +export type GetChangelogResponse = BaseResponse & GetChangelogResponseAllOf; + + diff --git a/src/versions/v1/models/get-comments-response.ts b/src/versions/v1/models/get-comments-response.ts new file mode 100644 index 00000000..630d16fc --- /dev/null +++ b/src/versions/v1/models/get-comments-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Comment } from './comment'; +// May contain unused imports in some cases +// @ts-ignore +import { GetNotesResponseAdditionalData } from './get-notes-response-additional-data'; + +/** +* +* @export +* @interface GetCommentsResponse +*/ +export interface GetCommentsResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * The array of comments + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetNotesResponseAdditionalData} + */ + 'additional_data'?: GetNotesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-currencies-response-data-inner.ts b/src/versions/v1/models/get-currencies-response-data-inner.ts new file mode 100644 index 00000000..57897e4a --- /dev/null +++ b/src/versions/v1/models/get-currencies-response-data-inner.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetCurrenciesResponseDataInner +*/ +export interface GetCurrenciesResponseDataInner { + /** + * The ID of the currency + * @type {number} + */ + 'id'?: number; + /** + * The code of the currency + * @type {string} + */ + 'code'?: string; + /** + * The name of the currency + * @type {string} + */ + 'name'?: string; + /** + * The amount of decimal points of the currency + * @type {number} + */ + 'decimal_points'?: number; + /** + * The symbol of the currency + * @type {string} + */ + 'symbol'?: string; + /** + * Whether the currency is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * Whether the currency is a custom one or not + * @type {boolean} + */ + 'is_custom_flag'?: boolean; +} + diff --git a/src/versions/v1/models/get-currencies-response.ts b/src/versions/v1/models/get-currencies-response.ts new file mode 100644 index 00000000..07f72693 --- /dev/null +++ b/src/versions/v1/models/get-currencies-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetCurrenciesResponseDataInner } from './get-currencies-response-data-inner'; + +/** +* +* @export +* @interface GetCurrenciesResponse +*/ +export interface GetCurrenciesResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * The array of currencies + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-current-user-response-all-of-data-all-of-language.ts b/src/versions/v1/models/get-current-user-response-all-of-data-all-of-language.ts new file mode 100644 index 00000000..143e1827 --- /dev/null +++ b/src/versions/v1/models/get-current-user-response-all-of-data-all-of-language.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The user language details +* @export +* @interface GetCurrentUserResponseAllOfDataAllOfLanguage +*/ +export interface GetCurrentUserResponseAllOfDataAllOfLanguage { + /** + * The language code. E.g. en + * @type {string} + */ + 'language_code'?: string; + /** + * The country code. E.g. US + * @type {string} + */ + 'country_code'?: string; +} + diff --git a/src/versions/v1/models/get-current-user-response-all-of-data-all-of.ts b/src/versions/v1/models/get-current-user-response-all-of-data-all-of.ts new file mode 100644 index 00000000..3060e8f8 --- /dev/null +++ b/src/versions/v1/models/get-current-user-response-all-of-data-all-of.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetCurrentUserResponseAllOfDataAllOfLanguage } from './get-current-user-response-all-of-data-all-of-language'; + +/** +* +* @export +* @interface GetCurrentUserResponseAllOfDataAllOf +*/ +export interface GetCurrentUserResponseAllOfDataAllOf { + /** + * The user company ID + * @type {number} + */ + 'company_id'?: number; + /** + * The user company name + * @type {string} + */ + 'company_name'?: string; + /** + * The user company domain + * @type {string} + */ + 'company_domain'?: string; + /** + * The user company country + * @type {string} + */ + 'company_country'?: string; + /** + * The user company industry + * @type {string} + */ + 'company_industry'?: string; + /** + * + * @type {GetCurrentUserResponseAllOfDataAllOfLanguage} + */ + 'language'?: GetCurrentUserResponseAllOfDataAllOfLanguage; +} + diff --git a/src/versions/v1/models/get-current-user-response-all-of-data.ts b/src/versions/v1/models/get-current-user-response-all-of-data.ts new file mode 100644 index 00000000..af43ee6f --- /dev/null +++ b/src/versions/v1/models/get-current-user-response-all-of-data.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseUser } from './base-user'; +// May contain unused imports in some cases +// @ts-ignore +import { GetCurrentUserResponseAllOfDataAllOf } from './get-current-user-response-all-of-data-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetCurrentUserResponseAllOfDataAllOfLanguage } from './get-current-user-response-all-of-data-all-of-language'; +// May contain unused imports in some cases +// @ts-ignore +import { UserAccess } from './user-access'; + +/** + * @type GetCurrentUserResponseAllOfData + * @export + */ +export type GetCurrentUserResponseAllOfData = BaseUser & GetCurrentUserResponseAllOfDataAllOf; + + diff --git a/src/versions/v1/models/get-current-user-response-all-of.ts b/src/versions/v1/models/get-current-user-response-all-of.ts new file mode 100644 index 00000000..78e1aecb --- /dev/null +++ b/src/versions/v1/models/get-current-user-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetCurrentUserResponseAllOfData } from './get-current-user-response-all-of-data'; + +/** +* +* @export +* @interface GetCurrentUserResponseAllOf +*/ +export interface GetCurrentUserResponseAllOf { + /** + * + * @type {GetCurrentUserResponseAllOfData} + */ + 'data'?: GetCurrentUserResponseAllOfData; +} + diff --git a/src/versions/v1/models/get-current-user-response.ts b/src/versions/v1/models/get-current-user-response.ts new file mode 100644 index 00000000..7f5408f1 --- /dev/null +++ b/src/versions/v1/models/get-current-user-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetCurrentUserResponseAllOf } from './get-current-user-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetCurrentUserResponseAllOfData } from './get-current-user-response-all-of-data'; + +/** + * @type GetCurrentUserResponse + * @export + */ +export type GetCurrentUserResponse = BaseResponse & GetCurrentUserResponseAllOf; + + diff --git a/src/versions/v1/models/get-deal-activities-response-all-of-related-objects.ts b/src/versions/v1/models/get-deal-activities-response-all-of-related-objects.ts new file mode 100644 index 00000000..7453dcb9 --- /dev/null +++ b/src/versions/v1/models/get-deal-activities-response-all-of-related-objects.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedDealData } from './related-deal-data'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; + +/** +* +* @export +* @interface GetDealActivitiesResponseAllOfRelatedObjects +*/ +export interface GetDealActivitiesResponseAllOfRelatedObjects { + /** + * + * @type {RelatedOrganizationDataWithActiveFlag} + */ + 'organization'?: RelatedOrganizationDataWithActiveFlag; + /** + * + * @type {AddActivityResponseRelatedObjectsPerson} + */ + 'person'?: AddActivityResponseRelatedObjectsPerson; + /** + * + * @type {RelatedDealData} + */ + 'deal'?: RelatedDealData; + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; +} + diff --git a/src/versions/v1/models/get-deal-activities-response-all-of.ts b/src/versions/v1/models/get-deal-activities-response-all-of.ts new file mode 100644 index 00000000..d6acb6b2 --- /dev/null +++ b/src/versions/v1/models/get-deal-activities-response-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Activity } from './activity'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityDistributionDataWithAdditionalData } from './activity-distribution-data-with-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealActivitiesResponseAllOfRelatedObjects } from './get-deal-activities-response-all-of-related-objects'; + +/** +* +* @export +* @interface GetDealActivitiesResponseAllOf +*/ +export interface GetDealActivitiesResponseAllOf { + /** + * The array of activities + * @type {Array} + */ + 'data': Array; + /** + * + * @type {ActivityDistributionDataWithAdditionalData} + */ + 'additional_data': ActivityDistributionDataWithAdditionalData; + /** + * + * @type {GetDealActivitiesResponseAllOfRelatedObjects} + */ + 'related_objects': GetDealActivitiesResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-deal-activities-response.ts b/src/versions/v1/models/get-deal-activities-response.ts new file mode 100644 index 00000000..01d88414 --- /dev/null +++ b/src/versions/v1/models/get-deal-activities-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Activity } from './activity'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityDistributionDataWithAdditionalData } from './activity-distribution-data-with-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealActivitiesResponseAllOf } from './get-deal-activities-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealActivitiesResponseAllOfRelatedObjects } from './get-deal-activities-response-all-of-related-objects'; + +/** + * @type GetDealActivitiesResponse + * @export + */ +export type GetDealActivitiesResponse = BaseResponse & GetDealActivitiesResponseAllOf; + + diff --git a/src/versions/v1/models/get-deal-participants-response.ts b/src/versions/v1/models/get-deal-participants-response.ts new file mode 100644 index 00000000..57552172 --- /dev/null +++ b/src/versions/v1/models/get-deal-participants-response.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsResponseRelatedObjects } from './get-deals-response-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { Person } from './person'; + +/** +* +* @export +* @interface GetDealParticipantsResponse +*/ +export interface GetDealParticipantsResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * The array of participants + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + /** + * + * @type {GetDealsResponseRelatedObjects} + */ + 'related_objects'?: GetDealsResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/get-deal-response-additional-data.ts b/src/versions/v1/models/get-deal-response-additional-data.ts new file mode 100644 index 00000000..f6060f19 --- /dev/null +++ b/src/versions/v1/models/get-deal-response-additional-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealResponseAdditionalData +*/ +export interface GetDealResponseAdditionalData { + /** + * The BCC email of the deal + * @type {string} + */ + 'dropbox_email'?: string; +} + diff --git a/src/versions/v1/models/get-deal-response-related-objects.ts b/src/versions/v1/models/get-deal-response-related-objects.ts new file mode 100644 index 00000000..339b51d5 --- /dev/null +++ b/src/versions/v1/models/get-deal-response-related-objects.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; + +/** +* +* @export +* @interface GetDealResponseRelatedObjects +*/ +export interface GetDealResponseRelatedObjects { + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; + /** + * + * @type {AddActivityResponseRelatedObjectsPerson} + */ + 'person'?: AddActivityResponseRelatedObjectsPerson; + /** + * + * @type {RelatedOrganizationDataWithActiveFlag} + */ + 'organization'?: RelatedOrganizationDataWithActiveFlag; +} + diff --git a/src/versions/v1/models/get-deal-response.ts b/src/versions/v1/models/get-deal-response.ts new file mode 100644 index 00000000..b31b58af --- /dev/null +++ b/src/versions/v1/models/get-deal-response.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealNonStrictWithDetails } from './deal-non-strict-with-details'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealResponseAdditionalData } from './get-deal-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealResponseRelatedObjects } from './get-deal-response-related-objects'; + +/** +* +* @export +* @interface GetDealResponse +*/ +export interface GetDealResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DealNonStrictWithDetails} + */ + 'data'?: DealNonStrictWithDetails; + /** + * + * @type {GetDealResponseAdditionalData} + */ + 'additional_data'?: GetDealResponseAdditionalData; + /** + * + * @type {GetDealResponseRelatedObjects} + */ + 'related_objects'?: GetDealResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-organization.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-organization.ts new file mode 100644 index 00000000..f6b7912f --- /dev/null +++ b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-organization.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInnerItemOrganization +*/ +export interface GetDealSearchResponseAllOfDataItemsInnerItemOrganization { + /** + * The ID of the organization the deal is associated with + * @type {number} + */ + 'id'?: number; + /** + * The name of the organization the deal is associated with + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-owner.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-owner.ts new file mode 100644 index 00000000..32e6cc84 --- /dev/null +++ b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-owner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInnerItemOwner +*/ +export interface GetDealSearchResponseAllOfDataItemsInnerItemOwner { + /** + * The ID of the owner of the deal + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-person.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-person.ts new file mode 100644 index 00000000..d88d8238 --- /dev/null +++ b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-person.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInnerItemPerson +*/ +export interface GetDealSearchResponseAllOfDataItemsInnerItemPerson { + /** + * The ID of the person the deal is associated with + * @type {number} + */ + 'id'?: number; + /** + * The name of the person the deal is associated with + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-stage.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-stage.ts new file mode 100644 index 00000000..1458739e --- /dev/null +++ b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item-stage.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInnerItemStage +*/ +export interface GetDealSearchResponseAllOfDataItemsInnerItemStage { + /** + * The ID of the stage of the deal + * @type {number} + */ + 'id'?: number; + /** + * The name of the stage of the deal + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.ts new file mode 100644 index 00000000..9d5fe547 --- /dev/null +++ b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner-item.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItemOrganization } from './get-deal-search-response-all-of-data-items-inner-item-organization'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItemOwner } from './get-deal-search-response-all-of-data-items-inner-item-owner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItemPerson } from './get-deal-search-response-all-of-data-items-inner-item-person'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItemStage } from './get-deal-search-response-all-of-data-items-inner-item-stage'; + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInnerItem +*/ +export interface GetDealSearchResponseAllOfDataItemsInnerItem { + /** + * The ID of the deal + * @type {number} + */ + 'id'?: number; + /** + * The type of the item + * @type {string} + */ + 'type'?: string; + /** + * The title of the deal + * @type {string} + */ + 'title'?: string; + /** + * The value of the deal + * @type {number} + */ + 'value'?: number; + /** + * The currency of the deal + * @type {string} + */ + 'currency'?: string; + /** + * The status of the deal + * @type {string} + */ + 'status'?: string; + /** + * The visibility of the deal + * @type {number} + */ + 'visible_to'?: number; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItemOwner} + */ + 'owner'?: GetDealSearchResponseAllOfDataItemsInnerItemOwner; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItemStage} + */ + 'stage'?: GetDealSearchResponseAllOfDataItemsInnerItemStage; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItemPerson} + */ + 'person'?: GetDealSearchResponseAllOfDataItemsInnerItemPerson | null; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItemOrganization} + */ + 'organization'?: GetDealSearchResponseAllOfDataItemsInnerItemOrganization | null; + /** + * Custom fields + * @type {Array} + */ + 'custom_fields'?: Array; + /** + * An array of notes + * @type {Array} + */ + 'notes'?: Array; +} + diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner.ts b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner.ts new file mode 100644 index 00000000..20e2f54f --- /dev/null +++ b/src/versions/v1/models/get-deal-search-response-all-of-data-items-inner.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItem } from './get-deal-search-response-all-of-data-items-inner-item'; + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInner +*/ +export interface GetDealSearchResponseAllOfDataItemsInner { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItem} + */ + 'item'?: GetDealSearchResponseAllOfDataItemsInnerItem; +} + diff --git a/src/versions/v1/models/get-deal-search-response-all-of-data.ts b/src/versions/v1/models/get-deal-search-response-all-of-data.ts new file mode 100644 index 00000000..d2fd0c91 --- /dev/null +++ b/src/versions/v1/models/get-deal-search-response-all-of-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInner } from './get-deal-search-response-all-of-data-items-inner'; + +/** +* +* @export +* @interface GetDealSearchResponseAllOfData +*/ +export interface GetDealSearchResponseAllOfData { + /** + * The array of deals + * @type {Array} + */ + 'items'?: Array; +} + diff --git a/src/versions/v1/models/get-deal-search-response-all-of.ts b/src/versions/v1/models/get-deal-search-response-all-of.ts new file mode 100644 index 00000000..bfe71d0f --- /dev/null +++ b/src/versions/v1/models/get-deal-search-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfData } from './get-deal-search-response-all-of-data'; + +/** +* +* @export +* @interface GetDealSearchResponseAllOf +*/ +export interface GetDealSearchResponseAllOf { + /** + * + * @type {GetDealSearchResponseAllOfData} + */ + 'data': GetDealSearchResponseAllOfData; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data': GetActivitiesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-deal-search-response.ts b/src/versions/v1/models/get-deal-search-response.ts new file mode 100644 index 00000000..f86e8051 --- /dev/null +++ b/src/versions/v1/models/get-deal-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOf } from './get-deal-search-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfData } from './get-deal-search-response-all-of-data'; + +/** + * @type GetDealSearchResponse + * @export + */ +export type GetDealSearchResponse = BaseResponse & GetDealSearchResponseAllOf; + + diff --git a/src/versions/v1/models/get-deal-updates-response-all-of-data-inner.ts b/src/versions/v1/models/get-deal-updates-response-all-of-data-inner.ts new file mode 100644 index 00000000..707b51c0 --- /dev/null +++ b/src/versions/v1/models/get-deal-updates-response-all-of-data-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealUpdatesResponseAllOfDataInner +*/ +export interface GetDealUpdatesResponseAllOfDataInner { + /** + * The type of the deal update. (Possible object types - dealChange, note, activity, mailMessage, invoice, document, file) + * @type {string} + */ + 'object'?: string; + /** + * The creation date and time of the update + * @type {string} + */ + 'timestamp'?: string; + /** + * The data related to the update + * @type {object} + */ + 'data'?: object; +} + diff --git a/src/versions/v1/models/get-deal-updates-response-all-of-related-objects.ts b/src/versions/v1/models/get-deal-updates-response-all-of-related-objects.ts new file mode 100644 index 00000000..4ae58732 --- /dev/null +++ b/src/versions/v1/models/get-deal-updates-response-all-of-related-objects.ts @@ -0,0 +1,56 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedDealData } from './related-deal-data'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedOrganizationData } from './related-organization-data'; + +/** +* +* @export +* @interface GetDealUpdatesResponseAllOfRelatedObjects +*/ +export interface GetDealUpdatesResponseAllOfRelatedObjects { + /** + * + * @type {RelatedDealData} + */ + 'deal'?: RelatedDealData; + /** + * + * @type {RelatedOrganizationData} + */ + 'organization'?: RelatedOrganizationData; + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; + /** + * + * @type {AddActivityResponseRelatedObjectsPerson} + */ + 'person'?: AddActivityResponseRelatedObjectsPerson; +} + diff --git a/src/versions/v1/models/get-deal-updates-response-all-of.ts b/src/versions/v1/models/get-deal-updates-response-all-of.ts new file mode 100644 index 00000000..bb1df89f --- /dev/null +++ b/src/versions/v1/models/get-deal-updates-response-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealUpdatesResponseAllOfDataInner } from './get-deal-updates-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealUpdatesResponseAllOfRelatedObjects } from './get-deal-updates-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetDealUpdatesResponseAllOf +*/ +export interface GetDealUpdatesResponseAllOf { + /** + * + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; + /** + * + * @type {GetDealUpdatesResponseAllOfRelatedObjects} + */ + 'related_objects': GetDealUpdatesResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-deal-updates-response.ts b/src/versions/v1/models/get-deal-updates-response.ts new file mode 100644 index 00000000..7438b963 --- /dev/null +++ b/src/versions/v1/models/get-deal-updates-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealUpdatesResponseAllOf } from './get-deal-updates-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealUpdatesResponseAllOfDataInner } from './get-deal-updates-response-all-of-data-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealUpdatesResponseAllOfRelatedObjects } from './get-deal-updates-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** + * @type GetDealUpdatesResponse + * @export + */ +export type GetDealUpdatesResponse = BaseResponse & GetDealUpdatesResponseAllOf; + + diff --git a/src/versions/v1/models/get-deals-collection-response.ts b/src/versions/v1/models/get-deals-collection-response.ts new file mode 100644 index 00000000..e0dc6b47 --- /dev/null +++ b/src/versions/v1/models/get-deals-collection-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealCollectionResponseObject } from './deal-collection-response-object'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; + +/** +* +* @export +* @interface GetDealsCollectionResponse +*/ +export interface GetDealsCollectionResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetActivitiesCollectionResponseAdditionalData} + */ + 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-deals-response-related-objects.ts b/src/versions/v1/models/get-deals-response-related-objects.ts new file mode 100644 index 00000000..0ed91082 --- /dev/null +++ b/src/versions/v1/models/get-deals-response-related-objects.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddActivityResponseRelatedObjectsPerson } from './add-activity-response-related-objects-person'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; + +/** +* +* @export +* @interface GetDealsResponseRelatedObjects +*/ +export interface GetDealsResponseRelatedObjects { + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; + /** + * + * @type {RelatedOrganizationDataWithActiveFlag} + */ + 'organization'?: RelatedOrganizationDataWithActiveFlag; + /** + * + * @type {AddActivityResponseRelatedObjectsPerson} + */ + 'person'?: AddActivityResponseRelatedObjectsPerson; +} + diff --git a/src/versions/v1/models/get-deals-response.ts b/src/versions/v1/models/get-deals-response.ts new file mode 100644 index 00000000..c63e0dd6 --- /dev/null +++ b/src/versions/v1/models/get-deals-response.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Deal } from './deal'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsResponseRelatedObjects } from './get-deals-response-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetDealsResponse +*/ +export interface GetDealsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * The array of deals + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data'?: GetFieldsResponseAllOfAdditionalData; + /** + * + * @type {GetDealsResponseRelatedObjects} + */ + 'related_objects'?: GetDealsResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/get-deals-summary-response-data-values-total.ts b/src/versions/v1/models/get-deals-summary-response-data-values-total.ts new file mode 100644 index 00000000..615a375e --- /dev/null +++ b/src/versions/v1/models/get-deals-summary-response-data-values-total.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The total values of the deals grouped by deal currency +* @export +* @interface GetDealsSummaryResponseDataValuesTotal +*/ +export interface GetDealsSummaryResponseDataValuesTotal { + /** + * The total value of deals in the deal currency group + * @type {number} + */ + 'value'?: number; + /** + * The number of deals in the deal currency group + * @type {number} + */ + 'count'?: number; + /** + * The total value of deals converted into the company default currency + * @type {number} + */ + 'value_converted'?: number; + /** + * The total value of deals formatted with deal currency. E.g. €50 + * @type {string} + */ + 'value_formatted'?: string; + /** + * The value_converted formatted with deal currency. E.g. US$50.10 + * @type {string} + */ + 'value_converted_formatted'?: string; +} + diff --git a/src/versions/v1/models/get-deals-summary-response-data-weighted-values-total.ts b/src/versions/v1/models/get-deals-summary-response-data-weighted-values-total.ts new file mode 100644 index 00000000..a2ca0fe7 --- /dev/null +++ b/src/versions/v1/models/get-deals-summary-response-data-weighted-values-total.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The total weighted values of the deals grouped by deal currency. The weighted value is calculated as probability times deal value. +* @export +* @interface GetDealsSummaryResponseDataWeightedValuesTotal +*/ +export interface GetDealsSummaryResponseDataWeightedValuesTotal { + /** + * The total weighted value of the deals in the deal currency group + * @type {number} + */ + 'value'?: number; + /** + * The number of deals in the deal currency group + * @type {number} + */ + 'count'?: number; + /** + * The total weighted value of the deals formatted with deal currency. E.g. €50 + * @type {string} + */ + 'value_formatted'?: string; +} + diff --git a/src/versions/v1/models/get-deals-summary-response-data.ts b/src/versions/v1/models/get-deals-summary-response-data.ts new file mode 100644 index 00000000..5d91550e --- /dev/null +++ b/src/versions/v1/models/get-deals-summary-response-data.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsSummaryResponseDataValuesTotal } from './get-deals-summary-response-data-values-total'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsSummaryResponseDataWeightedValuesTotal } from './get-deals-summary-response-data-weighted-values-total'; + +/** +* The summary of deals +* @export +* @interface GetDealsSummaryResponseData +*/ +export interface GetDealsSummaryResponseData { + /** + * + * @type {GetDealsSummaryResponseDataValuesTotal} + */ + 'values_total'?: GetDealsSummaryResponseDataValuesTotal; + /** + * + * @type {GetDealsSummaryResponseDataWeightedValuesTotal} + */ + 'weighted_values_total'?: GetDealsSummaryResponseDataWeightedValuesTotal; + /** + * The total number of deals + * @type {number} + */ + 'total_count'?: number; + /** + * The total value of deals converted into the company default currency + * @type {number} + */ + 'total_currency_converted_value'?: number; + /** + * The total weighted value of deals converted into the company default currency + * @type {number} + */ + 'total_weighted_currency_converted_value'?: number; + /** + * The total converted value of deals formatted with the company default currency. E.g. US$5,100.96 + * @type {string} + */ + 'total_currency_converted_value_formatted'?: string; + /** + * The total weighted value of deals formatted with the company default currency. E.g. US$5,100.96 + * @type {string} + */ + 'total_weighted_currency_converted_value_formatted'?: string; +} + diff --git a/src/versions/v1/models/get-deals-summary-response.ts b/src/versions/v1/models/get-deals-summary-response.ts new file mode 100644 index 00000000..afb2d145 --- /dev/null +++ b/src/versions/v1/models/get-deals-summary-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsSummaryResponseData } from './get-deals-summary-response-data'; + +/** +* +* @export +* @interface GetDealsSummaryResponse +*/ +export interface GetDealsSummaryResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetDealsSummaryResponseData} + */ + 'data'?: GetDealsSummaryResponseData; +} + diff --git a/src/versions/v1/models/get-deals-timeline-response-data-totals.ts b/src/versions/v1/models/get-deals-timeline-response-data-totals.ts new file mode 100644 index 00000000..a746dfb7 --- /dev/null +++ b/src/versions/v1/models/get-deals-timeline-response-data-totals.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The total values of deals for the given period +* @export +* @interface GetDealsTimelineResponseDataTotals +*/ +export interface GetDealsTimelineResponseDataTotals { + /** + * The number of deals for the given period + * @type {number} + */ + 'count'?: number; + /** + * The total values of deals grouped by deal currency + * @type {object} + */ + 'values'?: object; + /** + * The total weighted values of deals for the given period grouped by deal currency. The weighted value of a deal is calculated as probability times deal value. + * @type {object} + */ + 'weighted_values'?: object; + /** + * The number of open deals for the given period + * @type {number} + */ + 'open_count'?: number; + /** + * The total values of open deals for the given period grouped by deal currency + * @type {object} + */ + 'open_values'?: object; + /** + * The total weighted values of open deals for the given period grouped by deal currency. The weighted value of a deal is calculated as probability times deal value. + * @type {object} + */ + 'weighted_open_values'?: object; + /** + * The number of won deals for the given period + * @type {number} + */ + 'won_count'?: number; + /** + * The total values of won deals for the given period grouped by deal currency + * @type {object} + */ + 'won_values'?: object; +} + diff --git a/src/versions/v1/models/get-deals-timeline-response-data.ts b/src/versions/v1/models/get-deals-timeline-response-data.ts new file mode 100644 index 00000000..2ca0558f --- /dev/null +++ b/src/versions/v1/models/get-deals-timeline-response-data.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealStrict } from './deal-strict'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsTimelineResponseDataTotals } from './get-deals-timeline-response-data-totals'; + +/** +* Open and won deals grouped into periods by defined interval, amount and date-type dealField (`field_key`) +* @export +* @interface GetDealsTimelineResponseData +*/ +export interface GetDealsTimelineResponseData { + /** + * The start date and time of the period + * @type {string} + */ + 'period_start'?: string; + /** + * The end date and time of the period + * @type {string} + */ + 'period_end'?: string; + /** + * + * @type {Array} + */ + 'deals'?: Array; + /** + * + * @type {GetDealsTimelineResponseDataTotals} + */ + 'totals'?: GetDealsTimelineResponseDataTotals; +} + diff --git a/src/versions/v1/models/get-deals-timeline-response.ts b/src/versions/v1/models/get-deals-timeline-response.ts new file mode 100644 index 00000000..b0151984 --- /dev/null +++ b/src/versions/v1/models/get-deals-timeline-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsTimelineResponseData } from './get-deals-timeline-response-data'; + +/** +* +* @export +* @interface GetDealsTimelineResponse +*/ +export interface GetDealsTimelineResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetDealsTimelineResponseData} + */ + 'data'?: GetDealsTimelineResponseData; +} + diff --git a/src/versions/v1/models/get-duplicated-deal-response.ts b/src/versions/v1/models/get-duplicated-deal-response.ts new file mode 100644 index 00000000..8a726009 --- /dev/null +++ b/src/versions/v1/models/get-duplicated-deal-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealStrict } from './deal-strict'; + +/** +* +* @export +* @interface GetDuplicatedDealResponse +*/ +export interface GetDuplicatedDealResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DealStrict} + */ + 'data'?: DealStrict; +} + diff --git a/src/versions/v1/models/get-field-all-of.ts b/src/versions/v1/models/get-field-all-of.ts new file mode 100644 index 00000000..b7962be0 --- /dev/null +++ b/src/versions/v1/models/get-field-all-of.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetFieldAllOf +*/ +export interface GetFieldAllOf { + /** + * List of all possible field types + * @type {string} + */ + 'field_type'?: GetFieldAllOfFieldTypeConst; +} + + export const GetFieldAllOfFieldTypeConst = { + boolean: 'boolean', + double: 'double', + int: 'int', + json: 'json', + date: 'date', + daterange: 'daterange', + time: 'time', + timerange: 'timerange', + text: 'text', + varchar: 'varchar', + varchar_auto: 'varchar_auto', + varchar_options: 'varchar_options', + address: 'address', + enum: 'enum', + monetary: 'monetary', + phone: 'phone', + set: 'set', + activity: 'activity', + deal: 'deal', + lead: 'lead', + org: 'org', + people: 'people', + pipeline: 'pipeline', + product: 'product', + project: 'project', + stage: 'stage', + user: 'user', + billing_frequency: 'billing_frequency', + picture: 'picture', + price_list: 'price_list', + projects_board: 'projects_board', + projects_phase: 'projects_phase', + status: 'status', + visible_to: 'visible_to' + } as const; + + export type GetFieldAllOfFieldTypeConst = typeof GetFieldAllOfFieldTypeConst[keyof typeof GetFieldAllOfFieldTypeConst]; + + diff --git a/src/versions/v1/models/get-field-response-all-of.ts b/src/versions/v1/models/get-field-response-all-of.ts new file mode 100644 index 00000000..c4a33323 --- /dev/null +++ b/src/versions/v1/models/get-field-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Field } from './field'; + +/** +* +* @export +* @interface GetFieldResponseAllOf +*/ +export interface GetFieldResponseAllOf { + /** + * + * @type {Field} + */ + 'data': Field; +} + diff --git a/src/versions/v1/models/get-field-response.ts b/src/versions/v1/models/get-field-response.ts new file mode 100644 index 00000000..7d3b3126 --- /dev/null +++ b/src/versions/v1/models/get-field-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { Field } from './field'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldResponseAllOf } from './get-field-response-all-of'; + +/** + * @type GetFieldResponse + * @export + */ +export type GetFieldResponse = BaseResponse & GetFieldResponseAllOf; + + diff --git a/src/versions/v1/models/get-field.ts b/src/versions/v1/models/get-field.ts new file mode 100644 index 00000000..3846806b --- /dev/null +++ b/src/versions/v1/models/get-field.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Field } from './field'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldAllOf } from './get-field-all-of'; + +/** + * @type GetField + * @export + */ +export type GetField = Field & GetFieldAllOf; + + diff --git a/src/versions/v1/models/get-fields-response-all-of-additional-data.ts b/src/versions/v1/models/get-fields-response-all-of-additional-data.ts new file mode 100644 index 00000000..768fdfb3 --- /dev/null +++ b/src/versions/v1/models/get-fields-response-all-of-additional-data.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The additional data of the list +* @export +* @interface GetFieldsResponseAllOfAdditionalData +*/ +export interface GetFieldsResponseAllOfAdditionalData { + /** + * Pagination start + * @type {number} + */ + 'start'?: number; + /** + * Items shown per page + * @type {number} + */ + 'limit'?: number; + /** + * If there are more list items in the collection than displayed or not + * @type {boolean} + */ + 'more_items_in_collection'?: boolean; +} + diff --git a/src/versions/v1/models/get-fields-response-all-of.ts b/src/versions/v1/models/get-fields-response-all-of.ts new file mode 100644 index 00000000..f7943acc --- /dev/null +++ b/src/versions/v1/models/get-fields-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetField } from './get-field'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetFieldsResponseAllOf +*/ +export interface GetFieldsResponseAllOf { + /** + * + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-fields-response.ts b/src/versions/v1/models/get-fields-response.ts new file mode 100644 index 00000000..8112adc0 --- /dev/null +++ b/src/versions/v1/models/get-fields-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetField } from './get-field'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOf } from './get-fields-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** + * @type GetFieldsResponse + * @export + */ +export type GetFieldsResponse = BaseResponse & GetFieldsResponseAllOf; + + diff --git a/src/versions/v1/models/get-file-response.ts b/src/versions/v1/models/get-file-response.ts new file mode 100644 index 00000000..2ce01a96 --- /dev/null +++ b/src/versions/v1/models/get-file-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFilesResponseDataInner } from './get-files-response-data-inner'; + +/** +* +* @export +* @interface GetFileResponse +*/ +export interface GetFileResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetFilesResponseDataInner} + */ + 'data'?: GetFilesResponseDataInner; +} + diff --git a/src/versions/v1/models/get-files-response-additional-data.ts b/src/versions/v1/models/get-files-response-additional-data.ts new file mode 100644 index 00000000..74e2161b --- /dev/null +++ b/src/versions/v1/models/get-files-response-additional-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PaginationDetails } from './pagination-details'; + +/** +* +* @export +* @interface GetFilesResponseAdditionalData +*/ +export interface GetFilesResponseAdditionalData { + /** + * + * @type {PaginationDetails} + */ + 'pagination'?: PaginationDetails; +} + diff --git a/src/versions/v1/models/get-files-response-data-inner.ts b/src/versions/v1/models/get-files-response-data-inner.ts new file mode 100644 index 00000000..9e127a60 --- /dev/null +++ b/src/versions/v1/models/get-files-response-data-inner.ts @@ -0,0 +1,164 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The file data +* @export +* @interface GetFilesResponseDataInner +*/ +export interface GetFilesResponseDataInner { + /** + * The ID of the file + * @type {number} + */ + 'id'?: number; + /** + * The ID of the user to associate the file with + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the deal to associate the file with + * @type {number} + */ + 'deal_id'?: number; + /** + * The ID of the person to associate the file with + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization to associate the file with + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the product to associate the file with + * @type {number} + */ + 'product_id'?: number; + /** + * The ID of the activity to associate the file with + * @type {number} + */ + 'activity_id'?: number; + /** + * The ID of the lead to associate the file with + * @type {string} + */ + 'lead_id'?: string; + /** + * The date and time when the file was added/created. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the file. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'update_time'?: string; + /** + * The original name of the file + * @type {string} + */ + 'file_name'?: string; + /** + * The size of the file + * @type {number} + */ + 'file_size'?: number; + /** + * Whether the user is active or not. false = Not activated, true = Activated + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * Whether the file was uploaded as inline or not + * @type {boolean} + */ + 'inline_flag'?: boolean; + /** + * The location type to send the file to. Only googledrive is supported at the moment. + * @type {string} + */ + 'remote_location'?: string; + /** + * The ID of the remote item + * @type {string} + */ + 'remote_id'?: string; + /** + * The ID of the inline attachment + * @type {string} + */ + 'cid'?: string; + /** + * The location of the cloud storage + * @type {string} + */ + 's3_bucket'?: string; + /** + * The ID of the mail message to associate the file with + * @type {string} + */ + 'mail_message_id'?: string; + /** + * The ID of the mail template to associate the file with + * @type {string} + */ + 'mail_template_id'?: string; + /** + * The name of the deal associated with the file + * @type {string} + */ + 'deal_name'?: string; + /** + * The name of the person associated with the file + * @type {string} + */ + 'person_name'?: string; + /** + * The name of the organization associated with the file + * @type {string} + */ + 'org_name'?: string; + /** + * The name of the product associated with the file + * @type {string} + */ + 'product_name'?: string; + /** + * The name of the lead associated with the file + * @type {string} + */ + 'lead_name'?: string; + /** + * The URL of the download file + * @type {string} + */ + 'url'?: string; + /** + * The visible name of the file + * @type {string} + */ + 'name'?: string; + /** + * The description of the file + * @type {string} + */ + 'description'?: string; +} + diff --git a/src/versions/v1/models/get-files-response.ts b/src/versions/v1/models/get-files-response.ts new file mode 100644 index 00000000..5a2223e9 --- /dev/null +++ b/src/versions/v1/models/get-files-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFilesResponseAdditionalData } from './get-files-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFilesResponseDataInner } from './get-files-response-data-inner'; + +/** +* +* @export +* @interface GetFilesResponse +*/ +export interface GetFilesResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * The array of all uploaded files + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetFilesResponseAdditionalData} + */ + 'additional_data'?: GetFilesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-filters-response-all-of-data-inner.ts b/src/versions/v1/models/get-filters-response-all-of-data-inner.ts new file mode 100644 index 00000000..28c24c29 --- /dev/null +++ b/src/versions/v1/models/get-filters-response-all-of-data-inner.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The filter object +* @export +* @interface GetFiltersResponseAllOfDataInner +*/ +export interface GetFiltersResponseAllOfDataInner { + /** + * The ID of the filter + * @type {number} + */ + 'id'?: number; + /** + * The name of the filter + * @type {string} + */ + 'name'?: string; + /** + * The active flag of the filter + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The type of the item + * @type {string} + */ + 'type'?: string; + /** + * The owner of the filter + * @type {number} + */ + 'user_id'?: number; + /** + * The date and time when the filter was added + * @type {string} + */ + 'add_time'?: string; + /** + * The date and time when the filter was updated + * @type {string} + */ + 'update_time'?: string; + /** + * The visibility group ID of who can see then filter + * @type {number} + */ + 'visible_to'?: number; + /** + * Used by Pipedrive webapp + * @type {number} + */ + 'custom_view_id'?: number; +} + diff --git a/src/versions/v1/models/get-filters-response-all-of.ts b/src/versions/v1/models/get-filters-response-all-of.ts new file mode 100644 index 00000000..fd9baaef --- /dev/null +++ b/src/versions/v1/models/get-filters-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFiltersResponseAllOfDataInner } from './get-filters-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetFiltersResponseAllOf +*/ +export interface GetFiltersResponseAllOf { + /** + * The array of filters + * @type {Array} + */ + 'data': Array; +} + diff --git a/src/versions/v1/models/get-filters-response.ts b/src/versions/v1/models/get-filters-response.ts new file mode 100644 index 00000000..1b048999 --- /dev/null +++ b/src/versions/v1/models/get-filters-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFiltersResponseAllOf } from './get-filters-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFiltersResponseAllOfDataInner } from './get-filters-response-all-of-data-inner'; + +/** + * @type GetFiltersResponse + * @export + */ +export type GetFiltersResponse = BaseResponse & GetFiltersResponseAllOf; + + diff --git a/src/versions/v1/models/get-filters-response1-all-of.ts b/src/versions/v1/models/get-filters-response1-all-of.ts new file mode 100644 index 00000000..a19d3392 --- /dev/null +++ b/src/versions/v1/models/get-filters-response1-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFiltersResponseAllOfDataInner } from './get-filters-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetFiltersResponse1AllOf +*/ +export interface GetFiltersResponse1AllOf { + /** + * + * @type {GetFiltersResponseAllOfDataInner} + */ + 'data': GetFiltersResponseAllOfDataInner; +} + diff --git a/src/versions/v1/models/get-filters-response1.ts b/src/versions/v1/models/get-filters-response1.ts new file mode 100644 index 00000000..5664791f --- /dev/null +++ b/src/versions/v1/models/get-filters-response1.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFiltersResponse1AllOf } from './get-filters-response1-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFiltersResponseAllOfDataInner } from './get-filters-response-all-of-data-inner'; + +/** + * @type GetFiltersResponse1 + * @export + */ +export type GetFiltersResponse1 = BaseResponse & GetFiltersResponse1AllOf; + + diff --git a/src/versions/v1/models/get-goal-result-response-data.ts b/src/versions/v1/models/get-goal-result-response-data.ts new file mode 100644 index 00000000..b4f4ec03 --- /dev/null +++ b/src/versions/v1/models/get-goal-result-response-data.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Goal } from './goal'; + +/** +* +* @export +* @interface GetGoalResultResponseData +*/ +export interface GetGoalResultResponseData { + /** + * The numeric progress of the goal + * @type {number} + */ + 'progress'?: number; + /** + * + * @type {Goal} + */ + 'goal'?: Goal; +} + diff --git a/src/versions/v1/models/get-goal-result-response.ts b/src/versions/v1/models/get-goal-result-response.ts new file mode 100644 index 00000000..ba0b420e --- /dev/null +++ b/src/versions/v1/models/get-goal-result-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetGoalResultResponseData } from './get-goal-result-response-data'; + +/** +* +* @export +* @interface GetGoalResultResponse +*/ +export interface GetGoalResultResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetGoalResultResponseData} + */ + 'data'?: GetGoalResultResponseData; +} + diff --git a/src/versions/v1/models/get-goals-response-data.ts b/src/versions/v1/models/get-goals-response-data.ts new file mode 100644 index 00000000..25ee4eac --- /dev/null +++ b/src/versions/v1/models/get-goals-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Goal } from './goal'; + +/** +* +* @export +* @interface GetGoalsResponseData +*/ +export interface GetGoalsResponseData { + /** + * + * @type {Array} + */ + 'goals': Array; +} + diff --git a/src/versions/v1/models/get-goals-response.ts b/src/versions/v1/models/get-goals-response.ts new file mode 100644 index 00000000..a15070fa --- /dev/null +++ b/src/versions/v1/models/get-goals-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetGoalsResponseData } from './get-goals-response-data'; + +/** +* +* @export +* @interface GetGoalsResponse +*/ +export interface GetGoalsResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetGoalsResponseData} + */ + 'data'?: GetGoalsResponseData; +} + diff --git a/src/versions/v1/models/get-item-search-field-response-all-of-data-inner.ts b/src/versions/v1/models/get-item-search-field-response-all-of-data-inner.ts new file mode 100644 index 00000000..adf3cc3a --- /dev/null +++ b/src/versions/v1/models/get-item-search-field-response-all-of-data-inner.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetItemSearchFieldResponseAllOfDataInner +*/ +export interface GetItemSearchFieldResponseAllOfDataInner { + /** + * The ID of the item + * @type {number} + */ + 'id'?: number; + /** + * The value of the searched `field_key` + * @type {any} + */ + '$field_key'?: any; +} + diff --git a/src/versions/v1/models/get-item-search-field-response-all-of.ts b/src/versions/v1/models/get-item-search-field-response-all-of.ts new file mode 100644 index 00000000..d879f5c4 --- /dev/null +++ b/src/versions/v1/models/get-item-search-field-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetItemSearchFieldResponseAllOfDataInner } from './get-item-search-field-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetItemSearchFieldResponseAllOf +*/ +export interface GetItemSearchFieldResponseAllOf { + /** + * The array of results + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data': GetActivitiesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-item-search-field-response.ts b/src/versions/v1/models/get-item-search-field-response.ts new file mode 100644 index 00000000..bc6213ab --- /dev/null +++ b/src/versions/v1/models/get-item-search-field-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetItemSearchFieldResponseAllOf } from './get-item-search-field-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetItemSearchFieldResponseAllOfDataInner } from './get-item-search-field-response-all-of-data-inner'; + +/** + * @type GetItemSearchFieldResponse + * @export + */ +export type GetItemSearchFieldResponse = BaseResponse & GetItemSearchFieldResponseAllOf; + + diff --git a/src/versions/v1/models/get-item-search-response-all-of-data.ts b/src/versions/v1/models/get-item-search-response-all-of-data.ts new file mode 100644 index 00000000..8f66f392 --- /dev/null +++ b/src/versions/v1/models/get-item-search-response-all-of-data.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { SearchItem } from './search-item'; + +/** +* +* @export +* @interface GetItemSearchResponseAllOfData +*/ +export interface GetItemSearchResponseAllOfData { + /** + * The array of found items + * @type {Array} + */ + 'items'?: Array; + /** + * The array of related items if `search_for_related_items` was enabled + * @type {Array} + */ + 'related_items'?: Array; +} + diff --git a/src/versions/v1/models/get-item-search-response-all-of.ts b/src/versions/v1/models/get-item-search-response-all-of.ts new file mode 100644 index 00000000..3c3035d6 --- /dev/null +++ b/src/versions/v1/models/get-item-search-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetItemSearchResponseAllOfData } from './get-item-search-response-all-of-data'; + +/** +* +* @export +* @interface GetItemSearchResponseAllOf +*/ +export interface GetItemSearchResponseAllOf { + /** + * + * @type {GetItemSearchResponseAllOfData} + */ + 'data': GetItemSearchResponseAllOfData; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data': GetActivitiesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-item-search-response.ts b/src/versions/v1/models/get-item-search-response.ts new file mode 100644 index 00000000..f5b9e00b --- /dev/null +++ b/src/versions/v1/models/get-item-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetItemSearchResponseAllOf } from './get-item-search-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetItemSearchResponseAllOfData } from './get-item-search-response-all-of-data'; + +/** + * @type GetItemSearchResponse + * @export + */ +export type GetItemSearchResponse = BaseResponse & GetItemSearchResponseAllOf; + + diff --git a/src/versions/v1/models/get-lead-id-response-data.ts b/src/versions/v1/models/get-lead-id-response-data.ts new file mode 100644 index 00000000..1e7a3534 --- /dev/null +++ b/src/versions/v1/models/get-lead-id-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetLeadIdResponseData +*/ +export interface GetLeadIdResponseData { + /** + * + * @type {string} + */ + 'id'?: string; +} + diff --git a/src/versions/v1/models/get-lead-id-response.ts b/src/versions/v1/models/get-lead-id-response.ts new file mode 100644 index 00000000..1083fecd --- /dev/null +++ b/src/versions/v1/models/get-lead-id-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetLeadIdResponseData } from './get-lead-id-response-data'; + +/** +* +* @export +* @interface GetLeadIdResponse +*/ +export interface GetLeadIdResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetLeadIdResponseData} + */ + 'data'?: GetLeadIdResponseData; +} + diff --git a/src/versions/v1/models/get-lead-labels-response.ts b/src/versions/v1/models/get-lead-labels-response.ts new file mode 100644 index 00000000..dd4d3b33 --- /dev/null +++ b/src/versions/v1/models/get-lead-labels-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadLabel } from './lead-label'; + +/** +* +* @export +* @interface GetLeadLabelsResponse +*/ +export interface GetLeadLabelsResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-lead-response.ts b/src/versions/v1/models/get-lead-response.ts new file mode 100644 index 00000000..01b8faab --- /dev/null +++ b/src/versions/v1/models/get-lead-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Lead } from './lead'; + +/** +* +* @export +* @interface GetLeadResponse +*/ +export interface GetLeadResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Lead} + */ + 'data'?: Lead; +} + diff --git a/src/versions/v1/models/get-lead-search-response-all-of-data.ts b/src/versions/v1/models/get-lead-search-response-all-of-data.ts new file mode 100644 index 00000000..f525b023 --- /dev/null +++ b/src/versions/v1/models/get-lead-search-response-all-of-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadSearchItem } from './lead-search-item'; + +/** +* +* @export +* @interface GetLeadSearchResponseAllOfData +*/ +export interface GetLeadSearchResponseAllOfData { + /** + * The array of leads + * @type {Array} + */ + 'items'?: Array; +} + diff --git a/src/versions/v1/models/get-lead-search-response-all-of.ts b/src/versions/v1/models/get-lead-search-response-all-of.ts new file mode 100644 index 00000000..4c2b7496 --- /dev/null +++ b/src/versions/v1/models/get-lead-search-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetLeadSearchResponseAllOfData } from './get-lead-search-response-all-of-data'; + +/** +* +* @export +* @interface GetLeadSearchResponseAllOf +*/ +export interface GetLeadSearchResponseAllOf { + /** + * + * @type {GetLeadSearchResponseAllOfData} + */ + 'data': GetLeadSearchResponseAllOfData; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data': GetActivitiesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-lead-search-response.ts b/src/versions/v1/models/get-lead-search-response.ts new file mode 100644 index 00000000..c07cea0f --- /dev/null +++ b/src/versions/v1/models/get-lead-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetLeadSearchResponseAllOf } from './get-lead-search-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetLeadSearchResponseAllOfData } from './get-lead-search-response-all-of-data'; + +/** + * @type GetLeadSearchResponse + * @export + */ +export type GetLeadSearchResponse = BaseResponse & GetLeadSearchResponseAllOf; + + diff --git a/src/versions/v1/models/get-leads-response.ts b/src/versions/v1/models/get-leads-response.ts new file mode 100644 index 00000000..a05adfb8 --- /dev/null +++ b/src/versions/v1/models/get-leads-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { Lead } from './lead'; + +/** +* +* @export +* @interface GetLeadsResponse +*/ +export interface GetLeadsResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data'?: GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-leads-source-response.ts b/src/versions/v1/models/get-leads-source-response.ts new file mode 100644 index 00000000..bf3d38de --- /dev/null +++ b/src/versions/v1/models/get-leads-source-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadSource } from './lead-source'; + +/** +* +* @export +* @interface GetLeadsSourceResponse +*/ +export interface GetLeadsSourceResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-link-remote-file-to-item-response.ts b/src/versions/v1/models/get-link-remote-file-to-item-response.ts new file mode 100644 index 00000000..8be7039b --- /dev/null +++ b/src/versions/v1/models/get-link-remote-file-to-item-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFilesResponseDataInner } from './get-files-response-data-inner'; + +/** +* +* @export +* @interface GetLinkRemoteFileToItemResponse +*/ +export interface GetLinkRemoteFileToItemResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetFilesResponseDataInner} + */ + 'data'?: GetFilesResponseDataInner; +} + diff --git a/src/versions/v1/models/get-list-followers-response-all-of-data-inner.ts b/src/versions/v1/models/get-list-followers-response-all-of-data-inner.ts new file mode 100644 index 00000000..9b8fb0a7 --- /dev/null +++ b/src/versions/v1/models/get-list-followers-response-all-of-data-inner.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetListFollowersResponseAllOfDataInner +*/ +export interface GetListFollowersResponseAllOfDataInner { + /** + * The ID of the user + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the user follower + * @type {number} + */ + 'id'?: number; + /** + * The ID of the deal which the follower was added to + * @type {number} + */ + 'deal_id'?: number; + /** + * The date and time when the follower was added to the person + * @type {string} + */ + 'add_time'?: string; +} + diff --git a/src/versions/v1/models/get-list-followers-response-all-of.ts b/src/versions/v1/models/get-list-followers-response-all-of.ts new file mode 100644 index 00000000..5e14d41a --- /dev/null +++ b/src/versions/v1/models/get-list-followers-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetListFollowersResponseAllOfDataInner } from './get-list-followers-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetListFollowersResponseAllOf +*/ +export interface GetListFollowersResponseAllOf { + /** + * The list of followers + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-list-followers-response.ts b/src/versions/v1/models/get-list-followers-response.ts new file mode 100644 index 00000000..667a4108 --- /dev/null +++ b/src/versions/v1/models/get-list-followers-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetListFollowersResponseAllOf } from './get-list-followers-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetListFollowersResponseAllOfDataInner } from './get-list-followers-response-all-of-data-inner'; + +/** + * @type GetListFollowersResponse + * @export + */ +export type GetListFollowersResponse = BaseResponse & GetListFollowersResponseAllOf; + + diff --git a/src/versions/v1/models/get-mail-message-response-all-of.ts b/src/versions/v1/models/get-mail-message-response-all-of.ts new file mode 100644 index 00000000..bca1081e --- /dev/null +++ b/src/versions/v1/models/get-mail-message-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailMessageData } from './mail-message-data'; + +/** +* +* @export +* @interface GetMailMessageResponseAllOf +*/ +export interface GetMailMessageResponseAllOf { + /** + * + * @type {MailMessageData} + */ + 'data'?: MailMessageData; +} + diff --git a/src/versions/v1/models/get-mail-message-response.ts b/src/versions/v1/models/get-mail-message-response.ts new file mode 100644 index 00000000..be91292a --- /dev/null +++ b/src/versions/v1/models/get-mail-message-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetMailMessageResponseAllOf } from './get-mail-message-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { MailMessageData } from './mail-message-data'; +// May contain unused imports in some cases +// @ts-ignore +import { MailServiceBaseResponse } from './mail-service-base-response'; + +/** + * @type GetMailMessageResponse + * @export + */ +export type GetMailMessageResponse = GetMailMessageResponseAllOf & MailServiceBaseResponse; + + diff --git a/src/versions/v1/models/get-mail-thread-messages-response-all-of-data-inner-all-of.ts b/src/versions/v1/models/get-mail-thread-messages-response-all-of-data-inner-all-of.ts new file mode 100644 index 00000000..e5e68ec6 --- /dev/null +++ b/src/versions/v1/models/get-mail-thread-messages-response-all-of-data-inner-all-of.ts @@ -0,0 +1,112 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf1PartiesToInner } from './mail-thread-all-of1-parties-to-inner'; + +/** +* +* @export +* @interface GetMailThreadMessagesResponseAllOfDataInnerAllOf +*/ +export interface GetMailThreadMessagesResponseAllOfDataInnerAllOf { + /** + * Senders of the mail thread + * @type {Array} + */ + 'from'?: Array; + /** + * Recipients of the mail thread + * @type {Array} + */ + 'to'?: Array; + /** + * Participants of the Cc + * @type {Array} + */ + 'cc'?: Array; + /** + * Participants of the Bcc + * @type {Array} + */ + 'bcc'?: Array; + /** + * A link to the mail thread message + * @type {string} + */ + 'body_url'?: string; + /** + * ID of the mail thread + * @type {number} + */ + 'mail_thread_id'?: number; + /** + * If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. + * @type {string} + */ + 'draft'?: string | null; + /** + * + * @type {number} + */ + 'has_body_flag'?: GetMailThreadMessagesResponseAllOfDataInnerAllOfHasBodyFlagConst; + /** + * + * @type {number} + */ + 'sent_flag'?: GetMailThreadMessagesResponseAllOfDataInnerAllOfSentFlagConst; + /** + * + * @type {number} + */ + 'sent_from_pipedrive_flag'?: GetMailThreadMessagesResponseAllOfDataInnerAllOfSentFromPipedriveFlagConst; + /** + * The time when the mail message was received or created + * @type {string} + */ + 'message_time'?: string; + /** + * The time when the mail message was inserted to database + * @type {string} + */ + 'add_time'?: string; + /** + * The time when the mail message was updated in database received + * @type {string} + */ + 'update_time'?: string; +} + + export const GetMailThreadMessagesResponseAllOfDataInnerAllOfHasBodyFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type GetMailThreadMessagesResponseAllOfDataInnerAllOfHasBodyFlagConst = typeof GetMailThreadMessagesResponseAllOfDataInnerAllOfHasBodyFlagConst[keyof typeof GetMailThreadMessagesResponseAllOfDataInnerAllOfHasBodyFlagConst]; + export const GetMailThreadMessagesResponseAllOfDataInnerAllOfSentFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type GetMailThreadMessagesResponseAllOfDataInnerAllOfSentFlagConst = typeof GetMailThreadMessagesResponseAllOfDataInnerAllOfSentFlagConst[keyof typeof GetMailThreadMessagesResponseAllOfDataInnerAllOfSentFlagConst]; + export const GetMailThreadMessagesResponseAllOfDataInnerAllOfSentFromPipedriveFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type GetMailThreadMessagesResponseAllOfDataInnerAllOfSentFromPipedriveFlagConst = typeof GetMailThreadMessagesResponseAllOfDataInnerAllOfSentFromPipedriveFlagConst[keyof typeof GetMailThreadMessagesResponseAllOfDataInnerAllOfSentFromPipedriveFlagConst]; + + diff --git a/src/versions/v1/models/get-mail-thread-messages-response-all-of-data-inner.ts b/src/versions/v1/models/get-mail-thread-messages-response-all-of-data-inner.ts new file mode 100644 index 00000000..3365615c --- /dev/null +++ b/src/versions/v1/models/get-mail-thread-messages-response-all-of-data-inner.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetMailThreadMessagesResponseAllOfDataInnerAllOf } from './get-mail-thread-messages-response-all-of-data-inner-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf } from './mail-thread-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf1PartiesToInner } from './mail-thread-all-of1-parties-to-inner'; + +/** + * @type GetMailThreadMessagesResponseAllOfDataInner + * @export + */ +export type GetMailThreadMessagesResponseAllOfDataInner = GetMailThreadMessagesResponseAllOfDataInnerAllOf & MailThreadAllOf; + + diff --git a/src/versions/v1/models/get-mail-thread-messages-response-all-of.ts b/src/versions/v1/models/get-mail-thread-messages-response-all-of.ts new file mode 100644 index 00000000..c3dc0ab7 --- /dev/null +++ b/src/versions/v1/models/get-mail-thread-messages-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetMailThreadMessagesResponseAllOfDataInner } from './get-mail-thread-messages-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetMailThreadMessagesResponseAllOf +*/ +export interface GetMailThreadMessagesResponseAllOf { + /** + * The array of the mail messages of the mail thread + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-mail-thread-messages-response.ts b/src/versions/v1/models/get-mail-thread-messages-response.ts new file mode 100644 index 00000000..9b388700 --- /dev/null +++ b/src/versions/v1/models/get-mail-thread-messages-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetMailThreadMessagesResponseAllOf } from './get-mail-thread-messages-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetMailThreadMessagesResponseAllOfDataInner } from './get-mail-thread-messages-response-all-of-data-inner'; + +/** + * @type GetMailThreadMessagesResponse + * @export + */ +export type GetMailThreadMessagesResponse = BaseResponse & GetMailThreadMessagesResponseAllOf; + + diff --git a/src/versions/v1/models/get-mail-thread-response-all-of.ts b/src/versions/v1/models/get-mail-thread-response-all-of.ts new file mode 100644 index 00000000..e6c0372c --- /dev/null +++ b/src/versions/v1/models/get-mail-thread-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailThread } from './mail-thread'; + +/** +* +* @export +* @interface GetMailThreadResponseAllOf +*/ +export interface GetMailThreadResponseAllOf { + /** + * The array of mail threads + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-mail-thread-response.ts b/src/versions/v1/models/get-mail-thread-response.ts new file mode 100644 index 00000000..b0877140 --- /dev/null +++ b/src/versions/v1/models/get-mail-thread-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetMailThreadResponseAllOf } from './get-mail-thread-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { MailThread } from './mail-thread'; + +/** + * @type GetMailThreadResponse + * @export + */ +export type GetMailThreadResponse = BaseResponse & GetMailThreadResponseAllOf; + + diff --git a/src/versions/v1/models/get-mail-thread-response1-all-of-data.ts b/src/versions/v1/models/get-mail-thread-response1-all-of-data.ts new file mode 100644 index 00000000..a8c43d23 --- /dev/null +++ b/src/versions/v1/models/get-mail-thread-response1-all-of-data.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailThread } from './mail-thread'; +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf1Parties } from './mail-thread-all-of1-parties'; + +/** + * @type GetMailThreadResponse1AllOfData + * The mail thread object + * @export + */ +export type GetMailThreadResponse1AllOfData = MailThread; + + diff --git a/src/versions/v1/models/get-mail-thread-response1-all-of.ts b/src/versions/v1/models/get-mail-thread-response1-all-of.ts new file mode 100644 index 00000000..9975100a --- /dev/null +++ b/src/versions/v1/models/get-mail-thread-response1-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetMailThreadResponse1AllOfData } from './get-mail-thread-response1-all-of-data'; + +/** +* +* @export +* @interface GetMailThreadResponse1AllOf +*/ +export interface GetMailThreadResponse1AllOf { + /** + * + * @type {GetMailThreadResponse1AllOfData} + */ + 'data'?: GetMailThreadResponse1AllOfData; +} + diff --git a/src/versions/v1/models/get-mail-thread-response1.ts b/src/versions/v1/models/get-mail-thread-response1.ts new file mode 100644 index 00000000..d2612b05 --- /dev/null +++ b/src/versions/v1/models/get-mail-thread-response1.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetMailThreadResponse1AllOf } from './get-mail-thread-response1-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetMailThreadResponse1AllOfData } from './get-mail-thread-response1-all-of-data'; + +/** + * @type GetMailThreadResponse1 + * @export + */ +export type GetMailThreadResponse1 = BaseResponse & GetMailThreadResponse1AllOf; + + diff --git a/src/versions/v1/models/get-merged-deal-response-data-all-of.ts b/src/versions/v1/models/get-merged-deal-response-data-all-of.ts new file mode 100644 index 00000000..bb798b86 --- /dev/null +++ b/src/versions/v1/models/get-merged-deal-response-data-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetMergedDealResponseDataAllOf +*/ +export interface GetMergedDealResponseDataAllOf { + /** + * The deal ID of the deal which the original deal was merged with + * @type {number} + */ + 'merge_what_id'?: number; +} + diff --git a/src/versions/v1/models/get-merged-deal-response-data.ts b/src/versions/v1/models/get-merged-deal-response-data.ts new file mode 100644 index 00000000..ac7fa3ce --- /dev/null +++ b/src/versions/v1/models/get-merged-deal-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealStrict } from './deal-strict'; +// May contain unused imports in some cases +// @ts-ignore +import { GetMergedDealResponseDataAllOf } from './get-merged-deal-response-data-all-of'; + +/** + * @type GetMergedDealResponseData + * @export + */ +export type GetMergedDealResponseData = DealStrict & GetMergedDealResponseDataAllOf; + + diff --git a/src/versions/v1/models/get-merged-deal-response.ts b/src/versions/v1/models/get-merged-deal-response.ts new file mode 100644 index 00000000..e3077809 --- /dev/null +++ b/src/versions/v1/models/get-merged-deal-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetMergedDealResponseData } from './get-merged-deal-response-data'; + +/** +* +* @export +* @interface GetMergedDealResponse +*/ +export interface GetMergedDealResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetMergedDealResponseData} + */ + 'data'?: GetMergedDealResponseData; +} + diff --git a/src/versions/v1/models/get-note-fields-response-all-of-data-inner-all-of-options-inner.ts b/src/versions/v1/models/get-note-fields-response-all-of-data-inner-all-of-options-inner.ts new file mode 100644 index 00000000..28934f0a --- /dev/null +++ b/src/versions/v1/models/get-note-fields-response-all-of-data-inner-all-of-options-inner.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetNoteFieldsResponseAllOfDataInnerAllOfOptionsInner +*/ +export interface GetNoteFieldsResponseAllOfDataInnerAllOfOptionsInner { + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {string} + */ + 'label'?: string; +} + diff --git a/src/versions/v1/models/get-note-fields-response-all-of-data-inner-all-of.ts b/src/versions/v1/models/get-note-fields-response-all-of-data-inner-all-of.ts new file mode 100644 index 00000000..8ec0faa4 --- /dev/null +++ b/src/versions/v1/models/get-note-fields-response-all-of-data-inner-all-of.ts @@ -0,0 +1,95 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetNoteFieldsResponseAllOfDataInnerAllOfOptionsInner } from './get-note-fields-response-all-of-data-inner-all-of-options-inner'; + +/** +* +* @export +* @interface GetNoteFieldsResponseAllOfDataInnerAllOf +*/ +export interface GetNoteFieldsResponseAllOfDataInnerAllOf { + /** + * The ID of the field + * @type {number} + */ + 'id'?: number; + /** + * The key of the field + * @type {string} + */ + 'key'?: string; + /** + * The name of the field + * @type {string} + */ + 'name'?: string; + /** + * The type of the field
ValueDescription
`address`Address field
`date`Date (format YYYY-MM-DD)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`double`Numeric value
`enum`Options field with a single possible chosen option
`monetary`Monetary field (has a numeric value and a currency value)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a person ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`set`Options field with a possibility of having multiple chosen options
`text`Long text (up to 65k characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`user`User field (contains a user ID of another Pipedrive user)
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`visible_to`System field that keeps item\'s visibility setting
+ * @type {string} + */ + 'field_type'?: GetNoteFieldsResponseAllOfDataInnerAllOfFieldTypeConst; + /** + * The active flag of the field + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The edit flag of the field + * @type {boolean} + */ + 'edit_flag'?: boolean; + /** + * Not used + * @type {boolean} + */ + 'bulk_edit_allowed'?: boolean; + /** + * Whether or not the field is mandatory + * @type {boolean} + */ + 'mandatory_flag'?: boolean; + /** + * The options of the field. When there are no options, `null` is returned. + * @type {Array} + */ + 'options'?: Array; +} + + export const GetNoteFieldsResponseAllOfDataInnerAllOfFieldTypeConst = { + address: 'address', + date: 'date', + daterange: 'daterange', + double: 'double', + enum: 'enum', + monetary: 'monetary', + org: 'org', + people: 'people', + phone: 'phone', + set: 'set', + text: 'text', + time: 'time', + timerange: 'timerange', + user: 'user', + varchar: 'varchar', + varchar_auto: 'varchar_auto', + visible_to: 'visible_to' + } as const; + + export type GetNoteFieldsResponseAllOfDataInnerAllOfFieldTypeConst = typeof GetNoteFieldsResponseAllOfDataInnerAllOfFieldTypeConst[keyof typeof GetNoteFieldsResponseAllOfDataInnerAllOfFieldTypeConst]; + + diff --git a/src/versions/v1/models/get-note-fields-response-all-of-data-inner.ts b/src/versions/v1/models/get-note-fields-response-all-of-data-inner.ts new file mode 100644 index 00000000..fb93c096 --- /dev/null +++ b/src/versions/v1/models/get-note-fields-response-all-of-data-inner.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldAllOf } from './get-field-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetNoteFieldsResponseAllOfDataInnerAllOf } from './get-note-fields-response-all-of-data-inner-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetNoteFieldsResponseAllOfDataInnerAllOfOptionsInner } from './get-note-fields-response-all-of-data-inner-all-of-options-inner'; + +/** + * @type GetNoteFieldsResponseAllOfDataInner + * @export + */ +export type GetNoteFieldsResponseAllOfDataInner = GetFieldAllOf & GetNoteFieldsResponseAllOfDataInnerAllOf; + + diff --git a/src/versions/v1/models/get-note-fields-response-all-of.ts b/src/versions/v1/models/get-note-fields-response-all-of.ts new file mode 100644 index 00000000..9c5019d6 --- /dev/null +++ b/src/versions/v1/models/get-note-fields-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetNoteFieldsResponseAllOfDataInner } from './get-note-fields-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetNoteFieldsResponseAllOf +*/ +export interface GetNoteFieldsResponseAllOf { + /** + * + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-note-fields-response.ts b/src/versions/v1/models/get-note-fields-response.ts new file mode 100644 index 00000000..c43e590e --- /dev/null +++ b/src/versions/v1/models/get-note-fields-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetNoteFieldsResponseAllOf } from './get-note-fields-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetNoteFieldsResponseAllOfDataInner } from './get-note-fields-response-all-of-data-inner'; + +/** + * @type GetNoteFieldsResponse + * @export + */ +export type GetNoteFieldsResponse = BaseResponse & GetNoteFieldsResponseAllOf; + + diff --git a/src/versions/v1/models/get-notes-response-additional-data-pagination.ts b/src/versions/v1/models/get-notes-response-additional-data-pagination.ts new file mode 100644 index 00000000..cffce665 --- /dev/null +++ b/src/versions/v1/models/get-notes-response-additional-data-pagination.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { PaginationDetailsAllOf } from './pagination-details-all-of'; + +/** + * @type GetNotesResponseAdditionalDataPagination + * The pagination details of the list + * @export + */ +export type GetNotesResponseAdditionalDataPagination = GetFieldsResponseAllOfAdditionalData & PaginationDetailsAllOf; + + diff --git a/src/versions/v1/models/get-notes-response-additional-data.ts b/src/versions/v1/models/get-notes-response-additional-data.ts new file mode 100644 index 00000000..984d737e --- /dev/null +++ b/src/versions/v1/models/get-notes-response-additional-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetNotesResponseAdditionalDataPagination } from './get-notes-response-additional-data-pagination'; + +/** +* +* @export +* @interface GetNotesResponseAdditionalData +*/ +export interface GetNotesResponseAdditionalData { + /** + * + * @type {GetNotesResponseAdditionalDataPagination} + */ + 'pagination'?: GetNotesResponseAdditionalDataPagination; +} + diff --git a/src/versions/v1/models/get-notes-response.ts b/src/versions/v1/models/get-notes-response.ts new file mode 100644 index 00000000..ca536383 --- /dev/null +++ b/src/versions/v1/models/get-notes-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetNotesResponseAdditionalData } from './get-notes-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { Note } from './note'; + +/** +* +* @export +* @interface GetNotesResponse +*/ +export interface GetNotesResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * The array of notes + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetNotesResponseAdditionalData} + */ + 'additional_data'?: GetNotesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-organization-item-all-of.ts b/src/versions/v1/models/get-organization-item-all-of.ts new file mode 100644 index 00000000..e60e0c32 --- /dev/null +++ b/src/versions/v1/models/get-organization-item-all-of.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetOrganizationItemAllOf +*/ +export interface GetOrganizationItemAllOf { + /** + * Please refer to response schema of Activity + * @type {object} + */ + 'last_activity'?: object | null; + /** + * Please refer to response schema of Activity + * @type {object} + */ + 'next_activity'?: object | null; +} + diff --git a/src/versions/v1/models/get-organization-item.ts b/src/versions/v1/models/get-organization-item.ts new file mode 100644 index 00000000..bbe01cfe --- /dev/null +++ b/src/versions/v1/models/get-organization-item.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItemAllOfPictureId } from './base-organization-item-all-of-picture-id'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItemWithEditNameFlag } from './base-organization-item-with-edit-name-flag'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationItemAllOf } from './get-organization-item-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { Owner } from './owner'; + +/** + * @type GetOrganizationItem + * @export + */ +export type GetOrganizationItem = BaseOrganizationItemWithEditNameFlag & GetOrganizationItemAllOf; + + diff --git a/src/versions/v1/models/get-organization-relationship-response-all-of.ts b/src/versions/v1/models/get-organization-relationship-response-all-of.ts new file mode 100644 index 00000000..e0568f9a --- /dev/null +++ b/src/versions/v1/models/get-organization-relationship-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationRelationshipsResponseAllOfRelatedObjects } from './get-organization-relationships-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationRelationshipWithCalculatedFields } from './organization-relationship-with-calculated-fields'; + +/** +* +* @export +* @interface GetOrganizationRelationshipResponseAllOf +*/ +export interface GetOrganizationRelationshipResponseAllOf { + /** + * + * @type {OrganizationRelationshipWithCalculatedFields} + */ + 'data': OrganizationRelationshipWithCalculatedFields; + /** + * + * @type {GetOrganizationRelationshipsResponseAllOfRelatedObjects} + */ + 'related_objects': GetOrganizationRelationshipsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-organization-relationship-response.ts b/src/versions/v1/models/get-organization-relationship-response.ts new file mode 100644 index 00000000..487594ec --- /dev/null +++ b/src/versions/v1/models/get-organization-relationship-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationRelationshipResponseAllOf } from './get-organization-relationship-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationRelationshipsResponseAllOfRelatedObjects } from './get-organization-relationships-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationRelationshipWithCalculatedFields } from './organization-relationship-with-calculated-fields'; + +/** + * @type GetOrganizationRelationshipResponse + * @export + */ +export type GetOrganizationRelationshipResponse = BaseResponse & GetOrganizationRelationshipResponseAllOf; + + diff --git a/src/versions/v1/models/get-organization-relationships-response-all-of-related-objects.ts b/src/versions/v1/models/get-organization-relationships-response-all-of-related-objects.ts new file mode 100644 index 00000000..aeae6f9c --- /dev/null +++ b/src/versions/v1/models/get-organization-relationships-response-all-of-related-objects.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { RelatedOrganizationData } from './related-organization-data'; + +/** +* +* @export +* @interface GetOrganizationRelationshipsResponseAllOfRelatedObjects +*/ +export interface GetOrganizationRelationshipsResponseAllOfRelatedObjects { + /** + * + * @type {RelatedOrganizationData} + */ + 'organization'?: RelatedOrganizationData; +} + diff --git a/src/versions/v1/models/get-organization-relationships-response-all-of.ts b/src/versions/v1/models/get-organization-relationships-response-all-of.ts new file mode 100644 index 00000000..2da70423 --- /dev/null +++ b/src/versions/v1/models/get-organization-relationships-response-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationRelationshipsResponseAllOfRelatedObjects } from './get-organization-relationships-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationRelationshipDetails } from './organization-relationship-details'; + +/** +* +* @export +* @interface GetOrganizationRelationshipsResponseAllOf +*/ +export interface GetOrganizationRelationshipsResponseAllOf { + /** + * The array of organization relationships + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; + /** + * + * @type {GetOrganizationRelationshipsResponseAllOfRelatedObjects} + */ + 'related_objects': GetOrganizationRelationshipsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-organization-relationships-response.ts b/src/versions/v1/models/get-organization-relationships-response.ts new file mode 100644 index 00000000..cbd79d6d --- /dev/null +++ b/src/versions/v1/models/get-organization-relationships-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationRelationshipsResponseAllOf } from './get-organization-relationships-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationRelationshipsResponseAllOfRelatedObjects } from './get-organization-relationships-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationRelationshipDetails } from './organization-relationship-details'; + +/** + * @type GetOrganizationRelationshipsResponse + * @export + */ +export type GetOrganizationRelationshipsResponse = BaseResponse & GetOrganizationRelationshipsResponseAllOf; + + diff --git a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruserid.ts b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruserid.ts new file mode 100644 index 00000000..928aaf1f --- /dev/null +++ b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruserid.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOf } from './get-organization-response-all-of-additional-data-followers-followeruseridall-of'; + +/** + * @type GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERID + * The user ID of the follower + * @export + */ +export type GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERID = GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOf; + + diff --git a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of.ts b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of.ts new file mode 100644 index 00000000..693568c0 --- /dev/null +++ b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOfAllOf +*/ +export interface GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOfAllOf { + /** + * The ID of the follower associated with the item + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of.ts b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of.ts new file mode 100644 index 00000000..7acabdf9 --- /dev/null +++ b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers-followeruseridall-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { FollowerData } from './follower-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOfAllOf } from './get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of'; + +/** + * @type GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOf + * @export + */ +export type GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOf = FollowerData & GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERIDAllOfAllOf; + + diff --git a/src/versions/v1/models/get-organization-response-all-of-additional-data-followers.ts b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers.ts new file mode 100644 index 00000000..675d2cb4 --- /dev/null +++ b/src/versions/v1/models/get-organization-response-all-of-additional-data-followers.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERID } from './get-organization-response-all-of-additional-data-followers-followeruserid'; + +/** +* The follower that is associated with the item +* @export +* @interface GetOrganizationResponseAllOfAdditionalDataFollowers +*/ +export interface GetOrganizationResponseAllOfAdditionalDataFollowers { + /** + * + * @type {GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERID} + */ + 'FOLLOWER_USER_ID'?: GetOrganizationResponseAllOfAdditionalDataFollowersFOLLOWERUSERID; +} + diff --git a/src/versions/v1/models/get-organization-response-all-of-additional-data.ts b/src/versions/v1/models/get-organization-response-all-of-additional-data.ts new file mode 100644 index 00000000..aef11ab5 --- /dev/null +++ b/src/versions/v1/models/get-organization-response-all-of-additional-data.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationResponseAllOfAdditionalDataFollowers } from './get-organization-response-all-of-additional-data-followers'; + +/** +* +* @export +* @interface GetOrganizationResponseAllOfAdditionalData +*/ +export interface GetOrganizationResponseAllOfAdditionalData { + /** + * + * @type {GetOrganizationResponseAllOfAdditionalDataFollowers} + */ + 'followers'?: GetOrganizationResponseAllOfAdditionalDataFollowers; + /** + * Dropbox email for the organization + * @type {string} + */ + 'dropbox_email'?: string; +} + diff --git a/src/versions/v1/models/get-organization-response-all-of.ts b/src/versions/v1/models/get-organization-response-all-of.ts new file mode 100644 index 00000000..6d269930 --- /dev/null +++ b/src/versions/v1/models/get-organization-response-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationItem } from './get-organization-item'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationResponseAllOfAdditionalData } from './get-organization-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; + +/** +* +* @export +* @interface GetOrganizationResponseAllOf +*/ +export interface GetOrganizationResponseAllOf { + /** + * + * @type {GetOrganizationItem} + */ + 'data': GetOrganizationItem; + /** + * + * @type {GetOrganizationResponseAllOfAdditionalData} + */ + 'additional_data': GetOrganizationResponseAllOfAdditionalData; + /** + * + * @type {GetOrganizationsResponseAllOfRelatedObjects} + */ + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-organization-response.ts b/src/versions/v1/models/get-organization-response.ts new file mode 100644 index 00000000..6b080966 --- /dev/null +++ b/src/versions/v1/models/get-organization-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationItem } from './get-organization-item'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationResponseAllOf } from './get-organization-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationResponseAllOfAdditionalData } from './get-organization-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; + +/** + * @type GetOrganizationResponse + * @export + */ +export type GetOrganizationResponse = BaseResponse & GetOrganizationResponseAllOf; + + diff --git a/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner-item.ts b/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner-item.ts new file mode 100644 index 00000000..db20c592 --- /dev/null +++ b/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner-item.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItemOwner } from './get-deal-search-response-all-of-data-items-inner-item-owner'; + +/** +* +* @export +* @interface GetOrganizationSearchResponseAllOfDataItemsInnerItem +*/ +export interface GetOrganizationSearchResponseAllOfDataItemsInnerItem { + /** + * The ID of the organization + * @type {number} + */ + 'id'?: number; + /** + * The type of the item + * @type {string} + */ + 'type'?: string; + /** + * The name of the organization + * @type {string} + */ + 'name'?: string; + /** + * The address of the organization + * @type {string} + */ + 'address'?: string; + /** + * The visibility of the organization + * @type {number} + */ + 'visible_to'?: number; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItemOwner} + */ + 'owner'?: GetDealSearchResponseAllOfDataItemsInnerItemOwner; + /** + * Custom fields + * @type {Array} + */ + 'custom_fields'?: Array; + /** + * An array of notes + * @type {Array} + */ + 'notes'?: Array; +} + diff --git a/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner.ts b/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner.ts new file mode 100644 index 00000000..d74ca005 --- /dev/null +++ b/src/versions/v1/models/get-organization-search-response-all-of-data-items-inner.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationSearchResponseAllOfDataItemsInnerItem } from './get-organization-search-response-all-of-data-items-inner-item'; + +/** +* +* @export +* @interface GetOrganizationSearchResponseAllOfDataItemsInner +*/ +export interface GetOrganizationSearchResponseAllOfDataItemsInner { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * + * @type {GetOrganizationSearchResponseAllOfDataItemsInnerItem} + */ + 'item'?: GetOrganizationSearchResponseAllOfDataItemsInnerItem; +} + diff --git a/src/versions/v1/models/get-organization-search-response-all-of-data.ts b/src/versions/v1/models/get-organization-search-response-all-of-data.ts new file mode 100644 index 00000000..8abdc3e0 --- /dev/null +++ b/src/versions/v1/models/get-organization-search-response-all-of-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationSearchResponseAllOfDataItemsInner } from './get-organization-search-response-all-of-data-items-inner'; + +/** +* +* @export +* @interface GetOrganizationSearchResponseAllOfData +*/ +export interface GetOrganizationSearchResponseAllOfData { + /** + * The array of found items + * @type {Array} + */ + 'items'?: Array; +} + diff --git a/src/versions/v1/models/get-organization-search-response-all-of.ts b/src/versions/v1/models/get-organization-search-response-all-of.ts new file mode 100644 index 00000000..8b4a71f6 --- /dev/null +++ b/src/versions/v1/models/get-organization-search-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationSearchResponseAllOfData } from './get-organization-search-response-all-of-data'; + +/** +* +* @export +* @interface GetOrganizationSearchResponseAllOf +*/ +export interface GetOrganizationSearchResponseAllOf { + /** + * + * @type {GetOrganizationSearchResponseAllOfData} + */ + 'data': GetOrganizationSearchResponseAllOfData; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data': GetActivitiesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-organization-search-response.ts b/src/versions/v1/models/get-organization-search-response.ts new file mode 100644 index 00000000..f660bba0 --- /dev/null +++ b/src/versions/v1/models/get-organization-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationSearchResponseAllOf } from './get-organization-search-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationSearchResponseAllOfData } from './get-organization-search-response-all-of-data'; + +/** + * @type GetOrganizationSearchResponse + * @export + */ +export type GetOrganizationSearchResponse = BaseResponse & GetOrganizationSearchResponseAllOf; + + diff --git a/src/versions/v1/models/get-organizations-collection-response-object-all-of.ts b/src/versions/v1/models/get-organizations-collection-response-object-all-of.ts new file mode 100644 index 00000000..e5409acf --- /dev/null +++ b/src/versions/v1/models/get-organizations-collection-response-object-all-of.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetOrganizationsCollectionResponseObjectAllOf +*/ +export interface GetOrganizationsCollectionResponseObjectAllOf { + /** + * The ID of the organization + * @type {number} + */ + 'id': number; + /** + * Whether the organization is active or not + * @type {boolean} + */ + 'active_flag': boolean; + /** + * The ID of the owner + * @type {number} + */ + 'owner_id': number; + /** + * The name of the organization + * @type {string} + */ + 'name': string; + /** + * The last updated date and time of the organization. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'update_time': string; + /** + * The date and time this organization was deleted. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'delete_time': string | null; + /** + * The date and time when the organization was added/created. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time': string; + /** + * The visibility group ID of who can see the organization + * @type {string} + */ + 'visible_to': string; + /** + * The label assigned to the organization. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. + * @type {number} + */ + 'label': number | null; + /** + * The IDs of labels assigned to the organization. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. + * @type {Array} + */ + 'label_ids': Array; + /** + * The BCC email associated with the organization + * @type {string} + */ + 'cc_email': string; +} + diff --git a/src/versions/v1/models/get-organizations-collection-response-object.ts b/src/versions/v1/models/get-organizations-collection-response-object.ts new file mode 100644 index 00000000..0ec81246 --- /dev/null +++ b/src/versions/v1/models/get-organizations-collection-response-object.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsCollectionResponseObjectAllOf } from './get-organizations-collection-response-object-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationCountAndAddressInfoAllOf1 } from './organization-count-and-address-info-all-of1'; + +/** + * @type GetOrganizationsCollectionResponseObject + * @export + */ +export type GetOrganizationsCollectionResponseObject = GetOrganizationsCollectionResponseObjectAllOf & OrganizationCountAndAddressInfoAllOf1; + + diff --git a/src/versions/v1/models/get-organizations-collection200-response.ts b/src/versions/v1/models/get-organizations-collection200-response.ts new file mode 100644 index 00000000..d8d03d2f --- /dev/null +++ b/src/versions/v1/models/get-organizations-collection200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsCollectionResponseObject } from './get-organizations-collection-response-object'; + +/** +* +* @export +* @interface GetOrganizationsCollection200Response +*/ +export interface GetOrganizationsCollection200Response { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetActivitiesCollectionResponseAdditionalData} + */ + 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-organizations-response-all-of-related-objects.ts b/src/versions/v1/models/get-organizations-response-all-of-related-objects.ts new file mode 100644 index 00000000..188eac84 --- /dev/null +++ b/src/versions/v1/models/get-organizations-response-all-of-related-objects.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedOrganizationData } from './related-organization-data'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedPictureData } from './related-picture-data'; + +/** +* +* @export +* @interface GetOrganizationsResponseAllOfRelatedObjects +*/ +export interface GetOrganizationsResponseAllOfRelatedObjects { + /** + * + * @type {RelatedOrganizationData} + */ + 'organization'?: RelatedOrganizationData; + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; + /** + * + * @type {RelatedPictureData} + */ + 'picture'?: RelatedPictureData; +} + diff --git a/src/versions/v1/models/get-organizations-response-all-of.ts b/src/versions/v1/models/get-organizations-response-all-of.ts new file mode 100644 index 00000000..63977c20 --- /dev/null +++ b/src/versions/v1/models/get-organizations-response-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItem } from './base-organization-item'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; + +/** +* +* @export +* @interface GetOrganizationsResponseAllOf +*/ +export interface GetOrganizationsResponseAllOf { + /** + * The array of organizations + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data': GetActivitiesResponseAdditionalData; + /** + * + * @type {GetOrganizationsResponseAllOfRelatedObjects} + */ + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-organizations-response.ts b/src/versions/v1/models/get-organizations-response.ts new file mode 100644 index 00000000..dc0120d6 --- /dev/null +++ b/src/versions/v1/models/get-organizations-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItem } from './base-organization-item'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOf } from './get-organizations-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; + +/** + * @type GetOrganizationsResponse + * @export + */ +export type GetOrganizationsResponse = BaseResponse & GetOrganizationsResponseAllOf; + + diff --git a/src/versions/v1/models/get-participants-changelog-response.ts b/src/versions/v1/models/get-participants-changelog-response.ts new file mode 100644 index 00000000..6de0b513 --- /dev/null +++ b/src/versions/v1/models/get-participants-changelog-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { ParticipantChangelogItem } from './participant-changelog-item'; + +/** +* +* @export +* @interface GetParticipantsChangelogResponse +*/ +export interface GetParticipantsChangelogResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * The array of participant changelog + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data'?: GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-payments-response-all-of-data-inner.ts b/src/versions/v1/models/get-payments-response-all-of-data-inner.ts new file mode 100644 index 00000000..92f61199 --- /dev/null +++ b/src/versions/v1/models/get-payments-response-all-of-data-inner.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPaymentsResponseAllOfDataInner +*/ +export interface GetPaymentsResponseAllOfDataInner { + /** + * The ID of the payment + * @type {number} + */ + 'id'?: number; + /** + * The ID of the subscription this payment is associated with + * @type {number} + */ + 'subscription_id'?: number; + /** + * The ID of the deal this payment is associated with + * @type {number} + */ + 'deal_id'?: number; + /** + * The payment status + * @type {boolean} + */ + 'is_active'?: boolean; + /** + * The payment amount + * @type {number} + */ + 'amount'?: number; + /** + * The currency of the payment + * @type {string} + */ + 'currency'?: string; + /** + * The difference between the amount of the current payment and the previous payment. The value can be either positive or negative. + * @type {number} + */ + 'change_amount'?: number; + /** + * The date when payment occurs + * @type {string} + */ + 'due_at'?: string; + /** + * Represents the movement of revenue in comparison with the previous payment. Possible values are: `New` - first payment of the subscription. `Recurring` - no movement. `Expansion` - current payment amount > previous payment amount. `Contraction` - current payment amount < previous payment amount. `Churn` - last payment of the subscription. + * @type {string} + */ + 'revenue_movement_type'?: GetPaymentsResponseAllOfDataInnerRevenueMovementTypeConst; + /** + * The type of the payment. Possible values are: `Recurring` - payments occur over fixed intervals of time, `Additional` - extra payment not the recurring payment of the recurring subscription, `Installment` - payment of the installment subscription. + * @type {string} + */ + 'payment_type'?: GetPaymentsResponseAllOfDataInnerPaymentTypeConst; + /** + * The description of the payment + * @type {string} + */ + 'description'?: string; + /** + * The creation time of the payment + * @type {string} + */ + 'add_time'?: string; + /** + * The update time of the payment + * @type {string} + */ + 'update_time'?: string; +} + + export const GetPaymentsResponseAllOfDataInnerRevenueMovementTypeConst = { + new: 'new', + recurring: 'recurring', + expansion: 'expansion', + contraction: 'contraction', + none: 'none', + churn: 'churn' + } as const; + + export type GetPaymentsResponseAllOfDataInnerRevenueMovementTypeConst = typeof GetPaymentsResponseAllOfDataInnerRevenueMovementTypeConst[keyof typeof GetPaymentsResponseAllOfDataInnerRevenueMovementTypeConst]; + export const GetPaymentsResponseAllOfDataInnerPaymentTypeConst = { + recurring: 'recurring', + additional: 'additional', + installment: 'installment' + } as const; + + export type GetPaymentsResponseAllOfDataInnerPaymentTypeConst = typeof GetPaymentsResponseAllOfDataInnerPaymentTypeConst[keyof typeof GetPaymentsResponseAllOfDataInnerPaymentTypeConst]; + + diff --git a/src/versions/v1/models/get-payments-response-all-of.ts b/src/versions/v1/models/get-payments-response-all-of.ts new file mode 100644 index 00000000..294f2ceb --- /dev/null +++ b/src/versions/v1/models/get-payments-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPaymentsResponseAllOfDataInner } from './get-payments-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetPaymentsResponseAllOf +*/ +export interface GetPaymentsResponseAllOf { + /** + * + * @type {Array} + */ + 'data': Array; +} + diff --git a/src/versions/v1/models/get-payments-response.ts b/src/versions/v1/models/get-payments-response.ts new file mode 100644 index 00000000..279d0666 --- /dev/null +++ b/src/versions/v1/models/get-payments-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPaymentsResponseAllOf } from './get-payments-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPaymentsResponseAllOfDataInner } from './get-payments-response-all-of-data-inner'; + +/** + * @type GetPaymentsResponse + * @export + */ +export type GetPaymentsResponse = BaseResponse & GetPaymentsResponseAllOf; + + diff --git a/src/versions/v1/models/get-permission-set-response-all-of.ts b/src/versions/v1/models/get-permission-set-response-all-of.ts new file mode 100644 index 00000000..610cebe4 --- /dev/null +++ b/src/versions/v1/models/get-permission-set-response-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPermissionSetResponseAllOf +*/ +export interface GetPermissionSetResponseAllOf { + /** + * A permission assigned to this permission set + * @type {Array} + */ + 'contents'?: Array; +} + diff --git a/src/versions/v1/models/get-permission-set-response.ts b/src/versions/v1/models/get-permission-set-response.ts new file mode 100644 index 00000000..41ec63d2 --- /dev/null +++ b/src/versions/v1/models/get-permission-set-response.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPermissionSetResponseAllOf } from './get-permission-set-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { PermissionSet } from './permission-set'; + +/** + * @type GetPermissionSetResponse + * @export + */ +export type GetPermissionSetResponse = GetPermissionSetResponseAllOf & PermissionSet; + + diff --git a/src/versions/v1/models/get-permission-sets-response-all-of.ts b/src/versions/v1/models/get-permission-sets-response-all-of.ts new file mode 100644 index 00000000..a30d85a9 --- /dev/null +++ b/src/versions/v1/models/get-permission-sets-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PermissionSet } from './permission-set'; + +/** +* +* @export +* @interface GetPermissionSetsResponseAllOf +*/ +export interface GetPermissionSetsResponseAllOf { + /** + * The array of permission set + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-permission-sets-response.ts b/src/versions/v1/models/get-permission-sets-response.ts new file mode 100644 index 00000000..6517b984 --- /dev/null +++ b/src/versions/v1/models/get-permission-sets-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPermissionSetsResponseAllOf } from './get-permission-sets-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { PermissionSet } from './permission-set'; + +/** + * @type GetPermissionSetsResponse + * @export + */ +export type GetPermissionSetsResponse = BaseResponse & GetPermissionSetsResponseAllOf; + + diff --git a/src/versions/v1/models/get-permitted-users-response.ts b/src/versions/v1/models/get-permitted-users-response.ts new file mode 100644 index 00000000..0f4ee4db --- /dev/null +++ b/src/versions/v1/models/get-permitted-users-response.ts @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse1 } from './base-response1'; + +/** + * @type GetPermittedUsersResponse + * @export + */ +export type GetPermittedUsersResponse = BaseResponse1; + + diff --git a/src/versions/v1/models/get-permitted-users-response1-all-of.ts b/src/versions/v1/models/get-permitted-users-response1-all-of.ts new file mode 100644 index 00000000..318af122 --- /dev/null +++ b/src/versions/v1/models/get-permitted-users-response1-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPermittedUsersResponse1AllOf +*/ +export interface GetPermittedUsersResponse1AllOf { + /** + * The list of permitted user IDs + * @type {Array} + */ + 'data': Array; +} + diff --git a/src/versions/v1/models/get-permitted-users-response1.ts b/src/versions/v1/models/get-permitted-users-response1.ts new file mode 100644 index 00000000..7b55965b --- /dev/null +++ b/src/versions/v1/models/get-permitted-users-response1.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPermittedUsersResponse1AllOf } from './get-permitted-users-response1-all-of'; + +/** + * @type GetPermittedUsersResponse1 + * @export + */ +export type GetPermittedUsersResponse1 = BaseResponse & GetPermittedUsersResponse1AllOf; + + diff --git a/src/versions/v1/models/get-person-details-response-all-of-additional-data.ts b/src/versions/v1/models/get-person-details-response-all-of-additional-data.ts new file mode 100644 index 00000000..28947175 --- /dev/null +++ b/src/versions/v1/models/get-person-details-response-all-of-additional-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPersonDetailsResponseAllOfAdditionalData +*/ +export interface GetPersonDetailsResponseAllOfAdditionalData { + /** + * Dropbox email for the person + * @type {string} + */ + 'dropbox_email'?: string; +} + diff --git a/src/versions/v1/models/get-person-details-response-all-of.ts b/src/versions/v1/models/get-person-details-response-all-of.ts new file mode 100644 index 00000000..be4bbc61 --- /dev/null +++ b/src/versions/v1/models/get-person-details-response-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonDetailsResponseAllOfAdditionalData } from './get-person-details-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { Person } from './person'; + +/** +* +* @export +* @interface GetPersonDetailsResponseAllOf +*/ +export interface GetPersonDetailsResponseAllOf { + /** + * + * @type {Person} + */ + 'data': Person; + /** + * + * @type {GetPersonDetailsResponseAllOfAdditionalData} + */ + 'additional_data': GetPersonDetailsResponseAllOfAdditionalData; + /** + * + * @type {GetOrganizationsResponseAllOfRelatedObjects} + */ + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-person-details-response.ts b/src/versions/v1/models/get-person-details-response.ts new file mode 100644 index 00000000..0ccbba69 --- /dev/null +++ b/src/versions/v1/models/get-person-details-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonDetailsResponseAllOf } from './get-person-details-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonDetailsResponseAllOfAdditionalData } from './get-person-details-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { Person } from './person'; + +/** + * @type GetPersonDetailsResponse + * @export + */ +export type GetPersonDetailsResponse = BaseResponse & GetPersonDetailsResponseAllOf; + + diff --git a/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealid.ts b/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealid.ts new file mode 100644 index 00000000..32505da7 --- /dev/null +++ b/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealid.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonProductsResponseAllOfDataInnerDEALIDDeal } from './get-person-products-response-all-of-data-inner-dealiddeal'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonProductsResponseAllOfDataInnerDEALIDProduct } from './get-person-products-response-all-of-data-inner-dealidproduct'; + +/** +* +* @export +* @interface GetPersonProductsResponseAllOfDataInnerDEALID +*/ +export interface GetPersonProductsResponseAllOfDataInnerDEALID { + /** + * + * @type {GetPersonProductsResponseAllOfDataInnerDEALIDDeal} + */ + 'deal'?: GetPersonProductsResponseAllOfDataInnerDEALIDDeal; + /** + * + * @type {GetPersonProductsResponseAllOfDataInnerDEALIDProduct} + */ + 'product'?: GetPersonProductsResponseAllOfDataInnerDEALIDProduct; +} + diff --git a/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealiddeal.ts b/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealiddeal.ts new file mode 100644 index 00000000..719ab553 --- /dev/null +++ b/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealiddeal.ts @@ -0,0 +1,239 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPersonProductsResponseAllOfDataInnerDEALIDDeal +*/ +export interface GetPersonProductsResponseAllOfDataInnerDEALIDDeal { + /** + * The ID of the deal + * @type {number} + */ + 'id'?: number; + /** + * The ID of the company + * @type {number} + */ + 'company_id'?: number; + /** + * The ID of the deal creator + * @type {number} + */ + 'creator_user_id'?: number; + /** + * The ID of the user + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the person associated with the deal + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization associated with the deal + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the deal stage + * @type {number} + */ + 'stage_id'?: number; + /** + * The title of the deal + * @type {string} + */ + 'title'?: string; + /** + * The value of the deal + * @type {number} + */ + 'value'?: number; + /** + * The currency associated with the deal + * @type {string} + */ + 'currency'?: string; + /** + * The creation date and time of the deal + * @type {string} + */ + 'add_time'?: string; + /** + * The first creation date and time of the deal + * @type {string} + */ + 'first_add_time'?: string; + /** + * The last updated date and time of the deal + * @type {string} + */ + 'update_time'?: string; + /** + * The last updated date and time of the deal stage + * @type {string} + */ + 'stage_change_time'?: string; + /** + * Whether the deal is active or not + * @type {boolean} + */ + 'active'?: boolean; + /** + * Whether the deal is deleted or not + * @type {boolean} + */ + 'deleted'?: boolean; + /** + * The status of the deal + * @type {string} + */ + 'status'?: string; + /** + * The success probability percentage of the deal + * @type {number} + */ + 'probability'?: number | null; + /** + * The date of the next activity associated with the deal + * @type {string} + */ + 'next_activity_date'?: string; + /** + * The time of the next activity associated with the deal + * @type {string} + */ + 'next_activity_time'?: string; + /** + * The ID of the next activity associated with the deal + * @type {number} + */ + 'next_activity_id'?: number | null; + /** + * The ID of the last activity associated with the deal + * @type {number} + */ + 'last_activity_id'?: number | null; + /** + * The date of the last activity associated with the deal + * @type {string} + */ + 'last_activity_date'?: string | null; + /** + * The reason for losing the deal + * @type {string} + */ + 'lost_reason'?: string | null; + /** + * The visibility of the deal + * @type {string} + */ + 'visible_to'?: string; + /** + * The date and time of closing the deal + * @type {string} + */ + 'close_time'?: string | null; + /** + * The ID of the pipeline associated with the deal + * @type {number} + */ + 'pipeline_id'?: number; + /** + * The date and time of changing the deal status as won + * @type {string} + */ + 'won_time'?: string; + /** + * The date and time of the first time changing the deal status as won + * @type {string} + */ + 'first_won_time'?: string; + /** + * The date and time of changing the deal status as lost + * @type {string} + */ + 'lost_time'?: string; + /** + * The number of products associated with the deal + * @type {number} + */ + 'products_count'?: number; + /** + * The number of files associated with the deal + * @type {number} + */ + 'files_count'?: number; + /** + * The number of notes associated with the deal + * @type {number} + */ + 'notes_count'?: number; + /** + * The number of followers associated with the deal + * @type {number} + */ + 'followers_count'?: number; + /** + * The number of emails associated with the deal + * @type {number} + */ + 'email_messages_count'?: number; + /** + * The number of activities associated with the deal + * @type {number} + */ + 'activities_count'?: number; + /** + * The number of completed activities associated with the deal + * @type {number} + */ + 'done_activities_count'?: number; + /** + * The number of incomplete activities associated with the deal + * @type {number} + */ + 'undone_activities_count'?: number; + /** + * The number of participants associated with the deal + * @type {number} + */ + 'participants_count'?: number; + /** + * The expected close date of the deal + * @type {string} + */ + 'expected_close_date'?: string; + /** + * The date and time of the last incoming email associated with the deal + * @type {string} + */ + 'last_incoming_mail_time'?: string; + /** + * The date and time of the last outgoing email associated with the deal + * @type {string} + */ + 'last_outgoing_mail_time'?: string; + /** + * The label or multiple labels assigned to the deal + * @type {string} + */ + 'label'?: string; +} + diff --git a/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealidproduct.ts b/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealidproduct.ts new file mode 100644 index 00000000..8c6f7acf --- /dev/null +++ b/src/versions/v1/models/get-person-products-response-all-of-data-inner-dealidproduct.ts @@ -0,0 +1,119 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPersonProductsResponseAllOfDataInnerDEALIDProduct +*/ +export interface GetPersonProductsResponseAllOfDataInnerDEALIDProduct { + /** + * The ID of the product + * @type {number} + */ + 'id'?: number; + /** + * The ID of the company + * @type {number} + */ + 'company_id'?: number; + /** + * The name of the product + * @type {string} + */ + 'name'?: string; + /** + * The product code + * @type {string} + */ + 'code'?: string; + /** + * The description of the product + * @type {string} + */ + 'description'?: string; + /** + * The unit in which this product is sold + * @type {string} + */ + 'unit'?: string; + /** + * The tax percentage + * @type {number} + */ + 'tax'?: number; + /** + * The category of the product + * @type {string} + */ + 'category'?: string; + /** + * Whether this product will be made active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * Whether this product can be selected in deals or not + * @type {boolean} + */ + 'selectable'?: boolean; + /** + * The first letter of the product name + * @type {string} + */ + 'first_char'?: string; + /** + * + * @type {string} + */ + 'visible_to'?: GetPersonProductsResponseAllOfDataInnerDEALIDProductVisibleToConst; + /** + * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used + * @type {number} + */ + 'owner_id'?: number; + /** + * The count of files + * @type {number} + */ + 'files_count'?: number; + /** + * The date and time when the product was added to the deal + * @type {string} + */ + 'add_time'?: string; + /** + * The date and time when the product was updated to the deal + * @type {string} + */ + 'update_time'?: string; + /** + * The ID of the deal + * @type {number} + */ + 'deal_id'?: number; +} + + export const GetPersonProductsResponseAllOfDataInnerDEALIDProductVisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type GetPersonProductsResponseAllOfDataInnerDEALIDProductVisibleToConst = typeof GetPersonProductsResponseAllOfDataInnerDEALIDProductVisibleToConst[keyof typeof GetPersonProductsResponseAllOfDataInnerDEALIDProductVisibleToConst]; + + diff --git a/src/versions/v1/models/get-person-products-response-all-of-data-inner.ts b/src/versions/v1/models/get-person-products-response-all-of-data-inner.ts new file mode 100644 index 00000000..195cc051 --- /dev/null +++ b/src/versions/v1/models/get-person-products-response-all-of-data-inner.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonProductsResponseAllOfDataInnerDEALID } from './get-person-products-response-all-of-data-inner-dealid'; + +/** +* +* @export +* @interface GetPersonProductsResponseAllOfDataInner +*/ +export interface GetPersonProductsResponseAllOfDataInner { + /** + * + * @type {GetPersonProductsResponseAllOfDataInnerDEALID} + */ + 'DEAL_ID'?: GetPersonProductsResponseAllOfDataInnerDEALID; +} + diff --git a/src/versions/v1/models/get-person-products-response-all-of.ts b/src/versions/v1/models/get-person-products-response-all-of.ts new file mode 100644 index 00000000..e3931128 --- /dev/null +++ b/src/versions/v1/models/get-person-products-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonProductsResponseAllOfDataInner } from './get-person-products-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetPersonProductsResponseAllOf +*/ +export interface GetPersonProductsResponseAllOf { + /** + * The array of deal products + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data': GetActivitiesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-person-products-response.ts b/src/versions/v1/models/get-person-products-response.ts new file mode 100644 index 00000000..27f0b20d --- /dev/null +++ b/src/versions/v1/models/get-person-products-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonProductsResponseAllOf } from './get-person-products-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonProductsResponseAllOfDataInner } from './get-person-products-response-all-of-data-inner'; + +/** + * @type GetPersonProductsResponse + * @export + */ +export type GetPersonProductsResponse = BaseResponse & GetPersonProductsResponseAllOf; + + diff --git a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-organization.ts b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-organization.ts new file mode 100644 index 00000000..b3aa5169 --- /dev/null +++ b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-organization.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPersonSearchResponseAllOfDataItemsInnerItemOrganization +*/ +export interface GetPersonSearchResponseAllOfDataItemsInnerItemOrganization { + /** + * The ID of the organization the person is associated with + * @type {number} + */ + 'id'?: number; + /** + * The name of the organization the person is associated with + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-owner.ts b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-owner.ts new file mode 100644 index 00000000..09989cae --- /dev/null +++ b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item-owner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPersonSearchResponseAllOfDataItemsInnerItemOwner +*/ +export interface GetPersonSearchResponseAllOfDataItemsInnerItemOwner { + /** + * The ID of the owner of the person + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item.ts b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item.ts new file mode 100644 index 00000000..1d1fb455 --- /dev/null +++ b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner-item.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfDataItemsInnerItemOrganization } from './get-person-search-response-all-of-data-items-inner-item-organization'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfDataItemsInnerItemOwner } from './get-person-search-response-all-of-data-items-inner-item-owner'; + +/** +* +* @export +* @interface GetPersonSearchResponseAllOfDataItemsInnerItem +*/ +export interface GetPersonSearchResponseAllOfDataItemsInnerItem { + /** + * The ID of the person + * @type {number} + */ + 'id'?: number; + /** + * The type of the item + * @type {string} + */ + 'type'?: string; + /** + * The name of the person + * @type {string} + */ + 'name'?: string; + /** + * An array of phone numbers + * @type {Array} + */ + 'phones'?: Array; + /** + * An array of email addresses + * @type {Array} + */ + 'emails'?: Array; + /** + * The visibility of the person + * @type {number} + */ + 'visible_to'?: number; + /** + * + * @type {GetPersonSearchResponseAllOfDataItemsInnerItemOwner} + */ + 'owner'?: GetPersonSearchResponseAllOfDataItemsInnerItemOwner; + /** + * + * @type {GetPersonSearchResponseAllOfDataItemsInnerItemOrganization} + */ + 'organization'?: GetPersonSearchResponseAllOfDataItemsInnerItemOrganization; + /** + * Custom fields + * @type {Array} + */ + 'custom_fields'?: Array; + /** + * An array of notes + * @type {Array} + */ + 'notes'?: Array; +} + diff --git a/src/versions/v1/models/get-person-search-response-all-of-data-items-inner.ts b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner.ts new file mode 100644 index 00000000..a02c3fe4 --- /dev/null +++ b/src/versions/v1/models/get-person-search-response-all-of-data-items-inner.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfDataItemsInnerItem } from './get-person-search-response-all-of-data-items-inner-item'; + +/** +* +* @export +* @interface GetPersonSearchResponseAllOfDataItemsInner +*/ +export interface GetPersonSearchResponseAllOfDataItemsInner { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * + * @type {GetPersonSearchResponseAllOfDataItemsInnerItem} + */ + 'item'?: GetPersonSearchResponseAllOfDataItemsInnerItem; +} + diff --git a/src/versions/v1/models/get-person-search-response-all-of-data.ts b/src/versions/v1/models/get-person-search-response-all-of-data.ts new file mode 100644 index 00000000..d952ae05 --- /dev/null +++ b/src/versions/v1/models/get-person-search-response-all-of-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfDataItemsInner } from './get-person-search-response-all-of-data-items-inner'; + +/** +* +* @export +* @interface GetPersonSearchResponseAllOfData +*/ +export interface GetPersonSearchResponseAllOfData { + /** + * The array of found items + * @type {Array} + */ + 'items'?: Array; +} + diff --git a/src/versions/v1/models/get-person-search-response-all-of.ts b/src/versions/v1/models/get-person-search-response-all-of.ts new file mode 100644 index 00000000..6a5d772c --- /dev/null +++ b/src/versions/v1/models/get-person-search-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfData } from './get-person-search-response-all-of-data'; + +/** +* +* @export +* @interface GetPersonSearchResponseAllOf +*/ +export interface GetPersonSearchResponseAllOf { + /** + * + * @type {GetPersonSearchResponseAllOfData} + */ + 'data': GetPersonSearchResponseAllOfData; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data': GetActivitiesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-person-search-response.ts b/src/versions/v1/models/get-person-search-response.ts new file mode 100644 index 00000000..0875aa50 --- /dev/null +++ b/src/versions/v1/models/get-person-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOf } from './get-person-search-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfData } from './get-person-search-response-all-of-data'; + +/** + * @type GetPersonSearchResponse + * @export + */ +export type GetPersonSearchResponse = BaseResponse & GetPersonSearchResponseAllOf; + + diff --git a/src/versions/v1/models/get-persons-collection200-response.ts b/src/versions/v1/models/get-persons-collection200-response.ts new file mode 100644 index 00000000..161ca3cd --- /dev/null +++ b/src/versions/v1/models/get-persons-collection200-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonsCollectionResponseObject } from './persons-collection-response-object'; + +/** +* +* @export +* @interface GetPersonsCollection200Response +*/ +export interface GetPersonsCollection200Response { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetActivitiesCollectionResponseAdditionalData} + */ + 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-persons-response-all-of-related-objects.ts b/src/versions/v1/models/get-persons-response-all-of-related-objects.ts new file mode 100644 index 00000000..2f1f2801 --- /dev/null +++ b/src/versions/v1/models/get-persons-response-all-of-related-objects.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; +// May contain unused imports in some cases +// @ts-ignore +import { RelatedOrganizationDataWithActiveFlag } from './related-organization-data-with-active-flag'; + +/** +* +* @export +* @interface GetPersonsResponseAllOfRelatedObjects +*/ +export interface GetPersonsResponseAllOfRelatedObjects { + /** + * + * @type {RelatedOrganizationDataWithActiveFlag} + */ + 'organization'?: RelatedOrganizationDataWithActiveFlag; + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; +} + diff --git a/src/versions/v1/models/get-persons-response-all-of.ts b/src/versions/v1/models/get-persons-response-all-of.ts new file mode 100644 index 00000000..a8fab19b --- /dev/null +++ b/src/versions/v1/models/get-persons-response-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfRelatedObjects } from './get-persons-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { Person } from './person'; + +/** +* +* @export +* @interface GetPersonsResponseAllOf +*/ +export interface GetPersonsResponseAllOf { + /** + * The array of persons + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; + /** + * + * @type {GetPersonsResponseAllOfRelatedObjects} + */ + 'related_objects': GetPersonsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-persons-response.ts b/src/versions/v1/models/get-persons-response.ts new file mode 100644 index 00000000..d1784eb5 --- /dev/null +++ b/src/versions/v1/models/get-persons-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOf } from './get-persons-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfRelatedObjects } from './get-persons-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { Person } from './person'; + +/** + * @type GetPersonsResponse + * @export + */ +export type GetPersonsResponse = BaseResponse & GetPersonsResponseAllOf; + + diff --git a/src/versions/v1/models/get-persons-response1-all-of.ts b/src/versions/v1/models/get-persons-response1-all-of.ts new file mode 100644 index 00000000..8738ccbb --- /dev/null +++ b/src/versions/v1/models/get-persons-response1-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { Person } from './person'; + +/** +* +* @export +* @interface GetPersonsResponse1AllOf +*/ +export interface GetPersonsResponse1AllOf { + /** + * The array of persons + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data': GetActivitiesResponseAdditionalData; + /** + * + * @type {GetOrganizationsResponseAllOfRelatedObjects} + */ + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-persons-response1.ts b/src/versions/v1/models/get-persons-response1.ts new file mode 100644 index 00000000..5092c7b7 --- /dev/null +++ b/src/versions/v1/models/get-persons-response1.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponse1AllOf } from './get-persons-response1-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { Person } from './person'; + +/** + * @type GetPersonsResponse1 + * @export + */ +export type GetPersonsResponse1 = BaseResponse & GetPersonsResponse1AllOf; + + diff --git a/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response-all-of-data-stage-conversions-inner.ts b/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response-all-of-data-stage-conversions-inner.ts new file mode 100644 index 00000000..02423da3 --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response-all-of-data-stage-conversions-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPipelineDealsConversionRatesInResponseAllOfDataStageConversionsInner +*/ +export interface GetPipelineDealsConversionRatesInResponseAllOfDataStageConversionsInner { + /** + * The stage ID from where conversion starts + * @type {number} + */ + 'from_stage_id'?: number; + /** + * The stage ID to where conversion ends + * @type {number} + */ + 'to_stage_id'?: number; + /** + * The conversion rate + * @type {number} + */ + 'conversion_rate'?: number; +} + diff --git a/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response-all-of-data.ts b/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response-all-of-data.ts new file mode 100644 index 00000000..4e0c76bb --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response-all-of-data.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsConversionRatesInResponseAllOfDataStageConversionsInner } from './get-pipeline-deals-conversion-rates-in-response-all-of-data-stage-conversions-inner'; + +/** +* The pipeline object +* @export +* @interface GetPipelineDealsConversionRatesInResponseAllOfData +*/ +export interface GetPipelineDealsConversionRatesInResponseAllOfData { + /** + * The stage conversions + * @type {Array} + */ + 'stage_conversions'?: Array; + /** + * The won conversion + * @type {number} + */ + 'won_conversion'?: number; + /** + * The lost conversion + * @type {number} + */ + 'lost_conversion'?: number; +} + diff --git a/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response-all-of.ts b/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response-all-of.ts new file mode 100644 index 00000000..43d9fc65 --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsConversionRatesInResponseAllOfData } from './get-pipeline-deals-conversion-rates-in-response-all-of-data'; + +/** +* +* @export +* @interface GetPipelineDealsConversionRatesInResponseAllOf +*/ +export interface GetPipelineDealsConversionRatesInResponseAllOf { + /** + * + * @type {GetPipelineDealsConversionRatesInResponseAllOfData} + */ + 'data'?: GetPipelineDealsConversionRatesInResponseAllOfData; +} + diff --git a/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response.ts b/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response.ts new file mode 100644 index 00000000..8dceccfb --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-conversion-rates-in-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsConversionRatesInResponseAllOf } from './get-pipeline-deals-conversion-rates-in-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsConversionRatesInResponseAllOfData } from './get-pipeline-deals-conversion-rates-in-response-all-of-data'; + +/** + * @type GetPipelineDealsConversionRatesInResponse + * @export + */ +export type GetPipelineDealsConversionRatesInResponse = BaseResponse & GetPipelineDealsConversionRatesInResponseAllOf; + + diff --git a/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days-by-stages-inner.ts b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days-by-stages-inner.ts new file mode 100644 index 00000000..38745982 --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days-by-stages-inner.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The moved deals average age by the stage +* @export +* @interface GetPipelineDealsMovementsStatisticsResponseAllOfDataAverageAgeInDaysByStagesInner +*/ +export interface GetPipelineDealsMovementsStatisticsResponseAllOfDataAverageAgeInDaysByStagesInner { + /** + * The stage ID + * @type {number} + */ + 'stage_id'?: number; + /** + * The average deals age in specific stage + * @type {number} + */ + 'value'?: number; +} + diff --git a/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days.ts b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days.ts new file mode 100644 index 00000000..b6daa664 --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsMovementsStatisticsResponseAllOfDataAverageAgeInDaysByStagesInner } from './get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days-by-stages-inner'; + +/** +* The moved deals average age in days +* @export +* @interface GetPipelineDealsMovementsStatisticsResponseAllOfDataAverageAgeInDays +*/ +export interface GetPipelineDealsMovementsStatisticsResponseAllOfDataAverageAgeInDays { + /** + * The moved deals average age across all stages + * @type {number} + */ + 'across_all_stages'?: number; + /** + * The moved deals average age by stages + * @type {Array} + */ + 'by_stages'?: Array; +} + diff --git a/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-movements-between-stages.ts b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-movements-between-stages.ts new file mode 100644 index 00000000..415653e3 --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-movements-between-stages.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* Movements between stages +* @export +* @interface GetPipelineDealsMovementsStatisticsResponseAllOfDataMovementsBetweenStages +*/ +export interface GetPipelineDealsMovementsStatisticsResponseAllOfDataMovementsBetweenStages { + /** + * The count of the deals that have been moved between stages + * @type {number} + */ + 'count'?: number; +} + diff --git a/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-formatted-values.ts b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-formatted-values.ts new file mode 100644 index 00000000..161acbc8 --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-formatted-values.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The formatted values of the deals +* @export +* @interface GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDealsFormattedValues +*/ +export interface GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDealsFormattedValues { + /** + * The formatted values of the deals + * @type {string} + */ + 'CURRENCY_ID'?: string; +} + diff --git a/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-values.ts b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-values.ts new file mode 100644 index 00000000..5ae0d25a --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-values.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The values of the deals +* @export +* @interface GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDealsValues +*/ +export interface GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDealsValues { + /** + * The value of the deals + * @type {number} + */ + 'CURRENCY_ID'?: number; +} + diff --git a/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals.ts b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals.ts new file mode 100644 index 00000000..507d1c4e --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data-new-deals.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDealsFormattedValues } from './get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-formatted-values'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDealsValues } from './get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-values'; + +/** +* Deals summary +* @export +* @interface GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDeals +*/ +export interface GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDeals { + /** + * The count of the deals + * @type {number} + */ + 'count'?: number; + /** + * The IDs of the deals that have been moved + * @type {Array} + */ + 'deals_ids'?: Array; + /** + * + * @type {GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDealsValues} + */ + 'values'?: GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDealsValues; + /** + * + * @type {GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDealsFormattedValues} + */ + 'formatted_values'?: GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDealsFormattedValues; +} + diff --git a/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data.ts b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data.ts new file mode 100644 index 00000000..01af4b37 --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of-data.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsMovementsStatisticsResponseAllOfDataAverageAgeInDays } from './get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsMovementsStatisticsResponseAllOfDataMovementsBetweenStages } from './get-pipeline-deals-movements-statistics-response-all-of-data-movements-between-stages'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDeals } from './get-pipeline-deals-movements-statistics-response-all-of-data-new-deals'; + +/** +* The pipeline object +* @export +* @interface GetPipelineDealsMovementsStatisticsResponseAllOfData +*/ +export interface GetPipelineDealsMovementsStatisticsResponseAllOfData { + /** + * + * @type {GetPipelineDealsMovementsStatisticsResponseAllOfDataMovementsBetweenStages} + */ + 'movements_between_stages'?: GetPipelineDealsMovementsStatisticsResponseAllOfDataMovementsBetweenStages; + /** + * + * @type {GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDeals} + */ + 'new_deals'?: GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDeals; + /** + * + * @type {GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDeals} + */ + 'deals_left_open'?: GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDeals; + /** + * + * @type {GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDeals} + */ + 'won_deals'?: GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDeals; + /** + * + * @type {GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDeals} + */ + 'lost_deals'?: GetPipelineDealsMovementsStatisticsResponseAllOfDataNewDeals; + /** + * + * @type {GetPipelineDealsMovementsStatisticsResponseAllOfDataAverageAgeInDays} + */ + 'average_age_in_days'?: GetPipelineDealsMovementsStatisticsResponseAllOfDataAverageAgeInDays; +} + diff --git a/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of.ts b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of.ts new file mode 100644 index 00000000..d3025cb8 --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsMovementsStatisticsResponseAllOfData } from './get-pipeline-deals-movements-statistics-response-all-of-data'; + +/** +* +* @export +* @interface GetPipelineDealsMovementsStatisticsResponseAllOf +*/ +export interface GetPipelineDealsMovementsStatisticsResponseAllOf { + /** + * + * @type {GetPipelineDealsMovementsStatisticsResponseAllOfData} + */ + 'data'?: GetPipelineDealsMovementsStatisticsResponseAllOfData; +} + diff --git a/src/versions/v1/models/get-pipeline-deals-movements-statistics-response.ts b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response.ts new file mode 100644 index 00000000..69e4c759 --- /dev/null +++ b/src/versions/v1/models/get-pipeline-deals-movements-statistics-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsMovementsStatisticsResponseAllOf } from './get-pipeline-deals-movements-statistics-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineDealsMovementsStatisticsResponseAllOfData } from './get-pipeline-deals-movements-statistics-response-all-of-data'; + +/** + * @type GetPipelineDealsMovementsStatisticsResponse + * @export + */ +export type GetPipelineDealsMovementsStatisticsResponse = BaseResponse & GetPipelineDealsMovementsStatisticsResponseAllOf; + + diff --git a/src/versions/v1/models/get-pipeline-response-all-of.ts b/src/versions/v1/models/get-pipeline-response-all-of.ts new file mode 100644 index 00000000..4eaa8f6d --- /dev/null +++ b/src/versions/v1/models/get-pipeline-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetails } from './pipeline-details'; + +/** +* +* @export +* @interface GetPipelineResponseAllOf +*/ +export interface GetPipelineResponseAllOf { + /** + * + * @type {PipelineDetails} + */ + 'data'?: PipelineDetails; +} + diff --git a/src/versions/v1/models/get-pipeline-response.ts b/src/versions/v1/models/get-pipeline-response.ts new file mode 100644 index 00000000..155acc4f --- /dev/null +++ b/src/versions/v1/models/get-pipeline-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelineResponseAllOf } from './get-pipeline-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetails } from './pipeline-details'; + +/** + * @type GetPipelineResponse + * @export + */ +export type GetPipelineResponse = BaseResponse & GetPipelineResponseAllOf; + + diff --git a/src/versions/v1/models/get-pipelines-response-all-of.ts b/src/versions/v1/models/get-pipelines-response-all-of.ts new file mode 100644 index 00000000..ee081bb5 --- /dev/null +++ b/src/versions/v1/models/get-pipelines-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasePipelineWithSelectedFlag } from './base-pipeline-with-selected-flag'; + +/** +* +* @export +* @interface GetPipelinesResponseAllOf +*/ +export interface GetPipelinesResponseAllOf { + /** + * Pipelines array + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-pipelines-response.ts b/src/versions/v1/models/get-pipelines-response.ts new file mode 100644 index 00000000..f0681817 --- /dev/null +++ b/src/versions/v1/models/get-pipelines-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasePipelineWithSelectedFlag } from './base-pipeline-with-selected-flag'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelinesResponseAllOf } from './get-pipelines-response-all-of'; + +/** + * @type GetPipelinesResponse + * @export + */ +export type GetPipelinesResponse = BaseResponse & GetPipelinesResponseAllOf; + + diff --git a/src/versions/v1/models/get-product-attachment-details-response-data.ts b/src/versions/v1/models/get-product-attachment-details-response-data.ts new file mode 100644 index 00000000..926bbc35 --- /dev/null +++ b/src/versions/v1/models/get-product-attachment-details-response-data.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAddProductAttachmentDetailsResponseDataAllOfAllOf } from './get-add-product-attachment-details-response-data-all-of-all-of'; + +/** + * @type GetProductAttachmentDetailsResponseData + * The updated product object attached to the deal + * @export + */ +export type GetProductAttachmentDetailsResponseData = GetAddProductAttachmentDetailsResponseDataAllOfAllOf; + + diff --git a/src/versions/v1/models/get-product-attachment-details-response.ts b/src/versions/v1/models/get-product-attachment-details-response.ts new file mode 100644 index 00000000..8e2f35cc --- /dev/null +++ b/src/versions/v1/models/get-product-attachment-details-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductAttachmentDetailsResponseData } from './get-product-attachment-details-response-data'; + +/** +* +* @export +* @interface GetProductAttachmentDetailsResponse +*/ +export interface GetProductAttachmentDetailsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetProductAttachmentDetailsResponseData} + */ + 'data'?: GetProductAttachmentDetailsResponseData; +} + diff --git a/src/versions/v1/models/get-product-field-response-data.ts b/src/versions/v1/models/get-product-field-response-data.ts new file mode 100644 index 00000000..f0d9eb70 --- /dev/null +++ b/src/versions/v1/models/get-product-field-response-data.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ProductField } from './product-field'; + +/** + * @type GetProductFieldResponseData + * All data for the product field + * @export + */ +export type GetProductFieldResponseData = ProductField; + + diff --git a/src/versions/v1/models/get-product-field-response.ts b/src/versions/v1/models/get-product-field-response.ts new file mode 100644 index 00000000..f339076d --- /dev/null +++ b/src/versions/v1/models/get-product-field-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductFieldResponseData } from './get-product-field-response-data'; + +/** +* +* @export +* @interface GetProductFieldResponse +*/ +export interface GetProductFieldResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {GetProductFieldResponseData} + */ + 'data': GetProductFieldResponseData; +} + diff --git a/src/versions/v1/models/get-product-fields-response-data-inner.ts b/src/versions/v1/models/get-product-fields-response-data-inner.ts new file mode 100644 index 00000000..2b32282a --- /dev/null +++ b/src/versions/v1/models/get-product-fields-response-data-inner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldAllOf } from './get-field-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductField } from './product-field'; + +/** + * @type GetProductFieldsResponseDataInner + * @export + */ +export type GetProductFieldsResponseDataInner = GetFieldAllOf & ProductField; + + diff --git a/src/versions/v1/models/get-product-fields-response.ts b/src/versions/v1/models/get-product-fields-response.ts new file mode 100644 index 00000000..c77e10f7 --- /dev/null +++ b/src/versions/v1/models/get-product-fields-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductFieldsResponseDataInner } from './get-product-fields-response-data-inner'; + +/** +* +* @export +* @interface GetProductFieldsResponse +*/ +export interface GetProductFieldsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * Array containing data for all product fields + * @type {Array} + */ + 'data': Array; + /** + * Additional data for the product field, such as pagination + * @type {object} + */ + 'additional_data': object; +} + diff --git a/src/versions/v1/models/get-product-followers-response-all-of-data-inner.ts b/src/versions/v1/models/get-product-followers-response-all-of-data-inner.ts new file mode 100644 index 00000000..4a0bbd7b --- /dev/null +++ b/src/versions/v1/models/get-product-followers-response-all-of-data-inner.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetProductFollowersResponseAllOfDataInner +*/ +export interface GetProductFollowersResponseAllOfDataInner { + /** + * The ID of the user + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the user follower + * @type {number} + */ + 'id'?: number; + /** + * The ID of the product + * @type {number} + */ + 'product_id'?: number; + /** + * The date and time when the follower was added to the person + * @type {string} + */ + 'add_time'?: string; +} + diff --git a/src/versions/v1/models/get-product-followers-response-all-of.ts b/src/versions/v1/models/get-product-followers-response-all-of.ts new file mode 100644 index 00000000..fc3f248e --- /dev/null +++ b/src/versions/v1/models/get-product-followers-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductFollowersResponseAllOfDataInner } from './get-product-followers-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetProductFollowersResponseAllOf +*/ +export interface GetProductFollowersResponseAllOf { + /** + * The list of followers + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data': GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-product-followers-response.ts b/src/versions/v1/models/get-product-followers-response.ts new file mode 100644 index 00000000..046ab9cd --- /dev/null +++ b/src/versions/v1/models/get-product-followers-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductFollowersResponseAllOf } from './get-product-followers-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductFollowersResponseAllOfDataInner } from './get-product-followers-response-all-of-data-inner'; + +/** + * @type GetProductFollowersResponse + * @export + */ +export type GetProductFollowersResponse = BaseResponse & GetProductFollowersResponseAllOf; + + diff --git a/src/versions/v1/models/get-product-response.ts b/src/versions/v1/models/get-product-response.ts new file mode 100644 index 00000000..c5960463 --- /dev/null +++ b/src/versions/v1/models/get-product-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjects } from './get-activities-response-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductListItemProduct } from './product-list-item-product'; + +/** +* +* @export +* @interface GetProductResponse +*/ +export interface GetProductResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {ProductListItemProduct} + */ + 'data': ProductListItemProduct; + /** + * + * @type {GetActivitiesResponseRelatedObjects} + */ + 'related_objects': GetActivitiesResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item-owner.ts b/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item-owner.ts new file mode 100644 index 00000000..e1c45c31 --- /dev/null +++ b/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item-owner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetProductSearchResponseAllOfDataItemsInnerItemOwner +*/ +export interface GetProductSearchResponseAllOfDataItemsInnerItemOwner { + /** + * The ID of the owner of the product + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item.ts b/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item.ts new file mode 100644 index 00000000..f9db43f2 --- /dev/null +++ b/src/versions/v1/models/get-product-search-response-all-of-data-items-inner-item.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOfDataItemsInnerItemOwner } from './get-product-search-response-all-of-data-items-inner-item-owner'; + +/** +* +* @export +* @interface GetProductSearchResponseAllOfDataItemsInnerItem +*/ +export interface GetProductSearchResponseAllOfDataItemsInnerItem { + /** + * The ID of the product + * @type {number} + */ + 'id'?: number; + /** + * The type of the item + * @type {string} + */ + 'type'?: string; + /** + * The name of the product + * @type {string} + */ + 'name'?: string; + /** + * The code of the product + * @type {number} + */ + 'code'?: number; + /** + * The visibility of the product + * @type {number} + */ + 'visible_to'?: number; + /** + * + * @type {GetProductSearchResponseAllOfDataItemsInnerItemOwner} + */ + 'owner'?: GetProductSearchResponseAllOfDataItemsInnerItemOwner; + /** + * The custom fields + * @type {Array} + */ + 'custom_fields'?: Array; +} + diff --git a/src/versions/v1/models/get-product-search-response-all-of-data-items-inner.ts b/src/versions/v1/models/get-product-search-response-all-of-data-items-inner.ts new file mode 100644 index 00000000..e349be8b --- /dev/null +++ b/src/versions/v1/models/get-product-search-response-all-of-data-items-inner.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOfDataItemsInnerItem } from './get-product-search-response-all-of-data-items-inner-item'; + +/** +* +* @export +* @interface GetProductSearchResponseAllOfDataItemsInner +*/ +export interface GetProductSearchResponseAllOfDataItemsInner { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * + * @type {GetProductSearchResponseAllOfDataItemsInnerItem} + */ + 'item'?: GetProductSearchResponseAllOfDataItemsInnerItem; +} + diff --git a/src/versions/v1/models/get-product-search-response-all-of-data.ts b/src/versions/v1/models/get-product-search-response-all-of-data.ts new file mode 100644 index 00000000..3af56a92 --- /dev/null +++ b/src/versions/v1/models/get-product-search-response-all-of-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOfDataItemsInner } from './get-product-search-response-all-of-data-items-inner'; + +/** +* +* @export +* @interface GetProductSearchResponseAllOfData +*/ +export interface GetProductSearchResponseAllOfData { + /** + * The array of found items + * @type {Array} + */ + 'items'?: Array; +} + diff --git a/src/versions/v1/models/get-product-search-response-all-of.ts b/src/versions/v1/models/get-product-search-response-all-of.ts new file mode 100644 index 00000000..ae9bd71e --- /dev/null +++ b/src/versions/v1/models/get-product-search-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOfData } from './get-product-search-response-all-of-data'; + +/** +* +* @export +* @interface GetProductSearchResponseAllOf +*/ +export interface GetProductSearchResponseAllOf { + /** + * + * @type {GetProductSearchResponseAllOfData} + */ + 'data': GetProductSearchResponseAllOfData; + /** + * + * @type {GetActivitiesResponseAdditionalData} + */ + 'additional_data': GetActivitiesResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-product-search-response.ts b/src/versions/v1/models/get-product-search-response.ts new file mode 100644 index 00000000..0eb02a97 --- /dev/null +++ b/src/versions/v1/models/get-product-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOf } from './get-product-search-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOfData } from './get-product-search-response-all-of-data'; + +/** + * @type GetProductSearchResponse + * @export + */ +export type GetProductSearchResponse = BaseResponse & GetProductSearchResponseAllOf; + + diff --git a/src/versions/v1/models/get-products-response-all-of-additional-data-all-of.ts b/src/versions/v1/models/get-products-response-all-of-additional-data-all-of.ts new file mode 100644 index 00000000..5aa2e619 --- /dev/null +++ b/src/versions/v1/models/get-products-response-all-of-additional-data-all-of.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetProductsResponseAllOfAdditionalDataAllOf +*/ +export interface GetProductsResponseAllOfAdditionalDataAllOf { + /** + * The total quantity of the products + * @type {number} + */ + 'products_quantity_total'?: number; + /** + * The total sum of the products + * @type {number} + */ + 'products_sum_total'?: number; + /** + * The total formatted quantity of the products + * @type {string} + */ + 'products_quantity_total_formatted'?: string; + /** + * The total formatted sum of the products + * @type {string} + */ + 'products_sum_total_formatted'?: string; +} + diff --git a/src/versions/v1/models/get-products-response-all-of-additional-data.ts b/src/versions/v1/models/get-products-response-all-of-additional-data.ts new file mode 100644 index 00000000..93cc3c8c --- /dev/null +++ b/src/versions/v1/models/get-products-response-all-of-additional-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalData } from './get-activities-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAdditionalDataPagination } from './get-activities-response-additional-data-pagination'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductsResponseAllOfAdditionalDataAllOf } from './get-products-response-all-of-additional-data-all-of'; + +/** + * @type GetProductsResponseAllOfAdditionalData + * @export + */ +export type GetProductsResponseAllOfAdditionalData = GetActivitiesResponseAdditionalData & GetProductsResponseAllOfAdditionalDataAllOf; + + diff --git a/src/versions/v1/models/get-products-response-all-of-related-objects.ts b/src/versions/v1/models/get-products-response-all-of-related-objects.ts new file mode 100644 index 00000000..b754e3b4 --- /dev/null +++ b/src/versions/v1/models/get-products-response-all-of-related-objects.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjectsUser } from './get-activities-response-related-objects-user'; + +/** +* +* @export +* @interface GetProductsResponseAllOfRelatedObjects +*/ +export interface GetProductsResponseAllOfRelatedObjects { + /** + * + * @type {GetActivitiesResponseRelatedObjectsUser} + */ + 'user'?: GetActivitiesResponseRelatedObjectsUser; +} + diff --git a/src/versions/v1/models/get-products-response-all-of.ts b/src/versions/v1/models/get-products-response-all-of.ts new file mode 100644 index 00000000..a839c200 --- /dev/null +++ b/src/versions/v1/models/get-products-response-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductsResponseAllOfAdditionalData } from './get-products-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductsResponseAllOfRelatedObjects } from './get-products-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductListItem } from './product-list-item'; + +/** +* +* @export +* @interface GetProductsResponseAllOf +*/ +export interface GetProductsResponseAllOf { + /** + * The array of products + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetProductsResponseAllOfAdditionalData} + */ + 'additional_data': GetProductsResponseAllOfAdditionalData; + /** + * + * @type {GetProductsResponseAllOfRelatedObjects} + */ + 'related_objects': GetProductsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/get-products-response.ts b/src/versions/v1/models/get-products-response.ts new file mode 100644 index 00000000..ac13444f --- /dev/null +++ b/src/versions/v1/models/get-products-response.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductsResponseAllOf } from './get-products-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductsResponseAllOfAdditionalData } from './get-products-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductsResponseAllOfRelatedObjects } from './get-products-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductListItem } from './product-list-item'; + +/** + * @type GetProductsResponse + * @export + */ +export type GetProductsResponse = BaseResponse & GetProductsResponseAllOf; + + diff --git a/src/versions/v1/models/get-products-response1-additional-data.ts b/src/versions/v1/models/get-products-response1-additional-data.ts new file mode 100644 index 00000000..2201e6bd --- /dev/null +++ b/src/versions/v1/models/get-products-response1-additional-data.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* Any additional data related to the products +* @export +* @interface GetProductsResponse1AdditionalData +*/ +export interface GetProductsResponse1AdditionalData { + /** + * Pagination start + * @type {number} + */ + 'start'?: number; + /** + * Items shown per page + * @type {number} + */ + 'limit'?: number; + /** + * If there are more list items in the collection than displayed or not + * @type {boolean} + */ + 'more_items_in_collection'?: boolean; +} + diff --git a/src/versions/v1/models/get-products-response1.ts b/src/versions/v1/models/get-products-response1.ts new file mode 100644 index 00000000..60ca6018 --- /dev/null +++ b/src/versions/v1/models/get-products-response1.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjects } from './get-activities-response-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductResponse } from './get-product-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductsResponse1AdditionalData } from './get-products-response1-additional-data'; + +/** +* +* @export +* @interface GetProductsResponse1 +*/ +export interface GetProductsResponse1 { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * Array containing data for all products + * @type {Array} + */ + 'data': Array; + /** + * + * @type {GetProductsResponse1AdditionalData} + */ + 'additional_data': GetProductsResponse1AdditionalData; + /** + * + * @type {GetActivitiesResponseRelatedObjects} + */ + 'related_objects': GetActivitiesResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/get-project-board-response.ts b/src/versions/v1/models/get-project-board-response.ts new file mode 100644 index 00000000..57473305 --- /dev/null +++ b/src/versions/v1/models/get-project-board-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProjectBoardsResponseDataInner } from './get-project-boards-response-data-inner'; + +/** +* +* @export +* @interface GetProjectBoardResponse +*/ +export interface GetProjectBoardResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetProjectBoardsResponseDataInner} + */ + 'data'?: GetProjectBoardsResponseDataInner; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/get-project-boards-response-data-inner.ts b/src/versions/v1/models/get-project-boards-response-data-inner.ts new file mode 100644 index 00000000..fbdb004e --- /dev/null +++ b/src/versions/v1/models/get-project-boards-response-data-inner.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetProjectBoardsResponseDataInner +*/ +export interface GetProjectBoardsResponseDataInner { + /** + * The ID of the project board + * @type {number} + */ + 'id'?: number; + /** + * Name of a project board + * @type {string} + */ + 'name'?: string; + /** + * The order of a board + * @type {number} + */ + 'order_nr'?: number; + /** + * The creation date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time'?: string; + /** + * The update date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v1/models/get-project-boards-response.ts b/src/versions/v1/models/get-project-boards-response.ts new file mode 100644 index 00000000..8c06739a --- /dev/null +++ b/src/versions/v1/models/get-project-boards-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProjectBoardsResponseDataInner } from './get-project-boards-response-data-inner'; + +/** +* +* @export +* @interface GetProjectBoardsResponse +*/ +export interface GetProjectBoardsResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/get-project-groups-response-data-inner.ts b/src/versions/v1/models/get-project-groups-response-data-inner.ts new file mode 100644 index 00000000..9023e126 --- /dev/null +++ b/src/versions/v1/models/get-project-groups-response-data-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetProjectGroupsResponseDataInner +*/ +export interface GetProjectGroupsResponseDataInner { + /** + * ID of the group + * @type {number} + */ + 'id'?: number; + /** + * Name of the group + * @type {string} + */ + 'name'?: string; + /** + * Order number of the group + * @type {number} + */ + 'order_nr'?: number; +} + diff --git a/src/versions/v1/models/get-project-groups-response.ts b/src/versions/v1/models/get-project-groups-response.ts new file mode 100644 index 00000000..ebdacf26 --- /dev/null +++ b/src/versions/v1/models/get-project-groups-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProjectGroupsResponseDataInner } from './get-project-groups-response-data-inner'; + +/** +* +* @export +* @interface GetProjectGroupsResponse +*/ +export interface GetProjectGroupsResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/get-project-phase-response.ts b/src/versions/v1/models/get-project-phase-response.ts new file mode 100644 index 00000000..542d3fb0 --- /dev/null +++ b/src/versions/v1/models/get-project-phase-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProjectPhasesResponseDataInner } from './get-project-phases-response-data-inner'; + +/** +* +* @export +* @interface GetProjectPhaseResponse +*/ +export interface GetProjectPhaseResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetProjectPhasesResponseDataInner} + */ + 'data'?: GetProjectPhasesResponseDataInner; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/get-project-phases-response-data-inner.ts b/src/versions/v1/models/get-project-phases-response-data-inner.ts new file mode 100644 index 00000000..a09589b6 --- /dev/null +++ b/src/versions/v1/models/get-project-phases-response-data-inner.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetProjectPhasesResponseDataInner +*/ +export interface GetProjectPhasesResponseDataInner { + /** + * The ID of the project phase + * @type {number} + */ + 'id'?: number; + /** + * Name of a project phase + * @type {string} + */ + 'name'?: string; + /** + * The ID of the project board this phase is linked to + * @type {number} + */ + 'board_id'?: number; + /** + * The order of a phase + * @type {number} + */ + 'order_nr'?: number; + /** + * The creation date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time'?: string; + /** + * The update date and time of the board in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v1/models/get-project-phases-response.ts b/src/versions/v1/models/get-project-phases-response.ts new file mode 100644 index 00000000..d4c3b260 --- /dev/null +++ b/src/versions/v1/models/get-project-phases-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProjectPhasesResponseDataInner } from './get-project-phases-response-data-inner'; + +/** +* +* @export +* @interface GetProjectPhasesResponse +*/ +export interface GetProjectPhasesResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/get-project-plan-response-data-inner.ts b/src/versions/v1/models/get-project-plan-response-data-inner.ts new file mode 100644 index 00000000..a9813d1b --- /dev/null +++ b/src/versions/v1/models/get-project-plan-response-data-inner.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetProjectPlanResponseDataInner +*/ +export interface GetProjectPlanResponseDataInner { + /** + * ID of plan item (either activity or task ID) + * @type {number} + */ + 'item_id'?: number; + /** + * Type of a plan item (task / activity) + * @type {string} + */ + 'item_type'?: string; + /** + * The ID of the board this project is associated with. If null then plan item is not in any phase. + * @type {number} + */ + 'phase_id'?: number; + /** + * The ID of the board this project is associated with. If null then plan item is not in any group. + * @type {number} + */ + 'group_id'?: number; +} + diff --git a/src/versions/v1/models/get-project-plan-response.ts b/src/versions/v1/models/get-project-plan-response.ts new file mode 100644 index 00000000..42f12e35 --- /dev/null +++ b/src/versions/v1/models/get-project-plan-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProjectPlanResponseDataInner } from './get-project-plan-response-data-inner'; + +/** +* +* @export +* @interface GetProjectPlanResponse +*/ +export interface GetProjectPlanResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/get-project-response.ts b/src/versions/v1/models/get-project-response.ts new file mode 100644 index 00000000..dde5a097 --- /dev/null +++ b/src/versions/v1/models/get-project-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ProjectResponseObject } from './project-response-object'; + +/** +* +* @export +* @interface GetProjectResponse +*/ +export interface GetProjectResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {ProjectResponseObject} + */ + 'data'?: ProjectResponseObject; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/get-project-template-response.ts b/src/versions/v1/models/get-project-template-response.ts new file mode 100644 index 00000000..209da437 --- /dev/null +++ b/src/versions/v1/models/get-project-template-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { TemplateResponseObject } from './template-response-object'; + +/** +* +* @export +* @interface GetProjectTemplateResponse +*/ +export interface GetProjectTemplateResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {TemplateResponseObject} + */ + 'data'?: TemplateResponseObject; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/get-project-templates-response.ts b/src/versions/v1/models/get-project-templates-response.ts new file mode 100644 index 00000000..7995099c --- /dev/null +++ b/src/versions/v1/models/get-project-templates-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { TemplateResponseObject } from './template-response-object'; + +/** +* +* @export +* @interface GetProjectTemplatesResponse +*/ +export interface GetProjectTemplatesResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetActivitiesCollectionResponseAdditionalData} + */ + 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-projects-response.ts b/src/versions/v1/models/get-projects-response.ts new file mode 100644 index 00000000..7dc5844b --- /dev/null +++ b/src/versions/v1/models/get-projects-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { ProjectResponseObject } from './project-response-object'; + +/** +* +* @export +* @interface GetProjectsResponse +*/ +export interface GetProjectsResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetActivitiesCollectionResponseAdditionalData} + */ + 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-receive-message-success-response.ts b/src/versions/v1/models/get-receive-message-success-response.ts new file mode 100644 index 00000000..489f34dc --- /dev/null +++ b/src/versions/v1/models/get-receive-message-success-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ReceiveMessageRequest } from './receive-message-request'; + +/** +* +* @export +* @interface GetReceiveMessageSuccessResponse +*/ +export interface GetReceiveMessageSuccessResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {ReceiveMessageRequest} + */ + 'data'?: ReceiveMessageRequest; +} + diff --git a/src/versions/v1/models/get-recents-response-additional-data.ts b/src/versions/v1/models/get-recents-response-additional-data.ts new file mode 100644 index 00000000..089270e5 --- /dev/null +++ b/src/versions/v1/models/get-recents-response-additional-data.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetRecentsResponseAdditionalData +*/ +export interface GetRecentsResponseAdditionalData { + /** + * The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'since_timestamp'?: string; + /** + * The timestamp in UTC. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'last_timestamp_on_page'?: string; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'pagination'?: GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-recents-response.ts b/src/versions/v1/models/get-recents-response.ts new file mode 100644 index 00000000..f05de6d5 --- /dev/null +++ b/src/versions/v1/models/get-recents-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetRecentsResponseAdditionalData } from './get-recents-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInner } from './recents-data-inner'; + +/** +* +* @export +* @interface GetRecentsResponse +*/ +export interface GetRecentsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetRecentsResponseAdditionalData} + */ + 'additional_data'?: GetRecentsResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-role-assignments-response-data.ts b/src/versions/v1/models/get-role-assignments-response-data.ts new file mode 100644 index 00000000..c8a9a014 --- /dev/null +++ b/src/versions/v1/models/get-role-assignments-response-data.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetRolesResponseAllOfAdditionalData } from './get-roles-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { RoleAssignment } from './role-assignment'; + +/** +* +* @export +* @interface GetRoleAssignmentsResponseData +*/ +export interface GetRoleAssignmentsResponseData { + /** + * The role assignments + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetRolesResponseAllOfAdditionalData} + */ + 'additional_data'?: GetRolesResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-role-assignments-response.ts b/src/versions/v1/models/get-role-assignments-response.ts new file mode 100644 index 00000000..b0a5b9b1 --- /dev/null +++ b/src/versions/v1/models/get-role-assignments-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetRoleAssignmentsResponseData } from './get-role-assignments-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetRolesResponseAllOfAdditionalData } from './get-roles-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { RoleAssignment } from './role-assignment'; + +/** + * @type GetRoleAssignmentsResponse + * @export + */ +export type GetRoleAssignmentsResponse = BaseResponse & GetRoleAssignmentsResponseData; + + diff --git a/src/versions/v1/models/get-role-pipelines-response-all-of.ts b/src/versions/v1/models/get-role-pipelines-response-all-of.ts new file mode 100644 index 00000000..a1653d86 --- /dev/null +++ b/src/versions/v1/models/get-role-pipelines-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetRolePipelinesResponseData } from './get-role-pipelines-response-data'; + +/** +* +* @export +* @interface GetRolePipelinesResponseAllOf +*/ +export interface GetRolePipelinesResponseAllOf { + /** + * + * @type {GetRolePipelinesResponseData} + */ + 'data'?: GetRolePipelinesResponseData; +} + diff --git a/src/versions/v1/models/get-role-pipelines-response-data.ts b/src/versions/v1/models/get-role-pipelines-response-data.ts new file mode 100644 index 00000000..d0858dde --- /dev/null +++ b/src/versions/v1/models/get-role-pipelines-response-data.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The response data +* @export +* @interface GetRolePipelinesResponseData +*/ +export interface GetRolePipelinesResponseData { + /** + * Either visible or hidden pipeline ids + * @type {Array} + */ + 'pipeline_ids'?: Array; + /** + * Whether visible or hidden pipeline ids were returned + * @type {boolean} + */ + 'visible'?: boolean; +} + diff --git a/src/versions/v1/models/get-role-pipelines-response.ts b/src/versions/v1/models/get-role-pipelines-response.ts new file mode 100644 index 00000000..49350c17 --- /dev/null +++ b/src/versions/v1/models/get-role-pipelines-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetRolePipelinesResponseAllOf } from './get-role-pipelines-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetRolePipelinesResponseData } from './get-role-pipelines-response-data'; + +/** + * @type GetRolePipelinesResponse + * @export + */ +export type GetRolePipelinesResponse = BaseResponse & GetRolePipelinesResponseAllOf; + + diff --git a/src/versions/v1/models/get-role-response-data-additional-data.ts b/src/versions/v1/models/get-role-response-data-additional-data.ts new file mode 100644 index 00000000..c1e2f645 --- /dev/null +++ b/src/versions/v1/models/get-role-response-data-additional-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { RoleSettings } from './role-settings'; + +/** +* The additional data in the role +* @export +* @interface GetRoleResponseDataAdditionalData +*/ +export interface GetRoleResponseDataAdditionalData { + /** + * + * @type {RoleSettings} + */ + 'settings'?: RoleSettings; +} + diff --git a/src/versions/v1/models/get-role-response-data.ts b/src/versions/v1/models/get-role-response-data.ts new file mode 100644 index 00000000..ff62467a --- /dev/null +++ b/src/versions/v1/models/get-role-response-data.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetRoleResponseDataAdditionalData } from './get-role-response-data-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { SubRole } from './sub-role'; + +/** +* +* @export +* @interface GetRoleResponseData +*/ +export interface GetRoleResponseData { + /** + * + * @type {SubRole} + */ + 'data'?: SubRole; + /** + * + * @type {GetRoleResponseDataAdditionalData} + */ + 'additional_data'?: GetRoleResponseDataAdditionalData; +} + diff --git a/src/versions/v1/models/get-role-response.ts b/src/versions/v1/models/get-role-response.ts new file mode 100644 index 00000000..f9814be8 --- /dev/null +++ b/src/versions/v1/models/get-role-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetRoleResponseData } from './get-role-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetRoleResponseDataAdditionalData } from './get-role-response-data-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { SubRole } from './sub-role'; + +/** + * @type GetRoleResponse + * @export + */ +export type GetRoleResponse = BaseResponse & GetRoleResponseData; + + diff --git a/src/versions/v1/models/get-role-settings-response-data.ts b/src/versions/v1/models/get-role-settings-response-data.ts new file mode 100644 index 00000000..aa4a4b6d --- /dev/null +++ b/src/versions/v1/models/get-role-settings-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { RoleSettings } from './role-settings'; + +/** +* +* @export +* @interface GetRoleSettingsResponseData +*/ +export interface GetRoleSettingsResponseData { + /** + * + * @type {RoleSettings} + */ + 'data'?: RoleSettings; +} + diff --git a/src/versions/v1/models/get-role-settings-response.ts b/src/versions/v1/models/get-role-settings-response.ts new file mode 100644 index 00000000..adfe7d42 --- /dev/null +++ b/src/versions/v1/models/get-role-settings-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetRoleSettingsResponseData } from './get-role-settings-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { RoleSettings } from './role-settings'; + +/** + * @type GetRoleSettingsResponse + * @export + */ +export type GetRoleSettingsResponse = BaseResponse & GetRoleSettingsResponseData; + + diff --git a/src/versions/v1/models/get-roles-response-all-of-additional-data-pagination.ts b/src/versions/v1/models/get-roles-response-all-of-additional-data-pagination.ts new file mode 100644 index 00000000..1fadf948 --- /dev/null +++ b/src/versions/v1/models/get-roles-response-all-of-additional-data-pagination.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The pagination details in the role list +* @export +* @interface GetRolesResponseAllOfAdditionalDataPagination +*/ +export interface GetRolesResponseAllOfAdditionalDataPagination { + /** + * Pagination start + * @type {number} + */ + 'start'?: number; + /** + * Items shown per page + * @type {number} + */ + 'limit'?: number; + /** + * Whether there are more list items in the collection than displayed + * @type {boolean} + */ + 'more_items_in_collection'?: boolean; +} + diff --git a/src/versions/v1/models/get-roles-response-all-of-additional-data.ts b/src/versions/v1/models/get-roles-response-all-of-additional-data.ts new file mode 100644 index 00000000..c076b82c --- /dev/null +++ b/src/versions/v1/models/get-roles-response-all-of-additional-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetRolesResponseAllOfAdditionalDataPagination } from './get-roles-response-all-of-additional-data-pagination'; + +/** +* The additional data in the role list +* @export +* @interface GetRolesResponseAllOfAdditionalData +*/ +export interface GetRolesResponseAllOfAdditionalData { + /** + * + * @type {GetRolesResponseAllOfAdditionalDataPagination} + */ + 'pagination'?: GetRolesResponseAllOfAdditionalDataPagination; +} + diff --git a/src/versions/v1/models/get-roles-response-all-of.ts b/src/versions/v1/models/get-roles-response-all-of.ts new file mode 100644 index 00000000..aeb128d7 --- /dev/null +++ b/src/versions/v1/models/get-roles-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { FullRole } from './full-role'; +// May contain unused imports in some cases +// @ts-ignore +import { GetRolesResponseAllOfAdditionalData } from './get-roles-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetRolesResponseAllOf +*/ +export interface GetRolesResponseAllOf { + /** + * The array of roles + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetRolesResponseAllOfAdditionalData} + */ + 'additional_data'?: GetRolesResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-roles-response.ts b/src/versions/v1/models/get-roles-response.ts new file mode 100644 index 00000000..f53150eb --- /dev/null +++ b/src/versions/v1/models/get-roles-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { FullRole } from './full-role'; +// May contain unused imports in some cases +// @ts-ignore +import { GetRolesResponseAllOf } from './get-roles-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetRolesResponseAllOfAdditionalData } from './get-roles-response-all-of-additional-data'; + +/** + * @type GetRolesResponse + * @export + */ +export type GetRolesResponse = BaseResponse & GetRolesResponseAllOf; + + diff --git a/src/versions/v1/models/get-stage-deals-response.ts b/src/versions/v1/models/get-stage-deals-response.ts new file mode 100644 index 00000000..ce384457 --- /dev/null +++ b/src/versions/v1/models/get-stage-deals-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealStrict } from './deal-strict'; +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; + +/** +* +* @export +* @interface GetStageDealsResponse +*/ +export interface GetStageDealsResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * The array of deals + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetFieldsResponseAllOfAdditionalData} + */ + 'additional_data'?: GetFieldsResponseAllOfAdditionalData; +} + diff --git a/src/versions/v1/models/get-stage-response-data.ts b/src/versions/v1/models/get-stage-response-data.ts new file mode 100644 index 00000000..d7273faa --- /dev/null +++ b/src/versions/v1/models/get-stage-response-data.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseStage } from './base-stage'; +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetailsAllOfDealsSummary } from './pipeline-details-all-of-deals-summary'; +// May contain unused imports in some cases +// @ts-ignore +import { StageDetailsData } from './stage-details-data'; + +/** + * @type GetStageResponseData + * The stage object + * @export + */ +export type GetStageResponseData = BaseStage & StageDetailsData; + + diff --git a/src/versions/v1/models/get-stage-response.ts b/src/versions/v1/models/get-stage-response.ts new file mode 100644 index 00000000..402e2208 --- /dev/null +++ b/src/versions/v1/models/get-stage-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetStageResponseData } from './get-stage-response-data'; + +/** +* +* @export +* @interface GetStageResponse +*/ +export interface GetStageResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetStageResponseData} + */ + 'data'?: GetStageResponseData; +} + diff --git a/src/versions/v1/models/get-stages-response-data-inner.ts b/src/versions/v1/models/get-stages-response-data-inner.ts new file mode 100644 index 00000000..8be106ff --- /dev/null +++ b/src/versions/v1/models/get-stages-response-data-inner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseStage } from './base-stage'; +// May contain unused imports in some cases +// @ts-ignore +import { StageWithPipelineInfo } from './stage-with-pipeline-info'; + +/** + * @type GetStagesResponseDataInner + * @export + */ +export type GetStagesResponseDataInner = BaseStage & StageWithPipelineInfo; + + diff --git a/src/versions/v1/models/get-stages-response.ts b/src/versions/v1/models/get-stages-response.ts new file mode 100644 index 00000000..52b83ab0 --- /dev/null +++ b/src/versions/v1/models/get-stages-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetStagesResponseDataInner } from './get-stages-response-data-inner'; + +/** +* +* @export +* @interface GetStagesResponse +*/ +export interface GetStagesResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * The array of stages + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-subscription-addons-response-all-of.ts b/src/versions/v1/models/get-subscription-addons-response-all-of.ts new file mode 100644 index 00000000..47a505af --- /dev/null +++ b/src/versions/v1/models/get-subscription-addons-response-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetSubscriptionAddonsResponseAllOf +*/ +export interface GetSubscriptionAddonsResponseAllOf { + /** + * An array of add-ons that the company has. + * @type {Array} + */ + 'data': Array; +} + diff --git a/src/versions/v1/models/get-subscription-addons-response.ts b/src/versions/v1/models/get-subscription-addons-response.ts new file mode 100644 index 00000000..3205196a --- /dev/null +++ b/src/versions/v1/models/get-subscription-addons-response.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetSubscriptionAddonsResponseAllOf } from './get-subscription-addons-response-all-of'; + +/** + * @type GetSubscriptionAddonsResponse + * @export + */ +export type GetSubscriptionAddonsResponse = BaseResponse & GetSubscriptionAddonsResponseAllOf; + + diff --git a/src/versions/v1/models/get-subscriptions-id-response-data.ts b/src/versions/v1/models/get-subscriptions-id-response-data.ts new file mode 100644 index 00000000..6aeafc7e --- /dev/null +++ b/src/versions/v1/models/get-subscriptions-id-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { SubscriptionItem } from './subscription-item'; + +/** +* +* @export +* @interface GetSubscriptionsIdResponseData +*/ +export interface GetSubscriptionsIdResponseData { + /** + * + * @type {SubscriptionItem} + */ + 'data': SubscriptionItem; +} + diff --git a/src/versions/v1/models/get-subscriptions-id-response.ts b/src/versions/v1/models/get-subscriptions-id-response.ts new file mode 100644 index 00000000..dcb975fd --- /dev/null +++ b/src/versions/v1/models/get-subscriptions-id-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetSubscriptionsIdResponseData } from './get-subscriptions-id-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { SubscriptionItem } from './subscription-item'; + +/** + * @type GetSubscriptionsIdResponse + * @export + */ +export type GetSubscriptionsIdResponse = BaseResponse & GetSubscriptionsIdResponseData; + + diff --git a/src/versions/v1/models/get-task-response.ts b/src/versions/v1/models/get-task-response.ts new file mode 100644 index 00000000..f39f3223 --- /dev/null +++ b/src/versions/v1/models/get-task-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { TaskResponseObject } from './task-response-object'; + +/** +* +* @export +* @interface GetTaskResponse +*/ +export interface GetTaskResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {TaskResponseObject} + */ + 'data'?: TaskResponseObject; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/get-tasks-response.ts b/src/versions/v1/models/get-tasks-response.ts new file mode 100644 index 00000000..22756bb5 --- /dev/null +++ b/src/versions/v1/models/get-tasks-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesCollectionResponseAdditionalData } from './get-activities-collection-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { TaskResponseObject } from './task-response-object'; + +/** +* +* @export +* @interface GetTasksResponse +*/ +export interface GetTasksResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetActivitiesCollectionResponseAdditionalData} + */ + 'additional_data'?: GetActivitiesCollectionResponseAdditionalData; +} + diff --git a/src/versions/v1/models/get-team-response-all-of.ts b/src/versions/v1/models/get-team-response-all-of.ts new file mode 100644 index 00000000..931f50c7 --- /dev/null +++ b/src/versions/v1/models/get-team-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseTeam } from './base-team'; + +/** +* +* @export +* @interface GetTeamResponseAllOf +*/ +export interface GetTeamResponseAllOf { + /** + * + * @type {BaseTeam} + */ + 'data'?: BaseTeam; +} + diff --git a/src/versions/v1/models/get-team-response.ts b/src/versions/v1/models/get-team-response.ts new file mode 100644 index 00000000..4af026e0 --- /dev/null +++ b/src/versions/v1/models/get-team-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseTeam } from './base-team'; +// May contain unused imports in some cases +// @ts-ignore +import { GetTeamResponseAllOf } from './get-team-response-all-of'; + +/** + * @type GetTeamResponse + * @export + */ +export type GetTeamResponse = BaseResponse & GetTeamResponseAllOf; + + diff --git a/src/versions/v1/models/get-teams-response-all-of.ts b/src/versions/v1/models/get-teams-response-all-of.ts new file mode 100644 index 00000000..532d1bd6 --- /dev/null +++ b/src/versions/v1/models/get-teams-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseTeam } from './base-team'; + +/** +* +* @export +* @interface GetTeamsResponseAllOf +*/ +export interface GetTeamsResponseAllOf { + /** + * + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-teams-response.ts b/src/versions/v1/models/get-teams-response.ts new file mode 100644 index 00000000..273a510e --- /dev/null +++ b/src/versions/v1/models/get-teams-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseTeam } from './base-team'; +// May contain unused imports in some cases +// @ts-ignore +import { GetTeamsResponseAllOf } from './get-teams-response-all-of'; + +/** + * @type GetTeamsResponse + * @export + */ +export type GetTeamsResponse = BaseResponse & GetTeamsResponseAllOf; + + diff --git a/src/versions/v1/models/get-user-assignments-to-permission-set-response-all-of-data-inner.ts b/src/versions/v1/models/get-user-assignments-to-permission-set-response-all-of-data-inner.ts new file mode 100644 index 00000000..28bc2b44 --- /dev/null +++ b/src/versions/v1/models/get-user-assignments-to-permission-set-response-all-of-data-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetUserAssignmentsToPermissionSetResponseAllOfDataInner +*/ +export interface GetUserAssignmentsToPermissionSetResponseAllOfDataInner { + /** + * The ID of the user in the permission set + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the permission set + * @type {string} + */ + 'permission_set_id'?: string; + /** + * The name of the permission set + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/get-user-assignments-to-permission-set-response-all-of.ts b/src/versions/v1/models/get-user-assignments-to-permission-set-response-all-of.ts new file mode 100644 index 00000000..c7ad7d85 --- /dev/null +++ b/src/versions/v1/models/get-user-assignments-to-permission-set-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetUserAssignmentsToPermissionSetResponseAllOfDataInner } from './get-user-assignments-to-permission-set-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetUserAssignmentsToPermissionSetResponseAllOf +*/ +export interface GetUserAssignmentsToPermissionSetResponseAllOf { + /** + * An array of the assignments of the user + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-user-assignments-to-permission-set-response.ts b/src/versions/v1/models/get-user-assignments-to-permission-set-response.ts new file mode 100644 index 00000000..d1ba643c --- /dev/null +++ b/src/versions/v1/models/get-user-assignments-to-permission-set-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetUserAssignmentsToPermissionSetResponseAllOf } from './get-user-assignments-to-permission-set-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetUserAssignmentsToPermissionSetResponseAllOfDataInner } from './get-user-assignments-to-permission-set-response-all-of-data-inner'; + +/** + * @type GetUserAssignmentsToPermissionSetResponse + * @export + */ +export type GetUserAssignmentsToPermissionSetResponse = BaseResponse & GetUserAssignmentsToPermissionSetResponseAllOf; + + diff --git a/src/versions/v1/models/get-user-connections-response-data-data.ts b/src/versions/v1/models/get-user-connections-response-data-data.ts new file mode 100644 index 00000000..a405f01f --- /dev/null +++ b/src/versions/v1/models/get-user-connections-response-data-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The object of UserConnections +* @export +* @interface GetUserConnectionsResponseDataData +*/ +export interface GetUserConnectionsResponseDataData { + /** + * The third party ID or false in case the ID is not found + * @type {string} + */ + 'google'?: string; +} + diff --git a/src/versions/v1/models/get-user-connections-response-data.ts b/src/versions/v1/models/get-user-connections-response-data.ts new file mode 100644 index 00000000..08d53dce --- /dev/null +++ b/src/versions/v1/models/get-user-connections-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetUserConnectionsResponseDataData } from './get-user-connections-response-data-data'; + +/** +* +* @export +* @interface GetUserConnectionsResponseData +*/ +export interface GetUserConnectionsResponseData { + /** + * + * @type {GetUserConnectionsResponseDataData} + */ + 'data'?: GetUserConnectionsResponseDataData; +} + diff --git a/src/versions/v1/models/get-user-connections-response.ts b/src/versions/v1/models/get-user-connections-response.ts new file mode 100644 index 00000000..7a8979ea --- /dev/null +++ b/src/versions/v1/models/get-user-connections-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetUserConnectionsResponseData } from './get-user-connections-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetUserConnectionsResponseDataData } from './get-user-connections-response-data-data'; + +/** + * @type GetUserConnectionsResponse + * @export + */ +export type GetUserConnectionsResponse = BaseResponse & GetUserConnectionsResponseData; + + diff --git a/src/versions/v1/models/get-user-permissions-response-all-of-data.ts b/src/versions/v1/models/get-user-permissions-response-all-of-data.ts new file mode 100644 index 00000000..e2c0b091 --- /dev/null +++ b/src/versions/v1/models/get-user-permissions-response-all-of-data.ts @@ -0,0 +1,179 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetUserPermissionsResponseAllOfData +*/ +export interface GetUserPermissionsResponseAllOfData { + /** + * If the user can add custom fields + * @type {boolean} + */ + 'can_add_custom_fields'?: boolean; + /** + * If the user can add products + * @type {boolean} + */ + 'can_add_products'?: boolean; + /** + * If the user can add prospects as leads + * @type {boolean} + */ + 'can_add_prospects_as_leads'?: boolean; + /** + * If the user can bulk edit items + * @type {boolean} + */ + 'can_bulk_edit_items'?: boolean; + /** + * If the user can change visibility of items + * @type {boolean} + */ + 'can_change_visibility_of_items'?: boolean; + /** + * If the user can convert deals to leads + * @type {boolean} + */ + 'can_convert_deals_to_leads'?: boolean; + /** + * If the user can create workflows + * @type {boolean} + */ + 'can_create_own_workflow'?: boolean; + /** + * If the user can delete activities + * @type {boolean} + */ + 'can_delete_activities'?: boolean; + /** + * If the user can delete custom fields + * @type {boolean} + */ + 'can_delete_custom_fields'?: boolean; + /** + * If the user can delete deals + * @type {boolean} + */ + 'can_delete_deals'?: boolean; + /** + * If the user can edit custom fields + * @type {boolean} + */ + 'can_edit_custom_fields'?: boolean; + /** + * If the user can edit deals\' closed date + * @type {boolean} + */ + 'can_edit_deals_closed_date'?: boolean; + /** + * If the user can edit products + * @type {boolean} + */ + 'can_edit_products'?: boolean; + /** + * If the user can edit shared filters + * @type {boolean} + */ + 'can_edit_shared_filters'?: boolean; + /** + * If the user can export data from item lists + * @type {boolean} + */ + 'can_export_data_from_lists'?: boolean; + /** + * If the user can follow other users + * @type {boolean} + */ + 'can_follow_other_users'?: boolean; + /** + * If the user can merge deals + * @type {boolean} + */ + 'can_merge_deals'?: boolean; + /** + * If the user can merge organizations + * @type {boolean} + */ + 'can_merge_organizations'?: boolean; + /** + * If the user can merge people + * @type {boolean} + */ + 'can_merge_people'?: boolean; + /** + * If the user can modify labels + * @type {boolean} + */ + 'can_modify_labels'?: boolean; + /** + * If the user can see company-wide statistics + * @type {boolean} + */ + 'can_see_company_wide_statistics'?: boolean; + /** + * If the user can see the summary on the deals page + * @type {boolean} + */ + 'can_see_deals_list_summary'?: boolean; + /** + * If the user can see the names of hidden items + * @type {boolean} + */ + 'can_see_hidden_items_names'?: boolean; + /** + * If the user can see other users + * @type {boolean} + */ + 'can_see_other_users'?: boolean; + /** + * If the user can see other users\' statistics + * @type {boolean} + */ + 'can_see_other_users_statistics'?: boolean; + /** + * If the user can see security dashboard + * @type {boolean} + */ + 'can_see_security_dashboard'?: boolean; + /** + * If the user can share filters + * @type {boolean} + */ + 'can_share_filters'?: boolean; + /** + * If the user can share insights + * @type {boolean} + */ + 'can_share_insights'?: boolean; + /** + * If the user can use API + * @type {boolean} + */ + 'can_use_api'?: boolean; + /** + * If the user can use email tracking + * @type {boolean} + */ + 'can_use_email_tracking'?: boolean; + /** + * If the user can use import + * @type {boolean} + */ + 'can_use_import'?: boolean; +} + diff --git a/src/versions/v1/models/get-user-permissions-response-all-of.ts b/src/versions/v1/models/get-user-permissions-response-all-of.ts new file mode 100644 index 00000000..305af04f --- /dev/null +++ b/src/versions/v1/models/get-user-permissions-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetUserPermissionsResponseAllOfData } from './get-user-permissions-response-all-of-data'; + +/** +* +* @export +* @interface GetUserPermissionsResponseAllOf +*/ +export interface GetUserPermissionsResponseAllOf { + /** + * + * @type {GetUserPermissionsResponseAllOfData} + */ + 'data'?: GetUserPermissionsResponseAllOfData; +} + diff --git a/src/versions/v1/models/get-user-permissions-response.ts b/src/versions/v1/models/get-user-permissions-response.ts new file mode 100644 index 00000000..94d14ebf --- /dev/null +++ b/src/versions/v1/models/get-user-permissions-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetUserPermissionsResponseAllOf } from './get-user-permissions-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetUserPermissionsResponseAllOfData } from './get-user-permissions-response-all-of-data'; + +/** + * @type GetUserPermissionsResponse + * @export + */ +export type GetUserPermissionsResponse = BaseResponse & GetUserPermissionsResponseAllOf; + + diff --git a/src/versions/v1/models/get-user-provider-link-success-response-data.ts b/src/versions/v1/models/get-user-provider-link-success-response-data.ts new file mode 100644 index 00000000..b7a077eb --- /dev/null +++ b/src/versions/v1/models/get-user-provider-link-success-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetUserProviderLinkSuccessResponseData +*/ +export interface GetUserProviderLinkSuccessResponseData { + /** + * The success message of the request + * @type {string} + */ + 'message'?: string; +} + diff --git a/src/versions/v1/models/get-user-provider-link-success-response.ts b/src/versions/v1/models/get-user-provider-link-success-response.ts new file mode 100644 index 00000000..be932c95 --- /dev/null +++ b/src/versions/v1/models/get-user-provider-link-success-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetUserProviderLinkSuccessResponseData } from './get-user-provider-link-success-response-data'; + +/** +* +* @export +* @interface GetUserProviderLinkSuccessResponse +*/ +export interface GetUserProviderLinkSuccessResponse { + /** + * Boolean that indicates whether the request was successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {GetUserProviderLinkSuccessResponseData} + */ + 'data': GetUserProviderLinkSuccessResponseData; +} + diff --git a/src/versions/v1/models/get-user-response-data.ts b/src/versions/v1/models/get-user-response-data.ts new file mode 100644 index 00000000..354f15c2 --- /dev/null +++ b/src/versions/v1/models/get-user-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseUser } from './base-user'; + +/** +* +* @export +* @interface GetUserResponseData +*/ +export interface GetUserResponseData { + /** + * + * @type {BaseUser} + */ + 'data'?: BaseUser; +} + diff --git a/src/versions/v1/models/get-user-response.ts b/src/versions/v1/models/get-user-response.ts new file mode 100644 index 00000000..ed4e932d --- /dev/null +++ b/src/versions/v1/models/get-user-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseUser } from './base-user'; +// May contain unused imports in some cases +// @ts-ignore +import { GetUserResponseData } from './get-user-response-data'; + +/** + * @type GetUserResponse + * @export + */ +export type GetUserResponse = BaseResponse & GetUserResponseData; + + diff --git a/src/versions/v1/models/get-user-settings-response-data.ts b/src/versions/v1/models/get-user-settings-response-data.ts new file mode 100644 index 00000000..e8e7856c --- /dev/null +++ b/src/versions/v1/models/get-user-settings-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UserSettingsItem } from './user-settings-item'; + +/** +* +* @export +* @interface GetUserSettingsResponseData +*/ +export interface GetUserSettingsResponseData { + /** + * + * @type {UserSettingsItem} + */ + 'data'?: UserSettingsItem; +} + diff --git a/src/versions/v1/models/get-user-settings-response.ts b/src/versions/v1/models/get-user-settings-response.ts new file mode 100644 index 00000000..30a328a4 --- /dev/null +++ b/src/versions/v1/models/get-user-settings-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetUserSettingsResponseData } from './get-user-settings-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { UserSettingsItem } from './user-settings-item'; + +/** + * @type GetUserSettingsResponse + * @export + */ +export type GetUserSettingsResponse = BaseResponse & GetUserSettingsResponseData; + + diff --git a/src/versions/v1/models/get-users-response-all-of.ts b/src/versions/v1/models/get-users-response-all-of.ts new file mode 100644 index 00000000..fed95147 --- /dev/null +++ b/src/versions/v1/models/get-users-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseUser } from './base-user'; + +/** +* +* @export +* @interface GetUsersResponseAllOf +*/ +export interface GetUsersResponseAllOf { + /** + * + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-users-response.ts b/src/versions/v1/models/get-users-response.ts new file mode 100644 index 00000000..623036bf --- /dev/null +++ b/src/versions/v1/models/get-users-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseUser } from './base-user'; +// May contain unused imports in some cases +// @ts-ignore +import { GetUsersResponseAllOf } from './get-users-response-all-of'; + +/** + * @type GetUsersResponse + * @export + */ +export type GetUsersResponse = BaseResponse & GetUsersResponseAllOf; + + diff --git a/src/versions/v1/models/get-webhook-response-data.ts b/src/versions/v1/models/get-webhook-response-data.ts new file mode 100644 index 00000000..7cf0b717 --- /dev/null +++ b/src/versions/v1/models/get-webhook-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseWebhook } from './base-webhook'; + +/** +* +* @export +* @interface GetWebhookResponseData +*/ +export interface GetWebhookResponseData { + /** + * + * @type {BaseWebhook} + */ + 'data'?: BaseWebhook; +} + diff --git a/src/versions/v1/models/get-webhook-response.ts b/src/versions/v1/models/get-webhook-response.ts new file mode 100644 index 00000000..43716f02 --- /dev/null +++ b/src/versions/v1/models/get-webhook-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseWebhook } from './base-webhook'; +// May contain unused imports in some cases +// @ts-ignore +import { GetWebhookResponseData } from './get-webhook-response-data'; + +/** + * @type GetWebhookResponse + * @export + */ +export type GetWebhookResponse = BaseResponse & GetWebhookResponseData; + + diff --git a/src/versions/v1/models/get-webhooks-response-all-of.ts b/src/versions/v1/models/get-webhooks-response-all-of.ts new file mode 100644 index 00000000..dd0ede7c --- /dev/null +++ b/src/versions/v1/models/get-webhooks-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseWebhook } from './base-webhook'; + +/** +* +* @export +* @interface GetWebhooksResponseAllOf +*/ +export interface GetWebhooksResponseAllOf { + /** + * The array of Webhooks + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/get-webhooks-response.ts b/src/versions/v1/models/get-webhooks-response.ts new file mode 100644 index 00000000..9ed93f0e --- /dev/null +++ b/src/versions/v1/models/get-webhooks-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseWebhook } from './base-webhook'; +// May contain unused imports in some cases +// @ts-ignore +import { GetWebhooksResponseAllOf } from './get-webhooks-response-all-of'; + +/** + * @type GetWebhooksResponse + * @export + */ +export type GetWebhooksResponse = BaseResponse & GetWebhooksResponseAllOf; + + diff --git a/src/versions/v1/models/goal-assignee.ts b/src/versions/v1/models/goal-assignee.ts new file mode 100644 index 00000000..4d731a36 --- /dev/null +++ b/src/versions/v1/models/goal-assignee.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* Who the goal is assigned to +* @export +* @interface GoalAssignee +*/ +export interface GoalAssignee { + /** + * The ID of the goal assignee + * @type {number} + */ + 'id'?: number; + /** + * The type of the assignee + * @type {string} + */ + 'type'?: string; +} + diff --git a/src/versions/v1/models/goal-duration.ts b/src/versions/v1/models/goal-duration.ts new file mode 100644 index 00000000..d0a6918f --- /dev/null +++ b/src/versions/v1/models/goal-duration.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The duration of the goal +* @export +* @interface GoalDuration +*/ +export interface GoalDuration { + /** + * The start date of the goal + * @type {string} + */ + 'start'?: string; + /** + * The end date of the goal + * @type {string} + */ + 'end'?: string; +} + diff --git a/src/versions/v1/models/goal-expected-outcome.ts b/src/versions/v1/models/goal-expected-outcome.ts new file mode 100644 index 00000000..4e74fac5 --- /dev/null +++ b/src/versions/v1/models/goal-expected-outcome.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The expected outcome of the goal +* @export +* @interface GoalExpectedOutcome +*/ +export interface GoalExpectedOutcome { + /** + * The numeric target of the goal + * @type {number} + */ + 'target'?: number; + /** + * The tracking metric of the goal + * @type {string} + */ + 'tracking_metric'?: string; +} + diff --git a/src/versions/v1/models/goal-type-params.ts b/src/versions/v1/models/goal-type-params.ts new file mode 100644 index 00000000..aae3123c --- /dev/null +++ b/src/versions/v1/models/goal-type-params.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The parameters that accompany the goal type +* @export +* @interface GoalTypeParams +*/ +export interface GoalTypeParams { + /** + * The IDs of pipelines of the goal + * @type {Array} + */ + 'pipeline_id'?: Array; + /** + * The IDs of activity types of the goal + * @type {Array} + */ + 'activity_type_id'?: Array; +} + diff --git a/src/versions/v1/models/goal-type.ts b/src/versions/v1/models/goal-type.ts new file mode 100644 index 00000000..f5d63543 --- /dev/null +++ b/src/versions/v1/models/goal-type.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GoalTypeParams } from './goal-type-params'; + +/** +* The type of the goal +* @export +* @interface GoalType +*/ +export interface GoalType { + /** + * The name of the goal type + * @type {string} + */ + 'name'?: string; + /** + * + * @type {GoalTypeParams} + */ + 'params'?: GoalTypeParams; +} + diff --git a/src/versions/v1/models/goal.ts b/src/versions/v1/models/goal.ts new file mode 100644 index 00000000..83157272 --- /dev/null +++ b/src/versions/v1/models/goal.ts @@ -0,0 +1,86 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GoalAssignee } from './goal-assignee'; +// May contain unused imports in some cases +// @ts-ignore +import { GoalDuration } from './goal-duration'; +// May contain unused imports in some cases +// @ts-ignore +import { GoalExpectedOutcome } from './goal-expected-outcome'; +// May contain unused imports in some cases +// @ts-ignore +import { GoalType } from './goal-type'; + +/** +* +* @export +* @interface Goal +*/ +export interface Goal { + /** + * The ID of the goal + * @type {string} + */ + 'id': string; + /** + * The ID of the creator of the goal + * @type {number} + */ + 'owner_id': number; + /** + * The title of the goal + * @type {string} + */ + 'title': string; + /** + * + * @type {GoalType} + */ + 'type': GoalType; + /** + * + * @type {GoalAssignee} + */ + 'assignee': GoalAssignee; + /** + * The interval of the goal + * @type {string} + */ + 'interval': string; + /** + * + * @type {GoalDuration} + */ + 'duration': GoalDuration; + /** + * + * @type {GoalExpectedOutcome} + */ + 'expected_outcome': GoalExpectedOutcome; + /** + * Whether the goal is currently active or not + * @type {boolean} + */ + 'is_active': boolean; + /** + * The IDs of the reports that belong to the goal + * @type {Array} + */ + 'report_ids': Array; +} + diff --git a/src/versions/v1/models/index.ts b/src/versions/v1/models/index.ts new file mode 100644 index 00000000..eb1d7770 --- /dev/null +++ b/src/versions/v1/models/index.ts @@ -0,0 +1,821 @@ +export * from './activity'; +export * from './activity-all-of'; +export * from './activity-all-of1'; +export * from './activity-collection-response-object'; +export * from './activity-collection-response-object-all-of'; +export * from './activity-distribution'; +export * from './activity-distribution-data'; +export * from './activity-distribution-data-with-additional-data'; +export * from './activity-distribution-item'; +export * from './activity-type'; +export * from './activity-type-count'; +export * from './add-activity-request'; +export * from './add-activity-request-all-of'; +export * from './add-activity-response'; +export * from './add-activity-response-additional-data'; +export * from './add-activity-response-related-objects'; +export * from './add-activity-response-related-objects-person'; +export * from './add-activity-type-request'; +export * from './add-call-log-request'; +export * from './add-channel-bad-request-response'; +export * from './add-channel-bad-request-response-additional-data'; +export * from './add-channel-forbidden-error-response'; +export * from './add-channel-forbidden-error-response-additional-data'; +export * from './add-channel-request'; +export * from './add-channel-response'; +export * from './add-channel-response-data'; +export * from './add-deal-follower-request'; +export * from './add-deal-follower-response'; +export * from './add-deal-follower-response-data'; +export * from './add-deal-participant-request'; +export * from './add-deal-product-request'; +export * from './add-deal-product-request-all-of'; +export * from './add-deal-product-request-all-of1'; +export * from './add-deal-product-request-all-of2'; +export * from './add-deal-request'; +export * from './add-file-response'; +export * from './add-filter-request'; +export * from './add-filters-response'; +export * from './add-filters-response-all-of'; +export * from './add-goal-request'; +export * from './add-lead-label-request'; +export * from './add-lead-request'; +export * from './add-new-follower-response'; +export * from './add-new-follower-response-data'; +export * from './add-note-request'; +export * from './add-note-request-all-of'; +export * from './add-note-request-all-of1'; +export * from './add-or-update-role-setting-request'; +export * from './add-organization-follower-request'; +export * from './add-organization-follower-response'; +export * from './add-organization-relationship-request'; +export * from './add-organization-relationship-response'; +export * from './add-organization-relationship-response-all-of'; +export * from './add-organization-request'; +export * from './add-organization-request-all-of'; +export * from './add-organization-response'; +export * from './add-organization-response-all-of'; +export * from './add-participants-response'; +export * from './add-participants-response-data'; +export * from './add-participants-response-related-objects'; +export * from './add-person-follower-request'; +export * from './add-person-follower-response'; +export * from './add-person-follower-response-all-of'; +export * from './add-person-follower-response-all-of-data'; +export * from './add-person-picture-response'; +export * from './add-person-picture-response-all-of'; +export * from './add-person-request'; +export * from './add-person-request-all-of'; +export * from './add-person-response'; +export * from './add-person-response-all-of'; +export * from './add-pipeline-response'; +export * from './add-pipeline-response-all-of'; +export * from './add-product-follower-request'; +export * from './add-product-request'; +export * from './add-product-request-all-of'; +export * from './add-product-request-all-of1'; +export * from './add-product-request-all-of2'; +export * from './add-project-request'; +export * from './add-project-request-all-of'; +export * from './add-project-response'; +export * from './add-recurring-subscription-request'; +export * from './add-remote-file-and-link-it-to-item-response'; +export * from './add-role-assignment-request'; +export * from './add-role-assignment-response'; +export * from './add-role-assignment-response-data'; +export * from './add-role-assignment-response-data-data'; +export * from './add-role-request'; +export * from './add-roles-response'; +export * from './add-roles-response-all-of'; +export * from './add-roles-response-data'; +export * from './add-stage-request'; +export * from './add-subscription-installment-request'; +export * from './add-task-request'; +export * from './add-task-response'; +export * from './add-team-request'; +export * from './add-team-request1'; +export * from './add-team-user-request'; +export * from './add-user-provider-link-request'; +export * from './add-user-request'; +export * from './add-webhook-request'; +export * from './additional-base-organization-item-info'; +export * from './additional-merge-person-info'; +export * from './additional-person-info'; +export * from './base-deal'; +export * from './base-organization-item'; +export * from './base-organization-item-all-of'; +export * from './base-organization-item-all-of-picture-id'; +export * from './base-organization-item-with-edit-name-flag'; +export * from './base-organization-item-with-edit-name-flag-all-of'; +export * from './base-pipeline'; +export * from './base-pipeline1'; +export * from './base-pipeline-with-selected-flag'; +export * from './base-pipeline-with-selected-flag-all-of'; +export * from './base-product'; +export * from './base-response'; +export * from './base-response1'; +export * from './base-response-all-of'; +export * from './base-role-request'; +export * from './base-stage'; +export * from './base-stage1'; +export * from './base-team'; +export * from './base-team-additional-properties'; +export * from './base-user'; +export * from './base-webhook'; +export * from './basic-deal'; +export * from './basic-deal1'; +export * from './basic-deal-product-request'; +export * from './basic-deal-product-request-all-of'; +export * from './basic-goal-request'; +export * from './basic-organization'; +export * from './basic-organization1'; +export * from './basic-person-request'; +export * from './basic-person-request-email-inner'; +export * from './call-log-bad-request-response'; +export * from './call-log-conflict-response'; +export * from './call-log-forbidden-response'; +export * from './call-log-gone-response'; +export * from './call-log-internal-error-response'; +export * from './call-log-not-found-response'; +export * from './cancel-recurring-subscription-request'; +export * from './comment'; +export * from './comment-post-put-object'; +export * from './create-field-request'; +export * from './create-field-request-all-of'; +export * from './create-field-request-all-of1'; +export * from './deal'; +export * from './deal-all-of'; +export * from './deal-all-of-creator-user-id'; +export * from './deal-collection-response-object'; +export * from './deal-count-and-activity-info'; +export * from './deal-count-and-activity-info-all-of'; +export * from './deal-count-and-activity-info-all-of1'; +export * from './deal-non-strict-with-details'; +export * from './deal-non-strict-with-details-all-of'; +export * from './deal-non-strict-with-details-all-of-age'; +export * from './deal-non-strict-with-details-all-of-average-time-to-won'; +export * from './deal-non-strict-with-details-all-of-stay-in-pipeline-stages'; +export * from './deal-organization-data-with-id'; +export * from './deal-organization-data-with-id-all-of'; +export * from './deal-organization-data-with-id-all-of1'; +export * from './deal-person-data-with-id'; +export * from './deal-person-data-with-id-all-of'; +export * from './deal-person-data-with-id-all-of1'; +export * from './deal-person-data-with-id-all-of-email-inner'; +export * from './deal-person-data-with-id-all-of-phone-inner'; +export * from './deal-product-request-body'; +export * from './deal-product-request-body1'; +export * from './deal-strict'; +export * from './deal-strict-all-of'; +export * from './deal-title-param'; +export * from './deal-user-data-with-id'; +export * from './deal-user-data-with-id-all-of'; +export * from './deal-user-data-with-id-all-of1'; +export * from './deals-count-and-activity-info'; +export * from './delete-activities-response'; +export * from './delete-activities-response-data'; +export * from './delete-activity-response'; +export * from './delete-activity-response-data'; +export * from './delete-activity-types-response'; +export * from './delete-activity-types-response-all-of'; +export * from './delete-activity-types-response-all-of-data'; +export * from './delete-channel200-response'; +export * from './delete-comment-response'; +export * from './delete-conversation-forbidden-error-response'; +export * from './delete-conversation-forbidden-error-response-additional-data'; +export * from './delete-conversation-not-found-error-response'; +export * from './delete-conversation-not-found-error-response-additional-data'; +export * from './delete-deal-follower-response'; +export * from './delete-deal-follower-response-data'; +export * from './delete-deal-participant-response'; +export * from './delete-deal-participant-response-data'; +export * from './delete-deal-product-response'; +export * from './delete-deal-product-response-data'; +export * from './delete-deal-response'; +export * from './delete-deal-response-data'; +export * from './delete-deals-response'; +export * from './delete-deals-response-data'; +export * from './delete-fields-response'; +export * from './delete-fields-response-all-of'; +export * from './delete-fields-response-all-of-data'; +export * from './delete-file-response'; +export * from './delete-file-response-data'; +export * from './delete-filter-response'; +export * from './delete-filter-response-all-of'; +export * from './delete-filter-response-all-of-data'; +export * from './delete-filters-response'; +export * from './delete-filters-response-all-of'; +export * from './delete-filters-response-all-of-data'; +export * from './delete-goal-response'; +export * from './delete-lead-id-response'; +export * from './delete-mail-thread-response'; +export * from './delete-mail-thread-response-all-of'; +export * from './delete-mail-thread-response-all-of-data'; +export * from './delete-note-response'; +export * from './delete-organization-follower-response'; +export * from './delete-organization-follower-response-data'; +export * from './delete-organization-relationship-response'; +export * from './delete-organization-relationship-response-all-of'; +export * from './delete-organization-relationship-response-all-of-data'; +export * from './delete-organization-response'; +export * from './delete-organization-response-data'; +export * from './delete-organizations-response'; +export * from './delete-organizations-response-data'; +export * from './delete-person-response'; +export * from './delete-person-response-all-of'; +export * from './delete-person-response-all-of-data'; +export * from './delete-persons-response'; +export * from './delete-persons-response-all-of'; +export * from './delete-persons-response-all-of-data'; +export * from './delete-pipeline-response'; +export * from './delete-pipeline-response-data'; +export * from './delete-product-field-response'; +export * from './delete-product-fields-response'; +export * from './delete-product-fields-response-data'; +export * from './delete-product-follower-response'; +export * from './delete-product-response'; +export * from './delete-product-response-data'; +export * from './delete-project'; +export * from './delete-project-data'; +export * from './delete-project-response'; +export * from './delete-response'; +export * from './delete-response-all-of'; +export * from './delete-response-all-of-data'; +export * from './delete-role-assignment-request'; +export * from './delete-role-assignment-response'; +export * from './delete-role-assignment-response-data'; +export * from './delete-role-response'; +export * from './delete-role-response-data'; +export * from './delete-role-response-data-data'; +export * from './delete-stage-response'; +export * from './delete-stage-response-data'; +export * from './delete-stages-response'; +export * from './delete-stages-response-data'; +export * from './delete-task'; +export * from './delete-task-data'; +export * from './delete-task-response'; +export * from './delete-team-user-request'; +export * from './delete-webhook403-response'; +export * from './delete-webhook403-response-all-of'; +export * from './fail-response'; +export * from './field'; +export * from './filter'; +export * from './follower-data'; +export * from './full-role'; +export * from './full-role-all-of'; +export * from './get-activities-collection-response'; +export * from './get-activities-collection-response-additional-data'; +export * from './get-activities-response'; +export * from './get-activities-response-additional-data'; +export * from './get-activities-response-additional-data-pagination'; +export * from './get-activities-response-related-objects'; +export * from './get-activities-response-related-objects-person'; +export * from './get-activities-response-related-objects-user'; +export * from './get-activity-response'; +export * from './get-activity-types-response'; +export * from './get-activity-types-response-all-of'; +export * from './get-add-product-attachment-details-response'; +export * from './get-add-product-attachment-details-response-data'; +export * from './get-add-product-attachment-details-response-data-all-of'; +export * from './get-add-product-attachment-details-response-data-all-of-all-of'; +export * from './get-add-product-attachment-details-response-data-all-of-all-of1'; +export * from './get-add-product-attachment-details-response-data-all-of-all-of-all-of'; +export * from './get-added-deal-response'; +export * from './get-associated-activities-response'; +export * from './get-associated-activities-response-all-of'; +export * from './get-associated-deals-response'; +export * from './get-associated-deals-response-all-of'; +export * from './get-associated-deals-response-all-of-related-objects'; +export * from './get-associated-files-response'; +export * from './get-associated-files-response-all-of'; +export * from './get-associated-files-response-all-of-data-inner'; +export * from './get-associated-followers-response'; +export * from './get-associated-followers-response-data-inner'; +export * from './get-associated-followers-response-data-inner-all-of'; +export * from './get-associated-followers-response-data-inner-all-of1'; +export * from './get-associated-mail-messages-response'; +export * from './get-associated-mail-messages-response-all-of'; +export * from './get-associated-mail-messages-response-all-of-data-inner'; +export * from './get-associated-organization-updates-response'; +export * from './get-associated-organization-updates-response-all-of'; +export * from './get-associated-organization-updates-response-all-of-data-inner'; +export * from './get-associated-organization-updates-response-all-of-related-objects'; +export * from './get-associated-person-updates-response'; +export * from './get-associated-person-updates-response-all-of'; +export * from './get-associated-person-updates-response-all-of-data-inner'; +export * from './get-associated-product-files-response'; +export * from './get-associated-product-files-response-all-of'; +export * from './get-associated-product-files-response-all-of-data-inner'; +export * from './get-call-log-response'; +export * from './get-call-logs-response'; +export * from './get-call-logs-response-additional-data'; +export * from './get-changelog-response'; +export * from './get-changelog-response-all-of'; +export * from './get-changelog-response-all-of-data-inner'; +export * from './get-comments-response'; +export * from './get-currencies-response'; +export * from './get-currencies-response-data-inner'; +export * from './get-current-user-response'; +export * from './get-current-user-response-all-of'; +export * from './get-current-user-response-all-of-data'; +export * from './get-current-user-response-all-of-data-all-of'; +export * from './get-current-user-response-all-of-data-all-of-language'; +export * from './get-deal-activities-response'; +export * from './get-deal-activities-response-all-of'; +export * from './get-deal-activities-response-all-of-related-objects'; +export * from './get-deal-participants-response'; +export * from './get-deal-response'; +export * from './get-deal-response-additional-data'; +export * from './get-deal-response-related-objects'; +export * from './get-deal-search-response'; +export * from './get-deal-search-response-all-of'; +export * from './get-deal-search-response-all-of-data'; +export * from './get-deal-search-response-all-of-data-items-inner'; +export * from './get-deal-search-response-all-of-data-items-inner-item'; +export * from './get-deal-search-response-all-of-data-items-inner-item-organization'; +export * from './get-deal-search-response-all-of-data-items-inner-item-owner'; +export * from './get-deal-search-response-all-of-data-items-inner-item-person'; +export * from './get-deal-search-response-all-of-data-items-inner-item-stage'; +export * from './get-deal-updates-response'; +export * from './get-deal-updates-response-all-of'; +export * from './get-deal-updates-response-all-of-data-inner'; +export * from './get-deal-updates-response-all-of-related-objects'; +export * from './get-deals-collection-response'; +export * from './get-deals-response'; +export * from './get-deals-response-related-objects'; +export * from './get-deals-summary-response'; +export * from './get-deals-summary-response-data'; +export * from './get-deals-summary-response-data-values-total'; +export * from './get-deals-summary-response-data-weighted-values-total'; +export * from './get-deals-timeline-response'; +export * from './get-deals-timeline-response-data'; +export * from './get-deals-timeline-response-data-totals'; +export * from './get-duplicated-deal-response'; +export * from './get-field'; +export * from './get-field-all-of'; +export * from './get-field-response'; +export * from './get-field-response-all-of'; +export * from './get-fields-response'; +export * from './get-fields-response-all-of'; +export * from './get-fields-response-all-of-additional-data'; +export * from './get-file-response'; +export * from './get-files-response'; +export * from './get-files-response-additional-data'; +export * from './get-files-response-data-inner'; +export * from './get-filters-response'; +export * from './get-filters-response1'; +export * from './get-filters-response1-all-of'; +export * from './get-filters-response-all-of'; +export * from './get-filters-response-all-of-data-inner'; +export * from './get-goal-result-response'; +export * from './get-goal-result-response-data'; +export * from './get-goals-response'; +export * from './get-goals-response-data'; +export * from './get-item-search-field-response'; +export * from './get-item-search-field-response-all-of'; +export * from './get-item-search-field-response-all-of-data-inner'; +export * from './get-item-search-response'; +export * from './get-item-search-response-all-of'; +export * from './get-item-search-response-all-of-data'; +export * from './get-lead-id-response'; +export * from './get-lead-id-response-data'; +export * from './get-lead-labels-response'; +export * from './get-lead-response'; +export * from './get-lead-search-response'; +export * from './get-lead-search-response-all-of'; +export * from './get-lead-search-response-all-of-data'; +export * from './get-leads-response'; +export * from './get-leads-source-response'; +export * from './get-link-remote-file-to-item-response'; +export * from './get-list-followers-response'; +export * from './get-list-followers-response-all-of'; +export * from './get-list-followers-response-all-of-data-inner'; +export * from './get-mail-message-response'; +export * from './get-mail-message-response-all-of'; +export * from './get-mail-thread-messages-response'; +export * from './get-mail-thread-messages-response-all-of'; +export * from './get-mail-thread-messages-response-all-of-data-inner'; +export * from './get-mail-thread-messages-response-all-of-data-inner-all-of'; +export * from './get-mail-thread-response'; +export * from './get-mail-thread-response1'; +export * from './get-mail-thread-response1-all-of'; +export * from './get-mail-thread-response1-all-of-data'; +export * from './get-mail-thread-response-all-of'; +export * from './get-merged-deal-response'; +export * from './get-merged-deal-response-data'; +export * from './get-merged-deal-response-data-all-of'; +export * from './get-note-fields-response'; +export * from './get-note-fields-response-all-of'; +export * from './get-note-fields-response-all-of-data-inner'; +export * from './get-note-fields-response-all-of-data-inner-all-of'; +export * from './get-note-fields-response-all-of-data-inner-all-of-options-inner'; +export * from './get-notes-response'; +export * from './get-notes-response-additional-data'; +export * from './get-notes-response-additional-data-pagination'; +export * from './get-organization-item'; +export * from './get-organization-item-all-of'; +export * from './get-organization-relationship-response'; +export * from './get-organization-relationship-response-all-of'; +export * from './get-organization-relationships-response'; +export * from './get-organization-relationships-response-all-of'; +export * from './get-organization-relationships-response-all-of-related-objects'; +export * from './get-organization-response'; +export * from './get-organization-response-all-of'; +export * from './get-organization-response-all-of-additional-data'; +export * from './get-organization-response-all-of-additional-data-followers'; +export * from './get-organization-response-all-of-additional-data-followers-followeruserid'; +export * from './get-organization-response-all-of-additional-data-followers-followeruseridall-of'; +export * from './get-organization-response-all-of-additional-data-followers-followeruseridall-of-all-of'; +export * from './get-organization-search-response'; +export * from './get-organization-search-response-all-of'; +export * from './get-organization-search-response-all-of-data'; +export * from './get-organization-search-response-all-of-data-items-inner'; +export * from './get-organization-search-response-all-of-data-items-inner-item'; +export * from './get-organizations-collection200-response'; +export * from './get-organizations-collection-response-object'; +export * from './get-organizations-collection-response-object-all-of'; +export * from './get-organizations-response'; +export * from './get-organizations-response-all-of'; +export * from './get-organizations-response-all-of-related-objects'; +export * from './get-participants-changelog-response'; +export * from './get-payments-response'; +export * from './get-payments-response-all-of'; +export * from './get-payments-response-all-of-data-inner'; +export * from './get-permission-set-response'; +export * from './get-permission-set-response-all-of'; +export * from './get-permission-sets-response'; +export * from './get-permission-sets-response-all-of'; +export * from './get-permitted-users-response'; +export * from './get-permitted-users-response1'; +export * from './get-permitted-users-response1-all-of'; +export * from './get-person-details-response'; +export * from './get-person-details-response-all-of'; +export * from './get-person-details-response-all-of-additional-data'; +export * from './get-person-products-response'; +export * from './get-person-products-response-all-of'; +export * from './get-person-products-response-all-of-data-inner'; +export * from './get-person-products-response-all-of-data-inner-dealid'; +export * from './get-person-products-response-all-of-data-inner-dealiddeal'; +export * from './get-person-products-response-all-of-data-inner-dealidproduct'; +export * from './get-person-search-response'; +export * from './get-person-search-response-all-of'; +export * from './get-person-search-response-all-of-data'; +export * from './get-person-search-response-all-of-data-items-inner'; +export * from './get-person-search-response-all-of-data-items-inner-item'; +export * from './get-person-search-response-all-of-data-items-inner-item-organization'; +export * from './get-person-search-response-all-of-data-items-inner-item-owner'; +export * from './get-persons-collection200-response'; +export * from './get-persons-response'; +export * from './get-persons-response1'; +export * from './get-persons-response1-all-of'; +export * from './get-persons-response-all-of'; +export * from './get-persons-response-all-of-related-objects'; +export * from './get-pipeline-deals-conversion-rates-in-response'; +export * from './get-pipeline-deals-conversion-rates-in-response-all-of'; +export * from './get-pipeline-deals-conversion-rates-in-response-all-of-data'; +export * from './get-pipeline-deals-conversion-rates-in-response-all-of-data-stage-conversions-inner'; +export * from './get-pipeline-deals-movements-statistics-response'; +export * from './get-pipeline-deals-movements-statistics-response-all-of'; +export * from './get-pipeline-deals-movements-statistics-response-all-of-data'; +export * from './get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days'; +export * from './get-pipeline-deals-movements-statistics-response-all-of-data-average-age-in-days-by-stages-inner'; +export * from './get-pipeline-deals-movements-statistics-response-all-of-data-movements-between-stages'; +export * from './get-pipeline-deals-movements-statistics-response-all-of-data-new-deals'; +export * from './get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-formatted-values'; +export * from './get-pipeline-deals-movements-statistics-response-all-of-data-new-deals-values'; +export * from './get-pipeline-response'; +export * from './get-pipeline-response-all-of'; +export * from './get-pipelines-response'; +export * from './get-pipelines-response-all-of'; +export * from './get-product-attachment-details-response'; +export * from './get-product-attachment-details-response-data'; +export * from './get-product-field-response'; +export * from './get-product-field-response-data'; +export * from './get-product-fields-response'; +export * from './get-product-fields-response-data-inner'; +export * from './get-product-followers-response'; +export * from './get-product-followers-response-all-of'; +export * from './get-product-followers-response-all-of-data-inner'; +export * from './get-product-response'; +export * from './get-product-search-response'; +export * from './get-product-search-response-all-of'; +export * from './get-product-search-response-all-of-data'; +export * from './get-product-search-response-all-of-data-items-inner'; +export * from './get-product-search-response-all-of-data-items-inner-item'; +export * from './get-product-search-response-all-of-data-items-inner-item-owner'; +export * from './get-products-response'; +export * from './get-products-response1'; +export * from './get-products-response1-additional-data'; +export * from './get-products-response-all-of'; +export * from './get-products-response-all-of-additional-data'; +export * from './get-products-response-all-of-additional-data-all-of'; +export * from './get-products-response-all-of-related-objects'; +export * from './get-project-board-response'; +export * from './get-project-boards-response'; +export * from './get-project-boards-response-data-inner'; +export * from './get-project-groups-response'; +export * from './get-project-groups-response-data-inner'; +export * from './get-project-phase-response'; +export * from './get-project-phases-response'; +export * from './get-project-phases-response-data-inner'; +export * from './get-project-plan-response'; +export * from './get-project-plan-response-data-inner'; +export * from './get-project-response'; +export * from './get-project-template-response'; +export * from './get-project-templates-response'; +export * from './get-projects-response'; +export * from './get-receive-message-success-response'; +export * from './get-recents-response'; +export * from './get-recents-response-additional-data'; +export * from './get-role-assignments-response'; +export * from './get-role-assignments-response-data'; +export * from './get-role-pipelines-response'; +export * from './get-role-pipelines-response-all-of'; +export * from './get-role-pipelines-response-data'; +export * from './get-role-response'; +export * from './get-role-response-data'; +export * from './get-role-response-data-additional-data'; +export * from './get-role-settings-response'; +export * from './get-role-settings-response-data'; +export * from './get-roles-response'; +export * from './get-roles-response-all-of'; +export * from './get-roles-response-all-of-additional-data'; +export * from './get-roles-response-all-of-additional-data-pagination'; +export * from './get-stage-deals-response'; +export * from './get-stage-response'; +export * from './get-stage-response-data'; +export * from './get-stages-response'; +export * from './get-stages-response-data-inner'; +export * from './get-subscription-addons-response'; +export * from './get-subscription-addons-response-all-of'; +export * from './get-subscriptions-id-response'; +export * from './get-subscriptions-id-response-data'; +export * from './get-task-response'; +export * from './get-tasks-response'; +export * from './get-team-response'; +export * from './get-team-response-all-of'; +export * from './get-teams-response'; +export * from './get-teams-response-all-of'; +export * from './get-user-assignments-to-permission-set-response'; +export * from './get-user-assignments-to-permission-set-response-all-of'; +export * from './get-user-assignments-to-permission-set-response-all-of-data-inner'; +export * from './get-user-connections-response'; +export * from './get-user-connections-response-data'; +export * from './get-user-connections-response-data-data'; +export * from './get-user-permissions-response'; +export * from './get-user-permissions-response-all-of'; +export * from './get-user-permissions-response-all-of-data'; +export * from './get-user-provider-link-success-response'; +export * from './get-user-provider-link-success-response-data'; +export * from './get-user-response'; +export * from './get-user-response-data'; +export * from './get-user-settings-response'; +export * from './get-user-settings-response-data'; +export * from './get-users-response'; +export * from './get-users-response-all-of'; +export * from './get-webhook-response'; +export * from './get-webhook-response-data'; +export * from './get-webhooks-response'; +export * from './get-webhooks-response-all-of'; +export * from './goal'; +export * from './goal-assignee'; +export * from './goal-duration'; +export * from './goal-expected-outcome'; +export * from './goal-type'; +export * from './goal-type-params'; +export * from './lead'; +export * from './lead-label'; +export * from './lead-not-found-response'; +export * from './lead-search-item'; +export * from './lead-search-item-item'; +export * from './lead-search-item-item-organization'; +export * from './lead-search-item-item-owner'; +export * from './lead-search-item-item-person'; +export * from './lead-source'; +export * from './lead-value'; +export * from './mail-message-data'; +export * from './mail-message-data-from-inner'; +export * from './mail-message-item-for-list'; +export * from './mail-message-item-for-list-all-of'; +export * from './mail-service-base-response'; +export * from './mail-thread'; +export * from './mail-thread1'; +export * from './mail-thread-all-of'; +export * from './mail-thread-all-of1'; +export * from './mail-thread-all-of1-parties'; +export * from './mail-thread-all-of1-parties-to-inner'; +export * from './merge-deals-request'; +export * from './merge-organizations-request'; +export * from './merge-organizations-response'; +export * from './merge-organizations-response-data'; +export * from './merge-person-deal-related-info'; +export * from './merge-person-deal-related-info-all-of'; +export * from './merge-person-item'; +export * from './merge-persons-request'; +export * from './merge-persons-response'; +export * from './merge-persons-response-all-of'; +export * from './new-deal-parameters'; +export * from './note'; +export * from './note-deal'; +export * from './note-organization'; +export * from './note-person'; +export * from './note-request'; +export * from './note-request-all-of'; +export * from './note-request-all-of1'; +export * from './note-user'; +export * from './organization-count-and-address-info'; +export * from './organization-count-and-address-info-all-of'; +export * from './organization-count-and-address-info-all-of1'; +export * from './organization-data-with-id'; +export * from './organization-data-with-id-all-of'; +export * from './organization-data-with-id-all-of1'; +export * from './organization-data-with-id-and-active-flag'; +export * from './organization-data-with-id-and-active-flag-all-of'; +export * from './organization-relationship'; +export * from './organization-relationship-details'; +export * from './organization-relationship-details-all-of'; +export * from './organization-relationship-with-calculated-fields'; +export * from './organization-relationship-with-calculated-fields-all-of'; +export * from './organization-relationship-with-calculated-fields-all-of1'; +export * from './owner'; +export * from './owner-all-of'; +export * from './pagination-details'; +export * from './pagination-details-all-of'; +export * from './participant-changelog-item'; +export * from './participant-changelog-item-all-of'; +export * from './permission-set'; +export * from './person'; +export * from './person-all-of'; +export * from './person-all-of-email-inner'; +export * from './person-all-of-phone-inner'; +export * from './person-all-of-picture-id'; +export * from './person-count-and-email-info'; +export * from './person-count-and-email-info-all-of'; +export * from './person-count-and-email-info-all-of1'; +export * from './person-count-email-deal-and-activity-info'; +export * from './person-data-with-active-flag'; +export * from './person-data-with-active-flag-all-of'; +export * from './person-data-with-id'; +export * from './person-data-with-idall-of'; +export * from './person-data-with-idall-of-email-inner'; +export * from './person-name-count-and-email-info'; +export * from './person-name-count-and-email-info-with-ids'; +export * from './person-name-count-and-email-info-with-ids-all-of'; +export * from './person-name-info-with-org-and-owner-id'; +export * from './person-name-info-with-org-and-owner-id-all-of'; +export * from './person-name-info-with-org-and-owner-id-all-of1'; +export * from './persons-collection-response-object'; +export * from './phone-data'; +export * from './picture-data'; +export * from './picture-data-pictures'; +export * from './picture-data-with-id'; +export * from './picture-data-with-value'; +export * from './pipeline-details'; +export * from './pipeline-details-all-of'; +export * from './pipeline-details-all-of-deals-summary'; +export * from './pipeline-details-all-of-deals-summary-per-currency'; +export * from './pipeline-details-all-of-deals-summary-per-currency-full'; +export * from './pipeline-details-all-of-deals-summary-per-currency-full-currencyid'; +export * from './pipeline-details-all-of-deals-summary-per-stages'; +export * from './pipeline-details-all-of-deals-summary-per-stages-stageid'; +export * from './pipeline-details-all-of-deals-summary-per-stages-stageidcurrencyid'; +export * from './pipeline-request'; +export * from './pipeline-request1'; +export * from './product-field'; +export * from './product-field-all-of'; +export * from './product-field-all-of1'; +export * from './product-list-item'; +export * from './product-list-item-product'; +export * from './product-prices'; +export * from './product-request'; +export * from './product-request1'; +export * from './project'; +export * from './project-all-of'; +export * from './project-all-of1'; +export * from './project-all-of2'; +export * from './project-id'; +export * from './project-put-plan-item-body-object'; +export * from './project-response-object'; +export * from './project-template'; +export * from './put-role-pipelines-body'; +export * from './receive-message-bad-request-error-response'; +export * from './receive-message-bad-request-error-response-additional-data'; +export * from './receive-message-request'; +export * from './receive-message-request-attachments-inner'; +export * from './recents-data-inner'; +export * from './recents-data-inner-any-of'; +export * from './recents-data-inner-any-of1'; +export * from './recents-data-inner-any-of10'; +export * from './recents-data-inner-any-of2'; +export * from './recents-data-inner-any-of3'; +export * from './recents-data-inner-any-of4'; +export * from './recents-data-inner-any-of5'; +export * from './recents-data-inner-any-of6'; +export * from './recents-data-inner-any-of7'; +export * from './recents-data-inner-any-of8'; +export * from './recents-data-inner-any-of9'; +export * from './recents-data-inner-any-of9-data'; +export * from './recents-stage'; +export * from './related-deal-data'; +export * from './related-deal-data-dealid'; +export * from './related-organization-data'; +export * from './related-organization-data-with-active-flag'; +export * from './related-picture-data'; +export * from './related-picture-data-pictureid'; +export * from './relationship-organization-info-item'; +export * from './relationship-organization-info-item-all-of'; +export * from './relationship-organization-info-item-with-active-flag'; +export * from './relationship-organization-info-item-with-active-flag-all-of'; +export * from './requied-post-project-parameters'; +export * from './required-post-project-parameters'; +export * from './requred-title-parameter'; +export * from './response-call-log-object'; +export * from './response-call-log-object-all-of'; +export * from './role-assignment'; +export * from './role-assignment-data'; +export * from './role-settings'; +export * from './search-item'; +export * from './stage'; +export * from './stage-details-data'; +export * from './stage-with-pipeline-info'; +export * from './sub-role'; +export * from './sub-role-all-of'; +export * from './subscription-item'; +export * from './task-response-object'; +export * from './task-response-object-all-of'; +export * from './team-id'; +export * from './template-response-object'; +export * from './unathorized-response'; +export * from './update-activity-plan-item-response'; +export * from './update-activity-request'; +export * from './update-activity-request-all-of'; +export * from './update-activity-response'; +export * from './update-activity-type-request'; +export * from './update-deal-parameters'; +export * from './update-deal-product-request'; +export * from './update-deal-product-request-all-of'; +export * from './update-deal-request'; +export * from './update-field-request'; +export * from './update-file-response'; +export * from './update-filter-request'; +export * from './update-lead-label-request'; +export * from './update-lead-request'; +export * from './update-mail-thread-response'; +export * from './update-mail-thread-response-all-of'; +export * from './update-organization-relationship-response'; +export * from './update-organization-request'; +export * from './update-organization-request-all-of'; +export * from './update-organization-response'; +export * from './update-organization-response-all-of'; +export * from './update-person-request'; +export * from './update-person-request-all-of'; +export * from './update-person-response'; +export * from './update-pipeline-response'; +export * from './update-pipeline-response-all-of'; +export * from './update-pipeline-response-all-of-data'; +export * from './update-product-field-response'; +export * from './update-product-request'; +export * from './update-product-request-all-of'; +export * from './update-product-request-all-of1'; +export * from './update-product-response'; +export * from './update-project-request'; +export * from './update-project-request1'; +export * from './update-project-request1-all-of'; +export * from './update-project-request1-all-of1'; +export * from './update-project-request1-all-of2'; +export * from './update-project-request2'; +export * from './update-project-response'; +export * from './update-recurring-subscription-request'; +export * from './update-role-response'; +export * from './update-role-response-all-of'; +export * from './update-role-response-data'; +export * from './update-stage-request'; +export * from './update-stage-request-all-of'; +export * from './update-subscription-installment-request'; +export * from './update-task-plan-item-response'; +export * from './update-task-response'; +export * from './update-team-request'; +export * from './update-team-request-all-of'; +export * from './update-team-with-additional-properties'; +export * from './update-user-request'; +export * from './upsert-activity-type-response'; +export * from './upsert-activity-type-response-all-of'; +export * from './upsert-comment-response'; +export * from './upsert-goal-response'; +export * from './upsert-goal-response-data'; +export * from './upsert-lead-label-response'; +export * from './upsert-note-response'; +export * from './upsert-role-settings-response'; +export * from './upsert-role-settings-response-data'; +export * from './upsert-role-settings-response-data-data'; +export * from './upsert-stage-response'; +export * from './user-access'; +export * from './user-access1'; +export * from './user-data-with-id'; +export * from './user-data-with-id-all-of'; +export * from './user-ids'; +export * from './user-ids-all-of'; +export * from './user-provider-link-error-response'; +export * from './user-settings-item'; +export * from './webhooks-bad-request-response'; +export * from './webhooks-bad-request-response-all-of'; diff --git a/src/versions/v1/models/lead-label.ts b/src/versions/v1/models/lead-label.ts new file mode 100644 index 00000000..2b69250f --- /dev/null +++ b/src/versions/v1/models/lead-label.ts @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface LeadLabel +*/ +export interface LeadLabel { + /** + * The unique ID of the lead label + * @type {string} + */ + 'id': string; + /** + * The name of the lead label + * @type {string} + */ + 'name': string; + /** + * The color of the label. Only a subset of colors can be used. + * @type {string} + */ + 'color': LeadLabelColorConst; + /** + * The date and time of when the lead label was created. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * @type {string} + */ + 'add_time': string; + /** + * The date and time of when the lead label was last updated. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * @type {string} + */ + 'update_time': string; +} + + export const LeadLabelColorConst = { + green: 'green', + blue: 'blue', + red: 'red', + yellow: 'yellow', + purple: 'purple', + gray: 'gray' + } as const; + + export type LeadLabelColorConst = typeof LeadLabelColorConst[keyof typeof LeadLabelColorConst]; + + diff --git a/src/versions/v1/models/lead-not-found-response.ts b/src/versions/v1/models/lead-not-found-response.ts new file mode 100644 index 00000000..5b6d34ea --- /dev/null +++ b/src/versions/v1/models/lead-not-found-response.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface LeadNotFoundResponse +*/ +export interface LeadNotFoundResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The description of the error + * @type {string} + */ + 'error'?: string; + /** + * A message describing how to solve the problem + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {object} + */ + 'data'?: object | null; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/lead-search-item-item-organization.ts b/src/versions/v1/models/lead-search-item-item-organization.ts new file mode 100644 index 00000000..b1eb7dec --- /dev/null +++ b/src/versions/v1/models/lead-search-item-item-organization.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface LeadSearchItemItemOrganization +*/ +export interface LeadSearchItemItemOrganization { + /** + * The ID of the organization the lead is associated with + * @type {number} + */ + 'id'?: number; + /** + * The name of the organization the lead is associated with + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/lead-search-item-item-owner.ts b/src/versions/v1/models/lead-search-item-item-owner.ts new file mode 100644 index 00000000..7ab13c4c --- /dev/null +++ b/src/versions/v1/models/lead-search-item-item-owner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface LeadSearchItemItemOwner +*/ +export interface LeadSearchItemItemOwner { + /** + * The ID of the owner of the lead + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/lead-search-item-item-person.ts b/src/versions/v1/models/lead-search-item-item-person.ts new file mode 100644 index 00000000..3b163ca5 --- /dev/null +++ b/src/versions/v1/models/lead-search-item-item-person.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface LeadSearchItemItemPerson +*/ +export interface LeadSearchItemItemPerson { + /** + * The ID of the person the lead is associated with + * @type {number} + */ + 'id'?: number; + /** + * The name of the person the lead is associated with + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/lead-search-item-item.ts b/src/versions/v1/models/lead-search-item-item.ts new file mode 100644 index 00000000..735ec6d9 --- /dev/null +++ b/src/versions/v1/models/lead-search-item-item.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadSearchItemItemOrganization } from './lead-search-item-item-organization'; +// May contain unused imports in some cases +// @ts-ignore +import { LeadSearchItemItemOwner } from './lead-search-item-item-owner'; +// May contain unused imports in some cases +// @ts-ignore +import { LeadSearchItemItemPerson } from './lead-search-item-item-person'; + +/** +* +* @export +* @interface LeadSearchItemItem +*/ +export interface LeadSearchItemItem { + /** + * The ID of the lead + * @type {string} + */ + 'id'?: string; + /** + * The type of the item + * @type {string} + */ + 'type'?: string; + /** + * The title of the lead + * @type {string} + */ + 'title'?: string; + /** + * + * @type {LeadSearchItemItemOwner} + */ + 'owner'?: LeadSearchItemItemOwner; + /** + * + * @type {LeadSearchItemItemPerson} + */ + 'person'?: LeadSearchItemItemPerson; + /** + * + * @type {LeadSearchItemItemOrganization} + */ + 'organization'?: LeadSearchItemItemOrganization; + /** + * + * @type {Array} + */ + 'phones'?: Array; + /** + * + * @type {Array} + */ + 'emails'?: Array; + /** + * Custom fields + * @type {Array} + */ + 'custom_fields'?: Array; + /** + * An array of notes + * @type {Array} + */ + 'notes'?: Array; + /** + * The value of the lead + * @type {number} + */ + 'value'?: number; + /** + * The currency of the lead + * @type {string} + */ + 'currency'?: string; + /** + * The visibility of the lead + * @type {number} + */ + 'visible_to'?: number; + /** + * A flag indicating whether the lead is archived or not + * @type {boolean} + */ + 'is_archived'?: boolean; +} + diff --git a/src/versions/v1/models/lead-search-item.ts b/src/versions/v1/models/lead-search-item.ts new file mode 100644 index 00000000..d8342ff5 --- /dev/null +++ b/src/versions/v1/models/lead-search-item.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadSearchItemItem } from './lead-search-item-item'; + +/** +* +* @export +* @interface LeadSearchItem +*/ +export interface LeadSearchItem { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * + * @type {LeadSearchItemItem} + */ + 'item'?: LeadSearchItemItem; +} + diff --git a/src/versions/v1/models/lead-source.ts b/src/versions/v1/models/lead-source.ts new file mode 100644 index 00000000..92664f2b --- /dev/null +++ b/src/versions/v1/models/lead-source.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface LeadSource +*/ +export interface LeadSource { + /** + * The unique name of a lead source + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/lead-value.ts b/src/versions/v1/models/lead-value.ts new file mode 100644 index 00000000..0c1335c2 --- /dev/null +++ b/src/versions/v1/models/lead-value.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The potential value of the lead represented by a JSON object: `{ \"amount\": 200, \"currency\": \"EUR\" }`. Both amount and currency are required. +* @export +* @interface LeadValue +*/ +export interface LeadValue { + /** + * + * @type {number} + */ + 'amount': number; + /** + * + * @type {string} + */ + 'currency': string; +} + diff --git a/src/versions/v1/models/lead.ts b/src/versions/v1/models/lead.ts new file mode 100644 index 00000000..c64b522e --- /dev/null +++ b/src/versions/v1/models/lead.ts @@ -0,0 +1,142 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadValue } from './lead-value'; + +/** +* +* @export +* @interface Lead +*/ +export interface Lead { + /** + * The unique ID of the lead in the UUID format + * @type {string} + */ + 'id': string; + /** + * The title of the lead + * @type {string} + */ + 'title': string; + /** + * The ID of the user who owns the lead + * @type {number} + */ + 'owner_id': number; + /** + * The ID of the user who created the lead + * @type {number} + */ + 'creator_id': number; + /** + * The IDs of the lead labels which are associated with the lead + * @type {Array} + */ + 'label_ids': Array; + /** + * The ID of a person which this lead is linked to + * @type {number} + */ + 'person_id': number | null; + /** + * The ID of an organization which this lead is linked to + * @type {number} + */ + 'organization_id': number | null; + /** + * Defines where the lead comes from. Will be `API` if the lead was created through the Public API and will be `Manually created` if the lead was created manually through the UI. + * @type {string} + */ + 'source_name': string; + /** + * The way this Lead was created. `origin` field is set by Pipedrive when Lead is created and cannot be changed. + * @type {string} + */ + 'origin': string; + /** + * The optional ID to further distinguish the origin of the lead - e.g. Which API integration created this Lead. + * @type {string} + */ + 'origin_id': string | null; + /** + * The ID of your Marketing channel this Lead was created from. Recognized Marketing channels can be configured in your Company settings. + * @type {number} + */ + 'channel': number | null; + /** + * The optional ID to further distinguish the Marketing channel. + * @type {string} + */ + 'channel_id': string | null; + /** + * A flag indicating whether the lead is archived or not + * @type {boolean} + */ + 'is_archived': boolean; + /** + * A flag indicating whether the lead was seen by someone in the Pipedrive UI + * @type {boolean} + */ + 'was_seen': boolean; + /** + * + * @type {LeadValue} + */ + 'value': LeadValue | null; + /** + * The date of when the deal which will be created from the lead is expected to be closed. In ISO 8601 format: YYYY-MM-DD. + * @type {string} + */ + 'expected_close_date': string | null; + /** + * The ID of the next activity associated with the lead + * @type {number} + */ + 'next_activity_id': number | null; + /** + * The date and time of when the lead was created. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * @type {string} + */ + 'add_time': string; + /** + * The date and time of when the lead was last updated. In ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. + * @type {string} + */ + 'update_time': string; + /** + * + * @type {string} + */ + 'visible_to': LeadVisibleToConst; + /** + * The BCC email of the lead + * @type {string} + */ + 'cc_email': string; +} + + export const LeadVisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type LeadVisibleToConst = typeof LeadVisibleToConst[keyof typeof LeadVisibleToConst]; + + diff --git a/src/versions/v1/models/mail-message-data-from-inner.ts b/src/versions/v1/models/mail-message-data-from-inner.ts new file mode 100644 index 00000000..d5057e4c --- /dev/null +++ b/src/versions/v1/models/mail-message-data-from-inner.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface MailMessageDataFromInner +*/ +export interface MailMessageDataFromInner { + /** + * ID of the mail participant + * @type {number} + */ + 'id'?: number; + /** + * Mail address of the mail participant + * @type {string} + */ + 'email_address'?: string; + /** + * Name of the mail participant + * @type {string} + */ + 'name'?: string; + /** + * ID of the linked person to the mail message + * @type {number} + */ + 'linked_person_id'?: number; + /** + * Name of the linked person to the mail message + * @type {string} + */ + 'linked_person_name'?: string; + /** + * ID of the mail message participant + * @type {number} + */ + 'mail_message_party_id'?: number; +} + diff --git a/src/versions/v1/models/mail-message-data.ts b/src/versions/v1/models/mail-message-data.ts new file mode 100644 index 00000000..33780c4e --- /dev/null +++ b/src/versions/v1/models/mail-message-data.ts @@ -0,0 +1,247 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailMessageDataFromInner } from './mail-message-data-from-inner'; + +/** +* +* @export +* @interface MailMessageData +*/ +export interface MailMessageData { + /** + * ID of the mail message. + * @type {number} + */ + 'id'?: number; + /** + * The array of mail message sender (object) + * @type {Array} + */ + 'from'?: Array; + /** + * The array of mail message receiver (object) + * @type {Array} + */ + 'to'?: Array; + /** + * The array of mail message copies (object) + * @type {Array} + */ + 'cc'?: Array; + /** + * The array of mail message blind copies (object) + * @type {Array} + */ + 'bcc'?: Array; + /** + * The mail message body URL + * @type {string} + */ + 'body_url'?: string; + /** + * The connection account ID + * @type {string} + */ + 'account_id'?: string; + /** + * ID of the user whom mail message will be assigned to + * @type {number} + */ + 'user_id'?: number; + /** + * ID of the mail message thread + * @type {number} + */ + 'mail_thread_id'?: number; + /** + * The subject of mail message + * @type {string} + */ + 'subject'?: string; + /** + * The snippet of mail message. Snippet length is up to 225 characters. + * @type {string} + */ + 'snippet'?: string; + /** + * The status of tracking mail message. Value is `null` if tracking is not enabled. + * @type {string} + */ + 'mail_tracking_status'?: MailMessageDataMailTrackingStatusConst | null; + /** + * + * @type {number} + */ + 'mail_link_tracking_enabled_flag'?: MailMessageDataMailLinkTrackingEnabledFlagConst; + /** + * + * @type {number} + */ + 'read_flag'?: MailMessageDataReadFlagConst; + /** + * If the mail message has a draft status then the value is the mail message object as JSON formatted string, otherwise `null`. + * @type {string} + */ + 'draft'?: string; + /** + * + * @type {number} + */ + 'draft_flag'?: MailMessageDataDraftFlagConst; + /** + * + * @type {number} + */ + 'synced_flag'?: MailMessageDataSyncedFlagConst; + /** + * + * @type {number} + */ + 'deleted_flag'?: MailMessageDataDeletedFlagConst; + /** + * + * @type {number} + */ + 'has_body_flag'?: MailMessageDataHasBodyFlagConst; + /** + * + * @type {number} + */ + 'sent_flag'?: MailMessageDataSentFlagConst; + /** + * + * @type {number} + */ + 'sent_from_pipedrive_flag'?: MailMessageDataSentFromPipedriveFlagConst; + /** + * + * @type {number} + */ + 'smart_bcc_flag'?: MailMessageDataSmartBccFlagConst; + /** + * Creation or receival time of the mail message + * @type {string} + */ + 'message_time'?: string; + /** + * The insertion into the database time of the mail message + * @type {string} + */ + 'add_time'?: string; + /** + * The updating time in the database of the mail message + * @type {string} + */ + 'update_time'?: string; + /** + * + * @type {number} + */ + 'has_attachments_flag'?: MailMessageDataHasAttachmentsFlagConst; + /** + * + * @type {number} + */ + 'has_inline_attachments_flag'?: MailMessageDataHasInlineAttachmentsFlagConst; + /** + * + * @type {number} + */ + 'has_real_attachments_flag'?: MailMessageDataHasRealAttachmentsFlagConst; +} + + export const MailMessageDataMailTrackingStatusConst = { + opened: 'opened', + not_opened: 'not opened' + } as const; + + export type MailMessageDataMailTrackingStatusConst = typeof MailMessageDataMailTrackingStatusConst[keyof typeof MailMessageDataMailTrackingStatusConst]; + export const MailMessageDataMailLinkTrackingEnabledFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataMailLinkTrackingEnabledFlagConst = typeof MailMessageDataMailLinkTrackingEnabledFlagConst[keyof typeof MailMessageDataMailLinkTrackingEnabledFlagConst]; + export const MailMessageDataReadFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataReadFlagConst = typeof MailMessageDataReadFlagConst[keyof typeof MailMessageDataReadFlagConst]; + export const MailMessageDataDraftFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataDraftFlagConst = typeof MailMessageDataDraftFlagConst[keyof typeof MailMessageDataDraftFlagConst]; + export const MailMessageDataSyncedFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataSyncedFlagConst = typeof MailMessageDataSyncedFlagConst[keyof typeof MailMessageDataSyncedFlagConst]; + export const MailMessageDataDeletedFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataDeletedFlagConst = typeof MailMessageDataDeletedFlagConst[keyof typeof MailMessageDataDeletedFlagConst]; + export const MailMessageDataHasBodyFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataHasBodyFlagConst = typeof MailMessageDataHasBodyFlagConst[keyof typeof MailMessageDataHasBodyFlagConst]; + export const MailMessageDataSentFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataSentFlagConst = typeof MailMessageDataSentFlagConst[keyof typeof MailMessageDataSentFlagConst]; + export const MailMessageDataSentFromPipedriveFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataSentFromPipedriveFlagConst = typeof MailMessageDataSentFromPipedriveFlagConst[keyof typeof MailMessageDataSentFromPipedriveFlagConst]; + export const MailMessageDataSmartBccFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataSmartBccFlagConst = typeof MailMessageDataSmartBccFlagConst[keyof typeof MailMessageDataSmartBccFlagConst]; + export const MailMessageDataHasAttachmentsFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataHasAttachmentsFlagConst = typeof MailMessageDataHasAttachmentsFlagConst[keyof typeof MailMessageDataHasAttachmentsFlagConst]; + export const MailMessageDataHasInlineAttachmentsFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataHasInlineAttachmentsFlagConst = typeof MailMessageDataHasInlineAttachmentsFlagConst[keyof typeof MailMessageDataHasInlineAttachmentsFlagConst]; + export const MailMessageDataHasRealAttachmentsFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailMessageDataHasRealAttachmentsFlagConst = typeof MailMessageDataHasRealAttachmentsFlagConst[keyof typeof MailMessageDataHasRealAttachmentsFlagConst]; + + diff --git a/src/versions/v1/models/mail-message-item-for-list-all-of.ts b/src/versions/v1/models/mail-message-item-for-list-all-of.ts new file mode 100644 index 00000000..3495bb31 --- /dev/null +++ b/src/versions/v1/models/mail-message-item-for-list-all-of.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface MailMessageItemForListAllOf +*/ +export interface MailMessageItemForListAllOf { + /** + * The Mail Message ID assigned by the sync provider + * @type {string} + */ + 'nylas_id'?: string; + /** + * The name of the S3 bucket + * @type {string} + */ + 's3_bucket'?: string; + /** + * The path of the S3 bucket + * @type {string} + */ + 's3_bucket_path'?: string; + /** + * If the Mail Message has been deleted on the provider side or not + * @type {boolean} + */ + 'external_deleted_flag'?: boolean; + /** + * The Mail Message ID assigned by the mail user agent + * @type {string} + */ + 'mua_message_id'?: string; + /** + * The ID of the mail template + * @type {number} + */ + 'template_id'?: number; + /** + * The add date and time of the Mail Message + * @type {string} + */ + 'timestamp'?: string; + /** + * The type of the data item + * @type {string} + */ + 'item_type'?: string; + /** + * The ID of the company + * @type {number} + */ + 'company_id'?: number; +} + diff --git a/src/versions/v1/models/mail-message-item-for-list.ts b/src/versions/v1/models/mail-message-item-for-list.ts new file mode 100644 index 00000000..c3b5a75b --- /dev/null +++ b/src/versions/v1/models/mail-message-item-for-list.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailMessageData } from './mail-message-data'; +// May contain unused imports in some cases +// @ts-ignore +import { MailMessageDataFromInner } from './mail-message-data-from-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { MailMessageItemForListAllOf } from './mail-message-item-for-list-all-of'; + +/** + * @type MailMessageItemForList + * @export + */ +export type MailMessageItemForList = MailMessageData & MailMessageItemForListAllOf; + + diff --git a/src/versions/v1/models/mail-service-base-response.ts b/src/versions/v1/models/mail-service-base-response.ts new file mode 100644 index 00000000..e37352dd --- /dev/null +++ b/src/versions/v1/models/mail-service-base-response.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface MailServiceBaseResponse +*/ +export interface MailServiceBaseResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * The email service specific status code and it is returned through the response body. + * @type {number} + */ + 'statusCode': number; + /** + * The status text of the response. + * @type {string} + */ + 'statusText': string; + /** + * The service name of the response. + * @type {string} + */ + 'service': string; +} + diff --git a/src/versions/v1/models/mail-thread-all-of.ts b/src/versions/v1/models/mail-thread-all-of.ts new file mode 100644 index 00000000..508d7e90 --- /dev/null +++ b/src/versions/v1/models/mail-thread-all-of.ts @@ -0,0 +1,144 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface MailThreadAllOf +*/ +export interface MailThreadAllOf { + /** + * ID of the mail thread + * @type {number} + */ + 'id'?: number; + /** + * The connection account ID + * @type {string} + */ + 'account_id'?: string; + /** + * ID of the user whom mail message will be assigned to + * @type {number} + */ + 'user_id'?: number; + /** + * The subject + * @type {string} + */ + 'subject'?: string; + /** + * A snippet + * @type {string} + */ + 'snippet'?: string; + /** + * + * @type {number} + */ + 'read_flag'?: MailThreadAllOfReadFlagConst; + /** + * Mail tracking status + * @type {string} + */ + 'mail_tracking_status'?: string | null; + /** + * + * @type {number} + */ + 'has_attachments_flag'?: MailThreadAllOfHasAttachmentsFlagConst; + /** + * + * @type {number} + */ + 'has_inline_attachments_flag'?: MailThreadAllOfHasInlineAttachmentsFlagConst; + /** + * + * @type {number} + */ + 'has_real_attachments_flag'?: MailThreadAllOfHasRealAttachmentsFlagConst; + /** + * + * @type {number} + */ + 'deleted_flag'?: MailThreadAllOfDeletedFlagConst; + /** + * + * @type {number} + */ + 'synced_flag'?: MailThreadAllOfSyncedFlagConst; + /** + * + * @type {number} + */ + 'smart_bcc_flag'?: MailThreadAllOfSmartBccFlagConst; + /** + * + * @type {number} + */ + 'mail_link_tracking_enabled_flag'?: MailThreadAllOfMailLinkTrackingEnabledFlagConst; +} + + export const MailThreadAllOfReadFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOfReadFlagConst = typeof MailThreadAllOfReadFlagConst[keyof typeof MailThreadAllOfReadFlagConst]; + export const MailThreadAllOfHasAttachmentsFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOfHasAttachmentsFlagConst = typeof MailThreadAllOfHasAttachmentsFlagConst[keyof typeof MailThreadAllOfHasAttachmentsFlagConst]; + export const MailThreadAllOfHasInlineAttachmentsFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOfHasInlineAttachmentsFlagConst = typeof MailThreadAllOfHasInlineAttachmentsFlagConst[keyof typeof MailThreadAllOfHasInlineAttachmentsFlagConst]; + export const MailThreadAllOfHasRealAttachmentsFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOfHasRealAttachmentsFlagConst = typeof MailThreadAllOfHasRealAttachmentsFlagConst[keyof typeof MailThreadAllOfHasRealAttachmentsFlagConst]; + export const MailThreadAllOfDeletedFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOfDeletedFlagConst = typeof MailThreadAllOfDeletedFlagConst[keyof typeof MailThreadAllOfDeletedFlagConst]; + export const MailThreadAllOfSyncedFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOfSyncedFlagConst = typeof MailThreadAllOfSyncedFlagConst[keyof typeof MailThreadAllOfSyncedFlagConst]; + export const MailThreadAllOfSmartBccFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOfSmartBccFlagConst = typeof MailThreadAllOfSmartBccFlagConst[keyof typeof MailThreadAllOfSmartBccFlagConst]; + export const MailThreadAllOfMailLinkTrackingEnabledFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOfMailLinkTrackingEnabledFlagConst = typeof MailThreadAllOfMailLinkTrackingEnabledFlagConst[keyof typeof MailThreadAllOfMailLinkTrackingEnabledFlagConst]; + + diff --git a/src/versions/v1/models/mail-thread-all-of1-parties-to-inner.ts b/src/versions/v1/models/mail-thread-all-of1-parties-to-inner.ts new file mode 100644 index 00000000..a311e712 --- /dev/null +++ b/src/versions/v1/models/mail-thread-all-of1-parties-to-inner.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* Member of a thread +* @export +* @interface MailThreadAllOf1PartiesToInner +*/ +export interface MailThreadAllOf1PartiesToInner { + /** + * ID of the mail thread participant + * @type {number} + */ + 'id'?: number; + /** + * Name of the mail thread participant + * @type {string} + */ + 'name'?: string; + /** + * Whether the mail thread participant was last to send an email + * @type {boolean} + */ + 'latest_sent'?: boolean; + /** + * Email address of the mail thread participant + * @type {string} + */ + 'email_address'?: string; + /** + * Message time + * @type {number} + */ + 'message_time'?: number; + /** + * ID of the linked person + * @type {number} + */ + 'linked_person_id'?: number; + /** + * Email of the linked person + * @type {string} + */ + 'linked_person_name'?: string; + /** + * ID of the mail message party + * @type {number} + */ + 'mail_message_party_id'?: number; + /** + * Linked Organization ID + * @type {number} + */ + 'linked_organization_id'?: number | null; +} + diff --git a/src/versions/v1/models/mail-thread-all-of1-parties.ts b/src/versions/v1/models/mail-thread-all-of1-parties.ts new file mode 100644 index 00000000..a36ca4e9 --- /dev/null +++ b/src/versions/v1/models/mail-thread-all-of1-parties.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf1PartiesToInner } from './mail-thread-all-of1-parties-to-inner'; + +/** +* Parties of the mail thread +* @export +* @interface MailThreadAllOf1Parties +*/ +export interface MailThreadAllOf1Parties { + /** + * Recipients of the mail thread + * @type {Array} + */ + 'to'?: Array; + /** + * Senders of the mail thread + * @type {Array} + */ + 'from'?: Array; +} + diff --git a/src/versions/v1/models/mail-thread-all-of1.ts b/src/versions/v1/models/mail-thread-all-of1.ts new file mode 100644 index 00000000..1c60e0df --- /dev/null +++ b/src/versions/v1/models/mail-thread-all-of1.ts @@ -0,0 +1,186 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf1Parties } from './mail-thread-all-of1-parties'; + +/** +* +* @export +* @interface MailThreadAllOf1 +*/ +export interface MailThreadAllOf1 { + /** + * + * @type {MailThreadAllOf1Parties} + */ + 'parties'?: MailThreadAllOf1Parties; + /** + * Parties of the drafted mail thread + * @type {Array} + */ + 'drafts_parties'?: Array; + /** + * Folders in which messages from thread are being stored + * @type {Array} + */ + 'folders'?: Array; + /** + * Version + * @type {number} + */ + 'version'?: number; + /** + * A snippet from a draft + * @type {string} + */ + 'snippet_draft'?: string | null; + /** + * A snippet from a message sent + * @type {string} + */ + 'snippet_sent'?: string; + /** + * An amount of messages + * @type {number} + */ + 'message_count'?: number; + /** + * + * @type {number} + */ + 'has_draft_flag'?: MailThreadAllOf1HasDraftFlagConst; + /** + * + * @type {number} + */ + 'has_sent_flag'?: MailThreadAllOf1HasSentFlagConst; + /** + * + * @type {number} + */ + 'archived_flag'?: MailThreadAllOf1ArchivedFlagConst; + /** + * + * @type {number} + */ + 'shared_flag'?: MailThreadAllOf1SharedFlagConst; + /** + * + * @type {number} + */ + 'external_deleted_flag'?: MailThreadAllOf1ExternalDeletedFlagConst; + /** + * + * @type {number} + */ + 'first_message_to_me_flag'?: MailThreadAllOf1FirstMessageToMeFlagConst; + /** + * Last message timestamp + * @type {string} + */ + 'last_message_timestamp'?: string; + /** + * The time when the mail thread has had the first message received or created + * @type {string} + */ + 'first_message_timestamp'?: string; + /** + * The last time when the mail thread has had a message sent + * @type {string} + */ + 'last_message_sent_timestamp'?: string | null; + /** + * The last time when the mail thread has had a message received + * @type {string} + */ + 'last_message_received_timestamp'?: string; + /** + * The time when the mail thread was inserted to database + * @type {string} + */ + 'add_time'?: string; + /** + * The time when the mail thread was updated in database received + * @type {string} + */ + 'update_time'?: string; + /** + * The ID of the deal + * @type {number} + */ + 'deal_id'?: number | null; + /** + * Status of the deal + * @type {string} + */ + 'deal_status'?: string | null; + /** + * The ID of the lead + * @type {string} + */ + 'lead_id'?: string | null; + /** + * + * @type {number} + */ + 'all_messages_sent_flag'?: MailThreadAllOf1AllMessagesSentFlagConst; +} + + export const MailThreadAllOf1HasDraftFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOf1HasDraftFlagConst = typeof MailThreadAllOf1HasDraftFlagConst[keyof typeof MailThreadAllOf1HasDraftFlagConst]; + export const MailThreadAllOf1HasSentFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOf1HasSentFlagConst = typeof MailThreadAllOf1HasSentFlagConst[keyof typeof MailThreadAllOf1HasSentFlagConst]; + export const MailThreadAllOf1ArchivedFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOf1ArchivedFlagConst = typeof MailThreadAllOf1ArchivedFlagConst[keyof typeof MailThreadAllOf1ArchivedFlagConst]; + export const MailThreadAllOf1SharedFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOf1SharedFlagConst = typeof MailThreadAllOf1SharedFlagConst[keyof typeof MailThreadAllOf1SharedFlagConst]; + export const MailThreadAllOf1ExternalDeletedFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOf1ExternalDeletedFlagConst = typeof MailThreadAllOf1ExternalDeletedFlagConst[keyof typeof MailThreadAllOf1ExternalDeletedFlagConst]; + export const MailThreadAllOf1FirstMessageToMeFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOf1FirstMessageToMeFlagConst = typeof MailThreadAllOf1FirstMessageToMeFlagConst[keyof typeof MailThreadAllOf1FirstMessageToMeFlagConst]; + export const MailThreadAllOf1AllMessagesSentFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type MailThreadAllOf1AllMessagesSentFlagConst = typeof MailThreadAllOf1AllMessagesSentFlagConst[keyof typeof MailThreadAllOf1AllMessagesSentFlagConst]; + + diff --git a/src/versions/v1/models/mail-thread.ts b/src/versions/v1/models/mail-thread.ts new file mode 100644 index 00000000..b02054d1 --- /dev/null +++ b/src/versions/v1/models/mail-thread.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf } from './mail-thread-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf1 } from './mail-thread-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf1Parties } from './mail-thread-all-of1-parties'; + +/** + * @type MailThread + * @export + */ +export type MailThread = MailThreadAllOf & MailThreadAllOf1; + + diff --git a/src/versions/v1/models/mail-thread1.ts b/src/versions/v1/models/mail-thread1.ts new file mode 100644 index 00000000..e2045d5d --- /dev/null +++ b/src/versions/v1/models/mail-thread1.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf } from './mail-thread-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf1 } from './mail-thread-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { MailThreadAllOf1Parties } from './mail-thread-all-of1-parties'; + +/** + * @type MailThread1 + * The mail thread object + * @export + */ +export type MailThread1 = MailThreadAllOf & MailThreadAllOf1; + + diff --git a/src/versions/v1/models/merge-deals-request.ts b/src/versions/v1/models/merge-deals-request.ts new file mode 100644 index 00000000..4fa79bdd --- /dev/null +++ b/src/versions/v1/models/merge-deals-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface MergeDealsRequest +*/ +export interface MergeDealsRequest { + /** + * The ID of the deal that the deal will be merged with + * @type {number} + */ + 'merge_with_id': number; +} + diff --git a/src/versions/v1/models/merge-organizations-request.ts b/src/versions/v1/models/merge-organizations-request.ts new file mode 100644 index 00000000..909dddc1 --- /dev/null +++ b/src/versions/v1/models/merge-organizations-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface MergeOrganizationsRequest +*/ +export interface MergeOrganizationsRequest { + /** + * The ID of the organization that the organization will be merged with + * @type {number} + */ + 'merge_with_id': number; +} + diff --git a/src/versions/v1/models/merge-organizations-response-data.ts b/src/versions/v1/models/merge-organizations-response-data.ts new file mode 100644 index 00000000..c0bf288d --- /dev/null +++ b/src/versions/v1/models/merge-organizations-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface MergeOrganizationsResponseData +*/ +export interface MergeOrganizationsResponseData { + /** + * The ID of the merged organization + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/merge-organizations-response.ts b/src/versions/v1/models/merge-organizations-response.ts new file mode 100644 index 00000000..ea61cc01 --- /dev/null +++ b/src/versions/v1/models/merge-organizations-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MergeOrganizationsResponseData } from './merge-organizations-response-data'; + +/** +* +* @export +* @interface MergeOrganizationsResponse +*/ +export interface MergeOrganizationsResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {MergeOrganizationsResponseData} + */ + 'data': MergeOrganizationsResponseData; +} + diff --git a/src/versions/v1/models/merge-person-deal-related-info-all-of.ts b/src/versions/v1/models/merge-person-deal-related-info-all-of.ts new file mode 100644 index 00000000..a0eee283 --- /dev/null +++ b/src/versions/v1/models/merge-person-deal-related-info-all-of.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface MergePersonDealRelatedInfoAllOf +*/ +export interface MergePersonDealRelatedInfoAllOf { + /** + * The count of open participant deals related with the item + * @type {number} + */ + 'participant_open_deals_count'?: number; + /** + * The count of closed participant deals related with the item + * @type {number} + */ + 'participant_closed_deals_count'?: number; +} + diff --git a/src/versions/v1/models/merge-person-deal-related-info.ts b/src/versions/v1/models/merge-person-deal-related-info.ts new file mode 100644 index 00000000..39eb3351 --- /dev/null +++ b/src/versions/v1/models/merge-person-deal-related-info.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealCountAndActivityInfo } from './deal-count-and-activity-info'; +// May contain unused imports in some cases +// @ts-ignore +import { MergePersonDealRelatedInfoAllOf } from './merge-person-deal-related-info-all-of'; + +/** + * @type MergePersonDealRelatedInfo + * @export + */ +export type MergePersonDealRelatedInfo = DealCountAndActivityInfo & MergePersonDealRelatedInfoAllOf; + + diff --git a/src/versions/v1/models/merge-person-item.ts b/src/versions/v1/models/merge-person-item.ts new file mode 100644 index 00000000..413d045b --- /dev/null +++ b/src/versions/v1/models/merge-person-item.ts @@ -0,0 +1,38 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AdditionalMergePersonInfo } from './additional-merge-person-info'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOf } from './person-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfEmailInner } from './person-all-of-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPhoneInner } from './person-all-of-phone-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPictureId } from './person-all-of-picture-id'; + +/** + * @type MergePersonItem + * @export + */ +export type MergePersonItem = AdditionalMergePersonInfo & PersonAllOf; + + diff --git a/src/versions/v1/models/merge-persons-request.ts b/src/versions/v1/models/merge-persons-request.ts new file mode 100644 index 00000000..9b11475c --- /dev/null +++ b/src/versions/v1/models/merge-persons-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface MergePersonsRequest +*/ +export interface MergePersonsRequest { + /** + * The ID of the person that will not be overwritten. This person’s data will be prioritized in case of conflict with the other person. + * @type {number} + */ + 'merge_with_id': number; +} + diff --git a/src/versions/v1/models/merge-persons-response-all-of.ts b/src/versions/v1/models/merge-persons-response-all-of.ts new file mode 100644 index 00000000..ffc65a2b --- /dev/null +++ b/src/versions/v1/models/merge-persons-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MergePersonItem } from './merge-person-item'; + +/** +* +* @export +* @interface MergePersonsResponseAllOf +*/ +export interface MergePersonsResponseAllOf { + /** + * + * @type {MergePersonItem} + */ + 'data': MergePersonItem; +} + diff --git a/src/versions/v1/models/merge-persons-response.ts b/src/versions/v1/models/merge-persons-response.ts new file mode 100644 index 00000000..d2902b07 --- /dev/null +++ b/src/versions/v1/models/merge-persons-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { MergePersonItem } from './merge-person-item'; +// May contain unused imports in some cases +// @ts-ignore +import { MergePersonsResponseAllOf } from './merge-persons-response-all-of'; + +/** + * @type MergePersonsResponse + * @export + */ +export type MergePersonsResponse = BaseResponse & MergePersonsResponseAllOf; + + diff --git a/src/versions/v1/models/new-deal-parameters.ts b/src/versions/v1/models/new-deal-parameters.ts new file mode 100644 index 00000000..d3e04c3a --- /dev/null +++ b/src/versions/v1/models/new-deal-parameters.ts @@ -0,0 +1,99 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface NewDealParameters +*/ +export interface NewDealParameters { + /** + * The value of the deal. If omitted, value will be set to 0. + * @type {string} + */ + 'value'?: string; + /** + * The array of the labels IDs. + * @type {Array} + */ + 'label'?: Array; + /** + * The currency of the deal. Accepts a 3-character currency code. If omitted, currency will be set to the default currency of the authorized user. + * @type {string} + */ + 'currency'?: string; + /** + * The ID of the user which will be the owner of the created deal. If not provided, the user making the request will be used. + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. This property is required unless `org_id` is specified. + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. This property is required unless `person_id` is specified. + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. + * @type {number} + */ + 'pipeline_id'?: number; + /** + * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. If omitted, the deal will be placed in the first stage of the default pipeline. + * @type {number} + */ + 'stage_id'?: number; + /** + * open = Open, won = Won, lost = Lost, deleted = Deleted. If omitted, status will be set to open. + * @type {string} + */ + 'status'?: NewDealParametersStatusConst; + /** + * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this deal. If omitted, `origin_id` will be set to null. + * @type {string} + */ + 'origin_id'?: string | null; + /** + * The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company. You can fetch allowed values with GET /v1/dealFields. If omitted, channel will be set to null. + * @type {number} + */ + 'channel'?: number | null; + /** + * The optional ID to further distinguish the Marketing channel. If omitted, `channel_id` will be set to null. + * @type {string} + */ + 'channel_id'?: string | null; + /** + * The optional creation date & time of the deal in UTC. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; +} + + export const NewDealParametersStatusConst = { + open: 'open', + won: 'won', + lost: 'lost', + deleted: 'deleted' + } as const; + + export type NewDealParametersStatusConst = typeof NewDealParametersStatusConst[keyof typeof NewDealParametersStatusConst]; + + diff --git a/src/versions/v1/models/note-deal.ts b/src/versions/v1/models/note-deal.ts new file mode 100644 index 00000000..e5cd2ce0 --- /dev/null +++ b/src/versions/v1/models/note-deal.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The deal this note is attached to +* @export +* @interface NoteDeal +*/ +export interface NoteDeal { + /** + * The title of the deal this note is attached to + * @type {string} + */ + 'title'?: string; +} + diff --git a/src/versions/v1/models/note-organization.ts b/src/versions/v1/models/note-organization.ts new file mode 100644 index 00000000..46f5a64e --- /dev/null +++ b/src/versions/v1/models/note-organization.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The organization the note is attached to +* @export +* @interface NoteOrganization +*/ +export interface NoteOrganization { + /** + * The name of the organization the note is attached to + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/note-person.ts b/src/versions/v1/models/note-person.ts new file mode 100644 index 00000000..0ccf1d3d --- /dev/null +++ b/src/versions/v1/models/note-person.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The person the note is attached to +* @export +* @interface NotePerson +*/ +export interface NotePerson { + /** + * The name of the person the note is attached to + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/note-request-all-of.ts b/src/versions/v1/models/note-request-all-of.ts new file mode 100644 index 00000000..26ec962a --- /dev/null +++ b/src/versions/v1/models/note-request-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface NoteRequestAllOf +*/ +export interface NoteRequestAllOf { + /** + * The content of the note in HTML format. Subject to sanitization on the back-end. + * @type {string} + */ + 'content'?: string; +} + diff --git a/src/versions/v1/models/note-request-all-of1.ts b/src/versions/v1/models/note-request-all-of1.ts new file mode 100644 index 00000000..eff2decd --- /dev/null +++ b/src/versions/v1/models/note-request-all-of1.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface NoteRequestAllOf1 +*/ +export interface NoteRequestAllOf1 { + /** + * The ID of the lead the note will be attached to + * @type {string} + */ + 'lead_id'?: string; + /** + * The ID of the deal the note will be attached to + * @type {number} + */ + 'deal_id'?: number; + /** + * The ID of the person the note will be attached to + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization the note will be attached to + * @type {number} + */ + 'org_id'?: number; +} + diff --git a/src/versions/v1/models/note-request.ts b/src/versions/v1/models/note-request.ts new file mode 100644 index 00000000..0f001e1b --- /dev/null +++ b/src/versions/v1/models/note-request.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddNoteRequestAllOf1 } from './add-note-request-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { NoteRequestAllOf } from './note-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { NoteRequestAllOf1 } from './note-request-all-of1'; + +/** + * @type NoteRequest + * @export + */ +export type NoteRequest = AddNoteRequestAllOf1 & NoteRequestAllOf & NoteRequestAllOf1; + + diff --git a/src/versions/v1/models/note-user.ts b/src/versions/v1/models/note-user.ts new file mode 100644 index 00000000..b92b381e --- /dev/null +++ b/src/versions/v1/models/note-user.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The user who created the note +* @export +* @interface NoteUser +*/ +export interface NoteUser { + /** + * The email of the note creator + * @type {string} + */ + 'email'?: string; + /** + * The URL of the note creator avatar picture + * @type {string} + */ + 'icon_url'?: string; + /** + * Whether the note is created by you or not + * @type {boolean} + */ + 'is_you'?: boolean; + /** + * The name of the note creator + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/note.ts b/src/versions/v1/models/note.ts new file mode 100644 index 00000000..24222183 --- /dev/null +++ b/src/versions/v1/models/note.ts @@ -0,0 +1,126 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { NoteDeal } from './note-deal'; +// May contain unused imports in some cases +// @ts-ignore +import { NoteOrganization } from './note-organization'; +// May contain unused imports in some cases +// @ts-ignore +import { NotePerson } from './note-person'; +// May contain unused imports in some cases +// @ts-ignore +import { NoteUser } from './note-user'; + +/** +* +* @export +* @interface Note +*/ +export interface Note { + /** + * The ID of the note + * @type {number} + */ + 'id'?: number; + /** + * Whether the note is active or deleted + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The creation date and time of the note + * @type {string} + */ + 'add_time'?: string; + /** + * The content of the note in HTML format. Subject to sanitization on the back-end. + * @type {string} + */ + 'content'?: string; + /** + * + * @type {NoteDeal} + */ + 'deal'?: NoteDeal; + /** + * The ID of the lead the note is attached to + * @type {string} + */ + 'lead_id'?: string; + /** + * The ID of the deal the note is attached to + * @type {number} + */ + 'deal_id'?: number; + /** + * The ID of the user who last updated the note + * @type {number} + */ + 'last_update_user_id'?: number; + /** + * The ID of the organization the note is attached to + * @type {number} + */ + 'org_id'?: number; + /** + * + * @type {NoteOrganization} + */ + 'organization'?: NoteOrganization; + /** + * + * @type {NotePerson} + */ + 'person'?: NotePerson; + /** + * The ID of the person the note is attached to + * @type {number} + */ + 'person_id'?: number; + /** + * If true, the results are filtered by note to deal pinning state + * @type {boolean} + */ + 'pinned_to_deal_flag'?: boolean; + /** + * If true, the results are filtered by note to organization pinning state + * @type {boolean} + */ + 'pinned_to_organization_flag'?: boolean; + /** + * If true, the results are filtered by note to person pinning state + * @type {boolean} + */ + 'pinned_to_person_flag'?: boolean; + /** + * The last updated date and time of the note + * @type {string} + */ + 'update_time'?: string; + /** + * + * @type {NoteUser} + */ + 'user'?: NoteUser; + /** + * The ID of the note creator + * @type {number} + */ + 'user_id'?: number; +} + diff --git a/src/versions/v1/models/organization-count-and-address-info-all-of.ts b/src/versions/v1/models/organization-count-and-address-info-all-of.ts new file mode 100644 index 00000000..e36a40a7 --- /dev/null +++ b/src/versions/v1/models/organization-count-and-address-info-all-of.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface OrganizationCountAndAddressInfoAllOf +*/ +export interface OrganizationCountAndAddressInfoAllOf { + /** + * The count of email messages related to the organization + * @type {number} + */ + 'email_messages_count'?: number; + /** + * The count of persons related to the organization + * @type {number} + */ + 'people_count'?: number; + /** + * The count of activities related to the organization + * @type {number} + */ + 'activities_count'?: number; + /** + * The count of done activities related to the organization + * @type {number} + */ + 'done_activities_count'?: number; + /** + * The count of undone activities related to the organization + * @type {number} + */ + 'undone_activities_count'?: number; + /** + * The count of files related to the organization + * @type {number} + */ + 'files_count'?: number; + /** + * The count of notes related to the organization + * @type {number} + */ + 'notes_count'?: number; + /** + * The count of followers related to the organization + * @type {number} + */ + 'followers_count'?: number; +} + diff --git a/src/versions/v1/models/organization-count-and-address-info-all-of1.ts b/src/versions/v1/models/organization-count-and-address-info-all-of1.ts new file mode 100644 index 00000000..7495ac49 --- /dev/null +++ b/src/versions/v1/models/organization-count-and-address-info-all-of1.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface OrganizationCountAndAddressInfoAllOf1 +*/ +export interface OrganizationCountAndAddressInfoAllOf1 { + /** + * The full address of the organization + * @type {string} + */ + 'address'?: string; + /** + * The sub-premise of the organization location + * @type {string} + */ + 'address_subpremise'?: string; + /** + * The street number of the organization location + * @type {string} + */ + 'address_street_number'?: string; + /** + * The route of the organization location + * @type {string} + */ + 'address_route'?: string; + /** + * The sub-locality of the organization location + * @type {string} + */ + 'address_sublocality'?: string; + /** + * The locality of the organization location + * @type {string} + */ + 'address_locality'?: string; + /** + * The level 1 admin area of the organization location + * @type {string} + */ + 'address_admin_area_level_1'?: string; + /** + * The level 2 admin area of the organization location + * @type {string} + */ + 'address_admin_area_level_2'?: string; + /** + * The country of the organization location + * @type {string} + */ + 'address_country'?: string; + /** + * The postal code of the organization location + * @type {string} + */ + 'address_postal_code'?: string; + /** + * The formatted organization location + * @type {string} + */ + 'address_formatted_address'?: string; +} + diff --git a/src/versions/v1/models/organization-count-and-address-info.ts b/src/versions/v1/models/organization-count-and-address-info.ts new file mode 100644 index 00000000..27e81a21 --- /dev/null +++ b/src/versions/v1/models/organization-count-and-address-info.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationCountAndAddressInfoAllOf } from './organization-count-and-address-info-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationCountAndAddressInfoAllOf1 } from './organization-count-and-address-info-all-of1'; + +/** + * @type OrganizationCountAndAddressInfo + * @export + */ +export type OrganizationCountAndAddressInfo = OrganizationCountAndAddressInfoAllOf & OrganizationCountAndAddressInfoAllOf1; + + diff --git a/src/versions/v1/models/organization-data-with-id-all-of.ts b/src/versions/v1/models/organization-data-with-id-all-of.ts new file mode 100644 index 00000000..fa88e394 --- /dev/null +++ b/src/versions/v1/models/organization-data-with-id-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface OrganizationDataWithIdAllOf +*/ +export interface OrganizationDataWithIdAllOf { + /** + * The ID of the organization associated with the item + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/organization-data-with-id-all-of1.ts b/src/versions/v1/models/organization-data-with-id-all-of1.ts new file mode 100644 index 00000000..4176edd6 --- /dev/null +++ b/src/versions/v1/models/organization-data-with-id-all-of1.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface OrganizationDataWithIdAllOf1 +*/ +export interface OrganizationDataWithIdAllOf1 { + /** + * The name of the organization associated with the item + * @type {string} + */ + 'name'?: string; + /** + * The number of people connected with the organization that is associated with the item + * @type {number} + */ + 'people_count'?: number; + /** + * The ID of the owner of the organization that is associated with the item + * @type {number} + */ + 'owner_id'?: number; + /** + * The address of the organization + * @type {string} + */ + 'address'?: string; + /** + * The BCC email of the organization associated with the item + * @type {string} + */ + 'cc_email'?: string; +} + diff --git a/src/versions/v1/models/organization-data-with-id-and-active-flag-all-of.ts b/src/versions/v1/models/organization-data-with-id-and-active-flag-all-of.ts new file mode 100644 index 00000000..5c3bedcf --- /dev/null +++ b/src/versions/v1/models/organization-data-with-id-and-active-flag-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface OrganizationDataWithIdAndActiveFlagAllOf +*/ +export interface OrganizationDataWithIdAndActiveFlagAllOf { + /** + * Whether the associated organization is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; +} + diff --git a/src/versions/v1/models/organization-data-with-id-and-active-flag.ts b/src/versions/v1/models/organization-data-with-id-and-active-flag.ts new file mode 100644 index 00000000..57cd743b --- /dev/null +++ b/src/versions/v1/models/organization-data-with-id-and-active-flag.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationDataWithId } from './organization-data-with-id'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationDataWithIdAndActiveFlagAllOf } from './organization-data-with-id-and-active-flag-all-of'; + +/** + * @type OrganizationDataWithIdAndActiveFlag + * The ID of the organization associated with the item + * @export + */ +export type OrganizationDataWithIdAndActiveFlag = OrganizationDataWithId & OrganizationDataWithIdAndActiveFlagAllOf; + + diff --git a/src/versions/v1/models/organization-data-with-id.ts b/src/versions/v1/models/organization-data-with-id.ts new file mode 100644 index 00000000..944485a4 --- /dev/null +++ b/src/versions/v1/models/organization-data-with-id.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationDataWithIdAllOf } from './organization-data-with-id-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationDataWithIdAllOf1 } from './organization-data-with-id-all-of1'; + +/** + * @type OrganizationDataWithId + * The ID of the organization associated with the item + * @export + */ +export type OrganizationDataWithId = OrganizationDataWithIdAllOf & OrganizationDataWithIdAllOf1; + + diff --git a/src/versions/v1/models/organization-relationship-details-all-of.ts b/src/versions/v1/models/organization-relationship-details-all-of.ts new file mode 100644 index 00000000..50844fd4 --- /dev/null +++ b/src/versions/v1/models/organization-relationship-details-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface OrganizationRelationshipDetailsAllOf +*/ +export interface OrganizationRelationshipDetailsAllOf { + /** + * The name of the linked organization + * @type {string} + */ + 'related_organization_name'?: string; +} + diff --git a/src/versions/v1/models/organization-relationship-details.ts b/src/versions/v1/models/organization-relationship-details.ts new file mode 100644 index 00000000..589eed9f --- /dev/null +++ b/src/versions/v1/models/organization-relationship-details.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationRelationshipDetailsAllOf } from './organization-relationship-details-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationRelationshipWithCalculatedFields } from './organization-relationship-with-calculated-fields'; +// May contain unused imports in some cases +// @ts-ignore +import { RelationshipOrganizationInfoItem } from './relationship-organization-info-item'; + +/** + * @type OrganizationRelationshipDetails + * @export + */ +export type OrganizationRelationshipDetails = OrganizationRelationshipDetailsAllOf & OrganizationRelationshipWithCalculatedFields; + + diff --git a/src/versions/v1/models/organization-relationship-with-calculated-fields-all-of.ts b/src/versions/v1/models/organization-relationship-with-calculated-fields-all-of.ts new file mode 100644 index 00000000..663f6a16 --- /dev/null +++ b/src/versions/v1/models/organization-relationship-with-calculated-fields-all-of.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { RelationshipOrganizationInfoItem } from './relationship-organization-info-item'; + +/** +* +* @export +* @interface OrganizationRelationshipWithCalculatedFieldsAllOf +*/ +export interface OrganizationRelationshipWithCalculatedFieldsAllOf { + /** + * The ID of the organization relationship + * @type {number} + */ + 'id'?: number; + /** + * The type of the relationship + * @type {string} + */ + 'type'?: string; + /** + * + * @type {RelationshipOrganizationInfoItem} + */ + 'rel_owner_org_id'?: RelationshipOrganizationInfoItem; + /** + * + * @type {RelationshipOrganizationInfoItem} + */ + 'rel_linked_org_id'?: RelationshipOrganizationInfoItem; + /** + * The creation date and time of the relationship + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the relationship + * @type {string} + */ + 'update_time'?: string; + /** + * Whether the relationship is active or not + * @type {string} + */ + 'active_flag'?: string; +} + diff --git a/src/versions/v1/models/organization-relationship-with-calculated-fields-all-of1.ts b/src/versions/v1/models/organization-relationship-with-calculated-fields-all-of1.ts new file mode 100644 index 00000000..87b786f8 --- /dev/null +++ b/src/versions/v1/models/organization-relationship-with-calculated-fields-all-of1.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface OrganizationRelationshipWithCalculatedFieldsAllOf1 +*/ +export interface OrganizationRelationshipWithCalculatedFieldsAllOf1 { + /** + * The calculated type of the relationship with the linked organization + * @type {string} + */ + 'calculated_type'?: string; + /** + * The ID of the linked organization + * @type {number} + */ + 'calculated_related_org_id'?: number; +} + diff --git a/src/versions/v1/models/organization-relationship-with-calculated-fields.ts b/src/versions/v1/models/organization-relationship-with-calculated-fields.ts new file mode 100644 index 00000000..ed7236d6 --- /dev/null +++ b/src/versions/v1/models/organization-relationship-with-calculated-fields.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationRelationshipWithCalculatedFieldsAllOf } from './organization-relationship-with-calculated-fields-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationRelationshipWithCalculatedFieldsAllOf1 } from './organization-relationship-with-calculated-fields-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { RelationshipOrganizationInfoItem } from './relationship-organization-info-item'; + +/** + * @type OrganizationRelationshipWithCalculatedFields + * @export + */ +export type OrganizationRelationshipWithCalculatedFields = OrganizationRelationshipWithCalculatedFieldsAllOf & OrganizationRelationshipWithCalculatedFieldsAllOf1; + + diff --git a/src/versions/v1/models/organization-relationship.ts b/src/versions/v1/models/organization-relationship.ts new file mode 100644 index 00000000..91ac3b89 --- /dev/null +++ b/src/versions/v1/models/organization-relationship.ts @@ -0,0 +1,52 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface OrganizationRelationship +*/ +export interface OrganizationRelationship { + /** + * The ID of the base organization for the returned calculated values + * @type {number} + */ + 'org_id'?: number; + /** + * The type of organization relationship + * @type {string} + */ + 'type'?: OrganizationRelationshipTypeConst; + /** + * The owner of this relationship. If type is `parent`, then the owner is the parent and the linked organization is the daughter. + * @type {number} + */ + 'rel_owner_org_id'?: number; + /** + * The linked organization in this relationship. If type is `parent`, then the linked organization is the daughter. + * @type {number} + */ + 'rel_linked_org_id'?: number; +} + + export const OrganizationRelationshipTypeConst = { + parent: 'parent', + related: 'related' + } as const; + + export type OrganizationRelationshipTypeConst = typeof OrganizationRelationshipTypeConst[keyof typeof OrganizationRelationshipTypeConst]; + + diff --git a/src/versions/v1/models/owner-all-of.ts b/src/versions/v1/models/owner-all-of.ts new file mode 100644 index 00000000..d6d91212 --- /dev/null +++ b/src/versions/v1/models/owner-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface OwnerAllOf +*/ +export interface OwnerAllOf { + /** + * The ID of the owner + * @type {number} + */ + 'value'?: number; +} + diff --git a/src/versions/v1/models/owner.ts b/src/versions/v1/models/owner.ts new file mode 100644 index 00000000..4a30f820 --- /dev/null +++ b/src/versions/v1/models/owner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OwnerAllOf } from './owner-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { UserDataWithIdAllOf } from './user-data-with-id-all-of'; + +/** + * @type Owner + * @export + */ +export type Owner = OwnerAllOf & UserDataWithIdAllOf; + + diff --git a/src/versions/v1/models/pagination-details-all-of.ts b/src/versions/v1/models/pagination-details-all-of.ts new file mode 100644 index 00000000..130b24ef --- /dev/null +++ b/src/versions/v1/models/pagination-details-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PaginationDetailsAllOf +*/ +export interface PaginationDetailsAllOf { + /** + * Next pagination start + * @type {number} + */ + 'next_start'?: number; +} + diff --git a/src/versions/v1/models/pagination-details.ts b/src/versions/v1/models/pagination-details.ts new file mode 100644 index 00000000..151f8734 --- /dev/null +++ b/src/versions/v1/models/pagination-details.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFieldsResponseAllOfAdditionalData } from './get-fields-response-all-of-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { PaginationDetailsAllOf } from './pagination-details-all-of'; + +/** + * @type PaginationDetails + * Pagination details of the list + * @export + */ +export type PaginationDetails = GetFieldsResponseAllOfAdditionalData & PaginationDetailsAllOf; + + diff --git a/src/versions/v1/models/participant-changelog-item-all-of.ts b/src/versions/v1/models/participant-changelog-item-all-of.ts new file mode 100644 index 00000000..4714cf61 --- /dev/null +++ b/src/versions/v1/models/participant-changelog-item-all-of.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ParticipantChangelogItemAllOf +*/ +export interface ParticipantChangelogItemAllOf { + /** + * The ID of the user + * @type {number} + */ + 'actor_user_id'?: number; + /** + * The ID of the person + * @type {number} + */ + 'person_id'?: number; + /** + * Deal participant action type + * @type {string} + */ + 'action'?: string; + /** + * The deal participant action log time + * @type {string} + */ + 'time'?: string; +} + diff --git a/src/versions/v1/models/participant-changelog-item.ts b/src/versions/v1/models/participant-changelog-item.ts new file mode 100644 index 00000000..28f26853 --- /dev/null +++ b/src/versions/v1/models/participant-changelog-item.ts @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ParticipantChangelogItemAllOf } from './participant-changelog-item-all-of'; + +/** + * @type ParticipantChangelogItem + * @export + */ +export type ParticipantChangelogItem = ParticipantChangelogItemAllOf; + + diff --git a/src/versions/v1/models/permission-set.ts b/src/versions/v1/models/permission-set.ts new file mode 100644 index 00000000..45cae355 --- /dev/null +++ b/src/versions/v1/models/permission-set.ts @@ -0,0 +1,73 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PermissionSet +*/ +export interface PermissionSet { + /** + * The ID of user permission set + * @type {string} + */ + 'id'?: string; + /** + * The name of the permission set + * @type {string} + */ + 'name'?: string; + /** + * The description of the permission set + * @type {string} + */ + 'description'?: string; + /** + * The app that permission set belongs to + * @type {string} + */ + 'app'?: PermissionSetAppConst; + /** + * The type of permission set + * @type {string} + */ + 'type'?: PermissionSetTypeConst; + /** + * The number of users assigned to this permission set + * @type {number} + */ + 'assignment_count'?: number; +} + + export const PermissionSetAppConst = { + sales: 'sales', + projects: 'projects', + campaigns: 'campaigns', + global: 'global', + account_settings: 'account_settings' + } as const; + + export type PermissionSetAppConst = typeof PermissionSetAppConst[keyof typeof PermissionSetAppConst]; + export const PermissionSetTypeConst = { + admin: 'admin', + manager: 'manager', + regular: 'regular', + custom: 'custom' + } as const; + + export type PermissionSetTypeConst = typeof PermissionSetTypeConst[keyof typeof PermissionSetTypeConst]; + + diff --git a/src/versions/v1/models/person-all-of-email-inner.ts b/src/versions/v1/models/person-all-of-email-inner.ts new file mode 100644 index 00000000..ce46dd41 --- /dev/null +++ b/src/versions/v1/models/person-all-of-email-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PersonAllOfEmailInner +*/ +export interface PersonAllOfEmailInner { + /** + * Email + * @type {string} + */ + 'value'?: string; + /** + * Boolean that indicates if email is primary for the person or not + * @type {boolean} + */ + 'primary'?: boolean; + /** + * The label that indicates the type of the email. (Possible values - work, home or other) + * @type {string} + */ + 'label'?: string; +} + diff --git a/src/versions/v1/models/person-all-of-phone-inner.ts b/src/versions/v1/models/person-all-of-phone-inner.ts new file mode 100644 index 00000000..5c49264c --- /dev/null +++ b/src/versions/v1/models/person-all-of-phone-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PersonAllOfPhoneInner +*/ +export interface PersonAllOfPhoneInner { + /** + * The phone number + * @type {string} + */ + 'value'?: string; + /** + * Boolean that indicates if phone number is primary for the person or not + * @type {boolean} + */ + 'primary'?: boolean; + /** + * The label that indicates the type of the phone number. (Possible values - work, home, mobile or other) + * @type {string} + */ + 'label'?: string; +} + diff --git a/src/versions/v1/models/person-all-of-picture-id.ts b/src/versions/v1/models/person-all-of-picture-id.ts new file mode 100644 index 00000000..6c8ae8eb --- /dev/null +++ b/src/versions/v1/models/person-all-of-picture-id.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PictureData } from './picture-data'; +// May contain unused imports in some cases +// @ts-ignore +import { PictureDataPictures } from './picture-data-pictures'; +// May contain unused imports in some cases +// @ts-ignore +import { PictureDataWithID } from './picture-data-with-id'; + +/** + * @type PersonAllOfPictureId + * @export + */ +export type PersonAllOfPictureId = PictureData & PictureDataWithID; + + diff --git a/src/versions/v1/models/person-all-of.ts b/src/versions/v1/models/person-all-of.ts new file mode 100644 index 00000000..49b2288a --- /dev/null +++ b/src/versions/v1/models/person-all-of.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfEmailInner } from './person-all-of-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPhoneInner } from './person-all-of-phone-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPictureId } from './person-all-of-picture-id'; + +/** +* +* @export +* @interface PersonAllOf +*/ +export interface PersonAllOf { + /** + * The ID of the person + * @type {number} + */ + 'id'?: number; + /** + * The ID of the company related to the person + * @type {number} + */ + 'company_id'?: number; + /** + * Whether the person is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. + * @type {Array} + */ + 'phone'?: Array; + /** + * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" } ]`. Please note that only `value` is required. + * @type {Array} + */ + 'email'?: Array; + /** + * The first letter of the name of the person + * @type {string} + */ + 'first_char'?: string; + /** + * The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'update_time'?: string; + /** + * The visibility group ID of who can see the person + * @type {string} + */ + 'visible_to'?: string; + /** + * + * @type {PersonAllOfPictureId} + */ + 'picture_id'?: PersonAllOfPictureId; + /** + * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. + * @type {number} + */ + 'label'?: number; + /** + * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. + * @type {Array} + */ + 'label_ids'?: Array; + /** + * The name of the organization associated with the person + * @type {string} + */ + 'org_name'?: string; + /** + * The name of the owner associated with the person + * @type {string} + */ + 'owner_name'?: string; + /** + * The BCC email associated with the person + * @type {string} + */ + 'cc_email'?: string; +} + diff --git a/src/versions/v1/models/person-count-and-email-info-all-of.ts b/src/versions/v1/models/person-count-and-email-info-all-of.ts new file mode 100644 index 00000000..8758fd6d --- /dev/null +++ b/src/versions/v1/models/person-count-and-email-info-all-of.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PersonCountAndEmailInfoAllOf +*/ +export interface PersonCountAndEmailInfoAllOf { + /** + * The count of email messages related to the person + * @type {number} + */ + 'email_messages_count'?: number; + /** + * The count of activities related to the person + * @type {number} + */ + 'activities_count'?: number; + /** + * The count of done activities related to the person + * @type {number} + */ + 'done_activities_count'?: number; + /** + * The count of undone activities related to the person + * @type {number} + */ + 'undone_activities_count'?: number; + /** + * The count of files related to the person + * @type {number} + */ + 'files_count'?: number; + /** + * The count of notes related to the person + * @type {number} + */ + 'notes_count'?: number; + /** + * The count of followers related to the person + * @type {number} + */ + 'followers_count'?: number; +} + diff --git a/src/versions/v1/models/person-count-and-email-info-all-of1.ts b/src/versions/v1/models/person-count-and-email-info-all-of1.ts new file mode 100644 index 00000000..d10a24ff --- /dev/null +++ b/src/versions/v1/models/person-count-and-email-info-all-of1.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PersonCountAndEmailInfoAllOf1 +*/ +export interface PersonCountAndEmailInfoAllOf1 { + /** + * The date and time of the last incoming email associated with the person + * @type {string} + */ + 'last_incoming_mail_time'?: string; + /** + * The date and time of the last outgoing email associated with the person + * @type {string} + */ + 'last_outgoing_mail_time'?: string; +} + diff --git a/src/versions/v1/models/person-count-and-email-info.ts b/src/versions/v1/models/person-count-and-email-info.ts new file mode 100644 index 00000000..bf401fe5 --- /dev/null +++ b/src/versions/v1/models/person-count-and-email-info.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PersonCountAndEmailInfoAllOf } from './person-count-and-email-info-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonCountAndEmailInfoAllOf1 } from './person-count-and-email-info-all-of1'; + +/** + * @type PersonCountAndEmailInfo + * @export + */ +export type PersonCountAndEmailInfo = PersonCountAndEmailInfoAllOf & PersonCountAndEmailInfoAllOf1; + + diff --git a/src/versions/v1/models/person-count-email-deal-and-activity-info.ts b/src/versions/v1/models/person-count-email-deal-and-activity-info.ts new file mode 100644 index 00000000..583d8624 --- /dev/null +++ b/src/versions/v1/models/person-count-email-deal-and-activity-info.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealCountAndActivityInfo } from './deal-count-and-activity-info'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonCountAndEmailInfo } from './person-count-and-email-info'; + +/** + * @type PersonCountEmailDealAndActivityInfo + * @export + */ +export type PersonCountEmailDealAndActivityInfo = DealCountAndActivityInfo & PersonCountAndEmailInfo; + + diff --git a/src/versions/v1/models/person-data-with-active-flag-all-of.ts b/src/versions/v1/models/person-data-with-active-flag-all-of.ts new file mode 100644 index 00000000..52756b19 --- /dev/null +++ b/src/versions/v1/models/person-data-with-active-flag-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PersonDataWithActiveFlagAllOf +*/ +export interface PersonDataWithActiveFlagAllOf { + /** + * Whether the associated person is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; +} + diff --git a/src/versions/v1/models/person-data-with-active-flag.ts b/src/versions/v1/models/person-data-with-active-flag.ts new file mode 100644 index 00000000..1f1e79e4 --- /dev/null +++ b/src/versions/v1/models/person-data-with-active-flag.ts @@ -0,0 +1,36 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PersonDataWithActiveFlagAllOf } from './person-data-with-active-flag-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonDataWithIDAllOf } from './person-data-with-idall-of'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonDataWithIDAllOfEmailInner } from './person-data-with-idall-of-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PhoneData } from './phone-data'; + +/** + * @type PersonDataWithActiveFlag + * The ID of the person associated with the item + * @export + */ +export type PersonDataWithActiveFlag = PersonDataWithActiveFlagAllOf & PersonDataWithIDAllOf; + + diff --git a/src/versions/v1/models/person-data-with-id.ts b/src/versions/v1/models/person-data-with-id.ts new file mode 100644 index 00000000..33af6caf --- /dev/null +++ b/src/versions/v1/models/person-data-with-id.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PersonDataWithIDAllOf } from './person-data-with-idall-of'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonDataWithIDAllOfEmailInner } from './person-data-with-idall-of-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PhoneData } from './phone-data'; + +/** + * @type PersonDataWithID + * The ID of the person associated with the item + * @export + */ +export type PersonDataWithID = PersonDataWithIDAllOf; + + diff --git a/src/versions/v1/models/person-data-with-idall-of-email-inner.ts b/src/versions/v1/models/person-data-with-idall-of-email-inner.ts new file mode 100644 index 00000000..0078e345 --- /dev/null +++ b/src/versions/v1/models/person-data-with-idall-of-email-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PersonDataWithIDAllOfEmailInner +*/ +export interface PersonDataWithIDAllOfEmailInner { + /** + * The type of the email + * @type {string} + */ + 'label'?: string; + /** + * The email of the associated person + * @type {string} + */ + 'value'?: string; + /** + * Whether this is the primary email or not + * @type {boolean} + */ + 'primary'?: boolean; +} + diff --git a/src/versions/v1/models/person-data-with-idall-of.ts b/src/versions/v1/models/person-data-with-idall-of.ts new file mode 100644 index 00000000..62b5b465 --- /dev/null +++ b/src/versions/v1/models/person-data-with-idall-of.ts @@ -0,0 +1,55 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PersonDataWithIDAllOfEmailInner } from './person-data-with-idall-of-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PhoneData } from './phone-data'; + +/** +* +* @export +* @interface PersonDataWithIDAllOf +*/ +export interface PersonDataWithIDAllOf { + /** + * The ID of the person associated with the item + * @type {number} + */ + 'id'?: number; + /** + * The name of the person associated with the item + * @type {string} + */ + 'name'?: string; + /** + * The emails of the person associated with the item + * @type {Array} + */ + 'email'?: Array; + /** + * The phone numbers of the person associated with the item + * @type {Array} + */ + 'phone'?: Array; + /** + * The ID of the owner of the person that is associated with the item + * @type {number} + */ + 'owner_id'?: number; +} + diff --git a/src/versions/v1/models/person-name-count-and-email-info-with-ids-all-of.ts b/src/versions/v1/models/person-name-count-and-email-info-with-ids-all-of.ts new file mode 100644 index 00000000..d1c161aa --- /dev/null +++ b/src/versions/v1/models/person-name-count-and-email-info-with-ids-all-of.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PersonNameCountAndEmailInfoWithIdsAllOf +*/ +export interface PersonNameCountAndEmailInfoWithIdsAllOf { + /** + * The ID of the owner related to the person + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the organization related to the person + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the person with what the main person was merged + * @type {number} + */ + 'merge_what_id'?: number; +} + diff --git a/src/versions/v1/models/person-name-count-and-email-info-with-ids.ts b/src/versions/v1/models/person-name-count-and-email-info-with-ids.ts new file mode 100644 index 00000000..b54c084e --- /dev/null +++ b/src/versions/v1/models/person-name-count-and-email-info-with-ids.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PersonNameCountAndEmailInfo } from './person-name-count-and-email-info'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonNameCountAndEmailInfoWithIdsAllOf } from './person-name-count-and-email-info-with-ids-all-of'; + +/** + * @type PersonNameCountAndEmailInfoWithIds + * @export + */ +export type PersonNameCountAndEmailInfoWithIds = PersonNameCountAndEmailInfo & PersonNameCountAndEmailInfoWithIdsAllOf; + + diff --git a/src/versions/v1/models/person-name-count-and-email-info.ts b/src/versions/v1/models/person-name-count-and-email-info.ts new file mode 100644 index 00000000..be9c18d2 --- /dev/null +++ b/src/versions/v1/models/person-name-count-and-email-info.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PersonCountAndEmailInfo } from './person-count-and-email-info'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonNameInfoWithOrgAndOwnerIdAllOf1 } from './person-name-info-with-org-and-owner-id-all-of1'; + +/** + * @type PersonNameCountAndEmailInfo + * @export + */ +export type PersonNameCountAndEmailInfo = PersonCountAndEmailInfo & PersonNameInfoWithOrgAndOwnerIdAllOf1; + + diff --git a/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of.ts b/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of.ts new file mode 100644 index 00000000..f9bee6a2 --- /dev/null +++ b/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Owner } from './owner'; +// May contain unused imports in some cases +// @ts-ignore +import { RelationshipOrganizationInfoItemWithActiveFlag } from './relationship-organization-info-item-with-active-flag'; + +/** +* +* @export +* @interface PersonNameInfoWithOrgAndOwnerIdAllOf +*/ +export interface PersonNameInfoWithOrgAndOwnerIdAllOf { + /** + * + * @type {Owner} + */ + 'owner_id'?: Owner; + /** + * + * @type {RelationshipOrganizationInfoItemWithActiveFlag} + */ + 'org_id'?: RelationshipOrganizationInfoItemWithActiveFlag; +} + diff --git a/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of1.ts b/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of1.ts new file mode 100644 index 00000000..a486c4e7 --- /dev/null +++ b/src/versions/v1/models/person-name-info-with-org-and-owner-id-all-of1.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PersonNameInfoWithOrgAndOwnerIdAllOf1 +*/ +export interface PersonNameInfoWithOrgAndOwnerIdAllOf1 { + /** + * The name of the person + * @type {string} + */ + 'name'?: string; + /** + * The first name of the person + * @type {string} + */ + 'first_name'?: string; + /** + * The last name of the person + * @type {string} + */ + 'last_name'?: string; +} + diff --git a/src/versions/v1/models/person-name-info-with-org-and-owner-id.ts b/src/versions/v1/models/person-name-info-with-org-and-owner-id.ts new file mode 100644 index 00000000..92a7fa46 --- /dev/null +++ b/src/versions/v1/models/person-name-info-with-org-and-owner-id.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Owner } from './owner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonNameInfoWithOrgAndOwnerIdAllOf } from './person-name-info-with-org-and-owner-id-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonNameInfoWithOrgAndOwnerIdAllOf1 } from './person-name-info-with-org-and-owner-id-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { RelationshipOrganizationInfoItemWithActiveFlag } from './relationship-organization-info-item-with-active-flag'; + +/** + * @type PersonNameInfoWithOrgAndOwnerId + * @export + */ +export type PersonNameInfoWithOrgAndOwnerId = PersonNameInfoWithOrgAndOwnerIdAllOf & PersonNameInfoWithOrgAndOwnerIdAllOf1; + + diff --git a/src/versions/v1/models/person.ts b/src/versions/v1/models/person.ts new file mode 100644 index 00000000..c0eb8acb --- /dev/null +++ b/src/versions/v1/models/person.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AdditionalPersonInfo } from './additional-person-info'; +// May contain unused imports in some cases +// @ts-ignore +import { Owner } from './owner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOf } from './person-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfEmailInner } from './person-all-of-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPhoneInner } from './person-all-of-phone-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPictureId } from './person-all-of-picture-id'; +// May contain unused imports in some cases +// @ts-ignore +import { RelationshipOrganizationInfoItemWithActiveFlag } from './relationship-organization-info-item-with-active-flag'; + +/** + * @type Person + * @export + */ +export type Person = AdditionalPersonInfo & PersonAllOf; + + diff --git a/src/versions/v1/models/persons-collection-response-object.ts b/src/versions/v1/models/persons-collection-response-object.ts new file mode 100644 index 00000000..d60fcd56 --- /dev/null +++ b/src/versions/v1/models/persons-collection-response-object.ts @@ -0,0 +1,105 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasicPersonRequestEmailInner } from './basic-person-request-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPhoneInner } from './person-all-of-phone-inner'; + +/** +* +* @export +* @interface PersonsCollectionResponseObject +*/ +export interface PersonsCollectionResponseObject { + /** + * The ID of the person + * @type {number} + */ + 'id': number; + /** + * Whether the person is active or not + * @type {boolean} + */ + 'active_flag': boolean; + /** + * The ID of the owner related to the person + * @type {number} + */ + 'owner_id': number; + /** + * The ID of the organization related to the person + * @type {number} + */ + 'org_id': number; + /** + * The name of the person + * @type {string} + */ + 'name': string; + /** + * An email address as a string or an array of email objects related to the person. The structure of the array is as follows: `[{ \"value\": \"mail@example.com\", \"primary\": \"true\", \"label\": \"main\" }]`. Please note that only `value` is required. + * @type {Array} + */ + 'email': Array; + /** + * A phone number supplied as a string or an array of phone objects related to the person. The structure of the array is as follows: `[{ \"value\": \"12345\", \"primary\": \"true\", \"label\": \"mobile\" }]`. Please note that only `value` is required. + * @type {Array} + */ + 'phone': Array; + /** + * The last updated date and time of the person. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'update_time': string; + /** + * The date and time this person was deleted. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'delete_time': string | null; + /** + * The date and time when the person was added/created. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time': string; + /** + * The visibility group ID of who can see the person + * @type {string} + */ + 'visible_to': string; + /** + * The ID of the picture associated with the item + * @type {number} + */ + 'picture_id': number | null; + /** + * The label assigned to the person. When the `label` field is updated, the `label_ids` field value will be overwritten by the `label` field value. + * @type {number} + */ + 'label': number | null; + /** + * The IDs of labels assigned to the person. When the `label_ids` field is updated, the `label` field value will be set to the first value of the `label_ids` field. + * @type {Array} + */ + 'label_ids': Array; + /** + * The BCC email associated with the person + * @type {string} + */ + 'cc_email': string; +} + diff --git a/src/versions/v1/models/phone-data.ts b/src/versions/v1/models/phone-data.ts new file mode 100644 index 00000000..d53b0d3f --- /dev/null +++ b/src/versions/v1/models/phone-data.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PhoneData +*/ +export interface PhoneData { + /** + * The type of the phone number + * @type {string} + */ + 'label'?: string; + /** + * The phone number of the person associated with the item + * @type {string} + */ + 'value'?: string; + /** + * Whether this is the primary phone number or not + * @type {boolean} + */ + 'primary'?: boolean; +} + diff --git a/src/versions/v1/models/picture-data-pictures.ts b/src/versions/v1/models/picture-data-pictures.ts new file mode 100644 index 00000000..947f7a23 --- /dev/null +++ b/src/versions/v1/models/picture-data-pictures.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PictureDataPictures +*/ +export interface PictureDataPictures { + /** + * The URL of the 128*128 picture + * @type {string} + */ + '128'?: string; + /** + * The URL of the 512*512 picture + * @type {string} + */ + '512'?: string; +} + diff --git a/src/versions/v1/models/picture-data-with-id.ts b/src/versions/v1/models/picture-data-with-id.ts new file mode 100644 index 00000000..ed4de8a0 --- /dev/null +++ b/src/versions/v1/models/picture-data-with-id.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PictureDataWithID +*/ +export interface PictureDataWithID { + /** + * The ID of the picture associated with the item + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/picture-data-with-value.ts b/src/versions/v1/models/picture-data-with-value.ts new file mode 100644 index 00000000..a44479eb --- /dev/null +++ b/src/versions/v1/models/picture-data-with-value.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PictureDataWithValue +*/ +export interface PictureDataWithValue { + /** + * The ID of the picture associated with the item + * @type {number} + */ + 'value'?: number; +} + diff --git a/src/versions/v1/models/picture-data.ts b/src/versions/v1/models/picture-data.ts new file mode 100644 index 00000000..80dfe2be --- /dev/null +++ b/src/versions/v1/models/picture-data.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PictureDataPictures } from './picture-data-pictures'; + +/** +* +* @export +* @interface PictureData +*/ +export interface PictureData { + /** + * The type of item the picture is related to + * @type {string} + */ + 'item_type'?: string; + /** + * The ID of related item + * @type {number} + */ + 'item_id'?: number; + /** + * Whether the associated picture is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The add time of the picture + * @type {string} + */ + 'add_time'?: string; + /** + * The update time of the picture + * @type {string} + */ + 'update_time'?: string; + /** + * The ID of the user who added the picture + * @type {number} + */ + 'added_by_user_id'?: number; + /** + * + * @type {PictureDataPictures} + */ + 'pictures'?: PictureDataPictures; +} + diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full-currencyid.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full-currencyid.ts new file mode 100644 index 00000000..1df5f095 --- /dev/null +++ b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full-currencyid.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The currency summary. This parameter is dynamic and changes according to `currency_id` value. +* @export +* @interface PipelineDetailsAllOfDealsSummaryPerCurrencyFullCURRENCYID +*/ +export interface PipelineDetailsAllOfDealsSummaryPerCurrencyFullCURRENCYID { + /** + * Deals count per currency + * @type {number} + */ + 'count'?: number; + /** + * Deals value per currency + * @type {number} + */ + 'value'?: number; +} + diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full.ts new file mode 100644 index 00000000..f77cc559 --- /dev/null +++ b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency-full.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetailsAllOfDealsSummaryPerCurrencyFullCURRENCYID } from './pipeline-details-all-of-deals-summary-per-currency-full-currencyid'; + +/** +* Full currency summaries +* @export +* @interface PipelineDetailsAllOfDealsSummaryPerCurrencyFull +*/ +export interface PipelineDetailsAllOfDealsSummaryPerCurrencyFull { + /** + * + * @type {PipelineDetailsAllOfDealsSummaryPerCurrencyFullCURRENCYID} + */ + 'CURRENCY_ID'?: PipelineDetailsAllOfDealsSummaryPerCurrencyFullCURRENCYID; +} + diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency.ts new file mode 100644 index 00000000..0b8633a8 --- /dev/null +++ b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-currency.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The currency count summary +* @export +* @interface PipelineDetailsAllOfDealsSummaryPerCurrency +*/ +export interface PipelineDetailsAllOfDealsSummaryPerCurrency { + /** + * Deals count per currency. This parameter is dynamic and changes according to `currency_id` value. + * @type {number} + */ + 'CURRENCY_ID'?: number; +} + diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageid.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageid.ts new file mode 100644 index 00000000..5245244f --- /dev/null +++ b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageid.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetailsAllOfDealsSummaryPerStagesSTAGEIDCURRENCYID } from './pipeline-details-all-of-deals-summary-per-stages-stageidcurrencyid'; + +/** +* The currency summaries per stage. This parameter is dynamic and changes according to `stage_id` value. +* @export +* @interface PipelineDetailsAllOfDealsSummaryPerStagesSTAGEID +*/ +export interface PipelineDetailsAllOfDealsSummaryPerStagesSTAGEID { + /** + * + * @type {PipelineDetailsAllOfDealsSummaryPerStagesSTAGEIDCURRENCYID} + */ + 'CURRENCY_ID'?: PipelineDetailsAllOfDealsSummaryPerStagesSTAGEIDCURRENCYID; +} + diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageidcurrencyid.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageidcurrencyid.ts new file mode 100644 index 00000000..3a01405b --- /dev/null +++ b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages-stageidcurrencyid.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The currency summary. This parameter is dynamic and changes according to `currency_id` value. +* @export +* @interface PipelineDetailsAllOfDealsSummaryPerStagesSTAGEIDCURRENCYID +*/ +export interface PipelineDetailsAllOfDealsSummaryPerStagesSTAGEIDCURRENCYID { + /** + * Deals count per currency + * @type {number} + */ + 'count'?: number; + /** + * Deals value per currency + * @type {number} + */ + 'value'?: number; + /** + * Deals value formatted per currency + * @type {string} + */ + 'value_formatted'?: string; + /** + * Deals weighted value per currency + * @type {number} + */ + 'weighted_value'?: number; + /** + * Deals weighted value formatted per currency + * @type {string} + */ + 'weighted_value_formatted'?: string; +} + diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages.ts new file mode 100644 index 00000000..198c1636 --- /dev/null +++ b/src/versions/v1/models/pipeline-details-all-of-deals-summary-per-stages.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetailsAllOfDealsSummaryPerStagesSTAGEID } from './pipeline-details-all-of-deals-summary-per-stages-stageid'; + +/** +* The stage objects containing deals currency information +* @export +* @interface PipelineDetailsAllOfDealsSummaryPerStages +*/ +export interface PipelineDetailsAllOfDealsSummaryPerStages { + /** + * + * @type {PipelineDetailsAllOfDealsSummaryPerStagesSTAGEID} + */ + 'STAGE_ID'?: PipelineDetailsAllOfDealsSummaryPerStagesSTAGEID; +} + diff --git a/src/versions/v1/models/pipeline-details-all-of-deals-summary.ts b/src/versions/v1/models/pipeline-details-all-of-deals-summary.ts new file mode 100644 index 00000000..3f616c6c --- /dev/null +++ b/src/versions/v1/models/pipeline-details-all-of-deals-summary.ts @@ -0,0 +1,53 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetailsAllOfDealsSummaryPerCurrency } from './pipeline-details-all-of-deals-summary-per-currency'; +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetailsAllOfDealsSummaryPerCurrencyFull } from './pipeline-details-all-of-deals-summary-per-currency-full'; +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetailsAllOfDealsSummaryPerStages } from './pipeline-details-all-of-deals-summary-per-stages'; + +/** +* Deals summary +* @export +* @interface PipelineDetailsAllOfDealsSummary +*/ +export interface PipelineDetailsAllOfDealsSummary { + /** + * + * @type {PipelineDetailsAllOfDealsSummaryPerStages} + */ + 'per_stages'?: PipelineDetailsAllOfDealsSummaryPerStages; + /** + * + * @type {PipelineDetailsAllOfDealsSummaryPerCurrency} + */ + 'per_currency'?: PipelineDetailsAllOfDealsSummaryPerCurrency; + /** + * Deals count + * @type {number} + */ + 'total_count'?: number; + /** + * + * @type {PipelineDetailsAllOfDealsSummaryPerCurrencyFull} + */ + 'per_currency_full'?: PipelineDetailsAllOfDealsSummaryPerCurrencyFull; +} + diff --git a/src/versions/v1/models/pipeline-details-all-of.ts b/src/versions/v1/models/pipeline-details-all-of.ts new file mode 100644 index 00000000..ee856bd5 --- /dev/null +++ b/src/versions/v1/models/pipeline-details-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetailsAllOfDealsSummary } from './pipeline-details-all-of-deals-summary'; + +/** +* +* @export +* @interface PipelineDetailsAllOf +*/ +export interface PipelineDetailsAllOf { + /** + * + * @type {PipelineDetailsAllOfDealsSummary} + */ + 'deals_summary'?: PipelineDetailsAllOfDealsSummary; +} + diff --git a/src/versions/v1/models/pipeline-details.ts b/src/versions/v1/models/pipeline-details.ts new file mode 100644 index 00000000..1f0754d3 --- /dev/null +++ b/src/versions/v1/models/pipeline-details.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasePipelineWithSelectedFlag } from './base-pipeline-with-selected-flag'; +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetailsAllOf } from './pipeline-details-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetailsAllOfDealsSummary } from './pipeline-details-all-of-deals-summary'; + +/** + * @type PipelineDetails + * The pipeline object + * @export + */ +export type PipelineDetails = BasePipelineWithSelectedFlag & PipelineDetailsAllOf; + + diff --git a/src/versions/v1/models/pipeline-request.ts b/src/versions/v1/models/pipeline-request.ts new file mode 100644 index 00000000..81e1a1d8 --- /dev/null +++ b/src/versions/v1/models/pipeline-request.ts @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PipelineRequest +*/ +export interface PipelineRequest { + /** + * The name of the pipeline + * @type {string} + */ + 'name': string; + /** + * + * @type {number} + */ + 'deal_probability'?: PipelineRequestDealProbabilityConst; + /** + * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. + * @type {number} + */ + 'order_nr'?: number; + /** + * + * @type {number} + */ + 'active'?: PipelineRequestActiveConst; +} + + export const PipelineRequestDealProbabilityConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type PipelineRequestDealProbabilityConst = typeof PipelineRequestDealProbabilityConst[keyof typeof PipelineRequestDealProbabilityConst]; + export const PipelineRequestActiveConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type PipelineRequestActiveConst = typeof PipelineRequestActiveConst[keyof typeof PipelineRequestActiveConst]; + + diff --git a/src/versions/v1/models/pipeline-request1.ts b/src/versions/v1/models/pipeline-request1.ts new file mode 100644 index 00000000..2d9cc692 --- /dev/null +++ b/src/versions/v1/models/pipeline-request1.ts @@ -0,0 +1,58 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PipelineRequest1 +*/ +export interface PipelineRequest1 { + /** + * The name of the pipeline + * @type {string} + */ + 'name'?: string; + /** + * + * @type {number} + */ + 'deal_probability'?: PipelineRequest1DealProbabilityConst; + /** + * Defines the order of pipelines. First order (`order_nr=0`) is the default pipeline. + * @type {number} + */ + 'order_nr'?: number; + /** + * + * @type {number} + */ + 'active'?: PipelineRequest1ActiveConst; +} + + export const PipelineRequest1DealProbabilityConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type PipelineRequest1DealProbabilityConst = typeof PipelineRequest1DealProbabilityConst[keyof typeof PipelineRequest1DealProbabilityConst]; + export const PipelineRequest1ActiveConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type PipelineRequest1ActiveConst = typeof PipelineRequest1ActiveConst[keyof typeof PipelineRequest1ActiveConst]; + + diff --git a/src/versions/v1/models/product-field-all-of.ts b/src/versions/v1/models/product-field-all-of.ts new file mode 100644 index 00000000..41aef9f8 --- /dev/null +++ b/src/versions/v1/models/product-field-all-of.ts @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProductFieldAllOf +*/ +export interface ProductFieldAllOf { + /** + * The name of the field + * @type {string} + */ + 'name': string; + /** + * The type of the field
ValueDescription
`varchar`Text (up to 255 characters)
`varchar_auto`Autocomplete text (up to 255 characters)
`text`Long text (up to 65k characters)
`double`Numeric value
`monetary`Monetary field (has a numeric value and a currency value)
`date`Date (format YYYY-MM-DD)
`set`Options field with a possibility of having multiple chosen options
`enum`Options field with a single possible chosen option
`user`User field (contains a user ID of another Pipedrive user)
`org`Organization field (contains an organization ID which is stored on the same account)
`people`Person field (contains a product ID which is stored on the same account)
`phone`Phone field (up to 255 numbers and/or characters)
`time`Time field (format HH:MM:SS)
`timerange`Time-range field (has a start time and end time value, both HH:MM:SS)
`daterange`Date-range field (has a start date and end date value, both YYYY-MM-DD)
`address`Address field
+ * @type {string} + */ + 'field_type': ProductFieldAllOfFieldTypeConst; + /** + * When `field_type` is either `set` or `enum`, possible options must be supplied as a JSON-encoded sequential array, for example:
`[{\"label\":\"red\"}, {\"label\":\"blue\"}, {\"label\":\"lilac\"}]` + * @type {Array} + */ + 'options'?: Array; +} + + export const ProductFieldAllOfFieldTypeConst = { + varchar: 'varchar', + varchar_auto: 'varchar_auto', + text: 'text', + double: 'double', + monetary: 'monetary', + date: 'date', + set: 'set', + enum: 'enum', + user: 'user', + org: 'org', + people: 'people', + phone: 'phone', + time: 'time', + timerange: 'timerange', + daterange: 'daterange', + address: 'address' + } as const; + + export type ProductFieldAllOfFieldTypeConst = typeof ProductFieldAllOfFieldTypeConst[keyof typeof ProductFieldAllOfFieldTypeConst]; + + diff --git a/src/versions/v1/models/product-field-all-of1.ts b/src/versions/v1/models/product-field-all-of1.ts new file mode 100644 index 00000000..1f9aa1b9 --- /dev/null +++ b/src/versions/v1/models/product-field-all-of1.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProductFieldAllOf1 +*/ +export interface ProductFieldAllOf1 { + /** + * The ID of the product field + * @type {number} + */ + 'id'?: number; + /** + * The key of the product field + * @type {string} + */ + 'key'?: string; + /** + * The position (index) of the product field in the detail view + * @type {number} + */ + 'order_nr'?: number; + /** + * The product field creation time. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'add_time'?: string; + /** + * The product field last update time. Format: YYYY-MM-DD HH:MM:SS + * @type {string} + */ + 'update_time'?: string; + /** + * The ID of the last user to update the product field + * @type {number} + */ + 'last_updated_by_user_id'?: number; + /** + * The ID of the user who created the product field + * @type {number} + */ + 'created_by_user_id'?: number; + /** + * Whether or not the product field is currently active + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * Whether or not the product field name and metadata is editable + * @type {boolean} + */ + 'edit_flag'?: boolean; + /** + * Whether or not the product field is visible in the Add Product Modal + * @type {boolean} + */ + 'add_visible_flag'?: boolean; + /** + * Whether or not the product field is marked as important + * @type {boolean} + */ + 'important_flag'?: boolean; + /** + * Whether or not the product field data can be edited + * @type {boolean} + */ + 'bulk_edit_allowed'?: boolean; + /** + * Whether or not the product field is searchable + * @type {boolean} + */ + 'searchable_flag'?: boolean; + /** + * Whether or not the product field value can be used when filtering searches + * @type {boolean} + */ + 'filtering_allowed'?: boolean; + /** + * Whether or not the product field is sortable + * @type {boolean} + */ + 'sortable_flag'?: boolean; + /** + * Whether or not the product field is mandatory when creating products + * @type {boolean} + */ + 'mandatory_flag'?: boolean; +} + diff --git a/src/versions/v1/models/product-field.ts b/src/versions/v1/models/product-field.ts new file mode 100644 index 00000000..3595dfaa --- /dev/null +++ b/src/versions/v1/models/product-field.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ProductFieldAllOf } from './product-field-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductFieldAllOf1 } from './product-field-all-of1'; + +/** + * @type ProductField + * @export + */ +export type ProductField = ProductFieldAllOf & ProductFieldAllOf1; + + diff --git a/src/versions/v1/models/product-list-item-product.ts b/src/versions/v1/models/product-list-item-product.ts new file mode 100644 index 00000000..eeea6127 --- /dev/null +++ b/src/versions/v1/models/product-list-item-product.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseProduct } from './base-product'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductPrices } from './product-prices'; + +/** + * @type ProductListItemProduct + * @export + */ +export type ProductListItemProduct = BaseProduct & ProductPrices; + + diff --git a/src/versions/v1/models/product-list-item.ts b/src/versions/v1/models/product-list-item.ts new file mode 100644 index 00000000..073edcc3 --- /dev/null +++ b/src/versions/v1/models/product-list-item.ts @@ -0,0 +1,152 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ProductListItemProduct } from './product-list-item-product'; + +/** +* +* @export +* @interface ProductListItem +*/ +export interface ProductListItem { + /** + * The ID of the deal-product (the ID of the product attached to the deal) + * @type {number} + */ + 'id'?: number; + /** + * The ID of the deal + * @type {number} + */ + 'deal_id'?: number; + /** + * The order number of the product + * @type {number} + */ + 'order_nr'?: number; + /** + * The ID of the product + * @type {number} + */ + 'product_id'?: number; + /** + * The ID of the product variation + * @type {number} + */ + 'product_variation_id'?: number | null; + /** + * The price value of the product + * @type {number} + */ + 'item_price'?: number; + /** + * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage + * @type {number} + */ + 'discount'?: number; + /** + * The type of the discount\'s value + * @type {string} + */ + 'discount_type'?: ProductListItemDiscountTypeConst; + /** + * The sum of all the products attached to the deal + * @type {number} + */ + 'sum'?: number; + /** + * The currency associated with the deal product + * @type {string} + */ + 'currency'?: string; + /** + * Whether the product is enabled or not + * @type {boolean} + */ + 'enabled_flag'?: boolean; + /** + * The date and time when the product was added to the deal + * @type {string} + */ + 'add_time'?: string; + /** + * The date and time when the deal product was last edited + * @type {string} + */ + 'last_edit'?: string; + /** + * The comments of the product + * @type {string} + */ + 'comments'?: string; + /** + * Whether the product is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The product tax + * @type {number} + */ + 'tax'?: number; + /** + * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal + * @type {string} + */ + 'tax_method'?: ProductListItemTaxMethodConst; + /** + * The product name + * @type {string} + */ + 'name'?: string; + /** + * The formatted sum of the product + * @type {string} + */ + 'sum_formatted'?: string; + /** + * The formatted quantity of the product + * @type {string} + */ + 'quantity_formatted'?: string; + /** + * The quantity of the product + * @type {number} + */ + 'quantity'?: number; + /** + * + * @type {ProductListItemProduct} + */ + 'product'?: ProductListItemProduct; +} + + export const ProductListItemDiscountTypeConst = { + percentage: 'percentage', + amount: 'amount' + } as const; + + export type ProductListItemDiscountTypeConst = typeof ProductListItemDiscountTypeConst[keyof typeof ProductListItemDiscountTypeConst]; + export const ProductListItemTaxMethodConst = { + exclusive: 'exclusive', + inclusive: 'inclusive', + none: 'none' + } as const; + + export type ProductListItemTaxMethodConst = typeof ProductListItemTaxMethodConst[keyof typeof ProductListItemTaxMethodConst]; + + diff --git a/src/versions/v1/models/product-prices.ts b/src/versions/v1/models/product-prices.ts new file mode 100644 index 00000000..049cbf3d --- /dev/null +++ b/src/versions/v1/models/product-prices.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProductPrices +*/ +export interface ProductPrices { + /** + * Array of objects, each containing: currency (string), price (number), cost (number, optional), overhead_cost (number, optional) + * @type {Array} + */ + 'prices'?: Array; +} + diff --git a/src/versions/v1/models/product-request.ts b/src/versions/v1/models/product-request.ts new file mode 100644 index 00000000..46ef5d81 --- /dev/null +++ b/src/versions/v1/models/product-request.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProductRequest +*/ +export interface ProductRequest { + /** + * The product code + * @type {string} + */ + 'code'?: string; + /** + * The product description + * @type {string} + */ + 'description'?: string; + /** + * The unit in which this product is sold + * @type {string} + */ + 'unit'?: string; + /** + * The tax percentage + * @type {number} + */ + 'tax'?: number; + /** + * Whether this product will be made active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * Whether this product can be selected in deals or not + * @type {boolean} + */ + 'selectable'?: boolean; + /** + * + * @type {string} + */ + 'visible_to'?: ProductRequestVisibleToConst; + /** + * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used + * @type {number} + */ + 'owner_id'?: number; + /** + * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company\'s currency will be assigned. + * @type {Array} + */ + 'prices'?: Array; +} + + export const ProductRequestVisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type ProductRequestVisibleToConst = typeof ProductRequestVisibleToConst[keyof typeof ProductRequestVisibleToConst]; + + diff --git a/src/versions/v1/models/product-request1.ts b/src/versions/v1/models/product-request1.ts new file mode 100644 index 00000000..d2750723 --- /dev/null +++ b/src/versions/v1/models/product-request1.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProductRequest1 +*/ +export interface ProductRequest1 { + [key: string]: any | any; + + /** + * The product code + * @type {string} + */ + 'code'?: string; + /** + * The product description + * @type {string} + */ + 'description'?: string; + /** + * The unit in which this product is sold + * @type {string} + */ + 'unit'?: string; + /** + * The tax percentage + * @type {number} + */ + 'tax'?: number; + /** + * Whether this product will be made active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * Whether this product can be selected in deals or not + * @type {boolean} + */ + 'selectable'?: boolean; + /** + * + * @type {string} + */ + 'visible_to'?: ProductRequest1VisibleToConst; + /** + * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used + * @type {number} + */ + 'owner_id'?: number; + /** + * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional), `notes` (string, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company\'s currency will be assigned. + * @type {Array} + */ + 'prices'?: Array; +} + + export const ProductRequest1VisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type ProductRequest1VisibleToConst = typeof ProductRequest1VisibleToConst[keyof typeof ProductRequest1VisibleToConst]; + + diff --git a/src/versions/v1/models/project-all-of.ts b/src/versions/v1/models/project-all-of.ts new file mode 100644 index 00000000..7a582fb2 --- /dev/null +++ b/src/versions/v1/models/project-all-of.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProjectAllOf +*/ +export interface ProjectAllOf { + /** + * The title of the project + * @type {string} + */ + 'title'?: string; + /** + * The ID of the board this project is associated with + * @type {number} + */ + 'board_id'?: number; + /** + * The ID of the phase this project is associated with + * @type {number} + */ + 'phase_id'?: number; +} + diff --git a/src/versions/v1/models/project-all-of1.ts b/src/versions/v1/models/project-all-of1.ts new file mode 100644 index 00000000..b050776e --- /dev/null +++ b/src/versions/v1/models/project-all-of1.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProjectAllOf1 +*/ +export interface ProjectAllOf1 { + /** + * The description of the project + * @type {string} + */ + 'description'?: string; + /** + * The status of the project + * @type {string} + */ + 'status'?: string; + /** + * The ID of a project owner + * @type {number} + */ + 'owner_id'?: number; + /** + * The start date of the project. Format: YYYY-MM-DD. + * @type {string} + */ + 'start_date'?: string; + /** + * The end date of the project. Format: YYYY-MM-DD. + * @type {string} + */ + 'end_date'?: string; + /** + * An array of IDs of the deals this project is associated with + * @type {Array} + */ + 'deal_ids'?: Array; + /** + * The ID of the organization this project is associated with + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the person this project is associated with + * @type {number} + */ + 'person_id'?: number; + /** + * An array of IDs of the labels this project has + * @type {Array} + */ + 'labels'?: Array; +} + diff --git a/src/versions/v1/models/project-all-of2.ts b/src/versions/v1/models/project-all-of2.ts new file mode 100644 index 00000000..0c560cbc --- /dev/null +++ b/src/versions/v1/models/project-all-of2.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProjectAllOf2 +*/ +export interface ProjectAllOf2 { + /** + * The creation date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time'?: string; + /** + * The update date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time'?: string; + /** + * The status changed date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'status_change_time'?: string; + /** + * The archived date and time of the project in UTC. Format: YYYY-MM-DD HH:MM:SS. If not archived then \'null\'. + * @type {string} + */ + 'archive_time'?: string; +} + diff --git a/src/versions/v1/models/project-id.ts b/src/versions/v1/models/project-id.ts new file mode 100644 index 00000000..cf4753d0 --- /dev/null +++ b/src/versions/v1/models/project-id.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProjectId +*/ +export interface ProjectId { + /** + * The ID of the project, generated when the task was created + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/project-put-plan-item-body-object.ts b/src/versions/v1/models/project-put-plan-item-body-object.ts new file mode 100644 index 00000000..907724f8 --- /dev/null +++ b/src/versions/v1/models/project-put-plan-item-body-object.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProjectPutPlanItemBodyObject +*/ +export interface ProjectPutPlanItemBodyObject { + /** + * The ID of a phase on a project board + * @type {number} + */ + 'phase_id'?: number; + /** + * The ID of a group on a project board + * @type {number} + */ + 'group_id'?: number; +} + diff --git a/src/versions/v1/models/project-response-object.ts b/src/versions/v1/models/project-response-object.ts new file mode 100644 index 00000000..425c1940 --- /dev/null +++ b/src/versions/v1/models/project-response-object.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Project } from './project'; +// May contain unused imports in some cases +// @ts-ignore +import { ProjectId } from './project-id'; + +/** + * @type ProjectResponseObject + * @export + */ +export type ProjectResponseObject = Project & ProjectId; + + diff --git a/src/versions/v1/models/project-template.ts b/src/versions/v1/models/project-template.ts new file mode 100644 index 00000000..aa6d20fa --- /dev/null +++ b/src/versions/v1/models/project-template.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProjectTemplate +*/ +export interface ProjectTemplate { + /** + * The ID of a template + * @type {number} + */ + 'id'?: number; + /** + * The title of a template + * @type {string} + */ + 'title'?: string; + /** + * The description of a template + * @type {string} + */ + 'description'?: string; + /** + * The ID of the project board this template is associated with + * @type {number} + */ + 'projects_board_id'?: number; + /** + * The ID of a template owner + * @type {number} + */ + 'owner_id'?: number; + /** + * The creation date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time'?: string; + /** + * The update date and time of the template in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v1/models/project.ts b/src/versions/v1/models/project.ts new file mode 100644 index 00000000..dae3c5f2 --- /dev/null +++ b/src/versions/v1/models/project.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ProjectAllOf } from './project-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { ProjectAllOf1 } from './project-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { ProjectAllOf2 } from './project-all-of2'; + +/** + * @type Project + * @export + */ +export type Project = ProjectAllOf & ProjectAllOf1 & ProjectAllOf2; + + diff --git a/src/versions/v1/models/put-role-pipelines-body.ts b/src/versions/v1/models/put-role-pipelines-body.ts new file mode 100644 index 00000000..ce7df89e --- /dev/null +++ b/src/versions/v1/models/put-role-pipelines-body.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PutRolePipelinesBody +*/ +export interface PutRolePipelinesBody { + /** + * The pipeline IDs to make the pipelines visible (add) and/or hidden (remove) for the specified role. It requires the following JSON structure: `{ \"add\": \"[1]\", \"remove\": \"[3, 4]\" }`. + * @type {object} + */ + 'visible_pipeline_ids': object; +} + diff --git a/src/versions/v1/models/receive-message-bad-request-error-response-additional-data.ts b/src/versions/v1/models/receive-message-bad-request-error-response-additional-data.ts new file mode 100644 index 00000000..c8313fa9 --- /dev/null +++ b/src/versions/v1/models/receive-message-bad-request-error-response-additional-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ReceiveMessageBadRequestErrorResponseAdditionalData +*/ +export interface ReceiveMessageBadRequestErrorResponseAdditionalData { + /** + * An error code sent by the API + * @type {string} + */ + 'code'?: string; +} + diff --git a/src/versions/v1/models/receive-message-bad-request-error-response.ts b/src/versions/v1/models/receive-message-bad-request-error-response.ts new file mode 100644 index 00000000..0c2e4883 --- /dev/null +++ b/src/versions/v1/models/receive-message-bad-request-error-response.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ReceiveMessageBadRequestErrorResponseAdditionalData } from './receive-message-bad-request-error-response-additional-data'; + +/** +* +* @export +* @interface ReceiveMessageBadRequestErrorResponse +*/ +export interface ReceiveMessageBadRequestErrorResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * The error description + * @type {string} + */ + 'error'?: string; + /** + * + * @type {string} + */ + 'error_info'?: string; + /** + * + * @type {ReceiveMessageBadRequestErrorResponseAdditionalData} + */ + 'additional_data'?: ReceiveMessageBadRequestErrorResponseAdditionalData; +} + diff --git a/src/versions/v1/models/receive-message-request-attachments-inner.ts b/src/versions/v1/models/receive-message-request-attachments-inner.ts new file mode 100644 index 00000000..de9b9018 --- /dev/null +++ b/src/versions/v1/models/receive-message-request-attachments-inner.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ReceiveMessageRequestAttachmentsInner +*/ +export interface ReceiveMessageRequestAttachmentsInner { + /** + * The ID of the attachment + * @type {string} + */ + 'id': string; + /** + * The mime-type of the attachment + * @type {string} + */ + 'type': string; + /** + * A URL to the file + * @type {string} + */ + 'url': string; + /** + * The name of the attachment + * @type {string} + */ + 'name'?: string; + /** + * The size of the attachment + * @type {number} + */ + 'size'?: number; + /** + * A URL to a preview picture of the file + * @type {string} + */ + 'preview_url'?: string; + /** + * If true, it will use the getMessageById endpoint for fetching updated attachment\'s urls. Find out more [here](https://pipedrive.readme.io/docs/implementing-messaging-app-extension) + * @type {boolean} + */ + 'link_expires'?: boolean; +} + diff --git a/src/versions/v1/models/receive-message-request.ts b/src/versions/v1/models/receive-message-request.ts new file mode 100644 index 00000000..6333f1e0 --- /dev/null +++ b/src/versions/v1/models/receive-message-request.ts @@ -0,0 +1,87 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ReceiveMessageRequestAttachmentsInner } from './receive-message-request-attachments-inner'; + +/** +* +* @export +* @interface ReceiveMessageRequest +*/ +export interface ReceiveMessageRequest { + /** + * The ID of the message + * @type {string} + */ + 'id': string; + /** + * The channel ID as in the provider + * @type {string} + */ + 'channel_id': string; + /** + * The ID of the provider\'s user that sent the message + * @type {string} + */ + 'sender_id': string; + /** + * The ID of the conversation + * @type {string} + */ + 'conversation_id': string; + /** + * The body of the message + * @type {string} + */ + 'message': string; + /** + * The status of the message + * @type {string} + */ + 'status': ReceiveMessageRequestStatusConst; + /** + * The date and time when the message was created in the provider, in UTC. Format: YYYY-MM-DD HH:MM + * @type {string} + */ + 'created_at': string; + /** + * The date and time when the message can no longer receive a reply, in UTC. Format: YYYY-MM-DD HH:MM + * @type {string} + */ + 'reply_by'?: string; + /** + * A URL that can open the conversation in the provider\'s side + * @type {string} + */ + 'conversation_link'?: string; + /** + * The list of attachments available in the message + * @type {Array} + */ + 'attachments'?: Array; +} + + export const ReceiveMessageRequestStatusConst = { + sent: 'sent', + delivered: 'delivered', + read: 'read', + failed: 'failed' + } as const; + + export type ReceiveMessageRequestStatusConst = typeof ReceiveMessageRequestStatusConst[keyof typeof ReceiveMessageRequestStatusConst]; + + diff --git a/src/versions/v1/models/recents-data-inner-any-of.ts b/src/versions/v1/models/recents-data-inner-any-of.ts new file mode 100644 index 00000000..d147ef7d --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Activity } from './activity'; + +/** +* +* @export +* @interface RecentsDataInnerAnyOf +*/ +export interface RecentsDataInnerAnyOf { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerAnyOfItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {Activity} + */ + 'data'?: Activity; +} + + export const RecentsDataInnerAnyOfItemConst = { + activity: 'activity' + } as const; + + export type RecentsDataInnerAnyOfItemConst = typeof RecentsDataInnerAnyOfItemConst[keyof typeof RecentsDataInnerAnyOfItemConst]; + + diff --git a/src/versions/v1/models/recents-data-inner-any-of1.ts b/src/versions/v1/models/recents-data-inner-any-of1.ts new file mode 100644 index 00000000..1b0dc373 --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of1.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityType } from './activity-type'; + +/** +* +* @export +* @interface RecentsDataInnerAnyOf1 +*/ +export interface RecentsDataInnerAnyOf1 { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerAnyOf1ItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {ActivityType} + */ + 'data'?: ActivityType; +} + + export const RecentsDataInnerAnyOf1ItemConst = { + activityType: 'activityType' + } as const; + + export type RecentsDataInnerAnyOf1ItemConst = typeof RecentsDataInnerAnyOf1ItemConst[keyof typeof RecentsDataInnerAnyOf1ItemConst]; + + diff --git a/src/versions/v1/models/recents-data-inner-any-of10.ts b/src/versions/v1/models/recents-data-inner-any-of10.ts new file mode 100644 index 00000000..e3ff3ad7 --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of10.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseUser } from './base-user'; + +/** +* +* @export +* @interface RecentsDataInnerAnyOf10 +*/ +export interface RecentsDataInnerAnyOf10 { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerAnyOf10ItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {BaseUser} + */ + 'data'?: BaseUser; +} + + export const RecentsDataInnerAnyOf10ItemConst = { + user: 'user' + } as const; + + export type RecentsDataInnerAnyOf10ItemConst = typeof RecentsDataInnerAnyOf10ItemConst[keyof typeof RecentsDataInnerAnyOf10ItemConst]; + + diff --git a/src/versions/v1/models/recents-data-inner-any-of2.ts b/src/versions/v1/models/recents-data-inner-any-of2.ts new file mode 100644 index 00000000..d122fa40 --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of2.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealStrict } from './deal-strict'; + +/** +* +* @export +* @interface RecentsDataInnerAnyOf2 +*/ +export interface RecentsDataInnerAnyOf2 { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerAnyOf2ItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {DealStrict} + */ + 'data'?: DealStrict; +} + + export const RecentsDataInnerAnyOf2ItemConst = { + deal: 'deal' + } as const; + + export type RecentsDataInnerAnyOf2ItemConst = typeof RecentsDataInnerAnyOf2ItemConst[keyof typeof RecentsDataInnerAnyOf2ItemConst]; + + diff --git a/src/versions/v1/models/recents-data-inner-any-of3.ts b/src/versions/v1/models/recents-data-inner-any-of3.ts new file mode 100644 index 00000000..a23129ac --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of3.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAssociatedFilesResponseAllOfDataInner } from './get-associated-files-response-all-of-data-inner'; + +/** +* +* @export +* @interface RecentsDataInnerAnyOf3 +*/ +export interface RecentsDataInnerAnyOf3 { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerAnyOf3ItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {GetAssociatedFilesResponseAllOfDataInner} + */ + 'data'?: GetAssociatedFilesResponseAllOfDataInner; +} + + export const RecentsDataInnerAnyOf3ItemConst = { + file: 'file' + } as const; + + export type RecentsDataInnerAnyOf3ItemConst = typeof RecentsDataInnerAnyOf3ItemConst[keyof typeof RecentsDataInnerAnyOf3ItemConst]; + + diff --git a/src/versions/v1/models/recents-data-inner-any-of4.ts b/src/versions/v1/models/recents-data-inner-any-of4.ts new file mode 100644 index 00000000..3a00dab4 --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of4.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFiltersResponseAllOfDataInner } from './get-filters-response-all-of-data-inner'; + +/** +* +* @export +* @interface RecentsDataInnerAnyOf4 +*/ +export interface RecentsDataInnerAnyOf4 { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerAnyOf4ItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {GetFiltersResponseAllOfDataInner} + */ + 'data'?: GetFiltersResponseAllOfDataInner; +} + + export const RecentsDataInnerAnyOf4ItemConst = { + filter: 'filter' + } as const; + + export type RecentsDataInnerAnyOf4ItemConst = typeof RecentsDataInnerAnyOf4ItemConst[keyof typeof RecentsDataInnerAnyOf4ItemConst]; + + diff --git a/src/versions/v1/models/recents-data-inner-any-of5.ts b/src/versions/v1/models/recents-data-inner-any-of5.ts new file mode 100644 index 00000000..d22322b4 --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of5.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Note } from './note'; + +/** +* +* @export +* @interface RecentsDataInnerAnyOf5 +*/ +export interface RecentsDataInnerAnyOf5 { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerAnyOf5ItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {Note} + */ + 'data'?: Note; +} + + export const RecentsDataInnerAnyOf5ItemConst = { + note: 'note' + } as const; + + export type RecentsDataInnerAnyOf5ItemConst = typeof RecentsDataInnerAnyOf5ItemConst[keyof typeof RecentsDataInnerAnyOf5ItemConst]; + + diff --git a/src/versions/v1/models/recents-data-inner-any-of6.ts b/src/versions/v1/models/recents-data-inner-any-of6.ts new file mode 100644 index 00000000..0f8047f4 --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of6.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MergePersonItem } from './merge-person-item'; + +/** +* +* @export +* @interface RecentsDataInnerAnyOf6 +*/ +export interface RecentsDataInnerAnyOf6 { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerAnyOf6ItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {MergePersonItem} + */ + 'data'?: MergePersonItem; +} + + export const RecentsDataInnerAnyOf6ItemConst = { + person: 'person' + } as const; + + export type RecentsDataInnerAnyOf6ItemConst = typeof RecentsDataInnerAnyOf6ItemConst[keyof typeof RecentsDataInnerAnyOf6ItemConst]; + + diff --git a/src/versions/v1/models/recents-data-inner-any-of7.ts b/src/versions/v1/models/recents-data-inner-any-of7.ts new file mode 100644 index 00000000..d2b69117 --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of7.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItem } from './base-organization-item'; + +/** +* +* @export +* @interface RecentsDataInnerAnyOf7 +*/ +export interface RecentsDataInnerAnyOf7 { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerAnyOf7ItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {BaseOrganizationItem} + */ + 'data'?: BaseOrganizationItem; +} + + export const RecentsDataInnerAnyOf7ItemConst = { + organization: 'organization' + } as const; + + export type RecentsDataInnerAnyOf7ItemConst = typeof RecentsDataInnerAnyOf7ItemConst[keyof typeof RecentsDataInnerAnyOf7ItemConst]; + + diff --git a/src/versions/v1/models/recents-data-inner-any-of8.ts b/src/versions/v1/models/recents-data-inner-any-of8.ts new file mode 100644 index 00000000..cdde6eaf --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of8.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasePipeline } from './base-pipeline'; + +/** +* +* @export +* @interface RecentsDataInnerAnyOf8 +*/ +export interface RecentsDataInnerAnyOf8 { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerAnyOf8ItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {BasePipeline} + */ + 'data'?: BasePipeline; +} + + export const RecentsDataInnerAnyOf8ItemConst = { + pipeline: 'pipeline' + } as const; + + export type RecentsDataInnerAnyOf8ItemConst = typeof RecentsDataInnerAnyOf8ItemConst[keyof typeof RecentsDataInnerAnyOf8ItemConst]; + + diff --git a/src/versions/v1/models/recents-data-inner-any-of9-data.ts b/src/versions/v1/models/recents-data-inner-any-of9-data.ts new file mode 100644 index 00000000..80a96f66 --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of9-data.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface RecentsDataInnerAnyOf9Data +*/ +export interface RecentsDataInnerAnyOf9Data { + /** + * The ID of the product + * @type {number} + */ + 'id'?: number; + /** + * The name of the product + * @type {string} + */ + 'name'?: string; + /** + * The product code + * @type {string} + */ + 'code'?: string; + /** + * The description of the product + * @type {string} + */ + 'description'?: string; + /** + * The unit in which this product is sold + * @type {string} + */ + 'unit'?: string; + /** + * The tax percentage + * @type {number} + */ + 'tax'?: number; + /** + * The category of the product + * @type {string} + */ + 'category'?: string; + /** + * Whether this product will be made active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * Whether this product can be selected in deals or not + * @type {boolean} + */ + 'selectable'?: boolean; + /** + * The first letter of the product name + * @type {string} + */ + 'first_char'?: string; + /** + * The visibility of the product. If omitted, the visibility will be set to the default visibility setting of this item type for the authorized user. + * @type {number} + */ + 'visible_to'?: number; + /** + * The ID of the user who will be marked as the owner of this product. When omitted, authorized user ID will be used. + * @type {number} + */ + 'owner_id'?: number; + /** + * The count of files + * @type {number} + */ + 'files_count'?: number; + /** + * The date and time when the product was added to the deal + * @type {string} + */ + 'add_time'?: string; + /** + * The date and time when the product was updated to the deal + * @type {string} + */ + 'update_time'?: string; + /** + * Array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `overhead_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and a default currency based on the company\'s currency will be assigned. + * @type {Array} + */ + 'prices'?: Array; +} + diff --git a/src/versions/v1/models/recents-data-inner-any-of9.ts b/src/versions/v1/models/recents-data-inner-any-of9.ts new file mode 100644 index 00000000..10897e54 --- /dev/null +++ b/src/versions/v1/models/recents-data-inner-any-of9.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf9Data } from './recents-data-inner-any-of9-data'; + +/** +* +* @export +* @interface RecentsDataInnerAnyOf9 +*/ +export interface RecentsDataInnerAnyOf9 { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerAnyOf9ItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {RecentsDataInnerAnyOf9Data} + */ + 'data'?: RecentsDataInnerAnyOf9Data; +} + + export const RecentsDataInnerAnyOf9ItemConst = { + product: 'product' + } as const; + + export type RecentsDataInnerAnyOf9ItemConst = typeof RecentsDataInnerAnyOf9ItemConst[keyof typeof RecentsDataInnerAnyOf9ItemConst]; + + diff --git a/src/versions/v1/models/recents-data-inner.ts b/src/versions/v1/models/recents-data-inner.ts new file mode 100644 index 00000000..dfce41ec --- /dev/null +++ b/src/versions/v1/models/recents-data-inner.ts @@ -0,0 +1,85 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseUser } from './base-user'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf } from './recents-data-inner-any-of'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf1 } from './recents-data-inner-any-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf10 } from './recents-data-inner-any-of10'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf2 } from './recents-data-inner-any-of2'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf3 } from './recents-data-inner-any-of3'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf4 } from './recents-data-inner-any-of4'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf5 } from './recents-data-inner-any-of5'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf6 } from './recents-data-inner-any-of6'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf7 } from './recents-data-inner-any-of7'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf8 } from './recents-data-inner-any-of8'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsDataInnerAnyOf9 } from './recents-data-inner-any-of9'; +// May contain unused imports in some cases +// @ts-ignore +import { RecentsStage } from './recents-stage'; + +/** +* +* @export +* @interface RecentsDataInner +*/ +export interface RecentsDataInner { + /** + * + * @type {string} + */ + 'item'?: RecentsDataInnerItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {BaseUser} + */ + 'data'?: BaseUser; +} + + export const RecentsDataInnerItemConst = { + user: 'user' + } as const; + + export type RecentsDataInnerItemConst = typeof RecentsDataInnerItemConst[keyof typeof RecentsDataInnerItemConst]; + + diff --git a/src/versions/v1/models/recents-stage.ts b/src/versions/v1/models/recents-stage.ts new file mode 100644 index 00000000..1cab2be5 --- /dev/null +++ b/src/versions/v1/models/recents-stage.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseStage } from './base-stage'; + +/** +* +* @export +* @interface RecentsStage +*/ +export interface RecentsStage { + /** + * + * @type {string} + */ + 'item'?: RecentsStageItemConst; + /** + * + * @type {number} + */ + 'id'?: number; + /** + * + * @type {BaseStage} + */ + 'data'?: BaseStage; +} + + export const RecentsStageItemConst = { + stage: 'stage' + } as const; + + export type RecentsStageItemConst = typeof RecentsStageItemConst[keyof typeof RecentsStageItemConst]; + + diff --git a/src/versions/v1/models/related-deal-data-dealid.ts b/src/versions/v1/models/related-deal-data-dealid.ts new file mode 100644 index 00000000..a85ca0bd --- /dev/null +++ b/src/versions/v1/models/related-deal-data-dealid.ts @@ -0,0 +1,59 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The ID of the deal which is associated with the item +* @export +* @interface RelatedDealDataDEALID +*/ +export interface RelatedDealDataDEALID { + /** + * The ID of the deal associated with the item + * @type {number} + */ + 'id'?: number; + /** + * The title of the deal associated with the item + * @type {string} + */ + 'title'?: string; + /** + * The status of the deal associated with the item + * @type {string} + */ + 'status'?: string; + /** + * The value of the deal that is associated with the item + * @type {number} + */ + 'value'?: number; + /** + * The currency of the deal value + * @type {string} + */ + 'currency'?: string; + /** + * The ID of the stage the deal is currently at + * @type {number} + */ + 'stage_id'?: number; + /** + * The ID of the pipeline the deal is in + * @type {number} + */ + 'pipeline_id'?: number; +} + diff --git a/src/versions/v1/models/related-deal-data.ts b/src/versions/v1/models/related-deal-data.ts new file mode 100644 index 00000000..7095dfdd --- /dev/null +++ b/src/versions/v1/models/related-deal-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { RelatedDealDataDEALID } from './related-deal-data-dealid'; + +/** +* +* @export +* @interface RelatedDealData +*/ +export interface RelatedDealData { + /** + * + * @type {RelatedDealDataDEALID} + */ + 'DEAL_ID'?: RelatedDealDataDEALID; +} + diff --git a/src/versions/v1/models/related-organization-data-with-active-flag.ts b/src/versions/v1/models/related-organization-data-with-active-flag.ts new file mode 100644 index 00000000..db71dc97 --- /dev/null +++ b/src/versions/v1/models/related-organization-data-with-active-flag.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationDataWithIdAndActiveFlag } from './organization-data-with-id-and-active-flag'; + +/** +* +* @export +* @interface RelatedOrganizationDataWithActiveFlag +*/ +export interface RelatedOrganizationDataWithActiveFlag { + /** + * + * @type {OrganizationDataWithIdAndActiveFlag} + */ + 'ORGANIZATION_ID'?: OrganizationDataWithIdAndActiveFlag; +} + diff --git a/src/versions/v1/models/related-organization-data.ts b/src/versions/v1/models/related-organization-data.ts new file mode 100644 index 00000000..6f9997f6 --- /dev/null +++ b/src/versions/v1/models/related-organization-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationDataWithId } from './organization-data-with-id'; + +/** +* +* @export +* @interface RelatedOrganizationData +*/ +export interface RelatedOrganizationData { + /** + * + * @type {OrganizationDataWithId} + */ + 'ORGANIZATION_ID'?: OrganizationDataWithId; +} + diff --git a/src/versions/v1/models/related-picture-data-pictureid.ts b/src/versions/v1/models/related-picture-data-pictureid.ts new file mode 100644 index 00000000..608ad15f --- /dev/null +++ b/src/versions/v1/models/related-picture-data-pictureid.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPictureId } from './person-all-of-picture-id'; +// May contain unused imports in some cases +// @ts-ignore +import { PictureDataPictures } from './picture-data-pictures'; + +/** + * @type RelatedPictureDataPICTUREID + * The ID of the picture + * @export + */ +export type RelatedPictureDataPICTUREID = PersonAllOfPictureId; + + diff --git a/src/versions/v1/models/related-picture-data.ts b/src/versions/v1/models/related-picture-data.ts new file mode 100644 index 00000000..26067d13 --- /dev/null +++ b/src/versions/v1/models/related-picture-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { RelatedPictureDataPICTUREID } from './related-picture-data-pictureid'; + +/** +* The picture that is associated with the item +* @export +* @interface RelatedPictureData +*/ +export interface RelatedPictureData { + /** + * + * @type {RelatedPictureDataPICTUREID} + */ + 'PICTURE_ID'?: RelatedPictureDataPICTUREID; +} + diff --git a/src/versions/v1/models/relationship-organization-info-item-all-of.ts b/src/versions/v1/models/relationship-organization-info-item-all-of.ts new file mode 100644 index 00000000..97248b27 --- /dev/null +++ b/src/versions/v1/models/relationship-organization-info-item-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface RelationshipOrganizationInfoItemAllOf +*/ +export interface RelationshipOrganizationInfoItemAllOf { + /** + * The ID of the organization + * @type {number} + */ + 'value'?: number; +} + diff --git a/src/versions/v1/models/relationship-organization-info-item-with-active-flag-all-of.ts b/src/versions/v1/models/relationship-organization-info-item-with-active-flag-all-of.ts new file mode 100644 index 00000000..7579b0ea --- /dev/null +++ b/src/versions/v1/models/relationship-organization-info-item-with-active-flag-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface RelationshipOrganizationInfoItemWithActiveFlagAllOf +*/ +export interface RelationshipOrganizationInfoItemWithActiveFlagAllOf { + /** + * Whether the associated organization is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; +} + diff --git a/src/versions/v1/models/relationship-organization-info-item-with-active-flag.ts b/src/versions/v1/models/relationship-organization-info-item-with-active-flag.ts new file mode 100644 index 00000000..d701db4b --- /dev/null +++ b/src/versions/v1/models/relationship-organization-info-item-with-active-flag.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { RelationshipOrganizationInfoItem } from './relationship-organization-info-item'; +// May contain unused imports in some cases +// @ts-ignore +import { RelationshipOrganizationInfoItemWithActiveFlagAllOf } from './relationship-organization-info-item-with-active-flag-all-of'; + +/** + * @type RelationshipOrganizationInfoItemWithActiveFlag + * @export + */ +export type RelationshipOrganizationInfoItemWithActiveFlag = RelationshipOrganizationInfoItem & RelationshipOrganizationInfoItemWithActiveFlagAllOf; + + diff --git a/src/versions/v1/models/relationship-organization-info-item.ts b/src/versions/v1/models/relationship-organization-info-item.ts new file mode 100644 index 00000000..787b1c0b --- /dev/null +++ b/src/versions/v1/models/relationship-organization-info-item.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationDataWithIdAllOf1 } from './organization-data-with-id-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { RelationshipOrganizationInfoItemAllOf } from './relationship-organization-info-item-all-of'; + +/** + * @type RelationshipOrganizationInfoItem + * @export + */ +export type RelationshipOrganizationInfoItem = OrganizationDataWithIdAllOf1 & RelationshipOrganizationInfoItemAllOf; + + diff --git a/src/versions/v1/models/requied-post-project-parameters.ts b/src/versions/v1/models/requied-post-project-parameters.ts new file mode 100644 index 00000000..1f9253bb --- /dev/null +++ b/src/versions/v1/models/requied-post-project-parameters.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface RequiedPostProjectParameters +*/ +export interface RequiedPostProjectParameters { + /** + * The title of the task + * @type {string} + */ + 'title': string; + /** + * The ID of a project + * @type {number} + */ + 'project_id': number; +} + diff --git a/src/versions/v1/models/required-post-project-parameters.ts b/src/versions/v1/models/required-post-project-parameters.ts new file mode 100644 index 00000000..2ffcbcda --- /dev/null +++ b/src/versions/v1/models/required-post-project-parameters.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface RequiredPostProjectParameters +*/ +export interface RequiredPostProjectParameters { + /** + * The title of the project + * @type {string} + */ + 'title': string; + /** + * The ID of a project board + * @type {number} + */ + 'board_id': number; + /** + * The ID of a phase on a project board + * @type {number} + */ + 'phase_id': number; +} + diff --git a/src/versions/v1/models/requred-title-parameter.ts b/src/versions/v1/models/requred-title-parameter.ts new file mode 100644 index 00000000..a13cbae3 --- /dev/null +++ b/src/versions/v1/models/requred-title-parameter.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface RequredTitleParameter +*/ +export interface RequredTitleParameter { + /** + * The title of the deal + * @type {string} + */ + 'title': string; +} + diff --git a/src/versions/v1/models/response-call-log-object-all-of.ts b/src/versions/v1/models/response-call-log-object-all-of.ts new file mode 100644 index 00000000..3ee7a474 --- /dev/null +++ b/src/versions/v1/models/response-call-log-object-all-of.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ResponseCallLogObjectAllOf +*/ +export interface ResponseCallLogObjectAllOf { + /** + * The call log ID, generated when the call log was created + * @type {string} + */ + 'id': string; + /** + * If the call log has an audio recording attached, the value should be true + * @type {boolean} + */ + 'has_recording': boolean; + /** + * The company ID of the owner of the call log + * @type {number} + */ + 'company_id': number; +} + diff --git a/src/versions/v1/models/response-call-log-object.ts b/src/versions/v1/models/response-call-log-object.ts new file mode 100644 index 00000000..ba825cde --- /dev/null +++ b/src/versions/v1/models/response-call-log-object.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddCallLogRequest } from './add-call-log-request'; +// May contain unused imports in some cases +// @ts-ignore +import { ResponseCallLogObjectAllOf } from './response-call-log-object-all-of'; + +/** + * @type ResponseCallLogObject + * @export + */ +export type ResponseCallLogObject = AddCallLogRequest & ResponseCallLogObjectAllOf; + + diff --git a/src/versions/v1/models/role-assignment-data.ts b/src/versions/v1/models/role-assignment-data.ts new file mode 100644 index 00000000..3887d08d --- /dev/null +++ b/src/versions/v1/models/role-assignment-data.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface RoleAssignmentData +*/ +export interface RoleAssignmentData { + /** + * The user ID + * @type {number} + */ + 'user_id'?: number; + /** + * The role ID + * @type {number} + */ + 'role_id'?: number; + /** + * Whether the role is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The assignment type + * @type {string} + */ + 'type'?: string; +} + diff --git a/src/versions/v1/models/role-assignment.ts b/src/versions/v1/models/role-assignment.ts new file mode 100644 index 00000000..5401a583 --- /dev/null +++ b/src/versions/v1/models/role-assignment.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseRoleRequest } from './base-role-request'; +// May contain unused imports in some cases +// @ts-ignore +import { RoleAssignmentData } from './role-assignment-data'; + +/** + * @type RoleAssignment + * The assignment data of the role + * @export + */ +export type RoleAssignment = BaseRoleRequest & RoleAssignmentData; + + diff --git a/src/versions/v1/models/role-settings.ts b/src/versions/v1/models/role-settings.ts new file mode 100644 index 00000000..1a0cc906 --- /dev/null +++ b/src/versions/v1/models/role-settings.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The settings for the role +* @export +* @interface RoleSettings +*/ +export interface RoleSettings { + /** + * The default visibility level of the deals for the role + * @type {number} + */ + 'deal_default_visibility'?: number; + /** + * The default visibility level of the leads for the role + * @type {number} + */ + 'lead_default_visibility'?: number; + /** + * The default visibility level of the organizations for the role + * @type {number} + */ + 'org_default_visibility'?: number; + /** + * The default visibility level of the people for the role + * @type {number} + */ + 'person_default_visibility'?: number; + /** + * The default visibility level of the products for the role + * @type {number} + */ + 'product_default_visibility'?: number; + /** + * The access level of the deals for the role (only for default role) + * @type {number} + */ + 'deal_access_level'?: number; + /** + * The access level of the organizations for the role (only for default role) + * @type {number} + */ + 'org_access_level'?: number; + /** + * The access level of the people for the role (only for default role) + * @type {number} + */ + 'person_access_level'?: number; + /** + * The access level of the products for the role (only for default role) + * @type {number} + */ + 'product_access_level'?: number; +} + diff --git a/src/versions/v1/models/search-item.ts b/src/versions/v1/models/search-item.ts new file mode 100644 index 00000000..fc196801 --- /dev/null +++ b/src/versions/v1/models/search-item.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface SearchItem +*/ +export interface SearchItem { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * Item + * @type {object} + */ + 'item'?: object; +} + diff --git a/src/versions/v1/models/stage-details-data.ts b/src/versions/v1/models/stage-details-data.ts new file mode 100644 index 00000000..62d22829 --- /dev/null +++ b/src/versions/v1/models/stage-details-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { PipelineDetailsAllOfDealsSummary } from './pipeline-details-all-of-deals-summary'; + +/** +* +* @export +* @interface StageDetailsData +*/ +export interface StageDetailsData { + /** + * + * @type {PipelineDetailsAllOfDealsSummary} + */ + 'deals_summary'?: PipelineDetailsAllOfDealsSummary; +} + diff --git a/src/versions/v1/models/stage-with-pipeline-info.ts b/src/versions/v1/models/stage-with-pipeline-info.ts new file mode 100644 index 00000000..b452dc38 --- /dev/null +++ b/src/versions/v1/models/stage-with-pipeline-info.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface StageWithPipelineInfo +*/ +export interface StageWithPipelineInfo { + /** + * The name of the pipeline + * @type {string} + */ + 'pipeline_name'?: string; + /** + * The pipeline deal probability. When `true`, overrides the stage probability. + * @type {boolean} + */ + 'pipeline_deal_probability'?: boolean; +} + diff --git a/src/versions/v1/models/stage.ts b/src/versions/v1/models/stage.ts new file mode 100644 index 00000000..be9b1ee2 --- /dev/null +++ b/src/versions/v1/models/stage.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface Stage +*/ +export interface Stage { + /** + * The name of the stage + * @type {string} + */ + 'name'?: string; + /** + * The ID of the pipeline to add stage to + * @type {number} + */ + 'pipeline_id'?: number; + /** + * The success probability percentage of the deal. Used/shown when deal weighted values are used. + * @type {number} + */ + 'deal_probability'?: number; + /** + * Whether deals in this stage can become rotten + * @type {boolean} + */ + 'rotten_flag'?: boolean; + /** + * The number of days the deals not updated in this stage would become rotten. Applies only if the `rotten_flag` is set. + * @type {number} + */ + 'rotten_days'?: number; +} + diff --git a/src/versions/v1/models/sub-role-all-of.ts b/src/versions/v1/models/sub-role-all-of.ts new file mode 100644 index 00000000..e6fe4785 --- /dev/null +++ b/src/versions/v1/models/sub-role-all-of.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface SubRoleAllOf +*/ +export interface SubRoleAllOf { + /** + * The ID of the role + * @type {number} + */ + 'id'?: number; + /** + * Whether the role is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; + /** + * The number of users assigned to this role + * @type {string} + */ + 'assignment_count'?: string; + /** + * The number of sub-roles + * @type {string} + */ + 'sub_role_count'?: string; +} + diff --git a/src/versions/v1/models/sub-role.ts b/src/versions/v1/models/sub-role.ts new file mode 100644 index 00000000..8a8d9625 --- /dev/null +++ b/src/versions/v1/models/sub-role.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseRoleRequest } from './base-role-request'; +// May contain unused imports in some cases +// @ts-ignore +import { SubRoleAllOf } from './sub-role-all-of'; + +/** + * @type SubRole + * The details of the sub-role + * @export + */ +export type SubRole = BaseRoleRequest & SubRoleAllOf; + + diff --git a/src/versions/v1/models/subscription-item.ts b/src/versions/v1/models/subscription-item.ts new file mode 100644 index 00000000..4294c229 --- /dev/null +++ b/src/versions/v1/models/subscription-item.ts @@ -0,0 +1,104 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface SubscriptionItem +*/ +export interface SubscriptionItem { + /** + * The ID of the subscription + * @type {number} + */ + 'id'?: number; + /** + * The ID of the user who created the subscription + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of the deal this subscription is associated with + * @type {number} + */ + 'deal_id'?: number; + /** + * The description of the recurring subscription + * @type {string} + */ + 'description'?: string; + /** + * The subscription status + * @type {boolean} + */ + 'is_active'?: boolean; + /** + * Shows how many payments a recurring subscription has + * @type {number} + */ + 'cycles_count'?: number; + /** + * The amount of each payment + * @type {number} + */ + 'cycle_amount'?: number; + /** + * Indicates that the recurring subscription will last until it is manually canceled or deleted + * @type {boolean} + */ + 'infinite'?: boolean; + /** + * The currency of the subscription + * @type {string} + */ + 'currency'?: string; + /** + * The interval between payments + * @type {string} + */ + 'cadence_type'?: string; + /** + * The start date of the recurring subscription + * @type {string} + */ + 'start_date'?: string; + /** + * The end date of the subscription + * @type {string} + */ + 'end_date'?: string; + /** + * The total value of all payments + * @type {number} + */ + 'lifetime_value'?: number; + /** + * The final status of the subscription + * @type {string} + */ + 'final_status'?: string | null; + /** + * The creation time of the subscription + * @type {string} + */ + 'add_time'?: string; + /** + * The update time of the subscription + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v1/models/task-response-object-all-of.ts b/src/versions/v1/models/task-response-object-all-of.ts new file mode 100644 index 00000000..45329396 --- /dev/null +++ b/src/versions/v1/models/task-response-object-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface TaskResponseObjectAllOf +*/ +export interface TaskResponseObjectAllOf { + /** + * The ID of the task, generated when the task was created + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/task-response-object.ts b/src/versions/v1/models/task-response-object.ts new file mode 100644 index 00000000..8c84ab7f --- /dev/null +++ b/src/versions/v1/models/task-response-object.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { TaskResponseObjectAllOf } from './task-response-object-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateProjectRequest1 } from './update-project-request1'; + +/** + * @type TaskResponseObject + * @export + */ +export type TaskResponseObject = TaskResponseObjectAllOf & UpdateProjectRequest1; + + diff --git a/src/versions/v1/models/team-id.ts b/src/versions/v1/models/team-id.ts new file mode 100644 index 00000000..e40880fe --- /dev/null +++ b/src/versions/v1/models/team-id.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface TeamId +*/ +export interface TeamId { + /** + * The team ID + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/template-response-object.ts b/src/versions/v1/models/template-response-object.ts new file mode 100644 index 00000000..3efa4981 --- /dev/null +++ b/src/versions/v1/models/template-response-object.ts @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ProjectTemplate } from './project-template'; + +/** + * @type TemplateResponseObject + * @export + */ +export type TemplateResponseObject = ProjectTemplate; + + diff --git a/src/versions/v1/models/unathorized-response.ts b/src/versions/v1/models/unathorized-response.ts new file mode 100644 index 00000000..28d16bf2 --- /dev/null +++ b/src/versions/v1/models/unathorized-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UnathorizedResponse +*/ +export interface UnathorizedResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * The error message + * @type {string} + */ + 'error'?: string; + /** + * The response error code + * @type {number} + */ + 'errorCode'?: number; +} + diff --git a/src/versions/v1/models/update-activity-plan-item-response.ts b/src/versions/v1/models/update-activity-plan-item-response.ts new file mode 100644 index 00000000..b6e3e4c0 --- /dev/null +++ b/src/versions/v1/models/update-activity-plan-item-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProjectPlanResponseDataInner } from './get-project-plan-response-data-inner'; + +/** +* +* @export +* @interface UpdateActivityPlanItemResponse +*/ +export interface UpdateActivityPlanItemResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetProjectPlanResponseDataInner} + */ + 'data'?: GetProjectPlanResponseDataInner; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/update-activity-request-all-of.ts b/src/versions/v1/models/update-activity-request-all-of.ts new file mode 100644 index 00000000..f9dc674d --- /dev/null +++ b/src/versions/v1/models/update-activity-request-all-of.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateActivityRequestAllOf +*/ +export interface UpdateActivityRequestAllOf { + /** + * The note of the activity (HTML format) + * @type {string} + */ + 'note'?: string; + /** + * The subject of the activity + * @type {string} + */ + 'subject'?: string; + /** + * The type of the activity. This is in correlation with the `key_string` parameter of ActivityTypes. + * @type {string} + */ + 'type'?: string; + /** + * The ID of the user whom the activity is assigned to + * @type {number} + */ + 'user_id'?: number; + /** + * List of multiple persons (participants) this activity is associated with. It requires a structure as follows: `[{\"person_id\":1,\"primary_flag\":true}]` + * @type {Array} + */ + 'participants'?: Array; + /** + * Set the activity as \'Busy\' or \'Free\'. If the flag is set to `true`, your customers will not be able to book that time slot through any Scheduler links. The flag can also be unset by never setting it or overriding it with `null`. When the value of the flag is unset (`null`), the flag defaults to \'Busy\' if it has a time set, and \'Free\' if it is an all-day event without specified time. + * @type {boolean} + */ + 'busy_flag'?: boolean; + /** + * The attendees of the activity. This can be either your existing Pipedrive contacts or an external email address. It requires a structure as follows: `[{\"email_address\":\"mail@example.org\"}]` or `[{\"person_id\":1, \"email_address\":\"mail@example.org\"}]` + * @type {Array} + */ + 'attendees'?: Array; + /** + * + * @type {number} + */ + 'done'?: UpdateActivityRequestAllOfDoneConst; +} + + export const UpdateActivityRequestAllOfDoneConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type UpdateActivityRequestAllOfDoneConst = typeof UpdateActivityRequestAllOfDoneConst[keyof typeof UpdateActivityRequestAllOfDoneConst]; + + diff --git a/src/versions/v1/models/update-activity-request.ts b/src/versions/v1/models/update-activity-request.ts new file mode 100644 index 00000000..a4855119 --- /dev/null +++ b/src/versions/v1/models/update-activity-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityAllOf } from './activity-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateActivityRequestAllOf } from './update-activity-request-all-of'; + +/** + * @type UpdateActivityRequest + * @export + */ +export type UpdateActivityRequest = ActivityAllOf & UpdateActivityRequestAllOf; + + diff --git a/src/versions/v1/models/update-activity-response.ts b/src/versions/v1/models/update-activity-response.ts new file mode 100644 index 00000000..3683af4e --- /dev/null +++ b/src/versions/v1/models/update-activity-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Activity } from './activity'; +// May contain unused imports in some cases +// @ts-ignore +import { AddActivityResponseRelatedObjects } from './add-activity-response-related-objects'; + +/** +* +* @export +* @interface UpdateActivityResponse +*/ +export interface UpdateActivityResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Activity} + */ + 'data'?: Activity; + /** + * + * @type {AddActivityResponseRelatedObjects} + */ + 'related_objects'?: AddActivityResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/update-activity-type-request.ts b/src/versions/v1/models/update-activity-type-request.ts new file mode 100644 index 00000000..5b39b5c0 --- /dev/null +++ b/src/versions/v1/models/update-activity-type-request.ts @@ -0,0 +1,90 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateActivityTypeRequest +*/ +export interface UpdateActivityTypeRequest { + /** + * The name of the activity type + * @type {string} + */ + 'name'?: string; + /** + * Icon graphic to use for representing this activity type + * @type {string} + */ + 'icon_key'?: UpdateActivityTypeRequestIconKeyConst; + /** + * A designated color for the activity type in 6-character HEX format (e.g. `FFFFFF` for white, `000000` for black) + * @type {string} + */ + 'color'?: string; + /** + * An order number for this activity type. Order numbers should be used to order the types in the activity type selections. + * @type {number} + */ + 'order_nr'?: number; +} + + export const UpdateActivityTypeRequestIconKeyConst = { + task: 'task', + email: 'email', + meeting: 'meeting', + deadline: 'deadline', + call: 'call', + lunch: 'lunch', + calendar: 'calendar', + downarrow: 'downarrow', + document: 'document', + smartphone: 'smartphone', + camera: 'camera', + scissors: 'scissors', + cogs: 'cogs', + bubble: 'bubble', + uparrow: 'uparrow', + checkbox: 'checkbox', + signpost: 'signpost', + shuffle: 'shuffle', + addressbook: 'addressbook', + linegraph: 'linegraph', + picture: 'picture', + car: 'car', + world: 'world', + search: 'search', + clip: 'clip', + sound: 'sound', + brush: 'brush', + key: 'key', + padlock: 'padlock', + pricetag: 'pricetag', + suitcase: 'suitcase', + finish: 'finish', + plane: 'plane', + loop: 'loop', + wifi: 'wifi', + truck: 'truck', + cart: 'cart', + bulb: 'bulb', + bell: 'bell', + presentation: 'presentation' + } as const; + + export type UpdateActivityTypeRequestIconKeyConst = typeof UpdateActivityTypeRequestIconKeyConst[keyof typeof UpdateActivityTypeRequestIconKeyConst]; + + diff --git a/src/versions/v1/models/update-deal-parameters.ts b/src/versions/v1/models/update-deal-parameters.ts new file mode 100644 index 00000000..d16fb47c --- /dev/null +++ b/src/versions/v1/models/update-deal-parameters.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateDealParameters +*/ +export interface UpdateDealParameters { + /** + * The value of the deal. + * @type {string} + */ + 'value'?: string; + /** + * Array of the deal labels IDs. + * @type {Array} + */ + 'label'?: Array; + /** + * The currency of the deal. Accepts a 3-character currency code. + * @type {string} + */ + 'currency'?: string; + /** + * The ID of the user which will be the new owner of the deal. + * @type {number} + */ + 'user_id'?: number; + /** + * The ID of a person which this deal will be linked to. If the person does not exist yet, it needs to be created first. + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of an organization which this deal will be linked to. If the organization does not exist yet, it needs to be created first. + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the pipeline this deal will be added to. By default, the deal will be added to the first stage of the specified pipeline. Please note that `pipeline_id` and `stage_id` should not be used together as `pipeline_id` will be ignored. + * @type {number} + */ + 'pipeline_id'?: number; + /** + * The ID of the stage this deal will be added to. Please note that a pipeline will be assigned automatically based on the `stage_id`. + * @type {number} + */ + 'stage_id'?: number; + /** + * open = Open, won = Won, lost = Lost, deleted = Deleted. + * @type {string} + */ + 'status'?: UpdateDealParametersStatusConst; + /** + * The ID of Marketing channel this deal was created from. Provided value must be one of the channels configured for your company which you can fetch with GET /v1/dealFields. + * @type {number} + */ + 'channel'?: number | null; + /** + * The optional ID to further distinguish the Marketing channel. + * @type {string} + */ + 'channel_id'?: string | null; +} + + export const UpdateDealParametersStatusConst = { + open: 'open', + won: 'won', + lost: 'lost', + deleted: 'deleted' + } as const; + + export type UpdateDealParametersStatusConst = typeof UpdateDealParametersStatusConst[keyof typeof UpdateDealParametersStatusConst]; + + diff --git a/src/versions/v1/models/update-deal-product-request-all-of.ts b/src/versions/v1/models/update-deal-product-request-all-of.ts new file mode 100644 index 00000000..69c1a1f1 --- /dev/null +++ b/src/versions/v1/models/update-deal-product-request-all-of.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateDealProductRequestAllOf +*/ +export interface UpdateDealProductRequestAllOf { + /** + * Only available in Advanced and above plans How often a customer is billed for access to a service or product To set `billing_frequency` different than `one-time`, the deal must not have installments associated A deal can have up to 20 products attached with `billing_frequency` different than `one-time` + * @type {string} + */ + 'billing_frequency'?: UpdateDealProductRequestAllOfBillingFrequencyConst; +} + + export const UpdateDealProductRequestAllOfBillingFrequencyConst = { + one_time: 'one-time', + annually: 'annually', + semi_annually: 'semi-annually', + quarterly: 'quarterly', + monthly: 'monthly', + weekly: 'weekly' + } as const; + + export type UpdateDealProductRequestAllOfBillingFrequencyConst = typeof UpdateDealProductRequestAllOfBillingFrequencyConst[keyof typeof UpdateDealProductRequestAllOfBillingFrequencyConst]; + + diff --git a/src/versions/v1/models/update-deal-product-request.ts b/src/versions/v1/models/update-deal-product-request.ts new file mode 100644 index 00000000..23fc92d8 --- /dev/null +++ b/src/versions/v1/models/update-deal-product-request.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddDealProductRequestAllOf1 } from './add-deal-product-request-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { AddDealProductRequestAllOf2 } from './add-deal-product-request-all-of2'; +// May contain unused imports in some cases +// @ts-ignore +import { DealProductRequestBody1 } from './deal-product-request-body1'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateDealProductRequestAllOf } from './update-deal-product-request-all-of'; + +/** + * @type UpdateDealProductRequest + * @export + */ +export type UpdateDealProductRequest = AddDealProductRequestAllOf1 & AddDealProductRequestAllOf2 & DealProductRequestBody1 & UpdateDealProductRequestAllOf; + + diff --git a/src/versions/v1/models/update-deal-request.ts b/src/versions/v1/models/update-deal-request.ts new file mode 100644 index 00000000..24634f1b --- /dev/null +++ b/src/versions/v1/models/update-deal-request.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasicDeal1 } from './basic-deal1'; +// May contain unused imports in some cases +// @ts-ignore +import { DealTitleParam } from './deal-title-param'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateDealParameters } from './update-deal-parameters'; + +/** + * @type UpdateDealRequest + * @export + */ +export type UpdateDealRequest = BasicDeal1 & DealTitleParam & UpdateDealParameters; + + diff --git a/src/versions/v1/models/update-field-request.ts b/src/versions/v1/models/update-field-request.ts new file mode 100644 index 00000000..d0ea00eb --- /dev/null +++ b/src/versions/v1/models/update-field-request.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateFieldRequest +*/ +export interface UpdateFieldRequest { + /** + * The name of the field + * @type {string} + */ + 'name'?: string; + /** + * When `field_type` is either set or enum, possible options must be supplied as a JSON-encoded sequential array of objects. All active items must be supplied and already existing items must have their ID supplied. New items only require a label. Example: `[{\"id\":123,\"label\":\"Existing Item\"},{\"label\":\"New Item\"}]` + * @type {Array} + */ + 'options'?: Array; + /** + * Whether the field is available in \'add new\' modal or not (both in web and mobile app) + * @type {boolean} + */ + 'add_visible_flag'?: boolean; +} + diff --git a/src/versions/v1/models/update-file-response.ts b/src/versions/v1/models/update-file-response.ts new file mode 100644 index 00000000..144f02a9 --- /dev/null +++ b/src/versions/v1/models/update-file-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetFilesResponseDataInner } from './get-files-response-data-inner'; + +/** +* +* @export +* @interface UpdateFileResponse +*/ +export interface UpdateFileResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetFilesResponseDataInner} + */ + 'data'?: GetFilesResponseDataInner; +} + diff --git a/src/versions/v1/models/update-filter-request.ts b/src/versions/v1/models/update-filter-request.ts new file mode 100644 index 00000000..ce21c517 --- /dev/null +++ b/src/versions/v1/models/update-filter-request.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateFilterRequest +*/ +export interface UpdateFilterRequest { + /** + * The conditions of the filter as a JSON object. Please note that a maximum of 16 conditions is allowed per filter and `date` values must be supplied in the `YYYY-MM-DD` format. It requires a minimum structure as follows: `{\"glue\":\"and\",\"conditions\":[{\"glue\":\"and\",\"conditions\": [CONDITION_OBJECTS]},{\"glue\":\"or\",\"conditions\":[CONDITION_OBJECTS]}]}`. Replace `CONDITION_OBJECTS` with JSON objects of the following structure: `{\"object\":\"\",\"field_id\":\"\", \"operator\":\"\",\"value\":\"\", \"extra_value\":\"\"}` or leave the array empty. Depending on the object type you should use another API endpoint to get `field_id`. There are five types of objects you can choose from: `\"person\"`, `\"deal\"`, `\"organization\"`, `\"product\"`, `\"activity\"` and you can use these types of operators depending on what type of a field you have: `\"IS NOT NULL\"`, `\"IS NULL\"`, `\"<=\"`, `\">=\"`, `\"<\"`, `\">\"`, `\"!=\"`, `\"=\"`, `\"LIKE \'$%\'\"`, `\"LIKE \'%$%\'\"`, `\"NOT LIKE \'$%\'\"`. To get a better understanding of how filters work try creating them directly from the Pipedrive application. + * @type {object} + */ + 'conditions': object; + /** + * The name of the filter + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/update-lead-label-request.ts b/src/versions/v1/models/update-lead-label-request.ts new file mode 100644 index 00000000..d3d27ae7 --- /dev/null +++ b/src/versions/v1/models/update-lead-label-request.ts @@ -0,0 +1,46 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateLeadLabelRequest +*/ +export interface UpdateLeadLabelRequest { + /** + * The name of the lead label + * @type {string} + */ + 'name'?: string; + /** + * The color of the label. Only a subset of colors can be used. + * @type {string} + */ + 'color'?: UpdateLeadLabelRequestColorConst; +} + + export const UpdateLeadLabelRequestColorConst = { + green: 'green', + blue: 'blue', + red: 'red', + yellow: 'yellow', + purple: 'purple', + gray: 'gray' + } as const; + + export type UpdateLeadLabelRequestColorConst = typeof UpdateLeadLabelRequestColorConst[keyof typeof UpdateLeadLabelRequestColorConst]; + + diff --git a/src/versions/v1/models/update-lead-request.ts b/src/versions/v1/models/update-lead-request.ts new file mode 100644 index 00000000..a02af3cc --- /dev/null +++ b/src/versions/v1/models/update-lead-request.ts @@ -0,0 +1,97 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadValue } from './lead-value'; + +/** +* +* @export +* @interface UpdateLeadRequest +*/ +export interface UpdateLeadRequest { + /** + * The name of the lead + * @type {string} + */ + 'title'?: string | null; + /** + * The ID of the user which will be the owner of the created lead. If not provided, the user making the request will be used. + * @type {number} + */ + 'owner_id'?: number; + /** + * The IDs of the lead labels which will be associated with the lead + * @type {Array} + */ + 'label_ids'?: Array; + /** + * The ID of a person which this lead will be linked to. If the person does not exist yet, it needs to be created first. A lead always has to be linked to a person or organization or both. + * @type {number} + */ + 'person_id'?: number | null; + /** + * The ID of an organization which this lead will be linked to. If the organization does not exist yet, it needs to be created first. A lead always has to be linked to a person or organization or both. + * @type {number} + */ + 'organization_id'?: number | null; + /** + * A flag indicating whether the lead is archived or not + * @type {boolean} + */ + 'is_archived'?: boolean; + /** + * + * @type {LeadValue} + */ + 'value'?: LeadValue | null; + /** + * The date of when the deal which will be created from the lead is expected to be closed. In ISO 8601 format: YYYY-MM-DD. + * @type {string} + */ + 'expected_close_date'?: string | null; + /** + * + * @type {string} + */ + 'visible_to'?: UpdateLeadRequestVisibleToConst; + /** + * A flag indicating whether the lead was seen by someone in the Pipedrive UI + * @type {boolean} + */ + 'was_seen'?: boolean; + /** + * The ID of Marketing channel this lead was created from. Provided value must be one of the channels configured for your company which you can fetch with GET /v1/dealFields. + * @type {number} + */ + 'channel'?: number | null; + /** + * The optional ID to further distinguish the Marketing channel. + * @type {string} + */ + 'channel_id'?: string | null; +} + + export const UpdateLeadRequestVisibleToConst = { + _1: '1', + _3: '3', + _5: '5', + _7: '7' + } as const; + + export type UpdateLeadRequestVisibleToConst = typeof UpdateLeadRequestVisibleToConst[keyof typeof UpdateLeadRequestVisibleToConst]; + + diff --git a/src/versions/v1/models/update-mail-thread-response-all-of.ts b/src/versions/v1/models/update-mail-thread-response-all-of.ts new file mode 100644 index 00000000..e8a4f302 --- /dev/null +++ b/src/versions/v1/models/update-mail-thread-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { MailThread1 } from './mail-thread1'; + +/** +* +* @export +* @interface UpdateMailThreadResponseAllOf +*/ +export interface UpdateMailThreadResponseAllOf { + /** + * + * @type {MailThread1} + */ + 'data'?: MailThread1; +} + diff --git a/src/versions/v1/models/update-mail-thread-response.ts b/src/versions/v1/models/update-mail-thread-response.ts new file mode 100644 index 00000000..02a19a96 --- /dev/null +++ b/src/versions/v1/models/update-mail-thread-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { MailThread1 } from './mail-thread1'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateMailThreadResponseAllOf } from './update-mail-thread-response-all-of'; + +/** + * @type UpdateMailThreadResponse + * @export + */ +export type UpdateMailThreadResponse = BaseResponse & UpdateMailThreadResponseAllOf; + + diff --git a/src/versions/v1/models/update-organization-relationship-response.ts b/src/versions/v1/models/update-organization-relationship-response.ts new file mode 100644 index 00000000..042cefae --- /dev/null +++ b/src/versions/v1/models/update-organization-relationship-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddOrganizationRelationshipResponseAllOf } from './add-organization-relationship-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationRelationshipsResponseAllOfRelatedObjects } from './get-organization-relationships-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationRelationshipWithCalculatedFieldsAllOf } from './organization-relationship-with-calculated-fields-all-of'; + +/** + * @type UpdateOrganizationRelationshipResponse + * @export + */ +export type UpdateOrganizationRelationshipResponse = AddOrganizationRelationshipResponseAllOf & BaseResponse; + + diff --git a/src/versions/v1/models/update-organization-request-all-of.ts b/src/versions/v1/models/update-organization-request-all-of.ts new file mode 100644 index 00000000..897a8bcd --- /dev/null +++ b/src/versions/v1/models/update-organization-request-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateOrganizationRequestAllOf +*/ +export interface UpdateOrganizationRequestAllOf { + /** + * The name of the organization + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/update-organization-request.ts b/src/versions/v1/models/update-organization-request.ts new file mode 100644 index 00000000..07f8e933 --- /dev/null +++ b/src/versions/v1/models/update-organization-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasicOrganization1 } from './basic-organization1'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateOrganizationRequestAllOf } from './update-organization-request-all-of'; + +/** + * @type UpdateOrganizationRequest + * @export + */ +export type UpdateOrganizationRequest = BasicOrganization1 & UpdateOrganizationRequestAllOf; + + diff --git a/src/versions/v1/models/update-organization-response-all-of.ts b/src/versions/v1/models/update-organization-response-all-of.ts new file mode 100644 index 00000000..99e03070 --- /dev/null +++ b/src/versions/v1/models/update-organization-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItem } from './base-organization-item'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; + +/** +* +* @export +* @interface UpdateOrganizationResponseAllOf +*/ +export interface UpdateOrganizationResponseAllOf { + /** + * + * @type {BaseOrganizationItem} + */ + 'data': BaseOrganizationItem; + /** + * + * @type {GetOrganizationsResponseAllOfRelatedObjects} + */ + 'related_objects': GetOrganizationsResponseAllOfRelatedObjects; +} + diff --git a/src/versions/v1/models/update-organization-response.ts b/src/versions/v1/models/update-organization-response.ts new file mode 100644 index 00000000..0a98861e --- /dev/null +++ b/src/versions/v1/models/update-organization-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseOrganizationItem } from './base-organization-item'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOfRelatedObjects } from './get-organizations-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateOrganizationResponseAllOf } from './update-organization-response-all-of'; + +/** + * @type UpdateOrganizationResponse + * @export + */ +export type UpdateOrganizationResponse = BaseResponse & UpdateOrganizationResponseAllOf; + + diff --git a/src/versions/v1/models/update-person-request-all-of.ts b/src/versions/v1/models/update-person-request-all-of.ts new file mode 100644 index 00000000..7e266bd8 --- /dev/null +++ b/src/versions/v1/models/update-person-request-all-of.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdatePersonRequestAllOf +*/ +export interface UpdatePersonRequestAllOf { + [key: string]: any | any; + + /** + * The name of the person + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/update-person-request.ts b/src/versions/v1/models/update-person-request.ts new file mode 100644 index 00000000..a36cf19a --- /dev/null +++ b/src/versions/v1/models/update-person-request.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasicPersonRequest } from './basic-person-request'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicPersonRequestEmailInner } from './basic-person-request-email-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { PersonAllOfPhoneInner } from './person-all-of-phone-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdatePersonRequestAllOf } from './update-person-request-all-of'; + +/** + * @type UpdatePersonRequest + * @export + */ +export type UpdatePersonRequest = BasicPersonRequest & UpdatePersonRequestAllOf; + + diff --git a/src/versions/v1/models/update-person-response.ts b/src/versions/v1/models/update-person-response.ts new file mode 100644 index 00000000..e2d79869 --- /dev/null +++ b/src/versions/v1/models/update-person-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddPersonResponseAllOf } from './add-person-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductsResponseAllOfRelatedObjects } from './get-products-response-all-of-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { Person } from './person'; + +/** + * @type UpdatePersonResponse + * @export + */ +export type UpdatePersonResponse = AddPersonResponseAllOf & BaseResponse; + + diff --git a/src/versions/v1/models/update-pipeline-response-all-of-data.ts b/src/versions/v1/models/update-pipeline-response-all-of-data.ts new file mode 100644 index 00000000..858437f0 --- /dev/null +++ b/src/versions/v1/models/update-pipeline-response-all-of-data.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BasePipelineWithSelectedFlag } from './base-pipeline-with-selected-flag'; + +/** + * @type UpdatePipelineResponseAllOfData + * The pipeline object + * @export + */ +export type UpdatePipelineResponseAllOfData = BasePipelineWithSelectedFlag; + + diff --git a/src/versions/v1/models/update-pipeline-response-all-of.ts b/src/versions/v1/models/update-pipeline-response-all-of.ts new file mode 100644 index 00000000..e6b01e61 --- /dev/null +++ b/src/versions/v1/models/update-pipeline-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UpdatePipelineResponseAllOfData } from './update-pipeline-response-all-of-data'; + +/** +* +* @export +* @interface UpdatePipelineResponseAllOf +*/ +export interface UpdatePipelineResponseAllOf { + /** + * + * @type {UpdatePipelineResponseAllOfData} + */ + 'data'?: UpdatePipelineResponseAllOfData; +} + diff --git a/src/versions/v1/models/update-pipeline-response.ts b/src/versions/v1/models/update-pipeline-response.ts new file mode 100644 index 00000000..18274e8d --- /dev/null +++ b/src/versions/v1/models/update-pipeline-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdatePipelineResponseAllOf } from './update-pipeline-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdatePipelineResponseAllOfData } from './update-pipeline-response-all-of-data'; + +/** + * @type UpdatePipelineResponse + * @export + */ +export type UpdatePipelineResponse = BaseResponse & UpdatePipelineResponseAllOf; + + diff --git a/src/versions/v1/models/update-product-field-response.ts b/src/versions/v1/models/update-product-field-response.ts new file mode 100644 index 00000000..aacbb2c8 --- /dev/null +++ b/src/versions/v1/models/update-product-field-response.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateProductFieldResponse +*/ +export interface UpdateProductFieldResponse { + /** + * The name of the field + * @type {string} + */ + 'name'?: string; + /** + * When `field_type` is either set or enum, possible options on update must be supplied as an array of objects each containing id and label, for example: [{\"id\":1, \"label\":\"red\"},{\"id\":2, \"label\":\"blue\"},{\"id\":3, \"label\":\"lilac\"}] + * @type {Array} + */ + 'options'?: Array; +} + diff --git a/src/versions/v1/models/update-product-request-all-of.ts b/src/versions/v1/models/update-product-request-all-of.ts new file mode 100644 index 00000000..bbed6a95 --- /dev/null +++ b/src/versions/v1/models/update-product-request-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateProductRequestAllOf +*/ +export interface UpdateProductRequestAllOf { + /** + * The name of the product + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v1/models/update-product-request-all-of1.ts b/src/versions/v1/models/update-product-request-all-of1.ts new file mode 100644 index 00000000..ddfc1496 --- /dev/null +++ b/src/versions/v1/models/update-product-request-all-of1.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateProductRequestAllOf1 +*/ +export interface UpdateProductRequestAllOf1 { + /** + * Only available in Advanced and above plans How often a customer is billed for access to a service or product + * @type {string} + */ + 'billing_frequency'?: UpdateProductRequestAllOf1BillingFrequencyConst; +} + + export const UpdateProductRequestAllOf1BillingFrequencyConst = { + one_time: 'one-time', + annually: 'annually', + semi_annually: 'semi-annually', + quarterly: 'quarterly', + monthly: 'monthly', + weekly: 'weekly' + } as const; + + export type UpdateProductRequestAllOf1BillingFrequencyConst = typeof UpdateProductRequestAllOf1BillingFrequencyConst[keyof typeof UpdateProductRequestAllOf1BillingFrequencyConst]; + + diff --git a/src/versions/v1/models/update-product-request.ts b/src/versions/v1/models/update-product-request.ts new file mode 100644 index 00000000..58565464 --- /dev/null +++ b/src/versions/v1/models/update-product-request.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddProductRequestAllOf2 } from './add-product-request-all-of2'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductRequest1 } from './product-request1'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateProductRequestAllOf } from './update-product-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateProductRequestAllOf1 } from './update-product-request-all-of1'; + +/** + * @type UpdateProductRequest + * @export + */ +export type UpdateProductRequest = AddProductRequestAllOf2 & ProductRequest1 & UpdateProductRequestAllOf & UpdateProductRequestAllOf1; + + diff --git a/src/versions/v1/models/update-product-response.ts b/src/versions/v1/models/update-product-response.ts new file mode 100644 index 00000000..14b0f1ac --- /dev/null +++ b/src/versions/v1/models/update-product-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseRelatedObjects } from './get-activities-response-related-objects'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductListItemProduct } from './product-list-item-product'; + +/** +* +* @export +* @interface UpdateProductResponse +*/ +export interface UpdateProductResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * + * @type {ProductListItemProduct} + */ + 'data': ProductListItemProduct; + /** + * + * @type {GetActivitiesResponseRelatedObjects} + */ + 'related_objects': GetActivitiesResponseRelatedObjects; +} + diff --git a/src/versions/v1/models/update-project-request.ts b/src/versions/v1/models/update-project-request.ts new file mode 100644 index 00000000..0748784e --- /dev/null +++ b/src/versions/v1/models/update-project-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ProjectAllOf } from './project-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { ProjectAllOf1 } from './project-all-of1'; + +/** + * @type UpdateProjectRequest + * @export + */ +export type UpdateProjectRequest = ProjectAllOf & ProjectAllOf1; + + diff --git a/src/versions/v1/models/update-project-request1-all-of.ts b/src/versions/v1/models/update-project-request1-all-of.ts new file mode 100644 index 00000000..8caf8676 --- /dev/null +++ b/src/versions/v1/models/update-project-request1-all-of.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateProjectRequest1AllOf +*/ +export interface UpdateProjectRequest1AllOf { + /** + * The title of the task + * @type {string} + */ + 'title'?: string; + /** + * The ID of the project this task is associated with + * @type {number} + */ + 'project_id'?: number; +} + diff --git a/src/versions/v1/models/update-project-request1-all-of1.ts b/src/versions/v1/models/update-project-request1-all-of1.ts new file mode 100644 index 00000000..af75334d --- /dev/null +++ b/src/versions/v1/models/update-project-request1-all-of1.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateProjectRequest1AllOf1 +*/ +export interface UpdateProjectRequest1AllOf1 { + /** + * The description of the task + * @type {string} + */ + 'description'?: string; + /** + * The ID of a parent task. Can not be ID of a task which is already a subtask. + * @type {number} + */ + 'parent_task_id'?: number; + /** + * The ID of the user who will be the assignee of the task + * @type {number} + */ + 'assignee_id'?: number; + /** + * + * @type {number} + */ + 'done'?: UpdateProjectRequest1AllOf1DoneConst; + /** + * The due date of the task. Format: YYYY-MM-DD. + * @type {string} + */ + 'due_date'?: string; +} + + export const UpdateProjectRequest1AllOf1DoneConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type UpdateProjectRequest1AllOf1DoneConst = typeof UpdateProjectRequest1AllOf1DoneConst[keyof typeof UpdateProjectRequest1AllOf1DoneConst]; + + diff --git a/src/versions/v1/models/update-project-request1-all-of2.ts b/src/versions/v1/models/update-project-request1-all-of2.ts new file mode 100644 index 00000000..9ec83463 --- /dev/null +++ b/src/versions/v1/models/update-project-request1-all-of2.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateProjectRequest1AllOf2 +*/ +export interface UpdateProjectRequest1AllOf2 { + /** + * The creator of a task + * @type {number} + */ + 'creator_id'?: number; + /** + * The creation date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'add_time'?: string; + /** + * The update date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'update_time'?: string; + /** + * The marked as done date and time of the task in UTC. Format: YYYY-MM-DD HH:MM:SS. + * @type {string} + */ + 'marked_as_done_time'?: string; +} + diff --git a/src/versions/v1/models/update-project-request1.ts b/src/versions/v1/models/update-project-request1.ts new file mode 100644 index 00000000..d9dc67c4 --- /dev/null +++ b/src/versions/v1/models/update-project-request1.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UpdateProjectRequest1AllOf } from './update-project-request1-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateProjectRequest1AllOf1 } from './update-project-request1-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateProjectRequest1AllOf2 } from './update-project-request1-all-of2'; + +/** + * @type UpdateProjectRequest1 + * @export + */ +export type UpdateProjectRequest1 = UpdateProjectRequest1AllOf & UpdateProjectRequest1AllOf1 & UpdateProjectRequest1AllOf2; + + diff --git a/src/versions/v1/models/update-project-request2.ts b/src/versions/v1/models/update-project-request2.ts new file mode 100644 index 00000000..f240ccc6 --- /dev/null +++ b/src/versions/v1/models/update-project-request2.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UpdateProjectRequest1AllOf } from './update-project-request1-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateProjectRequest1AllOf1 } from './update-project-request1-all-of1'; + +/** + * @type UpdateProjectRequest2 + * @export + */ +export type UpdateProjectRequest2 = UpdateProjectRequest1AllOf & UpdateProjectRequest1AllOf1; + + diff --git a/src/versions/v1/models/update-project-response.ts b/src/versions/v1/models/update-project-response.ts new file mode 100644 index 00000000..2a86349b --- /dev/null +++ b/src/versions/v1/models/update-project-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ProjectResponseObject } from './project-response-object'; + +/** +* +* @export +* @interface UpdateProjectResponse +*/ +export interface UpdateProjectResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {ProjectResponseObject} + */ + 'data'?: ProjectResponseObject; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/update-recurring-subscription-request.ts b/src/versions/v1/models/update-recurring-subscription-request.ts new file mode 100644 index 00000000..17982353 --- /dev/null +++ b/src/versions/v1/models/update-recurring-subscription-request.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateRecurringSubscriptionRequest +*/ +export interface UpdateRecurringSubscriptionRequest { + /** + * All payments after that date will be affected. Format: YYYY-MM-DD + * @type {string} + */ + 'effective_date': string; + /** + * The description of the recurring subscription + * @type {string} + */ + 'description'?: string; + /** + * The amount of each payment + * @type {number} + */ + 'cycle_amount'?: number; + /** + * Array of additional payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with an explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). + * @type {Array} + */ + 'payments'?: Array; + /** + * Indicates that the deal value must be set to recurring subscription\'s MRR value + * @type {boolean} + */ + 'update_deal_value'?: boolean; +} + diff --git a/src/versions/v1/models/update-role-response-all-of.ts b/src/versions/v1/models/update-role-response-all-of.ts new file mode 100644 index 00000000..0b05fcb1 --- /dev/null +++ b/src/versions/v1/models/update-role-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UpdateRoleResponseData } from './update-role-response-data'; + +/** +* +* @export +* @interface UpdateRoleResponseAllOf +*/ +export interface UpdateRoleResponseAllOf { + /** + * + * @type {UpdateRoleResponseData} + */ + 'data'?: UpdateRoleResponseData; +} + diff --git a/src/versions/v1/models/update-role-response-data.ts b/src/versions/v1/models/update-role-response-data.ts new file mode 100644 index 00000000..615eb725 --- /dev/null +++ b/src/versions/v1/models/update-role-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The response data +* @export +* @interface UpdateRoleResponseData +*/ +export interface UpdateRoleResponseData { + /** + * + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v1/models/update-role-response.ts b/src/versions/v1/models/update-role-response.ts new file mode 100644 index 00000000..16204860 --- /dev/null +++ b/src/versions/v1/models/update-role-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateRoleResponseAllOf } from './update-role-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateRoleResponseData } from './update-role-response-data'; + +/** + * @type UpdateRoleResponse + * @export + */ +export type UpdateRoleResponse = BaseResponse & UpdateRoleResponseAllOf; + + diff --git a/src/versions/v1/models/update-stage-request-all-of.ts b/src/versions/v1/models/update-stage-request-all-of.ts new file mode 100644 index 00000000..0399ca09 --- /dev/null +++ b/src/versions/v1/models/update-stage-request-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateStageRequestAllOf +*/ +export interface UpdateStageRequestAllOf { + /** + * An order number for this stage. Order numbers should be used to order the stages in the pipeline. + * @type {number} + */ + 'order_nr'?: number; +} + diff --git a/src/versions/v1/models/update-stage-request.ts b/src/versions/v1/models/update-stage-request.ts new file mode 100644 index 00000000..b253bbcb --- /dev/null +++ b/src/versions/v1/models/update-stage-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Stage } from './stage'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateStageRequestAllOf } from './update-stage-request-all-of'; + +/** + * @type UpdateStageRequest + * @export + */ +export type UpdateStageRequest = Stage & UpdateStageRequestAllOf; + + diff --git a/src/versions/v1/models/update-subscription-installment-request.ts b/src/versions/v1/models/update-subscription-installment-request.ts new file mode 100644 index 00000000..1fb98e2a --- /dev/null +++ b/src/versions/v1/models/update-subscription-installment-request.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateSubscriptionInstallmentRequest +*/ +export interface UpdateSubscriptionInstallmentRequest { + /** + * Array of payments. It requires a minimum structure as follows: [{ amount:SUM, description:DESCRIPTION, due_at:PAYMENT_DATE }]. Replace SUM with a payment amount, DESCRIPTION with a explanation string, PAYMENT_DATE with a date (format YYYY-MM-DD). + * @type {Array} + */ + 'payments': Array; + /** + * Indicates that the deal value must be set to installment subscription\'s total value + * @type {boolean} + */ + 'update_deal_value'?: boolean; +} + diff --git a/src/versions/v1/models/update-task-plan-item-response.ts b/src/versions/v1/models/update-task-plan-item-response.ts new file mode 100644 index 00000000..652f7a1d --- /dev/null +++ b/src/versions/v1/models/update-task-plan-item-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProjectPlanResponseDataInner } from './get-project-plan-response-data-inner'; + +/** +* +* @export +* @interface UpdateTaskPlanItemResponse +*/ +export interface UpdateTaskPlanItemResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetProjectPlanResponseDataInner} + */ + 'data'?: GetProjectPlanResponseDataInner; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/update-task-response.ts b/src/versions/v1/models/update-task-response.ts new file mode 100644 index 00000000..90edfc05 --- /dev/null +++ b/src/versions/v1/models/update-task-response.ts @@ -0,0 +1,42 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { TaskResponseObject } from './task-response-object'; + +/** +* +* @export +* @interface UpdateTaskResponse +*/ +export interface UpdateTaskResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {TaskResponseObject} + */ + 'data'?: TaskResponseObject; + /** + * + * @type {object} + */ + 'additional_data'?: object | null; +} + diff --git a/src/versions/v1/models/update-team-request-all-of.ts b/src/versions/v1/models/update-team-request-all-of.ts new file mode 100644 index 00000000..aa9f4126 --- /dev/null +++ b/src/versions/v1/models/update-team-request-all-of.ts @@ -0,0 +1,48 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateTeamRequestAllOf +*/ +export interface UpdateTeamRequestAllOf { + /** + * + * @type {number} + */ + 'active_flag'?: UpdateTeamRequestAllOfActiveFlagConst; + /** + * + * @type {number} + */ + 'deleted_flag'?: UpdateTeamRequestAllOfDeletedFlagConst; +} + + export const UpdateTeamRequestAllOfActiveFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type UpdateTeamRequestAllOfActiveFlagConst = typeof UpdateTeamRequestAllOfActiveFlagConst[keyof typeof UpdateTeamRequestAllOfActiveFlagConst]; + export const UpdateTeamRequestAllOfDeletedFlagConst = { + NUMBER_0: 0, + NUMBER_1: 1 + } as const; + + export type UpdateTeamRequestAllOfDeletedFlagConst = typeof UpdateTeamRequestAllOfDeletedFlagConst[keyof typeof UpdateTeamRequestAllOfDeletedFlagConst]; + + diff --git a/src/versions/v1/models/update-team-request.ts b/src/versions/v1/models/update-team-request.ts new file mode 100644 index 00000000..51d3959b --- /dev/null +++ b/src/versions/v1/models/update-team-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddTeamRequest } from './add-team-request'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateTeamRequestAllOf } from './update-team-request-all-of'; + +/** + * @type UpdateTeamRequest + * @export + */ +export type UpdateTeamRequest = AddTeamRequest & UpdateTeamRequestAllOf; + + diff --git a/src/versions/v1/models/update-team-with-additional-properties.ts b/src/versions/v1/models/update-team-with-additional-properties.ts new file mode 100644 index 00000000..a63ff3e9 --- /dev/null +++ b/src/versions/v1/models/update-team-with-additional-properties.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseTeamAdditionalProperties } from './base-team-additional-properties'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateTeamRequest } from './update-team-request'; + +/** + * @type UpdateTeamWithAdditionalProperties + * @export + */ +export type UpdateTeamWithAdditionalProperties = BaseTeamAdditionalProperties & UpdateTeamRequest; + + diff --git a/src/versions/v1/models/update-user-request.ts b/src/versions/v1/models/update-user-request.ts new file mode 100644 index 00000000..df6c2a2f --- /dev/null +++ b/src/versions/v1/models/update-user-request.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateUserRequest +*/ +export interface UpdateUserRequest { + /** + * Whether the user is active or not. `false` = Not activated, `true` = Activated + * @type {boolean} + */ + 'active_flag': boolean; +} + diff --git a/src/versions/v1/models/upsert-activity-type-response-all-of.ts b/src/versions/v1/models/upsert-activity-type-response-all-of.ts new file mode 100644 index 00000000..fab7877d --- /dev/null +++ b/src/versions/v1/models/upsert-activity-type-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityType } from './activity-type'; + +/** +* +* @export +* @interface UpsertActivityTypeResponseAllOf +*/ +export interface UpsertActivityTypeResponseAllOf { + /** + * + * @type {ActivityType} + */ + 'data': ActivityType; +} + diff --git a/src/versions/v1/models/upsert-activity-type-response.ts b/src/versions/v1/models/upsert-activity-type-response.ts new file mode 100644 index 00000000..55142538 --- /dev/null +++ b/src/versions/v1/models/upsert-activity-type-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityType } from './activity-type'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { UpsertActivityTypeResponseAllOf } from './upsert-activity-type-response-all-of'; + +/** + * @type UpsertActivityTypeResponse + * @export + */ +export type UpsertActivityTypeResponse = BaseResponse & UpsertActivityTypeResponseAllOf; + + diff --git a/src/versions/v1/models/upsert-comment-response.ts b/src/versions/v1/models/upsert-comment-response.ts new file mode 100644 index 00000000..0c732ce4 --- /dev/null +++ b/src/versions/v1/models/upsert-comment-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Comment } from './comment'; + +/** +* +* @export +* @interface UpsertCommentResponse +*/ +export interface UpsertCommentResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Comment} + */ + 'data'?: Comment; +} + diff --git a/src/versions/v1/models/upsert-goal-response-data.ts b/src/versions/v1/models/upsert-goal-response-data.ts new file mode 100644 index 00000000..186629a1 --- /dev/null +++ b/src/versions/v1/models/upsert-goal-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Goal } from './goal'; + +/** +* +* @export +* @interface UpsertGoalResponseData +*/ +export interface UpsertGoalResponseData { + /** + * + * @type {Goal} + */ + 'goal': Goal; +} + diff --git a/src/versions/v1/models/upsert-goal-response.ts b/src/versions/v1/models/upsert-goal-response.ts new file mode 100644 index 00000000..547c111e --- /dev/null +++ b/src/versions/v1/models/upsert-goal-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UpsertGoalResponseData } from './upsert-goal-response-data'; + +/** +* +* @export +* @interface UpsertGoalResponse +*/ +export interface UpsertGoalResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {UpsertGoalResponseData} + */ + 'data'?: UpsertGoalResponseData; +} + diff --git a/src/versions/v1/models/upsert-lead-label-response.ts b/src/versions/v1/models/upsert-lead-label-response.ts new file mode 100644 index 00000000..df2af1a5 --- /dev/null +++ b/src/versions/v1/models/upsert-lead-label-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadLabel } from './lead-label'; + +/** +* +* @export +* @interface UpsertLeadLabelResponse +*/ +export interface UpsertLeadLabelResponse { + /** + * + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {LeadLabel} + */ + 'data'?: LeadLabel; +} + diff --git a/src/versions/v1/models/upsert-note-response.ts b/src/versions/v1/models/upsert-note-response.ts new file mode 100644 index 00000000..40cc3a03 --- /dev/null +++ b/src/versions/v1/models/upsert-note-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Note } from './note'; + +/** +* +* @export +* @interface UpsertNoteResponse +*/ +export interface UpsertNoteResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Note} + */ + 'data'?: Note; +} + diff --git a/src/versions/v1/models/upsert-role-settings-response-data-data.ts b/src/versions/v1/models/upsert-role-settings-response-data-data.ts new file mode 100644 index 00000000..09a61ea4 --- /dev/null +++ b/src/versions/v1/models/upsert-role-settings-response-data-data.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The response data +* @export +* @interface UpsertRoleSettingsResponseDataData +*/ +export interface UpsertRoleSettingsResponseDataData { + /** + * The ID of the role + * @type {number} + */ + 'id'?: number; + /** + * The setting + * @type {number} + */ + 'deal_default_visibility'?: UpsertRoleSettingsResponseDataDataDealDefaultVisibilityConst; +} + + export const UpsertRoleSettingsResponseDataDataDealDefaultVisibilityConst = { + NUMBER_1: 1, + NUMBER_3: 3, + NUMBER_5: 5, + NUMBER_7: 7 + } as const; + + export type UpsertRoleSettingsResponseDataDataDealDefaultVisibilityConst = typeof UpsertRoleSettingsResponseDataDataDealDefaultVisibilityConst[keyof typeof UpsertRoleSettingsResponseDataDataDealDefaultVisibilityConst]; + + diff --git a/src/versions/v1/models/upsert-role-settings-response-data.ts b/src/versions/v1/models/upsert-role-settings-response-data.ts new file mode 100644 index 00000000..4843dccc --- /dev/null +++ b/src/versions/v1/models/upsert-role-settings-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UpsertRoleSettingsResponseDataData } from './upsert-role-settings-response-data-data'; + +/** +* +* @export +* @interface UpsertRoleSettingsResponseData +*/ +export interface UpsertRoleSettingsResponseData { + /** + * + * @type {UpsertRoleSettingsResponseDataData} + */ + 'data'?: UpsertRoleSettingsResponseDataData; +} + diff --git a/src/versions/v1/models/upsert-role-settings-response.ts b/src/versions/v1/models/upsert-role-settings-response.ts new file mode 100644 index 00000000..6cdd6357 --- /dev/null +++ b/src/versions/v1/models/upsert-role-settings-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { UpsertRoleSettingsResponseData } from './upsert-role-settings-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { UpsertRoleSettingsResponseDataData } from './upsert-role-settings-response-data-data'; + +/** + * @type UpsertRoleSettingsResponse + * @export + */ +export type UpsertRoleSettingsResponse = BaseResponse & UpsertRoleSettingsResponseData; + + diff --git a/src/versions/v1/models/upsert-stage-response.ts b/src/versions/v1/models/upsert-stage-response.ts new file mode 100644 index 00000000..8809d02b --- /dev/null +++ b/src/versions/v1/models/upsert-stage-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseStage1 } from './base-stage1'; + +/** +* +* @export +* @interface UpsertStageResponse +*/ +export interface UpsertStageResponse { + /** + * If the request was successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {BaseStage1} + */ + 'data'?: BaseStage1; +} + diff --git a/src/versions/v1/models/user-access.ts b/src/versions/v1/models/user-access.ts new file mode 100644 index 00000000..afd9b3d6 --- /dev/null +++ b/src/versions/v1/models/user-access.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UserAccess +*/ +export interface UserAccess { + /** + * + * @type {string} + */ + 'app'?: UserAccessAppConst; + /** + * + * @type {boolean} + */ + 'admin'?: boolean; + /** + * + * @type {string} + */ + 'permission_set_id'?: string; +} + + export const UserAccessAppConst = { + sales: 'sales', + projects: 'projects', + campaigns: 'campaigns', + global: 'global', + account_settings: 'account_settings' + } as const; + + export type UserAccessAppConst = typeof UserAccessAppConst[keyof typeof UserAccessAppConst]; + + diff --git a/src/versions/v1/models/user-access1.ts b/src/versions/v1/models/user-access1.ts new file mode 100644 index 00000000..feca2904 --- /dev/null +++ b/src/versions/v1/models/user-access1.ts @@ -0,0 +1,50 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UserAccess1 +*/ +export interface UserAccess1 { + /** + * + * @type {string} + */ + 'app': UserAccess1AppConst; + /** + * + * @type {boolean} + */ + 'admin'?: boolean; + /** + * + * @type {string} + */ + 'permission_set_id'?: string; +} + + export const UserAccess1AppConst = { + sales: 'sales', + projects: 'projects', + campaigns: 'campaigns', + global: 'global', + account_settings: 'account_settings' + } as const; + + export type UserAccess1AppConst = typeof UserAccess1AppConst[keyof typeof UserAccess1AppConst]; + + diff --git a/src/versions/v1/models/user-data-with-id-all-of.ts b/src/versions/v1/models/user-data-with-id-all-of.ts new file mode 100644 index 00000000..37c885bb --- /dev/null +++ b/src/versions/v1/models/user-data-with-id-all-of.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UserDataWithIdAllOf +*/ +export interface UserDataWithIdAllOf { + /** + * The ID of the user + * @type {number} + */ + 'id'?: number; + /** + * The name of the user + * @type {string} + */ + 'name'?: string; + /** + * The email of the user + * @type {string} + */ + 'email'?: string; + /** + * Whether the user has picture or not. 0 = No picture, 1 = Has picture. + * @type {number} + */ + 'has_pic'?: number; + /** + * The user picture hash + * @type {string} + */ + 'pic_hash'?: string | null; + /** + * Whether the user is active or not + * @type {boolean} + */ + 'active_flag'?: boolean; +} + diff --git a/src/versions/v1/models/user-data-with-id.ts b/src/versions/v1/models/user-data-with-id.ts new file mode 100644 index 00000000..bd1fcf94 --- /dev/null +++ b/src/versions/v1/models/user-data-with-id.ts @@ -0,0 +1,26 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UserDataWithIdAllOf } from './user-data-with-id-all-of'; + +/** + * @type UserDataWithId + * @export + */ +export type UserDataWithId = UserDataWithIdAllOf; + + diff --git a/src/versions/v1/models/user-ids-all-of.ts b/src/versions/v1/models/user-ids-all-of.ts new file mode 100644 index 00000000..114ec3d8 --- /dev/null +++ b/src/versions/v1/models/user-ids-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UserIdsAllOf +*/ +export interface UserIdsAllOf { + /** + * The list of user IDs + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v1/models/user-ids.ts b/src/versions/v1/models/user-ids.ts new file mode 100644 index 00000000..39be2aff --- /dev/null +++ b/src/versions/v1/models/user-ids.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { UserIdsAllOf } from './user-ids-all-of'; + +/** + * @type UserIds + * @export + */ +export type UserIds = BaseResponse & UserIdsAllOf; + + diff --git a/src/versions/v1/models/user-provider-link-error-response.ts b/src/versions/v1/models/user-provider-link-error-response.ts new file mode 100644 index 00000000..31322c8c --- /dev/null +++ b/src/versions/v1/models/user-provider-link-error-response.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UserProviderLinkErrorResponse +*/ +export interface UserProviderLinkErrorResponse { + /** + * Boolean that indicates whether the request was successful or not + * @type {boolean} + */ + 'success': boolean; + /** + * The error message of the request + * @type {string} + */ + 'message': string; +} + diff --git a/src/versions/v1/models/user-settings-item.ts b/src/versions/v1/models/user-settings-item.ts new file mode 100644 index 00000000..f11cd3b6 --- /dev/null +++ b/src/versions/v1/models/user-settings-item.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UserSettingsItem +*/ +export interface UserSettingsItem { + /** + * If the vendors are allowed to be part of the Marketplace team or not + * @type {boolean} + */ + 'marketplace_team'?: boolean; + /** + * The number of results shown in list by default + * @type {number} + */ + 'list_limit'?: number; + /** + * Whether beta app is enabled + * @type {boolean} + */ + 'beta_app'?: boolean; + /** + * Prevent salesphone call to override + * @type {boolean} + */ + 'prevent_salesphone_callto_override'?: boolean; + /** + * The destination of file upload + * @type {string} + */ + 'file_upload_destination'?: string; + /** + * The call to link syntax + * @type {string} + */ + 'callto_link_syntax'?: string; + /** + * Whether the expected close date of the deal is filled automatically or not + * @type {boolean} + */ + 'autofill_deal_expected_close_date'?: boolean; + /** + * Allow the vendors to duplicate a person + * @type {string} + */ + 'person_duplicate_condition'?: string; +} + diff --git a/src/versions/v1/models/webhooks-bad-request-response-all-of.ts b/src/versions/v1/models/webhooks-bad-request-response-all-of.ts new file mode 100644 index 00000000..c2283b83 --- /dev/null +++ b/src/versions/v1/models/webhooks-bad-request-response-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface WebhooksBadRequestResponseAllOf +*/ +export interface WebhooksBadRequestResponseAllOf { + /** + * List of errors + * @type {object} + */ + 'errors'?: object; +} + diff --git a/src/versions/v1/models/webhooks-bad-request-response.ts b/src/versions/v1/models/webhooks-bad-request-response.ts new file mode 100644 index 00000000..715a2afc --- /dev/null +++ b/src/versions/v1/models/webhooks-bad-request-response.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v1 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { WebhooksBadRequestResponseAllOf } from './webhooks-bad-request-response-all-of'; + +/** + * @type WebhooksBadRequestResponse + * @export + */ +export type WebhooksBadRequestResponse = BaseResponse & WebhooksBadRequestResponseAllOf; + + diff --git a/src/versions/v2/api.ts b/src/versions/v2/api.ts new file mode 100644 index 00000000..09a949c4 --- /dev/null +++ b/src/versions/v2/api.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +export * from './api/activities-api'; +export * from './api/beta-api'; +export * from './api/deals-api'; +export * from './api/item-search-api'; +export * from './api/leads-api'; +export * from './api/organizations-api'; +export * from './api/persons-api'; +export * from './api/pipelines-api'; +export * from './api/products-api'; +export * from './api/stages-api'; + diff --git a/src/versions/v2/api/activities-api.ts b/src/versions/v2/api/activities-api.ts new file mode 100644 index 00000000..097dc15f --- /dev/null +++ b/src/versions/v2/api/activities-api.ts @@ -0,0 +1,651 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddActivityRequest } from '../models'; +// @ts-ignore +import { DeleteActivityResponse } from '../models'; +// @ts-ignore +import { GetActivitiesResponse } from '../models'; +// @ts-ignore +import { UpsertActivityResponse } from '../models'; +/** + * ActivitiesApi - axios parameter creator + * @export + */ +export const ActivitiesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new activity. + * @summary Add a new activity + * @param {AddActivityRequest} [AddActivityRequest] + + * @throws {RequiredError} + */ + addActivity: async (AddActivityRequest?: AddActivityRequest, ): Promise => { + const localVarPath = `/activities`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddActivityRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. + * @summary Delete an activity + * @param {number} id The ID of the activity + + * @throws {RequiredError} + */ + deleteActivity: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteActivity', 'id', id) + const localVarPath = `/activities/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all activities. + * @summary Get all activities + * @param {number} [filter_id] If supplied, only activities matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only activities with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only activities with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + getActivities: async (filter_id?: number, ids?: string, owner_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'attendees', limit?: number, cursor?: string, ): Promise => { + const localVarPath = `/activities`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (updated_since !== undefined) { + localVarQueryParameter['updated_since'] = updated_since; + } + + if (updated_until !== undefined) { + localVarQueryParameter['updated_until'] = updated_until; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific activity. + * @summary Get details of an activity + * @param {number} id The ID of the activity + * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include + + * @throws {RequiredError} + */ + getActivity: async (id: number, include_fields?: 'attendees', ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getActivity', 'id', id) + const localVarPath = `/activities/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of an activity. + * @summary Update an activity + * @param {number} id The ID of the activity + * @param {AddActivityRequest} [AddActivityRequest] + + * @throws {RequiredError} + */ + updateActivity: async (id: number, AddActivityRequest?: AddActivityRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateActivity', 'id', id) + const localVarPath = `/activities/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddActivityRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * ActivitiesApi - functional programming interface + * @export + */ +export const ActivitiesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ActivitiesApiAxiosParamCreator(configuration) + return { + /** + * Adds a new activity. + * @summary Add a new activity + * @param {AddActivityRequest} [AddActivityRequest] + + * @throws {RequiredError} + */ + async addActivity(AddActivityRequest?: AddActivityRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addActivity(AddActivityRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. + * @summary Delete an activity + * @param {number} id The ID of the activity + + * @throws {RequiredError} + */ + async deleteActivity(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivity(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all activities. + * @summary Get all activities + * @param {number} [filter_id] If supplied, only activities matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only activities with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only activities with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async getActivities(filter_id?: number, ids?: string, owner_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'attendees', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(filter_id, ids, owner_id, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific activity. + * @summary Get details of an activity + * @param {number} id The ID of the activity + * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include + + * @throws {RequiredError} + */ + async getActivity(id: number, include_fields?: 'attendees', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getActivity(id, include_fields, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of an activity. + * @summary Update an activity + * @param {number} id The ID of the activity + * @param {AddActivityRequest} [AddActivityRequest] + + * @throws {RequiredError} + */ + async updateActivity(id: number, AddActivityRequest?: AddActivityRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateActivity(id, AddActivityRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ActivitiesApi - factory interface + * @export + */ +export const ActivitiesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ActivitiesApiFp(configuration) + return { + /** + * Adds a new activity. + * @summary Add a new activity + * @param {ActivitiesApiAddActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addActivity(requestParameters: ActivitiesApiAddActivityRequest = {}, ): Promise { + return localVarFp.addActivity(requestParameters.AddActivityRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. + * @summary Delete an activity + * @param {ActivitiesApiDeleteActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteActivity(requestParameters: ActivitiesApiDeleteActivityRequest, ): Promise { + return localVarFp.deleteActivity(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all activities. + * @summary Get all activities + * @param {ActivitiesApiGetActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getActivities(requestParameters: ActivitiesApiGetActivitiesRequest = {}, ): Promise { + return localVarFp.getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific activity. + * @summary Get details of an activity + * @param {ActivitiesApiGetActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getActivity(requestParameters: ActivitiesApiGetActivityRequest, ): Promise { + return localVarFp.getActivity(requestParameters.id, requestParameters.include_fields, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of an activity. + * @summary Update an activity + * @param {ActivitiesApiUpdateActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateActivity(requestParameters: ActivitiesApiUpdateActivityRequest, ): Promise { + return localVarFp.updateActivity(requestParameters.id, requestParameters.AddActivityRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addActivity operation in ActivitiesApi. + * @export + * @interface ActivitiesApiAddActivityRequest + */ +export interface ActivitiesApiAddActivityRequest { + /** + * + * @type {AddActivityRequest} + * @memberof ActivitiesApiAddActivity + */ + readonly AddActivityRequest?: AddActivityRequest +} + +/** + * Request parameters for deleteActivity operation in ActivitiesApi. + * @export + * @interface ActivitiesApiDeleteActivityRequest + */ +export interface ActivitiesApiDeleteActivityRequest { + /** + * The ID of the activity + * @type {number} + * @memberof ActivitiesApiDeleteActivity + */ + readonly id: number +} + +/** + * Request parameters for getActivities operation in ActivitiesApi. + * @export + * @interface ActivitiesApiGetActivitiesRequest + */ +export interface ActivitiesApiGetActivitiesRequest { + /** + * If supplied, only activities matching the specified filter are returned + * @type {number} + * @memberof ActivitiesApiGetActivities + */ + readonly filter_id?: number + + /** + * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @type {string} + * @memberof ActivitiesApiGetActivities + */ + readonly ids?: string + + /** + * If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof ActivitiesApiGetActivities + */ + readonly owner_id?: number + + /** + * If set, only activities with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof ActivitiesApiGetActivities + */ + readonly updated_since?: string + + /** + * If set, only activities with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof ActivitiesApiGetActivities + */ + readonly updated_until?: string + + /** + * The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @type {'id' | 'update_time' | 'add_time'} + * @memberof ActivitiesApiGetActivities + */ + readonly sort_by?: 'id' | 'update_time' | 'add_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof ActivitiesApiGetActivities + */ + readonly sort_direction?: 'asc' | 'desc' + + /** + * Optional comma separated string array of additional fields to include + * @type {'attendees'} + * @memberof ActivitiesApiGetActivities + */ + readonly include_fields?: 'attendees' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof ActivitiesApiGetActivities + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof ActivitiesApiGetActivities + */ + readonly cursor?: string +} + +/** + * Request parameters for getActivity operation in ActivitiesApi. + * @export + * @interface ActivitiesApiGetActivityRequest + */ +export interface ActivitiesApiGetActivityRequest { + /** + * The ID of the activity + * @type {number} + * @memberof ActivitiesApiGetActivity + */ + readonly id: number + + /** + * Optional comma separated string array of additional fields to include + * @type {'attendees'} + * @memberof ActivitiesApiGetActivity + */ + readonly include_fields?: 'attendees' +} + +/** + * Request parameters for updateActivity operation in ActivitiesApi. + * @export + * @interface ActivitiesApiUpdateActivityRequest + */ +export interface ActivitiesApiUpdateActivityRequest { + /** + * The ID of the activity + * @type {number} + * @memberof ActivitiesApiUpdateActivity + */ + readonly id: number + + /** + * + * @type {AddActivityRequest} + * @memberof ActivitiesApiUpdateActivity + */ + readonly AddActivityRequest?: AddActivityRequest +} + +/** + * ActivitiesApi - object-oriented interface + * @export + * @class ActivitiesApi + * @extends {BaseAPI} + */ +export class ActivitiesApi extends BaseAPI { + /** + * Adds a new activity. + * @summary Add a new activity + * @param {ActivitiesApiAddActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ActivitiesApi + */ + public addActivity(requestParameters: ActivitiesApiAddActivityRequest = {}, ) { + return ActivitiesApiFp(this.configuration).addActivity(requestParameters.AddActivityRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. + * @summary Delete an activity + * @param {ActivitiesApiDeleteActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ActivitiesApi + */ + public deleteActivity(requestParameters: ActivitiesApiDeleteActivityRequest, ) { + return ActivitiesApiFp(this.configuration).deleteActivity(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all activities. + * @summary Get all activities + * @param {ActivitiesApiGetActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ActivitiesApi + */ + public getActivities(requestParameters: ActivitiesApiGetActivitiesRequest = {}, ) { + return ActivitiesApiFp(this.configuration).getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific activity. + * @summary Get details of an activity + * @param {ActivitiesApiGetActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ActivitiesApi + */ + public getActivity(requestParameters: ActivitiesApiGetActivityRequest, ) { + return ActivitiesApiFp(this.configuration).getActivity(requestParameters.id, requestParameters.include_fields, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of an activity. + * @summary Update an activity + * @param {ActivitiesApiUpdateActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ActivitiesApi + */ + public updateActivity(requestParameters: ActivitiesApiUpdateActivityRequest, ) { + return ActivitiesApiFp(this.configuration).updateActivity(requestParameters.id, requestParameters.AddActivityRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v2/api/beta-api.ts b/src/versions/v2/api/beta-api.ts new file mode 100644 index 00000000..47f4b1e0 --- /dev/null +++ b/src/versions/v2/api/beta-api.ts @@ -0,0 +1,4646 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddActivityRequest } from '../models'; +// @ts-ignore +import { AddAdditionalDiscountRequestBody } from '../models'; +// @ts-ignore +import { AddAdditionalDiscountResponse } from '../models'; +// @ts-ignore +import { AddDealProductRequest } from '../models'; +// @ts-ignore +import { AddDealProductResponse } from '../models'; +// @ts-ignore +import { AddDealRequest } from '../models'; +// @ts-ignore +import { AddOrganizationRequest } from '../models'; +// @ts-ignore +import { AddPersonRequest } from '../models'; +// @ts-ignore +import { DeleteActivityResponse } from '../models'; +// @ts-ignore +import { DeleteAdditionalDiscountResponse } from '../models'; +// @ts-ignore +import { DeleteDealProductResponse } from '../models'; +// @ts-ignore +import { DeleteDealResponse } from '../models'; +// @ts-ignore +import { DeleteOrganizationResponse } from '../models'; +// @ts-ignore +import { DeletePersonResponse } from '../models'; +// @ts-ignore +import { GetActivitiesResponse } from '../models'; +// @ts-ignore +import { GetAdditionalDiscountsResponse } from '../models'; +// @ts-ignore +import { GetDealSearchResponse } from '../models'; +// @ts-ignore +import { GetDealsProductsResponse } from '../models'; +// @ts-ignore +import { GetDealsResponse } from '../models'; +// @ts-ignore +import { GetItemSearchFieldResponse } from '../models'; +// @ts-ignore +import { GetItemSearchResponse } from '../models'; +// @ts-ignore +import { GetLeadSearchResponse } from '../models'; +// @ts-ignore +import { GetOrganizationSearchResponse } from '../models'; +// @ts-ignore +import { GetOrganizationsResponse } from '../models'; +// @ts-ignore +import { GetPersonSearchResponse } from '../models'; +// @ts-ignore +import { GetPersonsResponse } from '../models'; +// @ts-ignore +import { UpdateAdditionalDiscountRequestBody } from '../models'; +// @ts-ignore +import { UpdateAdditionalDiscountResponse } from '../models'; +// @ts-ignore +import { UpdateDealProductRequest } from '../models'; +// @ts-ignore +import { UpdateDealRequest } from '../models'; +// @ts-ignore +import { UpdateOrganizationRequest } from '../models'; +// @ts-ignore +import { UpdatePersonRequest } from '../models'; +// @ts-ignore +import { UpsertActivityResponse } from '../models'; +// @ts-ignore +import { UpsertDealResponse } from '../models'; +// @ts-ignore +import { UpsertOrganizationResponse } from '../models'; +// @ts-ignore +import { UpsertPersonResponse } from '../models'; +/** + * BetaApi - axios parameter creator + * @export + */ +export const BetaApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new activity. + * @summary Add a new activity + * @param {AddActivityRequest} [AddActivityRequest] + + * @throws {RequiredError} + */ + addActivity: async (AddActivityRequest?: AddActivityRequest, ): Promise => { + const localVarPath = `/activities`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddActivityRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a new deal. + * @summary Add a new deal + * @param {AddDealRequest} [AddDealRequest] + + * @throws {RequiredError} + */ + addDeal: async (AddDealRequest?: AddDealRequest, ): Promise => { + const localVarPath = `/deals`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddDealRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {number} id The ID of the deal + * @param {AddDealProductRequest} [AddDealProductRequest] + + * @throws {RequiredError} + */ + addDealProduct: async (id: number, AddDealProductRequest?: AddDealProductRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addDealProduct', 'id', id) + const localVarPath = `/deals/{id}/products` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full", "deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddDealProductRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a new organization. + * @summary Add a new organization + * @param {AddOrganizationRequest} [AddOrganizationRequest] + + * @throws {RequiredError} + */ + addOrganization: async (AddOrganizationRequest?: AddOrganizationRequest, ): Promise => { + const localVarPath = `/organizations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddOrganizationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a new person. + * @summary Add a new person + * @param {AddPersonRequest} [AddPersonRequest] + + * @throws {RequiredError} + */ + addPerson: async (AddPersonRequest?: AddPersonRequest, ): Promise => { + const localVarPath = `/persons`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddPersonRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. + * @summary Delete an activity + * @param {number} id The ID of the activity + + * @throws {RequiredError} + */ + deleteActivity: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteActivity', 'id', id) + const localVarPath = `/activities/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Removes a discount from a deal, changing the deal value if the deal has one-time products attached. + * @summary Delete a discount from a deal + * @param {number} id The ID of the deal + * @param {number} discount_id The ID of the discount + + * @throws {RequiredError} + */ + deleteAdditionalDiscount: async (id: number, discount_id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteAdditionalDiscount', 'id', id) + // verify required parameter 'discount_id' is not null or undefined + assertParamExists('deleteAdditionalDiscount', 'discount_id', discount_id) + const localVarPath = `/deals/{id}/discounts/{discount_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"discount_id"}}`, encodeURIComponent(String(discount_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + deleteDeal: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteDeal', 'id', id) + const localVarPath = `/deals/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a product attachment from a deal, using the `product_attachment_id`. + * @summary Delete an attached product from a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The product attachment ID + + * @throws {RequiredError} + */ + deleteDealProduct: async (id: number, product_attachment_id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteDealProduct', 'id', id) + // verify required parameter 'product_attachment_id' is not null or undefined + assertParamExists('deleteDealProduct', 'product_attachment_id', product_attachment_id) + const localVarPath = `/deals/{id}/products/{product_attachment_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"product_attachment_id"}}`, encodeURIComponent(String(product_attachment_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete a organization + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + deleteOrganization: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteOrganization', 'id', id) + const localVarPath = `/organizations/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + deletePerson: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deletePerson', 'id', id) + const localVarPath = `/persons/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all activities. + * @summary Get all activities + * @param {number} [filter_id] If supplied, only activities matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only activities with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only activities with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + getActivities: async (filter_id?: number, ids?: string, owner_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'attendees', limit?: number, cursor?: string, ): Promise => { + const localVarPath = `/activities`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (updated_since !== undefined) { + localVarQueryParameter['updated_since'] = updated_since; + } + + if (updated_until !== undefined) { + localVarQueryParameter['updated_until'] = updated_until; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific activity. + * @summary Get details of an activity + * @param {number} id The ID of the activity + * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include + + * @throws {RequiredError} + */ + getActivity: async (id: number, include_fields?: 'attendees', ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getActivity', 'id', id) + const localVarPath = `/activities/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:read", "activities:full"], configuration) + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists discounts attached to a deal. + * @summary List discounts added to a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + getAdditionalDiscounts: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getAdditionalDiscounts', 'id', id) + const localVarPath = `/deals/{id}/discounts` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific deal. + * @summary Get details of a deal + * @param {number} id The ID of the deal + * @param {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + getDeal: async (id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDeal', 'id', id) + const localVarPath = `/deals/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {number} id The ID of the deal + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {'id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `add_time`, `update_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + + * @throws {RequiredError} + */ + getDealProducts: async (id: number, cursor?: string, limit?: number, sort_by?: 'id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealProducts', 'id', id) + const localVarPath = `/deals/{id}/products` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full", "deals:read", "deals:full"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all deals. + * @summary Get all deals + * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored. + * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @param {number} [pipeline_id] If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored. + * @param {number} [stage_id] If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored. + * @param {'open' | 'won' | 'lost' | 'deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only deals with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only deals with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + getDeals: async (filter_id?: number, ids?: string, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted', updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string, limit?: number, cursor?: string, ): Promise => { + const localVarPath = `/deals`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (person_id !== undefined) { + localVarQueryParameter['person_id'] = person_id; + } + + if (org_id !== undefined) { + localVarQueryParameter['org_id'] = org_id; + } + + if (pipeline_id !== undefined) { + localVarQueryParameter['pipeline_id'] = pipeline_id; + } + + if (stage_id !== undefined) { + localVarQueryParameter['stage_id'] = stage_id; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + if (updated_since !== undefined) { + localVarQueryParameter['updated_since'] = updated_since; + } + + if (updated_until !== undefined) { + localVarQueryParameter['updated_until'] = updated_until; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about products attached to deals + * @summary Get deal products of several deals + * @param {Array} deal_ids An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {'id' | 'deal_id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `deal_id`, `add_time`, `update_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + + * @throws {RequiredError} + */ + getDealsProducts: async (deal_ids: Array, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise => { + // verify required parameter 'deal_ids' is not null or undefined + assertParamExists('getDealsProducts', 'deal_ids', deal_ids) + const localVarPath = `/deals/products`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full", "deals:read", "deals:full"], configuration) + + if (deal_ids) { + localVarQueryParameter['deal_ids'] = deal_ids; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific organization. + * @summary Get details of a organization + * @param {number} id The ID of the organization + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + getOrganization: async (id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count', custom_fields?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganization', 'id', id) + const localVarPath = `/organizations/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all organizations. + * @summary Get all organizations + * @param {number} [filter_id] If supplied, only organizations matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only organization owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only organizations with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only organizations with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + getOrganizations: async (filter_id?: number, ids?: string, owner_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count', custom_fields?: string, limit?: number, cursor?: string, ): Promise => { + const localVarPath = `/organizations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (updated_since !== undefined) { + localVarQueryParameter['updated_since'] = updated_since; + } + + if (updated_until !== undefined) { + localVarQueryParameter['updated_until'] = updated_until; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get details of a person + * @param {number} id The ID of the person + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} [include_fields] Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + getPerson: async (id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status', custom_fields?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPerson', 'id', id) + const localVarPath = `/persons/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get all persons + * @param {number} [filter_id] If supplied, only persons matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {number} [org_id] If supplied, only persons linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only persons with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} [include_fields] Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + getPersons: async (filter_id?: number, ids?: string, owner_id?: number, org_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status', custom_fields?: string, limit?: number, cursor?: string, ): Promise => { + const localVarPath = `/persons`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (org_id !== undefined) { + localVarQueryParameter['org_id'] = org_id; + } + + if (updated_since !== undefined) { + localVarQueryParameter['updated_since'] = updated_since; + } + + if (updated_until !== undefined) { + localVarQueryParameter['updated_until'] = updated_until; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * @summary Add a discount to a deal + * @param {number} id The ID of the deal + * @param {AddAdditionalDiscountRequestBody} [AddAdditionalDiscountRequestBody] + + * @throws {RequiredError} + */ + postAdditionalDiscount: async (id: number, AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('postAdditionalDiscount', 'id', id) + const localVarPath = `/deals/{id}/discounts` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddAdditionalDiscountRequestBody, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. + * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. + * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. + * @param {'deal.cc_email'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchDeals: async (term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: 'deal.cc_email', limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchDeals', 'term', term) + const localVarPath = `/deals/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (person_id !== undefined) { + localVarQueryParameter['person_id'] = person_id; + } + + if (organization_id !== undefined) { + localVarQueryParameter['organization_id'] = organization_id; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all. + * @param {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<br/> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. + * @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {'deal.cc_email' | 'person.picture' | 'product.price'} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchItem: async (term: string, item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project', fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description', search_for_related_items?: boolean, exact_match?: boolean, include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price', limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchItem', 'term', term) + const localVarPath = `/itemSearch`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (item_types !== undefined) { + localVarQueryParameter['item_types'] = item_types; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (search_for_related_items !== undefined) { + localVarQueryParameter['search_for_related_items'] = search_for_related_items; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if `match` is `exact`). Please note that the search term has to be URL encoded. + * @param {'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project'} entity_type The type of the field to perform the search from + * @param {string} field The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {'exact' | 'beginning' | 'middle'} [match] The type of match used against the term. The search <b>is</b> case sensitive.<br/><br/> E.g. in case of searching for a value `monkey`, <ul> <li>with `exact` match, you will only find it if term is `monkey`</li> <li>with `beginning` match, you will only find it if the term matches the beginning or the whole string, e.g. `monk` and `monkey`</li> <li>with `middle` match, you will find the it if the term matches any substring of the value, e.g. `onk` and `ke`</li> </ul>. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchItemByField: async (term: string, entity_type: 'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project', field: string, match?: 'exact' | 'beginning' | 'middle', limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchItemByField', 'term', term) + // verify required parameter 'entity_type' is not null or undefined + assertParamExists('searchItemByField', 'entity_type', entity_type) + // verify required parameter 'field' is not null or undefined + assertParamExists('searchItemByField', 'field', field) + const localVarPath = `/itemSearch/field`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (entity_type !== undefined) { + localVarQueryParameter['entity_type'] = entity_type; + } + + if (match !== undefined) { + localVarQueryParameter['match'] = match; + } + + if (field !== undefined) { + localVarQueryParameter['field'] = field; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. + * @param {number} [organization_id] Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. + * @param {'lead.was_seen'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchLeads: async (term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: 'lead.was_seen', limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchLeads', 'term', term) + const localVarPath = `/leads/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (person_id !== undefined) { + localVarQueryParameter['person_id'] = person_id; + } + + if (organization_id !== undefined) { + localVarQueryParameter['organization_id'] = organization_id; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'address' | 'custom_fields' | 'notes' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchOrganization: async (term: string, fields?: 'address' | 'custom_fields' | 'notes' | 'name', exact_match?: boolean, limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchOrganization', 'term', term) + const localVarPath = `/organizations/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. + * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchPersons: async (term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchPersons', 'term', term) + const localVarPath = `/persons/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (organization_id !== undefined) { + localVarQueryParameter['organization_id'] = organization_id; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of an activity. + * @summary Update an activity + * @param {number} id The ID of the activity + * @param {AddActivityRequest} [AddActivityRequest] + + * @throws {RequiredError} + */ + updateActivity: async (id: number, AddActivityRequest?: AddActivityRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateActivity', 'id', id) + const localVarPath = `/activities/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["activities:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddActivityRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached. + * @summary Update a discount added to a deal + * @param {number} id The ID of the deal + * @param {number} discount_id The ID of the discount + * @param {UpdateAdditionalDiscountRequestBody} [UpdateAdditionalDiscountRequestBody] + + * @throws {RequiredError} + */ + updateAdditionalDiscount: async (id: number, discount_id: number, UpdateAdditionalDiscountRequestBody?: UpdateAdditionalDiscountRequestBody, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateAdditionalDiscount', 'id', id) + // verify required parameter 'discount_id' is not null or undefined + assertParamExists('updateAdditionalDiscount', 'discount_id', discount_id) + const localVarPath = `/deals/{id}/discounts/{discount_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"discount_id"}}`, encodeURIComponent(String(discount_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateAdditionalDiscountRequestBody, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a deal. + * @summary Update a deal + * @param {number} id The ID of the deal + * @param {UpdateDealRequest} [UpdateDealRequest] + + * @throws {RequiredError} + */ + updateDeal: async (id: number, UpdateDealRequest?: UpdateDealRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateDeal', 'id', id) + const localVarPath = `/deals/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateDealRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The ID of the deal-product (the ID of the product attached to the deal) + * @param {UpdateDealProductRequest} [UpdateDealProductRequest] + + * @throws {RequiredError} + */ + updateDealProduct: async (id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateDealProduct', 'id', id) + // verify required parameter 'product_attachment_id' is not null or undefined + assertParamExists('updateDealProduct', 'product_attachment_id', product_attachment_id) + const localVarPath = `/deals/{id}/products/{product_attachment_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"product_attachment_id"}}`, encodeURIComponent(String(product_attachment_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full", "deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateDealProductRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a organization. + * @summary Update a organization + * @param {number} id The ID of the organization + * @param {UpdateOrganizationRequest} [UpdateOrganizationRequest] + + * @throws {RequiredError} + */ + updateOrganization: async (id: number, UpdateOrganizationRequest?: UpdateOrganizationRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateOrganization', 'id', id) + const localVarPath = `/organizations/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateOrganizationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a person. + * @summary Update a person + * @param {number} id The ID of the person + * @param {UpdatePersonRequest} [UpdatePersonRequest] + + * @throws {RequiredError} + */ + updatePerson: async (id: number, UpdatePersonRequest?: UpdatePersonRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updatePerson', 'id', id) + const localVarPath = `/persons/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdatePersonRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * BetaApi - functional programming interface + * @export + */ +export const BetaApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = BetaApiAxiosParamCreator(configuration) + return { + /** + * Adds a new activity. + * @summary Add a new activity + * @param {AddActivityRequest} [AddActivityRequest] + + * @throws {RequiredError} + */ + async addActivity(AddActivityRequest?: AddActivityRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addActivity(AddActivityRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a new deal. + * @summary Add a new deal + * @param {AddDealRequest} [AddDealRequest] + + * @throws {RequiredError} + */ + async addDeal(AddDealRequest?: AddDealRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addDeal(AddDealRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {number} id The ID of the deal + * @param {AddDealProductRequest} [AddDealProductRequest] + + * @throws {RequiredError} + */ + async addDealProduct(id: number, AddDealProductRequest?: AddDealProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addDealProduct(id, AddDealProductRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a new organization. + * @summary Add a new organization + * @param {AddOrganizationRequest} [AddOrganizationRequest] + + * @throws {RequiredError} + */ + async addOrganization(AddOrganizationRequest?: AddOrganizationRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganization(AddOrganizationRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a new person. + * @summary Add a new person + * @param {AddPersonRequest} [AddPersonRequest] + + * @throws {RequiredError} + */ + async addPerson(AddPersonRequest?: AddPersonRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addPerson(AddPersonRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. + * @summary Delete an activity + * @param {number} id The ID of the activity + + * @throws {RequiredError} + */ + async deleteActivity(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteActivity(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Removes a discount from a deal, changing the deal value if the deal has one-time products attached. + * @summary Delete a discount from a deal + * @param {number} id The ID of the deal + * @param {number} discount_id The ID of the discount + + * @throws {RequiredError} + */ + async deleteAdditionalDiscount(id: number, discount_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAdditionalDiscount(id, discount_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + async deleteDeal(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeal(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a product attachment from a deal, using the `product_attachment_id`. + * @summary Delete an attached product from a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The product attachment ID + + * @throws {RequiredError} + */ + async deleteDealProduct(id: number, product_attachment_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDealProduct(id, product_attachment_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete a organization + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + async deleteOrganization(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganization(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + async deletePerson(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePerson(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all activities. + * @summary Get all activities + * @param {number} [filter_id] If supplied, only activities matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only activities with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only activities with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async getActivities(filter_id?: number, ids?: string, owner_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'attendees', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getActivities(filter_id, ids, owner_id, updated_since, updated_until, sort_by, sort_direction, include_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific activity. + * @summary Get details of an activity + * @param {number} id The ID of the activity + * @param {'attendees'} [include_fields] Optional comma separated string array of additional fields to include + + * @throws {RequiredError} + */ + async getActivity(id: number, include_fields?: 'attendees', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getActivity(id, include_fields, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists discounts attached to a deal. + * @summary List discounts added to a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + async getAdditionalDiscounts(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAdditionalDiscounts(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific deal. + * @summary Get details of a deal + * @param {number} id The ID of the deal + * @param {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + async getDeal(id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDeal(id, include_fields, custom_fields, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {number} id The ID of the deal + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {'id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `add_time`, `update_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + + * @throws {RequiredError} + */ + async getDealProducts(id: number, cursor?: string, limit?: number, sort_by?: 'id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealProducts(id, cursor, limit, sort_by, sort_direction, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all deals. + * @summary Get all deals + * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored. + * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @param {number} [pipeline_id] If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored. + * @param {number} [stage_id] If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored. + * @param {'open' | 'won' | 'lost' | 'deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only deals with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only deals with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async getDeals(filter_id?: number, ids?: string, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted', updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string, limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDeals(filter_id, ids, owner_id, person_id, org_id, pipeline_id, stage_id, status, updated_since, updated_until, sort_by, sort_direction, include_fields, custom_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about products attached to deals + * @summary Get deal products of several deals + * @param {Array} deal_ids An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {'id' | 'deal_id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `deal_id`, `add_time`, `update_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + + * @throws {RequiredError} + */ + async getDealsProducts(deal_ids: Array, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealsProducts(deal_ids, cursor, limit, sort_by, sort_direction, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific organization. + * @summary Get details of a organization + * @param {number} id The ID of the organization + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + async getOrganization(id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count', custom_fields?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganization(id, include_fields, custom_fields, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all organizations. + * @summary Get all organizations + * @param {number} [filter_id] If supplied, only organizations matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only organization owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only organizations with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only organizations with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async getOrganizations(filter_id?: number, ids?: string, owner_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count', custom_fields?: string, limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizations(filter_id, ids, owner_id, updated_since, updated_until, sort_by, sort_direction, include_fields, custom_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get details of a person + * @param {number} id The ID of the person + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} [include_fields] Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + async getPerson(id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status', custom_fields?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, include_fields, custom_fields, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get all persons + * @param {number} [filter_id] If supplied, only persons matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {number} [org_id] If supplied, only persons linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only persons with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} [include_fields] Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async getPersons(filter_id?: number, ids?: string, owner_id?: number, org_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status', custom_fields?: string, limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersons(filter_id, ids, owner_id, org_id, updated_since, updated_until, sort_by, sort_direction, include_fields, custom_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * @summary Add a discount to a deal + * @param {number} id The ID of the deal + * @param {AddAdditionalDiscountRequestBody} [AddAdditionalDiscountRequestBody] + + * @throws {RequiredError} + */ + async postAdditionalDiscount(id: number, AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.postAdditionalDiscount(id, AddAdditionalDiscountRequestBody, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. + * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. + * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. + * @param {'deal.cc_email'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchDeals(term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: 'deal.cc_email', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchDeals(term, fields, exact_match, person_id, organization_id, status, include_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all. + * @param {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<br/> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. + * @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {'deal.cc_email' | 'person.picture' | 'product.price'} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchItem(term: string, item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project', fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description', search_for_related_items?: boolean, exact_match?: boolean, include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchItem(term, item_types, fields, search_for_related_items, exact_match, include_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if `match` is `exact`). Please note that the search term has to be URL encoded. + * @param {'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project'} entity_type The type of the field to perform the search from + * @param {string} field The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {'exact' | 'beginning' | 'middle'} [match] The type of match used against the term. The search <b>is</b> case sensitive.<br/><br/> E.g. in case of searching for a value `monkey`, <ul> <li>with `exact` match, you will only find it if term is `monkey`</li> <li>with `beginning` match, you will only find it if the term matches the beginning or the whole string, e.g. `monk` and `monkey`</li> <li>with `middle` match, you will find the it if the term matches any substring of the value, e.g. `onk` and `ke`</li> </ul>. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchItemByField(term: string, entity_type: 'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project', field: string, match?: 'exact' | 'beginning' | 'middle', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchItemByField(term, entity_type, field, match, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. + * @param {number} [organization_id] Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. + * @param {'lead.was_seen'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchLeads(term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: 'lead.was_seen', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchLeads(term, fields, exact_match, person_id, organization_id, include_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'address' | 'custom_fields' | 'notes' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchOrganization(term: string, fields?: 'address' | 'custom_fields' | 'notes' | 'name', exact_match?: boolean, limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchOrganization(term, fields, exact_match, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. + * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchPersons(term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchPersons(term, fields, exact_match, organization_id, include_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of an activity. + * @summary Update an activity + * @param {number} id The ID of the activity + * @param {AddActivityRequest} [AddActivityRequest] + + * @throws {RequiredError} + */ + async updateActivity(id: number, AddActivityRequest?: AddActivityRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateActivity(id, AddActivityRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached. + * @summary Update a discount added to a deal + * @param {number} id The ID of the deal + * @param {number} discount_id The ID of the discount + * @param {UpdateAdditionalDiscountRequestBody} [UpdateAdditionalDiscountRequestBody] + + * @throws {RequiredError} + */ + async updateAdditionalDiscount(id: number, discount_id: number, UpdateAdditionalDiscountRequestBody?: UpdateAdditionalDiscountRequestBody, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateAdditionalDiscount(id, discount_id, UpdateAdditionalDiscountRequestBody, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a deal. + * @summary Update a deal + * @param {number} id The ID of the deal + * @param {UpdateDealRequest} [UpdateDealRequest] + + * @throws {RequiredError} + */ + async updateDeal(id: number, UpdateDealRequest?: UpdateDealRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeal(id, UpdateDealRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The ID of the deal-product (the ID of the product attached to the deal) + * @param {UpdateDealProductRequest} [UpdateDealProductRequest] + + * @throws {RequiredError} + */ + async updateDealProduct(id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateDealProduct(id, product_attachment_id, UpdateDealProductRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a organization. + * @summary Update a organization + * @param {number} id The ID of the organization + * @param {UpdateOrganizationRequest} [UpdateOrganizationRequest] + + * @throws {RequiredError} + */ + async updateOrganization(id: number, UpdateOrganizationRequest?: UpdateOrganizationRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(id, UpdateOrganizationRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a person. + * @summary Update a person + * @param {number} id The ID of the person + * @param {UpdatePersonRequest} [UpdatePersonRequest] + + * @throws {RequiredError} + */ + async updatePerson(id: number, UpdatePersonRequest?: UpdatePersonRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, UpdatePersonRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * BetaApi - factory interface + * @export + */ +export const BetaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = BetaApiFp(configuration) + return { + /** + * Adds a new activity. + * @summary Add a new activity + * @param {BetaApiAddActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addActivity(requestParameters: BetaApiAddActivityRequest = {}, ): Promise { + return localVarFp.addActivity(requestParameters.AddActivityRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a new deal. + * @summary Add a new deal + * @param {BetaApiAddDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addDeal(requestParameters: BetaApiAddDealRequest = {}, ): Promise { + return localVarFp.addDeal(requestParameters.AddDealRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {BetaApiAddDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addDealProduct(requestParameters: BetaApiAddDealProductRequest, ): Promise { + return localVarFp.addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a new organization. + * @summary Add a new organization + * @param {BetaApiAddOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addOrganization(requestParameters: BetaApiAddOrganizationRequest = {}, ): Promise { + return localVarFp.addOrganization(requestParameters.AddOrganizationRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a new person. + * @summary Add a new person + * @param {BetaApiAddPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addPerson(requestParameters: BetaApiAddPersonRequest = {}, ): Promise { + return localVarFp.addPerson(requestParameters.AddPersonRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. + * @summary Delete an activity + * @param {BetaApiDeleteActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteActivity(requestParameters: BetaApiDeleteActivityRequest, ): Promise { + return localVarFp.deleteActivity(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Removes a discount from a deal, changing the deal value if the deal has one-time products attached. + * @summary Delete a discount from a deal + * @param {BetaApiDeleteAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteAdditionalDiscount(requestParameters: BetaApiDeleteAdditionalDiscountRequest, ): Promise { + return localVarFp.deleteAdditionalDiscount(requestParameters.id, requestParameters.discount_id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {BetaApiDeleteDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteDeal(requestParameters: BetaApiDeleteDealRequest, ): Promise { + return localVarFp.deleteDeal(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a product attachment from a deal, using the `product_attachment_id`. + * @summary Delete an attached product from a deal + * @param {BetaApiDeleteDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteDealProduct(requestParameters: BetaApiDeleteDealProductRequest, ): Promise { + return localVarFp.deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete a organization + * @param {BetaApiDeleteOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteOrganization(requestParameters: BetaApiDeleteOrganizationRequest, ): Promise { + return localVarFp.deleteOrganization(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {BetaApiDeletePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deletePerson(requestParameters: BetaApiDeletePersonRequest, ): Promise { + return localVarFp.deletePerson(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all activities. + * @summary Get all activities + * @param {BetaApiGetActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getActivities(requestParameters: BetaApiGetActivitiesRequest = {}, ): Promise { + return localVarFp.getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific activity. + * @summary Get details of an activity + * @param {BetaApiGetActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getActivity(requestParameters: BetaApiGetActivityRequest, ): Promise { + return localVarFp.getActivity(requestParameters.id, requestParameters.include_fields, ).then((request) => request(axios, basePath)); + }, + /** + * Lists discounts attached to a deal. + * @summary List discounts added to a deal + * @param {BetaApiGetAdditionalDiscountsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getAdditionalDiscounts(requestParameters: BetaApiGetAdditionalDiscountsRequest, ): Promise { + return localVarFp.getAdditionalDiscounts(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific deal. + * @summary Get details of a deal + * @param {BetaApiGetDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDeal(requestParameters: BetaApiGetDealRequest, ): Promise { + return localVarFp.getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(axios, basePath)); + }, + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {BetaApiGetDealProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealProducts(requestParameters: BetaApiGetDealProductsRequest, ): Promise { + return localVarFp.getDealProducts(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all deals. + * @summary Get all deals + * @param {BetaApiGetDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDeals(requestParameters: BetaApiGetDealsRequest = {}, ): Promise { + return localVarFp.getDeals(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about products attached to deals + * @summary Get deal products of several deals + * @param {BetaApiGetDealsProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealsProducts(requestParameters: BetaApiGetDealsProductsRequest, ): Promise { + return localVarFp.getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific organization. + * @summary Get details of a organization + * @param {BetaApiGetOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganization(requestParameters: BetaApiGetOrganizationRequest, ): Promise { + return localVarFp.getOrganization(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all organizations. + * @summary Get all organizations + * @param {BetaApiGetOrganizationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizations(requestParameters: BetaApiGetOrganizationsRequest = {}, ): Promise { + return localVarFp.getOrganizations(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get details of a person + * @param {BetaApiGetPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPerson(requestParameters: BetaApiGetPersonRequest, ): Promise { + return localVarFp.getPerson(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get all persons + * @param {BetaApiGetPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersons(requestParameters: BetaApiGetPersonsRequest = {}, ): Promise { + return localVarFp.getPersons(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.org_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * @summary Add a discount to a deal + * @param {BetaApiPostAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + postAdditionalDiscount(requestParameters: BetaApiPostAdditionalDiscountRequest, ): Promise { + return localVarFp.postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {BetaApiSearchDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchDeals(requestParameters: BetaApiSearchDealsRequest, ): Promise { + return localVarFp.searchDeals(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {BetaApiSearchItemRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchItem(requestParameters: BetaApiSearchItemRequest, ): Promise { + return localVarFp.searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {BetaApiSearchItemByFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchItemByField(requestParameters: BetaApiSearchItemByFieldRequest, ): Promise { + return localVarFp.searchItemByField(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {BetaApiSearchLeadsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchLeads(requestParameters: BetaApiSearchLeadsRequest, ): Promise { + return localVarFp.searchLeads(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {BetaApiSearchOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchOrganization(requestParameters: BetaApiSearchOrganizationRequest, ): Promise { + return localVarFp.searchOrganization(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {BetaApiSearchPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchPersons(requestParameters: BetaApiSearchPersonsRequest, ): Promise { + return localVarFp.searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of an activity. + * @summary Update an activity + * @param {BetaApiUpdateActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateActivity(requestParameters: BetaApiUpdateActivityRequest, ): Promise { + return localVarFp.updateActivity(requestParameters.id, requestParameters.AddActivityRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached. + * @summary Update a discount added to a deal + * @param {BetaApiUpdateAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateAdditionalDiscount(requestParameters: BetaApiUpdateAdditionalDiscountRequest, ): Promise { + return localVarFp.updateAdditionalDiscount(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a deal. + * @summary Update a deal + * @param {BetaApiUpdateDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateDeal(requestParameters: BetaApiUpdateDealRequest, ): Promise { + return localVarFp.updateDeal(requestParameters.id, requestParameters.UpdateDealRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {BetaApiUpdateDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateDealProduct(requestParameters: BetaApiUpdateDealProductRequest, ): Promise { + return localVarFp.updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a organization. + * @summary Update a organization + * @param {BetaApiUpdateOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateOrganization(requestParameters: BetaApiUpdateOrganizationRequest, ): Promise { + return localVarFp.updateOrganization(requestParameters.id, requestParameters.UpdateOrganizationRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a person. + * @summary Update a person + * @param {BetaApiUpdatePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updatePerson(requestParameters: BetaApiUpdatePersonRequest, ): Promise { + return localVarFp.updatePerson(requestParameters.id, requestParameters.UpdatePersonRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addActivity operation in BetaApi. + * @export + * @interface BetaApiAddActivityRequest + */ +export interface BetaApiAddActivityRequest { + /** + * + * @type {AddActivityRequest} + * @memberof BetaApiAddActivity + */ + readonly AddActivityRequest?: AddActivityRequest +} + +/** + * Request parameters for addDeal operation in BetaApi. + * @export + * @interface BetaApiAddDealRequest + */ +export interface BetaApiAddDealRequest { + /** + * + * @type {AddDealRequest} + * @memberof BetaApiAddDeal + */ + readonly AddDealRequest?: AddDealRequest +} + +/** + * Request parameters for addDealProduct operation in BetaApi. + * @export + * @interface BetaApiAddDealProductRequest + */ +export interface BetaApiAddDealProductRequest { + /** + * The ID of the deal + * @type {number} + * @memberof BetaApiAddDealProduct + */ + readonly id: number + + /** + * + * @type {AddDealProductRequest} + * @memberof BetaApiAddDealProduct + */ + readonly AddDealProductRequest?: AddDealProductRequest +} + +/** + * Request parameters for addOrganization operation in BetaApi. + * @export + * @interface BetaApiAddOrganizationRequest + */ +export interface BetaApiAddOrganizationRequest { + /** + * + * @type {AddOrganizationRequest} + * @memberof BetaApiAddOrganization + */ + readonly AddOrganizationRequest?: AddOrganizationRequest +} + +/** + * Request parameters for addPerson operation in BetaApi. + * @export + * @interface BetaApiAddPersonRequest + */ +export interface BetaApiAddPersonRequest { + /** + * + * @type {AddPersonRequest} + * @memberof BetaApiAddPerson + */ + readonly AddPersonRequest?: AddPersonRequest +} + +/** + * Request parameters for deleteActivity operation in BetaApi. + * @export + * @interface BetaApiDeleteActivityRequest + */ +export interface BetaApiDeleteActivityRequest { + /** + * The ID of the activity + * @type {number} + * @memberof BetaApiDeleteActivity + */ + readonly id: number +} + +/** + * Request parameters for deleteAdditionalDiscount operation in BetaApi. + * @export + * @interface BetaApiDeleteAdditionalDiscountRequest + */ +export interface BetaApiDeleteAdditionalDiscountRequest { + /** + * The ID of the deal + * @type {number} + * @memberof BetaApiDeleteAdditionalDiscount + */ + readonly id: number + + /** + * The ID of the discount + * @type {number} + * @memberof BetaApiDeleteAdditionalDiscount + */ + readonly discount_id: number +} + +/** + * Request parameters for deleteDeal operation in BetaApi. + * @export + * @interface BetaApiDeleteDealRequest + */ +export interface BetaApiDeleteDealRequest { + /** + * The ID of the deal + * @type {number} + * @memberof BetaApiDeleteDeal + */ + readonly id: number +} + +/** + * Request parameters for deleteDealProduct operation in BetaApi. + * @export + * @interface BetaApiDeleteDealProductRequest + */ +export interface BetaApiDeleteDealProductRequest { + /** + * The ID of the deal + * @type {number} + * @memberof BetaApiDeleteDealProduct + */ + readonly id: number + + /** + * The product attachment ID + * @type {number} + * @memberof BetaApiDeleteDealProduct + */ + readonly product_attachment_id: number +} + +/** + * Request parameters for deleteOrganization operation in BetaApi. + * @export + * @interface BetaApiDeleteOrganizationRequest + */ +export interface BetaApiDeleteOrganizationRequest { + /** + * The ID of the organization + * @type {number} + * @memberof BetaApiDeleteOrganization + */ + readonly id: number +} + +/** + * Request parameters for deletePerson operation in BetaApi. + * @export + * @interface BetaApiDeletePersonRequest + */ +export interface BetaApiDeletePersonRequest { + /** + * The ID of the person + * @type {number} + * @memberof BetaApiDeletePerson + */ + readonly id: number +} + +/** + * Request parameters for getActivities operation in BetaApi. + * @export + * @interface BetaApiGetActivitiesRequest + */ +export interface BetaApiGetActivitiesRequest { + /** + * If supplied, only activities matching the specified filter are returned + * @type {number} + * @memberof BetaApiGetActivities + */ + readonly filter_id?: number + + /** + * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @type {string} + * @memberof BetaApiGetActivities + */ + readonly ids?: string + + /** + * If supplied, only activities owned by the specified user are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof BetaApiGetActivities + */ + readonly owner_id?: number + + /** + * If set, only activities with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof BetaApiGetActivities + */ + readonly updated_since?: string + + /** + * If set, only activities with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof BetaApiGetActivities + */ + readonly updated_until?: string + + /** + * The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @type {'id' | 'update_time' | 'add_time'} + * @memberof BetaApiGetActivities + */ + readonly sort_by?: 'id' | 'update_time' | 'add_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof BetaApiGetActivities + */ + readonly sort_direction?: 'asc' | 'desc' + + /** + * Optional comma separated string array of additional fields to include + * @type {'attendees'} + * @memberof BetaApiGetActivities + */ + readonly include_fields?: 'attendees' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiGetActivities + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiGetActivities + */ + readonly cursor?: string +} + +/** + * Request parameters for getActivity operation in BetaApi. + * @export + * @interface BetaApiGetActivityRequest + */ +export interface BetaApiGetActivityRequest { + /** + * The ID of the activity + * @type {number} + * @memberof BetaApiGetActivity + */ + readonly id: number + + /** + * Optional comma separated string array of additional fields to include + * @type {'attendees'} + * @memberof BetaApiGetActivity + */ + readonly include_fields?: 'attendees' +} + +/** + * Request parameters for getAdditionalDiscounts operation in BetaApi. + * @export + * @interface BetaApiGetAdditionalDiscountsRequest + */ +export interface BetaApiGetAdditionalDiscountsRequest { + /** + * The ID of the deal + * @type {number} + * @memberof BetaApiGetAdditionalDiscounts + */ + readonly id: number +} + +/** + * Request parameters for getDeal operation in BetaApi. + * @export + * @interface BetaApiGetDealRequest + */ +export interface BetaApiGetDealRequest { + /** + * The ID of the deal + * @type {number} + * @memberof BetaApiGetDeal + */ + readonly id: number + + /** + * Optional comma separated string array of additional fields to include + * @type {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} + * @memberof BetaApiGetDeal + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof BetaApiGetDeal + */ + readonly custom_fields?: string +} + +/** + * Request parameters for getDealProducts operation in BetaApi. + * @export + * @interface BetaApiGetDealProductsRequest + */ +export interface BetaApiGetDealProductsRequest { + /** + * The ID of the deal + * @type {number} + * @memberof BetaApiGetDealProducts + */ + readonly id: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiGetDealProducts + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiGetDealProducts + */ + readonly limit?: number + + /** + * The field to sort by. Supported fields: `id`, `add_time`, `update_time`. + * @type {'id' | 'add_time' | 'update_time'} + * @memberof BetaApiGetDealProducts + */ + readonly sort_by?: 'id' | 'add_time' | 'update_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof BetaApiGetDealProducts + */ + readonly sort_direction?: 'asc' | 'desc' +} + +/** + * Request parameters for getDeals operation in BetaApi. + * @export + * @interface BetaApiGetDealsRequest + */ +export interface BetaApiGetDealsRequest { + /** + * If supplied, only deals matching the specified filter are returned + * @type {number} + * @memberof BetaApiGetDeals + */ + readonly filter_id?: number + + /** + * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @type {string} + * @memberof BetaApiGetDeals + */ + readonly ids?: string + + /** + * If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof BetaApiGetDeals + */ + readonly owner_id?: number + + /** + * If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof BetaApiGetDeals + */ + readonly person_id?: number + + /** + * If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof BetaApiGetDeals + */ + readonly org_id?: number + + /** + * If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof BetaApiGetDeals + */ + readonly pipeline_id?: number + + /** + * If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof BetaApiGetDeals + */ + readonly stage_id?: number + + /** + * Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored. + * @type {'open' | 'won' | 'lost' | 'deleted'} + * @memberof BetaApiGetDeals + */ + readonly status?: 'open' | 'won' | 'lost' | 'deleted' + + /** + * If set, only deals with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof BetaApiGetDeals + */ + readonly updated_since?: string + + /** + * If set, only deals with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof BetaApiGetDeals + */ + readonly updated_until?: string + + /** + * The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @type {'id' | 'update_time' | 'add_time'} + * @memberof BetaApiGetDeals + */ + readonly sort_by?: 'id' | 'update_time' | 'add_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof BetaApiGetDeals + */ + readonly sort_direction?: 'asc' | 'desc' + + /** + * Optional comma separated string array of additional fields to include + * @type {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} + * @memberof BetaApiGetDeals + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof BetaApiGetDeals + */ + readonly custom_fields?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiGetDeals + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiGetDeals + */ + readonly cursor?: string +} + +/** + * Request parameters for getDealsProducts operation in BetaApi. + * @export + * @interface BetaApiGetDealsProductsRequest + */ +export interface BetaApiGetDealsProductsRequest { + /** + * An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided. + * @type {Array} + * @memberof BetaApiGetDealsProducts + */ + readonly deal_ids: Array + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiGetDealsProducts + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiGetDealsProducts + */ + readonly limit?: number + + /** + * The field to sort by. Supported fields: `id`, `deal_id`, `add_time`, `update_time`. + * @type {'id' | 'deal_id' | 'add_time' | 'update_time'} + * @memberof BetaApiGetDealsProducts + */ + readonly sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof BetaApiGetDealsProducts + */ + readonly sort_direction?: 'asc' | 'desc' +} + +/** + * Request parameters for getOrganization operation in BetaApi. + * @export + * @interface BetaApiGetOrganizationRequest + */ +export interface BetaApiGetOrganizationRequest { + /** + * The ID of the organization + * @type {number} + * @memberof BetaApiGetOrganization + */ + readonly id: number + + /** + * Optional comma separated string array of additional fields to include + * @type {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} + * @memberof BetaApiGetOrganization + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof BetaApiGetOrganization + */ + readonly custom_fields?: string +} + +/** + * Request parameters for getOrganizations operation in BetaApi. + * @export + * @interface BetaApiGetOrganizationsRequest + */ +export interface BetaApiGetOrganizationsRequest { + /** + * If supplied, only organizations matching the specified filter are returned + * @type {number} + * @memberof BetaApiGetOrganizations + */ + readonly filter_id?: number + + /** + * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @type {string} + * @memberof BetaApiGetOrganizations + */ + readonly ids?: string + + /** + * If supplied, only organization owned by the specified user are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof BetaApiGetOrganizations + */ + readonly owner_id?: number + + /** + * If set, only organizations with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof BetaApiGetOrganizations + */ + readonly updated_since?: string + + /** + * If set, only organizations with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof BetaApiGetOrganizations + */ + readonly updated_until?: string + + /** + * The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @type {'id' | 'update_time' | 'add_time'} + * @memberof BetaApiGetOrganizations + */ + readonly sort_by?: 'id' | 'update_time' | 'add_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof BetaApiGetOrganizations + */ + readonly sort_direction?: 'asc' | 'desc' + + /** + * Optional comma separated string array of additional fields to include + * @type {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} + * @memberof BetaApiGetOrganizations + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof BetaApiGetOrganizations + */ + readonly custom_fields?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiGetOrganizations + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiGetOrganizations + */ + readonly cursor?: string +} + +/** + * Request parameters for getPerson operation in BetaApi. + * @export + * @interface BetaApiGetPersonRequest + */ +export interface BetaApiGetPersonRequest { + /** + * The ID of the person + * @type {number} + * @memberof BetaApiGetPerson + */ + readonly id: number + + /** + * Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @type {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} + * @memberof BetaApiGetPerson + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof BetaApiGetPerson + */ + readonly custom_fields?: string +} + +/** + * Request parameters for getPersons operation in BetaApi. + * @export + * @interface BetaApiGetPersonsRequest + */ +export interface BetaApiGetPersonsRequest { + /** + * If supplied, only persons matching the specified filter are returned + * @type {number} + * @memberof BetaApiGetPersons + */ + readonly filter_id?: number + + /** + * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @type {string} + * @memberof BetaApiGetPersons + */ + readonly ids?: string + + /** + * If supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof BetaApiGetPersons + */ + readonly owner_id?: number + + /** + * If supplied, only persons linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof BetaApiGetPersons + */ + readonly org_id?: number + + /** + * If set, only persons with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof BetaApiGetPersons + */ + readonly updated_since?: string + + /** + * If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof BetaApiGetPersons + */ + readonly updated_until?: string + + /** + * The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @type {'id' | 'update_time' | 'add_time'} + * @memberof BetaApiGetPersons + */ + readonly sort_by?: 'id' | 'update_time' | 'add_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof BetaApiGetPersons + */ + readonly sort_direction?: 'asc' | 'desc' + + /** + * Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @type {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} + * @memberof BetaApiGetPersons + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof BetaApiGetPersons + */ + readonly custom_fields?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiGetPersons + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiGetPersons + */ + readonly cursor?: string +} + +/** + * Request parameters for postAdditionalDiscount operation in BetaApi. + * @export + * @interface BetaApiPostAdditionalDiscountRequest + */ +export interface BetaApiPostAdditionalDiscountRequest { + /** + * The ID of the deal + * @type {number} + * @memberof BetaApiPostAdditionalDiscount + */ + readonly id: number + + /** + * + * @type {AddAdditionalDiscountRequestBody} + * @memberof BetaApiPostAdditionalDiscount + */ + readonly AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody +} + +/** + * Request parameters for searchDeals operation in BetaApi. + * @export + * @interface BetaApiSearchDealsRequest + */ +export interface BetaApiSearchDealsRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof BetaApiSearchDeals + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {'custom_fields' | 'notes' | 'title'} + * @memberof BetaApiSearchDeals + */ + readonly fields?: 'custom_fields' | 'notes' | 'title' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof BetaApiSearchDeals + */ + readonly exact_match?: boolean + + /** + * Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. + * @type {number} + * @memberof BetaApiSearchDeals + */ + readonly person_id?: number + + /** + * Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. + * @type {number} + * @memberof BetaApiSearchDeals + */ + readonly organization_id?: number + + /** + * Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. + * @type {'open' | 'won' | 'lost'} + * @memberof BetaApiSearchDeals + */ + readonly status?: 'open' | 'won' | 'lost' + + /** + * Supports including optional fields in the results which are not provided by default + * @type {'deal.cc_email'} + * @memberof BetaApiSearchDeals + */ + readonly include_fields?: 'deal.cc_email' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiSearchDeals + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiSearchDeals + */ + readonly cursor?: string +} + +/** + * Request parameters for searchItem operation in BetaApi. + * @export + * @interface BetaApiSearchItemRequest + */ +export interface BetaApiSearchItemRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof BetaApiSearchItem + */ + readonly term: string + + /** + * A comma-separated string array. The type of items to perform the search from. Defaults to all. + * @type {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} + * @memberof BetaApiSearchItem + */ + readonly item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project' + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<br/> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. + * @type {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description'} + * @memberof BetaApiSearchItem + */ + readonly fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description' + + /** + * When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization + * @type {boolean} + * @memberof BetaApiSearchItem + */ + readonly search_for_related_items?: boolean + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof BetaApiSearchItem + */ + readonly exact_match?: boolean + + /** + * A comma-separated string array. Supports including optional fields in the results which are not provided by default. + * @type {'deal.cc_email' | 'person.picture' | 'product.price'} + * @memberof BetaApiSearchItem + */ + readonly include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiSearchItem + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiSearchItem + */ + readonly cursor?: string +} + +/** + * Request parameters for searchItemByField operation in BetaApi. + * @export + * @interface BetaApiSearchItemByFieldRequest + */ +export interface BetaApiSearchItemByFieldRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if `match` is `exact`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof BetaApiSearchItemByField + */ + readonly term: string + + /** + * The type of the field to perform the search from + * @type {'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project'} + * @memberof BetaApiSearchItemByField + */ + readonly entity_type: 'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project' + + /** + * The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {string} + * @memberof BetaApiSearchItemByField + */ + readonly field: string + + /** + * The type of match used against the term. The search <b>is</b> case sensitive.<br/><br/> E.g. in case of searching for a value `monkey`, <ul> <li>with `exact` match, you will only find it if term is `monkey`</li> <li>with `beginning` match, you will only find it if the term matches the beginning or the whole string, e.g. `monk` and `monkey`</li> <li>with `middle` match, you will find the it if the term matches any substring of the value, e.g. `onk` and `ke`</li> </ul>. + * @type {'exact' | 'beginning' | 'middle'} + * @memberof BetaApiSearchItemByField + */ + readonly match?: 'exact' | 'beginning' | 'middle' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiSearchItemByField + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiSearchItemByField + */ + readonly cursor?: string +} + +/** + * Request parameters for searchLeads operation in BetaApi. + * @export + * @interface BetaApiSearchLeadsRequest + */ +export interface BetaApiSearchLeadsRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof BetaApiSearchLeads + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. + * @type {'custom_fields' | 'notes' | 'title'} + * @memberof BetaApiSearchLeads + */ + readonly fields?: 'custom_fields' | 'notes' | 'title' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof BetaApiSearchLeads + */ + readonly exact_match?: boolean + + /** + * Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. + * @type {number} + * @memberof BetaApiSearchLeads + */ + readonly person_id?: number + + /** + * Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. + * @type {number} + * @memberof BetaApiSearchLeads + */ + readonly organization_id?: number + + /** + * Supports including optional fields in the results which are not provided by default + * @type {'lead.was_seen'} + * @memberof BetaApiSearchLeads + */ + readonly include_fields?: 'lead.was_seen' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiSearchLeads + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiSearchLeads + */ + readonly cursor?: string +} + +/** + * Request parameters for searchOrganization operation in BetaApi. + * @export + * @interface BetaApiSearchOrganizationRequest + */ +export interface BetaApiSearchOrganizationRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof BetaApiSearchOrganization + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {'address' | 'custom_fields' | 'notes' | 'name'} + * @memberof BetaApiSearchOrganization + */ + readonly fields?: 'address' | 'custom_fields' | 'notes' | 'name' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof BetaApiSearchOrganization + */ + readonly exact_match?: boolean + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiSearchOrganization + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiSearchOrganization + */ + readonly cursor?: string +} + +/** + * Request parameters for searchPersons operation in BetaApi. + * @export + * @interface BetaApiSearchPersonsRequest + */ +export interface BetaApiSearchPersonsRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof BetaApiSearchPersons + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} + * @memberof BetaApiSearchPersons + */ + readonly fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof BetaApiSearchPersons + */ + readonly exact_match?: boolean + + /** + * Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. + * @type {number} + * @memberof BetaApiSearchPersons + */ + readonly organization_id?: number + + /** + * Supports including optional fields in the results which are not provided by default + * @type {'person.picture'} + * @memberof BetaApiSearchPersons + */ + readonly include_fields?: 'person.picture' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof BetaApiSearchPersons + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof BetaApiSearchPersons + */ + readonly cursor?: string +} + +/** + * Request parameters for updateActivity operation in BetaApi. + * @export + * @interface BetaApiUpdateActivityRequest + */ +export interface BetaApiUpdateActivityRequest { + /** + * The ID of the activity + * @type {number} + * @memberof BetaApiUpdateActivity + */ + readonly id: number + + /** + * + * @type {AddActivityRequest} + * @memberof BetaApiUpdateActivity + */ + readonly AddActivityRequest?: AddActivityRequest +} + +/** + * Request parameters for updateAdditionalDiscount operation in BetaApi. + * @export + * @interface BetaApiUpdateAdditionalDiscountRequest + */ +export interface BetaApiUpdateAdditionalDiscountRequest { + /** + * The ID of the deal + * @type {number} + * @memberof BetaApiUpdateAdditionalDiscount + */ + readonly id: number + + /** + * The ID of the discount + * @type {number} + * @memberof BetaApiUpdateAdditionalDiscount + */ + readonly discount_id: number + + /** + * + * @type {UpdateAdditionalDiscountRequestBody} + * @memberof BetaApiUpdateAdditionalDiscount + */ + readonly UpdateAdditionalDiscountRequestBody?: UpdateAdditionalDiscountRequestBody +} + +/** + * Request parameters for updateDeal operation in BetaApi. + * @export + * @interface BetaApiUpdateDealRequest + */ +export interface BetaApiUpdateDealRequest { + /** + * The ID of the deal + * @type {number} + * @memberof BetaApiUpdateDeal + */ + readonly id: number + + /** + * + * @type {UpdateDealRequest} + * @memberof BetaApiUpdateDeal + */ + readonly UpdateDealRequest?: UpdateDealRequest +} + +/** + * Request parameters for updateDealProduct operation in BetaApi. + * @export + * @interface BetaApiUpdateDealProductRequest + */ +export interface BetaApiUpdateDealProductRequest { + /** + * The ID of the deal + * @type {number} + * @memberof BetaApiUpdateDealProduct + */ + readonly id: number + + /** + * The ID of the deal-product (the ID of the product attached to the deal) + * @type {number} + * @memberof BetaApiUpdateDealProduct + */ + readonly product_attachment_id: number + + /** + * + * @type {UpdateDealProductRequest} + * @memberof BetaApiUpdateDealProduct + */ + readonly UpdateDealProductRequest?: UpdateDealProductRequest +} + +/** + * Request parameters for updateOrganization operation in BetaApi. + * @export + * @interface BetaApiUpdateOrganizationRequest + */ +export interface BetaApiUpdateOrganizationRequest { + /** + * The ID of the organization + * @type {number} + * @memberof BetaApiUpdateOrganization + */ + readonly id: number + + /** + * + * @type {UpdateOrganizationRequest} + * @memberof BetaApiUpdateOrganization + */ + readonly UpdateOrganizationRequest?: UpdateOrganizationRequest +} + +/** + * Request parameters for updatePerson operation in BetaApi. + * @export + * @interface BetaApiUpdatePersonRequest + */ +export interface BetaApiUpdatePersonRequest { + /** + * The ID of the person + * @type {number} + * @memberof BetaApiUpdatePerson + */ + readonly id: number + + /** + * + * @type {UpdatePersonRequest} + * @memberof BetaApiUpdatePerson + */ + readonly UpdatePersonRequest?: UpdatePersonRequest +} + +/** + * BetaApi - object-oriented interface + * @export + * @class BetaApi + * @extends {BaseAPI} + */ +export class BetaApi extends BaseAPI { + /** + * Adds a new activity. + * @summary Add a new activity + * @param {BetaApiAddActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public addActivity(requestParameters: BetaApiAddActivityRequest = {}, ) { + return BetaApiFp(this.configuration).addActivity(requestParameters.AddActivityRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a new deal. + * @summary Add a new deal + * @param {BetaApiAddDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public addDeal(requestParameters: BetaApiAddDealRequest = {}, ) { + return BetaApiFp(this.configuration).addDeal(requestParameters.AddDealRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {BetaApiAddDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public addDealProduct(requestParameters: BetaApiAddDealProductRequest, ) { + return BetaApiFp(this.configuration).addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a new organization. + * @summary Add a new organization + * @param {BetaApiAddOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public addOrganization(requestParameters: BetaApiAddOrganizationRequest = {}, ) { + return BetaApiFp(this.configuration).addOrganization(requestParameters.AddOrganizationRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a new person. + * @summary Add a new person + * @param {BetaApiAddPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public addPerson(requestParameters: BetaApiAddPersonRequest = {}, ) { + return BetaApiFp(this.configuration).addPerson(requestParameters.AddPersonRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks an activity as deleted. After 30 days, the activity will be permanently deleted. + * @summary Delete an activity + * @param {BetaApiDeleteActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public deleteActivity(requestParameters: BetaApiDeleteActivityRequest, ) { + return BetaApiFp(this.configuration).deleteActivity(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Removes a discount from a deal, changing the deal value if the deal has one-time products attached. + * @summary Delete a discount from a deal + * @param {BetaApiDeleteAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public deleteAdditionalDiscount(requestParameters: BetaApiDeleteAdditionalDiscountRequest, ) { + return BetaApiFp(this.configuration).deleteAdditionalDiscount(requestParameters.id, requestParameters.discount_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {BetaApiDeleteDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public deleteDeal(requestParameters: BetaApiDeleteDealRequest, ) { + return BetaApiFp(this.configuration).deleteDeal(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a product attachment from a deal, using the `product_attachment_id`. + * @summary Delete an attached product from a deal + * @param {BetaApiDeleteDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public deleteDealProduct(requestParameters: BetaApiDeleteDealProductRequest, ) { + return BetaApiFp(this.configuration).deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete a organization + * @param {BetaApiDeleteOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public deleteOrganization(requestParameters: BetaApiDeleteOrganizationRequest, ) { + return BetaApiFp(this.configuration).deleteOrganization(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {BetaApiDeletePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public deletePerson(requestParameters: BetaApiDeletePersonRequest, ) { + return BetaApiFp(this.configuration).deletePerson(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all activities. + * @summary Get all activities + * @param {BetaApiGetActivitiesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public getActivities(requestParameters: BetaApiGetActivitiesRequest = {}, ) { + return BetaApiFp(this.configuration).getActivities(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific activity. + * @summary Get details of an activity + * @param {BetaApiGetActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public getActivity(requestParameters: BetaApiGetActivityRequest, ) { + return BetaApiFp(this.configuration).getActivity(requestParameters.id, requestParameters.include_fields, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists discounts attached to a deal. + * @summary List discounts added to a deal + * @param {BetaApiGetAdditionalDiscountsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public getAdditionalDiscounts(requestParameters: BetaApiGetAdditionalDiscountsRequest, ) { + return BetaApiFp(this.configuration).getAdditionalDiscounts(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific deal. + * @summary Get details of a deal + * @param {BetaApiGetDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public getDeal(requestParameters: BetaApiGetDealRequest, ) { + return BetaApiFp(this.configuration).getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {BetaApiGetDealProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public getDealProducts(requestParameters: BetaApiGetDealProductsRequest, ) { + return BetaApiFp(this.configuration).getDealProducts(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all deals. + * @summary Get all deals + * @param {BetaApiGetDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public getDeals(requestParameters: BetaApiGetDealsRequest = {}, ) { + return BetaApiFp(this.configuration).getDeals(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about products attached to deals + * @summary Get deal products of several deals + * @param {BetaApiGetDealsProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public getDealsProducts(requestParameters: BetaApiGetDealsProductsRequest, ) { + return BetaApiFp(this.configuration).getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific organization. + * @summary Get details of a organization + * @param {BetaApiGetOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public getOrganization(requestParameters: BetaApiGetOrganizationRequest, ) { + return BetaApiFp(this.configuration).getOrganization(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all organizations. + * @summary Get all organizations + * @param {BetaApiGetOrganizationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public getOrganizations(requestParameters: BetaApiGetOrganizationsRequest = {}, ) { + return BetaApiFp(this.configuration).getOrganizations(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get details of a person + * @param {BetaApiGetPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public getPerson(requestParameters: BetaApiGetPersonRequest, ) { + return BetaApiFp(this.configuration).getPerson(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get all persons + * @param {BetaApiGetPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public getPersons(requestParameters: BetaApiGetPersonsRequest = {}, ) { + return BetaApiFp(this.configuration).getPersons(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.org_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * @summary Add a discount to a deal + * @param {BetaApiPostAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public postAdditionalDiscount(requestParameters: BetaApiPostAdditionalDiscountRequest, ) { + return BetaApiFp(this.configuration).postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {BetaApiSearchDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public searchDeals(requestParameters: BetaApiSearchDealsRequest, ) { + return BetaApiFp(this.configuration).searchDeals(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {BetaApiSearchItemRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public searchItem(requestParameters: BetaApiSearchItemRequest, ) { + return BetaApiFp(this.configuration).searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {BetaApiSearchItemByFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public searchItemByField(requestParameters: BetaApiSearchItemByFieldRequest, ) { + return BetaApiFp(this.configuration).searchItemByField(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {BetaApiSearchLeadsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public searchLeads(requestParameters: BetaApiSearchLeadsRequest, ) { + return BetaApiFp(this.configuration).searchLeads(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {BetaApiSearchOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public searchOrganization(requestParameters: BetaApiSearchOrganizationRequest, ) { + return BetaApiFp(this.configuration).searchOrganization(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {BetaApiSearchPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public searchPersons(requestParameters: BetaApiSearchPersonsRequest, ) { + return BetaApiFp(this.configuration).searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of an activity. + * @summary Update an activity + * @param {BetaApiUpdateActivityRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public updateActivity(requestParameters: BetaApiUpdateActivityRequest, ) { + return BetaApiFp(this.configuration).updateActivity(requestParameters.id, requestParameters.AddActivityRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached. + * @summary Update a discount added to a deal + * @param {BetaApiUpdateAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public updateAdditionalDiscount(requestParameters: BetaApiUpdateAdditionalDiscountRequest, ) { + return BetaApiFp(this.configuration).updateAdditionalDiscount(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a deal. + * @summary Update a deal + * @param {BetaApiUpdateDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public updateDeal(requestParameters: BetaApiUpdateDealRequest, ) { + return BetaApiFp(this.configuration).updateDeal(requestParameters.id, requestParameters.UpdateDealRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {BetaApiUpdateDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public updateDealProduct(requestParameters: BetaApiUpdateDealProductRequest, ) { + return BetaApiFp(this.configuration).updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a organization. + * @summary Update a organization + * @param {BetaApiUpdateOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public updateOrganization(requestParameters: BetaApiUpdateOrganizationRequest, ) { + return BetaApiFp(this.configuration).updateOrganization(requestParameters.id, requestParameters.UpdateOrganizationRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a person. + * @summary Update a person + * @param {BetaApiUpdatePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof BetaApi + */ + public updatePerson(requestParameters: BetaApiUpdatePersonRequest, ) { + return BetaApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.UpdatePersonRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v2/api/deals-api.ts b/src/versions/v2/api/deals-api.ts new file mode 100644 index 00000000..970e2ef3 --- /dev/null +++ b/src/versions/v2/api/deals-api.ts @@ -0,0 +1,1958 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddAdditionalDiscountRequestBody } from '../models'; +// @ts-ignore +import { AddAdditionalDiscountResponse } from '../models'; +// @ts-ignore +import { AddDealProductRequest } from '../models'; +// @ts-ignore +import { AddDealProductResponse } from '../models'; +// @ts-ignore +import { AddDealRequest } from '../models'; +// @ts-ignore +import { DeleteAdditionalDiscountResponse } from '../models'; +// @ts-ignore +import { DeleteDealProductResponse } from '../models'; +// @ts-ignore +import { DeleteDealResponse } from '../models'; +// @ts-ignore +import { GetAdditionalDiscountsResponse } from '../models'; +// @ts-ignore +import { GetDealSearchResponse } from '../models'; +// @ts-ignore +import { GetDealsProductsResponse } from '../models'; +// @ts-ignore +import { GetDealsResponse } from '../models'; +// @ts-ignore +import { UpdateAdditionalDiscountRequestBody } from '../models'; +// @ts-ignore +import { UpdateAdditionalDiscountResponse } from '../models'; +// @ts-ignore +import { UpdateDealProductRequest } from '../models'; +// @ts-ignore +import { UpdateDealRequest } from '../models'; +// @ts-ignore +import { UpsertDealResponse } from '../models'; +/** + * DealsApi - axios parameter creator + * @export + */ +export const DealsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new deal. + * @summary Add a new deal + * @param {AddDealRequest} [AddDealRequest] + + * @throws {RequiredError} + */ + addDeal: async (AddDealRequest?: AddDealRequest, ): Promise => { + const localVarPath = `/deals`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddDealRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {number} id The ID of the deal + * @param {AddDealProductRequest} [AddDealProductRequest] + + * @throws {RequiredError} + */ + addDealProduct: async (id: number, AddDealProductRequest?: AddDealProductRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addDealProduct', 'id', id) + const localVarPath = `/deals/{id}/products` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full", "deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddDealProductRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Removes a discount from a deal, changing the deal value if the deal has one-time products attached. + * @summary Delete a discount from a deal + * @param {number} id The ID of the deal + * @param {number} discount_id The ID of the discount + + * @throws {RequiredError} + */ + deleteAdditionalDiscount: async (id: number, discount_id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteAdditionalDiscount', 'id', id) + // verify required parameter 'discount_id' is not null or undefined + assertParamExists('deleteAdditionalDiscount', 'discount_id', discount_id) + const localVarPath = `/deals/{id}/discounts/{discount_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"discount_id"}}`, encodeURIComponent(String(discount_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + deleteDeal: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteDeal', 'id', id) + const localVarPath = `/deals/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a product attachment from a deal, using the `product_attachment_id`. + * @summary Delete an attached product from a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The product attachment ID + + * @throws {RequiredError} + */ + deleteDealProduct: async (id: number, product_attachment_id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteDealProduct', 'id', id) + // verify required parameter 'product_attachment_id' is not null or undefined + assertParamExists('deleteDealProduct', 'product_attachment_id', product_attachment_id) + const localVarPath = `/deals/{id}/products/{product_attachment_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"product_attachment_id"}}`, encodeURIComponent(String(product_attachment_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full", "products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists discounts attached to a deal. + * @summary List discounts added to a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + getAdditionalDiscounts: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getAdditionalDiscounts', 'id', id) + const localVarPath = `/deals/{id}/discounts` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific deal. + * @summary Get details of a deal + * @param {number} id The ID of the deal + * @param {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + getDeal: async (id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDeal', 'id', id) + const localVarPath = `/deals/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {number} id The ID of the deal + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {'id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `add_time`, `update_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + + * @throws {RequiredError} + */ + getDealProducts: async (id: number, cursor?: string, limit?: number, sort_by?: 'id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getDealProducts', 'id', id) + const localVarPath = `/deals/{id}/products` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full", "deals:read", "deals:full"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all deals. + * @summary Get all deals + * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored. + * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @param {number} [pipeline_id] If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored. + * @param {number} [stage_id] If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored. + * @param {'open' | 'won' | 'lost' | 'deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only deals with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only deals with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + getDeals: async (filter_id?: number, ids?: string, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted', updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string, limit?: number, cursor?: string, ): Promise => { + const localVarPath = `/deals`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (person_id !== undefined) { + localVarQueryParameter['person_id'] = person_id; + } + + if (org_id !== undefined) { + localVarQueryParameter['org_id'] = org_id; + } + + if (pipeline_id !== undefined) { + localVarQueryParameter['pipeline_id'] = pipeline_id; + } + + if (stage_id !== undefined) { + localVarQueryParameter['stage_id'] = stage_id; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + if (updated_since !== undefined) { + localVarQueryParameter['updated_since'] = updated_since; + } + + if (updated_until !== undefined) { + localVarQueryParameter['updated_until'] = updated_until; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about products attached to deals + * @summary Get deal products of several deals + * @param {Array} deal_ids An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {'id' | 'deal_id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `deal_id`, `add_time`, `update_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + + * @throws {RequiredError} + */ + getDealsProducts: async (deal_ids: Array, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise => { + // verify required parameter 'deal_ids' is not null or undefined + assertParamExists('getDealsProducts', 'deal_ids', deal_ids) + const localVarPath = `/deals/products`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full", "deals:read", "deals:full"], configuration) + + if (deal_ids) { + localVarQueryParameter['deal_ids'] = deal_ids; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * @summary Add a discount to a deal + * @param {number} id The ID of the deal + * @param {AddAdditionalDiscountRequestBody} [AddAdditionalDiscountRequestBody] + + * @throws {RequiredError} + */ + postAdditionalDiscount: async (id: number, AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('postAdditionalDiscount', 'id', id) + const localVarPath = `/deals/{id}/discounts` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddAdditionalDiscountRequestBody, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. + * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. + * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. + * @param {'deal.cc_email'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchDeals: async (term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: 'deal.cc_email', limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchDeals', 'term', term) + const localVarPath = `/deals/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (person_id !== undefined) { + localVarQueryParameter['person_id'] = person_id; + } + + if (organization_id !== undefined) { + localVarQueryParameter['organization_id'] = organization_id; + } + + if (status !== undefined) { + localVarQueryParameter['status'] = status; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached. + * @summary Update a discount added to a deal + * @param {number} id The ID of the deal + * @param {number} discount_id The ID of the discount + * @param {UpdateAdditionalDiscountRequestBody} [UpdateAdditionalDiscountRequestBody] + + * @throws {RequiredError} + */ + updateAdditionalDiscount: async (id: number, discount_id: number, UpdateAdditionalDiscountRequestBody?: UpdateAdditionalDiscountRequestBody, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateAdditionalDiscount', 'id', id) + // verify required parameter 'discount_id' is not null or undefined + assertParamExists('updateAdditionalDiscount', 'discount_id', discount_id) + const localVarPath = `/deals/{id}/discounts/{discount_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"discount_id"}}`, encodeURIComponent(String(discount_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateAdditionalDiscountRequestBody, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a deal. + * @summary Update a deal + * @param {number} id The ID of the deal + * @param {UpdateDealRequest} [UpdateDealRequest] + + * @throws {RequiredError} + */ + updateDeal: async (id: number, UpdateDealRequest?: UpdateDealRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateDeal', 'id', id) + const localVarPath = `/deals/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateDealRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The ID of the deal-product (the ID of the product attached to the deal) + * @param {UpdateDealProductRequest} [UpdateDealProductRequest] + + * @throws {RequiredError} + */ + updateDealProduct: async (id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateDealProduct', 'id', id) + // verify required parameter 'product_attachment_id' is not null or undefined + assertParamExists('updateDealProduct', 'product_attachment_id', product_attachment_id) + const localVarPath = `/deals/{id}/products/{product_attachment_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"product_attachment_id"}}`, encodeURIComponent(String(product_attachment_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full", "deals:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateDealProductRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * DealsApi - functional programming interface + * @export + */ +export const DealsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = DealsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new deal. + * @summary Add a new deal + * @param {AddDealRequest} [AddDealRequest] + + * @throws {RequiredError} + */ + async addDeal(AddDealRequest?: AddDealRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addDeal(AddDealRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {number} id The ID of the deal + * @param {AddDealProductRequest} [AddDealProductRequest] + + * @throws {RequiredError} + */ + async addDealProduct(id: number, AddDealProductRequest?: AddDealProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addDealProduct(id, AddDealProductRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Removes a discount from a deal, changing the deal value if the deal has one-time products attached. + * @summary Delete a discount from a deal + * @param {number} id The ID of the deal + * @param {number} discount_id The ID of the discount + + * @throws {RequiredError} + */ + async deleteAdditionalDiscount(id: number, discount_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAdditionalDiscount(id, discount_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + async deleteDeal(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeal(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a product attachment from a deal, using the `product_attachment_id`. + * @summary Delete an attached product from a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The product attachment ID + + * @throws {RequiredError} + */ + async deleteDealProduct(id: number, product_attachment_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDealProduct(id, product_attachment_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists discounts attached to a deal. + * @summary List discounts added to a deal + * @param {number} id The ID of the deal + + * @throws {RequiredError} + */ + async getAdditionalDiscounts(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getAdditionalDiscounts(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific deal. + * @summary Get details of a deal + * @param {number} id The ID of the deal + * @param {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + async getDeal(id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDeal(id, include_fields, custom_fields, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {number} id The ID of the deal + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {'id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `add_time`, `update_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + + * @throws {RequiredError} + */ + async getDealProducts(id: number, cursor?: string, limit?: number, sort_by?: 'id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealProducts(id, cursor, limit, sort_by, sort_direction, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all deals. + * @summary Get all deals + * @param {number} [filter_id] If supplied, only deals matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {number} [person_id] If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored. + * @param {number} [org_id] If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @param {number} [pipeline_id] If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored. + * @param {number} [stage_id] If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored. + * @param {'open' | 'won' | 'lost' | 'deleted'} [status] Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only deals with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only deals with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async getDeals(filter_id?: number, ids?: string, owner_id?: number, person_id?: number, org_id?: number, pipeline_id?: number, stage_id?: number, status?: 'open' | 'won' | 'lost' | 'deleted', updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time', custom_fields?: string, limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDeals(filter_id, ids, owner_id, person_id, org_id, pipeline_id, stage_id, status, updated_since, updated_until, sort_by, sort_direction, include_fields, custom_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about products attached to deals + * @summary Get deal products of several deals + * @param {Array} deal_ids An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {'id' | 'deal_id' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `deal_id`, `add_time`, `update_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + + * @throws {RequiredError} + */ + async getDealsProducts(deal_ids: Array, cursor?: string, limit?: number, sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getDealsProducts(deal_ids, cursor, limit, sort_by, sort_direction, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * @summary Add a discount to a deal + * @param {number} id The ID of the deal + * @param {AddAdditionalDiscountRequestBody} [AddAdditionalDiscountRequestBody] + + * @throws {RequiredError} + */ + async postAdditionalDiscount(id: number, AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.postAdditionalDiscount(id, AddAdditionalDiscountRequestBody, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. + * @param {number} [organization_id] Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. + * @param {'open' | 'won' | 'lost'} [status] Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. + * @param {'deal.cc_email'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchDeals(term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, status?: 'open' | 'won' | 'lost', include_fields?: 'deal.cc_email', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchDeals(term, fields, exact_match, person_id, organization_id, status, include_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached. + * @summary Update a discount added to a deal + * @param {number} id The ID of the deal + * @param {number} discount_id The ID of the discount + * @param {UpdateAdditionalDiscountRequestBody} [UpdateAdditionalDiscountRequestBody] + + * @throws {RequiredError} + */ + async updateAdditionalDiscount(id: number, discount_id: number, UpdateAdditionalDiscountRequestBody?: UpdateAdditionalDiscountRequestBody, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateAdditionalDiscount(id, discount_id, UpdateAdditionalDiscountRequestBody, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a deal. + * @summary Update a deal + * @param {number} id The ID of the deal + * @param {UpdateDealRequest} [UpdateDealRequest] + + * @throws {RequiredError} + */ + async updateDeal(id: number, UpdateDealRequest?: UpdateDealRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeal(id, UpdateDealRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {number} id The ID of the deal + * @param {number} product_attachment_id The ID of the deal-product (the ID of the product attached to the deal) + * @param {UpdateDealProductRequest} [UpdateDealProductRequest] + + * @throws {RequiredError} + */ + async updateDealProduct(id: number, product_attachment_id: number, UpdateDealProductRequest?: UpdateDealProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateDealProduct(id, product_attachment_id, UpdateDealProductRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * DealsApi - factory interface + * @export + */ +export const DealsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = DealsApiFp(configuration) + return { + /** + * Adds a new deal. + * @summary Add a new deal + * @param {DealsApiAddDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addDeal(requestParameters: DealsApiAddDealRequest = {}, ): Promise { + return localVarFp.addDeal(requestParameters.AddDealRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {DealsApiAddDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addDealProduct(requestParameters: DealsApiAddDealProductRequest, ): Promise { + return localVarFp.addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Removes a discount from a deal, changing the deal value if the deal has one-time products attached. + * @summary Delete a discount from a deal + * @param {DealsApiDeleteAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteAdditionalDiscount(requestParameters: DealsApiDeleteAdditionalDiscountRequest, ): Promise { + return localVarFp.deleteAdditionalDiscount(requestParameters.id, requestParameters.discount_id, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {DealsApiDeleteDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteDeal(requestParameters: DealsApiDeleteDealRequest, ): Promise { + return localVarFp.deleteDeal(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a product attachment from a deal, using the `product_attachment_id`. + * @summary Delete an attached product from a deal + * @param {DealsApiDeleteDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteDealProduct(requestParameters: DealsApiDeleteDealProductRequest, ): Promise { + return localVarFp.deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id, ).then((request) => request(axios, basePath)); + }, + /** + * Lists discounts attached to a deal. + * @summary List discounts added to a deal + * @param {DealsApiGetAdditionalDiscountsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getAdditionalDiscounts(requestParameters: DealsApiGetAdditionalDiscountsRequest, ): Promise { + return localVarFp.getAdditionalDiscounts(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific deal. + * @summary Get details of a deal + * @param {DealsApiGetDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDeal(requestParameters: DealsApiGetDealRequest, ): Promise { + return localVarFp.getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(axios, basePath)); + }, + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {DealsApiGetDealProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealProducts(requestParameters: DealsApiGetDealProductsRequest, ): Promise { + return localVarFp.getDealProducts(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all deals. + * @summary Get all deals + * @param {DealsApiGetDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDeals(requestParameters: DealsApiGetDealsRequest = {}, ): Promise { + return localVarFp.getDeals(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about products attached to deals + * @summary Get deal products of several deals + * @param {DealsApiGetDealsProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getDealsProducts(requestParameters: DealsApiGetDealsProductsRequest, ): Promise { + return localVarFp.getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * @summary Add a discount to a deal + * @param {DealsApiPostAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + postAdditionalDiscount(requestParameters: DealsApiPostAdditionalDiscountRequest, ): Promise { + return localVarFp.postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {DealsApiSearchDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchDeals(requestParameters: DealsApiSearchDealsRequest, ): Promise { + return localVarFp.searchDeals(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached. + * @summary Update a discount added to a deal + * @param {DealsApiUpdateAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateAdditionalDiscount(requestParameters: DealsApiUpdateAdditionalDiscountRequest, ): Promise { + return localVarFp.updateAdditionalDiscount(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a deal. + * @summary Update a deal + * @param {DealsApiUpdateDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateDeal(requestParameters: DealsApiUpdateDealRequest, ): Promise { + return localVarFp.updateDeal(requestParameters.id, requestParameters.UpdateDealRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {DealsApiUpdateDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateDealProduct(requestParameters: DealsApiUpdateDealProductRequest, ): Promise { + return localVarFp.updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addDeal operation in DealsApi. + * @export + * @interface DealsApiAddDealRequest + */ +export interface DealsApiAddDealRequest { + /** + * + * @type {AddDealRequest} + * @memberof DealsApiAddDeal + */ + readonly AddDealRequest?: AddDealRequest +} + +/** + * Request parameters for addDealProduct operation in DealsApi. + * @export + * @interface DealsApiAddDealProductRequest + */ +export interface DealsApiAddDealProductRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiAddDealProduct + */ + readonly id: number + + /** + * + * @type {AddDealProductRequest} + * @memberof DealsApiAddDealProduct + */ + readonly AddDealProductRequest?: AddDealProductRequest +} + +/** + * Request parameters for deleteAdditionalDiscount operation in DealsApi. + * @export + * @interface DealsApiDeleteAdditionalDiscountRequest + */ +export interface DealsApiDeleteAdditionalDiscountRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiDeleteAdditionalDiscount + */ + readonly id: number + + /** + * The ID of the discount + * @type {number} + * @memberof DealsApiDeleteAdditionalDiscount + */ + readonly discount_id: number +} + +/** + * Request parameters for deleteDeal operation in DealsApi. + * @export + * @interface DealsApiDeleteDealRequest + */ +export interface DealsApiDeleteDealRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiDeleteDeal + */ + readonly id: number +} + +/** + * Request parameters for deleteDealProduct operation in DealsApi. + * @export + * @interface DealsApiDeleteDealProductRequest + */ +export interface DealsApiDeleteDealProductRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiDeleteDealProduct + */ + readonly id: number + + /** + * The product attachment ID + * @type {number} + * @memberof DealsApiDeleteDealProduct + */ + readonly product_attachment_id: number +} + +/** + * Request parameters for getAdditionalDiscounts operation in DealsApi. + * @export + * @interface DealsApiGetAdditionalDiscountsRequest + */ +export interface DealsApiGetAdditionalDiscountsRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetAdditionalDiscounts + */ + readonly id: number +} + +/** + * Request parameters for getDeal operation in DealsApi. + * @export + * @interface DealsApiGetDealRequest + */ +export interface DealsApiGetDealRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDeal + */ + readonly id: number + + /** + * Optional comma separated string array of additional fields to include + * @type {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} + * @memberof DealsApiGetDeal + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof DealsApiGetDeal + */ + readonly custom_fields?: string +} + +/** + * Request parameters for getDealProducts operation in DealsApi. + * @export + * @interface DealsApiGetDealProductsRequest + */ +export interface DealsApiGetDealProductsRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiGetDealProducts + */ + readonly id: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof DealsApiGetDealProducts + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof DealsApiGetDealProducts + */ + readonly limit?: number + + /** + * The field to sort by. Supported fields: `id`, `add_time`, `update_time`. + * @type {'id' | 'add_time' | 'update_time'} + * @memberof DealsApiGetDealProducts + */ + readonly sort_by?: 'id' | 'add_time' | 'update_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof DealsApiGetDealProducts + */ + readonly sort_direction?: 'asc' | 'desc' +} + +/** + * Request parameters for getDeals operation in DealsApi. + * @export + * @interface DealsApiGetDealsRequest + */ +export interface DealsApiGetDealsRequest { + /** + * If supplied, only deals matching the specified filter are returned + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly filter_id?: number + + /** + * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @type {string} + * @memberof DealsApiGetDeals + */ + readonly ids?: string + + /** + * If supplied, only deals owned by the specified user are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly owner_id?: number + + /** + * If supplied, only deals linked to the specified person are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly person_id?: number + + /** + * If supplied, only deals linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly org_id?: number + + /** + * If supplied, only deals in the specified pipeline are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly pipeline_id?: number + + /** + * If supplied, only deals in the specified stage are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly stage_id?: number + + /** + * Only fetch deals with a specific status. If omitted, all not deleted deals are returned. If set to deleted, deals that have been deleted up to 30 days ago will be included. Multiple statuses can be included as a comma separated array. If filter_id is provided, this is ignored. + * @type {'open' | 'won' | 'lost' | 'deleted'} + * @memberof DealsApiGetDeals + */ + readonly status?: 'open' | 'won' | 'lost' | 'deleted' + + /** + * If set, only deals with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof DealsApiGetDeals + */ + readonly updated_since?: string + + /** + * If set, only deals with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof DealsApiGetDeals + */ + readonly updated_until?: string + + /** + * The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @type {'id' | 'update_time' | 'add_time'} + * @memberof DealsApiGetDeals + */ + readonly sort_by?: 'id' | 'update_time' | 'add_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof DealsApiGetDeals + */ + readonly sort_direction?: 'asc' | 'desc' + + /** + * Optional comma separated string array of additional fields to include + * @type {'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time'} + * @memberof DealsApiGetDeals + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'first_won_time' | 'products_count' | 'files_count' | 'notes_count' | 'followers_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'participants_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof DealsApiGetDeals + */ + readonly custom_fields?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof DealsApiGetDeals + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof DealsApiGetDeals + */ + readonly cursor?: string +} + +/** + * Request parameters for getDealsProducts operation in DealsApi. + * @export + * @interface DealsApiGetDealsProductsRequest + */ +export interface DealsApiGetDealsProductsRequest { + /** + * An array of integers with the IDs of the deals for which the attached products will be returned. A maximum of 100 deal IDs can be provided. + * @type {Array} + * @memberof DealsApiGetDealsProducts + */ + readonly deal_ids: Array + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof DealsApiGetDealsProducts + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof DealsApiGetDealsProducts + */ + readonly limit?: number + + /** + * The field to sort by. Supported fields: `id`, `deal_id`, `add_time`, `update_time`. + * @type {'id' | 'deal_id' | 'add_time' | 'update_time'} + * @memberof DealsApiGetDealsProducts + */ + readonly sort_by?: 'id' | 'deal_id' | 'add_time' | 'update_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof DealsApiGetDealsProducts + */ + readonly sort_direction?: 'asc' | 'desc' +} + +/** + * Request parameters for postAdditionalDiscount operation in DealsApi. + * @export + * @interface DealsApiPostAdditionalDiscountRequest + */ +export interface DealsApiPostAdditionalDiscountRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiPostAdditionalDiscount + */ + readonly id: number + + /** + * + * @type {AddAdditionalDiscountRequestBody} + * @memberof DealsApiPostAdditionalDiscount + */ + readonly AddAdditionalDiscountRequestBody?: AddAdditionalDiscountRequestBody +} + +/** + * Request parameters for searchDeals operation in DealsApi. + * @export + * @interface DealsApiSearchDealsRequest + */ +export interface DealsApiSearchDealsRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof DealsApiSearchDeals + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {'custom_fields' | 'notes' | 'title'} + * @memberof DealsApiSearchDeals + */ + readonly fields?: 'custom_fields' | 'notes' | 'title' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof DealsApiSearchDeals + */ + readonly exact_match?: boolean + + /** + * Will filter deals by the provided person ID. The upper limit of found deals associated with the person is 2000. + * @type {number} + * @memberof DealsApiSearchDeals + */ + readonly person_id?: number + + /** + * Will filter deals by the provided organization ID. The upper limit of found deals associated with the organization is 2000. + * @type {number} + * @memberof DealsApiSearchDeals + */ + readonly organization_id?: number + + /** + * Will filter deals by the provided specific status. open = Open, won = Won, lost = Lost. The upper limit of found deals associated with the status is 2000. + * @type {'open' | 'won' | 'lost'} + * @memberof DealsApiSearchDeals + */ + readonly status?: 'open' | 'won' | 'lost' + + /** + * Supports including optional fields in the results which are not provided by default + * @type {'deal.cc_email'} + * @memberof DealsApiSearchDeals + */ + readonly include_fields?: 'deal.cc_email' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof DealsApiSearchDeals + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof DealsApiSearchDeals + */ + readonly cursor?: string +} + +/** + * Request parameters for updateAdditionalDiscount operation in DealsApi. + * @export + * @interface DealsApiUpdateAdditionalDiscountRequest + */ +export interface DealsApiUpdateAdditionalDiscountRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiUpdateAdditionalDiscount + */ + readonly id: number + + /** + * The ID of the discount + * @type {number} + * @memberof DealsApiUpdateAdditionalDiscount + */ + readonly discount_id: number + + /** + * + * @type {UpdateAdditionalDiscountRequestBody} + * @memberof DealsApiUpdateAdditionalDiscount + */ + readonly UpdateAdditionalDiscountRequestBody?: UpdateAdditionalDiscountRequestBody +} + +/** + * Request parameters for updateDeal operation in DealsApi. + * @export + * @interface DealsApiUpdateDealRequest + */ +export interface DealsApiUpdateDealRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiUpdateDeal + */ + readonly id: number + + /** + * + * @type {UpdateDealRequest} + * @memberof DealsApiUpdateDeal + */ + readonly UpdateDealRequest?: UpdateDealRequest +} + +/** + * Request parameters for updateDealProduct operation in DealsApi. + * @export + * @interface DealsApiUpdateDealProductRequest + */ +export interface DealsApiUpdateDealProductRequest { + /** + * The ID of the deal + * @type {number} + * @memberof DealsApiUpdateDealProduct + */ + readonly id: number + + /** + * The ID of the deal-product (the ID of the product attached to the deal) + * @type {number} + * @memberof DealsApiUpdateDealProduct + */ + readonly product_attachment_id: number + + /** + * + * @type {UpdateDealProductRequest} + * @memberof DealsApiUpdateDealProduct + */ + readonly UpdateDealProductRequest?: UpdateDealProductRequest +} + +/** + * DealsApi - object-oriented interface + * @export + * @class DealsApi + * @extends {BaseAPI} + */ +export class DealsApi extends BaseAPI { + /** + * Adds a new deal. + * @summary Add a new deal + * @param {DealsApiAddDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public addDeal(requestParameters: DealsApiAddDealRequest = {}, ) { + return DealsApiFp(this.configuration).addDeal(requestParameters.AddDealRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a product to a deal, creating a new item called a deal-product. + * @summary Add a product to a deal + * @param {DealsApiAddDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public addDealProduct(requestParameters: DealsApiAddDealProductRequest, ) { + return DealsApiFp(this.configuration).addDealProduct(requestParameters.id, requestParameters.AddDealProductRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Removes a discount from a deal, changing the deal value if the deal has one-time products attached. + * @summary Delete a discount from a deal + * @param {DealsApiDeleteAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public deleteAdditionalDiscount(requestParameters: DealsApiDeleteAdditionalDiscountRequest, ) { + return DealsApiFp(this.configuration).deleteAdditionalDiscount(requestParameters.id, requestParameters.discount_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a deal as deleted. After 30 days, the deal will be permanently deleted. + * @summary Delete a deal + * @param {DealsApiDeleteDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public deleteDeal(requestParameters: DealsApiDeleteDealRequest, ) { + return DealsApiFp(this.configuration).deleteDeal(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a product attachment from a deal, using the `product_attachment_id`. + * @summary Delete an attached product from a deal + * @param {DealsApiDeleteDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public deleteDealProduct(requestParameters: DealsApiDeleteDealProductRequest, ) { + return DealsApiFp(this.configuration).deleteDealProduct(requestParameters.id, requestParameters.product_attachment_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists discounts attached to a deal. + * @summary List discounts added to a deal + * @param {DealsApiGetAdditionalDiscountsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getAdditionalDiscounts(requestParameters: DealsApiGetAdditionalDiscountsRequest, ) { + return DealsApiFp(this.configuration).getAdditionalDiscounts(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific deal. + * @summary Get details of a deal + * @param {DealsApiGetDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDeal(requestParameters: DealsApiGetDealRequest, ) { + return DealsApiFp(this.configuration).getDeal(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Lists products attached to a deal. + * @summary List products attached to a deal + * @param {DealsApiGetDealProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealProducts(requestParameters: DealsApiGetDealProductsRequest, ) { + return DealsApiFp(this.configuration).getDealProducts(requestParameters.id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all deals. + * @summary Get all deals + * @param {DealsApiGetDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDeals(requestParameters: DealsApiGetDealsRequest = {}, ) { + return DealsApiFp(this.configuration).getDeals(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.person_id, requestParameters.org_id, requestParameters.pipeline_id, requestParameters.stage_id, requestParameters.status, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about products attached to deals + * @summary Get deal products of several deals + * @param {DealsApiGetDealsProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public getDealsProducts(requestParameters: DealsApiGetDealsProductsRequest, ) { + return DealsApiFp(this.configuration).getDealsProducts(requestParameters.deal_ids, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a discount to a deal changing, the deal value if the deal has one-time products attached. + * @summary Add a discount to a deal + * @param {DealsApiPostAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public postAdditionalDiscount(requestParameters: DealsApiPostAdditionalDiscountRequest, ) { + return DealsApiFp(this.configuration).postAdditionalDiscount(requestParameters.id, requestParameters.AddAdditionalDiscountRequestBody, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all deals by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found deals can be filtered by the person ID and the organization ID. + * @summary Search deals + * @param {DealsApiSearchDealsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public searchDeals(requestParameters: DealsApiSearchDealsRequest, ) { + return DealsApiFp(this.configuration).searchDeals(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.status, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Edits a discount added to a deal, changing the deal value if the deal has one-time products attached. + * @summary Update a discount added to a deal + * @param {DealsApiUpdateAdditionalDiscountRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public updateAdditionalDiscount(requestParameters: DealsApiUpdateAdditionalDiscountRequest, ) { + return DealsApiFp(this.configuration).updateAdditionalDiscount(requestParameters.id, requestParameters.discount_id, requestParameters.UpdateAdditionalDiscountRequestBody, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a deal. + * @summary Update a deal + * @param {DealsApiUpdateDealRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public updateDeal(requestParameters: DealsApiUpdateDealRequest, ) { + return DealsApiFp(this.configuration).updateDeal(requestParameters.id, requestParameters.UpdateDealRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the details of the product that has been attached to a deal. + * @summary Update the product attached to a deal + * @param {DealsApiUpdateDealProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof DealsApi + */ + public updateDealProduct(requestParameters: DealsApiUpdateDealProductRequest, ) { + return DealsApiFp(this.configuration).updateDealProduct(requestParameters.id, requestParameters.product_attachment_id, requestParameters.UpdateDealProductRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v2/api/item-search-api.ts b/src/versions/v2/api/item-search-api.ts new file mode 100644 index 00000000..451f3545 --- /dev/null +++ b/src/versions/v2/api/item-search-api.ts @@ -0,0 +1,406 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetItemSearchFieldResponse } from '../models'; +// @ts-ignore +import { GetItemSearchResponse } from '../models'; +/** + * ItemSearchApi - axios parameter creator + * @export + */ +export const ItemSearchApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all. + * @param {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<br/> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. + * @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {'deal.cc_email' | 'person.picture' | 'product.price'} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchItem: async (term: string, item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project', fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description', search_for_related_items?: boolean, exact_match?: boolean, include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price', limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchItem', 'term', term) + const localVarPath = `/itemSearch`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (item_types !== undefined) { + localVarQueryParameter['item_types'] = item_types; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (search_for_related_items !== undefined) { + localVarQueryParameter['search_for_related_items'] = search_for_related_items; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if `match` is `exact`). Please note that the search term has to be URL encoded. + * @param {'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project'} entity_type The type of the field to perform the search from + * @param {string} field The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {'exact' | 'beginning' | 'middle'} [match] The type of match used against the term. The search <b>is</b> case sensitive.<br/><br/> E.g. in case of searching for a value `monkey`, <ul> <li>with `exact` match, you will only find it if term is `monkey`</li> <li>with `beginning` match, you will only find it if the term matches the beginning or the whole string, e.g. `monk` and `monkey`</li> <li>with `middle` match, you will find the it if the term matches any substring of the value, e.g. `onk` and `ke`</li> </ul>. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchItemByField: async (term: string, entity_type: 'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project', field: string, match?: 'exact' | 'beginning' | 'middle', limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchItemByField', 'term', term) + // verify required parameter 'entity_type' is not null or undefined + assertParamExists('searchItemByField', 'entity_type', entity_type) + // verify required parameter 'field' is not null or undefined + assertParamExists('searchItemByField', 'field', field) + const localVarPath = `/itemSearch/field`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (entity_type !== undefined) { + localVarQueryParameter['entity_type'] = entity_type; + } + + if (match !== undefined) { + localVarQueryParameter['match'] = match; + } + + if (field !== undefined) { + localVarQueryParameter['field'] = field; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * ItemSearchApi - functional programming interface + * @export + */ +export const ItemSearchApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ItemSearchApiAxiosParamCreator(configuration) + return { + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} [item_types] A comma-separated string array. The type of items to perform the search from. Defaults to all. + * @param {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<br/> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. + * @param {boolean} [search_for_related_items] When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {'deal.cc_email' | 'person.picture' | 'product.price'} [include_fields] A comma-separated string array. Supports including optional fields in the results which are not provided by default. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchItem(term: string, item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project', fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description', search_for_related_items?: boolean, exact_match?: boolean, include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchItem(term, item_types, fields, search_for_related_items, exact_match, include_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if `match` is `exact`). Please note that the search term has to be URL encoded. + * @param {'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project'} entity_type The type of the field to perform the search from + * @param {string} field The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {'exact' | 'beginning' | 'middle'} [match] The type of match used against the term. The search <b>is</b> case sensitive.<br/><br/> E.g. in case of searching for a value `monkey`, <ul> <li>with `exact` match, you will only find it if term is `monkey`</li> <li>with `beginning` match, you will only find it if the term matches the beginning or the whole string, e.g. `monk` and `monkey`</li> <li>with `middle` match, you will find the it if the term matches any substring of the value, e.g. `onk` and `ke`</li> </ul>. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchItemByField(term: string, entity_type: 'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project', field: string, match?: 'exact' | 'beginning' | 'middle', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchItemByField(term, entity_type, field, match, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ItemSearchApi - factory interface + * @export + */ +export const ItemSearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ItemSearchApiFp(configuration) + return { + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchItem(requestParameters: ItemSearchApiSearchItemRequest, ): Promise { + return localVarFp.searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchItemByField(requestParameters: ItemSearchApiSearchItemByFieldRequest, ): Promise { + return localVarFp.searchItemByField(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for searchItem operation in ItemSearchApi. + * @export + * @interface ItemSearchApiSearchItemRequest + */ +export interface ItemSearchApiSearchItemRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof ItemSearchApiSearchItem + */ + readonly term: string + + /** + * A comma-separated string array. The type of items to perform the search from. Defaults to all. + * @type {'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project'} + * @memberof ItemSearchApiSearchItem + */ + readonly item_types?: 'deal' | 'person' | 'organization' | 'product' | 'lead' | 'file' | 'mail_attachment' | 'project' + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all. Relevant for each item type are:<br> <table> <tr><th><b>Item type</b></th><th><b>Field</b></th></tr> <tr><td>Deal</td><td>`custom_fields`, `notes`, `title`</td></tr> <tr><td>Person</td><td>`custom_fields`, `email`, `name`, `notes`, `phone`</td></tr> <tr><td>Organization</td><td>`address`, `custom_fields`, `name`, `notes`</td></tr> <tr><td>Product</td><td>`code`, `custom_fields`, `name`</td></tr> <tr><td>Lead</td><td>`custom_fields`, `notes`, `email`, `organization_name`, `person_name`, `phone`, `title`</td></tr> <tr><td>File</td><td>`name`</td></tr> <tr><td>Mail attachment</td><td>`name`</td></tr> <tr><td>Project</td><td> `custom_fields`, `notes`, `title`, `description` </td></tr> </table> <br> Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>.<br/> When searching for leads, the email, organization_name, person_name, and phone fields will return results only for leads not linked to contacts. For searching leads by person or organization values, please use `search_for_related_items`. + * @type {'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description'} + * @memberof ItemSearchApiSearchItem + */ + readonly fields?: 'address' | 'code' | 'custom_fields' | 'email' | 'name' | 'notes' | 'organization_name' | 'person_name' | 'phone' | 'title' | 'description' + + /** + * When enabled, the response will include up to 100 newest related leads and 100 newest related deals for each found person and organization and up to 100 newest related persons for each found organization + * @type {boolean} + * @memberof ItemSearchApiSearchItem + */ + readonly search_for_related_items?: boolean + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof ItemSearchApiSearchItem + */ + readonly exact_match?: boolean + + /** + * A comma-separated string array. Supports including optional fields in the results which are not provided by default. + * @type {'deal.cc_email' | 'person.picture' | 'product.price'} + * @memberof ItemSearchApiSearchItem + */ + readonly include_fields?: 'deal.cc_email' | 'person.picture' | 'product.price' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof ItemSearchApiSearchItem + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof ItemSearchApiSearchItem + */ + readonly cursor?: string +} + +/** + * Request parameters for searchItemByField operation in ItemSearchApi. + * @export + * @interface ItemSearchApiSearchItemByFieldRequest + */ +export interface ItemSearchApiSearchItemByFieldRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if `match` is `exact`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof ItemSearchApiSearchItemByField + */ + readonly term: string + + /** + * The type of the field to perform the search from + * @type {'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project'} + * @memberof ItemSearchApiSearchItemByField + */ + readonly entity_type: 'deal' | 'lead' | 'person' | 'organization' | 'product' | 'project' + + /** + * The key of the field to search from. The field key can be obtained by fetching the list of the fields using any of the fields\' API GET methods (dealFields, personFields, etc.). Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {string} + * @memberof ItemSearchApiSearchItemByField + */ + readonly field: string + + /** + * The type of match used against the term. The search <b>is</b> case sensitive.<br/><br/> E.g. in case of searching for a value `monkey`, <ul> <li>with `exact` match, you will only find it if term is `monkey`</li> <li>with `beginning` match, you will only find it if the term matches the beginning or the whole string, e.g. `monk` and `monkey`</li> <li>with `middle` match, you will find the it if the term matches any substring of the value, e.g. `onk` and `ke`</li> </ul>. + * @type {'exact' | 'beginning' | 'middle'} + * @memberof ItemSearchApiSearchItemByField + */ + readonly match?: 'exact' | 'beginning' | 'middle' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof ItemSearchApiSearchItemByField + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof ItemSearchApiSearchItemByField + */ + readonly cursor?: string +} + +/** + * ItemSearchApi - object-oriented interface + * @export + * @class ItemSearchApi + * @extends {BaseAPI} + */ +export class ItemSearchApi extends BaseAPI { + /** + * Performs a search from your choice of item types and fields. + * @summary Perform a search from multiple item types + * @param {ItemSearchApiSearchItemRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ItemSearchApi + */ + public searchItem(requestParameters: ItemSearchApiSearchItemRequest, ) { + return ItemSearchApiFp(this.configuration).searchItem(requestParameters.term, requestParameters.item_types, requestParameters.fields, requestParameters.search_for_related_items, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Performs a search from the values of a specific field. Results can either be the distinct values of the field (useful for searching autocomplete field values), or the IDs of actual items (deals, leads, persons, organizations or products). + * @summary Perform a search using a specific field from an item type + * @param {ItemSearchApiSearchItemByFieldRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ItemSearchApi + */ + public searchItemByField(requestParameters: ItemSearchApiSearchItemByFieldRequest, ) { + return ItemSearchApiFp(this.configuration).searchItemByField(requestParameters.term, requestParameters.entity_type, requestParameters.field, requestParameters.match, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v2/api/leads-api.ts b/src/versions/v2/api/leads-api.ts new file mode 100644 index 00000000..43a185de --- /dev/null +++ b/src/versions/v2/api/leads-api.ts @@ -0,0 +1,244 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { GetLeadSearchResponse } from '../models'; +/** + * LeadsApi - axios parameter creator + * @export + */ +export const LeadsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. + * @param {number} [organization_id] Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. + * @param {'lead.was_seen'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchLeads: async (term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: 'lead.was_seen', limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchLeads', 'term', term) + const localVarPath = `/leads/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["leads:read", "leads:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (person_id !== undefined) { + localVarQueryParameter['person_id'] = person_id; + } + + if (organization_id !== undefined) { + localVarQueryParameter['organization_id'] = organization_id; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * LeadsApi - functional programming interface + * @export + */ +export const LeadsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = LeadsApiAxiosParamCreator(configuration) + return { + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'notes' | 'title'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [person_id] Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. + * @param {number} [organization_id] Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. + * @param {'lead.was_seen'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchLeads(term: string, fields?: 'custom_fields' | 'notes' | 'title', exact_match?: boolean, person_id?: number, organization_id?: number, include_fields?: 'lead.was_seen', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchLeads(term, fields, exact_match, person_id, organization_id, include_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * LeadsApi - factory interface + * @export + */ +export const LeadsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = LeadsApiFp(configuration) + return { + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {LeadsApiSearchLeadsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchLeads(requestParameters: LeadsApiSearchLeadsRequest, ): Promise { + return localVarFp.searchLeads(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for searchLeads operation in LeadsApi. + * @export + * @interface LeadsApiSearchLeadsRequest + */ +export interface LeadsApiSearchLeadsRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof LeadsApiSearchLeads + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. + * @type {'custom_fields' | 'notes' | 'title'} + * @memberof LeadsApiSearchLeads + */ + readonly fields?: 'custom_fields' | 'notes' | 'title' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof LeadsApiSearchLeads + */ + readonly exact_match?: boolean + + /** + * Will filter leads by the provided person ID. The upper limit of found leads associated with the person is 2000. + * @type {number} + * @memberof LeadsApiSearchLeads + */ + readonly person_id?: number + + /** + * Will filter leads by the provided organization ID. The upper limit of found leads associated with the organization is 2000. + * @type {number} + * @memberof LeadsApiSearchLeads + */ + readonly organization_id?: number + + /** + * Supports including optional fields in the results which are not provided by default + * @type {'lead.was_seen'} + * @memberof LeadsApiSearchLeads + */ + readonly include_fields?: 'lead.was_seen' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof LeadsApiSearchLeads + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof LeadsApiSearchLeads + */ + readonly cursor?: string +} + +/** + * LeadsApi - object-oriented interface + * @export + * @class LeadsApi + * @extends {BaseAPI} + */ +export class LeadsApi extends BaseAPI { + /** + * Searches all leads by title, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found leads can be filtered by the person ID and the organization ID. + * @summary Search leads + * @param {LeadsApiSearchLeadsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof LeadsApi + */ + public searchLeads(requestParameters: LeadsApiSearchLeadsRequest, ) { + return LeadsApiFp(this.configuration).searchLeads(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.person_id, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v2/api/organizations-api.ts b/src/versions/v2/api/organizations-api.ts new file mode 100644 index 00000000..10045267 --- /dev/null +++ b/src/versions/v2/api/organizations-api.ts @@ -0,0 +1,824 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddOrganizationRequest } from '../models'; +// @ts-ignore +import { DeleteOrganizationResponse } from '../models'; +// @ts-ignore +import { GetOrganizationSearchResponse } from '../models'; +// @ts-ignore +import { GetOrganizationsResponse } from '../models'; +// @ts-ignore +import { UpdateOrganizationRequest } from '../models'; +// @ts-ignore +import { UpsertOrganizationResponse } from '../models'; +/** + * OrganizationsApi - axios parameter creator + * @export + */ +export const OrganizationsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new organization. + * @summary Add a new organization + * @param {AddOrganizationRequest} [AddOrganizationRequest] + + * @throws {RequiredError} + */ + addOrganization: async (AddOrganizationRequest?: AddOrganizationRequest, ): Promise => { + const localVarPath = `/organizations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddOrganizationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete a organization + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + deleteOrganization: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteOrganization', 'id', id) + const localVarPath = `/organizations/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific organization. + * @summary Get details of a organization + * @param {number} id The ID of the organization + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + getOrganization: async (id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count', custom_fields?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getOrganization', 'id', id) + const localVarPath = `/organizations/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all organizations. + * @summary Get all organizations + * @param {number} [filter_id] If supplied, only organizations matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only organization owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only organizations with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only organizations with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + getOrganizations: async (filter_id?: number, ids?: string, owner_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count', custom_fields?: string, limit?: number, cursor?: string, ): Promise => { + const localVarPath = `/organizations`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (updated_since !== undefined) { + localVarQueryParameter['updated_since'] = updated_since; + } + + if (updated_until !== undefined) { + localVarQueryParameter['updated_until'] = updated_until; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'address' | 'custom_fields' | 'notes' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchOrganization: async (term: string, fields?: 'address' | 'custom_fields' | 'notes' | 'name', exact_match?: boolean, limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchOrganization', 'term', term) + const localVarPath = `/organizations/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a organization. + * @summary Update a organization + * @param {number} id The ID of the organization + * @param {UpdateOrganizationRequest} [UpdateOrganizationRequest] + + * @throws {RequiredError} + */ + updateOrganization: async (id: number, UpdateOrganizationRequest?: UpdateOrganizationRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateOrganization', 'id', id) + const localVarPath = `/organizations/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateOrganizationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * OrganizationsApi - functional programming interface + * @export + */ +export const OrganizationsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new organization. + * @summary Add a new organization + * @param {AddOrganizationRequest} [AddOrganizationRequest] + + * @throws {RequiredError} + */ + async addOrganization(AddOrganizationRequest?: AddOrganizationRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addOrganization(AddOrganizationRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete a organization + * @param {number} id The ID of the organization + + * @throws {RequiredError} + */ + async deleteOrganization(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganization(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific organization. + * @summary Get details of a organization + * @param {number} id The ID of the organization + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + async getOrganization(id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count', custom_fields?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganization(id, include_fields, custom_fields, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all organizations. + * @summary Get all organizations + * @param {number} [filter_id] If supplied, only organizations matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only organization owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only organizations with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only organizations with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} [include_fields] Optional comma separated string array of additional fields to include + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async getOrganizations(filter_id?: number, ids?: string, owner_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count', custom_fields?: string, limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganizations(filter_id, ids, owner_id, updated_since, updated_until, sort_by, sort_direction, include_fields, custom_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'address' | 'custom_fields' | 'notes' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchOrganization(term: string, fields?: 'address' | 'custom_fields' | 'notes' | 'name', exact_match?: boolean, limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchOrganization(term, fields, exact_match, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a organization. + * @summary Update a organization + * @param {number} id The ID of the organization + * @param {UpdateOrganizationRequest} [UpdateOrganizationRequest] + + * @throws {RequiredError} + */ + async updateOrganization(id: number, UpdateOrganizationRequest?: UpdateOrganizationRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(id, UpdateOrganizationRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * OrganizationsApi - factory interface + * @export + */ +export const OrganizationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = OrganizationsApiFp(configuration) + return { + /** + * Adds a new organization. + * @summary Add a new organization + * @param {OrganizationsApiAddOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addOrganization(requestParameters: OrganizationsApiAddOrganizationRequest = {}, ): Promise { + return localVarFp.addOrganization(requestParameters.AddOrganizationRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete a organization + * @param {OrganizationsApiDeleteOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteOrganization(requestParameters: OrganizationsApiDeleteOrganizationRequest, ): Promise { + return localVarFp.deleteOrganization(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific organization. + * @summary Get details of a organization + * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, ): Promise { + return localVarFp.getOrganization(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all organizations. + * @summary Get all organizations + * @param {OrganizationsApiGetOrganizationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getOrganizations(requestParameters: OrganizationsApiGetOrganizationsRequest = {}, ): Promise { + return localVarFp.getOrganizations(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {OrganizationsApiSearchOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchOrganization(requestParameters: OrganizationsApiSearchOrganizationRequest, ): Promise { + return localVarFp.searchOrganization(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a organization. + * @summary Update a organization + * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, ): Promise { + return localVarFp.updateOrganization(requestParameters.id, requestParameters.UpdateOrganizationRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addOrganization operation in OrganizationsApi. + * @export + * @interface OrganizationsApiAddOrganizationRequest + */ +export interface OrganizationsApiAddOrganizationRequest { + /** + * + * @type {AddOrganizationRequest} + * @memberof OrganizationsApiAddOrganization + */ + readonly AddOrganizationRequest?: AddOrganizationRequest +} + +/** + * Request parameters for deleteOrganization operation in OrganizationsApi. + * @export + * @interface OrganizationsApiDeleteOrganizationRequest + */ +export interface OrganizationsApiDeleteOrganizationRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiDeleteOrganization + */ + readonly id: number +} + +/** + * Request parameters for getOrganization operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationRequest + */ +export interface OrganizationsApiGetOrganizationRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiGetOrganization + */ + readonly id: number + + /** + * Optional comma separated string array of additional fields to include + * @type {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} + * @memberof OrganizationsApiGetOrganization + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof OrganizationsApiGetOrganization + */ + readonly custom_fields?: string +} + +/** + * Request parameters for getOrganizations operation in OrganizationsApi. + * @export + * @interface OrganizationsApiGetOrganizationsRequest + */ +export interface OrganizationsApiGetOrganizationsRequest { + /** + * If supplied, only organizations matching the specified filter are returned + * @type {number} + * @memberof OrganizationsApiGetOrganizations + */ + readonly filter_id?: number + + /** + * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @type {string} + * @memberof OrganizationsApiGetOrganizations + */ + readonly ids?: string + + /** + * If supplied, only organization owned by the specified user are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof OrganizationsApiGetOrganizations + */ + readonly owner_id?: number + + /** + * If set, only organizations with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof OrganizationsApiGetOrganizations + */ + readonly updated_since?: string + + /** + * If set, only organizations with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof OrganizationsApiGetOrganizations + */ + readonly updated_until?: string + + /** + * The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @type {'id' | 'update_time' | 'add_time'} + * @memberof OrganizationsApiGetOrganizations + */ + readonly sort_by?: 'id' | 'update_time' | 'add_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof OrganizationsApiGetOrganizations + */ + readonly sort_direction?: 'asc' | 'desc' + + /** + * Optional comma separated string array of additional fields to include + * @type {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count'} + * @memberof OrganizationsApiGetOrganizations + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'email_messages_count' | 'people_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof OrganizationsApiGetOrganizations + */ + readonly custom_fields?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof OrganizationsApiGetOrganizations + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof OrganizationsApiGetOrganizations + */ + readonly cursor?: string +} + +/** + * Request parameters for searchOrganization operation in OrganizationsApi. + * @export + * @interface OrganizationsApiSearchOrganizationRequest + */ +export interface OrganizationsApiSearchOrganizationRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof OrganizationsApiSearchOrganization + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {'address' | 'custom_fields' | 'notes' | 'name'} + * @memberof OrganizationsApiSearchOrganization + */ + readonly fields?: 'address' | 'custom_fields' | 'notes' | 'name' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof OrganizationsApiSearchOrganization + */ + readonly exact_match?: boolean + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof OrganizationsApiSearchOrganization + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof OrganizationsApiSearchOrganization + */ + readonly cursor?: string +} + +/** + * Request parameters for updateOrganization operation in OrganizationsApi. + * @export + * @interface OrganizationsApiUpdateOrganizationRequest + */ +export interface OrganizationsApiUpdateOrganizationRequest { + /** + * The ID of the organization + * @type {number} + * @memberof OrganizationsApiUpdateOrganization + */ + readonly id: number + + /** + * + * @type {UpdateOrganizationRequest} + * @memberof OrganizationsApiUpdateOrganization + */ + readonly UpdateOrganizationRequest?: UpdateOrganizationRequest +} + +/** + * OrganizationsApi - object-oriented interface + * @export + * @class OrganizationsApi + * @extends {BaseAPI} + */ +export class OrganizationsApi extends BaseAPI { + /** + * Adds a new organization. + * @summary Add a new organization + * @param {OrganizationsApiAddOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public addOrganization(requestParameters: OrganizationsApiAddOrganizationRequest = {}, ) { + return OrganizationsApiFp(this.configuration).addOrganization(requestParameters.AddOrganizationRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a organization as deleted. After 30 days, the organization will be permanently deleted. + * @summary Delete a organization + * @param {OrganizationsApiDeleteOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public deleteOrganization(requestParameters: OrganizationsApiDeleteOrganizationRequest, ) { + return OrganizationsApiFp(this.configuration).deleteOrganization(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific organization. + * @summary Get details of a organization + * @param {OrganizationsApiGetOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganization(requestParameters: OrganizationsApiGetOrganizationRequest, ) { + return OrganizationsApiFp(this.configuration).getOrganization(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all organizations. + * @summary Get all organizations + * @param {OrganizationsApiGetOrganizationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public getOrganizations(requestParameters: OrganizationsApiGetOrganizationsRequest = {}, ) { + return OrganizationsApiFp(this.configuration).getOrganizations(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all organizations by name, address, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search organizations + * @param {OrganizationsApiSearchOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public searchOrganization(requestParameters: OrganizationsApiSearchOrganizationRequest, ) { + return OrganizationsApiFp(this.configuration).searchOrganization(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a organization. + * @summary Update a organization + * @param {OrganizationsApiUpdateOrganizationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof OrganizationsApi + */ + public updateOrganization(requestParameters: OrganizationsApiUpdateOrganizationRequest, ) { + return OrganizationsApiFp(this.configuration).updateOrganization(requestParameters.id, requestParameters.UpdateOrganizationRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v2/api/persons-api.ts b/src/versions/v2/api/persons-api.ts new file mode 100644 index 00000000..ffb68361 --- /dev/null +++ b/src/versions/v2/api/persons-api.ts @@ -0,0 +1,863 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddPersonRequest } from '../models'; +// @ts-ignore +import { DeletePersonResponse } from '../models'; +// @ts-ignore +import { GetPersonSearchResponse } from '../models'; +// @ts-ignore +import { GetPersonsResponse } from '../models'; +// @ts-ignore +import { UpdatePersonRequest } from '../models'; +// @ts-ignore +import { UpsertPersonResponse } from '../models'; +/** + * PersonsApi - axios parameter creator + * @export + */ +export const PersonsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new person. + * @summary Add a new person + * @param {AddPersonRequest} [AddPersonRequest] + + * @throws {RequiredError} + */ + addPerson: async (AddPersonRequest?: AddPersonRequest, ): Promise => { + const localVarPath = `/persons`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddPersonRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + deletePerson: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deletePerson', 'id', id) + const localVarPath = `/persons/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get details of a person + * @param {number} id The ID of the person + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} [include_fields] Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + getPerson: async (id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status', custom_fields?: string, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPerson', 'id', id) + const localVarPath = `/persons/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get all persons + * @param {number} [filter_id] If supplied, only persons matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {number} [org_id] If supplied, only persons linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only persons with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} [include_fields] Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + getPersons: async (filter_id?: number, ids?: string, owner_id?: number, org_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status', custom_fields?: string, limit?: number, cursor?: string, ): Promise => { + const localVarPath = `/persons`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full"], configuration) + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (org_id !== undefined) { + localVarQueryParameter['org_id'] = org_id; + } + + if (updated_since !== undefined) { + localVarQueryParameter['updated_since'] = updated_since; + } + + if (updated_until !== undefined) { + localVarQueryParameter['updated_until'] = updated_until; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. + * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchPersons: async (term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchPersons', 'term', term) + const localVarPath = `/persons/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:read", "contacts:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (organization_id !== undefined) { + localVarQueryParameter['organization_id'] = organization_id; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a person. + * @summary Update a person + * @param {number} id The ID of the person + * @param {UpdatePersonRequest} [UpdatePersonRequest] + + * @throws {RequiredError} + */ + updatePerson: async (id: number, UpdatePersonRequest?: UpdatePersonRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updatePerson', 'id', id) + const localVarPath = `/persons/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["contacts:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdatePersonRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * PersonsApi - functional programming interface + * @export + */ +export const PersonsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PersonsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new person. + * @summary Add a new person + * @param {AddPersonRequest} [AddPersonRequest] + + * @throws {RequiredError} + */ + async addPerson(AddPersonRequest?: AddPersonRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addPerson(AddPersonRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {number} id The ID of the person + + * @throws {RequiredError} + */ + async deletePerson(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePerson(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get details of a person + * @param {number} id The ID of the person + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} [include_fields] Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + async getPerson(id: number, include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status', custom_fields?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPerson(id, include_fields, custom_fields, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get all persons + * @param {number} [filter_id] If supplied, only persons matching the specified filter are returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [owner_id] If supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored. + * @param {number} [org_id] If supplied, only persons linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @param {string} [updated_since] If set, only persons with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {string} [updated_until] If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} [include_fields] Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @param {string} [custom_fields] Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async getPersons(filter_id?: number, ids?: string, owner_id?: number, org_id?: number, updated_since?: string, updated_until?: string, sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status', custom_fields?: string, limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPersons(filter_id, ids, owner_id, org_id, updated_since, updated_until, sort_by, sort_direction, include_fields, custom_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {number} [organization_id] Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. + * @param {'person.picture'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchPersons(term: string, fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name', exact_match?: boolean, organization_id?: number, include_fields?: 'person.picture', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchPersons(term, fields, exact_match, organization_id, include_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a person. + * @summary Update a person + * @param {number} id The ID of the person + * @param {UpdatePersonRequest} [UpdatePersonRequest] + + * @throws {RequiredError} + */ + async updatePerson(id: number, UpdatePersonRequest?: UpdatePersonRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatePerson(id, UpdatePersonRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * PersonsApi - factory interface + * @export + */ +export const PersonsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PersonsApiFp(configuration) + return { + /** + * Adds a new person. + * @summary Add a new person + * @param {PersonsApiAddPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addPerson(requestParameters: PersonsApiAddPersonRequest = {}, ): Promise { + return localVarFp.addPerson(requestParameters.AddPersonRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {PersonsApiDeletePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deletePerson(requestParameters: PersonsApiDeletePersonRequest, ): Promise { + return localVarFp.deletePerson(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get details of a person + * @param {PersonsApiGetPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPerson(requestParameters: PersonsApiGetPersonRequest, ): Promise { + return localVarFp.getPerson(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get all persons + * @param {PersonsApiGetPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPersons(requestParameters: PersonsApiGetPersonsRequest = {}, ): Promise { + return localVarFp.getPersons(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.org_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {PersonsApiSearchPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchPersons(requestParameters: PersonsApiSearchPersonsRequest, ): Promise { + return localVarFp.searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a person. + * @summary Update a person + * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updatePerson(requestParameters: PersonsApiUpdatePersonRequest, ): Promise { + return localVarFp.updatePerson(requestParameters.id, requestParameters.UpdatePersonRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addPerson operation in PersonsApi. + * @export + * @interface PersonsApiAddPersonRequest + */ +export interface PersonsApiAddPersonRequest { + /** + * + * @type {AddPersonRequest} + * @memberof PersonsApiAddPerson + */ + readonly AddPersonRequest?: AddPersonRequest +} + +/** + * Request parameters for deletePerson operation in PersonsApi. + * @export + * @interface PersonsApiDeletePersonRequest + */ +export interface PersonsApiDeletePersonRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiDeletePerson + */ + readonly id: number +} + +/** + * Request parameters for getPerson operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonRequest + */ +export interface PersonsApiGetPersonRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiGetPerson + */ + readonly id: number + + /** + * Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @type {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} + * @memberof PersonsApiGetPerson + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof PersonsApiGetPerson + */ + readonly custom_fields?: string +} + +/** + * Request parameters for getPersons operation in PersonsApi. + * @export + * @interface PersonsApiGetPersonsRequest + */ +export interface PersonsApiGetPersonsRequest { + /** + * If supplied, only persons matching the specified filter are returned + * @type {number} + * @memberof PersonsApiGetPersons + */ + readonly filter_id?: number + + /** + * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @type {string} + * @memberof PersonsApiGetPersons + */ + readonly ids?: string + + /** + * If supplied, only persons owned by the specified user are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof PersonsApiGetPersons + */ + readonly owner_id?: number + + /** + * If supplied, only persons linked to the specified organization are returned. If filter_id is provided, this is ignored. + * @type {number} + * @memberof PersonsApiGetPersons + */ + readonly org_id?: number + + /** + * If set, only persons with an `update_time` later than or equal to this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof PersonsApiGetPersons + */ + readonly updated_since?: string + + /** + * If set, only persons with an `update_time` earlier than this time are returned. In RFC3339 format, e.g. 2025-01-01T10:20:00Z. + * @type {string} + * @memberof PersonsApiGetPersons + */ + readonly updated_until?: string + + /** + * The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @type {'id' | 'update_time' | 'add_time'} + * @memberof PersonsApiGetPersons + */ + readonly sort_by?: 'id' | 'update_time' | 'add_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof PersonsApiGetPersons + */ + readonly sort_direction?: 'asc' | 'desc' + + /** + * Optional comma separated string array of additional fields to include. `marketing_status` and `doi_status` can only be included if the company has marketing app enabled. + * @type {'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status'} + * @memberof PersonsApiGetPersons + */ + readonly include_fields?: 'next_activity_id' | 'last_activity_id' | 'open_deals_count' | 'related_open_deals_count' | 'closed_deals_count' | 'related_closed_deals_count' | 'participant_open_deals_count' | 'participant_closed_deals_count' | 'email_messages_count' | 'activities_count' | 'done_activities_count' | 'undone_activities_count' | 'files_count' | 'notes_count' | 'followers_count' | 'won_deals_count' | 'related_won_deals_count' | 'lost_deals_count' | 'related_lost_deals_count' | 'last_incoming_mail_time' | 'last_outgoing_mail_time' | 'marketing_status' | 'doi_status' + + /** + * Optional comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for faster results and smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof PersonsApiGetPersons + */ + readonly custom_fields?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof PersonsApiGetPersons + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof PersonsApiGetPersons + */ + readonly cursor?: string +} + +/** + * Request parameters for searchPersons operation in PersonsApi. + * @export + * @interface PersonsApiSearchPersonsRequest + */ +export interface PersonsApiSearchPersonsRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof PersonsApiSearchPersons + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {'custom_fields' | 'email' | 'notes' | 'phone' | 'name'} + * @memberof PersonsApiSearchPersons + */ + readonly fields?: 'custom_fields' | 'email' | 'notes' | 'phone' | 'name' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof PersonsApiSearchPersons + */ + readonly exact_match?: boolean + + /** + * Will filter persons by the provided organization ID. The upper limit of found persons associated with the organization is 2000. + * @type {number} + * @memberof PersonsApiSearchPersons + */ + readonly organization_id?: number + + /** + * Supports including optional fields in the results which are not provided by default + * @type {'person.picture'} + * @memberof PersonsApiSearchPersons + */ + readonly include_fields?: 'person.picture' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof PersonsApiSearchPersons + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof PersonsApiSearchPersons + */ + readonly cursor?: string +} + +/** + * Request parameters for updatePerson operation in PersonsApi. + * @export + * @interface PersonsApiUpdatePersonRequest + */ +export interface PersonsApiUpdatePersonRequest { + /** + * The ID of the person + * @type {number} + * @memberof PersonsApiUpdatePerson + */ + readonly id: number + + /** + * + * @type {UpdatePersonRequest} + * @memberof PersonsApiUpdatePerson + */ + readonly UpdatePersonRequest?: UpdatePersonRequest +} + +/** + * PersonsApi - object-oriented interface + * @export + * @class PersonsApi + * @extends {BaseAPI} + */ +export class PersonsApi extends BaseAPI { + /** + * Adds a new person. + * @summary Add a new person + * @param {PersonsApiAddPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public addPerson(requestParameters: PersonsApiAddPersonRequest = {}, ) { + return PersonsApiFp(this.configuration).addPerson(requestParameters.AddPersonRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a person as deleted. After 30 days, the person will be permanently deleted. + * @summary Delete a person + * @param {PersonsApiDeletePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public deletePerson(requestParameters: PersonsApiDeletePersonRequest, ) { + return PersonsApiFp(this.configuration).deletePerson(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns the details of a specific person. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get details of a person + * @param {PersonsApiGetPersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPerson(requestParameters: PersonsApiGetPersonRequest, ) { + return PersonsApiFp(this.configuration).getPerson(requestParameters.id, requestParameters.include_fields, requestParameters.custom_fields, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all persons. Fields `ims`, `postal_address`, `notes`, `birthday`, and `job_title` are only included if contact sync is enabled for the company. + * @summary Get all persons + * @param {PersonsApiGetPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public getPersons(requestParameters: PersonsApiGetPersonsRequest = {}, ) { + return PersonsApiFp(this.configuration).getPersons(requestParameters.filter_id, requestParameters.ids, requestParameters.owner_id, requestParameters.org_id, requestParameters.updated_since, requestParameters.updated_until, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.include_fields, requestParameters.custom_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. Found persons can be filtered by organization ID. + * @summary Search persons + * @param {PersonsApiSearchPersonsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public searchPersons(requestParameters: PersonsApiSearchPersonsRequest, ) { + return PersonsApiFp(this.configuration).searchPersons(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.organization_id, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a person. + * @summary Update a person + * @param {PersonsApiUpdatePersonRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PersonsApi + */ + public updatePerson(requestParameters: PersonsApiUpdatePersonRequest, ) { + return PersonsApiFp(this.configuration).updatePerson(requestParameters.id, requestParameters.UpdatePersonRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v2/api/pipelines-api.ts b/src/versions/v2/api/pipelines-api.ts new file mode 100644 index 00000000..ba40c69c --- /dev/null +++ b/src/versions/v2/api/pipelines-api.ts @@ -0,0 +1,562 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddPipelineRequest } from '../models'; +// @ts-ignore +import { DeletePipelineResponse } from '../models'; +// @ts-ignore +import { GetPipelinesResponse } from '../models'; +// @ts-ignore +import { UpdatePipelineRequest } from '../models'; +// @ts-ignore +import { UpsertPipelineResponse } from '../models'; +/** + * PipelinesApi - axios parameter creator + * @export + */ +export const PipelinesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new pipeline. + * @summary Add a new pipeline + * @param {AddPipelineRequest} [AddPipelineRequest] + + * @throws {RequiredError} + */ + addPipeline: async (AddPipelineRequest?: AddPipelineRequest, ): Promise => { + const localVarPath = `/pipelines`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddPipelineRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a pipeline as deleted. + * @summary Delete a pipeline + * @param {number} id The ID of the pipeline + + * @throws {RequiredError} + */ + deletePipeline: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deletePipeline', 'id', id) + const localVarPath = `/pipelines/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific pipeline. + * @summary Get one pipeline + * @param {number} id The ID of the pipeline + + * @throws {RequiredError} + */ + getPipeline: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getPipeline', 'id', id) + const localVarPath = `/pipelines/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all pipelines. + * @summary Get all pipelines + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + getPipelines: async (sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', limit?: number, cursor?: string, ): Promise => { + const localVarPath = `/pipelines`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a pipeline. + * @summary Update a pipeline + * @param {number} id The ID of the pipeline + * @param {UpdatePipelineRequest} [UpdatePipelineRequest] + + * @throws {RequiredError} + */ + updatePipeline: async (id: number, UpdatePipelineRequest?: UpdatePipelineRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updatePipeline', 'id', id) + const localVarPath = `/pipelines/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdatePipelineRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * PipelinesApi - functional programming interface + * @export + */ +export const PipelinesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = PipelinesApiAxiosParamCreator(configuration) + return { + /** + * Adds a new pipeline. + * @summary Add a new pipeline + * @param {AddPipelineRequest} [AddPipelineRequest] + + * @throws {RequiredError} + */ + async addPipeline(AddPipelineRequest?: AddPipelineRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addPipeline(AddPipelineRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a pipeline as deleted. + * @summary Delete a pipeline + * @param {number} id The ID of the pipeline + + * @throws {RequiredError} + */ + async deletePipeline(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deletePipeline(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific pipeline. + * @summary Get one pipeline + * @param {number} id The ID of the pipeline + + * @throws {RequiredError} + */ + async getPipeline(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPipeline(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all pipelines. + * @summary Get all pipelines + * @param {'id' | 'update_time' | 'add_time'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async getPipelines(sort_by?: 'id' | 'update_time' | 'add_time', sort_direction?: 'asc' | 'desc', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getPipelines(sort_by, sort_direction, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a pipeline. + * @summary Update a pipeline + * @param {number} id The ID of the pipeline + * @param {UpdatePipelineRequest} [UpdatePipelineRequest] + + * @throws {RequiredError} + */ + async updatePipeline(id: number, UpdatePipelineRequest?: UpdatePipelineRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updatePipeline(id, UpdatePipelineRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * PipelinesApi - factory interface + * @export + */ +export const PipelinesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = PipelinesApiFp(configuration) + return { + /** + * Adds a new pipeline. + * @summary Add a new pipeline + * @param {PipelinesApiAddPipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addPipeline(requestParameters: PipelinesApiAddPipelineRequest = {}, ): Promise { + return localVarFp.addPipeline(requestParameters.AddPipelineRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a pipeline as deleted. + * @summary Delete a pipeline + * @param {PipelinesApiDeletePipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deletePipeline(requestParameters: PipelinesApiDeletePipelineRequest, ): Promise { + return localVarFp.deletePipeline(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific pipeline. + * @summary Get one pipeline + * @param {PipelinesApiGetPipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPipeline(requestParameters: PipelinesApiGetPipelineRequest, ): Promise { + return localVarFp.getPipeline(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all pipelines. + * @summary Get all pipelines + * @param {PipelinesApiGetPipelinesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getPipelines(requestParameters: PipelinesApiGetPipelinesRequest = {}, ): Promise { + return localVarFp.getPipelines(requestParameters.sort_by, requestParameters.sort_direction, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a pipeline. + * @summary Update a pipeline + * @param {PipelinesApiUpdatePipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updatePipeline(requestParameters: PipelinesApiUpdatePipelineRequest, ): Promise { + return localVarFp.updatePipeline(requestParameters.id, requestParameters.UpdatePipelineRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addPipeline operation in PipelinesApi. + * @export + * @interface PipelinesApiAddPipelineRequest + */ +export interface PipelinesApiAddPipelineRequest { + /** + * + * @type {AddPipelineRequest} + * @memberof PipelinesApiAddPipeline + */ + readonly AddPipelineRequest?: AddPipelineRequest +} + +/** + * Request parameters for deletePipeline operation in PipelinesApi. + * @export + * @interface PipelinesApiDeletePipelineRequest + */ +export interface PipelinesApiDeletePipelineRequest { + /** + * The ID of the pipeline + * @type {number} + * @memberof PipelinesApiDeletePipeline + */ + readonly id: number +} + +/** + * Request parameters for getPipeline operation in PipelinesApi. + * @export + * @interface PipelinesApiGetPipelineRequest + */ +export interface PipelinesApiGetPipelineRequest { + /** + * The ID of the pipeline + * @type {number} + * @memberof PipelinesApiGetPipeline + */ + readonly id: number +} + +/** + * Request parameters for getPipelines operation in PipelinesApi. + * @export + * @interface PipelinesApiGetPipelinesRequest + */ +export interface PipelinesApiGetPipelinesRequest { + /** + * The field to sort by. Supported fields: `id`, `update_time`, `add_time`. + * @type {'id' | 'update_time' | 'add_time'} + * @memberof PipelinesApiGetPipelines + */ + readonly sort_by?: 'id' | 'update_time' | 'add_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof PipelinesApiGetPipelines + */ + readonly sort_direction?: 'asc' | 'desc' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof PipelinesApiGetPipelines + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof PipelinesApiGetPipelines + */ + readonly cursor?: string +} + +/** + * Request parameters for updatePipeline operation in PipelinesApi. + * @export + * @interface PipelinesApiUpdatePipelineRequest + */ +export interface PipelinesApiUpdatePipelineRequest { + /** + * The ID of the pipeline + * @type {number} + * @memberof PipelinesApiUpdatePipeline + */ + readonly id: number + + /** + * + * @type {UpdatePipelineRequest} + * @memberof PipelinesApiUpdatePipeline + */ + readonly UpdatePipelineRequest?: UpdatePipelineRequest +} + +/** + * PipelinesApi - object-oriented interface + * @export + * @class PipelinesApi + * @extends {BaseAPI} + */ +export class PipelinesApi extends BaseAPI { + /** + * Adds a new pipeline. + * @summary Add a new pipeline + * @param {PipelinesApiAddPipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public addPipeline(requestParameters: PipelinesApiAddPipelineRequest = {}, ) { + return PipelinesApiFp(this.configuration).addPipeline(requestParameters.AddPipelineRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a pipeline as deleted. + * @summary Delete a pipeline + * @param {PipelinesApiDeletePipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public deletePipeline(requestParameters: PipelinesApiDeletePipelineRequest, ) { + return PipelinesApiFp(this.configuration).deletePipeline(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific pipeline. + * @summary Get one pipeline + * @param {PipelinesApiGetPipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public getPipeline(requestParameters: PipelinesApiGetPipelineRequest, ) { + return PipelinesApiFp(this.configuration).getPipeline(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all pipelines. + * @summary Get all pipelines + * @param {PipelinesApiGetPipelinesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public getPipelines(requestParameters: PipelinesApiGetPipelinesRequest = {}, ) { + return PipelinesApiFp(this.configuration).getPipelines(requestParameters.sort_by, requestParameters.sort_direction, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a pipeline. + * @summary Update a pipeline + * @param {PipelinesApiUpdatePipelineRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof PipelinesApi + */ + public updatePipeline(requestParameters: PipelinesApiUpdatePipelineRequest, ) { + return PipelinesApiFp(this.configuration).updatePipeline(requestParameters.id, requestParameters.UpdatePipelineRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v2/api/products-api.ts b/src/versions/v2/api/products-api.ts new file mode 100644 index 00000000..75cfd025 --- /dev/null +++ b/src/versions/v2/api/products-api.ts @@ -0,0 +1,1210 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddProductRequest } from '../models'; +// @ts-ignore +import { AddProductVariationRequest } from '../models'; +// @ts-ignore +import { DeleteProductResponse } from '../models'; +// @ts-ignore +import { DeleteProductVariationResponse } from '../models'; +// @ts-ignore +import { GetProductResponse } from '../models'; +// @ts-ignore +import { GetProductSearchResponse } from '../models'; +// @ts-ignore +import { GetProductVariationResponse } from '../models'; +// @ts-ignore +import { GetProductVariationsResponse } from '../models'; +// @ts-ignore +import { GetProductsResponse } from '../models'; +// @ts-ignore +import { UpdateProductRequest } from '../models'; +// @ts-ignore +import { UpdateProductResponse } from '../models'; +// @ts-ignore +import { UpdateProductVariationRequest } from '../models'; +/** + * ProductsApi - axios parameter creator + * @export + */ +export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. + * @summary Add a product + * @param {AddProductRequest} [AddProductRequest] + + * @throws {RequiredError} + */ + addProduct: async (AddProductRequest?: AddProductRequest, ): Promise => { + const localVarPath = `/products`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddProductRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Adds a new product variation. + * @summary Add a product variation + * @param {number} id The ID of the product + * @param {AddProductVariationRequest} [AddProductVariationRequest] + + * @throws {RequiredError} + */ + addProductVariation: async (id: number, AddProductVariationRequest?: AddProductVariationRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('addProductVariation', 'id', id) + const localVarPath = `/products/{id}/variations` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddProductVariationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a product as deleted. After 30 days, the product will be permanently deleted. + * @summary Delete a product + * @param {number} id The ID of the product + + * @throws {RequiredError} + */ + deleteProduct: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteProduct', 'id', id) + const localVarPath = `/products/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Deletes a product variation. + * @summary Delete a product variation + * @param {number} id The ID of the product + * @param {number} product_variation_id The ID of the product variation + + * @throws {RequiredError} + */ + deleteProductVariation: async (id: number, product_variation_id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteProductVariation', 'id', id) + // verify required parameter 'product_variation_id' is not null or undefined + assertParamExists('deleteProductVariation', 'product_variation_id', product_variation_id) + const localVarPath = `/products/{id}/variations/{product_variation_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"product_variation_id"}}`, encodeURIComponent(String(product_variation_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific product. + * @summary Get one product + * @param {number} id The ID of the product + + * @throws {RequiredError} + */ + getProduct: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProduct', 'id', id) + const localVarPath = `/products/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all product variations. + * @summary Get all product variations + * @param {number} id The ID of the product + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + + * @throws {RequiredError} + */ + getProductVariations: async (id: number, cursor?: string, limit?: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getProductVariations', 'id', id) + const localVarPath = `/products/{id}/variations` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all products. + * @summary Get all products + * @param {number} [owner_id] If supplied, only products owned by the given user will be returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [filter_id] The ID of the filter to use + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {'id' | 'name' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `name`, `add_time`, `update_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {string} [custom_fields] Comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for a smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + getProducts: async (owner_id?: number, ids?: string, filter_id?: number, cursor?: string, limit?: number, sort_by?: 'id' | 'name' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', custom_fields?: string, ): Promise => { + const localVarPath = `/products`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full"], configuration) + + if (owner_id !== undefined) { + localVarQueryParameter['owner_id'] = owner_id; + } + + if (ids !== undefined) { + localVarQueryParameter['ids'] = ids; + } + + if (filter_id !== undefined) { + localVarQueryParameter['filter_id'] = filter_id; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + if (custom_fields !== undefined) { + localVarQueryParameter['custom_fields'] = custom_fields; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search products + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'code' | 'custom_fields' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + searchProducts: async (term: string, fields?: 'code' | 'custom_fields' | 'name', exact_match?: boolean, include_fields?: 'product.price', limit?: number, cursor?: string, ): Promise => { + // verify required parameter 'term' is not null or undefined + assertParamExists('searchProducts', 'term', term) + const localVarPath = `/products/search`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:read", "products:full", "search:read"], configuration) + + if (term !== undefined) { + localVarQueryParameter['term'] = term; + } + + if (fields !== undefined) { + localVarQueryParameter['fields'] = fields; + } + + if (exact_match !== undefined) { + localVarQueryParameter['exact_match'] = exact_match; + } + + if (include_fields !== undefined) { + localVarQueryParameter['include_fields'] = include_fields; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates product data. + * @summary Update a product + * @param {number} id The ID of the product + * @param {UpdateProductRequest} [UpdateProductRequest] + + * @throws {RequiredError} + */ + updateProduct: async (id: number, UpdateProductRequest?: UpdateProductRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateProduct', 'id', id) + const localVarPath = `/products/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateProductRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates product variation data. + * @summary Update a product variation + * @param {number} id The ID of the product + * @param {number} product_variation_id The ID of the product variation + * @param {UpdateProductVariationRequest} [UpdateProductVariationRequest] + + * @throws {RequiredError} + */ + updateProductVariation: async (id: number, product_variation_id: number, UpdateProductVariationRequest?: UpdateProductVariationRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateProductVariation', 'id', id) + // verify required parameter 'product_variation_id' is not null or undefined + assertParamExists('updateProductVariation', 'product_variation_id', product_variation_id) + const localVarPath = `/products/{id}/variations/{product_variation_id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))) + .replace(`{${"product_variation_id"}}`, encodeURIComponent(String(product_variation_id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["products:full"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateProductVariationRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * ProductsApi - functional programming interface + * @export + */ +export const ProductsApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration) + return { + /** + * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. + * @summary Add a product + * @param {AddProductRequest} [AddProductRequest] + + * @throws {RequiredError} + */ + async addProduct(AddProductRequest?: AddProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addProduct(AddProductRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Adds a new product variation. + * @summary Add a product variation + * @param {number} id The ID of the product + * @param {AddProductVariationRequest} [AddProductVariationRequest] + + * @throws {RequiredError} + */ + async addProductVariation(id: number, AddProductVariationRequest?: AddProductVariationRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addProductVariation(id, AddProductVariationRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a product as deleted. After 30 days, the product will be permanently deleted. + * @summary Delete a product + * @param {number} id The ID of the product + + * @throws {RequiredError} + */ + async deleteProduct(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProduct(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Deletes a product variation. + * @summary Delete a product variation + * @param {number} id The ID of the product + * @param {number} product_variation_id The ID of the product variation + + * @throws {RequiredError} + */ + async deleteProductVariation(id: number, product_variation_id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductVariation(id, product_variation_id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific product. + * @summary Get one product + * @param {number} id The ID of the product + + * @throws {RequiredError} + */ + async getProduct(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProduct(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all product variations. + * @summary Get all product variations + * @param {number} id The ID of the product + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + + * @throws {RequiredError} + */ + async getProductVariations(id: number, cursor?: string, limit?: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProductVariations(id, cursor, limit, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all products. + * @summary Get all products + * @param {number} [owner_id] If supplied, only products owned by the given user will be returned + * @param {string} [ids] Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @param {number} [filter_id] The ID of the filter to use + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {'id' | 'name' | 'add_time' | 'update_time'} [sort_by] The field to sort by. Supported fields: `id`, `name`, `add_time`, `update_time`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {string} [custom_fields] Comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for a smaller response.<br/>A maximum of 15 keys is allowed. + + * @throws {RequiredError} + */ + async getProducts(owner_id?: number, ids?: string, filter_id?: number, cursor?: string, limit?: number, sort_by?: 'id' | 'name' | 'add_time' | 'update_time', sort_direction?: 'asc' | 'desc', custom_fields?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getProducts(owner_id, ids, filter_id, cursor, limit, sort_by, sort_direction, custom_fields, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search products + * @param {string} term The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @param {'code' | 'custom_fields' | 'name'} [fields] A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @param {boolean} [exact_match] When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @param {'product.price'} [include_fields] Supports including optional fields in the results which are not provided by default + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async searchProducts(term: string, fields?: 'code' | 'custom_fields' | 'name', exact_match?: boolean, include_fields?: 'product.price', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.searchProducts(term, fields, exact_match, include_fields, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates product data. + * @summary Update a product + * @param {number} id The ID of the product + * @param {UpdateProductRequest} [UpdateProductRequest] + + * @throws {RequiredError} + */ + async updateProduct(id: number, UpdateProductRequest?: UpdateProductRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateProduct(id, UpdateProductRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates product variation data. + * @summary Update a product variation + * @param {number} id The ID of the product + * @param {number} product_variation_id The ID of the product variation + * @param {UpdateProductVariationRequest} [UpdateProductVariationRequest] + + * @throws {RequiredError} + */ + async updateProductVariation(id: number, product_variation_id: number, UpdateProductVariationRequest?: UpdateProductVariationRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductVariation(id, product_variation_id, UpdateProductVariationRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * ProductsApi - factory interface + * @export + */ +export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = ProductsApiFp(configuration) + return { + /** + * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. + * @summary Add a product + * @param {ProductsApiAddProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addProduct(requestParameters: ProductsApiAddProductRequest = {}, ): Promise { + return localVarFp.addProduct(requestParameters.AddProductRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Adds a new product variation. + * @summary Add a product variation + * @param {ProductsApiAddProductVariationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addProductVariation(requestParameters: ProductsApiAddProductVariationRequest, ): Promise { + return localVarFp.addProductVariation(requestParameters.id, requestParameters.AddProductVariationRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a product as deleted. After 30 days, the product will be permanently deleted. + * @summary Delete a product + * @param {ProductsApiDeleteProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteProduct(requestParameters: ProductsApiDeleteProductRequest, ): Promise { + return localVarFp.deleteProduct(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Deletes a product variation. + * @summary Delete a product variation + * @param {ProductsApiDeleteProductVariationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteProductVariation(requestParameters: ProductsApiDeleteProductVariationRequest, ): Promise { + return localVarFp.deleteProductVariation(requestParameters.id, requestParameters.product_variation_id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific product. + * @summary Get one product + * @param {ProductsApiGetProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProduct(requestParameters: ProductsApiGetProductRequest, ): Promise { + return localVarFp.getProduct(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all product variations. + * @summary Get all product variations + * @param {ProductsApiGetProductVariationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProductVariations(requestParameters: ProductsApiGetProductVariationsRequest, ): Promise { + return localVarFp.getProductVariations(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all products. + * @summary Get all products + * @param {ProductsApiGetProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getProducts(requestParameters: ProductsApiGetProductsRequest = {}, ): Promise { + return localVarFp.getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.custom_fields, ).then((request) => request(axios, basePath)); + }, + /** + * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search products + * @param {ProductsApiSearchProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + searchProducts(requestParameters: ProductsApiSearchProductsRequest, ): Promise { + return localVarFp.searchProducts(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Updates product data. + * @summary Update a product + * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateProduct(requestParameters: ProductsApiUpdateProductRequest, ): Promise { + return localVarFp.updateProduct(requestParameters.id, requestParameters.UpdateProductRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Updates product variation data. + * @summary Update a product variation + * @param {ProductsApiUpdateProductVariationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateProductVariation(requestParameters: ProductsApiUpdateProductVariationRequest, ): Promise { + return localVarFp.updateProductVariation(requestParameters.id, requestParameters.product_variation_id, requestParameters.UpdateProductVariationRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addProduct operation in ProductsApi. + * @export + * @interface ProductsApiAddProductRequest + */ +export interface ProductsApiAddProductRequest { + /** + * + * @type {AddProductRequest} + * @memberof ProductsApiAddProduct + */ + readonly AddProductRequest?: AddProductRequest +} + +/** + * Request parameters for addProductVariation operation in ProductsApi. + * @export + * @interface ProductsApiAddProductVariationRequest + */ +export interface ProductsApiAddProductVariationRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiAddProductVariation + */ + readonly id: number + + /** + * + * @type {AddProductVariationRequest} + * @memberof ProductsApiAddProductVariation + */ + readonly AddProductVariationRequest?: AddProductVariationRequest +} + +/** + * Request parameters for deleteProduct operation in ProductsApi. + * @export + * @interface ProductsApiDeleteProductRequest + */ +export interface ProductsApiDeleteProductRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiDeleteProduct + */ + readonly id: number +} + +/** + * Request parameters for deleteProductVariation operation in ProductsApi. + * @export + * @interface ProductsApiDeleteProductVariationRequest + */ +export interface ProductsApiDeleteProductVariationRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiDeleteProductVariation + */ + readonly id: number + + /** + * The ID of the product variation + * @type {number} + * @memberof ProductsApiDeleteProductVariation + */ + readonly product_variation_id: number +} + +/** + * Request parameters for getProduct operation in ProductsApi. + * @export + * @interface ProductsApiGetProductRequest + */ +export interface ProductsApiGetProductRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiGetProduct + */ + readonly id: number +} + +/** + * Request parameters for getProductVariations operation in ProductsApi. + * @export + * @interface ProductsApiGetProductVariationsRequest + */ +export interface ProductsApiGetProductVariationsRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiGetProductVariations + */ + readonly id: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof ProductsApiGetProductVariations + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof ProductsApiGetProductVariations + */ + readonly limit?: number +} + +/** + * Request parameters for getProducts operation in ProductsApi. + * @export + * @interface ProductsApiGetProductsRequest + */ +export interface ProductsApiGetProductsRequest { + /** + * If supplied, only products owned by the given user will be returned + * @type {number} + * @memberof ProductsApiGetProducts + */ + readonly owner_id?: number + + /** + * Optional comma separated string array of up to 100 entity ids to fetch. If filter_id is provided, this is ignored. If any of the requested entities do not exist or are not visible, they are not included in the response. + * @type {string} + * @memberof ProductsApiGetProducts + */ + readonly ids?: string + + /** + * The ID of the filter to use + * @type {number} + * @memberof ProductsApiGetProducts + */ + readonly filter_id?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof ProductsApiGetProducts + */ + readonly cursor?: string + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof ProductsApiGetProducts + */ + readonly limit?: number + + /** + * The field to sort by. Supported fields: `id`, `name`, `add_time`, `update_time`. + * @type {'id' | 'name' | 'add_time' | 'update_time'} + * @memberof ProductsApiGetProducts + */ + readonly sort_by?: 'id' | 'name' | 'add_time' | 'update_time' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof ProductsApiGetProducts + */ + readonly sort_direction?: 'asc' | 'desc' + + /** + * Comma separated string array of custom fields keys to include. If you are only interested in a particular set of custom fields, please use this parameter for a smaller response.<br/>A maximum of 15 keys is allowed. + * @type {string} + * @memberof ProductsApiGetProducts + */ + readonly custom_fields?: string +} + +/** + * Request parameters for searchProducts operation in ProductsApi. + * @export + * @interface ProductsApiSearchProductsRequest + */ +export interface ProductsApiSearchProductsRequest { + /** + * The search term to look for. Minimum 2 characters (or 1 if using `exact_match`). Please note that the search term has to be URL encoded. + * @type {string} + * @memberof ProductsApiSearchProducts + */ + readonly term: string + + /** + * A comma-separated string array. The fields to perform the search from. Defaults to all of them. Only the following custom field types are searchable: `address`, `varchar`, `text`, `varchar_auto`, `double`, `monetary` and `phone`. Read more about searching by custom fields <a href=\"https://support.pipedrive.com/en/article/search-finding-what-you-need#searching-by-custom-fields\" target=\"_blank\" rel=\"noopener noreferrer\">here</a>. + * @type {'code' | 'custom_fields' | 'name'} + * @memberof ProductsApiSearchProducts + */ + readonly fields?: 'code' | 'custom_fields' | 'name' + + /** + * When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive. + * @type {boolean} + * @memberof ProductsApiSearchProducts + */ + readonly exact_match?: boolean + + /** + * Supports including optional fields in the results which are not provided by default + * @type {'product.price'} + * @memberof ProductsApiSearchProducts + */ + readonly include_fields?: 'product.price' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof ProductsApiSearchProducts + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof ProductsApiSearchProducts + */ + readonly cursor?: string +} + +/** + * Request parameters for updateProduct operation in ProductsApi. + * @export + * @interface ProductsApiUpdateProductRequest + */ +export interface ProductsApiUpdateProductRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiUpdateProduct + */ + readonly id: number + + /** + * + * @type {UpdateProductRequest} + * @memberof ProductsApiUpdateProduct + */ + readonly UpdateProductRequest?: UpdateProductRequest +} + +/** + * Request parameters for updateProductVariation operation in ProductsApi. + * @export + * @interface ProductsApiUpdateProductVariationRequest + */ +export interface ProductsApiUpdateProductVariationRequest { + /** + * The ID of the product + * @type {number} + * @memberof ProductsApiUpdateProductVariation + */ + readonly id: number + + /** + * The ID of the product variation + * @type {number} + * @memberof ProductsApiUpdateProductVariation + */ + readonly product_variation_id: number + + /** + * + * @type {UpdateProductVariationRequest} + * @memberof ProductsApiUpdateProductVariation + */ + readonly UpdateProductVariationRequest?: UpdateProductVariationRequest +} + +/** + * ProductsApi - object-oriented interface + * @export + * @class ProductsApi + * @extends {BaseAPI} + */ +export class ProductsApi extends BaseAPI { + /** + * Adds a new product to the Products inventory. For more information, see the tutorial for adding a product. + * @summary Add a product + * @param {ProductsApiAddProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public addProduct(requestParameters: ProductsApiAddProductRequest = {}, ) { + return ProductsApiFp(this.configuration).addProduct(requestParameters.AddProductRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Adds a new product variation. + * @summary Add a product variation + * @param {ProductsApiAddProductVariationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public addProductVariation(requestParameters: ProductsApiAddProductVariationRequest, ) { + return ProductsApiFp(this.configuration).addProductVariation(requestParameters.id, requestParameters.AddProductVariationRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a product as deleted. After 30 days, the product will be permanently deleted. + * @summary Delete a product + * @param {ProductsApiDeleteProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public deleteProduct(requestParameters: ProductsApiDeleteProductRequest, ) { + return ProductsApiFp(this.configuration).deleteProduct(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Deletes a product variation. + * @summary Delete a product variation + * @param {ProductsApiDeleteProductVariationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public deleteProductVariation(requestParameters: ProductsApiDeleteProductVariationRequest, ) { + return ProductsApiFp(this.configuration).deleteProductVariation(requestParameters.id, requestParameters.product_variation_id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific product. + * @summary Get one product + * @param {ProductsApiGetProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public getProduct(requestParameters: ProductsApiGetProductRequest, ) { + return ProductsApiFp(this.configuration).getProduct(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all product variations. + * @summary Get all product variations + * @param {ProductsApiGetProductVariationsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public getProductVariations(requestParameters: ProductsApiGetProductVariationsRequest, ) { + return ProductsApiFp(this.configuration).getProductVariations(requestParameters.id, requestParameters.cursor, requestParameters.limit, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all products. + * @summary Get all products + * @param {ProductsApiGetProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public getProducts(requestParameters: ProductsApiGetProductsRequest = {}, ) { + return ProductsApiFp(this.configuration).getProducts(requestParameters.owner_id, requestParameters.ids, requestParameters.filter_id, requestParameters.cursor, requestParameters.limit, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.custom_fields, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Searches all products by name, code and/or custom fields. This endpoint is a wrapper of /v1/itemSearch with a narrower OAuth scope. + * @summary Search products + * @param {ProductsApiSearchProductsRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public searchProducts(requestParameters: ProductsApiSearchProductsRequest, ) { + return ProductsApiFp(this.configuration).searchProducts(requestParameters.term, requestParameters.fields, requestParameters.exact_match, requestParameters.include_fields, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates product data. + * @summary Update a product + * @param {ProductsApiUpdateProductRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public updateProduct(requestParameters: ProductsApiUpdateProductRequest, ) { + return ProductsApiFp(this.configuration).updateProduct(requestParameters.id, requestParameters.UpdateProductRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates product variation data. + * @summary Update a product variation + * @param {ProductsApiUpdateProductVariationRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof ProductsApi + */ + public updateProductVariation(requestParameters: ProductsApiUpdateProductVariationRequest, ) { + return ProductsApiFp(this.configuration).updateProductVariation(requestParameters.id, requestParameters.product_variation_id, requestParameters.UpdateProductVariationRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v2/api/stages-api.ts b/src/versions/v2/api/stages-api.ts new file mode 100644 index 00000000..86a418eb --- /dev/null +++ b/src/versions/v2/api/stages-api.ts @@ -0,0 +1,575 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from '../configuration'; +import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; +// Some imports not used depending on template conditions +// @ts-ignore +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; +// @ts-ignore +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; +// @ts-ignore +import { AddStageRequest } from '../models'; +// @ts-ignore +import { DeleteStageResponse } from '../models'; +// @ts-ignore +import { GetStagesResponse } from '../models'; +// @ts-ignore +import { UpdateStageRequest } from '../models'; +// @ts-ignore +import { UpsertStageResponse } from '../models'; +/** + * StagesApi - axios parameter creator + * @export + */ +export const StagesApiAxiosParamCreator = function (configuration?: Configuration) { + return { + /** + * Adds a new stage, returns the ID upon success. + * @summary Add a new stage + * @param {AddStageRequest} [AddStageRequest] + + * @throws {RequiredError} + */ + addStage: async (AddStageRequest?: AddStageRequest, ): Promise => { + const localVarPath = `/stages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(AddStageRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Marks a stage as deleted. + * @summary Delete a stage + * @param {number} id The ID of the stage + + * @throws {RequiredError} + */ + deleteStage: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('deleteStage', 'id', id) + const localVarPath = `/stages/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about a specific stage. + * @summary Get one stage + * @param {number} id The ID of the stage + + * @throws {RequiredError} + */ + getStage: async (id: number, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('getStage', 'id', id) + const localVarPath = `/stages/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Returns data about all stages. + * @summary Get all stages + * @param {number} [pipeline_id] The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. + * @param {'id' | 'update_time' | 'add_time' | 'order_nr'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`, `order_nr`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + getStages: async (pipeline_id?: number, sort_by?: 'id' | 'update_time' | 'add_time' | 'order_nr', sort_direction?: 'asc' | 'desc', limit?: number, cursor?: string, ): Promise => { + const localVarPath = `/stages`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["deals:read", "deals:full", "admin"], configuration) + + if (pipeline_id !== undefined) { + localVarQueryParameter['pipeline_id'] = pipeline_id; + } + + if (sort_by !== undefined) { + localVarQueryParameter['sort_by'] = sort_by; + } + + if (sort_direction !== undefined) { + localVarQueryParameter['sort_direction'] = sort_direction; + } + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (cursor !== undefined) { + localVarQueryParameter['cursor'] = cursor; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * Updates the properties of a stage. + * @summary Update stage details + * @param {number} id The ID of the stage + * @param {UpdateStageRequest} [UpdateStageRequest] + + * @throws {RequiredError} + */ + updateStage: async (id: number, UpdateStageRequest?: UpdateStageRequest, ): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('updateStage', 'id', id) + const localVarPath = `/stages/{id}` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication api_key required + await setApiKeyToObject(localVarQueryParameter, "api_token", configuration) + + // authentication oauth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "oauth2", ["admin"], configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, }; + localVarRequestOptions.data = serializeDataIfNeeded(UpdateStageRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + } +}; + + +/** + * StagesApi - functional programming interface + * @export + */ +export const StagesApiFp = function(configuration?: Configuration) { + const localVarAxiosParamCreator = StagesApiAxiosParamCreator(configuration) + return { + /** + * Adds a new stage, returns the ID upon success. + * @summary Add a new stage + * @param {AddStageRequest} [AddStageRequest] + + * @throws {RequiredError} + */ + async addStage(AddStageRequest?: AddStageRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.addStage(AddStageRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Marks a stage as deleted. + * @summary Delete a stage + * @param {number} id The ID of the stage + + * @throws {RequiredError} + */ + async deleteStage(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.deleteStage(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about a specific stage. + * @summary Get one stage + * @param {number} id The ID of the stage + + * @throws {RequiredError} + */ + async getStage(id: number, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getStage(id, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Returns data about all stages. + * @summary Get all stages + * @param {number} [pipeline_id] The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. + * @param {'id' | 'update_time' | 'add_time' | 'order_nr'} [sort_by] The field to sort by. Supported fields: `id`, `update_time`, `add_time`, `order_nr`. + * @param {'asc' | 'desc'} [sort_direction] The sorting direction. Supported values: `asc`, `desc`. + * @param {number} [limit] For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @param {string} [cursor] For pagination, the marker (an opaque string value) representing the first item on the next page + + * @throws {RequiredError} + */ + async getStages(pipeline_id?: number, sort_by?: 'id' | 'update_time' | 'add_time' | 'order_nr', sort_direction?: 'asc' | 'desc', limit?: number, cursor?: string, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.getStages(pipeline_id, sort_by, sort_direction, limit, cursor, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * Updates the properties of a stage. + * @summary Update stage details + * @param {number} id The ID of the stage + * @param {UpdateStageRequest} [UpdateStageRequest] + + * @throws {RequiredError} + */ + async updateStage(id: number, UpdateStageRequest?: UpdateStageRequest, ): Promise<(axios?: AxiosInstance, basePath?: string) => Promise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.updateStage(id, UpdateStageRequest, ); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + } +}; + +/** + * StagesApi - factory interface + * @export + */ +export const StagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { + const localVarFp = StagesApiFp(configuration) + return { + /** + * Adds a new stage, returns the ID upon success. + * @summary Add a new stage + * @param {StagesApiAddStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + addStage(requestParameters: StagesApiAddStageRequest = {}, ): Promise { + return localVarFp.addStage(requestParameters.AddStageRequest, ).then((request) => request(axios, basePath)); + }, + /** + * Marks a stage as deleted. + * @summary Delete a stage + * @param {StagesApiDeleteStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + deleteStage(requestParameters: StagesApiDeleteStageRequest, ): Promise { + return localVarFp.deleteStage(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about a specific stage. + * @summary Get one stage + * @param {StagesApiGetStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getStage(requestParameters: StagesApiGetStageRequest, ): Promise { + return localVarFp.getStage(requestParameters.id, ).then((request) => request(axios, basePath)); + }, + /** + * Returns data about all stages. + * @summary Get all stages + * @param {StagesApiGetStagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + getStages(requestParameters: StagesApiGetStagesRequest = {}, ): Promise { + return localVarFp.getStages(requestParameters.pipeline_id, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.limit, requestParameters.cursor, ).then((request) => request(axios, basePath)); + }, + /** + * Updates the properties of a stage. + * @summary Update stage details + * @param {StagesApiUpdateStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + */ + updateStage(requestParameters: StagesApiUpdateStageRequest, ): Promise { + return localVarFp.updateStage(requestParameters.id, requestParameters.UpdateStageRequest, ).then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * Request parameters for addStage operation in StagesApi. + * @export + * @interface StagesApiAddStageRequest + */ +export interface StagesApiAddStageRequest { + /** + * + * @type {AddStageRequest} + * @memberof StagesApiAddStage + */ + readonly AddStageRequest?: AddStageRequest +} + +/** + * Request parameters for deleteStage operation in StagesApi. + * @export + * @interface StagesApiDeleteStageRequest + */ +export interface StagesApiDeleteStageRequest { + /** + * The ID of the stage + * @type {number} + * @memberof StagesApiDeleteStage + */ + readonly id: number +} + +/** + * Request parameters for getStage operation in StagesApi. + * @export + * @interface StagesApiGetStageRequest + */ +export interface StagesApiGetStageRequest { + /** + * The ID of the stage + * @type {number} + * @memberof StagesApiGetStage + */ + readonly id: number +} + +/** + * Request parameters for getStages operation in StagesApi. + * @export + * @interface StagesApiGetStagesRequest + */ +export interface StagesApiGetStagesRequest { + /** + * The ID of the pipeline to fetch stages for. If omitted, stages for all pipelines will be fetched. + * @type {number} + * @memberof StagesApiGetStages + */ + readonly pipeline_id?: number + + /** + * The field to sort by. Supported fields: `id`, `update_time`, `add_time`, `order_nr`. + * @type {'id' | 'update_time' | 'add_time' | 'order_nr'} + * @memberof StagesApiGetStages + */ + readonly sort_by?: 'id' | 'update_time' | 'add_time' | 'order_nr' + + /** + * The sorting direction. Supported values: `asc`, `desc`. + * @type {'asc' | 'desc'} + * @memberof StagesApiGetStages + */ + readonly sort_direction?: 'asc' | 'desc' + + /** + * For pagination, the limit of entries to be returned. If not provided, 100 items will be returned. Please note that a maximum value of 500 is allowed. + * @type {number} + * @memberof StagesApiGetStages + */ + readonly limit?: number + + /** + * For pagination, the marker (an opaque string value) representing the first item on the next page + * @type {string} + * @memberof StagesApiGetStages + */ + readonly cursor?: string +} + +/** + * Request parameters for updateStage operation in StagesApi. + * @export + * @interface StagesApiUpdateStageRequest + */ +export interface StagesApiUpdateStageRequest { + /** + * The ID of the stage + * @type {number} + * @memberof StagesApiUpdateStage + */ + readonly id: number + + /** + * + * @type {UpdateStageRequest} + * @memberof StagesApiUpdateStage + */ + readonly UpdateStageRequest?: UpdateStageRequest +} + +/** + * StagesApi - object-oriented interface + * @export + * @class StagesApi + * @extends {BaseAPI} + */ +export class StagesApi extends BaseAPI { + /** + * Adds a new stage, returns the ID upon success. + * @summary Add a new stage + * @param {StagesApiAddStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public addStage(requestParameters: StagesApiAddStageRequest = {}, ) { + return StagesApiFp(this.configuration).addStage(requestParameters.AddStageRequest, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Marks a stage as deleted. + * @summary Delete a stage + * @param {StagesApiDeleteStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public deleteStage(requestParameters: StagesApiDeleteStageRequest, ) { + return StagesApiFp(this.configuration).deleteStage(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about a specific stage. + * @summary Get one stage + * @param {StagesApiGetStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public getStage(requestParameters: StagesApiGetStageRequest, ) { + return StagesApiFp(this.configuration).getStage(requestParameters.id, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Returns data about all stages. + * @summary Get all stages + * @param {StagesApiGetStagesRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public getStages(requestParameters: StagesApiGetStagesRequest = {}, ) { + return StagesApiFp(this.configuration).getStages(requestParameters.pipeline_id, requestParameters.sort_by, requestParameters.sort_direction, requestParameters.limit, requestParameters.cursor, ).then((request) => request(this.axios, this.basePath)); + } + + /** + * Updates the properties of a stage. + * @summary Update stage details + * @param {StagesApiUpdateStageRequest} requestParameters Request parameters. + + * @throws {RequiredError} + * @memberof StagesApi + */ + public updateStage(requestParameters: StagesApiUpdateStageRequest, ) { + return StagesApiFp(this.configuration).updateStage(requestParameters.id, requestParameters.UpdateStageRequest, ).then((request) => request(this.axios, this.basePath)); + } +} diff --git a/src/versions/v2/base.ts b/src/versions/v2/base.ts new file mode 100644 index 00000000..e712ea5f --- /dev/null +++ b/src/versions/v2/base.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import type { Configuration } from './configuration'; +// Some imports not used depending on template conditions +// @ts-ignore +import type { AxiosError, AxiosResponse, AxiosRequestConfig , InternalAxiosRequestConfig } from 'axios'; +import axios from 'axios'; +import { join, dirname } from 'path'; +import { existsSync } from 'fs'; + +export const BASE_PATH = "https://api.pipedrive.com/api/v2".replace(/\/+$/, ""); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: AxiosRequestConfig; +} + +const searchForPackageJson = (startPath: string): string | null => { + const filePath = join(startPath, 'package.json'); + + if (existsSync(filePath)) { + return filePath; + } + + const parentDir = dirname(startPath); + + // Stop if we've reached the root directory + if (parentDir.endsWith('/pipedrive') || parentDir === startPath) { + return null; + } + + return searchForPackageJson(parentDir); +}; + + +export const versionInterceptor = async (config:InternalAxiosRequestConfig) => { + let version:string; + try { + const path = searchForPackageJson(__dirname); + + version = path ? require(path).version : '22.x'; + } catch (error) { + version = '22.x'; + } + + config.headers['User-Agent'] = `Pipedrive-SDK-Javascript-${version}`; + return config; +} + +export const responseInterceptor = (response: AxiosResponse) => { + return response?.data ? response.data: response; +}; + +export const errorInterceptor = (error: AxiosError) => { + if (error.response && error.response.data) { + return Promise.reject(error.response.data); + } + return Promise.reject(error); +}; + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + protected basePath: string = BASE_PATH; + protected axios = axios.create(); + constructor(configuration: Configuration) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath || this.basePath; + } + + this.axios.interceptors.response.use(responseInterceptor, errorInterceptor); + this.axios.interceptors.request.use(versionInterceptor); + } +}; + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + constructor(public field: string, msg?: string) { + super(msg); + this.name = "RequiredError" + } +} + + + diff --git a/src/versions/v2/common.ts b/src/versions/v2/common.ts new file mode 100644 index 00000000..53af5d76 --- /dev/null +++ b/src/versions/v2/common.ts @@ -0,0 +1,148 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import { Configuration } from "./configuration"; +import { RequiredError, RequestArgs } from "./base"; +import { AxiosInstance, AxiosResponse } from 'axios'; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = 'https://example.com' + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`); + } +} + +/** + * + * @export + */ +export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = typeof configuration.apiKey === 'function' + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +} + +/** + * + * @export + */ +export const setBasicAuthToObject = function (object: any, configuration?: Configuration) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { username: configuration.username, password: configuration.password }; + } +} + +/** + * + * @export + */ +export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const accessToken = typeof configuration.accessToken === 'function' + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +} + +/** + * + * @export + */ +export const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = typeof configuration.accessToken === 'function' + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +} + +function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => + setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) + ); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +} + +/** + * + * @export + */ +export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) { + const nonString = typeof value !== 'string'; + const needsSerialization = nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers['Content-Type']) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : (value || ""); +} + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash +} + +/** + * + * @export + */ +export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { + return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { + const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url}; + return axios.request(axiosRequestArgs); + }; +} diff --git a/src/versions/v2/configuration.ts b/src/versions/v2/configuration.ts new file mode 100644 index 00000000..50b581f9 --- /dev/null +++ b/src/versions/v2/configuration.ts @@ -0,0 +1,312 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +import axios from "axios"; +import { stringify } from "qs"; +import { errorInterceptor, responseInterceptor, versionInterceptor } from './base'; + +export type TokenResponse = { + access_token: string; + refresh_token: string; + token_type: string; + expires_in: number; + scope: string; + api_domain: string; +} + +export interface Parameters { + clientId: string; + clientSecret: string; + redirectUri: string; + host?: string; +} + +export type ParamKey = keyof Parameters; + +export class OAuth2Configuration { + public host: string; + public clientId: string; + public clientSecret: string; + public basePath = ""; + public onTokenUpdate?: (token: TokenResponse) => void; + + private axios = axios.create(); + private accessToken: string | null = null; + private refreshToken: string | null = null; + private scope: string | null = null; + private expiresIn = 0; // expiration value in seconds sent by the OAuth server. + private expiresAt = 0; // expiration time as number of milliseconds elapsed since January 1, 1970 00:00:00 UTC. + private redirectUri: string; + + constructor(params: Parameters) { + this.clientId = this.validateParam(params, 'clientId'); + this.clientSecret = this.validateParam(params, 'clientSecret'); + this.redirectUri = this.validateParam(params, 'redirectUri'); + this.host = params.host || "https://oauth.pipedrive.com"; + const basePath = params.host ||"https://api.pipedrive.com"; + this.basePath = `${basePath}/api/v2`; + + this.axios.interceptors.response.use(responseInterceptor, errorInterceptor); + this.axios.interceptors.request.use(versionInterceptor); + } + + public get authorizationUrl() { + return `${this.host}/oauth/authorize?client_id=${ + this.clientId + }&redirect_uri=${encodeURIComponent(this.redirectUri)}`; + } + + public getAccessToken = async (): Promise => { + if (this.shouldRefreshToken()) { + const newToken = await this.tokenRefresh(); + this.updateToken(newToken); + + return newToken.access_token; + } + + return this.accessToken!; + }; + + public shouldRefreshToken = (): boolean => { + return this.expiresAt && Date.now() > this.expiresAt; + } + + /** + * Authorizes the authorization code sent by the server and returns OAuth 2 token. + * @param {String} code The authorization code sent by the OAuth server. + * @returns {Object} The OAuth 2 token. + */ + public authorize = async (code: string): Promise => { + if (!code) { + throw new Error("Authorization failed. Authorization code is not set."); + } + + const authorizationUrl = `${this.host}/oauth/token`; + + const clientIdAndSecretInBase64 = Buffer.from( + `${this.clientId}:${this.clientSecret}` + ).toString("base64"); + + const response = await this.axios.post( + authorizationUrl, + stringify({ + code, + redirect_uri: this.redirectUri, + grant_type: "authorization_code", + }), + { + headers: { + "Content-Type": "application/x-www-form-urlencoded", + Authorization: `Basic ${clientIdAndSecretInBase64}`, + }, + } + ) as TokenResponse; + + this.updateToken(response); + + return response; + }; + + public tokenRefresh = async (): Promise => { + const refreshUrl = `${this.host}/oauth/token`; + const clientIdAndSecretInBase64 = Buffer.from( + `${this.clientId}:${this.clientSecret}` + ).toString("base64"); + + const response = await this.axios.post( + refreshUrl, + stringify({ + refresh_token: this.refreshToken, + grant_type: "refresh_token", + }), + { + headers: { + "Content-Type": "application/x-www-form-urlencoded", + Authorization: `Basic ${clientIdAndSecretInBase64}`, + }, + } + ) as TokenResponse; + + this.updateToken(response); + + return response; + }; + + + /* + * Updates the ApiClient OAuth 2 authentication properties and invokes the token update callback if it is set. + * Besides extracting all the values from the provided OAuth 2 token, + * the expiration time of access token is calculated and set as expiresAt property. + * @param {Object} token The OAuth 2 token got from the OAuth server. + */ + public updateToken = (token: TokenResponse | null) => { + if (!token) { + return null; + } + + if (token.access_token) { + this.accessToken = token.access_token; + } + + if (token.refresh_token) { + this.refreshToken = token.refresh_token; + } + + if (token.expires_in) { + this.expiresIn = token.expires_in; + this.expiresAt = Date.now() + token.expires_in * 1000; + } + + if (token.scope) { + this.scope = token.scope; + } + + if (token.api_domain) { + this.basePath = `${token.api_domain}/api/v2`; + } + + this.onTokenUpdate?.(token); + + return token; + }; + +/** + * Revoke Refresh Token aka marking an app uninstalled or revoke the Access Token. + * @param {String} tokenTypeHint values can be: 'access_token' or 'refresh_token'. +*/ + public async revokeToken(tokenTypeHint?: 'access_token' | 'refresh_token') { + + const token = tokenTypeHint === 'refresh_token' + ? this.refreshToken : encodeURIComponent(this.accessToken); + + const clientId = this.clientId; + const clientSecret = this.clientSecret; + const revokeUrl = `${this.host}/oauth/revoke?`; + const clientIdAndSecretInBase64 = Buffer.from(`${clientId}:${clientSecret}`).toString('base64'); + + const response = await this.axios.post( + revokeUrl, + stringify({ + token, + token_type_hint: tokenTypeHint + }),{ + headers: { + "Content-Type": "application/x-www-form-urlencoded", + 'Authorization': `Basic ${clientIdAndSecretInBase64}`, + + } + } + ); + + return response; + } + + private validateParam = (params: Parameters, key: ParamKey): string => { + if (!params[key]) { + throw new Error(`OAuth 2 property ${key} is not set.`); + } + return params[key]; + } +} + + +export interface ConfigurationParameters { + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + formDataCtor?: new () => any; + basePath?: string; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: string | Promise | ((name: string) => string) | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters) { + this.apiKey = param.apiKey; + this.accessToken = param.accessToken; + this.formDataCtor = param.formDataCtor; + this.basePath = param.basePath; + + /** Values either not supported or set by the packaged already **/ + this.username = undefined; + this.password = undefined; + this.baseOptions = undefined; + + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i'); + return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json'); + } +} + + diff --git a/src/versions/v2/index.ts b/src/versions/v2/index.ts new file mode 100644 index 00000000..c592f34d --- /dev/null +++ b/src/versions/v2/index.ts @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export * from "./api"; +export * from "./configuration"; +export * from "./models"; diff --git a/src/versions/v2/models/activity-item-attendees-inner.ts b/src/versions/v2/models/activity-item-attendees-inner.ts new file mode 100644 index 00000000..c82aaf29 --- /dev/null +++ b/src/versions/v2/models/activity-item-attendees-inner.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ActivityItemAttendeesInner +*/ +export interface ActivityItemAttendeesInner { + /** + * The email address of the attendee + * @type {string} + */ + 'email'?: string; + /** + * The name of the attendee + * @type {string} + */ + 'name'?: string; + /** + * The status of the attendee + * @type {string} + */ + 'status'?: string; + /** + * Whether the attendee is the organizer or not + * @type {boolean} + */ + 'is_organizer'?: boolean; + /** + * The ID of the person if the attendee has a person record + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the user if the attendee is a user + * @type {number} + */ + 'user_id'?: number; +} + diff --git a/src/versions/v2/models/activity-item-location.ts b/src/versions/v2/models/activity-item-location.ts new file mode 100644 index 00000000..113cfb21 --- /dev/null +++ b/src/versions/v2/models/activity-item-location.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* Location of the activity +* @export +* @interface ActivityItemLocation +*/ +export interface ActivityItemLocation { + /** + * The full address of the activity + * @type {string} + */ + 'value'?: string; + /** + * Country of the activity + * @type {string} + */ + 'country'?: string; + /** + * Admin area level 1 (e.g. state) of the activity + * @type {string} + */ + 'admin_area_level_1'?: string; + /** + * Admin area level 2 (e.g. county) of the activity + * @type {string} + */ + 'admin_area_level_2'?: string; + /** + * Locality (e.g. city) of the activity + * @type {string} + */ + 'locality'?: string; + /** + * Sublocality (e.g. neighborhood) of the activity + * @type {string} + */ + 'sublocality'?: string; + /** + * Route (e.g. street) of the activity + * @type {string} + */ + 'route'?: string; + /** + * Street number of the activity + * @type {string} + */ + 'street_number'?: string; + /** + * Postal code of the activity + * @type {string} + */ + 'postal_code'?: string; +} + diff --git a/src/versions/v2/models/activity-item-participants-inner.ts b/src/versions/v2/models/activity-item-participants-inner.ts new file mode 100644 index 00000000..c74fe421 --- /dev/null +++ b/src/versions/v2/models/activity-item-participants-inner.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ActivityItemParticipantsInner +*/ +export interface ActivityItemParticipantsInner { + /** + * The ID of the person + * @type {number} + */ + 'person_id'?: number; + /** + * Whether the person is the primary participant or not + * @type {boolean} + */ + 'primary'?: boolean; +} + diff --git a/src/versions/v2/models/activity-item.ts b/src/versions/v2/models/activity-item.ts new file mode 100644 index 00000000..7e53d059 --- /dev/null +++ b/src/versions/v2/models/activity-item.ts @@ -0,0 +1,168 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItemAttendeesInner } from './activity-item-attendees-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItemLocation } from './activity-item-location'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItemParticipantsInner } from './activity-item-participants-inner'; + +/** +* +* @export +* @interface ActivityItem +*/ +export interface ActivityItem { + /** + * The ID of the activity + * @type {number} + */ + 'id'?: number; + /** + * The subject of the activity + * @type {string} + */ + 'subject'?: string; + /** + * The type of the activity + * @type {string} + */ + 'type'?: string; + /** + * The ID of the user who owns the activity + * @type {number} + */ + 'owner_id'?: number; + /** + * Whether the activity is deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The creation date and time of the activity + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the activity + * @type {string} + */ + 'update_time'?: string; + /** + * The ID of the deal linked to the activity + * @type {number} + */ + 'deal_id'?: number; + /** + * The ID of the lead linked to the activity + * @type {string} + */ + 'lead_id'?: string; + /** + * The ID of the person linked to the activity + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization linked to the activity + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the project linked to the activity + * @type {number} + */ + 'project_id'?: number; + /** + * The due date of the activity + * @type {string} + */ + 'due_date'?: string; + /** + * The due time of the activity + * @type {string} + */ + 'due_time'?: string; + /** + * The duration of the activity + * @type {string} + */ + 'duration'?: string; + /** + * Whether the activity marks the assignee as busy or not in their calendar + * @type {boolean} + */ + 'busy'?: boolean; + /** + * Whether the activity is marked as done or not + * @type {boolean} + */ + 'done'?: boolean; + /** + * The date and time when the activity was marked as done + * @type {string} + */ + 'marked_as_done_time'?: string; + /** + * + * @type {ActivityItemLocation} + */ + 'location'?: ActivityItemLocation; + /** + * The participants of the activity + * @type {Array} + */ + 'participants'?: Array; + /** + * The attendees of the activity + * @type {Array} + */ + 'attendees'?: Array; + /** + * The client used for the conference meeting + * @type {string} + */ + 'conference_meeting_client'?: string; + /** + * The URL of the conference meeting + * @type {string} + */ + 'conference_meeting_url'?: string; + /** + * The ID of the conference meeting + * @type {string} + */ + 'conference_meeting_id'?: string; + /** + * The public description of the activity + * @type {string} + */ + 'public_description'?: string; + /** + * The priority of the activity. Mappable to a specific string using activityFields API. + * @type {number} + */ + 'priority'?: number; + /** + * The note of the activity + * @type {string} + */ + 'note'?: string; +} + diff --git a/src/versions/v2/models/activity-item1.ts b/src/versions/v2/models/activity-item1.ts new file mode 100644 index 00000000..e86e1362 --- /dev/null +++ b/src/versions/v2/models/activity-item1.ts @@ -0,0 +1,168 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItemAttendeesInner } from './activity-item-attendees-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItemLocation } from './activity-item-location'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItemParticipantsInner } from './activity-item-participants-inner'; + +/** +* The activity object +* @export +* @interface ActivityItem1 +*/ +export interface ActivityItem1 { + /** + * The ID of the activity + * @type {number} + */ + 'id'?: number; + /** + * The subject of the activity + * @type {string} + */ + 'subject'?: string; + /** + * The type of the activity + * @type {string} + */ + 'type'?: string; + /** + * The ID of the user who owns the activity + * @type {number} + */ + 'owner_id'?: number; + /** + * Whether the activity is deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The creation date and time of the activity + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the activity + * @type {string} + */ + 'update_time'?: string; + /** + * The ID of the deal linked to the activity + * @type {number} + */ + 'deal_id'?: number; + /** + * The ID of the lead linked to the activity + * @type {string} + */ + 'lead_id'?: string; + /** + * The ID of the person linked to the activity + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization linked to the activity + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the project linked to the activity + * @type {number} + */ + 'project_id'?: number; + /** + * The due date of the activity + * @type {string} + */ + 'due_date'?: string; + /** + * The due time of the activity + * @type {string} + */ + 'due_time'?: string; + /** + * The duration of the activity + * @type {string} + */ + 'duration'?: string; + /** + * Whether the activity marks the assignee as busy or not in their calendar + * @type {boolean} + */ + 'busy'?: boolean; + /** + * Whether the activity is marked as done or not + * @type {boolean} + */ + 'done'?: boolean; + /** + * The date and time when the activity was marked as done + * @type {string} + */ + 'marked_as_done_time'?: string; + /** + * + * @type {ActivityItemLocation} + */ + 'location'?: ActivityItemLocation; + /** + * The participants of the activity + * @type {Array} + */ + 'participants'?: Array; + /** + * The attendees of the activity + * @type {Array} + */ + 'attendees'?: Array; + /** + * The client used for the conference meeting + * @type {string} + */ + 'conference_meeting_client'?: string; + /** + * The URL of the conference meeting + * @type {string} + */ + 'conference_meeting_url'?: string; + /** + * The ID of the conference meeting + * @type {string} + */ + 'conference_meeting_id'?: string; + /** + * The public description of the activity + * @type {string} + */ + 'public_description'?: string; + /** + * The priority of the activity. Mappable to a specific string using activityFields API. + * @type {number} + */ + 'priority'?: number; + /** + * The note of the activity + * @type {string} + */ + 'note'?: string; +} + diff --git a/src/versions/v2/models/add-activity-request.ts b/src/versions/v2/models/add-activity-request.ts new file mode 100644 index 00000000..06dee232 --- /dev/null +++ b/src/versions/v2/models/add-activity-request.ts @@ -0,0 +1,128 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItemAttendeesInner } from './activity-item-attendees-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItemLocation } from './activity-item-location'; +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItemParticipantsInner } from './activity-item-participants-inner'; + +/** +* +* @export +* @interface AddActivityRequest +*/ +export interface AddActivityRequest { + /** + * The subject of the activity + * @type {string} + */ + 'subject'?: string; + /** + * The type of the activity + * @type {string} + */ + 'type'?: string; + /** + * The ID of the user who owns the activity + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the deal linked to the activity + * @type {number} + */ + 'deal_id'?: number; + /** + * The ID of the lead linked to the activity + * @type {string} + */ + 'lead_id'?: string; + /** + * The ID of the person linked to the activity + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization linked to the activity + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the project linked to the activity + * @type {number} + */ + 'project_id'?: number; + /** + * The due date of the activity + * @type {string} + */ + 'due_date'?: string; + /** + * The due time of the activity + * @type {string} + */ + 'due_time'?: string; + /** + * The duration of the activity + * @type {string} + */ + 'duration'?: string; + /** + * Whether the activity marks the assignee as busy or not in their calendar + * @type {boolean} + */ + 'busy'?: boolean; + /** + * Whether the activity is marked as done or not + * @type {boolean} + */ + 'done'?: boolean; + /** + * + * @type {ActivityItemLocation} + */ + 'location'?: ActivityItemLocation; + /** + * The participants of the activity + * @type {Array} + */ + 'participants'?: Array; + /** + * The attendees of the activity + * @type {Array} + */ + 'attendees'?: Array; + /** + * The public description of the activity + * @type {string} + */ + 'public_description'?: string; + /** + * The priority of the activity. Mappable to a specific string using activityFields API. + * @type {number} + */ + 'priority'?: number; + /** + * The note of the activity + * @type {string} + */ + 'note'?: string; +} + diff --git a/src/versions/v2/models/add-additional-discount-request-body.ts b/src/versions/v2/models/add-additional-discount-request-body.ts new file mode 100644 index 00000000..857a7f4d --- /dev/null +++ b/src/versions/v2/models/add-additional-discount-request-body.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddAdditionalDiscountRequestBody +*/ +export interface AddAdditionalDiscountRequestBody { + /** + * The name of the discount. + * @type {string} + */ + 'description': string; + /** + * The discount amount. Must be a positive number (excluding 0). + * @type {number} + */ + 'amount': number; + /** + * Determines whether the discount is applied as a percentage or a fixed amount. + * @type {string} + */ + 'type': AddAdditionalDiscountRequestBodyTypeConst; +} + + export const AddAdditionalDiscountRequestBodyTypeConst = { + percentage: 'percentage', + amount: 'amount' + } as const; + + export type AddAdditionalDiscountRequestBodyTypeConst = typeof AddAdditionalDiscountRequestBodyTypeConst[keyof typeof AddAdditionalDiscountRequestBodyTypeConst]; + + diff --git a/src/versions/v2/models/add-additional-discount-response.ts b/src/versions/v2/models/add-additional-discount-response.ts new file mode 100644 index 00000000..e316af97 --- /dev/null +++ b/src/versions/v2/models/add-additional-discount-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAdditionalDiscountsResponseDataInner } from './get-additional-discounts-response-data-inner'; + +/** +* +* @export +* @interface AddAdditionalDiscountResponse +*/ +export interface AddAdditionalDiscountResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetAdditionalDiscountsResponseDataInner} + */ + 'data'?: GetAdditionalDiscountsResponseDataInner; +} + diff --git a/src/versions/v2/models/add-deal-product-request.ts b/src/versions/v2/models/add-deal-product-request.ts new file mode 100644 index 00000000..2af29d31 --- /dev/null +++ b/src/versions/v2/models/add-deal-product-request.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealProductRequestBody } from './deal-product-request-body'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf1 } from './get-deals-products-response-data-inner-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-response-data-inner-all-of2'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf3 } from './get-deals-products-response-data-inner-all-of3'; + +/** + * @type AddDealProductRequest + * @export + */ +export type AddDealProductRequest = DealProductRequestBody & GetDealsProductsResponseDataInnerAllOf1 & GetDealsProductsResponseDataInnerAllOf2 & GetDealsProductsResponseDataInnerAllOf3; + + diff --git a/src/versions/v2/models/add-deal-product-response.ts b/src/versions/v2/models/add-deal-product-response.ts new file mode 100644 index 00000000..2322b810 --- /dev/null +++ b/src/versions/v2/models/add-deal-product-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInner } from './get-deals-products-response-data-inner'; + +/** +* +* @export +* @interface AddDealProductResponse +*/ +export interface AddDealProductResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetDealsProductsResponseDataInner} + */ + 'data'?: GetDealsProductsResponseDataInner; +} + diff --git a/src/versions/v2/models/add-deal-request.ts b/src/versions/v2/models/add-deal-request.ts new file mode 100644 index 00000000..cbdc2f04 --- /dev/null +++ b/src/versions/v2/models/add-deal-request.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddDealRequest +*/ +export interface AddDealRequest { + /** + * The title of the deal + * @type {string} + */ + 'title': string; + /** + * The ID of the user who owns the deal + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the person linked to the deal + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization linked to the deal + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the pipeline associated with the deal + * @type {number} + */ + 'pipeline_id'?: number; + /** + * The ID of the deal stage + * @type {number} + */ + 'stage_id'?: number; + /** + * The value of the deal + * @type {number} + */ + 'value'?: number; + /** + * The currency associated with the deal + * @type {string} + */ + 'currency'?: string; + /** + * The creation date and time of the deal + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the deal + * @type {string} + */ + 'update_time'?: string; + /** + * The last updated date and time of the deal stage + * @type {string} + */ + 'stage_change_time'?: string; + /** + * Whether the deal is deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The status of the deal + * @type {string} + */ + 'status'?: string; + /** + * The success probability percentage of the deal + * @type {number} + */ + 'probability'?: number | null; + /** + * The reason for losing the deal. Can only be set if deal status is lost. + * @type {string} + */ + 'lost_reason'?: string | null; + /** + * The visibility of the deal + * @type {number} + */ + 'visible_to'?: number; + /** + * The date and time of closing the deal. Can only be set if deal status is won or lost. + * @type {string} + */ + 'close_time'?: string | null; + /** + * The date and time of changing the deal status as won. Can only be set if deal status is won. + * @type {string} + */ + 'won_time'?: string; + /** + * The date and time of changing the deal status as lost. Can only be set if deal status is lost. + * @type {string} + */ + 'lost_time'?: string; + /** + * The expected close date of the deal + * @type {string} + */ + 'expected_close_date'?: string; + /** + * The IDs of labels assigned to the deal + * @type {Array} + */ + 'label_ids'?: Array; +} + diff --git a/src/versions/v2/models/add-organization-request.ts b/src/versions/v2/models/add-organization-request.ts new file mode 100644 index 00000000..a16fe279 --- /dev/null +++ b/src/versions/v2/models/add-organization-request.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddOrganizationRequest +*/ +export interface AddOrganizationRequest { + /** + * The name of the organization + * @type {string} + */ + 'name'?: string; + /** + * The ID of the user who owns the organization + * @type {number} + */ + 'owner_id'?: number; + /** + * The creation date and time of the organization + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the organization + * @type {string} + */ + 'update_time'?: string; + /** + * The visibility of the organization + * @type {number} + */ + 'visible_to'?: number; + /** + * The IDs of labels assigned to the organization + * @type {Array} + */ + 'label_ids'?: Array; +} + diff --git a/src/versions/v2/models/add-person-request-emails-inner.ts b/src/versions/v2/models/add-person-request-emails-inner.ts new file mode 100644 index 00000000..b5b4af5e --- /dev/null +++ b/src/versions/v2/models/add-person-request-emails-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddPersonRequestEmailsInner +*/ +export interface AddPersonRequestEmailsInner { + /** + * The email address of the person + * @type {string} + */ + 'value'?: string; + /** + * Whether the email is primary or not + * @type {boolean} + */ + 'primary'?: boolean; + /** + * The email address classification label + * @type {boolean} + */ + 'label'?: boolean; +} + diff --git a/src/versions/v2/models/add-person-request-phones-inner.ts b/src/versions/v2/models/add-person-request-phones-inner.ts new file mode 100644 index 00000000..fc88e9c9 --- /dev/null +++ b/src/versions/v2/models/add-person-request-phones-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddPersonRequestPhonesInner +*/ +export interface AddPersonRequestPhonesInner { + /** + * The phone number of the person + * @type {string} + */ + 'value'?: string; + /** + * Whether the phone number is primary or not + * @type {boolean} + */ + 'primary'?: boolean; + /** + * The phone number classification label + * @type {boolean} + */ + 'label'?: boolean; +} + diff --git a/src/versions/v2/models/add-person-request.ts b/src/versions/v2/models/add-person-request.ts new file mode 100644 index 00000000..88df3ff6 --- /dev/null +++ b/src/versions/v2/models/add-person-request.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddPersonRequestEmailsInner } from './add-person-request-emails-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { AddPersonRequestPhonesInner } from './add-person-request-phones-inner'; + +/** +* +* @export +* @interface AddPersonRequest +*/ +export interface AddPersonRequest { + /** + * The name of the person + * @type {string} + */ + 'name'?: string; + /** + * The ID of the user who owns the person + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the organization linked to the person + * @type {number} + */ + 'org_id'?: number; + /** + * The creation date and time of the person + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the person + * @type {string} + */ + 'update_time'?: string; + /** + * The emails of the person + * @type {Array} + */ + 'emails'?: Array; + /** + * The phones of the person + * @type {Array} + */ + 'phones'?: Array; + /** + * The visibility of the person + * @type {number} + */ + 'visible_to'?: number; + /** + * The IDs of labels assigned to the person + * @type {Array} + */ + 'label_ids'?: Array; +} + diff --git a/src/versions/v2/models/add-pipeline-request.ts b/src/versions/v2/models/add-pipeline-request.ts new file mode 100644 index 00000000..22e3798a --- /dev/null +++ b/src/versions/v2/models/add-pipeline-request.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddPipelineRequest +*/ +export interface AddPipelineRequest { + /** + * The name of the pipeline + * @type {string} + */ + 'name': string; + /** + * Whether deal probability is disabled or enabled for this pipeline + * @type {boolean} + */ + 'is_deal_probability_enabled'?: boolean; +} + diff --git a/src/versions/v2/models/add-product-request-all-of.ts b/src/versions/v2/models/add-product-request-all-of.ts new file mode 100644 index 00000000..8e125351 --- /dev/null +++ b/src/versions/v2/models/add-product-request-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddProductRequestAllOf +*/ +export interface AddProductRequestAllOf { + /** + * The name of the product. Cannot be an empty string + * @type {string} + */ + 'name': string; +} + diff --git a/src/versions/v2/models/add-product-request.ts b/src/versions/v2/models/add-product-request.ts new file mode 100644 index 00000000..afe04c7d --- /dev/null +++ b/src/versions/v2/models/add-product-request.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddProductRequestAllOf } from './add-product-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseProductAllOf1 } from './base-product-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-response-data-inner-all-of2'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductRequest } from './product-request'; + +/** + * @type AddProductRequest + * @export + */ +export type AddProductRequest = AddProductRequestAllOf & BaseProductAllOf1 & GetDealsProductsResponseDataInnerAllOf2 & ProductRequest; + + diff --git a/src/versions/v2/models/add-product-variation-request.ts b/src/versions/v2/models/add-product-variation-request.ts new file mode 100644 index 00000000..ca55983e --- /dev/null +++ b/src/versions/v2/models/add-product-variation-request.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddProductVariationRequest +*/ +export interface AddProductVariationRequest { + /** + * The name of the product variation. The maximum length is 255 characters. + * @type {string} + */ + 'name': string; + /** + * Array of objects, each containing: currency (string), price (number), cost (number, optional), direct_cost (number, optional), notes (string, optional). When prices is omitted altogether, a default price of 0, a default cost of 0, a default direct_cost of 0 and the user\'s default currency will be assigned. + * @type {Array} + */ + 'prices'?: Array; +} + diff --git a/src/versions/v2/models/add-stage-request.ts b/src/versions/v2/models/add-stage-request.ts new file mode 100644 index 00000000..745971a7 --- /dev/null +++ b/src/versions/v2/models/add-stage-request.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface AddStageRequest +*/ +export interface AddStageRequest { + /** + * The name of the stage + * @type {string} + */ + 'name': string; + /** + * The ID of the pipeline to add stage to + * @type {number} + */ + 'pipeline_id': number; + /** + * The success probability percentage of the deal. Used/shown when deal weighted values are used. + * @type {number} + */ + 'deal_probability'?: number; + /** + * Whether deals in this stage can become rotten + * @type {boolean} + */ + 'is_deal_rot_enabled'?: boolean; + /** + * The number of days the deals not updated in this stage would become rotten. Applies only if the `is_deal_rot_enabled` is set. + * @type {number} + */ + 'days_to_rotten'?: number; +} + diff --git a/src/versions/v2/models/base-product-all-of.ts b/src/versions/v2/models/base-product-all-of.ts new file mode 100644 index 00000000..adf2603a --- /dev/null +++ b/src/versions/v2/models/base-product-all-of.ts @@ -0,0 +1,84 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseProductAllOf +*/ +export interface BaseProductAllOf { + /** + * The ID of the product + * @type {number} + */ + 'id'?: number; + /** + * The name of the product + * @type {string} + */ + 'name'?: string; + /** + * The product code + * @type {string} + */ + 'code'?: string; + /** + * The unit in which this product is sold + * @type {string} + */ + 'unit'?: string; + /** + * The tax percentage + * @type {number} + */ + 'tax'?: number; + /** + * Whether this product will be made marked as deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * Whether this product can be added to a deal or not + * @type {boolean} + */ + 'is_linkable'?: boolean; + /** + * + * @type {number} + */ + 'visible_to'?: BaseProductAllOfVisibleToConst; + /** + * Information about the Pipedrive user who owns the product + * @type {number} + */ + 'owner_id'?: number; + /** + * An object where each key represents a custom field. All custom fields are referenced as randomly generated 40-character hashes + * @type {{ [key: string]: any | undefined; }} + */ + 'custom_fields'?: { [key: string]: any | undefined; }; +} + + export const BaseProductAllOfVisibleToConst = { + NUMBER_1: 1, + NUMBER_3: 3, + NUMBER_5: 5, + NUMBER_7: 7 + } as const; + + export type BaseProductAllOfVisibleToConst = typeof BaseProductAllOfVisibleToConst[keyof typeof BaseProductAllOfVisibleToConst]; + + diff --git a/src/versions/v2/models/base-product-all-of1.ts b/src/versions/v2/models/base-product-all-of1.ts new file mode 100644 index 00000000..235051da --- /dev/null +++ b/src/versions/v2/models/base-product-all-of1.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseProductAllOf1 +*/ +export interface BaseProductAllOf1 { + /** + * Only available in Advanced and above plans How often a customer is billed for access to a service or product + * @type {string} + */ + 'billing_frequency'?: BaseProductAllOf1BillingFrequencyConst; +} + + export const BaseProductAllOf1BillingFrequencyConst = { + one_time: 'one-time', + annually: 'annually', + semi_annually: 'semi-annually', + quarterly: 'quarterly', + monthly: 'monthly', + weekly: 'weekly' + } as const; + + export type BaseProductAllOf1BillingFrequencyConst = typeof BaseProductAllOf1BillingFrequencyConst[keyof typeof BaseProductAllOf1BillingFrequencyConst]; + + diff --git a/src/versions/v2/models/base-product.ts b/src/versions/v2/models/base-product.ts new file mode 100644 index 00000000..e2bb6451 --- /dev/null +++ b/src/versions/v2/models/base-product.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseProductAllOf } from './base-product-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseProductAllOf1 } from './base-product-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-response-data-inner-all-of2'; + +/** + * @type BaseProduct + * @export + */ +export type BaseProduct = BaseProductAllOf & BaseProductAllOf1 & GetDealsProductsResponseDataInnerAllOf2; + + diff --git a/src/versions/v2/models/base-response.ts b/src/versions/v2/models/base-response.ts new file mode 100644 index 00000000..c7c8f0d3 --- /dev/null +++ b/src/versions/v2/models/base-response.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface BaseResponse +*/ +export interface BaseResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; +} + diff --git a/src/versions/v2/models/deal-item.ts b/src/versions/v2/models/deal-item.ts new file mode 100644 index 00000000..25fa5736 --- /dev/null +++ b/src/versions/v2/models/deal-item.ts @@ -0,0 +1,169 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealItem +*/ +export interface DealItem { + /** + * The ID of the deal + * @type {number} + */ + 'id'?: number; + /** + * The title of the deal + * @type {string} + */ + 'title'?: string; + /** + * The ID of the user who owns the deal + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the person linked to the deal + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization linked to the deal + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the pipeline associated with the deal + * @type {number} + */ + 'pipeline_id'?: number; + /** + * The ID of the deal stage + * @type {number} + */ + 'stage_id'?: number; + /** + * The value of the deal + * @type {number} + */ + 'value'?: number; + /** + * The currency associated with the deal + * @type {string} + */ + 'currency'?: string; + /** + * The creation date and time of the deal + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the deal + * @type {string} + */ + 'update_time'?: string; + /** + * The last updated date and time of the deal stage + * @type {string} + */ + 'stage_change_time'?: string; + /** + * Whether the deal is deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The status of the deal + * @type {string} + */ + 'status'?: string; + /** + * The success probability percentage of the deal + * @type {number} + */ + 'probability'?: number | null; + /** + * The reason for losing the deal + * @type {string} + */ + 'lost_reason'?: string | null; + /** + * The visibility of the deal + * @type {number} + */ + 'visible_to'?: number; + /** + * The date and time of closing the deal + * @type {string} + */ + 'close_time'?: string | null; + /** + * The date and time of changing the deal status as won + * @type {string} + */ + 'won_time'?: string; + /** + * The date and time of changing the deal status as lost + * @type {string} + */ + 'lost_time'?: string; + /** + * The expected close date of the deal + * @type {string} + */ + 'expected_close_date'?: string; + /** + * The IDs of labels assigned to the deal + * @type {Array} + */ + 'label_ids'?: Array; + /** + * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. + * @type {string} + */ + 'origin'?: string; + /** + * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. + * @type {string} + */ + 'origin_id'?: string | null; + /** + * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. + * @type {number} + */ + 'channel'?: number | null; + /** + * The optional ID to further distinguish the Marketing channel. + * @type {string} + */ + 'channel_id'?: string | null; + /** + * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal + * @type {number} + */ + 'arr'?: number | null; + /** + * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal + * @type {number} + */ + 'mrr'?: number | null; + /** + * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal + * @type {number} + */ + 'acv'?: number | null; +} + diff --git a/src/versions/v2/models/deal-item1.ts b/src/versions/v2/models/deal-item1.ts new file mode 100644 index 00000000..55b49e2c --- /dev/null +++ b/src/versions/v2/models/deal-item1.ts @@ -0,0 +1,169 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The deal object +* @export +* @interface DealItem1 +*/ +export interface DealItem1 { + /** + * The ID of the deal + * @type {number} + */ + 'id'?: number; + /** + * The title of the deal + * @type {string} + */ + 'title'?: string; + /** + * The ID of the user who owns the deal + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the person linked to the deal + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization linked to the deal + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the pipeline associated with the deal + * @type {number} + */ + 'pipeline_id'?: number; + /** + * The ID of the deal stage + * @type {number} + */ + 'stage_id'?: number; + /** + * The value of the deal + * @type {number} + */ + 'value'?: number; + /** + * The currency associated with the deal + * @type {string} + */ + 'currency'?: string; + /** + * The creation date and time of the deal + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the deal + * @type {string} + */ + 'update_time'?: string; + /** + * The last updated date and time of the deal stage + * @type {string} + */ + 'stage_change_time'?: string; + /** + * Whether the deal is deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The status of the deal + * @type {string} + */ + 'status'?: string; + /** + * The success probability percentage of the deal + * @type {number} + */ + 'probability'?: number | null; + /** + * The reason for losing the deal + * @type {string} + */ + 'lost_reason'?: string | null; + /** + * The visibility of the deal + * @type {number} + */ + 'visible_to'?: number; + /** + * The date and time of closing the deal + * @type {string} + */ + 'close_time'?: string | null; + /** + * The date and time of changing the deal status as won + * @type {string} + */ + 'won_time'?: string; + /** + * The date and time of changing the deal status as lost + * @type {string} + */ + 'lost_time'?: string; + /** + * The expected close date of the deal + * @type {string} + */ + 'expected_close_date'?: string; + /** + * The IDs of labels assigned to the deal + * @type {Array} + */ + 'label_ids'?: Array; + /** + * The way this Deal was created. `origin` field is set by Pipedrive when Deal is created and cannot be changed. + * @type {string} + */ + 'origin'?: string; + /** + * The optional ID to further distinguish the origin of the deal - e.g. Which API integration created this Deal. + * @type {string} + */ + 'origin_id'?: string | null; + /** + * The ID of your Marketing channel this Deal was created from. Recognized Marketing channels can be configured in your Company settings. + * @type {number} + */ + 'channel'?: number | null; + /** + * The optional ID to further distinguish the Marketing channel. + * @type {string} + */ + 'channel_id'?: string | null; + /** + * Only available in Advanced and above plans The Annual Recurring Revenue of the deal Null if there are no products attached to the deal + * @type {number} + */ + 'arr'?: number | null; + /** + * Only available in Advanced and above plans The Monthly Recurring Revenue of the deal Null if there are no products attached to the deal + * @type {number} + */ + 'mrr'?: number | null; + /** + * Only available in Advanced and above plans The Annual Contract Value of the deal Null if there are no products attached to the deal + * @type {number} + */ + 'acv'?: number | null; +} + diff --git a/src/versions/v2/models/deal-product-request-body.ts b/src/versions/v2/models/deal-product-request-body.ts new file mode 100644 index 00000000..4e6bf6bf --- /dev/null +++ b/src/versions/v2/models/deal-product-request-body.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealProductRequestBody +*/ +export interface DealProductRequestBody { + /** + * The ID of the product + * @type {number} + */ + 'product_id': number; + /** + * The price value of the product + * @type {number} + */ + 'item_price': number; + /** + * The quantity of the product + * @type {number} + */ + 'quantity': number; + /** + * The product tax + * @type {number} + */ + 'tax'?: number; + /** + * The comments of the product + * @type {string} + */ + 'comments'?: string; + /** + * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage + * @type {number} + */ + 'discount'?: number; + /** + * Whether this product is enabled for the deal Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring + * @type {boolean} + */ + 'is_enabled'?: boolean; + /** + * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal + * @type {string} + */ + 'tax_method'?: DealProductRequestBodyTaxMethodConst; + /** + * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage + * @type {string} + */ + 'discount_type'?: DealProductRequestBodyDiscountTypeConst; + /** + * The ID of the product variation + * @type {number} + */ + 'product_variation_id'?: number | null; +} + + export const DealProductRequestBodyTaxMethodConst = { + exclusive: 'exclusive', + inclusive: 'inclusive', + none: 'none' + } as const; + + export type DealProductRequestBodyTaxMethodConst = typeof DealProductRequestBodyTaxMethodConst[keyof typeof DealProductRequestBodyTaxMethodConst]; + export const DealProductRequestBodyDiscountTypeConst = { + percentage: 'percentage', + amount: 'amount' + } as const; + + export type DealProductRequestBodyDiscountTypeConst = typeof DealProductRequestBodyDiscountTypeConst[keyof typeof DealProductRequestBodyDiscountTypeConst]; + + diff --git a/src/versions/v2/models/deal-product-request-body1.ts b/src/versions/v2/models/deal-product-request-body1.ts new file mode 100644 index 00000000..0f98e768 --- /dev/null +++ b/src/versions/v2/models/deal-product-request-body1.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DealProductRequestBody1 +*/ +export interface DealProductRequestBody1 { + /** + * The ID of the product + * @type {number} + */ + 'product_id'?: number; + /** + * The price value of the product + * @type {number} + */ + 'item_price'?: number; + /** + * The quantity of the product + * @type {number} + */ + 'quantity'?: number; + /** + * The product tax + * @type {number} + */ + 'tax'?: number; + /** + * The comments of the product + * @type {string} + */ + 'comments'?: string; + /** + * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage + * @type {number} + */ + 'discount'?: number; + /** + * Whether this product is enabled for the deal Not possible to disable the product if the deal has installments associated and the product is the last one enabled Not possible to enable the product if the deal has installments associated and the product is recurring + * @type {boolean} + */ + 'is_enabled'?: boolean; + /** + * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal + * @type {string} + */ + 'tax_method'?: DealProductRequestBody1TaxMethodConst; + /** + * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage + * @type {string} + */ + 'discount_type'?: DealProductRequestBody1DiscountTypeConst; + /** + * The ID of the product variation + * @type {number} + */ + 'product_variation_id'?: number | null; +} + + export const DealProductRequestBody1TaxMethodConst = { + exclusive: 'exclusive', + inclusive: 'inclusive', + none: 'none' + } as const; + + export type DealProductRequestBody1TaxMethodConst = typeof DealProductRequestBody1TaxMethodConst[keyof typeof DealProductRequestBody1TaxMethodConst]; + export const DealProductRequestBody1DiscountTypeConst = { + percentage: 'percentage', + amount: 'amount' + } as const; + + export type DealProductRequestBody1DiscountTypeConst = typeof DealProductRequestBody1DiscountTypeConst[keyof typeof DealProductRequestBody1DiscountTypeConst]; + + diff --git a/src/versions/v2/models/delete-activity-response-data.ts b/src/versions/v2/models/delete-activity-response-data.ts new file mode 100644 index 00000000..7e467965 --- /dev/null +++ b/src/versions/v2/models/delete-activity-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteActivityResponseData +*/ +export interface DeleteActivityResponseData { + /** + * Deleted activity ID + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/delete-activity-response.ts b/src/versions/v2/models/delete-activity-response.ts new file mode 100644 index 00000000..6f2f4088 --- /dev/null +++ b/src/versions/v2/models/delete-activity-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteActivityResponseData } from './delete-activity-response-data'; + +/** +* +* @export +* @interface DeleteActivityResponse +*/ +export interface DeleteActivityResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteActivityResponseData} + */ + 'data'?: DeleteActivityResponseData; +} + diff --git a/src/versions/v2/models/delete-additional-discount-response-data.ts b/src/versions/v2/models/delete-additional-discount-response-data.ts new file mode 100644 index 00000000..04bb08fc --- /dev/null +++ b/src/versions/v2/models/delete-additional-discount-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteAdditionalDiscountResponseData +*/ +export interface DeleteAdditionalDiscountResponseData { + /** + * The ID of the discount that was deleted from the deal + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/delete-additional-discount-response.ts b/src/versions/v2/models/delete-additional-discount-response.ts new file mode 100644 index 00000000..5cf5e116 --- /dev/null +++ b/src/versions/v2/models/delete-additional-discount-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteAdditionalDiscountResponseData } from './delete-additional-discount-response-data'; + +/** +* +* @export +* @interface DeleteAdditionalDiscountResponse +*/ +export interface DeleteAdditionalDiscountResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteAdditionalDiscountResponseData} + */ + 'data'?: DeleteAdditionalDiscountResponseData; +} + diff --git a/src/versions/v2/models/delete-deal-product-response-data.ts b/src/versions/v2/models/delete-deal-product-response-data.ts new file mode 100644 index 00000000..97f5e444 --- /dev/null +++ b/src/versions/v2/models/delete-deal-product-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteDealProductResponseData +*/ +export interface DeleteDealProductResponseData { + /** + * The ID of an attached product that was deleted from the deal + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/delete-deal-product-response.ts b/src/versions/v2/models/delete-deal-product-response.ts new file mode 100644 index 00000000..cb8f8963 --- /dev/null +++ b/src/versions/v2/models/delete-deal-product-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteDealProductResponseData } from './delete-deal-product-response-data'; + +/** +* +* @export +* @interface DeleteDealProductResponse +*/ +export interface DeleteDealProductResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteDealProductResponseData} + */ + 'data'?: DeleteDealProductResponseData; +} + diff --git a/src/versions/v2/models/delete-deal-response-data.ts b/src/versions/v2/models/delete-deal-response-data.ts new file mode 100644 index 00000000..bf15d7f5 --- /dev/null +++ b/src/versions/v2/models/delete-deal-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteDealResponseData +*/ +export interface DeleteDealResponseData { + /** + * Deleted deal ID + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/delete-deal-response.ts b/src/versions/v2/models/delete-deal-response.ts new file mode 100644 index 00000000..668c10eb --- /dev/null +++ b/src/versions/v2/models/delete-deal-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteDealResponseData } from './delete-deal-response-data'; + +/** +* +* @export +* @interface DeleteDealResponse +*/ +export interface DeleteDealResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteDealResponseData} + */ + 'data'?: DeleteDealResponseData; +} + diff --git a/src/versions/v2/models/delete-organization-response-data.ts b/src/versions/v2/models/delete-organization-response-data.ts new file mode 100644 index 00000000..81361279 --- /dev/null +++ b/src/versions/v2/models/delete-organization-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteOrganizationResponseData +*/ +export interface DeleteOrganizationResponseData { + /** + * Deleted organization ID + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/delete-organization-response.ts b/src/versions/v2/models/delete-organization-response.ts new file mode 100644 index 00000000..7038a306 --- /dev/null +++ b/src/versions/v2/models/delete-organization-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteOrganizationResponseData } from './delete-organization-response-data'; + +/** +* +* @export +* @interface DeleteOrganizationResponse +*/ +export interface DeleteOrganizationResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteOrganizationResponseData} + */ + 'data'?: DeleteOrganizationResponseData; +} + diff --git a/src/versions/v2/models/delete-person-response-data.ts b/src/versions/v2/models/delete-person-response-data.ts new file mode 100644 index 00000000..4909d759 --- /dev/null +++ b/src/versions/v2/models/delete-person-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeletePersonResponseData +*/ +export interface DeletePersonResponseData { + /** + * Deleted person ID + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/delete-person-response.ts b/src/versions/v2/models/delete-person-response.ts new file mode 100644 index 00000000..960e7bcb --- /dev/null +++ b/src/versions/v2/models/delete-person-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeletePersonResponseData } from './delete-person-response-data'; + +/** +* +* @export +* @interface DeletePersonResponse +*/ +export interface DeletePersonResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeletePersonResponseData} + */ + 'data'?: DeletePersonResponseData; +} + diff --git a/src/versions/v2/models/delete-pipeline-response-data.ts b/src/versions/v2/models/delete-pipeline-response-data.ts new file mode 100644 index 00000000..6425a51f --- /dev/null +++ b/src/versions/v2/models/delete-pipeline-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeletePipelineResponseData +*/ +export interface DeletePipelineResponseData { + /** + * Deleted Pipeline ID + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/delete-pipeline-response.ts b/src/versions/v2/models/delete-pipeline-response.ts new file mode 100644 index 00000000..19f425bf --- /dev/null +++ b/src/versions/v2/models/delete-pipeline-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeletePipelineResponseData } from './delete-pipeline-response-data'; + +/** +* +* @export +* @interface DeletePipelineResponse +*/ +export interface DeletePipelineResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeletePipelineResponseData} + */ + 'data'?: DeletePipelineResponseData; +} + diff --git a/src/versions/v2/models/delete-product-response-data.ts b/src/versions/v2/models/delete-product-response-data.ts new file mode 100644 index 00000000..b2c7f08a --- /dev/null +++ b/src/versions/v2/models/delete-product-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteProductResponseData +*/ +export interface DeleteProductResponseData { + /** + * The ID of the removed product + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/delete-product-response.ts b/src/versions/v2/models/delete-product-response.ts new file mode 100644 index 00000000..e0ba1bbb --- /dev/null +++ b/src/versions/v2/models/delete-product-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteProductResponseData } from './delete-product-response-data'; + +/** +* +* @export +* @interface DeleteProductResponse +*/ +export interface DeleteProductResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteProductResponseData} + */ + 'data'?: DeleteProductResponseData; +} + diff --git a/src/versions/v2/models/delete-product-variation-response-data.ts b/src/versions/v2/models/delete-product-variation-response-data.ts new file mode 100644 index 00000000..454487cc --- /dev/null +++ b/src/versions/v2/models/delete-product-variation-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteProductVariationResponseData +*/ +export interface DeleteProductVariationResponseData { + /** + * The ID of a deleted product variant + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/delete-product-variation-response.ts b/src/versions/v2/models/delete-product-variation-response.ts new file mode 100644 index 00000000..97a1d8c1 --- /dev/null +++ b/src/versions/v2/models/delete-product-variation-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteProductVariationResponseData } from './delete-product-variation-response-data'; + +/** +* +* @export +* @interface DeleteProductVariationResponse +*/ +export interface DeleteProductVariationResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteProductVariationResponseData} + */ + 'data'?: DeleteProductVariationResponseData; +} + diff --git a/src/versions/v2/models/delete-stage-response-data.ts b/src/versions/v2/models/delete-stage-response-data.ts new file mode 100644 index 00000000..b13650a7 --- /dev/null +++ b/src/versions/v2/models/delete-stage-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface DeleteStageResponseData +*/ +export interface DeleteStageResponseData { + /** + * Deleted stage ID + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/delete-stage-response.ts b/src/versions/v2/models/delete-stage-response.ts new file mode 100644 index 00000000..efcf669b --- /dev/null +++ b/src/versions/v2/models/delete-stage-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DeleteStageResponseData } from './delete-stage-response-data'; + +/** +* +* @export +* @interface DeleteStageResponse +*/ +export interface DeleteStageResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {DeleteStageResponseData} + */ + 'data'?: DeleteStageResponseData; +} + diff --git a/src/versions/v2/models/get-activities-response-all-of.ts b/src/versions/v2/models/get-activities-response-all-of.ts new file mode 100644 index 00000000..eff1203c --- /dev/null +++ b/src/versions/v2/models/get-activities-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItem } from './activity-item'; + +/** +* +* @export +* @interface GetActivitiesResponseAllOf +*/ +export interface GetActivitiesResponseAllOf { + /** + * Activities array + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v2/models/get-activities-response.ts b/src/versions/v2/models/get-activities-response.ts new file mode 100644 index 00000000..dd307eae --- /dev/null +++ b/src/versions/v2/models/get-activities-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItem } from './activity-item'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetActivitiesResponseAllOf } from './get-activities-response-all-of'; + +/** + * @type GetActivitiesResponse + * @export + */ +export type GetActivitiesResponse = BaseResponse & GetActivitiesResponseAllOf; + + diff --git a/src/versions/v2/models/get-additional-discounts-response-data-inner.ts b/src/versions/v2/models/get-additional-discounts-response-data-inner.ts new file mode 100644 index 00000000..2b32fb28 --- /dev/null +++ b/src/versions/v2/models/get-additional-discounts-response-data-inner.ts @@ -0,0 +1,77 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetAdditionalDiscountsResponseDataInner +*/ +export interface GetAdditionalDiscountsResponseDataInner { + /** + * The ID of the additional discount + * @type {string} + */ + 'id'?: string; + /** + * Determines whether the discount is applied as a percentage or a fixed amount. + * @type {string} + */ + 'type'?: GetAdditionalDiscountsResponseDataInnerTypeConst; + /** + * The discount amount. + * @type {number} + */ + 'amount'?: number; + /** + * The name of the discount. + * @type {string} + */ + 'description'?: string; + /** + * The ID of the deal the discount was added to. + * @type {number} + */ + 'deal_id'?: number; + /** + * The date and time of when the discount was created in the ISO 8601 format. + * @type {string} + */ + 'created_at'?: string; + /** + * The ID of the user that created the discount. + * @type {number} + */ + 'created_by'?: number; + /** + * The date and time of when the discount was created in the ISO 8601 format. + * @type {string} + */ + 'updated_at'?: string; + /** + * The ID of the user that last updated the discount. + * @type {number} + */ + 'updated_by'?: number; +} + + export const GetAdditionalDiscountsResponseDataInnerTypeConst = { + percentage: 'percentage', + amount: 'amount' + } as const; + + export type GetAdditionalDiscountsResponseDataInnerTypeConst = typeof GetAdditionalDiscountsResponseDataInnerTypeConst[keyof typeof GetAdditionalDiscountsResponseDataInnerTypeConst]; + + diff --git a/src/versions/v2/models/get-additional-discounts-response.ts b/src/versions/v2/models/get-additional-discounts-response.ts new file mode 100644 index 00000000..8f423f74 --- /dev/null +++ b/src/versions/v2/models/get-additional-discounts-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAdditionalDiscountsResponseDataInner } from './get-additional-discounts-response-data-inner'; + +/** +* +* @export +* @interface GetAdditionalDiscountsResponse +*/ +export interface GetAdditionalDiscountsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * Array containing data for all discounts added to a deal + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-organization.ts b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-organization.ts new file mode 100644 index 00000000..b64c9412 --- /dev/null +++ b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-organization.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInnerItemOrganization +*/ +export interface GetDealSearchResponseAllOfDataItemsInnerItemOrganization { + /** + * The ID of the organization the deal is associated with + * @type {number} + */ + 'id'?: number; + /** + * The name of the organization the deal is associated with + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-owner.ts b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-owner.ts new file mode 100644 index 00000000..9b9874c5 --- /dev/null +++ b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-owner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInnerItemOwner +*/ +export interface GetDealSearchResponseAllOfDataItemsInnerItemOwner { + /** + * The ID of the owner of the deal + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-person.ts b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-person.ts new file mode 100644 index 00000000..d16f0c42 --- /dev/null +++ b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-person.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInnerItemPerson +*/ +export interface GetDealSearchResponseAllOfDataItemsInnerItemPerson { + /** + * The ID of the person the deal is associated with + * @type {number} + */ + 'id'?: number; + /** + * The name of the person the deal is associated with + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-stage.ts b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-stage.ts new file mode 100644 index 00000000..b83dbced --- /dev/null +++ b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item-stage.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInnerItemStage +*/ +export interface GetDealSearchResponseAllOfDataItemsInnerItemStage { + /** + * The ID of the stage of the deal + * @type {number} + */ + 'id'?: number; + /** + * The name of the stage of the deal + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.ts b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.ts new file mode 100644 index 00000000..d2607983 --- /dev/null +++ b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner-item.ts @@ -0,0 +1,101 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItemOrganization } from './get-deal-search-response-all-of-data-items-inner-item-organization'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItemOwner } from './get-deal-search-response-all-of-data-items-inner-item-owner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItemPerson } from './get-deal-search-response-all-of-data-items-inner-item-person'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItemStage } from './get-deal-search-response-all-of-data-items-inner-item-stage'; + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInnerItem +*/ +export interface GetDealSearchResponseAllOfDataItemsInnerItem { + /** + * The ID of the deal + * @type {number} + */ + 'id'?: number; + /** + * The type of the item + * @type {string} + */ + 'type'?: string; + /** + * The title of the deal + * @type {string} + */ + 'title'?: string; + /** + * The value of the deal + * @type {number} + */ + 'value'?: number; + /** + * The currency of the deal + * @type {string} + */ + 'currency'?: string; + /** + * The status of the deal + * @type {string} + */ + 'status'?: string; + /** + * The visibility of the deal + * @type {number} + */ + 'visible_to'?: number; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItemOwner} + */ + 'owner'?: GetDealSearchResponseAllOfDataItemsInnerItemOwner; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItemStage} + */ + 'stage'?: GetDealSearchResponseAllOfDataItemsInnerItemStage; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItemPerson} + */ + 'person'?: GetDealSearchResponseAllOfDataItemsInnerItemPerson | null; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItemOrganization} + */ + 'organization'?: GetDealSearchResponseAllOfDataItemsInnerItemOrganization | null; + /** + * Custom fields + * @type {Array} + */ + 'custom_fields'?: Array; + /** + * An array of notes + * @type {Array} + */ + 'notes'?: Array; +} + diff --git a/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner.ts b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner.ts new file mode 100644 index 00000000..0a916aa6 --- /dev/null +++ b/src/versions/v2/models/get-deal-search-response-all-of-data-items-inner.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItem } from './get-deal-search-response-all-of-data-items-inner-item'; + +/** +* +* @export +* @interface GetDealSearchResponseAllOfDataItemsInner +*/ +export interface GetDealSearchResponseAllOfDataItemsInner { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItem} + */ + 'item'?: GetDealSearchResponseAllOfDataItemsInnerItem; +} + diff --git a/src/versions/v2/models/get-deal-search-response-all-of-data.ts b/src/versions/v2/models/get-deal-search-response-all-of-data.ts new file mode 100644 index 00000000..f57da6d2 --- /dev/null +++ b/src/versions/v2/models/get-deal-search-response-all-of-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInner } from './get-deal-search-response-all-of-data-items-inner'; + +/** +* +* @export +* @interface GetDealSearchResponseAllOfData +*/ +export interface GetDealSearchResponseAllOfData { + /** + * The array of deals + * @type {Array} + */ + 'items'?: Array; +} + diff --git a/src/versions/v2/models/get-deal-search-response-all-of.ts b/src/versions/v2/models/get-deal-search-response-all-of.ts new file mode 100644 index 00000000..346360a1 --- /dev/null +++ b/src/versions/v2/models/get-deal-search-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfData } from './get-deal-search-response-all-of-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; + +/** +* +* @export +* @interface GetDealSearchResponseAllOf +*/ +export interface GetDealSearchResponseAllOf { + /** + * + * @type {GetDealSearchResponseAllOfData} + */ + 'data'?: GetDealSearchResponseAllOfData; + /** + * + * @type {GetDealsProductsResponseAdditionalData} + */ + 'additional_data'?: GetDealsProductsResponseAdditionalData; +} + diff --git a/src/versions/v2/models/get-deal-search-response.ts b/src/versions/v2/models/get-deal-search-response.ts new file mode 100644 index 00000000..61a0b53d --- /dev/null +++ b/src/versions/v2/models/get-deal-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOf } from './get-deal-search-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfData } from './get-deal-search-response-all-of-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; + +/** + * @type GetDealSearchResponse + * @export + */ +export type GetDealSearchResponse = BaseResponse & GetDealSearchResponseAllOf; + + diff --git a/src/versions/v2/models/get-deals-products-response-additional-data.ts b/src/versions/v2/models/get-deals-products-response-additional-data.ts new file mode 100644 index 00000000..19baca9b --- /dev/null +++ b/src/versions/v2/models/get-deals-products-response-additional-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* Pagination related data +* @export +* @interface GetDealsProductsResponseAdditionalData +*/ +export interface GetDealsProductsResponseAdditionalData { + /** + * The first item on the next page. The value of the `next_cursor` field will be `null` if you have reached the end of the dataset and there’s no more pages to be returned. + * @type {string} + */ + 'next_cursor'?: string; +} + diff --git a/src/versions/v2/models/get-deals-products-response-data-inner-all-of.ts b/src/versions/v2/models/get-deals-products-response-data-inner-all-of.ts new file mode 100644 index 00000000..09ad593e --- /dev/null +++ b/src/versions/v2/models/get-deals-products-response-data-inner-all-of.ts @@ -0,0 +1,124 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealsProductsResponseDataInnerAllOf +*/ +export interface GetDealsProductsResponseDataInnerAllOf { + /** + * The ID of the deal-product (the ID of the product attached to the deal) + * @type {number} + */ + 'id'?: number; + /** + * The sum of all the products attached to the deal + * @type {number} + */ + 'sum'?: number; + /** + * The product tax + * @type {number} + */ + 'tax'?: number; + /** + * The ID of the deal + * @type {number} + */ + 'deal_id'?: number; + /** + * The product name + * @type {string} + */ + 'name'?: string; + /** + * The ID of the product + * @type {number} + */ + 'product_id'?: number; + /** + * The ID of the product variation + * @type {number} + */ + 'product_variation_id'?: number | null; + /** + * The date and time when the product was added to the deal + * @type {string} + */ + 'add_time'?: string; + /** + * The date and time when the deal product was last updated + * @type {string} + */ + 'update_time'?: string; + /** + * The comments of the product + * @type {string} + */ + 'comments'?: string; + /** + * The currency associated with the deal product + * @type {string} + */ + 'currency'?: string; + /** + * The value of the discount. The `discount_type` field can be used to specify whether the value is an amount or a percentage + * @type {number} + */ + 'discount'?: number; + /** + * The type of the discount\'s value + * @type {string} + */ + 'discount_type'?: GetDealsProductsResponseDataInnerAllOfDiscountTypeConst; + /** + * The quantity of the product + * @type {number} + */ + 'quantity'?: number; + /** + * The price value of the product + * @type {number} + */ + 'item_price'?: number; + /** + * The tax option to be applied to the products. When using `inclusive`, the tax percentage will already be included in the price. When using `exclusive`, the tax will not be included in the price. When using `none`, no tax will be added. Use the `tax` field for defining the tax percentage amount. By default, the user setting value for tax options will be used. Changing this in one product affects the rest of the products attached to the deal + * @type {string} + */ + 'tax_method'?: GetDealsProductsResponseDataInnerAllOfTaxMethodConst; + /** + * Whether this product is enabled for the deal + * @type {boolean} + */ + 'is_enabled'?: boolean; +} + + export const GetDealsProductsResponseDataInnerAllOfDiscountTypeConst = { + percentage: 'percentage', + amount: 'amount' + } as const; + + export type GetDealsProductsResponseDataInnerAllOfDiscountTypeConst = typeof GetDealsProductsResponseDataInnerAllOfDiscountTypeConst[keyof typeof GetDealsProductsResponseDataInnerAllOfDiscountTypeConst]; + export const GetDealsProductsResponseDataInnerAllOfTaxMethodConst = { + exclusive: 'exclusive', + inclusive: 'inclusive', + none: 'none' + } as const; + + export type GetDealsProductsResponseDataInnerAllOfTaxMethodConst = typeof GetDealsProductsResponseDataInnerAllOfTaxMethodConst[keyof typeof GetDealsProductsResponseDataInnerAllOfTaxMethodConst]; + + diff --git a/src/versions/v2/models/get-deals-products-response-data-inner-all-of1.ts b/src/versions/v2/models/get-deals-products-response-data-inner-all-of1.ts new file mode 100644 index 00000000..746e68f3 --- /dev/null +++ b/src/versions/v2/models/get-deals-products-response-data-inner-all-of1.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealsProductsResponseDataInnerAllOf1 +*/ +export interface GetDealsProductsResponseDataInnerAllOf1 { + /** + * Only available in Advanced and above plans How often a customer is billed for access to a service or product To set `billing_frequency` different than `one-time`, the deal must not have installments associated A deal can have up to 20 products attached with `billing_frequency` different than `one-time` + * @type {string} + */ + 'billing_frequency'?: GetDealsProductsResponseDataInnerAllOf1BillingFrequencyConst; +} + + export const GetDealsProductsResponseDataInnerAllOf1BillingFrequencyConst = { + one_time: 'one-time', + annually: 'annually', + semi_annually: 'semi-annually', + quarterly: 'quarterly', + monthly: 'monthly', + weekly: 'weekly' + } as const; + + export type GetDealsProductsResponseDataInnerAllOf1BillingFrequencyConst = typeof GetDealsProductsResponseDataInnerAllOf1BillingFrequencyConst[keyof typeof GetDealsProductsResponseDataInnerAllOf1BillingFrequencyConst]; + + diff --git a/src/versions/v2/models/get-deals-products-response-data-inner-all-of2.ts b/src/versions/v2/models/get-deals-products-response-data-inner-all-of2.ts new file mode 100644 index 00000000..c42d54d1 --- /dev/null +++ b/src/versions/v2/models/get-deals-products-response-data-inner-all-of2.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealsProductsResponseDataInnerAllOf2 +*/ +export interface GetDealsProductsResponseDataInnerAllOf2 { + /** + * Only available in Advanced and above plans The number of times the billing frequency repeats for a product in a deal When `billing_frequency` is set to `one-time`, this field must be `null` When `billing_frequency` is set to `weekly`, this field cannot be `null` For all the other values of `billing_frequency`, `null` represents a product billed indefinitely Must be a positive integer less or equal to 208 + * @type {number} + */ + 'billing_frequency_cycles'?: number | null; +} + diff --git a/src/versions/v2/models/get-deals-products-response-data-inner-all-of3.ts b/src/versions/v2/models/get-deals-products-response-data-inner-all-of3.ts new file mode 100644 index 00000000..184e5fe8 --- /dev/null +++ b/src/versions/v2/models/get-deals-products-response-data-inner-all-of3.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetDealsProductsResponseDataInnerAllOf3 +*/ +export interface GetDealsProductsResponseDataInnerAllOf3 { + /** + * Only available in Advanced and above plans The billing start date. Must be between 10 years in the past and 10 years in the future + * @type {string} + */ + 'billing_start_date'?: string | null; +} + diff --git a/src/versions/v2/models/get-deals-products-response-data-inner.ts b/src/versions/v2/models/get-deals-products-response-data-inner.ts new file mode 100644 index 00000000..e43c1dca --- /dev/null +++ b/src/versions/v2/models/get-deals-products-response-data-inner.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf } from './get-deals-products-response-data-inner-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf1 } from './get-deals-products-response-data-inner-all-of1'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-response-data-inner-all-of2'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf3 } from './get-deals-products-response-data-inner-all-of3'; + +/** + * @type GetDealsProductsResponseDataInner + * @export + */ +export type GetDealsProductsResponseDataInner = GetDealsProductsResponseDataInnerAllOf & GetDealsProductsResponseDataInnerAllOf1 & GetDealsProductsResponseDataInnerAllOf2 & GetDealsProductsResponseDataInnerAllOf3; + + diff --git a/src/versions/v2/models/get-deals-products-response.ts b/src/versions/v2/models/get-deals-products-response.ts new file mode 100644 index 00000000..86ce78ea --- /dev/null +++ b/src/versions/v2/models/get-deals-products-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInner } from './get-deals-products-response-data-inner'; + +/** +* +* @export +* @interface GetDealsProductsResponse +*/ +export interface GetDealsProductsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * Array containing data for all products attached to deals + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetDealsProductsResponseAdditionalData} + */ + 'additional_data'?: GetDealsProductsResponseAdditionalData; +} + diff --git a/src/versions/v2/models/get-deals-response-all-of.ts b/src/versions/v2/models/get-deals-response-all-of.ts new file mode 100644 index 00000000..ace27ba1 --- /dev/null +++ b/src/versions/v2/models/get-deals-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealItem } from './deal-item'; + +/** +* +* @export +* @interface GetDealsResponseAllOf +*/ +export interface GetDealsResponseAllOf { + /** + * Deals array + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v2/models/get-deals-response.ts b/src/versions/v2/models/get-deals-response.ts new file mode 100644 index 00000000..75cf7b55 --- /dev/null +++ b/src/versions/v2/models/get-deals-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DealItem } from './deal-item'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsResponseAllOf } from './get-deals-response-all-of'; + +/** + * @type GetDealsResponse + * @export + */ +export type GetDealsResponse = BaseResponse & GetDealsResponseAllOf; + + diff --git a/src/versions/v2/models/get-item-search-field-response-all-of.ts b/src/versions/v2/models/get-item-search-field-response-all-of.ts new file mode 100644 index 00000000..bc7146d2 --- /dev/null +++ b/src/versions/v2/models/get-item-search-field-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { ItemSearchItem } from './item-search-item'; + +/** +* +* @export +* @interface GetItemSearchFieldResponseAllOf +*/ +export interface GetItemSearchFieldResponseAllOf { + /** + * The array of found fields + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetDealsProductsResponseAdditionalData} + */ + 'additional_data'?: GetDealsProductsResponseAdditionalData; +} + diff --git a/src/versions/v2/models/get-item-search-field-response.ts b/src/versions/v2/models/get-item-search-field-response.ts new file mode 100644 index 00000000..ee671b2b --- /dev/null +++ b/src/versions/v2/models/get-item-search-field-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetItemSearchFieldResponseAllOf } from './get-item-search-field-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { ItemSearchItem } from './item-search-item'; + +/** + * @type GetItemSearchFieldResponse + * @export + */ +export type GetItemSearchFieldResponse = BaseResponse & GetItemSearchFieldResponseAllOf; + + diff --git a/src/versions/v2/models/get-item-search-response-data-data.ts b/src/versions/v2/models/get-item-search-response-data-data.ts new file mode 100644 index 00000000..42feed14 --- /dev/null +++ b/src/versions/v2/models/get-item-search-response-data-data.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ItemSearchItem } from './item-search-item'; + +/** +* +* @export +* @interface GetItemSearchResponseDataData +*/ +export interface GetItemSearchResponseDataData { + /** + * The array of found items + * @type {Array} + */ + 'items'?: Array; + /** + * The array of related items if `search_for_related_items` was enabled + * @type {Array} + */ + 'related_items'?: Array; +} + diff --git a/src/versions/v2/models/get-item-search-response-data.ts b/src/versions/v2/models/get-item-search-response-data.ts new file mode 100644 index 00000000..10354711 --- /dev/null +++ b/src/versions/v2/models/get-item-search-response-data.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetItemSearchResponseDataData } from './get-item-search-response-data-data'; + +/** +* +* @export +* @interface GetItemSearchResponseData +*/ +export interface GetItemSearchResponseData { + /** + * + * @type {GetItemSearchResponseDataData} + */ + 'data'?: GetItemSearchResponseDataData; + /** + * + * @type {GetDealsProductsResponseAdditionalData} + */ + 'additional_data'?: GetDealsProductsResponseAdditionalData; +} + diff --git a/src/versions/v2/models/get-item-search-response.ts b/src/versions/v2/models/get-item-search-response.ts new file mode 100644 index 00000000..f322832e --- /dev/null +++ b/src/versions/v2/models/get-item-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetItemSearchResponseData } from './get-item-search-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetItemSearchResponseDataData } from './get-item-search-response-data-data'; + +/** + * @type GetItemSearchResponse + * @export + */ +export type GetItemSearchResponse = BaseResponse & GetItemSearchResponseData; + + diff --git a/src/versions/v2/models/get-lead-search-response-data-data.ts b/src/versions/v2/models/get-lead-search-response-data-data.ts new file mode 100644 index 00000000..3818eb2f --- /dev/null +++ b/src/versions/v2/models/get-lead-search-response-data-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadSearchItem } from './lead-search-item'; + +/** +* +* @export +* @interface GetLeadSearchResponseDataData +*/ +export interface GetLeadSearchResponseDataData { + /** + * The array of leads + * @type {Array} + */ + 'items'?: Array; +} + diff --git a/src/versions/v2/models/get-lead-search-response-data.ts b/src/versions/v2/models/get-lead-search-response-data.ts new file mode 100644 index 00000000..c4eb7121 --- /dev/null +++ b/src/versions/v2/models/get-lead-search-response-data.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetLeadSearchResponseDataData } from './get-lead-search-response-data-data'; + +/** +* +* @export +* @interface GetLeadSearchResponseData +*/ +export interface GetLeadSearchResponseData { + /** + * + * @type {GetLeadSearchResponseDataData} + */ + 'data'?: GetLeadSearchResponseDataData; + /** + * + * @type {GetDealsProductsResponseAdditionalData} + */ + 'additional_data'?: GetDealsProductsResponseAdditionalData; +} + diff --git a/src/versions/v2/models/get-lead-search-response.ts b/src/versions/v2/models/get-lead-search-response.ts new file mode 100644 index 00000000..9ae18ef0 --- /dev/null +++ b/src/versions/v2/models/get-lead-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetLeadSearchResponseData } from './get-lead-search-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetLeadSearchResponseDataData } from './get-lead-search-response-data-data'; + +/** + * @type GetLeadSearchResponse + * @export + */ +export type GetLeadSearchResponse = BaseResponse & GetLeadSearchResponseData; + + diff --git a/src/versions/v2/models/get-organization-search-response-all-of-data-items-inner-item.ts b/src/versions/v2/models/get-organization-search-response-all-of-data-items-inner-item.ts new file mode 100644 index 00000000..34379150 --- /dev/null +++ b/src/versions/v2/models/get-organization-search-response-all-of-data-items-inner-item.ts @@ -0,0 +1,67 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealSearchResponseAllOfDataItemsInnerItemOwner } from './get-deal-search-response-all-of-data-items-inner-item-owner'; + +/** +* +* @export +* @interface GetOrganizationSearchResponseAllOfDataItemsInnerItem +*/ +export interface GetOrganizationSearchResponseAllOfDataItemsInnerItem { + /** + * The ID of the organization + * @type {number} + */ + 'id'?: number; + /** + * The type of the item + * @type {string} + */ + 'type'?: string; + /** + * The name of the organization + * @type {string} + */ + 'name'?: string; + /** + * The address of the organization + * @type {string} + */ + 'address'?: string; + /** + * The visibility of the organization + * @type {number} + */ + 'visible_to'?: number; + /** + * + * @type {GetDealSearchResponseAllOfDataItemsInnerItemOwner} + */ + 'owner'?: GetDealSearchResponseAllOfDataItemsInnerItemOwner; + /** + * Custom fields + * @type {Array} + */ + 'custom_fields'?: Array; + /** + * An array of notes + * @type {Array} + */ + 'notes'?: Array; +} + diff --git a/src/versions/v2/models/get-organization-search-response-all-of-data-items-inner.ts b/src/versions/v2/models/get-organization-search-response-all-of-data-items-inner.ts new file mode 100644 index 00000000..6571d4c9 --- /dev/null +++ b/src/versions/v2/models/get-organization-search-response-all-of-data-items-inner.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationSearchResponseAllOfDataItemsInnerItem } from './get-organization-search-response-all-of-data-items-inner-item'; + +/** +* +* @export +* @interface GetOrganizationSearchResponseAllOfDataItemsInner +*/ +export interface GetOrganizationSearchResponseAllOfDataItemsInner { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * + * @type {GetOrganizationSearchResponseAllOfDataItemsInnerItem} + */ + 'item'?: GetOrganizationSearchResponseAllOfDataItemsInnerItem; +} + diff --git a/src/versions/v2/models/get-organization-search-response-all-of-data.ts b/src/versions/v2/models/get-organization-search-response-all-of-data.ts new file mode 100644 index 00000000..d55767c7 --- /dev/null +++ b/src/versions/v2/models/get-organization-search-response-all-of-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationSearchResponseAllOfDataItemsInner } from './get-organization-search-response-all-of-data-items-inner'; + +/** +* +* @export +* @interface GetOrganizationSearchResponseAllOfData +*/ +export interface GetOrganizationSearchResponseAllOfData { + /** + * The array of found items + * @type {Array} + */ + 'items'?: Array; +} + diff --git a/src/versions/v2/models/get-organization-search-response-all-of.ts b/src/versions/v2/models/get-organization-search-response-all-of.ts new file mode 100644 index 00000000..b2c47d42 --- /dev/null +++ b/src/versions/v2/models/get-organization-search-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationSearchResponseAllOfData } from './get-organization-search-response-all-of-data'; + +/** +* +* @export +* @interface GetOrganizationSearchResponseAllOf +*/ +export interface GetOrganizationSearchResponseAllOf { + /** + * + * @type {GetOrganizationSearchResponseAllOfData} + */ + 'data'?: GetOrganizationSearchResponseAllOfData; + /** + * + * @type {GetDealsProductsResponseAdditionalData} + */ + 'additional_data'?: GetDealsProductsResponseAdditionalData; +} + diff --git a/src/versions/v2/models/get-organization-search-response.ts b/src/versions/v2/models/get-organization-search-response.ts new file mode 100644 index 00000000..2e59c05f --- /dev/null +++ b/src/versions/v2/models/get-organization-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationSearchResponseAllOf } from './get-organization-search-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationSearchResponseAllOfData } from './get-organization-search-response-all-of-data'; + +/** + * @type GetOrganizationSearchResponse + * @export + */ +export type GetOrganizationSearchResponse = BaseResponse & GetOrganizationSearchResponseAllOf; + + diff --git a/src/versions/v2/models/get-organizations-response-all-of.ts b/src/versions/v2/models/get-organizations-response-all-of.ts new file mode 100644 index 00000000..2f4d023c --- /dev/null +++ b/src/versions/v2/models/get-organizations-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationItem } from './organization-item'; + +/** +* +* @export +* @interface GetOrganizationsResponseAllOf +*/ +export interface GetOrganizationsResponseAllOf { + /** + * Organizations array + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v2/models/get-organizations-response.ts b/src/versions/v2/models/get-organizations-response.ts new file mode 100644 index 00000000..c4828908 --- /dev/null +++ b/src/versions/v2/models/get-organizations-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetOrganizationsResponseAllOf } from './get-organizations-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationItem } from './organization-item'; + +/** + * @type GetOrganizationsResponse + * @export + */ +export type GetOrganizationsResponse = BaseResponse & GetOrganizationsResponseAllOf; + + diff --git a/src/versions/v2/models/get-person-search-response-all-of-data-items-inner-item-organization.ts b/src/versions/v2/models/get-person-search-response-all-of-data-items-inner-item-organization.ts new file mode 100644 index 00000000..15c76519 --- /dev/null +++ b/src/versions/v2/models/get-person-search-response-all-of-data-items-inner-item-organization.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPersonSearchResponseAllOfDataItemsInnerItemOrganization +*/ +export interface GetPersonSearchResponseAllOfDataItemsInnerItemOrganization { + /** + * The ID of the organization the person is associated with + * @type {number} + */ + 'id'?: number; + /** + * The name of the organization the person is associated with + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v2/models/get-person-search-response-all-of-data-items-inner-item-owner.ts b/src/versions/v2/models/get-person-search-response-all-of-data-items-inner-item-owner.ts new file mode 100644 index 00000000..f265b13a --- /dev/null +++ b/src/versions/v2/models/get-person-search-response-all-of-data-items-inner-item-owner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPersonSearchResponseAllOfDataItemsInnerItemOwner +*/ +export interface GetPersonSearchResponseAllOfDataItemsInnerItemOwner { + /** + * The ID of the owner of the person + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/get-person-search-response-all-of-data-items-inner-item.ts b/src/versions/v2/models/get-person-search-response-all-of-data-items-inner-item.ts new file mode 100644 index 00000000..dbb59a8f --- /dev/null +++ b/src/versions/v2/models/get-person-search-response-all-of-data-items-inner-item.ts @@ -0,0 +1,80 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfDataItemsInnerItemOrganization } from './get-person-search-response-all-of-data-items-inner-item-organization'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfDataItemsInnerItemOwner } from './get-person-search-response-all-of-data-items-inner-item-owner'; + +/** +* +* @export +* @interface GetPersonSearchResponseAllOfDataItemsInnerItem +*/ +export interface GetPersonSearchResponseAllOfDataItemsInnerItem { + /** + * The ID of the person + * @type {number} + */ + 'id'?: number; + /** + * The type of the item + * @type {string} + */ + 'type'?: string; + /** + * The name of the person + * @type {string} + */ + 'name'?: string; + /** + * An array of phone numbers + * @type {Array} + */ + 'phones'?: Array; + /** + * An array of email addresses + * @type {Array} + */ + 'emails'?: Array; + /** + * The visibility of the person + * @type {number} + */ + 'visible_to'?: number; + /** + * + * @type {GetPersonSearchResponseAllOfDataItemsInnerItemOwner} + */ + 'owner'?: GetPersonSearchResponseAllOfDataItemsInnerItemOwner; + /** + * + * @type {GetPersonSearchResponseAllOfDataItemsInnerItemOrganization} + */ + 'organization'?: GetPersonSearchResponseAllOfDataItemsInnerItemOrganization; + /** + * Custom fields + * @type {Array} + */ + 'custom_fields'?: Array; + /** + * An array of notes + * @type {Array} + */ + 'notes'?: Array; +} + diff --git a/src/versions/v2/models/get-person-search-response-all-of-data-items-inner.ts b/src/versions/v2/models/get-person-search-response-all-of-data-items-inner.ts new file mode 100644 index 00000000..49d39782 --- /dev/null +++ b/src/versions/v2/models/get-person-search-response-all-of-data-items-inner.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfDataItemsInnerItem } from './get-person-search-response-all-of-data-items-inner-item'; + +/** +* +* @export +* @interface GetPersonSearchResponseAllOfDataItemsInner +*/ +export interface GetPersonSearchResponseAllOfDataItemsInner { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * + * @type {GetPersonSearchResponseAllOfDataItemsInnerItem} + */ + 'item'?: GetPersonSearchResponseAllOfDataItemsInnerItem; +} + diff --git a/src/versions/v2/models/get-person-search-response-all-of-data.ts b/src/versions/v2/models/get-person-search-response-all-of-data.ts new file mode 100644 index 00000000..999f2f35 --- /dev/null +++ b/src/versions/v2/models/get-person-search-response-all-of-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfDataItemsInner } from './get-person-search-response-all-of-data-items-inner'; + +/** +* +* @export +* @interface GetPersonSearchResponseAllOfData +*/ +export interface GetPersonSearchResponseAllOfData { + /** + * The array of found items + * @type {Array} + */ + 'items'?: Array; +} + diff --git a/src/versions/v2/models/get-person-search-response-all-of.ts b/src/versions/v2/models/get-person-search-response-all-of.ts new file mode 100644 index 00000000..28a84fef --- /dev/null +++ b/src/versions/v2/models/get-person-search-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfData } from './get-person-search-response-all-of-data'; + +/** +* +* @export +* @interface GetPersonSearchResponseAllOf +*/ +export interface GetPersonSearchResponseAllOf { + /** + * + * @type {GetPersonSearchResponseAllOfData} + */ + 'data'?: GetPersonSearchResponseAllOfData; + /** + * + * @type {GetDealsProductsResponseAdditionalData} + */ + 'additional_data'?: GetDealsProductsResponseAdditionalData; +} + diff --git a/src/versions/v2/models/get-person-search-response.ts b/src/versions/v2/models/get-person-search-response.ts new file mode 100644 index 00000000..7976af5c --- /dev/null +++ b/src/versions/v2/models/get-person-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOf } from './get-person-search-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonSearchResponseAllOfData } from './get-person-search-response-all-of-data'; + +/** + * @type GetPersonSearchResponse + * @export + */ +export type GetPersonSearchResponse = BaseResponse & GetPersonSearchResponseAllOf; + + diff --git a/src/versions/v2/models/get-persons-response-all-of-data-inner-emails-inner.ts b/src/versions/v2/models/get-persons-response-all-of-data-inner-emails-inner.ts new file mode 100644 index 00000000..266600ec --- /dev/null +++ b/src/versions/v2/models/get-persons-response-all-of-data-inner-emails-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPersonsResponseAllOfDataInnerEmailsInner +*/ +export interface GetPersonsResponseAllOfDataInnerEmailsInner { + /** + * The email address of the person + * @type {string} + */ + 'value'?: string; + /** + * Whether the email is primary or not + * @type {boolean} + */ + 'primary'?: boolean; + /** + * The email address classification label + * @type {string} + */ + 'label'?: string; +} + diff --git a/src/versions/v2/models/get-persons-response-all-of-data-inner-im-inner.ts b/src/versions/v2/models/get-persons-response-all-of-data-inner-im-inner.ts new file mode 100644 index 00000000..d6ec4e36 --- /dev/null +++ b/src/versions/v2/models/get-persons-response-all-of-data-inner-im-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPersonsResponseAllOfDataInnerImInner +*/ +export interface GetPersonsResponseAllOfDataInnerImInner { + /** + * The instant messaging account of the person + * @type {string} + */ + 'value'?: string; + /** + * Whether the instant messaging account is primary or not + * @type {boolean} + */ + 'primary'?: boolean; + /** + * The instant messaging account classification label + * @type {string} + */ + 'label'?: string; +} + diff --git a/src/versions/v2/models/get-persons-response-all-of-data-inner-phones-inner.ts b/src/versions/v2/models/get-persons-response-all-of-data-inner-phones-inner.ts new file mode 100644 index 00000000..2663ca81 --- /dev/null +++ b/src/versions/v2/models/get-persons-response-all-of-data-inner-phones-inner.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPersonsResponseAllOfDataInnerPhonesInner +*/ +export interface GetPersonsResponseAllOfDataInnerPhonesInner { + /** + * The phone number of the person + * @type {string} + */ + 'value'?: string; + /** + * Whether the phone number is primary or not + * @type {boolean} + */ + 'primary'?: boolean; + /** + * The phone number classification label + * @type {string} + */ + 'label'?: string; +} + diff --git a/src/versions/v2/models/get-persons-response-all-of-data-inner-postal-address.ts b/src/versions/v2/models/get-persons-response-all-of-data-inner-postal-address.ts new file mode 100644 index 00000000..aa0dc67b --- /dev/null +++ b/src/versions/v2/models/get-persons-response-all-of-data-inner-postal-address.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* Postal address of the person, included if contact sync is enabled for the company +* @export +* @interface GetPersonsResponseAllOfDataInnerPostalAddress +*/ +export interface GetPersonsResponseAllOfDataInnerPostalAddress { + /** + * The full address of the person + * @type {string} + */ + 'value'?: string; + /** + * Country of the person + * @type {string} + */ + 'country'?: string; + /** + * Admin area level 1 (e.g. state) of the person + * @type {string} + */ + 'admin_area_level_1'?: string; + /** + * Admin area level 2 (e.g. county) of the person + * @type {string} + */ + 'admin_area_level_2'?: string; + /** + * Locality (e.g. city) of the person + * @type {string} + */ + 'locality'?: string; + /** + * Sublocality (e.g. neighborhood) of the person + * @type {string} + */ + 'sublocality'?: string; + /** + * Route (e.g. street) of the person + * @type {string} + */ + 'route'?: string; + /** + * Street number of the person + * @type {string} + */ + 'street_number'?: string; + /** + * Postal code of the person + * @type {string} + */ + 'postal_code'?: string; +} + diff --git a/src/versions/v2/models/get-persons-response-all-of-data-inner.ts b/src/versions/v2/models/get-persons-response-all-of-data-inner.ts new file mode 100644 index 00000000..c4cde879 --- /dev/null +++ b/src/versions/v2/models/get-persons-response-all-of-data-inner.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfDataInnerEmailsInner } from './get-persons-response-all-of-data-inner-emails-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfDataInnerImInner } from './get-persons-response-all-of-data-inner-im-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfDataInnerPhonesInner } from './get-persons-response-all-of-data-inner-phones-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfDataInnerPostalAddress } from './get-persons-response-all-of-data-inner-postal-address'; + +/** +* +* @export +* @interface GetPersonsResponseAllOfDataInner +*/ +export interface GetPersonsResponseAllOfDataInner { + /** + * The ID of the person + * @type {number} + */ + 'id'?: number; + /** + * The name of the person + * @type {string} + */ + 'name'?: string; + /** + * The first name of the person + * @type {string} + */ + 'first_name'?: string; + /** + * The last name of the person + * @type {string} + */ + 'last_name'?: string; + /** + * The ID of the user who owns the person + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the organization linked to the person + * @type {number} + */ + 'org_id'?: number; + /** + * The creation date and time of the person + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the person + * @type {string} + */ + 'update_time'?: string; + /** + * The emails of the person + * @type {Array} + */ + 'emails'?: Array; + /** + * The phones of the person + * @type {Array} + */ + 'phones'?: Array; + /** + * Whether the person is deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The visibility of the person + * @type {number} + */ + 'visible_to'?: number; + /** + * The IDs of labels assigned to the person + * @type {Array} + */ + 'label_ids'?: Array; + /** + * The ID of the picture associated with the person + * @type {number} + */ + 'picture_id'?: number; + /** + * + * @type {GetPersonsResponseAllOfDataInnerPostalAddress} + */ + 'postal_address'?: GetPersonsResponseAllOfDataInnerPostalAddress; + /** + * Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company + * @type {string} + */ + 'notes'?: string; + /** + * The instant messaging accounts of the person, included if contact sync is enabled for the company + * @type {Array} + */ + 'im'?: Array; + /** + * The birthday of the person, included if contact sync is enabled for the company + * @type {string} + */ + 'birthday'?: string; + /** + * The job title of the person, included if contact sync is enabled for the company + * @type {string} + */ + 'job_title'?: string; +} + diff --git a/src/versions/v2/models/get-persons-response-all-of.ts b/src/versions/v2/models/get-persons-response-all-of.ts new file mode 100644 index 00000000..7bc156de --- /dev/null +++ b/src/versions/v2/models/get-persons-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfDataInner } from './get-persons-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetPersonsResponseAllOf +*/ +export interface GetPersonsResponseAllOf { + /** + * Persons array + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v2/models/get-persons-response.ts b/src/versions/v2/models/get-persons-response.ts new file mode 100644 index 00000000..b5dc3918 --- /dev/null +++ b/src/versions/v2/models/get-persons-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOf } from './get-persons-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfDataInner } from './get-persons-response-all-of-data-inner'; + +/** + * @type GetPersonsResponse + * @export + */ +export type GetPersonsResponse = BaseResponse & GetPersonsResponseAllOf; + + diff --git a/src/versions/v2/models/get-pipelines-response-all-of-data-inner.ts b/src/versions/v2/models/get-pipelines-response-all-of-data-inner.ts new file mode 100644 index 00000000..13be9770 --- /dev/null +++ b/src/versions/v2/models/get-pipelines-response-all-of-data-inner.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetPipelinesResponseAllOfDataInner +*/ +export interface GetPipelinesResponseAllOfDataInner { + /** + * The ID of the pipeline + * @type {number} + */ + 'id'?: number; + /** + * The name of the pipeline + * @type {string} + */ + 'name'?: string; + /** + * Defines the order of pipelines. The pipeline with the lowest `order_nr` is considered the default. + * @type {number} + */ + 'order_nr'?: number; + /** + * Whether this pipeline is selected or not + * @type {boolean} + */ + 'is_selected'?: boolean; + /** + * Whether this pipeline is marked as deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * Whether deal probability is disabled or enabled for this pipeline + * @type {boolean} + */ + 'is_deal_probability_enabled'?: boolean; + /** + * The pipeline creation time + * @type {string} + */ + 'add_time'?: string; + /** + * The pipeline update time + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v2/models/get-pipelines-response-all-of.ts b/src/versions/v2/models/get-pipelines-response-all-of.ts new file mode 100644 index 00000000..a1329825 --- /dev/null +++ b/src/versions/v2/models/get-pipelines-response-all-of.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelinesResponseAllOfDataInner } from './get-pipelines-response-all-of-data-inner'; + +/** +* +* @export +* @interface GetPipelinesResponseAllOf +*/ +export interface GetPipelinesResponseAllOf { + /** + * Pipelines array + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v2/models/get-pipelines-response.ts b/src/versions/v2/models/get-pipelines-response.ts new file mode 100644 index 00000000..02d28c3d --- /dev/null +++ b/src/versions/v2/models/get-pipelines-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelinesResponseAllOf } from './get-pipelines-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPipelinesResponseAllOfDataInner } from './get-pipelines-response-all-of-data-inner'; + +/** + * @type GetPipelinesResponse + * @export + */ +export type GetPipelinesResponse = BaseResponse & GetPipelinesResponseAllOf; + + diff --git a/src/versions/v2/models/get-product-response-data.ts b/src/versions/v2/models/get-product-response-data.ts new file mode 100644 index 00000000..b644dce4 --- /dev/null +++ b/src/versions/v2/models/get-product-response-data.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseProduct } from './base-product'; +// May contain unused imports in some cases +// @ts-ignore +import { PricesArray } from './prices-array'; + +/** + * @type GetProductResponseData + * @export + */ +export type GetProductResponseData = BaseProduct & PricesArray; + + diff --git a/src/versions/v2/models/get-product-response.ts b/src/versions/v2/models/get-product-response.ts new file mode 100644 index 00000000..7695b678 --- /dev/null +++ b/src/versions/v2/models/get-product-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductResponseData } from './get-product-response-data'; + +/** +* +* @export +* @interface GetProductResponse +*/ +export interface GetProductResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetProductResponseData} + */ + 'data'?: GetProductResponseData; +} + diff --git a/src/versions/v2/models/get-product-search-response-all-of-data-items-inner-item-owner.ts b/src/versions/v2/models/get-product-search-response-all-of-data-items-inner-item-owner.ts new file mode 100644 index 00000000..fc8cfeea --- /dev/null +++ b/src/versions/v2/models/get-product-search-response-all-of-data-items-inner-item-owner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetProductSearchResponseAllOfDataItemsInnerItemOwner +*/ +export interface GetProductSearchResponseAllOfDataItemsInnerItemOwner { + /** + * The ID of the owner of the product + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/get-product-search-response-all-of-data-items-inner-item.ts b/src/versions/v2/models/get-product-search-response-all-of-data-items-inner-item.ts new file mode 100644 index 00000000..ec96c6e4 --- /dev/null +++ b/src/versions/v2/models/get-product-search-response-all-of-data-items-inner-item.ts @@ -0,0 +1,62 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOfDataItemsInnerItemOwner } from './get-product-search-response-all-of-data-items-inner-item-owner'; + +/** +* +* @export +* @interface GetProductSearchResponseAllOfDataItemsInnerItem +*/ +export interface GetProductSearchResponseAllOfDataItemsInnerItem { + /** + * The ID of the product + * @type {number} + */ + 'id'?: number; + /** + * The type of the item + * @type {string} + */ + 'type'?: string; + /** + * The name of the product + * @type {string} + */ + 'name'?: string; + /** + * The code of the product + * @type {number} + */ + 'code'?: number; + /** + * The visibility of the product + * @type {number} + */ + 'visible_to'?: number; + /** + * + * @type {GetProductSearchResponseAllOfDataItemsInnerItemOwner} + */ + 'owner'?: GetProductSearchResponseAllOfDataItemsInnerItemOwner; + /** + * The custom fields + * @type {Array} + */ + 'custom_fields'?: Array; +} + diff --git a/src/versions/v2/models/get-product-search-response-all-of-data-items-inner.ts b/src/versions/v2/models/get-product-search-response-all-of-data-items-inner.ts new file mode 100644 index 00000000..004497cd --- /dev/null +++ b/src/versions/v2/models/get-product-search-response-all-of-data-items-inner.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOfDataItemsInnerItem } from './get-product-search-response-all-of-data-items-inner-item'; + +/** +* +* @export +* @interface GetProductSearchResponseAllOfDataItemsInner +*/ +export interface GetProductSearchResponseAllOfDataItemsInner { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * + * @type {GetProductSearchResponseAllOfDataItemsInnerItem} + */ + 'item'?: GetProductSearchResponseAllOfDataItemsInnerItem; +} + diff --git a/src/versions/v2/models/get-product-search-response-all-of-data.ts b/src/versions/v2/models/get-product-search-response-all-of-data.ts new file mode 100644 index 00000000..d2ca9449 --- /dev/null +++ b/src/versions/v2/models/get-product-search-response-all-of-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOfDataItemsInner } from './get-product-search-response-all-of-data-items-inner'; + +/** +* +* @export +* @interface GetProductSearchResponseAllOfData +*/ +export interface GetProductSearchResponseAllOfData { + /** + * The array of found items + * @type {Array} + */ + 'items'?: Array; +} + diff --git a/src/versions/v2/models/get-product-search-response-all-of.ts b/src/versions/v2/models/get-product-search-response-all-of.ts new file mode 100644 index 00000000..a0b1dcbf --- /dev/null +++ b/src/versions/v2/models/get-product-search-response-all-of.ts @@ -0,0 +1,40 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOfData } from './get-product-search-response-all-of-data'; + +/** +* +* @export +* @interface GetProductSearchResponseAllOf +*/ +export interface GetProductSearchResponseAllOf { + /** + * + * @type {GetProductSearchResponseAllOfData} + */ + 'data'?: GetProductSearchResponseAllOfData; + /** + * + * @type {GetDealsProductsResponseAdditionalData} + */ + 'additional_data'?: GetDealsProductsResponseAdditionalData; +} + diff --git a/src/versions/v2/models/get-product-search-response.ts b/src/versions/v2/models/get-product-search-response.ts new file mode 100644 index 00000000..a7df639f --- /dev/null +++ b/src/versions/v2/models/get-product-search-response.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOf } from './get-product-search-response-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductSearchResponseAllOfData } from './get-product-search-response-all-of-data'; + +/** + * @type GetProductSearchResponse + * @export + */ +export type GetProductSearchResponse = BaseResponse & GetProductSearchResponseAllOf; + + diff --git a/src/versions/v2/models/get-product-variation-response.ts b/src/versions/v2/models/get-product-variation-response.ts new file mode 100644 index 00000000..a088800f --- /dev/null +++ b/src/versions/v2/models/get-product-variation-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductVariationsResponseDataInner } from './get-product-variations-response-data-inner'; + +/** +* +* @export +* @interface GetProductVariationResponse +*/ +export interface GetProductVariationResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetProductVariationsResponseDataInner} + */ + 'data'?: GetProductVariationsResponseDataInner; +} + diff --git a/src/versions/v2/models/get-product-variations-response-data-inner.ts b/src/versions/v2/models/get-product-variations-response-data-inner.ts new file mode 100644 index 00000000..0befd0df --- /dev/null +++ b/src/versions/v2/models/get-product-variations-response-data-inner.ts @@ -0,0 +1,44 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface GetProductVariationsResponseDataInner +*/ +export interface GetProductVariationsResponseDataInner { + /** + * The ID of the product variation + * @type {number} + */ + 'id'?: number; + /** + * The name of the product variation + * @type {string} + */ + 'name'?: string; + /** + * The ID of the product + * @type {number} + */ + 'product_id'?: number; + /** + * Array of objects, each containing: product_variation_id (number), currency (string), price (number), cost (number), direct_cost (number) , notes (string) + * @type {Array} + */ + 'prices'?: Array; +} + diff --git a/src/versions/v2/models/get-product-variations-response.ts b/src/versions/v2/models/get-product-variations-response.ts new file mode 100644 index 00000000..faefdb91 --- /dev/null +++ b/src/versions/v2/models/get-product-variations-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductVariationsResponseDataInner } from './get-product-variations-response-data-inner'; + +/** +* +* @export +* @interface GetProductVariationsResponse +*/ +export interface GetProductVariationsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * Array containing data for all products + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetDealsProductsResponseAdditionalData} + */ + 'additional_data'?: GetDealsProductsResponseAdditionalData; +} + diff --git a/src/versions/v2/models/get-products-response.ts b/src/versions/v2/models/get-products-response.ts new file mode 100644 index 00000000..9c6fb04d --- /dev/null +++ b/src/versions/v2/models/get-products-response.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseAdditionalData } from './get-deals-products-response-additional-data'; +// May contain unused imports in some cases +// @ts-ignore +import { GetProductResponse } from './get-product-response'; + +/** +* +* @export +* @interface GetProductsResponse +*/ +export interface GetProductsResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * Array containing data for all products + * @type {Array} + */ + 'data'?: Array; + /** + * + * @type {GetDealsProductsResponseAdditionalData} + */ + 'additional_data'?: GetDealsProductsResponseAdditionalData; +} + diff --git a/src/versions/v2/models/get-stages-response.ts b/src/versions/v2/models/get-stages-response.ts new file mode 100644 index 00000000..5d482ad2 --- /dev/null +++ b/src/versions/v2/models/get-stages-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { StageItem } from './stage-item'; + +/** +* +* @export +* @interface GetStagesResponse +*/ +export interface GetStagesResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * The array of stages + * @type {Array} + */ + 'data'?: Array; +} + diff --git a/src/versions/v2/models/index.ts b/src/versions/v2/models/index.ts new file mode 100644 index 00000000..3e591a9d --- /dev/null +++ b/src/versions/v2/models/index.ts @@ -0,0 +1,155 @@ +export * from './activity-item'; +export * from './activity-item1'; +export * from './activity-item-attendees-inner'; +export * from './activity-item-location'; +export * from './activity-item-participants-inner'; +export * from './add-activity-request'; +export * from './add-additional-discount-request-body'; +export * from './add-additional-discount-response'; +export * from './add-deal-product-request'; +export * from './add-deal-product-response'; +export * from './add-deal-request'; +export * from './add-organization-request'; +export * from './add-person-request'; +export * from './add-person-request-emails-inner'; +export * from './add-person-request-phones-inner'; +export * from './add-pipeline-request'; +export * from './add-product-request'; +export * from './add-product-request-all-of'; +export * from './add-product-variation-request'; +export * from './add-stage-request'; +export * from './base-product'; +export * from './base-product-all-of'; +export * from './base-product-all-of1'; +export * from './base-response'; +export * from './deal-item'; +export * from './deal-item1'; +export * from './deal-product-request-body'; +export * from './deal-product-request-body1'; +export * from './delete-activity-response'; +export * from './delete-activity-response-data'; +export * from './delete-additional-discount-response'; +export * from './delete-additional-discount-response-data'; +export * from './delete-deal-product-response'; +export * from './delete-deal-product-response-data'; +export * from './delete-deal-response'; +export * from './delete-deal-response-data'; +export * from './delete-organization-response'; +export * from './delete-organization-response-data'; +export * from './delete-person-response'; +export * from './delete-person-response-data'; +export * from './delete-pipeline-response'; +export * from './delete-pipeline-response-data'; +export * from './delete-product-response'; +export * from './delete-product-response-data'; +export * from './delete-product-variation-response'; +export * from './delete-product-variation-response-data'; +export * from './delete-stage-response'; +export * from './delete-stage-response-data'; +export * from './get-activities-response'; +export * from './get-activities-response-all-of'; +export * from './get-additional-discounts-response'; +export * from './get-additional-discounts-response-data-inner'; +export * from './get-deal-search-response'; +export * from './get-deal-search-response-all-of'; +export * from './get-deal-search-response-all-of-data'; +export * from './get-deal-search-response-all-of-data-items-inner'; +export * from './get-deal-search-response-all-of-data-items-inner-item'; +export * from './get-deal-search-response-all-of-data-items-inner-item-organization'; +export * from './get-deal-search-response-all-of-data-items-inner-item-owner'; +export * from './get-deal-search-response-all-of-data-items-inner-item-person'; +export * from './get-deal-search-response-all-of-data-items-inner-item-stage'; +export * from './get-deals-products-response'; +export * from './get-deals-products-response-additional-data'; +export * from './get-deals-products-response-data-inner'; +export * from './get-deals-products-response-data-inner-all-of'; +export * from './get-deals-products-response-data-inner-all-of1'; +export * from './get-deals-products-response-data-inner-all-of2'; +export * from './get-deals-products-response-data-inner-all-of3'; +export * from './get-deals-response'; +export * from './get-deals-response-all-of'; +export * from './get-item-search-field-response'; +export * from './get-item-search-field-response-all-of'; +export * from './get-item-search-response'; +export * from './get-item-search-response-data'; +export * from './get-item-search-response-data-data'; +export * from './get-lead-search-response'; +export * from './get-lead-search-response-data'; +export * from './get-lead-search-response-data-data'; +export * from './get-organization-search-response'; +export * from './get-organization-search-response-all-of'; +export * from './get-organization-search-response-all-of-data'; +export * from './get-organization-search-response-all-of-data-items-inner'; +export * from './get-organization-search-response-all-of-data-items-inner-item'; +export * from './get-organizations-response'; +export * from './get-organizations-response-all-of'; +export * from './get-person-search-response'; +export * from './get-person-search-response-all-of'; +export * from './get-person-search-response-all-of-data'; +export * from './get-person-search-response-all-of-data-items-inner'; +export * from './get-person-search-response-all-of-data-items-inner-item'; +export * from './get-person-search-response-all-of-data-items-inner-item-organization'; +export * from './get-person-search-response-all-of-data-items-inner-item-owner'; +export * from './get-persons-response'; +export * from './get-persons-response-all-of'; +export * from './get-persons-response-all-of-data-inner'; +export * from './get-persons-response-all-of-data-inner-emails-inner'; +export * from './get-persons-response-all-of-data-inner-im-inner'; +export * from './get-persons-response-all-of-data-inner-phones-inner'; +export * from './get-persons-response-all-of-data-inner-postal-address'; +export * from './get-pipelines-response'; +export * from './get-pipelines-response-all-of'; +export * from './get-pipelines-response-all-of-data-inner'; +export * from './get-product-response'; +export * from './get-product-response-data'; +export * from './get-product-search-response'; +export * from './get-product-search-response-all-of'; +export * from './get-product-search-response-all-of-data'; +export * from './get-product-search-response-all-of-data-items-inner'; +export * from './get-product-search-response-all-of-data-items-inner-item'; +export * from './get-product-search-response-all-of-data-items-inner-item-owner'; +export * from './get-product-variation-response'; +export * from './get-product-variations-response'; +export * from './get-product-variations-response-data-inner'; +export * from './get-products-response'; +export * from './get-stages-response'; +export * from './item-search-item'; +export * from './lead-search-item'; +export * from './lead-search-item-item'; +export * from './lead-search-item-item-organization'; +export * from './lead-search-item-item-owner'; +export * from './lead-search-item-item-person'; +export * from './organization-item'; +export * from './organization-item1'; +export * from './organization-item-address'; +export * from './prices-array'; +export * from './product-request'; +export * from './stage'; +export * from './stage-item'; +export * from './update-additional-discount-request-body'; +export * from './update-additional-discount-response'; +export * from './update-deal-product-request'; +export * from './update-deal-product-request-all-of'; +export * from './update-deal-request'; +export * from './update-organization-request'; +export * from './update-person-request'; +export * from './update-pipeline-request'; +export * from './update-product-request'; +export * from './update-product-request-all-of'; +export * from './update-product-request-all-of1'; +export * from './update-product-response'; +export * from './update-product-variation-request'; +export * from './update-stage-request'; +export * from './upsert-activity-response'; +export * from './upsert-activity-response-data'; +export * from './upsert-deal-response'; +export * from './upsert-deal-response-data'; +export * from './upsert-organization-response'; +export * from './upsert-organization-response-data'; +export * from './upsert-person-response'; +export * from './upsert-person-response-data'; +export * from './upsert-person-response-data-data'; +export * from './upsert-pipeline-response'; +export * from './upsert-pipeline-response-data'; +export * from './upsert-pipeline-response-data-data'; +export * from './upsert-stage-response'; diff --git a/src/versions/v2/models/item-search-item.ts b/src/versions/v2/models/item-search-item.ts new file mode 100644 index 00000000..f1ec033e --- /dev/null +++ b/src/versions/v2/models/item-search-item.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ItemSearchItem +*/ +export interface ItemSearchItem { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * Item + * @type {object} + */ + 'item'?: object; +} + diff --git a/src/versions/v2/models/lead-search-item-item-organization.ts b/src/versions/v2/models/lead-search-item-item-organization.ts new file mode 100644 index 00000000..ff0f01a9 --- /dev/null +++ b/src/versions/v2/models/lead-search-item-item-organization.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface LeadSearchItemItemOrganization +*/ +export interface LeadSearchItemItemOrganization { + /** + * The ID of the organization the lead is associated with + * @type {number} + */ + 'id'?: number; + /** + * The name of the organization the lead is associated with + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v2/models/lead-search-item-item-owner.ts b/src/versions/v2/models/lead-search-item-item-owner.ts new file mode 100644 index 00000000..e170363b --- /dev/null +++ b/src/versions/v2/models/lead-search-item-item-owner.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface LeadSearchItemItemOwner +*/ +export interface LeadSearchItemItemOwner { + /** + * The ID of the owner of the lead + * @type {number} + */ + 'id'?: number; +} + diff --git a/src/versions/v2/models/lead-search-item-item-person.ts b/src/versions/v2/models/lead-search-item-item-person.ts new file mode 100644 index 00000000..89ca52a5 --- /dev/null +++ b/src/versions/v2/models/lead-search-item-item-person.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface LeadSearchItemItemPerson +*/ +export interface LeadSearchItemItemPerson { + /** + * The ID of the person the lead is associated with + * @type {number} + */ + 'id'?: number; + /** + * The name of the person the lead is associated with + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v2/models/lead-search-item-item.ts b/src/versions/v2/models/lead-search-item-item.ts new file mode 100644 index 00000000..257dacc0 --- /dev/null +++ b/src/versions/v2/models/lead-search-item-item.ts @@ -0,0 +1,103 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadSearchItemItemOrganization } from './lead-search-item-item-organization'; +// May contain unused imports in some cases +// @ts-ignore +import { LeadSearchItemItemOwner } from './lead-search-item-item-owner'; +// May contain unused imports in some cases +// @ts-ignore +import { LeadSearchItemItemPerson } from './lead-search-item-item-person'; + +/** +* +* @export +* @interface LeadSearchItemItem +*/ +export interface LeadSearchItemItem { + /** + * The ID of the lead + * @type {string} + */ + 'id'?: string; + /** + * The type of the item + * @type {string} + */ + 'type'?: string; + /** + * The title of the lead + * @type {string} + */ + 'title'?: string; + /** + * + * @type {LeadSearchItemItemOwner} + */ + 'owner'?: LeadSearchItemItemOwner; + /** + * + * @type {LeadSearchItemItemPerson} + */ + 'person'?: LeadSearchItemItemPerson; + /** + * + * @type {LeadSearchItemItemOrganization} + */ + 'organization'?: LeadSearchItemItemOrganization; + /** + * + * @type {Array} + */ + 'phones'?: Array; + /** + * + * @type {Array} + */ + 'emails'?: Array; + /** + * Custom fields + * @type {Array} + */ + 'custom_fields'?: Array; + /** + * An array of notes + * @type {Array} + */ + 'notes'?: Array; + /** + * The value of the lead + * @type {number} + */ + 'value'?: number; + /** + * The currency of the lead + * @type {string} + */ + 'currency'?: string; + /** + * The visibility of the lead + * @type {number} + */ + 'visible_to'?: number; + /** + * A flag indicating whether the lead is archived or not + * @type {boolean} + */ + 'is_archived'?: boolean; +} + diff --git a/src/versions/v2/models/lead-search-item.ts b/src/versions/v2/models/lead-search-item.ts new file mode 100644 index 00000000..31d4a24c --- /dev/null +++ b/src/versions/v2/models/lead-search-item.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { LeadSearchItemItem } from './lead-search-item-item'; + +/** +* +* @export +* @interface LeadSearchItem +*/ +export interface LeadSearchItem { + /** + * Search result relevancy + * @type {number} + */ + 'result_score'?: number; + /** + * + * @type {LeadSearchItemItem} + */ + 'item'?: LeadSearchItemItem; +} + diff --git a/src/versions/v2/models/organization-item-address.ts b/src/versions/v2/models/organization-item-address.ts new file mode 100644 index 00000000..5887ffd9 --- /dev/null +++ b/src/versions/v2/models/organization-item-address.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface OrganizationItemAddress +*/ +export interface OrganizationItemAddress { + /** + * The full address of the organization + * @type {string} + */ + 'value'?: string; + /** + * Country of the organization + * @type {string} + */ + 'country'?: string; + /** + * Admin area level 1 (e.g. state) of the organization + * @type {string} + */ + 'admin_area_level_1'?: string; + /** + * Admin area level 2 (e.g. county) of the organization + * @type {string} + */ + 'admin_area_level_2'?: string; + /** + * Locality (e.g. city) of the organization + * @type {string} + */ + 'locality'?: string; + /** + * Sublocality (e.g. neighborhood) of the organization + * @type {string} + */ + 'sublocality'?: string; + /** + * Route (e.g. street) of the organization + * @type {string} + */ + 'route'?: string; + /** + * Street number of the organization + * @type {string} + */ + 'street_number'?: string; + /** + * Postal code of the organization + * @type {string} + */ + 'postal_code'?: string; +} + diff --git a/src/versions/v2/models/organization-item.ts b/src/versions/v2/models/organization-item.ts new file mode 100644 index 00000000..10a7b9e2 --- /dev/null +++ b/src/versions/v2/models/organization-item.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationItemAddress } from './organization-item-address'; + +/** +* +* @export +* @interface OrganizationItem +*/ +export interface OrganizationItem { + /** + * The ID of the organization + * @type {number} + */ + 'id'?: number; + /** + * The name of the organization + * @type {string} + */ + 'name'?: string; + /** + * The ID of the user who owns the organization + * @type {number} + */ + 'owner_id'?: number; + /** + * The creation date and time of the organization + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the organization + * @type {string} + */ + 'update_time'?: string; + /** + * Whether the organization is deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The visibility of the organization + * @type {number} + */ + 'visible_to'?: number; + /** + * + * @type {OrganizationItemAddress} + */ + 'address'?: OrganizationItemAddress; + /** + * The IDs of labels assigned to the organization + * @type {Array} + */ + 'label_ids'?: Array; +} + diff --git a/src/versions/v2/models/organization-item1.ts b/src/versions/v2/models/organization-item1.ts new file mode 100644 index 00000000..d98afd28 --- /dev/null +++ b/src/versions/v2/models/organization-item1.ts @@ -0,0 +1,72 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationItemAddress } from './organization-item-address'; + +/** +* The organization object +* @export +* @interface OrganizationItem1 +*/ +export interface OrganizationItem1 { + /** + * The ID of the organization + * @type {number} + */ + 'id'?: number; + /** + * The name of the organization + * @type {string} + */ + 'name'?: string; + /** + * The ID of the user who owns the organization + * @type {number} + */ + 'owner_id'?: number; + /** + * The creation date and time of the organization + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the organization + * @type {string} + */ + 'update_time'?: string; + /** + * Whether the organization is deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The visibility of the organization + * @type {number} + */ + 'visible_to'?: number; + /** + * + * @type {OrganizationItemAddress} + */ + 'address'?: OrganizationItemAddress; + /** + * The IDs of labels assigned to the organization + * @type {Array} + */ + 'label_ids'?: Array; +} + diff --git a/src/versions/v2/models/prices-array.ts b/src/versions/v2/models/prices-array.ts new file mode 100644 index 00000000..b5456a0d --- /dev/null +++ b/src/versions/v2/models/prices-array.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface PricesArray +*/ +export interface PricesArray { + /** + * Array of objects, each containing: product_id (number), currency (string), price (number), cost (number), direct_cost (number | null), notes (string) + * @type {Array} + */ + 'prices'?: Array; +} + diff --git a/src/versions/v2/models/product-request.ts b/src/versions/v2/models/product-request.ts new file mode 100644 index 00000000..5f380143 --- /dev/null +++ b/src/versions/v2/models/product-request.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface ProductRequest +*/ +export interface ProductRequest { + /** + * The product code + * @type {string} + */ + 'code'?: string; + /** + * The product description + * @type {string} + */ + 'description'?: string; + /** + * The unit in which this product is sold + * @type {string} + */ + 'unit'?: string; + /** + * The tax percentage + * @type {number} + */ + 'tax'?: number; + /** + * The category of the product + * @type {number} + */ + 'category'?: number; + /** + * The ID of the user who will be marked as the owner of this product. When omitted, the authorized user ID will be used + * @type {number} + */ + 'owner_id'?: number; + /** + * Whether this product can be added to a deal or not + * @type {boolean} + */ + 'is_linkable'?: boolean; + /** + * + * @type {number} + */ + 'visible_to'?: ProductRequestVisibleToConst; + /** + * An array of objects, each containing: `currency` (string), `price` (number), `cost` (number, optional), `direct_cost` (number, optional). Note that there can only be one price per product per currency. When `prices` is omitted altogether, a default price of 0 and the user\'s default currency will be assigned. + * @type {Array} + */ + 'prices'?: Array; +} + + export const ProductRequestVisibleToConst = { + NUMBER_1: 1, + NUMBER_3: 3, + NUMBER_5: 5, + NUMBER_7: 7 + } as const; + + export type ProductRequestVisibleToConst = typeof ProductRequestVisibleToConst[keyof typeof ProductRequestVisibleToConst]; + + diff --git a/src/versions/v2/models/stage-item.ts b/src/versions/v2/models/stage-item.ts new file mode 100644 index 00000000..c58eef1c --- /dev/null +++ b/src/versions/v2/models/stage-item.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface StageItem +*/ +export interface StageItem { + /** + * The ID of the stage + * @type {number} + */ + 'id'?: number; + /** + * Defines the order of the stage + * @type {number} + */ + 'order_nr'?: number; + /** + * The name of the stage + * @type {string} + */ + 'name'?: string; + /** + * Whether the stage is marked as deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The success probability percentage of the deal. Used/shown when the deal weighted values are used. + * @type {number} + */ + 'deal_probability'?: number; + /** + * The ID of the pipeline to add the stage to + * @type {number} + */ + 'pipeline_id'?: number; + /** + * Whether deals in this stage can become rotten + * @type {boolean} + */ + 'is_deal_rot_enabled'?: boolean; + /** + * The number of days the deals not updated in this stage would become rotten. Applies only if the `is_deal_rot_enabled` is set. + * @type {number} + */ + 'days_to_rotten'?: number | null; + /** + * The stage creation time + * @type {string} + */ + 'add_time'?: string; + /** + * The stage update time + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v2/models/stage.ts b/src/versions/v2/models/stage.ts new file mode 100644 index 00000000..1626248e --- /dev/null +++ b/src/versions/v2/models/stage.ts @@ -0,0 +1,74 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The stage object +* @export +* @interface Stage +*/ +export interface Stage { + /** + * The ID of the stage + * @type {number} + */ + 'id'?: number; + /** + * Defines the order of the stage + * @type {number} + */ + 'order_nr'?: number; + /** + * The name of the stage + * @type {string} + */ + 'name'?: string; + /** + * Whether the stage is marked as deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The success probability percentage of the deal. Used/shown when the deal weighted values are used. + * @type {number} + */ + 'deal_probability'?: number; + /** + * The ID of the pipeline to add the stage to + * @type {number} + */ + 'pipeline_id'?: number; + /** + * Whether deals in this stage can become rotten + * @type {boolean} + */ + 'is_deal_rot_enabled'?: boolean; + /** + * The number of days the deals not updated in this stage would become rotten. Applies only if the `is_deal_rot_enabled` is set. + * @type {number} + */ + 'days_to_rotten'?: number | null; + /** + * The stage creation time + * @type {string} + */ + 'add_time'?: string; + /** + * The stage update time + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v2/models/update-additional-discount-request-body.ts b/src/versions/v2/models/update-additional-discount-request-body.ts new file mode 100644 index 00000000..41699dab --- /dev/null +++ b/src/versions/v2/models/update-additional-discount-request-body.ts @@ -0,0 +1,47 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateAdditionalDiscountRequestBody +*/ +export interface UpdateAdditionalDiscountRequestBody { + /** + * The name of the discount. + * @type {string} + */ + 'description'?: string; + /** + * The discount amount. Must be a positive number (excluding 0). + * @type {number} + */ + 'amount'?: number; + /** + * Determines whether the discount is applied as a percentage or a fixed amount. + * @type {string} + */ + 'type'?: UpdateAdditionalDiscountRequestBodyTypeConst; +} + + export const UpdateAdditionalDiscountRequestBodyTypeConst = { + percentage: 'percentage', + amount: 'amount' + } as const; + + export type UpdateAdditionalDiscountRequestBodyTypeConst = typeof UpdateAdditionalDiscountRequestBodyTypeConst[keyof typeof UpdateAdditionalDiscountRequestBodyTypeConst]; + + diff --git a/src/versions/v2/models/update-additional-discount-response.ts b/src/versions/v2/models/update-additional-discount-response.ts new file mode 100644 index 00000000..d1e2b83e --- /dev/null +++ b/src/versions/v2/models/update-additional-discount-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetAdditionalDiscountsResponseDataInner } from './get-additional-discounts-response-data-inner'; + +/** +* +* @export +* @interface UpdateAdditionalDiscountResponse +*/ +export interface UpdateAdditionalDiscountResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetAdditionalDiscountsResponseDataInner} + */ + 'data'?: GetAdditionalDiscountsResponseDataInner; +} + diff --git a/src/versions/v2/models/update-deal-product-request-all-of.ts b/src/versions/v2/models/update-deal-product-request-all-of.ts new file mode 100644 index 00000000..2d9b343c --- /dev/null +++ b/src/versions/v2/models/update-deal-product-request-all-of.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateDealProductRequestAllOf +*/ +export interface UpdateDealProductRequestAllOf { + /** + * Only available in Advanced and above plans How often a customer is billed for access to a service or product To set `billing_frequency` different than `one-time`, the deal must not have installments associated A deal can have up to 20 products attached with `billing_frequency` different than `one-time` + * @type {string} + */ + 'billing_frequency'?: UpdateDealProductRequestAllOfBillingFrequencyConst; +} + + export const UpdateDealProductRequestAllOfBillingFrequencyConst = { + one_time: 'one-time', + annually: 'annually', + semi_annually: 'semi-annually', + quarterly: 'quarterly', + monthly: 'monthly', + weekly: 'weekly' + } as const; + + export type UpdateDealProductRequestAllOfBillingFrequencyConst = typeof UpdateDealProductRequestAllOfBillingFrequencyConst[keyof typeof UpdateDealProductRequestAllOfBillingFrequencyConst]; + + diff --git a/src/versions/v2/models/update-deal-product-request.ts b/src/versions/v2/models/update-deal-product-request.ts new file mode 100644 index 00000000..75fbb71b --- /dev/null +++ b/src/versions/v2/models/update-deal-product-request.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealProductRequestBody1 } from './deal-product-request-body1'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-response-data-inner-all-of2'; +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf3 } from './get-deals-products-response-data-inner-all-of3'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateDealProductRequestAllOf } from './update-deal-product-request-all-of'; + +/** + * @type UpdateDealProductRequest + * @export + */ +export type UpdateDealProductRequest = DealProductRequestBody1 & GetDealsProductsResponseDataInnerAllOf2 & GetDealsProductsResponseDataInnerAllOf3 & UpdateDealProductRequestAllOf; + + diff --git a/src/versions/v2/models/update-deal-request.ts b/src/versions/v2/models/update-deal-request.ts new file mode 100644 index 00000000..fe669b68 --- /dev/null +++ b/src/versions/v2/models/update-deal-request.ts @@ -0,0 +1,129 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateDealRequest +*/ +export interface UpdateDealRequest { + /** + * The title of the deal + * @type {string} + */ + 'title'?: string; + /** + * The ID of the user who owns the deal + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the person linked to the deal + * @type {number} + */ + 'person_id'?: number; + /** + * The ID of the organization linked to the deal + * @type {number} + */ + 'org_id'?: number; + /** + * The ID of the pipeline associated with the deal + * @type {number} + */ + 'pipeline_id'?: number; + /** + * The ID of the deal stage + * @type {number} + */ + 'stage_id'?: number; + /** + * The value of the deal + * @type {number} + */ + 'value'?: number; + /** + * The currency associated with the deal + * @type {string} + */ + 'currency'?: string; + /** + * The creation date and time of the deal + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the deal + * @type {string} + */ + 'update_time'?: string; + /** + * The last updated date and time of the deal stage + * @type {string} + */ + 'stage_change_time'?: string; + /** + * Whether the deal is deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The status of the deal + * @type {string} + */ + 'status'?: string; + /** + * The success probability percentage of the deal + * @type {number} + */ + 'probability'?: number | null; + /** + * The reason for losing the deal. Can only be set if deal status is lost. + * @type {string} + */ + 'lost_reason'?: string | null; + /** + * The visibility of the deal + * @type {number} + */ + 'visible_to'?: number; + /** + * The date and time of closing the deal. Can only be set if deal status is won or lost. + * @type {string} + */ + 'close_time'?: string | null; + /** + * The date and time of changing the deal status as won. Can only be set if deal status is won. + * @type {string} + */ + 'won_time'?: string; + /** + * The date and time of changing the deal status as lost. Can only be set if deal status is lost. + * @type {string} + */ + 'lost_time'?: string; + /** + * The expected close date of the deal + * @type {string} + */ + 'expected_close_date'?: string; + /** + * The IDs of labels assigned to the deal + * @type {Array} + */ + 'label_ids'?: Array; +} + diff --git a/src/versions/v2/models/update-organization-request.ts b/src/versions/v2/models/update-organization-request.ts new file mode 100644 index 00000000..5bea52e1 --- /dev/null +++ b/src/versions/v2/models/update-organization-request.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateOrganizationRequest +*/ +export interface UpdateOrganizationRequest { + /** + * The name of the organization + * @type {string} + */ + 'name'?: string; + /** + * The ID of the user who owns the organization + * @type {number} + */ + 'owner_id'?: number; + /** + * The creation date and time of the organization + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the organization + * @type {string} + */ + 'update_time'?: string; + /** + * The visibility of the organization + * @type {number} + */ + 'visible_to'?: number; + /** + * The IDs of labels assigned to the organization + * @type {Array} + */ + 'label_ids'?: Array; +} + diff --git a/src/versions/v2/models/update-person-request.ts b/src/versions/v2/models/update-person-request.ts new file mode 100644 index 00000000..327d6b54 --- /dev/null +++ b/src/versions/v2/models/update-person-request.ts @@ -0,0 +1,75 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { AddPersonRequestEmailsInner } from './add-person-request-emails-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { AddPersonRequestPhonesInner } from './add-person-request-phones-inner'; + +/** +* +* @export +* @interface UpdatePersonRequest +*/ +export interface UpdatePersonRequest { + /** + * The name of the person + * @type {string} + */ + 'name'?: string; + /** + * The ID of the user who owns the person + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the organization linked to the person + * @type {number} + */ + 'org_id'?: number; + /** + * The creation date and time of the person + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the person + * @type {string} + */ + 'update_time'?: string; + /** + * The emails of the person + * @type {Array} + */ + 'emails'?: Array; + /** + * The phones of the person + * @type {Array} + */ + 'phones'?: Array; + /** + * The visibility of the person + * @type {number} + */ + 'visible_to'?: number; + /** + * The IDs of labels assigned to the person + * @type {Array} + */ + 'label_ids'?: Array; +} + diff --git a/src/versions/v2/models/update-pipeline-request.ts b/src/versions/v2/models/update-pipeline-request.ts new file mode 100644 index 00000000..0a1d868b --- /dev/null +++ b/src/versions/v2/models/update-pipeline-request.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdatePipelineRequest +*/ +export interface UpdatePipelineRequest { + /** + * The name of the pipeline + * @type {string} + */ + 'name'?: string; + /** + * Whether deal probability is disabled or enabled for this pipeline + * @type {boolean} + */ + 'is_deal_probability_enabled'?: boolean; +} + diff --git a/src/versions/v2/models/update-product-request-all-of.ts b/src/versions/v2/models/update-product-request-all-of.ts new file mode 100644 index 00000000..b3a568e8 --- /dev/null +++ b/src/versions/v2/models/update-product-request-all-of.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateProductRequestAllOf +*/ +export interface UpdateProductRequestAllOf { + /** + * The name of the product. Cannot be an empty string + * @type {string} + */ + 'name'?: string; +} + diff --git a/src/versions/v2/models/update-product-request-all-of1.ts b/src/versions/v2/models/update-product-request-all-of1.ts new file mode 100644 index 00000000..972cbfc9 --- /dev/null +++ b/src/versions/v2/models/update-product-request-all-of1.ts @@ -0,0 +1,41 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateProductRequestAllOf1 +*/ +export interface UpdateProductRequestAllOf1 { + /** + * Only available in Advanced and above plans How often a customer is billed for access to a service or product + * @type {string} + */ + 'billing_frequency'?: UpdateProductRequestAllOf1BillingFrequencyConst; +} + + export const UpdateProductRequestAllOf1BillingFrequencyConst = { + one_time: 'one-time', + annually: 'annually', + semi_annually: 'semi-annually', + quarterly: 'quarterly', + monthly: 'monthly', + weekly: 'weekly' + } as const; + + export type UpdateProductRequestAllOf1BillingFrequencyConst = typeof UpdateProductRequestAllOf1BillingFrequencyConst[keyof typeof UpdateProductRequestAllOf1BillingFrequencyConst]; + + diff --git a/src/versions/v2/models/update-product-request.ts b/src/versions/v2/models/update-product-request.ts new file mode 100644 index 00000000..6754477c --- /dev/null +++ b/src/versions/v2/models/update-product-request.ts @@ -0,0 +1,35 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetDealsProductsResponseDataInnerAllOf2 } from './get-deals-products-response-data-inner-all-of2'; +// May contain unused imports in some cases +// @ts-ignore +import { ProductRequest } from './product-request'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateProductRequestAllOf } from './update-product-request-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { UpdateProductRequestAllOf1 } from './update-product-request-all-of1'; + +/** + * @type UpdateProductRequest + * @export + */ +export type UpdateProductRequest = GetDealsProductsResponseDataInnerAllOf2 & ProductRequest & UpdateProductRequestAllOf & UpdateProductRequestAllOf1; + + diff --git a/src/versions/v2/models/update-product-response.ts b/src/versions/v2/models/update-product-response.ts new file mode 100644 index 00000000..f17b03e5 --- /dev/null +++ b/src/versions/v2/models/update-product-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetProductResponseData } from './get-product-response-data'; + +/** +* +* @export +* @interface UpdateProductResponse +*/ +export interface UpdateProductResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {GetProductResponseData} + */ + 'data'?: GetProductResponseData; +} + diff --git a/src/versions/v2/models/update-product-variation-request.ts b/src/versions/v2/models/update-product-variation-request.ts new file mode 100644 index 00000000..2d68dc9c --- /dev/null +++ b/src/versions/v2/models/update-product-variation-request.ts @@ -0,0 +1,34 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateProductVariationRequest +*/ +export interface UpdateProductVariationRequest { + /** + * The name of the product variation. The maximum length is 255 characters. + * @type {string} + */ + 'name'?: string; + /** + * Array of objects, each containing: currency (string), price (number), cost (number, optional), direct_cost (number, optional), notes (string, optional). When prices is omitted altogether, a default price of 0, a default cost of 0, a default direct_cost of 0 and the user\'s default currency will be assigned. + * @type {Array} + */ + 'prices'?: Array; +} + diff --git a/src/versions/v2/models/update-stage-request.ts b/src/versions/v2/models/update-stage-request.ts new file mode 100644 index 00000000..4ebc6254 --- /dev/null +++ b/src/versions/v2/models/update-stage-request.ts @@ -0,0 +1,49 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* +* @export +* @interface UpdateStageRequest +*/ +export interface UpdateStageRequest { + /** + * The name of the stage + * @type {string} + */ + 'name'?: string; + /** + * The ID of the pipeline to add stage to + * @type {number} + */ + 'pipeline_id'?: number; + /** + * The success probability percentage of the deal. Used/shown when deal weighted values are used. + * @type {number} + */ + 'deal_probability'?: number; + /** + * Whether deals in this stage can become rotten + * @type {boolean} + */ + 'is_deal_rot_enabled'?: boolean; + /** + * The number of days the deals not updated in this stage would become rotten. Applies only if the `is_deal_rot_enabled` is set. + * @type {number} + */ + 'days_to_rotten'?: number; +} + diff --git a/src/versions/v2/models/upsert-activity-response-data.ts b/src/versions/v2/models/upsert-activity-response-data.ts new file mode 100644 index 00000000..d6ea8f9e --- /dev/null +++ b/src/versions/v2/models/upsert-activity-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItem1 } from './activity-item1'; + +/** +* +* @export +* @interface UpsertActivityResponseData +*/ +export interface UpsertActivityResponseData { + /** + * + * @type {ActivityItem1} + */ + 'data'?: ActivityItem1; +} + diff --git a/src/versions/v2/models/upsert-activity-response.ts b/src/versions/v2/models/upsert-activity-response.ts new file mode 100644 index 00000000..cc7fd317 --- /dev/null +++ b/src/versions/v2/models/upsert-activity-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { ActivityItem1 } from './activity-item1'; +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { UpsertActivityResponseData } from './upsert-activity-response-data'; + +/** + * @type UpsertActivityResponse + * @export + */ +export type UpsertActivityResponse = BaseResponse & UpsertActivityResponseData; + + diff --git a/src/versions/v2/models/upsert-deal-response-data.ts b/src/versions/v2/models/upsert-deal-response-data.ts new file mode 100644 index 00000000..8ac73f4f --- /dev/null +++ b/src/versions/v2/models/upsert-deal-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { DealItem1 } from './deal-item1'; + +/** +* +* @export +* @interface UpsertDealResponseData +*/ +export interface UpsertDealResponseData { + /** + * + * @type {DealItem1} + */ + 'data'?: DealItem1; +} + diff --git a/src/versions/v2/models/upsert-deal-response.ts b/src/versions/v2/models/upsert-deal-response.ts new file mode 100644 index 00000000..5e095b49 --- /dev/null +++ b/src/versions/v2/models/upsert-deal-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { DealItem1 } from './deal-item1'; +// May contain unused imports in some cases +// @ts-ignore +import { UpsertDealResponseData } from './upsert-deal-response-data'; + +/** + * @type UpsertDealResponse + * @export + */ +export type UpsertDealResponse = BaseResponse & UpsertDealResponseData; + + diff --git a/src/versions/v2/models/upsert-organization-response-data.ts b/src/versions/v2/models/upsert-organization-response-data.ts new file mode 100644 index 00000000..77fe0447 --- /dev/null +++ b/src/versions/v2/models/upsert-organization-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationItem1 } from './organization-item1'; + +/** +* +* @export +* @interface UpsertOrganizationResponseData +*/ +export interface UpsertOrganizationResponseData { + /** + * + * @type {OrganizationItem1} + */ + 'data'?: OrganizationItem1; +} + diff --git a/src/versions/v2/models/upsert-organization-response.ts b/src/versions/v2/models/upsert-organization-response.ts new file mode 100644 index 00000000..f6c1a277 --- /dev/null +++ b/src/versions/v2/models/upsert-organization-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { OrganizationItem1 } from './organization-item1'; +// May contain unused imports in some cases +// @ts-ignore +import { UpsertOrganizationResponseData } from './upsert-organization-response-data'; + +/** + * @type UpsertOrganizationResponse + * @export + */ +export type UpsertOrganizationResponse = BaseResponse & UpsertOrganizationResponseData; + + diff --git a/src/versions/v2/models/upsert-person-response-data-data.ts b/src/versions/v2/models/upsert-person-response-data-data.ts new file mode 100644 index 00000000..7525841b --- /dev/null +++ b/src/versions/v2/models/upsert-person-response-data-data.ts @@ -0,0 +1,131 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfDataInnerEmailsInner } from './get-persons-response-all-of-data-inner-emails-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfDataInnerImInner } from './get-persons-response-all-of-data-inner-im-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfDataInnerPhonesInner } from './get-persons-response-all-of-data-inner-phones-inner'; +// May contain unused imports in some cases +// @ts-ignore +import { GetPersonsResponseAllOfDataInnerPostalAddress } from './get-persons-response-all-of-data-inner-postal-address'; + +/** +* The person object +* @export +* @interface UpsertPersonResponseDataData +*/ +export interface UpsertPersonResponseDataData { + /** + * The ID of the person + * @type {number} + */ + 'id'?: number; + /** + * The name of the person + * @type {string} + */ + 'name'?: string; + /** + * The first name of the person + * @type {string} + */ + 'first_name'?: string; + /** + * The last name of the person + * @type {string} + */ + 'last_name'?: string; + /** + * The ID of the user who owns the person + * @type {number} + */ + 'owner_id'?: number; + /** + * The ID of the organization linked to the person + * @type {number} + */ + 'org_id'?: number; + /** + * The creation date and time of the person + * @type {string} + */ + 'add_time'?: string; + /** + * The last updated date and time of the person + * @type {string} + */ + 'update_time'?: string; + /** + * The emails of the person + * @type {Array} + */ + 'emails'?: Array; + /** + * The phones of the person + * @type {Array} + */ + 'phones'?: Array; + /** + * Whether the person is deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * The visibility of the person + * @type {number} + */ + 'visible_to'?: number; + /** + * The IDs of labels assigned to the person + * @type {Array} + */ + 'label_ids'?: Array; + /** + * The ID of the picture associated with the person + * @type {number} + */ + 'picture_id'?: number; + /** + * + * @type {GetPersonsResponseAllOfDataInnerPostalAddress} + */ + 'postal_address'?: GetPersonsResponseAllOfDataInnerPostalAddress; + /** + * Contact sync notes of the person, maximum 10 000 characters, included if contact sync is enabled for the company + * @type {string} + */ + 'notes'?: string; + /** + * The instant messaging accounts of the person, included if contact sync is enabled for the company + * @type {Array} + */ + 'im'?: Array; + /** + * The birthday of the person, included if contact sync is enabled for the company + * @type {string} + */ + 'birthday'?: string; + /** + * The job title of the person, included if contact sync is enabled for the company + * @type {string} + */ + 'job_title'?: string; +} + diff --git a/src/versions/v2/models/upsert-person-response-data.ts b/src/versions/v2/models/upsert-person-response-data.ts new file mode 100644 index 00000000..1d4d83fd --- /dev/null +++ b/src/versions/v2/models/upsert-person-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UpsertPersonResponseDataData } from './upsert-person-response-data-data'; + +/** +* +* @export +* @interface UpsertPersonResponseData +*/ +export interface UpsertPersonResponseData { + /** + * + * @type {UpsertPersonResponseDataData} + */ + 'data'?: UpsertPersonResponseDataData; +} + diff --git a/src/versions/v2/models/upsert-person-response.ts b/src/versions/v2/models/upsert-person-response.ts new file mode 100644 index 00000000..7a94570e --- /dev/null +++ b/src/versions/v2/models/upsert-person-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { UpsertPersonResponseData } from './upsert-person-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { UpsertPersonResponseDataData } from './upsert-person-response-data-data'; + +/** + * @type UpsertPersonResponse + * @export + */ +export type UpsertPersonResponse = BaseResponse & UpsertPersonResponseData; + + diff --git a/src/versions/v2/models/upsert-pipeline-response-data-data.ts b/src/versions/v2/models/upsert-pipeline-response-data-data.ts new file mode 100644 index 00000000..09d0f666 --- /dev/null +++ b/src/versions/v2/models/upsert-pipeline-response-data-data.ts @@ -0,0 +1,64 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** +* The pipeline object +* @export +* @interface UpsertPipelineResponseDataData +*/ +export interface UpsertPipelineResponseDataData { + /** + * The ID of the pipeline + * @type {number} + */ + 'id'?: number; + /** + * The name of the pipeline + * @type {string} + */ + 'name'?: string; + /** + * Defines the order of pipelines. The pipeline with the lowest `order_nr` is considered the default. + * @type {number} + */ + 'order_nr'?: number; + /** + * Whether this pipeline is selected or not + * @type {boolean} + */ + 'is_selected'?: boolean; + /** + * Whether this pipeline is marked as deleted or not + * @type {boolean} + */ + 'is_deleted'?: boolean; + /** + * Whether deal probability is disabled or enabled for this pipeline + * @type {boolean} + */ + 'is_deal_probability_enabled'?: boolean; + /** + * The pipeline creation time + * @type {string} + */ + 'add_time'?: string; + /** + * The pipeline update time + * @type {string} + */ + 'update_time'?: string; +} + diff --git a/src/versions/v2/models/upsert-pipeline-response-data.ts b/src/versions/v2/models/upsert-pipeline-response-data.ts new file mode 100644 index 00000000..5180bd4d --- /dev/null +++ b/src/versions/v2/models/upsert-pipeline-response-data.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { UpsertPipelineResponseDataData } from './upsert-pipeline-response-data-data'; + +/** +* +* @export +* @interface UpsertPipelineResponseData +*/ +export interface UpsertPipelineResponseData { + /** + * + * @type {UpsertPipelineResponseDataData} + */ + 'data'?: UpsertPipelineResponseDataData; +} + diff --git a/src/versions/v2/models/upsert-pipeline-response.ts b/src/versions/v2/models/upsert-pipeline-response.ts new file mode 100644 index 00000000..e5132f09 --- /dev/null +++ b/src/versions/v2/models/upsert-pipeline-response.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { BaseResponse } from './base-response'; +// May contain unused imports in some cases +// @ts-ignore +import { UpsertPipelineResponseData } from './upsert-pipeline-response-data'; +// May contain unused imports in some cases +// @ts-ignore +import { UpsertPipelineResponseDataData } from './upsert-pipeline-response-data-data'; + +/** + * @type UpsertPipelineResponse + * @export + */ +export type UpsertPipelineResponse = BaseResponse & UpsertPipelineResponseData; + + diff --git a/src/versions/v2/models/upsert-stage-response.ts b/src/versions/v2/models/upsert-stage-response.ts new file mode 100644 index 00000000..9dd0306a --- /dev/null +++ b/src/versions/v2/models/upsert-stage-response.ts @@ -0,0 +1,37 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Pipedrive API v2 + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 2.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { Stage } from './stage'; + +/** +* +* @export +* @interface UpsertStageResponse +*/ +export interface UpsertStageResponse { + /** + * If the response is successful or not + * @type {boolean} + */ + 'success'?: boolean; + /** + * + * @type {Stage} + */ + 'data'?: Stage; +} + diff --git a/test/functional/CertificateAuthorityCertificate.pem b/test/config/CertificateAuthorityCertificate.pem similarity index 100% rename from test/functional/CertificateAuthorityCertificate.pem rename to test/config/CertificateAuthorityCertificate.pem diff --git a/test/functional/environment.js b/test/config/environment.js similarity index 100% rename from test/functional/environment.js rename to test/config/environment.js diff --git a/test/config/jest.config.js b/test/config/jest.config.js new file mode 100644 index 00000000..d5cbce53 --- /dev/null +++ b/test/config/jest.config.js @@ -0,0 +1,8 @@ +module.exports = { + rootDir: '../', + preset: 'ts-jest', + testEnvironment: 'node', + roots: ['/functional'], + testMatch: ['/functional/**/*.test.ts'], + setupFilesAfterEnv: ['/config/jest.setup.js'], +}; diff --git a/test/config/jest.setup.js b/test/config/jest.setup.js new file mode 100644 index 00000000..1674f77b --- /dev/null +++ b/test/config/jest.setup.js @@ -0,0 +1,3 @@ +require('regenerator-runtime'); + +jest.setTimeout(100000); diff --git a/test/functional/access-token.test.js b/test/functional/access-token.test.js deleted file mode 100644 index ca02248c..00000000 --- a/test/functional/access-token.test.js +++ /dev/null @@ -1,66 +0,0 @@ -import { getLib, getMockServer } from './utils'; - -const oauth2 = { - host: 'localhost', - clientId: 'fakeClientId', - clientSecret: 'fakeClientSecret', - redirectUri: 'https://example.org', -}; - -const server = getMockServer(oauth2); - -describe('oauth2 accessToken', () => { - let ApiClient; - - beforeAll(async () => { - const lib = await getLib(); - ApiClient = lib.ApiClient; - server.listen(); - }); - - afterEach(() => server.resetHandlers()); - afterAll(() => server.close()); - - it('should refresh accessToken with valid refreshToken', async () => { - const pdClient = new ApiClient(); - pdClient.authentications.oauth2 = { ...oauth2, refreshToken: 'fakeRefreshToken' }; - - const auth = await pdClient.refreshToken(); - - expect(auth).toMatchObject({ - access_token: 'freshAccessToken', - token_type: 'bearer', - refresh_token: 'freshRefreshToken', - scope: 'deals:full,users:full,1337', - expires_in: '3600', - api_domain: 'localhost', - }); - - expect(pdClient.authentications.oauth2.accessToken).toBe(auth.access_token); - expect(pdClient.authentications.oauth2.refreshToken).toBe(auth.refresh_token); - }); - - it('should throw if refreshToken is not set', async () => { - const pdClient = new ApiClient(); - pdClient.authentications.oauth2 = { ...oauth2 }; - - try { - expect(await pdClient.refreshToken()).toThrow(); - } catch (error) { - expect(error.message).toBe('OAuth 2 property refreshToken is not set.'); - } - }); - - it('should throw if wrong refresh token', async () => { - const pdClient = new ApiClient(); - pdClient.authentications.oauth2 = { ...oauth2, refreshToken: 'wrongRefreshToken' }; - - try { - expect(await pdClient.refreshToken()).toThrow(); - } catch (error) { - expect(error.context.error.text).toBe( - '{"success":"false","message":"Invalid grant: refresh token is invalid","error":"invalid_grant"}', - ); - } - }); -}); diff --git a/test/functional/authorisation.test.js b/test/functional/authorisation.test.js deleted file mode 100644 index d6589dec..00000000 --- a/test/functional/authorisation.test.js +++ /dev/null @@ -1,87 +0,0 @@ -import { getLib, getMockServer } from './utils'; - -const oauth2 = { - host: 'localhost', - clientId: 'fakeClientId', - clientSecret: 'fakeClientSecret', - redirectUri: 'https://example.org', -}; - -const server = getMockServer(oauth2); - -describe('oauth2 authorization', () => { - let ApiClient; - - beforeAll(async () => { - const lib = await getLib(); - ApiClient = lib.ApiClient; - server.listen(); - }); - - afterEach(() => server.resetHandlers()); - afterAll(() => server.close()); - - it('should authorize and save access and refresh tokens', async () => { - const pdClient = new ApiClient(); - pdClient.authentications.oauth2 = { ...oauth2 }; - const auth = await pdClient.authorize('fakeAuthCode'); - - expect(auth).toMatchObject({ - access_token: 'freshAccessToken', - token_type: 'bearer', - refresh_token: 'freshRefreshToken', - scope: 'deals:full,users:full,1337', - expires_in: '3600', - api_domain: 'localhost', - }); - - expect(pdClient.authentications.oauth2.accessToken).toBe(auth.access_token); - expect(pdClient.authentications.oauth2.refreshToken).toBe(auth.refresh_token); - }); - - it('should throw if clientId is not set', async () => { - const pdClient = new ApiClient(); - pdClient.authentications.oauth2 = { ...oauth2, clientId: null }; - - try { - expect(await pdClient.authorize('fakeAuthCode')).toThrow(); - } catch (error) { - expect(error.message).toBe('OAuth 2 property clientId is not set.'); - } - }); - - it('should throw if clientSecret is not set', async () => { - const pdClient = new ApiClient(); - pdClient.authentications.oauth2 = { ...oauth2, clientSecret: null }; - - try { - expect(await pdClient.authorize('fakeAuthCode')).toThrow(); - } catch (error) { - expect(error.message).toBe('OAuth 2 property clientSecret is not set.'); - } - }); - - it('should throw if redirectUri is not set', async () => { - const pdClient = new ApiClient(); - pdClient.authentications.oauth2 = { ...oauth2, redirectUri: null }; - - try { - expect(await pdClient.authorize('fakeAuthCode')).toThrow(); - } catch (error) { - expect(error.message).toBe('OAuth 2 property redirectUri is not set.'); - } - }); - - it('should throw if wrong auth_code', async () => { - const pdClient = new ApiClient(); - pdClient.authentications.oauth2 = { ...oauth2 }; - - try { - expect(await pdClient.authorize('wrongAuthCode')).toThrow(); - } catch (error) { - expect(error.context.error.text).toBe( - '{"success":"false","message":"Invalid grant: refresh token is invalid","error":"invalid_grant"}', - ); - } - }); -}); diff --git a/test/functional/automatic-token-refresh.test.js b/test/functional/automatic-token-refresh.test.js deleted file mode 100644 index b4500e32..00000000 --- a/test/functional/automatic-token-refresh.test.js +++ /dev/null @@ -1,84 +0,0 @@ -import { getLib, getMockServer } from './utils'; - -const oauth2 = { - type: 'oauth2', - host: 'localhost', - clientId: 'fakeClientId', - clientSecret: 'fakeClientSecret', - redirectUri: 'https://example.org', - accessToken: 'fakeAccessToken', - refreshToken: 'fakeRefreshToken', -}; - -const server = getMockServer(oauth2); - -describe('automatic token refresh in api calls', () => { - let lib; - let ApiClient; - let UsersApi; - - beforeAll(async () => { - lib = await getLib(); - ApiClient = lib.ApiClient; - UsersApi = lib.UsersApi; - server.listen(); - }); - - afterEach(() => server.resetHandlers()); - afterAll(() => server.close()); - - it('should refresh expired access token before making api call', async () => { - const pdClient = new ApiClient(); - pdClient.basePath = 'localhost/v1'; - pdClient.authentications.oauth2 = { ...oauth2, expiresAt: 100 }; - - const users = await new UsersApi(pdClient).getUsers(); - - expect(pdClient.authentications.oauth2.accessToken).toEqual('freshAccessToken'); - - expect(users).toEqual({ - success: true, - data: [ - { - id: 1, - name: 'John Doe', - }, - ], - }); - }); - - it('should throw if incorrect User-Agent request header in api call', async () => { - const pdClient = new ApiClient(); - pdClient.basePath = 'localhost/v1'; - pdClient.authentications.oauth2 = { ...oauth2 }; - pdClient.defaultHeaders = { - 'User-Agent': 'Wrong-User-Agent', - }; - - try { - expect(await new UsersApi(pdClient).getUsers()).toThrow(); - } catch (error) { - expect(error.errorCode).toEqual(400); - } - }); - - it('should refresh token and retry api call if status code is 401', async () => { - const pdClient = new ApiClient(); - pdClient.basePath = 'localhost/v1'; - pdClient.authentications.oauth2 = { ...oauth2 }; - - const users = await new UsersApi(pdClient).getUsers(); - - expect(pdClient.authentications.oauth2.accessToken).toEqual('freshAccessToken'); - - expect(users).toEqual({ - success: true, - data: [ - { - id: 1, - name: 'John Doe', - }, - ], - }); - }); -}); diff --git a/test/functional/constants.ts b/test/functional/constants.ts new file mode 100644 index 00000000..810a52c5 --- /dev/null +++ b/test/functional/constants.ts @@ -0,0 +1,13 @@ + +export const oauth2Config = { + host: 'http://localhost', + clientId: 'fakeClientId', + clientSecret: 'fakeClientSecret', + redirectUri: 'https://example.org', +}; + +export type Resolves = T | Record; + +export type DeepPartial = { + [P in keyof T]?: T[P] extends object ? DeepPartial : T[P]; +}; diff --git a/test/functional/jest.config.js b/test/functional/jest.config.js deleted file mode 100644 index cc339023..00000000 --- a/test/functional/jest.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - rootDir: '../', - roots: ['/functional'], - testMatch: ['/functional/**/*.test.js'], - setupFilesAfterEnv: ['/functional/jest.setup.js'], -}; diff --git a/test/functional/jest.setup.js b/test/functional/jest.setup.js deleted file mode 100644 index 168da32c..00000000 --- a/test/functional/jest.setup.js +++ /dev/null @@ -1,3 +0,0 @@ -require("regenerator-runtime"); - -jest.setTimeout(100000); diff --git a/test/functional/oauth/access-token.test.ts b/test/functional/oauth/access-token.test.ts new file mode 100644 index 00000000..67debe12 --- /dev/null +++ b/test/functional/oauth/access-token.test.ts @@ -0,0 +1,81 @@ +import { OauthApiMock } from '../stubs'; +import { OAuth2Configuration ,TokenResponse} from '../../../dist/versions/v1'; + +const oauth2 = { + host: 'http://localhost', + clientId: 'fakeClientId', + clientSecret: 'fakeClientSecret', + redirectUri: 'https://example.org', +}; + +describe('OAuth2 accessToken', () => { + let oauth2Mock: OauthApiMock; + + beforeAll(() => { + oauth2Mock = new OauthApiMock(); + }); + afterEach(() => oauth2Mock.cleanAll()); + + it('should refresh accessToken with valid refreshToken', async () => { + const configuration = new OAuth2Configuration(oauth2); + configuration.updateToken({ refresh_token: 'fakeRefreshToken' } as TokenResponse); + + oauth2Mock.refresh({ + access_token: 'freshAccessToken', + api_domain: 'localhost', + expires_in: '3600', + refresh_token: 'freshRefreshToken', + scope: 'deals:full,users:full,1337', + token_type: 'bearer', + }, 200); + + const auth = await configuration.tokenRefresh(); + + expect(auth).toMatchObject({ + access_token: 'freshAccessToken', + token_type: 'bearer', + refresh_token: 'freshRefreshToken', + scope: 'deals:full,users:full,1337', + expires_in: '3600', + api_domain: 'localhost', + }); + + const accessToken = await configuration.getAccessToken(); + expect(accessToken).toBe(auth.access_token); + }); + + it('should throw if refreshToken is not set', async () => { + const configuration = new OAuth2Configuration(oauth2); + + oauth2Mock.refresh({ + success: false, + message: 'Invalid grant: refresh token is invalid', + error: 'invalid_grant', + }, 400); + + try { + expect(await configuration.tokenRefresh()).toThrow(); + } catch (error) { + expect(error.message).toBe('Invalid grant: refresh token is invalid'); + } + }); + + it('should throw if wrong refresh token', async () => { + const configuration = new OAuth2Configuration(oauth2); + configuration.updateToken({ refresh_token: 'wrongRefreshToken' } as TokenResponse); + + oauth2Mock.refresh({ + success: false, + message: 'Invalid grant: refresh token is invalid', + error: 'invalid_grant', + }, 400); + + try { + expect(await configuration.tokenRefresh()).toThrow(); + } catch (error) { + expect(error).toEqual( + { success: false, message: 'Invalid grant: refresh token is invalid', error: 'invalid_grant' }, + ); + } + }); +}); \ No newline at end of file diff --git a/test/functional/oauth/authorisation.test.ts b/test/functional/oauth/authorisation.test.ts new file mode 100644 index 00000000..146f030b --- /dev/null +++ b/test/functional/oauth/authorisation.test.ts @@ -0,0 +1,105 @@ +import { OauthApiMock } from '../stubs'; + +import { OAuth2Configuration,TokenResponse } from '../../../dist/versions/v1'; + +const oauth2 = { + host: 'http://localhost', + clientId: 'fakeClientId', + clientSecret: 'fakeClientSecret', + redirectUri: 'https://example.org', +}; + +describe('OAuth2 Authorization', () => { + let oauth2Mock: OauthApiMock; + + beforeAll(() => { + oauth2Mock = new OauthApiMock(); + }); + + afterEach(() => oauth2Mock.cleanAll()); + + it('should authorize and save access and refresh tokens', async () => { + const oauthClient = new OAuth2Configuration(oauth2); + + oauthClient.updateToken({ + refresh_token: 'fakeRefreshToken', + } as TokenResponse); + + oauth2Mock.refresh({ + access_token: 'freshAccessToken', + api_domain: 'localhost', + expires_in: '3600', + refresh_token: 'freshRefreshToken', + scope: 'deals:full,users:full,1337', + token_type: 'bearer', + }, 200); + + const auth = await oauthClient.authorize('fakeAuthCode'); + + expect(auth).toMatchObject({ + access_token: 'freshAccessToken', + token_type: 'bearer', + refresh_token: 'freshRefreshToken', + scope: 'deals:full,users:full,1337', + expires_in: '3600', + api_domain: 'localhost', + }); + const accessToken = await oauthClient.getAccessToken(); + expect(accessToken).toEqual(auth.access_token); + }); + + it('should throw if clientId is not set', async () => { + try { + new OAuth2Configuration({ + host: 'localhost', + clientSecret: 'fakeClientSecret', + redirectUri: 'https://example.org', + clientId: undefined, + }); + } catch (error) { + expect(error).toEqual(new Error('OAuth 2 property clientId is not set.')); + } + }); + + it('should throw if clientSecret is not set', async () => { + try { + new OAuth2Configuration({ + ...oauth2, + clientSecret: undefined, + }); + } catch (error) { + expect(error).toEqual(new Error('OAuth 2 property clientSecret is not set.')); + } + }); + + it('should throw if redirectUri is not set', async () => { + try { + new OAuth2Configuration({ + ...oauth2, + redirectUri: undefined, + + }); + } catch (error) { + expect(error).toEqual(new Error('OAuth 2 property redirectUri is not set.')); + } + }); + + it('should throw if wrong auth_code', async () => { + const oauthClient = new OAuth2Configuration(oauth2); + + oauthClient.updateToken({ + refresh_token: 'fakeRefreshToken', + } as TokenResponse); + + oauth2Mock.refresh({ + success: false, message: 'Invalid grant: refresh token is invalid', error: 'invalid_grant', + }, 400); + try { + expect(await oauthClient.authorize('wrongAuthCode')).toThrow(); + } catch (error) { + expect(error).toEqual( + { success: false, message: 'Invalid grant: refresh token is invalid', error: 'invalid_grant' }, + ); + } + }); +}); diff --git a/test/functional/oauth/automatic-token-refresh.test.ts b/test/functional/oauth/automatic-token-refresh.test.ts new file mode 100644 index 00000000..5451fe89 --- /dev/null +++ b/test/functional/oauth/automatic-token-refresh.test.ts @@ -0,0 +1,78 @@ +import { OauthApiMock, ApiMock } from '../stubs'; +import { OAuth2Configuration, Configuration, UsersApi, Parameters } from '../../../dist/versions/v1'; + +const oauthConfig : Parameters = { + host: 'http://localhost', + clientId: 'fakeClientId', + clientSecret: 'fakeClientSecret', + redirectUri: 'https://example.org', +}; + +describe('Automatic token refresh in api calls', () => { + let oauth2Mock: OauthApiMock; + let usersMock: ApiMock; + beforeAll(() => { + oauth2Mock = new OauthApiMock(); + usersMock = new ApiMock({ + basePath: '/api/v1/users', + }); + }); + + afterEach(() => oauth2Mock.cleanAll()); + + it('should refresh expired access token before making api call', async () => { + const oauthClient = new OAuth2Configuration(oauthConfig); + + oauthClient.updateToken({ + refresh_token: 'freshAccessToken', + expires_in: 100, + token_type: 'bearer', + scope: 'deals:full,users:full,1337', + api_domain: 'http://localhost', + access_token: 'freshAccessToken', + }); + + oauth2Mock.refresh({ + access_token: 'freshAccessToken', + api_domain: 'http://localhost', + expires_in: '3600', + refresh_token: 'freshRefreshToken', + scope: 'deals:full,users:full,1337', + token_type: 'bearer', + }, 200); + + usersMock.get({ + url: '', + response: { + success: true, + data: [ + { + id: 1, + name: 'John Doe', + }, + ], + }, + status: 200, + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + + const users = await new UsersApi(apiConfig).getUsers(); + const accessToken = await oauthClient.getAccessToken(); + + expect(accessToken).toEqual('freshAccessToken'); + + expect(users).toEqual({ + success: true, + data: [ + { + id: 1, + name: 'John Doe', + }, + ], + }); + }); +}); diff --git a/test/functional/stubs/api.stub.ts b/test/functional/stubs/api.stub.ts new file mode 100644 index 00000000..f9c9f12e --- /dev/null +++ b/test/functional/stubs/api.stub.ts @@ -0,0 +1,43 @@ +import nock from 'nock'; + +type Params = { url: string, response: T, status: number, query? : boolean | Record }; + +export class ApiMock { + public api: nock.Scope; + private readonly basePath: string; + + constructor(config: { basePath :string, host?: string }) { + const host = config.host || 'http://localhost'; + this.api = nock(host); + this.basePath = config.basePath || ''; + } + + public get({ url, status, response, query } : Params) { + const apiCall = this.api.get(`${this.basePath}${url}`); + return query ? apiCall.query(query).reply(status, response) : apiCall.reply(status, response); + } + + public post({ url, status, response } : Params) { + return this.api.post(`${this.basePath}${url}`).reply(status, response); + } + + public put({ url, status, response } : Params) { + return this.api.put(`${this.basePath}${url}`).reply(status, response); + } + + public delete({ url, status, response } : Params) { + return this.api.delete(`${this.basePath}${url}`).reply(status, response); + } + + public patch({ url, status, response } : Params) { + return this.api.patch(`${this.basePath}${url}`).reply(status, response); + } + + public cleanAll() { + nock.cleanAll(); + } + + public restore() { + nock.restore(); + } +} \ No newline at end of file diff --git a/test/functional/stubs/index.ts b/test/functional/stubs/index.ts new file mode 100644 index 00000000..5ed93c87 --- /dev/null +++ b/test/functional/stubs/index.ts @@ -0,0 +1,2 @@ +export * from './oauth.stub'; +export * from './api.stub'; diff --git a/test/functional/stubs/oauth.stub.ts b/test/functional/stubs/oauth.stub.ts new file mode 100644 index 00000000..4e140ec6 --- /dev/null +++ b/test/functional/stubs/oauth.stub.ts @@ -0,0 +1,15 @@ +import { Resolves } from '../constants'; +import { ApiMock } from './api.stub'; + +export class OauthApiMock extends ApiMock { + constructor() { + super({ + basePath: '/oauth', + }); + } + + public refresh(resolves: Resolves, status = 200) { + return this.api.post('/oauth/token').reply(status, resolves); + } +} + diff --git a/test/functional/utils.js b/test/functional/utils.js deleted file mode 100644 index 57735550..00000000 --- a/test/functional/utils.js +++ /dev/null @@ -1,99 +0,0 @@ -import { rest } from 'msw'; -import { setupServer } from 'msw/node'; -import { version } from '../../package.json'; - -export const getLib = async () => await import(process.env.AUTOMATION ? '../../dist' : '../../src'); - -export const getMockServer = (oauth2) => { - const base64ClientIdAndSecret = Buffer.from(`${oauth2.clientId}:${oauth2.clientSecret}`).toString('base64'); - - return setupServer( - rest.post('/oauth/token', async (req, res, ctx) => { - const body = await req.text(); - const auth = req.headers.get('authorization'); - const ua = req.headers.get('User-Agent'); - - if (auth !== `Basic ${base64ClientIdAndSecret}`) { - return res( - ctx.status(401), - ctx.json({ - success: 'false', - message: 'Invalid header: Authorization header is invalid', - error: 'invalid_header', - }), - ); - } - - if (ua !== `Pipedrive-SDK-Javascript-${version}`) { - return res( - ctx.status(400), - ctx.json({ - success: 'false', - message: 'Invalid header: User-Agent header is invalid', - error: 'invalid_header', - }), - ); - } - - if ( - body === 'refresh_token=fakeRefreshToken&grant_type=refresh_token' || - body === 'refresh_token=freshRefreshToken&grant_type=refresh_token' || - body === 'code=fakeAuthCode&redirect_uri=https://example.org&grant_type=authorization_code' - ) { - return res( - ctx.status(200), - ctx.json({ - access_token: 'freshAccessToken', - token_type: 'bearer', - refresh_token: 'freshRefreshToken', - scope: 'deals:full,users:full,1337', - expires_in: '3600', - api_domain: 'localhost', - }), - ); - } - - return res( - ctx.status(400), - ctx.json({ - success: 'false', - message: 'Invalid grant: refresh token is invalid', - error: 'invalid_grant', - }), - ); - }), - rest.get('*/v1/users', async (req, res, ctx) => { - const auth = req.headers.get('authorization'); - const ua = req.headers.get('User-Agent'); - - if (ua !== `Pipedrive-SDK-Javascript-${version}`) { - return res( - ctx.status(400), - ctx.json({ - success: 'false', - message: 'Invalid header: User-Agent header is invalid', - error: 'invalid_header', - }), - ); - } - - // for simulating retry - if (auth === 'Bearer fakeAccessToken') { - return res(ctx.status(401)); - } - - return res( - ctx.status(200), - ctx.json({ - success: true, - data: [ - { - id: 1, - name: 'John Doe', - }, - ], - }), - ); - }), - ); -}; diff --git a/test/functional/v1/activities.test.ts b/test/functional/v1/activities.test.ts new file mode 100644 index 00000000..aaedb8b3 --- /dev/null +++ b/test/functional/v1/activities.test.ts @@ -0,0 +1,163 @@ +import { + Configuration, + ActivitiesApi, + GetActivityResponse, + GetActivitiesResponse, + UpdateActivityRequest, + OAuth2Configuration, +} from '../../../dist/versions/v1'; +import { DeepPartial, oauth2Config } from '../constants'; +import { ApiMock } from '../stubs'; + +describe('v1/activities', () => { + let oauthClient: OAuth2Configuration; + let activitiesApi: ActivitiesApi; + + let mock: ApiMock; + + beforeAll(async () => { + mock = new ApiMock({ + basePath: '/v1/activities', + host: 'http://localhost/api', + }); + }); + + afterAll(async () => { + mock.restore(); + }); + + beforeEach(async () => { + mock.cleanAll(); + oauthClient = new OAuth2Configuration(oauth2Config); + + oauthClient.updateToken({ + refresh_token: 'freshAccessToken', + expires_in: 100, + token_type: 'bearer', + scope: 'activities:full,users:full,1337', + api_domain: null, + access_token: 'freshAccessToken', + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + activitiesApi = new ActivitiesApi(apiConfig); + }); + + test('should get activities', async () => { + const response: DeepPartial = { + success: true, + data: [ + { + id: 1, + deal_id: 1, + note: 'Activity 1', + }, + { + id: 2, + note: 'Activity 1', + }, + ], + }; + + mock.get({ + url: '', + response, + status: 200, + }); + + const activities = await activitiesApi.getActivities(); + + expect(activities).toEqual(response); + }); + + test('should create an activity', async () => { + const response: DeepPartial = { + success: true, + data: { + id: 2, + note: 'New Activity', + }, + }; + + mock.post({ + url: '', + response, + status: 201, + + }); + + const createdActivity = await activitiesApi.addActivity({ + AddActivityRequest: { + note: 'New Activity', + deal_id: 1, + }, + }); + + expect(createdActivity).toEqual(response); + }); + + test('should get an activity by id', async () => { + const response: DeepPartial = { + success: true, + data: { + id: 2, + note: 'New Activity', + person_id: 1, + }, + }; + mock.get({ + url: '/2', + response, + status: 200, + }); + + const activity = await activitiesApi.getActivity({ + id: 2, + }); + + expect(activity).toEqual(response); + }); + + test('should update an activity', async () => { + const response: DeepPartial = { + success: true, + data: { + id: 2, + note: 'Updated Activity', + }, + }; + const payload: UpdateActivityRequest = { + note: 'Updated Activity', + }; + + mock.put({ + url: '/2', + response, + status: 200, + }); + + const updatedActivity = await activitiesApi.updateActivity({ + id: 2, + UpdateActivityRequest: payload, + }); + + expect(updatedActivity).toEqual(response); + }); + + test('should delete an activity', async () => { + const response = { success: true }; + + mock.delete({ + url: '/2', + response, + status: 200, + }); + + const deleteResponse = await activitiesApi.deleteActivity({ id: 2 }); + + expect(deleteResponse).toEqual(response); + }); +}); \ No newline at end of file diff --git a/test/functional/v1/deal.test.ts b/test/functional/v1/deal.test.ts new file mode 100644 index 00000000..fe596b98 --- /dev/null +++ b/test/functional/v1/deal.test.ts @@ -0,0 +1,179 @@ +import { + Configuration, + DealsApi, + OAuth2Configuration, + GetAddedDealResponse, GetDealResponse, GetDealsResponse, UpdateDealRequest, +} from '../../../dist/versions/v1'; +import { oauth2Config } from '../constants'; +import { ApiMock } from '../stubs'; + +describe('v1/deals', () => { + let oauthClient: OAuth2Configuration; + let dealsApi: DealsApi; + let mock : ApiMock; + + beforeAll(async () => { + mock = new ApiMock({ + basePath: '/v1/deals', + host: 'http://localhost/api', + }); + mock.cleanAll(); + }); + + afterAll(async () => { + mock.restore(); + }); + + beforeEach(async () => { + mock.cleanAll(); + + oauthClient = new OAuth2Configuration(oauth2Config); + + oauthClient.updateToken({ + refresh_token: 'freshAccessToken', + expires_in: 100, + token_type: 'bearer', + scope: 'deals:full,users:full,1337', + api_domain: 'http://localhost', + access_token: 'freshAccessToken', + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + dealsApi = new DealsApi(apiConfig); + }); + + test('should get deals', async () => { + const response: GetDealsResponse = { + success: true, + data: [ + { + id: 1, + title: 'Deal 1', + value: 1000, + }, + ], + }; + + mock.get({ + url: '', + response, + status: 200, + }); + + const deals = await dealsApi.getDeals(); + + expect(deals).toEqual(response); + }); + + test('should create a deal', async () => { + const response: GetAddedDealResponse = { + success: true, + data: { + id: 2, + title: 'New Deal', + value: 2000, + }, + }; + + mock.post({ + url: '', + response, + status: 201, + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + const dealsApi = new DealsApi(apiConfig); + + const createdDeal = await dealsApi.addDeal({ + AddDealRequest: { + title: 'New Deal', + value: '2000', + }, + }); + + expect(createdDeal).toEqual(response); + }); + + test('should get a deal by id', async () => { + const response: GetDealResponse = { + success: true, + data: { + id: 2, + title: 'New Deal', + value: 2000, + }, + }; + + mock.get({ + url: '/2', + response, + status: 200, + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + const dealsApi = new DealsApi(apiConfig); + + const deal = await dealsApi.getDeal({ + id: 2, + }); + + expect(deal).toEqual(response); + }); + + test('should update a deal', async () => { + const response: GetDealResponse = { + success: true, + data: { + id: 2, + title: 'Updated Deal', + value: 3000, + }, + }; + const payload : UpdateDealRequest = { + title: 'Updated Deal', + value: '3000', + }; + + mock.put({ + url: '/2', + response, + status: 200, + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + const dealsApi = new DealsApi(apiConfig); + + const updatedDeal = await dealsApi.updateDeal({ + id: 2, + UpdateDealRequest: payload, + }); + + expect(updatedDeal).toEqual(response); + }); + + test('should delete a deal', async () => { + const response = { success: true }; + + mock.delete({ + url: '/2', + response, + status: 200, + }); + + const deleteResponse = await dealsApi.deleteDeal({ id: 2 }); + + expect(deleteResponse).toEqual(response); + }); +}); \ No newline at end of file diff --git a/test/functional/v1/lead.test.ts b/test/functional/v1/lead.test.ts new file mode 100644 index 00000000..7d7d74a0 --- /dev/null +++ b/test/functional/v1/lead.test.ts @@ -0,0 +1,173 @@ +import { + Configuration, + LeadsApi, + OAuth2Configuration, + GetLeadResponse, + GetLeadsResponse, + UpdateLeadRequest, +} from '../../../dist/versions/v1'; +import { DeepPartial, oauth2Config } from '../constants'; +import { ApiMock } from '../stubs'; + +describe('v1/leads', () => { + let oauthClient: OAuth2Configuration; + let leadsApi: LeadsApi; + + let mock: ApiMock; + + beforeAll(async () => { + mock = new ApiMock({ + basePath: '/v1/leads', + host: 'http://localhost/api', + }); + }); + + afterAll(async () => { + mock.restore(); + }); + + beforeEach(async () => { + mock.cleanAll(); + oauthClient = new OAuth2Configuration(oauth2Config); + + oauthClient.updateToken({ + refresh_token: 'freshAccessToken', + expires_in: 100, + token_type: 'bearer', + scope: 'leads:full,users:full,1337', + api_domain: null, + access_token: 'freshAccessToken', + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + leadsApi = new LeadsApi(apiConfig); + }); + + test('should get leads', async () => { + const response: DeepPartial = { + success: true, + data: [ + { + id: '1', + title: 'Lead 1', + }, + { + id: '2', + title: 'Lead 2', + }, + ], + }; + + mock.get({ + url: '', + response, + status: 200, + }); + + const leads = await leadsApi.getLeads(); + + expect(leads).toEqual(response); + }); + + test('should create a lead', async () => { + const response: DeepPartial = { + success: true, + data: { + id: '2', + title: 'New Lead', + + }, + }; + + mock.post({ + url: '', + response, + status: 201, + }); + + const createdLead = await leadsApi.addLead({ + AddLeadRequest: { + title: 'New Lead', + value: { + amount: 1000, + currency: 'USD', + }, + }, + }); + + expect(createdLead).toEqual(response); + }); + + test('should get a lead by id', async () => { + const response: DeepPartial = { + success: true, + data: { + id: '2', + title: 'New Lead', + creator_id: 1, + label_ids: ['1'], + owner_id: 123, + organization_id: 345, + }, + }; + + mock.get({ + url: '/2', + response, + status: 200, + }); + + const lead = await leadsApi.getLead({ + id: '2', + }); + + expect(lead).toEqual(response); + }); + + test('should update a lead', async () => { + const response: DeepPartial = { + success: true, + data: { + id: '2', + title: 'New Lead', + creator_id: 1, + label_ids: ['1'], + owner_id: 123, + organization_id: 345, + }, + }; + const payload: UpdateLeadRequest = { + title: 'Updated Lead', + }; + + mock.patch({ + url: '/2', + status: 200, + response, + }); + + const updatedLead = await leadsApi.updateLead({ + id: '2', + UpdateLeadRequest: payload, + }); + + expect(updatedLead).toEqual(response); + }); + + test('should delete a lead', async () => { + const response = { success: true }; + + mock.delete({ + url: '/2', + response, + status: 200, + }); + + const deleteResponse = await leadsApi.deleteLead({ id: '2' }); + + expect(deleteResponse).toEqual(response); + }); +}); \ No newline at end of file diff --git a/test/functional/v2/deal.test.ts b/test/functional/v2/deal.test.ts new file mode 100644 index 00000000..9978fa19 --- /dev/null +++ b/test/functional/v2/deal.test.ts @@ -0,0 +1,175 @@ +import { + Configuration, + DealsApi, + OAuth2Configuration, + GetDealsResponse, UpdateDealRequest, UpsertDealResponse, +} from '../../../dist/versions/v2'; +import { oauth2Config } from '../constants'; +import { ApiMock } from '../stubs'; + +describe('v2/deals', () => { + let oauthClient: OAuth2Configuration; + let dealsApi: DealsApi; + + let mock: ApiMock; + + beforeAll(() => { + mock = new ApiMock({ + basePath: '/v2/deals', + host: 'http://localhost/api', + }); + }); + + afterEach(() => mock.cleanAll()); + + beforeEach(async () => { + oauthClient = new OAuth2Configuration(oauth2Config); + + oauthClient.updateToken({ + refresh_token: 'freshAccessToken', + expires_in: 100, + token_type: 'bearer', + scope: 'deals:full,users:full,1337', + api_domain: null, // todo fox tjos + access_token: 'freshAccessToken', + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + dealsApi = new DealsApi(apiConfig); + }); + + test('should get deals', async () => { + const response: GetDealsResponse = { + success: true, + data: [ + { + id: 1, + title: 'Deal 1', + value: 1000, + }, + ], + }; + + mock.get({ + url: '', + response, + status: 200, + }); + + const deals = await dealsApi.getDeals(); + + expect(deals).toEqual(response); + }); + + test('should create a deal', async () => { + const response: UpsertDealResponse = { + success: true, + data: { + id: 2, + title: 'New Deal', + value: 2000, + }, + }; + + mock.post({ + url: '', + response, + status: 201, + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + const dealsApi = new DealsApi(apiConfig); + + const createdDeal = await dealsApi.addDeal({ + AddDealRequest: { + title: 'New Deal', + value: 2000, + }, + }); + + expect(createdDeal).toEqual(response); + }); + + test('should get a deal by id', async () => { + const response: UpsertDealResponse = { + success: true, + data: { + id: 2, + title: 'New Deal', + value: 2000, + }, + }; + + mock.get({ + url: '/2', + response, + status: 200, + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + const dealsApi = new DealsApi(apiConfig); + + const deal = await dealsApi.getDeal({ + id: 2, + }); + + expect(deal).toEqual(response); + }); + + test('should update a deal', async () => { + const response: UpsertDealResponse = { + success: true, + data: { + id: 2, + title: 'Updated Deal', + value: 3000, + }, + }; + const payload : UpdateDealRequest = { + title: 'Updated Deal', + value: 3000, + }; + + mock.patch({ + url: '/2', + response, + status: 200, + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + const dealsApi = new DealsApi(apiConfig); + + const updatedDeal = await dealsApi.updateDeal({ + id: 2, + UpdateDealRequest: payload, + }); + + expect(updatedDeal).toEqual(response); + }); + + test('should delete a deal', async () => { + const response = { success: true }; + + mock.delete({ + url: '/2', + response, + status: 200, + }); + + const deleteResponse = await dealsApi.deleteDeal({ id: 2 }); + + expect(deleteResponse).toEqual(response); + }); +}); \ No newline at end of file diff --git a/test/functional/v2/lead.test.ts b/test/functional/v2/lead.test.ts new file mode 100644 index 00000000..b5c090ba --- /dev/null +++ b/test/functional/v2/lead.test.ts @@ -0,0 +1,80 @@ +import { + Configuration, + LeadsApi, + OAuth2Configuration, + GetLeadSearchResponse, +} from '../../../dist/versions/v2'; +import { DeepPartial, oauth2Config } from '../constants'; +import nock from 'nock'; +import { ApiMock } from '../stubs'; + +describe('v2/leads', () => { + let oauthClient: OAuth2Configuration; + let leadsApi: LeadsApi; + let mock: ApiMock; + + beforeAll(async () => { + mock = new ApiMock({ + basePath: '/v2/leads', + host: 'http://localhost/api', + }); + }); + + afterAll(async () => { + nock.restore(); + }); + + beforeEach(async () => { + nock.cleanAll(); + oauthClient = new OAuth2Configuration(oauth2Config); + + oauthClient.updateToken({ + refresh_token: 'freshAccessToken', + expires_in: 100, + token_type: 'bearer', + scope: 'leads:full,users:full,1337', + api_domain: null, + access_token: 'freshAccessToken', + }); + + const apiConfig = new Configuration({ + accessToken: oauthClient.getAccessToken, + basePath: oauthClient.basePath, + }); + leadsApi = new LeadsApi(apiConfig); + }); + + test('should search leads', async () => { + const response: DeepPartial = { + success: true, + data: { + items: [ + { + item: { + id: '2', + title: 'Lead 1', + }, + }, + + ], + }, + }; + + mock.get({ + url: '/search', + response, + status: 200, + query: { + term: 'test', + exact_match: true, + }, + }); + + const leads = await leadsApi.searchLeads({ + term: 'test', + exact_match: true, + }); + + expect(leads).toEqual(response); + }); +}); \ No newline at end of file diff --git a/test/runtime.js b/test/runtime.js index e7cc0377..f9a43166 100644 --- a/test/runtime.js +++ b/test/runtime.js @@ -1,4 +1,6 @@ -const Pipedrive = require('../dist/index'); +const v1 = require('../dist/versions/v1'); +const v2 = require('../dist/versions/v2'); // Tests if api client can be initiated without runtime errors -new Pipedrive.ApiClient(); +new v1.Configuration({}); +new v2.Configuration({}); diff --git a/tsconfig.esm.json b/tsconfig.esm.json new file mode 100644 index 00000000..2c0331cc --- /dev/null +++ b/tsconfig.esm.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "esnext", + "outDir": "dist/esm" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 00000000..f7990259 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "outDir": "./dist", + "rootDir": "./src", + "module": "CommonJS", + "target": "ES6", + "declaration": true, + "esModuleInterop": true, + "moduleResolution": "node16" + }, + "include": ["src/**/*"] +} diff --git a/tsconfig.test.json b/tsconfig.test.json new file mode 100644 index 00000000..801889a6 --- /dev/null +++ b/tsconfig.test.json @@ -0,0 +1,4 @@ +{ + "extends": "./tsconfig.json", + "include": ["src/**/*", "test/**/*"] +} \ No newline at end of file